hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( + - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( + - col1 AS INTEGER ) IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col1 * - - 44 + + + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT 90 DIV + + 9 AS col2 FROM tab1
----
10
10
10

skipif mysql # not compatible
query I rowsort label-5
SELECT 90 / + + 9 AS col2 FROM tab1
----
10
10
10

query I rowsort
SELECT ALL 35 AS col2 FROM tab2 WHERE NOT + + 25 + 21 + - + col2 NOT IN ( - 48 * 15 )
----

query I rowsort
SELECT DISTINCT ( + 13 ) * - col2 * - col0 - + - 61 AS col2 FROM tab0
----
11371
124900
9226

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col2 * 89 * - col2 * 84 + col2 / 75 AND NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + + + col2 <= ( NULL )
----

query I rowsort
SELECT ( 42 ) AS col2 FROM tab2
----
42
42
42

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT 10 <> col0
----

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

query I rowsort
SELECT ALL - col2 * + 28 + + col1 * 4 FROM tab0 AS cor0
----
-196
-2768
-992

query I rowsort
SELECT ALL - 3 * + col1 * - - 23 AS col1 FROM tab0 AS cor0
----
-1449
-5589
-69

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

skipif mysql # not compatible
query I rowsort label-16
SELECT COUNT ( * ) + + 89 AS col1 FROM tab1 AS cor0
----
92

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

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

query I rowsort
SELECT ALL 88 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - col2 + - 98 + 95 AS col1 FROM tab2
----
-107
-136
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT - col2 + + col0 DIV + col2 FROM tab0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-21
SELECT - col2 + + col0 / + col2 FROM tab0
----
-2
-47
-99

query I rowsort
SELECT ALL - 77 - - 66 * + - 68 AS col2 FROM tab2
----
-4565
-4565
-4565

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

onlyif mysql # DIV for integer division: 
query III rowsort label-24
SELECT ALL + 20 DIV - col2 - + 54 AS col0, + 31, ( - - col2 ) AS col2 FROM tab1
----
9 values hashing to f49a746cddac336ee0f6caf2c466a737

skipif mysql # not compatible
query III rowsort label-24
SELECT ALL + 20 / - col2 - + 54 AS col0, + 31, ( - - col2 ) AS col2 FROM tab1
----
9 values hashing to f49a746cddac336ee0f6caf2c466a737

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

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL ( MAX( DISTINCT + + col0 ) ) - MAX( ALL - - col1 ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL ( MAX ( DISTINCT + + col0 ) ) - MAX ( ALL - - col1 ) AS col2 FROM tab0
----
16

query II rowsort
SELECT DISTINCT + 27 * - ( + 46 ) AS col2, + col1 + + col0 + col0 FROM tab2 cor0
----
-1242
143
-1242
205
-1242
217

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 75 * + - col0 + - + col0 FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT + 61 * - + col2 AS col1 FROM tab1
----
-3599
-4148
-5856

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

query I rowsort
SELECT + col0 * 88 * 20 AS col2 FROM tab1
----
149600
160160
89760

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

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

query I rowsort
SELECT + + col2 * - col2 + - - col2 + + - col1 + col0 FROM tab1 cor0
----
-3342
-4512
-9083

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT ALL + + MAX( col2 ) AS col2, ( - 12 ) col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
96
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-36
SELECT ALL + + MAX ( col2 ) AS col2, ( - 12 ) col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
96
-12

query I rowsort
SELECT + 93 + - 22 + - col1 AS col1 FROM tab2 AS cor0
----
-6
20
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 col0 FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - 39 + - 38 + - 61 + - col0 ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + + + 43 FROM tab2
----
-15
20
3

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

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

query I rowsort
SELECT - + col2 * - - 64 FROM tab1 AS cor0
----
-3776
-4352
-6144

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) <> + ( - 95 )
----

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL IS NULL OR + 82 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT ( NOT NULL >= ( NULL ) )
----

query I rowsort
SELECT + ( - + 20 ) AS col2 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT ALL col1 + - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

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

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

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

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

query I rowsort
SELECT ALL + 76 * + + 1 AS col0 FROM tab1 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + + 76 col0 FROM tab0 AS cor0
----
3572
7524
760

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT DISTINCT 80 DIV + 3 AS col0 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT 80 / + 3 AS col0 FROM tab0 AS cor0
----
26

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

skipif mysql # not compatible
query I rowsort label-57
SELECT COUNT ( 8 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-59
SELECT - ( COUNT ( DISTINCT + col0 ) ) col0 FROM tab1
----
-3

query I rowsort
SELECT col1 + + + col0 * col2 FROM tab2
----
1109
2637
4417

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col0 AS col1, + 11 col1 FROM tab2
----
0
11
0
11
0
11

query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab0 WHERE NOT ( + - col0 ) >= ( NULL )
----

query I rowsort
SELECT + col1 + + + 14 AS col1 FROM tab1
----
19
28
61

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + - + col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - col1, col2, 20 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT DISTINCT COUNT( * ) * - 21 + + 11, COUNT( ALL + col0 ) AS col1 FROM tab2
----
-52
3

skipif mysql # not compatible
query II rowsort label-68
SELECT DISTINCT COUNT ( * ) * - 21 + + 11, COUNT ( ALL + col0 ) AS col1 FROM tab2
----
-52
3

onlyif mysql # DIV for integer division: 
query I rowsort label-69
SELECT DISTINCT col2 + 95 DIV 66 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT col2 + 95 / 66 AS col1 FROM tab1
----
60
69
97

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

query I rowsort
SELECT DISTINCT 85 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
85

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

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

query I rowsort
SELECT DISTINCT + 2 - col0 FROM tab1 cor0
----
-49
-83
-89

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

skipif mysql # not compatible
query I rowsort label-74
SELECT + SUM ( + + 1 ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + col2 col1 FROM tab0 cor0
----
104
141
193

query II rowsort
SELECT - - col0 + + + 43 * - 6, + col1 AS col2 FROM tab1 cor0
----
-167
47
-173
5
-207
14

query I rowsort
SELECT ALL + - col2 * - + col0 FROM tab0 WHERE NOT - 2 = NULL
----

query II rowsort
SELECT + col0 * + col1 AS col0, + 54 * + + col2 FROM tab1
----
425
3186
4277
3672
714
5184

query I rowsort
SELECT DISTINCT - - 71 AS col0 FROM tab2 WHERE col0 * + col2 * + - 18 < NULL
----

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

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

query II rowsort
SELECT ALL - 12 AS col2, 6 AS col0 FROM tab1
----
-12
6
-12
6
-12
6

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 91 - - 5 + + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * - 55 FROM tab0
----
2585
5445
550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 14 NOT BETWEEN - 45 / - + col1 AND NULL
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-88
SELECT * FROM tab1 WHERE NOT - - ( - + CAST( col1 AS SIGNED ) ) + - - col2 + col1 - - col1 / - 94 > NULL
----

skipif mysql # not compatible
query III rowsort label-88
SELECT * FROM tab1 WHERE NOT - - ( - + CAST ( col1 AS INTEGER ) ) + - - col2 + col1 - - col1 / - 94 > NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE ( NULL >= NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT + + 81, + SUM( ALL col0 ) AS col0 FROM tab0 AS cor0
----
81
199

skipif mysql # not compatible
query II rowsort label-90
SELECT + + 81, + SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
81
199

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT MIN( 77 ) AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-91
SELECT MIN ( 77 ) AS col1 FROM tab1
----
77

query I rowsort
SELECT ALL + 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

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

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

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

query I rowsort
SELECT + col2 + 17 AS col0 FROM tab0 AS cor0
----
116
27
64

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-98
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + + - 84 AS col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT ( - col1 ) * - + col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT - 77 FROM tab0 WHERE ( ( NOT 74 NOT BETWEEN col0 AND + - 8 ) )
----

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

query I rowsort
SELECT - + 10 FROM tab1 WHERE NULL NOT BETWEEN - ( col2 ) + col0 AND 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + COUNT( * ) + + 56 * - 52 + MAX( + 85 ) FROM tab2
----
-2824

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + COUNT ( * ) + + 56 * - 52 + MAX ( + 85 ) FROM tab2
----
-2824

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + - 5 - 79 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-105
SELECT + - 5 - 79 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT + 26 DIV - + col0 * - 50 * - col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + 26 / - + col0 * - 50 * - col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 74 + + col1 FROM tab0 AS cor0
----
-53
-73
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - col0 + + 63 - 34 - + + col2 * + col0 col2 FROM tab1
----
-4872
-5025
-6204

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col2 BETWEEN - 71 AND + 1
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + MAX( 78 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + MAX ( 78 ) FROM tab0
----
78

query I rowsort
SELECT DISTINCT 79 * - col1 AS col1 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT + col0 * + col0 * col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL MIN( + - col1 ) * COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL MIN ( + - col1 ) * COUNT ( * ) FROM tab1
----
-141

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

skipif mysql # not compatible
query I rowsort label-117
SELECT - MAX ( + - col2 ) FROM tab1 cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * 57 * 73 - - - 51 ) = + 81
----

query I rowsort
SELECT ALL - col0 * - 97 - + col2 AS col0 FROM tab2 AS cor0
----
4439
6168
7217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-120
SELECT ALL - 80 DIV COUNT( * ) FROM tab2, tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - 80 / COUNT ( * ) FROM tab2, tab2 AS cor0
----
-8

query I rowsort
SELECT ALL + col1 * - - 46 FROM tab2
----
2346
3082
3542

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT ALL - col0 DIV + - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL - col0 / + - col0 FROM tab0
----
1
1
1

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

query I rowsort
SELECT + 31 * - col2 AS col0 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + 57 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + 57 AS col1 FROM tab2 AS cor0
----
66

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

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

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

query II rowsort
SELECT ALL + 18 AS col2, 39 + - col1 FROM tab0 AS cor0
----
18
-42
18
18
18
38

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

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

query II rowsort
SELECT DISTINCT + col1 AS col1, - 8 + + + col2 + + - col1 FROM tab2 AS cor0
----
51
-36
67
-17
77
-45

query I rowsort
SELECT ALL ( 2 ) + + - col2 FROM tab2 cor0
----
-21
-38
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 80 + + 83, + 7, 20, - col0, - - 46, - 3 )
----

query II rowsort
SELECT ALL 21 + - - 10, col2 AS col0 FROM tab1 AS cor0
----
31
59
31
68
31
96

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

skipif mysql # not compatible
query I rowsort label-136
SELECT + col1 + + - col1 + + - col2 / + col2 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 + - - 19 - + col1 AS col2 FROM tab2
----
-106
-55
-98

query I rowsort
SELECT - col1 + - - 47 FROM tab0
----
-34
26
46

query I rowsort
SELECT col1 + - + 54 AS col2 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT DISTINCT col0 * - 65 - - - ( - 87 ) + col0 AS col2 FROM tab0
----
-5481
-6121
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT - COUNT( * ) * 8 + - + MAX( + - 90 ) AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-141
SELECT - COUNT ( * ) * 8 + - + MAX ( + - 90 ) AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT COUNT( * ) * - 85 * COUNT( * ) col2 FROM tab1 AS cor0
----
-765

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-142
SELECT COUNT ( * ) * - 85 * COUNT ( * ) col2 FROM tab1 AS cor0
----
-765

query II rowsort
SELECT 43, - 16 AS col1 FROM tab2
----
43
-16
43
-16
43
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT ALL - col0 DIV 98 DIV + col1 - - + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - col0 / 98 / + col1 - - + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT + col2 - 74 AS col2 FROM tab1
----
-15
-6
22

query I rowsort
SELECT DISTINCT + col2 * - col0 + - + 62 AS col1 FROM tab1 WHERE NULL IS NULL
----
-4958
-5077
-6250

query II rowsort
SELECT DISTINCT - col2, col0 * + + 14 AS col2 FROM tab1 AS cor0 WHERE NULL = col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 37 / + - col0 * 61 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 + + - 28 AS col1 FROM tab2 AS cor0
----
-46
-5
-64
12
-75
30

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 88 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT + 34 + + SUM( DISTINCT - + 55 ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - - col1 - + CAST( col2 AS SIGNED ) * - + 31 * - col0 + + col1 = + + col1 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT + 34 + + SUM ( DISTINCT - + 55 ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - - col1 - + CAST ( col2 AS INTEGER ) * - + 31 * - col0 + + col1 = + + col1 * + col1
----
NULL

query I rowsort
SELECT 19 * - col0 AS col2 FROM tab0 AS cor0
----
-1653
-1843
-285

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

skipif mysql # not compatible
query II rowsort label-155
SELECT ( + ( + 65 ) ), COUNT ( + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT + + col0 IS NULL
----
65
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-156
SELECT + + COUNT( DISTINCT - CAST( 85 AS SIGNED ) ) + + 63 AS col2 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-156
SELECT + + COUNT ( DISTINCT - CAST ( 85 AS INTEGER ) ) + + 63 AS col2 FROM tab2 cor0
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT ALL - 96 * - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - 96 * - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
96

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

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

query I rowsort
SELECT + 14 + + col0 + - col1 * col2 - + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1141
-3039
-3806

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-162
SELECT DISTINCT MAX( DISTINCT - 55 ) + + CAST( NULL AS SIGNED ) * 32 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT MAX ( DISTINCT - 55 ) + + CAST ( NULL AS INTEGER ) * 32 AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL col2 + + - 19 FROM tab0
----
-9
28
80

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT ALL + COUNT( * ) - 81 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL + COUNT ( * ) - 81 FROM tab1
----
-78

query II rowsort
SELECT DISTINCT col0 - 46 AS col2, - col1 FROM tab0 AS cor0
----
-31
-81
41
-21
51
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-168
SELECT DISTINCT + col1 + col0 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-168
SELECT DISTINCT + col1 + col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
138
NULL
65
NULL
90
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT COUNT ( * ) / - - ( 65 ) FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL - MIN( + 88 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - MIN ( + 88 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

query II rowsort
SELECT DISTINCT - 83 AS col1, col1 AS col2 FROM tab0
----
-83
1
-83
21
-83
81

query I rowsort
SELECT 35 * - col1 * 78 AS col2 FROM tab1
----
-128310
-13650
-38220

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT + 49 AS col1, 79 * - - COUNT( * ) FROM tab0
----
49
237

skipif mysql # not compatible
query II rowsort label-175
SELECT + 49 AS col1, 79 * - - COUNT ( * ) FROM tab0
----
49
237

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

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

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

skipif mysql # not compatible
query I rowsort label-177
SELECT - ( - COUNT ( * ) ) / - COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT col2 * - col2 * 38 AS col1 FROM tab2
----
-127832
-20102
-60800

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

query I rowsort
SELECT 8 + 75 FROM tab2 cor0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT + CAST( + col2 AS SIGNED ) + + ( + - col1 ) + - col1 FROM tab2 AS cor0
----
-114
-76
-79

skipif mysql # not compatible
query I rowsort label-181
SELECT + CAST ( + col2 AS INTEGER ) + + ( + - col1 ) + - col1 FROM tab2 AS cor0
----
-114
-76
-79

query I rowsort
SELECT ALL 5 + + - col1 FROM tab0
----
-16
-76
4

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) FROM tab0
----
-100
-2209
-9801

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-185
SELECT + + 68 * + - col0 AS col2, col2 * - CAST( - + 17 AS SIGNED ) + - + col1 AS col0 FROM tab0 AS cor0
----
-1020
718
-5916
149
-6596
1682

skipif mysql # not compatible
query II rowsort label-185
SELECT + + 68 * + - col0 AS col2, col2 * - CAST ( - + 17 AS INTEGER ) + - + col1 AS col0 FROM tab0 AS cor0
----
-1020
718
-5916
149
-6596
1682

query I rowsort
SELECT col1 + - 71 * - - 9 FROM tab0 AS cor0
----
-558
-618
-638

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 + 12 BETWEEN NULL AND + col0 + - 57 * 89 * + + col1
----

query I rowsort
SELECT ALL - col2 * - col2 + + col0 FROM tab2
----
1664
3439
575

query I rowsort
SELECT 89 * - - 71 + col0 * + + col1 AS col1 FROM tab0
----
6416
7534
8146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT - ( + CAST( - + col1 AS SIGNED ) ) + - + 70 AS col2 FROM tab1
----
-23
-56
-65

skipif mysql # not compatible
query I rowsort label-190
SELECT - ( + CAST ( - + col1 AS INTEGER ) ) + - + 70 AS col2 FROM tab1
----
-23
-56
-65

query I rowsort
SELECT ALL + col1 + - ( - + 48 ) - + - col1 * - 85 * - - col2 AS col0 FROM tab2
----
-261675
-330195
-99606

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( 95 ) col2 FROM tab0
----
-14
-74
-94

query I rowsort
SELECT DISTINCT - col0 * + + col2 - 77 AS col0 FROM tab1
----
-4973
-5092
-6265

query I rowsort
SELECT ALL 17 * - col0 - - + 80 AS col1 FROM tab0
----
-1399
-1569
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE + col2 <> + ( - 56 )
----
3

skipif mysql # not compatible
query I rowsort label-195
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE + col2 <> + ( - 56 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * 86 col1 FROM tab1 AS cor0
----
3354
3354
3354

query I rowsort
SELECT + 24 * - + ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-198
SELECT - CAST( NULL AS SIGNED ) AS col2, - 98 AS col2 FROM tab2
----
NULL
-98
NULL
-98
NULL
-98

skipif mysql # not compatible
query II rowsort label-198
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 98 AS col2 FROM tab2
----
NULL
-98
NULL
-98
NULL
-98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-200
SELECT DISTINCT CAST( col2 AS SIGNED ) * - + 84 - - col1 * col2 AS col2 FROM tab1
----
-2516
-4661
-6720

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - + 84 - - col1 * col2 AS col2 FROM tab1
----
-2516
-4661
-6720

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

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

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
86

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

skipif mysql # not compatible
query I rowsort label-203
SELECT MAX ( DISTINCT - ( + col0 ) ) FROM tab2 AS cor0
----
-46

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

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

query I rowsort
SELECT 76 * + - col0 * col2 FROM tab0 AS cor0
----
-53580
-66120
-729828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-207
SELECT ALL + - COUNT( * ) AS col1, + MAX( + ( - + CAST( NULL AS SIGNED ) ) ) - COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL + - COUNT ( * ) AS col1, + MAX ( + ( - + CAST ( NULL AS INTEGER ) ) ) - COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
-3
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT 12 * - + CAST( - - col2 AS SIGNED ) FROM tab1
----
-1152
-708
-816

skipif mysql # not compatible
query I rowsort label-210
SELECT 12 * - + CAST ( - - col2 AS INTEGER ) FROM tab1
----
-1152
-708
-816

query I rowsort
SELECT ALL + + col1 + - + 40 FROM tab2 WHERE NULL NOT BETWEEN 0 * - col1 AND col1 + + 18 + - col2 + + col0
----

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - col1 * + + 5 + + - ( - + 44 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 76 >= NULL
----

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

query I rowsort
SELECT - 89 + - 65 AS col1 FROM tab0 AS cor0
----
-154
-154
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-219
SELECT + + CAST( NULL AS SIGNED ) + + 39 * - - 75, + MIN( ALL - + col2 ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
-297

skipif mysql # not compatible
query II rowsort label-219
SELECT + + CAST ( NULL AS INTEGER ) + + 39 * - - 75, + MIN ( ALL - + col2 ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
-297

query I rowsort
SELECT - 65 + - col1 * col1 FROM tab0 AS cor0
----
-506
-66
-6626

query I rowsort
SELECT ALL - + col2 + - - 15 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-32
-84
5

query I rowsort
SELECT - + 74 + - - 67 FROM tab0 AS cor0 WHERE + col2 + + - ( + col2 ) IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-223
SELECT ALL SUM ( DISTINCT + CAST ( ( - - col0 ) AS INTEGER ) ) col0 FROM tab2 cor0
----
185

query I rowsort
SELECT - 54 * + + col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT - - MAX( DISTINCT - + col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - - MAX ( DISTINCT - + col0 ) FROM tab2 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + - col2 * - col2 FROM tab2
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT 87 - + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT 87 - + COUNT ( * ) FROM tab0
----
84

query I rowsort
SELECT - col1 - + + 59 FROM tab0
----
-140
-60
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT DISTINCT + + MIN( DISTINCT + 14 ) DIV + 12 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT + + MIN ( DISTINCT + 14 ) / + 12 AS col2 FROM tab1 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-231
SELECT - - 78 * + COUNT ( * ) FROM tab2 AS cor0
----
234

query II rowsort
SELECT col2, 78 * col2 * col2 AS col0 FROM tab2
----
23
41262
40
124800
58
262392

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT DISTINCT + - SUM( ALL + 38 ) * - 95 AS col2, - COUNT( + 49 ) * COUNT( * ) FROM tab0 AS cor0
----
10830
-9

skipif mysql # not compatible
query II rowsort label-233
SELECT DISTINCT + - SUM ( ALL + 38 ) * - 95 AS col2, - COUNT ( + 49 ) * COUNT ( * ) FROM tab0 AS cor0
----
10830
-9

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

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

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

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - - 5 / COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT DISTINCT col2 DIV - + 15 FROM tab1 AS cor0
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT col2 / - + 15 FROM tab1 AS cor0
----
-3
-4
-6

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NULL <> + - col0
----

query II rowsort
SELECT - col0 AS col2, 37 AS col1 FROM tab0
----
-15
37
-87
37
-97
37

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

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

skipif mysql # not compatible
query I rowsort label-240
SELECT + 45 * - - COUNT ( * ) FROM tab2
----
135

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-241
SELECT DISTINCT 33 * - + 4, CAST( NULL AS DECIMAL ) * 83 / - + col1 AS col2 FROM tab1
----
-132
NULL

skipif mysql # not compatible
query II rowsort label-241
SELECT DISTINCT 33 * - + 4, CAST ( NULL AS REAL ) * 83 / - + col1 AS col2 FROM tab1
----
-132
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 * - col2 col2 FROM tab1
----
2301
2652
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT ALL - col1 DIV + 20 AS col2 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL - col1 / + 20 AS col2 FROM tab0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + COUNT( * ) + + ( - - 58 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-244
SELECT + COUNT ( * ) + + ( - - 58 ) AS col2 FROM tab2
----
61

query I rowsort
SELECT + col1 + 75 AS col2 FROM tab1
----
122
80
89

query I rowsort
SELECT + 13 + - + col0 FROM tab2
----
-33
-51
-62

query I rowsort
SELECT ALL - ( + col1 ) * + col1 + col1 * - col0 FROM tab2 cor0
----
-10857
-4947
-9514

query I rowsort
SELECT ALL - ( - - 41 ) + col1 AS col2 FROM tab2 AS cor0
----
10
26
36

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-95

query I rowsort
SELECT DISTINCT - col2 - col2 - col1 - + col0 AS col1 FROM tab0
----
-128
-190
-296

query I rowsort
SELECT - col0 * col1 + + 8 - col2 AS col1 FROM tab0 AS cor0
----
-1254
-1829
-188

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

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

query I rowsort
SELECT DISTINCT - col1 + + col0 + 22 FROM tab2
----
17
30
9

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

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

query I rowsort
SELECT col1 + 21 + + col0 AS col0 FROM tab0
----
117
119
129

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 85 BETWEEN NULL AND - ( + - col2 ) + col0 + - ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 33, ( col0 ) AS col2 FROM tab1
----
33
51
33
85
33
91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + 83 * + + SUM( + + col2 ) * 38 - COUNT( * ) * + 24 AS col0 FROM tab0
----
491952

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + 83 * + + SUM ( + + col2 ) * 38 - COUNT ( * ) * + 24 AS col0 FROM tab0
----
491952

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

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

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

query I rowsort
SELECT + 73 - - - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 - + col1 IS NULL
----
26
59
68

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

skipif mysql # not compatible
query I rowsort label-264
SELECT + - MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
96

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 13 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + col1 + + col2 + - + col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT col1 * 48 AS col0, - 92 * - 92 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - 66 * - + COUNT( ALL + col0 ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - 66 * - + COUNT ( ALL + col0 ) FROM tab0
----
198

query I rowsort
SELECT DISTINCT + 73 * col1 AS col0 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT ALL col2 + 41 * + col0 * - - col0 FROM tab2
----
167976
230683
86779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT ALL + 40 DIV - - COUNT( * ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + 40 / - - COUNT ( * ) AS col1 FROM tab1
----
13

query II rowsort
SELECT DISTINCT + col1 * - col2 + 97, - 49 AS col1 FROM tab2
----
-1076
-49
-2983
-49
-3789
-49

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

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + col2 / + col2 AS col1 FROM tab1
----
1
1
1

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

query I rowsort
SELECT 49 FROM tab0 AS cor0 WHERE ( NOT NULL >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, col0 col2 FROM tab1 AS cor0 WHERE - 76 <= NULL
----

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( - ( ( + 69 ) ) ) + + col1 * + col1 * - 37 IS NOT NULL
----

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

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

query I rowsort
SELECT + + col2 * - 10 + + - 69 FROM tab1 AS cor0
----
-1029
-659
-749

query I rowsort
SELECT + col1 - + - col0 + + - col2 * - col0 FROM tab0 cor0
----
801
9701
978

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + col2 * - + 54 - + col1
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + - MAX( - CAST( + 94 AS SIGNED ) ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-291
SELECT DISTINCT + - MAX ( - CAST ( + 94 AS INTEGER ) ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
94

query I rowsort
SELECT 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE - col1 - 53 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-296
SELECT DISTINCT ( + + col1 ) + col2 DIV - - col0 FROM tab0 AS cor0
----
2
21
84

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT ( + + col1 ) + col2 / - - col0 FROM tab0 AS cor0
----
2
21
84

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT ALL + CAST( col1 AS SIGNED ) + - - 21 + + + col2 FROM tab2 AS cor0
----
138
146
95

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + CAST ( col1 AS INTEGER ) + - - 21 + + + col2 FROM tab2 AS cor0
----
138
146
95

query I rowsort
SELECT DISTINCT 1 + col0 * 10 AS col2 FROM tab0
----
151
871
971

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

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + 12 + - MIN ( col2 ) FROM tab1
----
-47

query I rowsort
SELECT col1 * - - 81 + 34 AS col2 FROM tab1
----
1168
3841
439

query I rowsort
SELECT + col2 * - col1 + col2 FROM tab0
----
-200
-3760
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-304
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) col2, COUNT( DISTINCT col2 ) FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-304
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) col2, COUNT ( DISTINCT col2 ) FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-305
SELECT * FROM tab2 AS cor0 WHERE NULL > 62 + col2 * - CAST( - col2 AS SIGNED ) * - col0 * + ( 88 )
----

skipif mysql # not compatible
query III rowsort label-305
SELECT * FROM tab2 AS cor0 WHERE NULL > 62 + col2 * - CAST ( - col2 AS INTEGER ) * - col0 * + ( 88 )
----

query I rowsort
SELECT 60 + - - col0 AS col2 FROM tab1 AS cor0
----
111
145
151

query I rowsort
SELECT ALL + + 6 * + col0 FROM tab0 cor0
----
522
582
90

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col0 <= col1 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL 37 * + SUM( ALL + - 67 ) AS col0 FROM tab1, tab1 AS cor0
----
-22311

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL 37 * + SUM ( ALL + - 67 ) AS col0 FROM tab1, tab1 AS cor0
----
-22311

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

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

query I rowsort
SELECT ALL + col1 * + col2 * - - 65 AS col1 FROM tab0
----
13650
247455
6435

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT DISTINCT - ( - col2 ) - col0 DIV ( + ( + col0 ) ) * + col0 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT - ( - col2 ) - col0 / ( + ( + col0 ) ) * + col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + + 80 * - COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-314
SELECT + + 80 * - COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-240

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

skipif mysql # not compatible
query I rowsort label-315
SELECT - SUM ( DISTINCT + col0 ) * + 65 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
44265

query I rowsort
SELECT DISTINCT - col2 * - - col0 * - col1 AS col1 FROM tab0 cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-317
SELECT DISTINCT MIN( DISTINCT + + col1 ) DIV - COUNT( col2 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT MIN ( DISTINCT + + col1 ) / - COUNT ( col2 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT ALL - COUNT( ALL 15 ) DIV - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - COUNT ( ALL 15 ) / - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
0

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

query II rowsort
SELECT - 28, col1 AS col0 FROM tab1
----
-28
14
-28
47
-28
5

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

query II rowsort
SELECT DISTINCT 47 AS col1, col1 AS col0 FROM tab1
----
47
14
47
47
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-323
SELECT col0 AS col1, - CAST( + - col0 AS SIGNED ) + - - col1 + + - col2 * + col0 * + + 78 AS col2 FROM tab1 AS cor0
----
51
-381823
85
-391080
91
-482526

skipif mysql # not compatible
query II rowsort label-323
SELECT col0 AS col1, - CAST ( + - col0 AS INTEGER ) + - - col1 + + - col2 * + col0 * + + 78 AS col2 FROM tab1 AS cor0
----
51
-381823
85
-391080
91
-482526

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

skipif mysql # not compatible
query I rowsort label-324
SELECT + CAST ( - col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 36 / - col1 - - + 96 * col2 + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-326
SELECT COUNT( * ) AS col2, 36 col0 FROM tab0 AS cor0
----
3
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-326
SELECT COUNT ( * ) AS col2, 36 col0 FROM tab0 AS cor0
----
3
36

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

query I rowsort
SELECT ALL + 57 + + ( - + 74 ) * + col1 AS col1 FROM tab2 AS cor0
----
-3717
-4901
-5641

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

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

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-331
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + 46 <> - CAST( NULL AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + 46 <> - CAST ( NULL AS REAL ) + + col2
----

query I rowsort
SELECT + - col1 + + ( 1 ) FROM tab1 cor0
----
-13
-4
-46

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

query I rowsort
SELECT + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - 79 + - col2 + - ( + col2 ) * + - col2 AS col2 FROM tab0 AS cor0
----
11
2083
9623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 - - ( - 45 ) * - col2 + 33 + - + col1 col0 FROM tab0
----
2118
4538
513

query I rowsort
SELECT - 39 - - 96 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT 33 - + 50 AS col1 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL - 47 * col2 AS col0 FROM tab1 AS cor0
----
-2773
-3196
-4512

query I rowsort
SELECT - col1 - - ( + 67 ) FROM tab1 AS cor0
----
20
53
62

query I rowsort
SELECT ALL + - 37 * - col1 FROM tab1 AS cor0
----
1739
185
518

query I rowsort
SELECT col1 * col0 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1428
850
8554

query I rowsort
SELECT ALL col0 * 73 AS col1 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT ALL + 57 * 7 FROM tab0
----
399
399
399

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 56 <> ( 30 )
----

query I rowsort
SELECT DISTINCT + 88 + col1 AS col0 FROM tab0
----
109
169
89

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT ALL - 29 DIV 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - 29 / 63 FROM tab2
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-350
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN ( + ( CAST( ( col2 ) AS SIGNED ) ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-350
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN ( + ( CAST ( ( col2 ) AS INTEGER ) ) ) AND NULL
----

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) <> + 68 * 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 53 IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + + 27 col0 FROM tab2 WHERE + col2 - - col0 IS NULL
----

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

query I rowsort
SELECT DISTINCT col2 * col2 AS col1 FROM tab1 WHERE - 60 IN ( col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT ALL 31 + - COUNT( * ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL 31 + - COUNT ( * ) FROM tab1
----
28

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - 45
----

query I rowsort
SELECT col0 + - 46 * col2 AS col1 FROM tab0
----
-2147
-373
-4457

query I rowsort
SELECT 42 + ( + 86 ) AS col2 FROM tab1
----
128
128
128

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 cor0 WHERE col0 * col1 - col2 * + col2 NOT IN ( + 3 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT + SUM( DISTINCT col0 ) + ( MAX( DISTINCT - col1 ) ) * 24 AS col2 FROM tab1 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT + SUM ( DISTINCT col0 ) + ( MAX ( DISTINCT - col1 ) ) * 24 AS col2 FROM tab1 AS cor0
----
107

query I rowsort
SELECT - col2 * - ( col0 ) AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT ( 20 ) * 12 FROM tab1 AS cor0 CROSS JOIN tab1
----
240

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

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

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

query I rowsort
SELECT ALL 17 AS col1 FROM tab1 cor0
----
17
17
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT 19 * MIN( - col2 ) FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( col2 )
----
-1824

skipif mysql # not compatible
query I rowsort label-371
SELECT 19 * MIN ( - col2 ) FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( col2 )
----
-1824

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT ALL 68 DIV - col1 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
57

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL 68 / - col1 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
57

query I rowsort
SELECT col2 + + 3 * col2 AS col1 FROM tab2
----
160
232
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT 6 + MAX( + col2 ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-378
SELECT 6 + MAX ( + col2 ) FROM tab0
----
105

query I rowsort
SELECT ALL + 93 * - + col2 * col0 - 95 FROM tab0
----
-65660
-81005
-893174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 + - 14 * 18 col2 FROM tab0
----
-235
-235
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL - MIN( - col0 ) * COUNT( * ) col2 FROM tab2 WHERE ( col2 ) IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT ( - COUNT( DISTINCT + col0 ) ) DIV + 28 + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-382
SELECT ( - COUNT ( DISTINCT + col0 ) ) / + 28 + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT - col0 * + 73 + 31 AS col2 FROM tab2 WHERE NULL <> ( 1 )
----

query I rowsort
SELECT DISTINCT col2 - ( 45 ) FROM tab2
----
-22
-5
13

query I rowsort
SELECT + col1 * - ( col0 ) + - col2 FROM tab1
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + COUNT( * ) + 63 FROM tab2 WHERE ( NULL ) BETWEEN col2 AND ( 9 )
----
63

skipif mysql # not compatible
query I rowsort label-386
SELECT + COUNT ( * ) + 63 FROM tab2 WHERE ( NULL ) BETWEEN col2 AND ( 9 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT ALL + col2 * col2 * 19 - + col1 DIV + 68 FROM tab1
----
175104
66139
87856

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + col2 * col2 * 19 - + col1 / + 68 FROM tab1
----
175104
66139
87856

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT - ( - COUNT( DISTINCT - col2 ) ) + MIN( - col1 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-388
SELECT - ( - COUNT ( DISTINCT - col2 ) ) + MIN ( - col1 ) FROM tab2
----
-74

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

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

query I rowsort
SELECT ALL + col1 * + + 93 * col1 FROM tab0
----
41013
610173
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) IN ( 43 * ( ( + col1 ) ) )
----

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

query I rowsort
SELECT + 49 * + col2 FROM tab0 WHERE ( NOT ( NULL ) NOT IN ( - 56 ) )
----

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT IN ( 68 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * + 67 AS col2 FROM tab1 AS cor0
----
-603

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * + 67 AS col2 FROM tab1 AS cor0
----
-603

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - + MIN( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-403
SELECT - + MIN ( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT SUM( DISTINCT - CAST( 77 AS SIGNED ) ) * COUNT( * ) FROM tab1 cor0 WHERE NOT - 89 * - 85 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT SUM ( DISTINCT - CAST ( 77 AS INTEGER ) ) * COUNT ( * ) FROM tab1 cor0 WHERE NOT - 89 * - 85 > NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT - col0 DIV - col1 + + + col0 + - 74 * col2 FROM tab2 AS cor0
----
-1656
-2896
-4216

skipif mysql # not compatible
query I rowsort label-405
SELECT - col0 / - col1 + + + col0 + - 74 * col2 FROM tab2 AS cor0
----
-1656
-2896
-4216

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT + 19 * - SUM( ALL + col1 ) col2 FROM tab2
----
-3705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-406
SELECT + 19 * - SUM ( ALL + col1 ) col2 FROM tab2
----
-3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT DISTINCT MAX( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT MAX ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT COUNT( * ) * + 45 AS col2 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-408
SELECT COUNT ( * ) * + 45 AS col2 FROM tab0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT + MAX( DISTINCT + - ( + 2 ) ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT + MAX ( DISTINCT + - ( + 2 ) ) FROM tab0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 66 + + - 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT ALL - COUNT( * ) * 78 AS col1, COUNT( * ) FROM tab0
----
-234
3

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL - COUNT ( * ) * 78 AS col1, COUNT ( * ) FROM tab0
----
-234
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-412
SELECT + MIN( - + CAST( 94 AS SIGNED ) ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-412
SELECT + MIN ( - + CAST ( 94 AS INTEGER ) ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE + col0 + + 92 + col1 + + 89 / + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 * - col2 + - - col1 + - - col0 AS col0 FROM tab0 AS cor0
----
208
2305
9899

query II rowsort
SELECT ALL 56 * - col1 * + - col2 AS col0, + col0 AS col0 FROM tab1
----
16520
85
178976
91
75264
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-416
SELECT * FROM tab0 WHERE ( + 99 + + col1 / 35 ) NOT IN ( CAST( - col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-416
SELECT * FROM tab0 WHERE ( + 99 + + col1 / 35 ) NOT IN ( CAST ( - col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 21 * + 9 * + col1 + + + col1 FROM tab2 AS cor0
----
12730
14630
9690

query II rowsort
SELECT ALL + col2 AS col0, + 32 * + col2 FROM tab0 AS cor0
----
10
320
47
1504
99
3168

query I rowsort
SELECT DISTINCT - + col2 + col1 * - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-2277
-292
-84

query II rowsort
SELECT + col0, + ( - col2 ) + - 18 FROM tab0 cor0
----
15
-65
87
-28
97
-117

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-421
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-421
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT - - col1 * 39 FROM tab1 AS cor0
----
1833
195
546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-423
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 25 * + + col2 + + col1 FROM tab0 AS cor0
----
-1094
-229
-2474

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = - ( + col2 ) + - 31 + 0 * 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT ALL - col1 + - + col2 + ( - 74 ) - 70 DIV - - col1 FROM tab1
----
-152
-189
-190

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL - col1 + - + col2 + ( - 74 ) - 70 / - - col1 FROM tab1
----
-152
-189
-190

query I rowsort
SELECT ALL col2 + col2 * - 88 AS col0 FROM tab1
----
-5133
-5916
-8352

query I rowsort
SELECT ALL 57 - - col2 * col0 * - 6 * col0 FROM tab0
----
-454083
-5588889
-63393

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT COUNT( * ) - + 66 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-429
SELECT COUNT ( * ) - + 66 FROM tab1
----
-63

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - + MAX( + + 84 ) - - 40 AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-432
SELECT - + MAX ( + + 84 ) - - 40 AS col0 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) - - 19 AS col2 FROM tab0 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-433
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) - - 19 AS col2 FROM tab0 AS cor0
----
3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT DISTINCT - MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT 3 / 36 + col0 FROM tab1 AS cor0 WHERE NOT + 0 * + col0 * + - col1 * + 76 / - - col0 / 67 = ( NULL )
----

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab2 cor0
----
-57

query I rowsort
SELECT + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT ALL - 58 + + 80 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + + 97 + + col2 + - - col0 + + CAST( NULL AS SIGNED ) * + col0 AND col0
----

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - 58 + + 80 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + + 97 + + col2 + - - col0 + + CAST ( NULL AS INTEGER ) * + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT - COUNT( col2 ) * + MIN( ALL - - col1 ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-440
SELECT - COUNT ( col2 ) * + MIN ( ALL - - col1 ) FROM tab2 AS cor0
----
-153

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL > col0 )
----

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

query I rowsort
SELECT + col1 * + ( + col1 ) AS col1 FROM tab1
----
196
2209
25

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

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

query I rowsort
SELECT col2 * 59 + - col1 FROM tab1
----
3476
3965
5650

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

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

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

query I rowsort
SELECT col1 - - - col1 FROM tab0 AS cor0 WHERE 7 >= 18
----

query I rowsort
SELECT ALL col0 + - + 16 AS col0 FROM tab0 AS cor0
----
-1
71
81

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

query I rowsort
SELECT ALL + 73 * 34 + + 3 FROM tab0
----
2485
2485
2485

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

skipif mysql # not compatible
query I rowsort label-452
SELECT COUNT ( * ) + + 70 FROM tab1
----
73

query I rowsort
SELECT - 0 + + 59 FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT COUNT( * ) + - 2 * 7 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-454
SELECT COUNT ( * ) + - 2 * 7 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT DISTINCT 97 * 1 * + + MIN( - col0 ) + + + 50 FROM tab2
----
-7225

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT 97 * 1 * + + MIN ( - col0 ) + + + 50 FROM tab2
----
-7225

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

query I rowsort
SELECT 20 FROM tab0 WHERE - col0 IS NOT NULL
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-458
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST( - - col2 AS SIGNED ) ) - + col2 IN ( + 23 * - - col2 + - - col2 * + 68 )
----

skipif mysql # not compatible
query III rowsort label-458
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST ( - - col2 AS INTEGER ) ) - + col2 IN ( + 23 * - - col2 + - - col2 * + 68 )
----

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

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

query I rowsort
SELECT + ( - - col0 ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT 40 * 55 AS col0 FROM tab1
----
2200

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-463
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 11 >= CAST( NULL AS SIGNED ) * 67
----

skipif mysql # not compatible
query IIIIII rowsort label-463
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 11 >= CAST ( NULL AS INTEGER ) * 67
----

query II rowsort
SELECT DISTINCT 91 AS col2, - 61 AS col0 FROM tab2
----
91
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 68 AS col2, col2 * ( - - col0 ) + + - 32 + - - col1 col2 FROM tab1 cor0
----
-68
4878
-68
4988
-68
6203

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

query I rowsort
SELECT - col1 * col1 + + + 22 FROM tab0 cor0
----
-419
-6539
21

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

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

query I rowsort
SELECT - + 67 + - 24 + + + col1 AS col2 FROM tab1 AS cor0
----
-44
-77
-86

query I rowsort
SELECT + col1 + + 49 AS col2 FROM tab0 AS cor0
----
130
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL COUNT( + 43 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL COUNT ( + 43 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + ( - - col0 ) col1 FROM tab0 AS cor0
----
174
194
30

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

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

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

query I rowsort
SELECT DISTINCT 25 FROM tab2, tab0 AS cor0
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL COUNT( * ) + - MIN( - ( col0 ) ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL COUNT ( * ) + - MIN ( - ( col0 ) ) AS col0 FROM tab1
----
94

query I rowsort
SELECT - - 17 * 10 * 23 AS col1 FROM tab0 AS cor0
----
3910
3910
3910

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT - 68 + 1 FROM tab0 cor0 WHERE - 97 <> - col1
----
-67
-67
-67

query I rowsort
SELECT ALL + col2 + - 64 AS col0 FROM tab0 AS cor0
----
-17
-54
35

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - ( + - SUM( ALL + col0 ) ) * + ( MAX( DISTINCT - ( col0 ) ) ) FROM tab1 AS cor0
----
-11577

skipif mysql # not compatible
query I rowsort label-483
SELECT - ( + - SUM ( ALL + col0 ) ) * + ( MAX ( DISTINCT - ( col0 ) ) ) FROM tab1 AS cor0
----
-11577

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * 26 col0 FROM tab0 AS cor0
----
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT + - col2 DIV - col1 * - - col1 - + 86 FROM tab0 AS cor0
----
-86
-86
13

skipif mysql # not compatible
query I rowsort label-485
SELECT + - col2 / - col1 * - - col1 - + 86 FROM tab0 AS cor0
----
-86
-86
13

query I rowsort
SELECT 17 / - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) - + 81 col2 FROM tab1 AS cor0
----
-13
-22
15

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

query I rowsort
SELECT - 19 FROM tab1 WHERE + col0 IS NULL
----

query II rowsort
SELECT + col0 * + col1, - col0 * - 98 - + col0 AS col0 FROM tab1
----
425
8245
4277
8827
714
4947

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

query I rowsort
SELECT DISTINCT col1 * ( 9 ) AS col1 FROM tab1
----
126
423
45

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT - ( + - col0 ) DIV + col2 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT - ( + - col0 ) / + col2 FROM tab0 cor0
----
0
8

query II rowsort
SELECT ALL 12 AS col1, 22 + ( + 98 ) FROM tab2 cor0
----
12
120
12
120
12
120

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

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

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

query I rowsort
SELECT DISTINCT - ( - 27 ) AS col2 FROM tab0
----
27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT 45 + - - col2 * - CAST( + col1 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-1248
-165
-3060

skipif mysql # not compatible
query I rowsort label-500
SELECT 45 + - - col2 * - CAST ( + col1 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-1248
-165
-3060

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 51 * - + col0 BETWEEN NULL AND ( 46 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + - 6 ) col1 FROM tab2 AS cor0 WHERE NULL IN ( + col2, - col0, - 98, 5, - - col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-504
SELECT ALL + + CAST( + 65 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + + CAST ( + 65 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL - col2 - - - ( - col0 ) FROM tab2
----
17
23
24

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

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

query I rowsort
SELECT + - col1 - - 86 + + col0 FROM tab0 AS cor0
----
152
182
20

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 48, 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col2 * - col1 * + CAST( NULL AS SIGNED ) / 24
----

skipif mysql # not compatible
query III rowsort label-509
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - col2 * - col1 * + CAST ( NULL AS INTEGER ) / 24
----

query I rowsort
SELECT DISTINCT + col2 + col0 + col1 + - col2 FROM tab0 cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT COUNT( * ) * - COUNT( * ) * - 46 AS col0 FROM tab1 cor0
----
414

skipif mysql # not compatible
query I rowsort label-511
SELECT COUNT ( * ) * - COUNT ( * ) * - 46 AS col0 FROM tab1 cor0
----
414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-512
SELECT - SUM( - CAST( + - col2 AS SIGNED ) ), + MAX( ALL col2 ) AS col2 FROM tab0
----
-156
99

skipif mysql # not compatible
query II rowsort label-512
SELECT - SUM ( - CAST ( + - col2 AS INTEGER ) ), + MAX ( ALL col2 ) AS col2 FROM tab0
----
-156
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 col2, + col1 FROM tab2
----
55
51
55
67
55
77

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT 29 * + COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-514
SELECT 29 * + COUNT ( * ) AS col2 FROM tab0
----
87

query I rowsort
SELECT ( ( - col0 ) ) * - col2 * + + col0 AS col2 FROM tab1
----
249696
426275
563108

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

skipif mysql # not compatible
query II rowsort label-516
SELECT DISTINCT 40, - CAST ( NULL AS INTEGER ) / + + col0 AS col0 FROM tab1
----
40
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT DISTINCT - ( ( 94 ) ) DIV - col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT - ( ( 94 ) ) / - col2 FROM tab1 AS cor0
----
0
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * 61 AS col0, - col0 + + col2 col0 FROM tab1
----
-3599
-26
-4148
-23
-5856
45

onlyif mysql # aggregate syntax: 
query II rowsort label-521
SELECT ALL - COUNT( * ) * - - 78 AS col0, 40 FROM tab0
----
-234
40

skipif mysql # not compatible
query II rowsort label-521
SELECT ALL - COUNT ( * ) * - - 78 AS col0, 40 FROM tab0
----
-234
40

query I rowsort
SELECT - col0 * - 59 * - - 32 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
160480
171808
96288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT DISTINCT - - 56 DIV - COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - - 56 / - COUNT ( * ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - 35 + 23 + - - 8 AS col2 FROM tab2 AS cor0
----
-4
-4
-4

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-526
SELECT ALL + CAST( - col2 AS SIGNED ) AS col0, 33 FROM tab1 AS cor0
----
-59
33
-68
33
-96
33

skipif mysql # not compatible
query II rowsort label-526
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col0, 33 FROM tab1 AS cor0
----
-59
33
-68
33
-96
33

query I rowsort
SELECT DISTINCT + 93 + col2 + - col1 * + col0 * - 36 FROM tab2 AS cor0
----
177541
181051
84572

query I rowsort
SELECT DISTINCT 30 * col1 + - col1 FROM tab1 AS cor0
----
1363
145
406

query I rowsort
SELECT ALL + col0 + - 49 FROM tab1
----
2
36
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE + 73 * - col2 / + 25 - - 43 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-531
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-531
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE 7 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + + 63 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + + 63 < NULL
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT + COUNT( * ) * + + MAX( col2 ) AS col2 FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-537
SELECT + COUNT ( * ) * + + MAX ( col2 ) AS col2 FROM tab2 cor0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT + COUNT( * ) * - CAST( + 74 AS SIGNED ) + + 14 AS col2 FROM tab0 AS cor0
----
-208

skipif mysql # not compatible
query I rowsort label-538
SELECT + COUNT ( * ) * - CAST ( + 74 AS INTEGER ) + + 14 AS col2 FROM tab0 AS cor0
----
-208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 + ( - ( + 61 ) ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col2, ( + + col1 ) * col0 + - col0 AS col2 FROM tab2 cor0
----
-23
2300
-40
4864
-58
4950

query II rowsort
SELECT ALL - col0, 38 AS col2 FROM tab1 AS cor0
----
-51
38
-85
38
-91
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-542
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col1 / - col2 * - CAST( NULL AS DECIMAL ) * - 19 * + + col2 * col0 + 54 NOT IN ( + col2 / - col2 + + col0 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col1 / - col2 * - CAST ( NULL AS REAL ) * - 19 * + + col2 * col0 + 54 NOT IN ( + col2 / - col2 + + col0 + + col1 )
----
0

query I rowsort
SELECT DISTINCT 56 * col1 AS col1 FROM tab1
----
2632
280
784

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

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

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - 41 > col1 - col2 + col2 * - col0 - - - col0
----

query II rowsort
SELECT DISTINCT - 42 * col2, - 11 AS col2 FROM tab1
----
-2478
-11
-2856
-11
-4032
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT ALL col2 + + + CAST( col1 AS SIGNED ) FROM tab2 cor0 WHERE NULL IS NULL
----
117
125
74

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL col2 + + + CAST ( col1 AS INTEGER ) FROM tab2 cor0 WHERE NULL IS NULL
----
117
125
74

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

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

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

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

query I rowsort
SELECT ALL - col0 * + 18 FROM tab2
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT DISTINCT - 81, MIN( - 14 ) AS col1 FROM tab0 AS cor0
----
-81
-14

skipif mysql # not compatible
query II rowsort label-552
SELECT DISTINCT - 81, MIN ( - 14 ) AS col1 FROM tab0 AS cor0
----
-81
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT + + ( - + 7 ) DIV col1 - - + col0 DIV 98 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-553
SELECT + + ( - + 7 ) / col1 - - + col0 / 98 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-555
SELECT DISTINCT - col0 col2, col1 * - + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-555
SELECT DISTINCT - col0 col2, col1 * - + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 * + col0 * + - col2 col1 FROM tab1 AS cor0
----
-249645
-426190
-563017

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

query I rowsort
SELECT - 23 + - + col1 AS col2 FROM tab0 cor0
----
-104
-24
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT col2 + - CAST( + 60 AS SIGNED ) FROM tab0
----
-13
-50
39

skipif mysql # not compatible
query I rowsort label-560
SELECT col2 + - CAST ( + 60 AS INTEGER ) FROM tab0
----
-13
-50
39

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT - ( - col1 ) DIV + col1 + + col2 AS col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-561
SELECT - ( - col1 ) / + col1 + + col2 AS col0 FROM tab0
----
100
11
48

query II rowsort
SELECT DISTINCT + col0 - + 0 + - + col2 + + 63 * - col2 AS col2, + col0 FROM tab1
----
-3691
85
-4261
91
-6093
51

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT + 30 - + + ( MIN( 64 ) ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT + 30 - + + ( MIN ( 64 ) ) AS col0 FROM tab1 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + COUNT( * ) * - - 72 col1 FROM tab1, tab1 AS cor0
----
648

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

query I rowsort
SELECT ALL + col1 * - col1 * + + col2 + - - col0 AS col1 FROM tab0 cor0
----
-2
-308352
-4323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT 40, col2 FROM tab0 AS cor0
----
40
10
40
47
40
99

query I rowsort
SELECT ALL + col2 * + 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT - CAST( - ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-569
SELECT - CAST ( - ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

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

query I rowsort
SELECT - - 13 * + - col1 FROM tab2 cor0
----
-1001
-663
-871

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-574
SELECT - 80 * + COUNT( ALL - + 83 ) DIV - COUNT( * ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-574
SELECT - 80 * + COUNT ( ALL - + 83 ) / - COUNT ( * ) AS col0 FROM tab0
----
80

query II rowsort
SELECT DISTINCT 34, + col2 FROM tab1
----
34
59
34
68
34
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 7 col2 FROM tab0
----
329
693
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-577
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - + 88 * + col0 NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query III rowsort label-577
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - + 88 * + col0 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 > NULL
----

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT ALL - ( + 42 ) AS col2 FROM tab0, tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - ( + 42 ) AS col2 FROM tab0, tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT NULL = + 78
----

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

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

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

query I rowsort
SELECT DISTINCT col1 + 69 FROM tab1 AS cor0
----
116
74
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT DISTINCT + col1 + - 67 + 91 DIV - + col2 col0 FROM tab2 AS cor0
----
-1
-19
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-591
SELECT DISTINCT + col1 + - 67 + 91 / - + col2 col0 FROM tab2 AS cor0
----
-1
-19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT COUNT( ALL + - 78 ) col1 FROM tab0
----
3

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

query I rowsort
SELECT ALL + 75 + - - col1 - - 38 FROM tab1
----
118
127
160

query I rowsort
SELECT ALL + col2 - + - col0 AS col2 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-595
SELECT DISTINCT - 66 * ( + ( - CAST( ( + 19 ) AS DECIMAL ) ) ) - + col1 FROM tab2 WHERE + - col2 + 43 NOT BETWEEN NULL AND - 66 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - 66 * ( + ( - CAST ( ( + 19 ) AS REAL ) ) ) - + col1 FROM tab2 WHERE + - col2 + 43 NOT BETWEEN NULL AND - 66 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 + col2 + col1 FROM tab2
----
157
183
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - 18 + + + COUNT( * ) - - 99 FROM tab1 cor0
----
84

skipif mysql # not compatible
query I rowsort label-598
SELECT - 18 + + + COUNT ( * ) - - 99 FROM tab1 cor0
----
84

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

skipif mysql # not compatible
query I rowsort label-599
SELECT + - SUM ( ALL - col0 ) + COUNT ( * ) - 73 AS col1 FROM tab2 AS cor0
----
115

query I rowsort
SELECT + col0 * 32 + 34 AS col2 FROM tab1 cor0
----
1666
2754
2946

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / - 40 * + 67 + col1 + - + 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT NULL >= - 21 + - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-608
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT NULL >= - 21 + - CAST ( + col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 73 ) col0 FROM tab0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 89 NOT BETWEEN - col2 / - col2 + + + col2 AND + col2
----

query I rowsort
SELECT ALL - 9 * + + col2 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT DISTINCT - + col0 + 25 * - col1 + col2 FROM tab0 AS cor0
----
-1993
-23
-602

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-614
SELECT DISTINCT - - MAX( ALL + 78 ) * + CAST( NULL AS SIGNED ) * + 49 * - - COUNT( col1 ) * + 42 FROM tab0 WHERE - + 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - - MAX ( ALL + 78 ) * + CAST ( NULL AS INTEGER ) * + 49 * - - COUNT ( col1 ) * + 42 FROM tab0 WHERE - + 55 IS NULL
----
NULL

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

query I rowsort
SELECT ALL + + 39 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT MAX( ALL - ( + + 11 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-11

skipif mysql # not compatible
query I rowsort label-617
SELECT MAX ( ALL - ( + + 11 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-11

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

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

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

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

query I rowsort
SELECT ALL - col0 * - col2 + - - 92 FROM tab0 AS cor0 WHERE NULL IS NULL
----
797
962
9695

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT 14 * + col1 + + col1 DIV - 26 AS col1 FROM tab0
----
1131
14
294

skipif mysql # not compatible
query I rowsort label-622
SELECT 14 * + col1 + + col1 / - 26 AS col1 FROM tab0
----
1131
14
294

query I rowsort
SELECT + 2 + 9 * + col1 FROM tab1
----
128
425
47

query I rowsort
SELECT DISTINCT ( - col0 ) + - 79 FROM tab2
----
-125
-143
-154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-625
SELECT col2 + - + col0, col0 * + col0 * 73 DIV CAST( - col0 AS SIGNED ) AS col1 FROM tab0
----
-77
-6351
2
-7081
32
-1095

skipif mysql # not compatible
query II rowsort label-625
SELECT col2 + - + col0, col0 * + col0 * 73 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab0
----
-77
-6351
2
-7081
32
-1095

query I rowsort
SELECT DISTINCT 55 - - col0 + + col2 * col0 * - 43 * + 22 FROM tab0
----
-666860
-822878
-9084286

query I rowsort
SELECT + + col0 + + 1 AS col1 FROM tab1 WHERE - - ( - col1 ) IS NOT NULL
----
52
86
92

query I rowsort
SELECT - 24 * - col0 + col1 + + 29 * + - col1 FROM tab2
----
-324
-620
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + col1 col0, + col0 AS col2 FROM tab2
----
102
46
134
75
154
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-630
SELECT + CAST( + 26 AS SIGNED ) col2, - 12 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-630
SELECT + CAST ( + 26 AS INTEGER ) col2, - 12 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
26
NULL
26
NULL
26
NULL

query I rowsort
SELECT ALL - col0 * 95 * 84 AS col0 FROM tab1
----
-406980
-678300
-726180

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT + + MIN( DISTINCT - col2 ) DIV + 85 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-633
SELECT + + MIN ( DISTINCT - col2 ) / + 85 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT DISTINCT + 92 DIV 49 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT + 92 / 49 AS col1 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT 55 * + - COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-636
SELECT 55 * + - COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-165

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-638
SELECT * FROM tab1 WHERE NULL < + ( - + col2 ) AND CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-638
SELECT * FROM tab1 WHERE NULL < + ( - + col2 ) AND CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT - 73 * + 16, 63 AS col2 FROM tab2
----
-1168
63
-1168
63
-1168
63

query I rowsort
SELECT + - 91 FROM tab0 WHERE NOT 88 = col0
----
-91
-91
-91

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

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

query I rowsort
SELECT ALL col0 + + - 80 * - + col1 + - col1 AS col2 FROM tab1 AS cor0
----
1157
3804
480

query I rowsort
SELECT DISTINCT + - col2 * + - col1 + - col1 FROM tab1 cor0 WHERE 62 NOT BETWEEN 31 * + - 11 * + 66 * - + col2 * - + 62 AND - - col0 * + ( - + 26 )
----
1330
290
3149

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 15 + - - col2 + + - col1 + - 8 * - - 83 / - - col2 - + - col2, col2, col0 + + 43, + col2, - 26 )
----

query I rowsort
SELECT + + col2 * - col0 * + 66 AS col1 FROM tab0 AS cor0
----
-46530
-57420
-633798

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

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

query I rowsort
SELECT DISTINCT 42 * - - col0 AS col1 FROM tab2 AS cor0
----
1932
2688
3150

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

skipif mysql # not compatible
query I rowsort label-648
SELECT + - col2 * 15 / - col2 AS col1 FROM tab1 AS cor0
----
15
15
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 + + col2 col0 FROM tab1 AS cor0
----
18
46
9

query I rowsort
SELECT DISTINCT + 10 * col2 FROM tab2 AS cor0
----
230
400
580

query I rowsort
SELECT ALL + - 84 * - - col1 + col2 * - - col0 FROM tab1 AS cor0
----
2240
3720
4595

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( - col0 * col2 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT + + MAX( + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-654
SELECT + + MAX ( + col2 ) FROM tab1 AS cor0
----
96

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

query I rowsort
SELECT DISTINCT + ( + 77 ) + + 30 AS col2 FROM tab2
----
107

query I rowsort
SELECT + col0 - - col2 + - + col0 AS col0 FROM tab0 WHERE NULL <= + 43 + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 46 BETWEEN NULL AND + 79
----

query I rowsort
SELECT ALL - col1 + + col2 + + 98 + - col0 * - + 25 FROM tab2
----
1220
1661
1964

query II rowsort
SELECT ALL + col2 AS col1, 39 + - + 84 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND NULL
----

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

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

query I rowsort
SELECT 91 + col1 FROM tab0
----
112
172
92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT 26 AS col0, SUM( + 62 ) + - 85 FROM tab1 AS cor0
----
26
101

skipif mysql # not compatible
query II rowsort label-664
SELECT 26 AS col0, SUM ( + 62 ) + - 85 FROM tab1 AS cor0
----
26
101

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-666
SELECT ALL + - COUNT ( * ) col2, 74 * 73 AS col0 FROM tab1 AS cor0
----
-3
5402

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 39 * - col1 <= NULL
----

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

query I rowsort
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( - - 85 ) * - col0 - + + col0 * + 29 BETWEEN col2 AND NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 + - 62, - 17 / col0 * ( + + 68 ) + 65, + + 14 + - - 9 / - 19, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT DISTINCT - + col2 + col2 DIV - + 68 col0 FROM tab0 AS cor0
----
-10
-100
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-671
SELECT DISTINCT - + col2 + col2 / - + 68 col0 FROM tab0 AS cor0
----
-10
-100
-47

query I rowsort
SELECT col1 * + col2 * - + col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-197120
-291450
-53958

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

query I rowsort
SELECT ALL col2 * - 96 AS col2 FROM tab1
----
-5664
-6528
-9216

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

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

query I rowsort
SELECT ALL - 64 * + 19 FROM tab0
----
-1216
-1216
-1216

query I rowsort
SELECT ALL + col0 + + 76 AS col2 FROM tab0
----
163
173
91

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

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

query II rowsort
SELECT DISTINCT 28 AS col2, col0 FROM tab0
----
28
15
28
87
28
97

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-682
SELECT DISTINCT - + 29 DIV CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - + 29 / CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
0
1

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

query I rowsort
SELECT + 98 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + - 96 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT - 77 * - + 59 FROM tab0 WHERE col2 IS NOT NULL
----
4543
4543
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + + col1 ) - + col2 col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-688
SELECT ALL - CAST( NULL AS SIGNED ) * + 55 / 91 + ( + - 25 ) * + ( - col1 ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL - CAST ( NULL AS INTEGER ) * + 55 / 91 + ( + - 25 ) * + ( - col1 ), col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ( 14 ) AS col1 FROM tab1
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT ALL + MAX( - + col2 ) FROM tab0 WHERE - col2 * - col0 / + col2 >= - CAST( - col1 AS SIGNED ) * - + 36 + - ( col2 ) + + 51 / + + col1 * col0 + - col2 + - col1 * - 92 * + col2 * col1 + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + MAX ( - + col2 ) FROM tab0 WHERE - col2 * - col0 / + col2 >= - CAST ( - col1 AS INTEGER ) * - + 36 + - ( col2 ) + + 51 / + + col1 * col0 + - col2 + - col1 * - 92 * + col2 * col1 + - - col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 53 < - - col1 - - col0 / + col1
----

query I rowsort
SELECT ALL - 37 * - col1 AS col0 FROM tab2
----
1887
2479
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT COUNT( * ) * 33 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT COUNT ( * ) * 33 FROM tab1
----
99

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - 37 col0 FROM tab2 AS cor0
----
1702
2368
2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT DISTINCT CAST( col1 AS SIGNED ) * - + col0 col2 FROM tab0
----
-1215
-1827
-97

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 35 NOT BETWEEN col1 AND - - ( - ( col2 ) ) / - col1 + + 24 + col1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT ALL + 27 DIV + 48 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + 27 / + 48 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col0 + - col0 * + 17 * + - 93 * + 70 FROM tab0 AS cor0
----
10735087
1660065
9628377

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT col1 + + col2 + + 81 * - - col0 * - - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE 65 NOT BETWEEN NULL AND + ( - col2 )
----
210791
585289
670876

skipif mysql # not compatible
query I rowsort label-703
SELECT col1 + + col2 + + 81 * - - col0 * - - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE 65 NOT BETWEEN NULL AND + ( - col2 )
----
210791
585289
670876

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT SUM( + col2 ) + COUNT( * ) + + 99 AS col1 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT SUM ( + col2 ) + COUNT ( * ) + + 99 AS col1 FROM tab0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT COUNT( + col2 ) col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND - - col2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-705
SELECT COUNT ( + col2 ) col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND - - col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT ALL 52 DIV + - MIN( + col2 ) * - 78 + + + 40 AS col2 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL 52 / + - MIN ( + col2 ) * - 78 + + + 40 AS col2 FROM tab1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL SUM( + col2 ) * - + SUM( ALL + - col0 ) FROM tab0
----
31044

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL SUM ( + col2 ) * - + SUM ( ALL + - col0 ) FROM tab0
----
31044

onlyif mysql # aggregate syntax: 
query II rowsort label-708
SELECT DISTINCT - + SUM( ALL + 71 ) AS col2, 81 AS col0 FROM tab1 AS cor0
----
-213
81

skipif mysql # not compatible
query II rowsort label-708
SELECT DISTINCT - + SUM ( ALL + 71 ) AS col2, 81 AS col0 FROM tab1 AS cor0
----
-213
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-709
SELECT 69 DIV col2 + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
41
59

skipif mysql # not compatible
query I rowsort label-709
SELECT 69 / col2 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
41
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-710
SELECT ALL - - COUNT( DISTINCT - CAST( + + col1 AS DECIMAL ) ) FROM tab0 AS cor0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-711
SELECT ALL * FROM tab0 WHERE + 43 NOT IN ( - - col2 / + col1 + 26 - + col0, col2, + CAST( + col2 AS SIGNED ) + + col1, - + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-711
SELECT ALL * FROM tab0 WHERE + 43 NOT IN ( - - col2 / + col1 + 26 - + col0, col2, + CAST ( + col2 AS INTEGER ) + + col1, - + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - - 51 / - 38 IS NULL
----

query I rowsort
SELECT DISTINCT - 85 * - 99 * 39 - col1 * col0 + + 93 FROM tab1
----
324001
327564
327853

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT - MAX( DISTINCT 52 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-714
SELECT - MAX ( DISTINCT 52 ) FROM tab0 AS cor0
----
-52

query I rowsort
SELECT col2 * - 79 AS col2 FROM tab2 AS cor0
----
-1817
-3160
-4582

query I rowsort
SELECT ALL - col0 * col1 + + - col0 AS col1 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL - COUNT( * ) col1 FROM tab1 cor0 WHERE NOT + col1 NOT BETWEEN + col0 AND NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT col1 DIV + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 25 NOT BETWEEN col0 AND 92 * col0 + + col2
----
1

skipif mysql # not compatible
query I rowsort label-719
SELECT col1 / + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 25 NOT BETWEEN col0 AND 92 * col0 + + col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL = + 64
----
0

skipif mysql # not compatible
query I rowsort label-720
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL = + 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT col1 DIV - ( - col0 ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-721
SELECT col1 / - ( - col0 ) FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT + MAX( ALL - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT + MAX ( ALL - - col2 ) FROM tab2
----
58

query II rowsort
SELECT + - ( 57 ), col0 * - 97 AS col2 FROM tab0 AS cor0
----
-57
-1455
-57
-8439
-57
-9409

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

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

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab1 cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - 87
----

query I rowsort
SELECT - col1 * - col0 * col1 * + - col0 AS col1 FROM tab2
----
-24285184
-25250625
-5503716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 16 col1, col1 FROM tab1
----
-16
14
-16
47
-16
5

query I rowsort
SELECT ALL + 1 AS col1 FROM tab0 WHERE NOT + col2 >= NULL
----

query II rowsort
SELECT - - col1 * col0 + + - 42, 62 + + - col2 AS col0 FROM tab1 AS cor0
----
383
3
4235
-6
672
-34

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

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

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

query I rowsort
SELECT - + 95 * + - ( + - col2 ) * + col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + - 7
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 19 <> NULL
----

query II rowsort
SELECT ALL - col1 + + col1 + + + col1 AS col0, 16 * - col1 FROM tab1 AS cor0
----
14
-224
47
-752
5
-80

query I rowsort
SELECT ALL col1 + + + ( col2 ) FROM tab1
----
110
115
64

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

query I rowsort
SELECT + 43 + + 14 - - + col2 * + + 63 FROM tab0
----
3018
6294
687

query I rowsort
SELECT col0 + + 74 FROM tab1
----
125
159
165

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT ALL - col1 * - + col2 + - col0 DIV - col1 - + col2 * + + col2 * + ( col0 ) AS col2 FROM tab0
----
-29328
-8486
-950501

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - col1 * - + col2 + - col0 / - col1 - + col2 * + + col2 * + ( col0 ) AS col2 FROM tab0
----
-29328
-8486
-950501

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

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

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

query I rowsort
SELECT ALL 11 + + + 44 FROM tab2
----
55
55
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT CAST( + 23 AS SIGNED ) * - ( + + col0 ) FROM tab1
----
-1173
-1955
-2093

skipif mysql # not compatible
query I rowsort label-745
SELECT CAST ( + 23 AS INTEGER ) * - ( + + col0 ) FROM tab1
----
-1173
-1955
-2093

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

skipif mysql # not compatible
query I rowsort label-746
SELECT + COUNT ( * ) / + 41 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT ALL + 69 DIV + COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + 69 / + COUNT ( * ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-748
SELECT - 14 DIV col0 DIV 75 AS col1, - ( - + 50 ) + + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col1 AS col0 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-748
SELECT - 14 / col0 / 75 AS col1, - ( - + 50 ) + + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col1 AS col0 FROM tab2
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - COUNT( DISTINCT - 81 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-749
SELECT - COUNT ( DISTINCT - 81 ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + - 25 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 + + - col1, col2, + 80 + + col1, - col2 - - - col1, + - col1 )
----

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

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

query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab2 AS cor0 WHERE col1 BETWEEN col1 - - col2 AND NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 47 * - col2 + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-755
SELECT + SUM ( - ( - 94 ) ) AS col2 FROM tab2
----
282

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col1 FROM tab1 WHERE ( 36 * col2 ) IS NOT NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT - COUNT( * ) - 71 col2 FROM tab2
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-758
SELECT - COUNT ( * ) - 71 col2 FROM tab2
----
-74

query I rowsort
SELECT DISTINCT 25 + - col1 * 47 FROM tab1
----
-210
-2184
-633

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( + 62 / + col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT 50 * - COUNT( * ) AS col2 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-761
SELECT 50 * - COUNT ( * ) AS col2 FROM tab0
----
-150

query I rowsort
SELECT + col1 * - ( 23 ) FROM tab0
----
-1863
-23
-483

query I rowsort
SELECT - 9 FROM tab0 WHERE NOT col2 > 3 / col0
----

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

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL COUNT ( * ) * 53 FROM tab2
----
159

query I rowsort
SELECT ALL + col2 * ( col2 ) AS col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT 23 + + 56 FROM tab2
----
79
79
79

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

query I rowsort
SELECT DISTINCT + col1 * 91 AS col2 FROM tab1
----
1274
4277
455

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT 97 DIV 23 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-772
SELECT 97 / 23 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-773
SELECT 35 DIV COUNT( * ) col2 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-773
SELECT 35 / COUNT ( * ) col2 FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL + 15 - + MIN( col0 ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 15 - + MIN ( col0 ) AS col2 FROM tab2
----
-31

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

query I rowsort
SELECT - ( 78 ) + - col1 FROM tab0 AS cor0
----
-159
-79
-99

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

query I rowsort
SELECT 5 * - col0 + + col0 FROM tab2 AS cor0
----
-184
-256
-300

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

query I rowsort
SELECT 45 + 52 AS col1 FROM tab2 AS cor0 WHERE ( + col2 * - 58 ) IS NOT NULL
----
97
97
97

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

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

query I rowsort
SELECT - 25 FROM ( tab0 AS cor0 CROSS JOIN tab2 ) WHERE NOT 54 IS NULL
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT DISTINCT + MIN( - 20 ) - - MAX( ALL col1 ) AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT + MIN ( - 20 ) - - MAX ( ALL col1 ) AS col2 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL COUNT( * ) * 38 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL COUNT ( * ) * 38 FROM tab2 AS cor0
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT + SUM( 98 ) + - 44 FROM tab0 AS cor0 WHERE NULL IS NULL
----
250

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + SUM ( 98 ) + - 44 FROM tab0 AS cor0 WHERE NULL IS NULL
----
250

query I rowsort
SELECT DISTINCT - col0 * + 25 FROM tab1 AS cor0
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT ALL - 95 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - 95 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL + MIN( + col2 ) * 23 FROM tab2 AS cor0
----
529

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + MIN ( + col2 ) * 23 FROM tab2 AS cor0
----
529

query I rowsort
SELECT DISTINCT + ( 9 ) * 48 AS col1 FROM tab1 AS cor0
----
432

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

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT ( - col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT ( - col2 ) / + col2 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 * 79 AS col0 FROM tab2 AS cor0
----
1817
3160
4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col1 col1 FROM tab1 AS cor0
----
196
2209
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - ( COUNT( - col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-796
SELECT - ( COUNT ( - col2 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 * 22 FROM tab0
----
1782
22
462

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL - COUNT( * ) * - - 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - COUNT ( * ) * - - 88 FROM tab2
----
-264

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 + col2 FROM tab0 AS cor0
----
-643
-773
-9407

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT * FROM tab0 WHERE ( ( col0 ) BETWEEN col0 / CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-805
SELECT * FROM tab0 WHERE ( ( col0 ) BETWEEN col0 / CAST ( NULL AS INTEGER ) AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-806
SELECT DISTINCT - 97 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT - 97 * CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / col1 / col2 + - col1 <= + 79 * 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < ( 87 * + col2 * + 86 + + 87 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-814
SELECT 46 + + + col0 + col2 + CAST( col2 AS SIGNED ) * + col2 * - col1 * + 74 AS col0 FROM tab2
----
-16678533
-1996331
-9116650

skipif mysql # not compatible
query I rowsort label-814
SELECT 46 + + + col0 + col2 + CAST ( col2 AS INTEGER ) * + col2 * - col1 * + 74 AS col0 FROM tab2
----
-16678533
-1996331
-9116650

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL + 75 + - 35 + COUNT( * ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + 75 + - 35 + COUNT ( * ) AS col0 FROM tab1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - 46 col0, 86 + + 93 FROM tab0
----
-25
179
-45
179
35
179

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT + COUNT( * ) + 48 DIV - + COUNT( * ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-819
SELECT + COUNT ( * ) + 48 / - + COUNT ( * ) AS col2 FROM tab2
----
-13

query I rowsort
SELECT ALL - 72 AS col2 FROM tab1 WHERE - 34 * + + col1 IS NOT NULL
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT 95 + - CAST( - + col0 AS SIGNED ) * - col2 FROM tab0
----
-610
-775
-9508

skipif mysql # not compatible
query I rowsort label-821
SELECT 95 + - CAST ( - + col0 AS INTEGER ) * - col2 FROM tab0
----
-610
-775
-9508

query III rowsort
SELECT * FROM tab0 WHERE 19 - + col1 * - col2 = NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + + 51 / - col0 * - col1 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 > + - 29 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT DISTINCT MAX( DISTINCT - + 77 ) AS col0 FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT MAX ( DISTINCT - + 77 ) AS col0 FROM tab1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - 2 * + 21 * 67 * COUNT( * ) * MAX( DISTINCT + 53 ) AS col2 FROM tab2
----
-447426

skipif mysql # not compatible
query I rowsort label-827
SELECT - 2 * + 21 * 67 * COUNT ( * ) * MAX ( DISTINCT + 53 ) AS col2 FROM tab2
----
-447426

query I rowsort
SELECT DISTINCT - 77 * + 2 AS col2 FROM tab0 AS cor0
----
-154

query I rowsort
SELECT DISTINCT - 37 * - col0 AS col2 FROM tab1 cor0
----
1887
3145
3367

query I rowsort
SELECT + col2 * 40 + + col1 FROM tab0 AS cor0
----
1961
3961
421

query I rowsort
SELECT - col1 / + - 63 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( + 43 ) )
----

query II rowsort
SELECT DISTINCT 10 AS col2, - col2 FROM tab2 cor0
----
10
-23
10
-40
10
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL COUNT( - - col1 ) * - 77 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL COUNT ( - - col1 ) * - 77 FROM tab1 AS cor0
----
-231

query I rowsort
SELECT ALL col2 - 74 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IN ( - - col2 )
----
-27
-64
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 54 col2 FROM tab1 AS cor0
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL 75 * + COUNT( * ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL 75 * + COUNT ( * ) FROM tab1
----
225

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-841
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - col0 * CAST( NULL AS SIGNED ) * + + col0 * - 56 )
----

skipif mysql # not compatible
query III rowsort label-841
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - col0 * CAST ( NULL AS INTEGER ) * + + col0 * - 56 )
----

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

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

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

query II rowsort
SELECT ALL + + col1 + - col2 AS col0, + 25 * + 24 AS col2 FROM tab2 AS cor0
----
28
600
37
600
9
600

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

query I rowsort
SELECT + col2 * + col2 * 80 AS col0 FROM tab0 AS cor0
----
176720
784080
8000

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT - + ( ( - col1 ) ) DIV - + ( - col1 ) + - - ( - 90 ) + + col0 * - col0 * - col0 FROM tab1 AS cor0
----
132562
614036
753482

skipif mysql # not compatible
query I rowsort label-848
SELECT - + ( ( - col1 ) ) / - + ( - col1 ) + - - ( - 90 ) + + col0 * - col0 * - col0 FROM tab1 AS cor0
----
132562
614036
753482

query I rowsort
SELECT ALL + - col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 > NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-853
SELECT DISTINCT * FROM tab1 WHERE - CAST( + col1 AS DECIMAL ) * - 97 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-853
SELECT DISTINCT * FROM tab1 WHERE - CAST ( + col1 AS REAL ) * - 97 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 68 ) + col0 FROM tab1
----
119
153
159

query I rowsort
SELECT DISTINCT 67 - - - col2 * col0 FROM tab0
----
-638
-803
-9536

query I rowsort
SELECT 64 - - col2 AS col0 FROM tab1
----
123
132
160

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT 26 + - + 85 + + 2 * - COUNT( * ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-857
SELECT 26 + - + 85 + + 2 * - COUNT ( * ) FROM tab0
----
-65

query II rowsort
SELECT DISTINCT 42 * - col0 - + 55 AS col0, col1 * col1 AS col1 FROM tab1
----
-2197
196
-3625
25
-3877
2209

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

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT DISTINCT 71 AS col2, SUM( 2 ) * - + COUNT( * ) + + COUNT( * ) - + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
71
-162

skipif mysql # not compatible
query II rowsort label-860
SELECT DISTINCT 71 AS col2, SUM ( 2 ) * - + COUNT ( * ) + + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
71
-162

query I rowsort
SELECT ALL 34 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - col2 * + + 84 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT + col1 + - 95 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 * - col0 * - 19 col0 FROM tab0
----
1084995
182457
347130

query I rowsort
SELECT 47 * + + 20 FROM tab2
----
940
940
940

query I rowsort
SELECT - col0 * - + 56 FROM tab0
----
4872
5432
840

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

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

query I rowsort
SELECT - col1 * - col1 + - 23 FROM tab1
----
173
2
2186

query I rowsort
SELECT 56 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col2 + + 80 + - ( - - col2 ) * col1 FROM tab2 AS cor0
----
-1065
-2963
-3797

query I rowsort
SELECT + ( - - 63 ) AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT ( - - 38 ) FROM tab0
----
38
38
38

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

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

query II rowsort
SELECT ALL - col0 AS col0, - 77 AS col2 FROM tab1 AS cor0
----
-51
-77
-85
-77
-91
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ( + 82 ) + COUNT( * ) * - MIN( + - col1 ) FROM tab0 AS cor0
----
325

skipif mysql # not compatible
query I rowsort label-879
SELECT ( + 82 ) + COUNT ( * ) * - MIN ( + - col1 ) FROM tab0 AS cor0
----
325

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

query I rowsort
SELECT + col1 + + col0 + + - col2 * - 17 AS col0 FROM tab2 AS cor0
----
1128
488
821

query I rowsort
SELECT - col2 * col0 + - + col0 FROM tab0 cor0 WHERE + 3 = ( NULL )
----

query I rowsort
SELECT ALL + + 32 * - col1 FROM tab1 AS cor0
----
-1504
-160
-448

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

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + COUNT ( * ) + + - 95 AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT DISTINCT - col1 + + - 4 + 52 AS col0 FROM tab0 AS cor0
----
-33
27
47

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

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

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT CAST ( NULL AS REAL ) + + - COUNT ( * ) AS col1 FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT + ( - COUNT( ALL + - 70 ) ) - + + MAX( 20 ) AS col2 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + ( - COUNT ( ALL + - 70 ) ) - + + MAX ( 20 ) AS col2 FROM tab0
----
-23

query I rowsort
SELECT + 52 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

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

query I rowsort
SELECT - 57 FROM tab0 cor0 WHERE NOT 76 <> NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-893
SELECT DISTINCT + + col2 * - - col2 AS col0, col1 DIV - col1 + 86 AS col2, col2 col0 FROM tab2 AS cor0
----
9 values hashing to dac89d3723db8bda5c994e676dc86173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-893
SELECT DISTINCT + + col2 * - - col2 AS col0, col1 / - col1 + 86 AS col2, col2 col0 FROM tab2 AS cor0
----
9 values hashing to dac89d3723db8bda5c994e676dc86173

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-896
SELECT ALL - COUNT( DISTINCT - ( 86 ) ) AS col0, 52 + 79 FROM tab1 AS cor0
----
-1
131

skipif mysql # not compatible
query II rowsort label-896
SELECT ALL - COUNT ( DISTINCT - ( 86 ) ) AS col0, 52 + 79 FROM tab1 AS cor0
----
-1
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, + col0 col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-899
SELECT CAST( NULL AS SIGNED ) col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-899
SELECT CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT - MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
-97

query II rowsort
SELECT col0 * - col0 AS col1, - col2 + + ( - col1 ) + 18 FROM tab1
----
-2601
-92
-7225
-46
-8281
-97

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( - - col2 * + col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT SUM( - 36 ) col2 FROM tab1
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-903
SELECT SUM ( - 36 ) col2 FROM tab1
----
-108

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

query II rowsort
SELECT ALL + col0 + + - 94, col0 + - col1 + - col0 * + ( 71 ) AS col0 FROM tab0
----
-7
-6111
-79
-1131
3
-6791

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

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT ALL + MIN( + + 79 ), 78 AS col1 FROM tab2
----
79
78

skipif mysql # not compatible
query II rowsort label-907
SELECT ALL + MIN ( + + 79 ), 78 AS col1 FROM tab2
----
79
78

query I rowsort
SELECT + ( col0 ) * + + 58 FROM tab0 WHERE + 87 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 35 * + col2 + 99 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - 9
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL - COUNT( * ) + - ( 53 ) AS col1 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - COUNT ( * ) + - ( 53 ) AS col1 FROM tab2 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT DISTINCT + + col2 * - col1 * - ( ( + 74 ) ) - - col2 DIV col0 + - 50 AS col1 FROM tab0 AS cor0
----
15490
281671
7277

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT + + col2 * - col1 * - ( ( + 74 ) ) - - col2 / col0 + - 50 AS col1 FROM tab0 AS cor0
----
15490
281671
7277

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT DISTINCT + 33 * - 15 - - col1 + 90 DIV - 43 + - col0 AS col1 FROM tab1
----
-534
-541
-577

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + 33 * - 15 - - col1 + 90 / - 43 + - col0 AS col1 FROM tab1
----
-534
-541
-577

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 77 >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 IN ( + - 11 + + 44 * - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT DISTINCT + COUNT( * ) * - MIN( ALL - 53 ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + COUNT ( * ) * - MIN ( ALL - 53 ) FROM tab1 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query II rowsort label-917
SELECT col1 AS col0, col1 + - - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
2
21
22
81
82

skipif mysql # not compatible
query II rowsort label-917
SELECT col1 AS col0, col1 + - - col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
2
21
22
81
82

query I rowsort
SELECT DISTINCT + col1 * col2 * - + col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

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

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

query II rowsort
SELECT + - col1 * - col2 * + + col2 AS col0, col2 - + ( col1 ) + col2 FROM tab2 cor0
----
123200
3
225388
49
26979
-5

query I rowsort
SELECT 58 - + + col0 FROM tab2 AS cor0
----
-17
-6
12

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

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

query I rowsort
SELECT - - 82 - 80 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( + + ( - - 61 ) ) FROM tab0
----
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-926
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV - col1 + + 36 FROM tab0
----
135
36

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / - col1 + + 36 FROM tab0
----
135
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT + SUM( ALL + - col2 ) * + 32 FROM tab0
----
-4992

skipif mysql # not compatible
query I rowsort label-928
SELECT + SUM ( ALL + - col2 ) * + 32 FROM tab0
----
-4992

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

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

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

query I rowsort
SELECT ALL + 91 * - col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + COUNT( 42 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-934
SELECT + COUNT ( 42 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 59 AS col0 FROM tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT col0 * 79 + + - col2 - 17 AS col2 FROM tab2 AS cor0
----
3594
4999
5850

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - 75 NOT IN ( - col2, 3, col0 )
----
46
64
75

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

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

query I rowsort
SELECT ALL col1 + 63 FROM tab0
----
144
64
84

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT ALL col2 + col2 + + 33 DIV - col1 * - col1 AS col0 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL col2 + col2 + + 33 / - col1 * - col1 AS col0 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT col1 DIV + ( - + 15 ) + col2 + + - col1 DIV ( + + col2 ) FROM tab1
----
59
65
96

skipif mysql # not compatible
query I rowsort label-941
SELECT col1 / + ( - + 15 ) + col2 + + - col1 / ( + + col2 ) FROM tab1
----
59
65
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT col1 DIV - col2 + - + ( + + col2 ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-943
SELECT col1 / - col2 + - + ( + + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + 45 + - 99 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT + 7 + + 79 + - col1 FROM tab1 AS cor0
----
39
72
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + 80
----

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

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

query I rowsort
SELECT 9 * 2 - col0 FROM tab1 AS cor0
----
-33
-67
-73

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

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

query I rowsort
SELECT DISTINCT + col0 + + col2 + - col0 FROM tab1
----
59
68
96

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

query I rowsort
SELECT ALL + col0 / ( + col1 ) FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col1 * 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT 11 * - + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-953
SELECT 11 * - + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col2 - - col0 * - + col0 FROM tab2 cor0
----
-2093
-4056
-5567

onlyif mysql # DIV for integer division: 
query I rowsort label-955
SELECT ALL - - col2 * col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
10
20
50

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL - - col2 * col2 / + col1 AS col2 FROM tab2 AS cor0
----
10
20
50

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

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

query I rowsort
SELECT + 32 * - 37 FROM tab2
----
-1184
-1184
-1184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT DISTINCT COUNT( DISTINCT - + col0 ) * + 84 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) * + 84 FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT DISTINCT - CAST( + 50 AS SIGNED ) AS col2 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - CAST ( + 50 AS INTEGER ) AS col2 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT - 43 * SUM( ( + ( - ( col1 ) ) ) ) * - 84 AS col2 FROM tab1 AS cor0
----
-238392

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT - 43 * SUM ( ( + ( - ( col1 ) ) ) ) * - 84 AS col2 FROM tab1 AS cor0
----
-238392

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT 84 * - 69 * - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
17388

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT 84 * - 69 * - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
17388

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT COUNT( DISTINCT - + col0 ) + 78 AS col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-964
SELECT COUNT ( DISTINCT - + col0 ) + 78 AS col0 FROM tab1 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-965
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 NOT IN ( 95 + col0 * - - CAST( + col2 AS SIGNED ), col2 + + col1 + 81 )
----

skipif mysql # not compatible
query III rowsort label-965
SELECT * FROM tab2 AS cor0 WHERE NOT + 10 NOT IN ( 95 + col0 * - - CAST ( + col2 AS INTEGER ), col2 + + col1 + 81 )
----

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

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

query I rowsort
SELECT - 35 + - col1 FROM tab0 AS cor0
----
-116
-36
-56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT ALL 17 DIV + col0 + col0 AS col1 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL 17 / + col0 + col0 AS col1 FROM tab0 AS cor0
----
16
87
97

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT - SUM( ALL + + 57 ) AS col0 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-973
SELECT - SUM ( ALL + + 57 ) AS col0 FROM tab1 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE - 52 * + ( - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-974
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE - 52 * + ( - col2 ) IS NOT NULL
----
3

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

query I rowsort
SELECT ALL + col1 * + col1 FROM tab0 WHERE NULL IS NULL
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-977
SELECT 86 DIV - - col2 + 44 + + col2 + + col1 + - col2 * ( col1 ) AS col1 FROM tab1 WHERE + col1 + 20 >= - CAST( - + col1 AS SIGNED )
----
-1190
-186
-3036

skipif mysql # not compatible
query I rowsort label-977
SELECT 86 / - - col2 + 44 + + col2 + + col1 + - col2 * ( col1 ) AS col1 FROM tab1 WHERE + col1 + 20 >= - CAST ( - + col1 AS INTEGER )
----
-1190
-186
-3036

query I rowsort
SELECT 16 * - 34 AS col2 FROM tab0
----
-544
-544
-544

query I rowsort
SELECT - 99 * + col2 * - 99 + col2 * + 49 FROM tab2 AS cor0
----
226550
394000
571300

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT + + 77 DIV 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-980
SELECT + + 77 / 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT - 20 * + ( COUNT( * ) ) - 72 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - 20 * + ( COUNT ( * ) ) - 72 FROM tab1 AS cor0
----
-132

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

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

query I rowsort
SELECT + col1 * + 99 FROM tab1 cor0
----
1386
4653
495

query II rowsort
SELECT + col0 AS col2, col0 * + col1 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0, tab2 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL - 94 * - COUNT( + + ( + - col1 ) ) * + - 44 AS col2 FROM tab2
----
-12408

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - 94 * - COUNT ( + + ( + - col1 ) ) * + - 44 AS col2 FROM tab2
----
-12408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-988
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col0, - ( + 22 ) * - CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-988
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( + col0, - ( + 22 ) * - CAST ( + - col1 AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT 47 * - - col2 AS col1, col2 - + + col2 FROM tab1
----
2773
0
3196
0
4512
0

query I rowsort
SELECT + ( + 39 ) * + + 63 + + 74 AS col1 FROM tab2
----
2531
2531
2531

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT + 96 AS col2 FROM tab1 cor0 WHERE NOT + CAST( + col0 AS SIGNED ) + - 40 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-992
SELECT + 96 AS col2 FROM tab1 cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) + - 40 IS NOT NULL
----

query I rowsort
SELECT - 66 * - col2 FROM tab2
----
1518
2640
3828

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT DISTINCT 81 DIV - col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 81 / - col2 AS col1 FROM tab1
----
-1
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + ( col2 ) ) + 53 >= - ( 41 )
----

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

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

query I rowsort
SELECT + col0 + - 60 FROM tab1 AS cor0
----
-9
25
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT + ( col1 ) DIV + col0 + + + 8 AS col0 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1000
SELECT + ( col1 ) / + col0 + + + 8 AS col0 FROM tab1
----
8
8
8

query I rowsort
SELECT col0 + - col1 * - ( - - col0 ) FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL - 61 + - 97 FROM tab1
----
-158
-158
-158

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT ( CAST ( - 24 AS INTEGER ) ) + - COUNT ( * ) FROM tab2
----
-27

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

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

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

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

query I rowsort
SELECT 86 + col1 * - - col2 AS col2 FROM tab2
----
1259
3166
3972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + - - col1 + - 56 col0 FROM tab0
----
-108
-28
-88

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT DISTINCT 29 + + COUNT( - - col0 ) AS col0 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT 29 + + COUNT ( - - col0 ) AS col0 FROM tab2 AS cor0
----
32

query I rowsort
SELECT - col2 * - ( - - col0 ) * + col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT ALL + col0 + - 47 AS col1 FROM tab1 AS cor0
----
38
4
44

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1015
SELECT ALL - CAST( + CAST( 24 AS DECIMAL ) AS SIGNED ) + + col1 * + 14 + 18 FROM tab0
----
1128
288
8

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - CAST ( + CAST ( 24 AS REAL ) AS INTEGER ) + + col1 * + 14 + 18 FROM tab0
----
1128
288
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + SUM( ALL 45 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT + SUM ( ALL 45 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT COUNT( 31 ) * SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT COUNT ( 31 ) * SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
309

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

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

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

query I rowsort
SELECT + + 69 AS col1 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - col0 * - ( 44 ) * 77 FROM tab0
----
294756
328636
50820

query I rowsort
SELECT + col0 * - + col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 78 * - - col0 FROM tab0
----
1170
6786
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + 73 * + 33 * + + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 WHERE NOT 55 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 73 * + 33 * + + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT 55 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 84 FROM tab2 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL - MIN( DISTINCT - 1 ) col1 FROM tab1
----
1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 5 col1 FROM tab2 AS cor0
----
255
335
385

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

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

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

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

query I rowsort
SELECT DISTINCT 9 * + ( col0 ) AS col2 FROM tab1
----
459
765
819

query I rowsort
SELECT - ( + 60 ) + + 47 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT + ( - + 73 ) + - col1 AS col2 FROM tab1 AS cor0
----
-120
-78
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 AS cor0 WHERE NOT 19 * - col1 IS NULL
----
-10
-47
-99

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

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

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

query I rowsort
SELECT ALL + 77 + + - col2 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT DISTINCT MAX( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT MAX ( ALL - + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT col1 + 49 * col1 FROM tab1
----
2350
250
700

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + 71 * - 37 + - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT COUNT( * ) + 22 AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-1044
SELECT COUNT ( * ) + 22 AS col2 FROM tab0
----
25

query II rowsort
SELECT - col1 AS col2, col1 * - - col0 FROM tab0 WHERE col2 - col0 IS NOT NULL
----
-1
97
-21
1827
-81
1215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - 78 / col1, col2 AS col0 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1046
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - 78 / col1, col2 AS col0 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

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

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL 99 + - COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1049
SELECT DISTINCT - 54 / col0 AS col2, + col2 col2 FROM tab1
----
-1
96
0
59
0
68

query II rowsort
SELECT ALL - col0, + col0 - - col1 AS col2 FROM tab1
----
-51
65
-85
90
-91
138

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - 16 ) > NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + 96 FROM tab0 AS cor0
----
-2016
-7776
-96

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

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

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

query II rowsort
SELECT ALL - + col0 * - - 73, col0 AS col0 FROM tab0 AS cor0
----
-1095
15
-6351
87
-7081
97

query I rowsort
SELECT DISTINCT + col1 * + 21 FROM tab0 cor0
----
1701
21
441

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1059
SELECT DISTINCT - col2 / - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT - col2 / - CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1062
SELECT col2 DIV - - col0 col1, 87 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
0
NULL
0
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1062
SELECT col2 / - - col0 col1, 87 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
0
NULL
0
NULL
1
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + col2 ) col0, 19 + + col2 AS col2 FROM tab0
----
10
29
47
66
99
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - COUNT( - 23 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1065
SELECT - COUNT ( - 23 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT DISTINCT 10 * + MIN( ALL + 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
130

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT 10 * + MIN ( ALL + 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
130

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT + 59 - + - col2 + CAST( - - col1 AS SIGNED ) * col2 + - col1 - + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
159
171
3817

skipif mysql # not compatible
query I rowsort label-1068
SELECT + 59 - + - col2 + CAST ( - - col1 AS INTEGER ) * col2 + - col1 - + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
159
171
3817

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col0 / + - col1
----

query I rowsort
SELECT col1 + - - 57 FROM tab1 AS cor0
----
104
62
71

query I rowsort
SELECT ALL 43 + 29 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
110446
2914
6133

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - COUNT( * ) * 90 FROM tab2 WHERE 84 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1072
SELECT - COUNT ( * ) * 90 FROM tab2 WHERE 84 IS NULL
----
0

query II rowsort
SELECT DISTINCT 79 + col0 AS col0, 54 + + col2 * + 47 FROM tab0
----
166
524
176
4707
94
2263

query I rowsort
SELECT DISTINCT + 89 - - - col2 FROM tab1
----
-7
21
30

query I rowsort
SELECT - col1 * col0 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
107916
315392
376875

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT - 66 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND col0 / - + ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1077
SELECT - 66 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND col0 / - + ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * - 94 + + 31 AND - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT DISTINCT - MAX( DISTINCT + - 51 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
51

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - MAX ( DISTINCT + - 51 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
51

query I rowsort
SELECT ALL - 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1082
SELECT DISTINCT col1 AS col0, col1 * 39 + + col2 DIV + col1 FROM tab1 cor0
----
14
552
47
1834
5
206

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT col1 AS col0, col1 * 39 + + col2 / + col1 FROM tab1 cor0
----
14
552
47
1834
5
206

query II rowsort
SELECT + col0, col1 + 29 FROM tab1 AS cor0
----
51
43
85
34
91
76

query I rowsort
SELECT + - 43 AS col2 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT DISTINCT COUNT( + col1 ) + - COUNT( * ) + + 68 AS col2 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT COUNT ( + col1 ) + - COUNT ( * ) + + 68 AS col2 FROM tab1
----
68

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

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

query II rowsort
SELECT + 0 AS col1, + 30 AS col2 FROM tab0
----
0
30
0
30
0
30

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

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

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

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - 39
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 16 >= - 97 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1093
SELECT - CAST( NULL AS DECIMAL ) + + - 14 * - 39 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT - CAST ( NULL AS REAL ) + + - 14 * - 39 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT ALL + CAST( - + col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + CAST ( - + col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + + 74, + 87 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
74
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 col2, 1 + + 14 FROM tab2 AS cor0
----
-1600
15
-3364
15
-529
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * + col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT - ( + col0 ) * - col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT SUM( DISTINCT + 32 ) * + MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
-3072

skipif mysql # not compatible
query I rowsort label-1100
SELECT SUM ( DISTINCT + 32 ) * + MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT 45 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT 45 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
135

query I rowsort
SELECT DISTINCT 16 + col1 AS col2 FROM tab0 AS cor0
----
17
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - MAX( ALL - col0 ) - + 87 + + 36 * + 53 AS col0 FROM tab1 AS cor0
----
1872

skipif mysql # not compatible
query I rowsort label-1103
SELECT - MAX ( ALL - col0 ) - + 87 + + 36 * + 53 AS col0 FROM tab1 AS cor0
----
1872

query I rowsort
SELECT ALL - + 48 + + col0 FROM tab0 AS cor0
----
-33
39
49

query I rowsort
SELECT ALL - col1 * - + 42 + - 60 FROM tab0
----
-18
3342
822

query II rowsort
SELECT ALL 97 AS col0, col0 * - col0 FROM tab1
----
97
-2601
97
-7225
97
-8281

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT ALL - 57 AS col1, - COUNT( * ) FROM tab2
----
-57
-3

skipif mysql # not compatible
query II rowsort label-1107
SELECT ALL - 57 AS col1, - COUNT ( * ) FROM tab2
----
-57
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1108
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - col1 * + 54 AS col0 FROM tab1 AS cor0
----
-10584
-119286
-1350

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col1 * + 54 AS col0 FROM tab1 AS cor0
----
-10584
-119286
-1350

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

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

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

query I rowsort
SELECT ALL col2 * - 98 FROM tab0
----
-4606
-9702
-980

query I rowsort
SELECT DISTINCT - 18 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
178
2191
7

query I rowsort
SELECT 50 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
50
50
50

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

query II rowsort
SELECT ALL - col0 + + col1, + col2 AS col1 FROM tab2 AS cor0
----
-8
58
13
40
5
23

query I rowsort
SELECT ALL col0 + ( + col0 ) * ( 35 ) FROM tab1
----
1836
3060
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + ( SUM( 4 ) ) col1 FROM tab0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1117
SELECT DISTINCT + ( SUM ( 4 ) ) col1 FROM tab0
----
12

query I rowsort
SELECT 20 + + 10 FROM tab1
----
30
30
30

query I rowsort
SELECT - col2 + + 11 + + + 76 AS col2 FROM tab0
----
-12
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT COUNT( - col0 ) * - 91 col0 FROM tab1
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1120
SELECT DISTINCT COUNT ( - col0 ) * - 91 col0 FROM tab1
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + 75 * + - 30 AS col2 FROM tab0 AS cor0
----
10
-2250
47
-2250
99
-2250

query I rowsort
SELECT DISTINCT - 4 / - + col0 * - col0 FROM tab0 AS cor0 WHERE col0 * + - col2 NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT ALL + 99 + - 31 FROM tab1
----
68
68
68

query I rowsort
SELECT + col1 - ( ( + + col0 ) ) FROM tab0
----
-66
-96
66

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

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

query I rowsort
SELECT col1 * 97 - + + col0 FROM tab2
----
4901
6424
7405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * - 62 col2 FROM tab2 AS cor0
----
-1380
-2416
-3521

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 44 + 39 + + col0 * - col2 IS NULL
----

query I rowsort
SELECT ALL + 45 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1131
SELECT col1 DIV + 34, col2 AS col0 FROM tab0
----
0
10
0
99
2
47

skipif mysql # not compatible
query II rowsort label-1131
SELECT col1 / + 34, col2 AS col0 FROM tab0
----
0
10
0
99
2
47

query II rowsort
SELECT 43 * - - col1 AS col1, - col1 FROM tab1 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1133
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0, 69 AS col0 FROM tab0
----
-3
69

skipif mysql # not compatible
query II rowsort label-1133
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 69 AS col0 FROM tab0
----
-3
69

query I rowsort
SELECT DISTINCT + col2 * + 8 * - col1 FROM tab2
----
-24640
-31088
-9384

query I rowsort
SELECT DISTINCT - 91 * col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT + - ( CAST( NULL AS SIGNED ) ) 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-1136
SELECT + - ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col0 * - 77 AS col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - 59 + + - col2 FROM tab2
----
-117
-82
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT - - col1 DIV 32 - - + col2 DIV 4 col1 FROM tab1 cor0
----
14
18
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1139
SELECT DISTINCT - - col1 / 32 - - + col2 / 4 col1 FROM tab1 cor0
----
14
18
24

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1142
SELECT ALL + ( + - 28 ) AS col2 FROM tab1 cor0 WHERE - CAST( NULL AS DECIMAL ) - 54 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + ( + - 28 ) AS col2 FROM tab1 cor0 WHERE - CAST ( NULL AS REAL ) - 54 IS NOT NULL
----

query II rowsort
SELECT - - 21, + col1 * + - col2 * - + col1 AS col2 FROM tab2 AS cor0
----
21
237160
21
260362
21
59823

query II rowsort
SELECT col1 * col0 * col2 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
18270
-21
57105
-81
9603
-1

query I rowsort
SELECT ALL - 15 FROM tab0 AS cor0 WHERE 68 * - col1 IS NOT NULL
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 71 / + col0 = - 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 5 * col2 * - - col2 AS col1 FROM tab0
----
-11045
-49005
-500

query I rowsort
SELECT DISTINCT - ( + col0 ) + - 75 FROM tab2
----
-121
-139
-150

query II rowsort
SELECT col1 * + - col1 AS col2, + col0 * - col2 * + + col2 * col2 AS col2 FROM tab0
----
-1
-94119003
-441
-87000
-6561
-1557345

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

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL + 61 / + - col1 AS col1 FROM tab2
----
-1
0
0

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

query I rowsort
SELECT col1 + + - col2 * + - 82 FROM tab2 AS cor0
----
1937
3357
4823

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL AND NULL >= col0 / - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1154
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 7 * - 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 7 * - 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

query I rowsort
SELECT - 63 * 95 FROM tab2
----
-5985
-5985
-5985

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

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

query I rowsort
SELECT DISTINCT + col0 - ( - + 76 ) FROM tab0 AS cor0
----
163
173
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT + MIN( - - col0 ) * + + COUNT( * ) * - 6 FROM tab2 AS cor0
----
-828

skipif mysql # not compatible
query I rowsort label-1160
SELECT + MIN ( - - col0 ) * + + COUNT ( * ) * - 6 FROM tab2 AS cor0
----
-828

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

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

query I rowsort
SELECT - 78 * + col2 AS col1 FROM tab1 AS cor0
----
-4602
-5304
-7488

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 77 < NULL
----

query I rowsort
SELECT + ( - col1 ) * col2 + 97 AS col2 FROM tab2 cor0
----
-1076
-2983
-3789

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

query II rowsort
SELECT ALL col1, + 88 FROM tab2
----
51
88
67
88
77
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( ( + col1 ) ) * - col1, - 12 * - col2 col2 FROM tab1
----
196
1152
2209
816
25
708

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT ALL + + COUNT( * ) AS col1, - COUNT( * ) + - 46 FROM tab1 AS cor0
----
3
-49

skipif mysql # not compatible
query II rowsort label-1170
SELECT ALL + + COUNT ( * ) AS col1, - COUNT ( * ) + - 46 FROM tab1 AS cor0
----
3
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1171
SELECT * FROM tab0 cor0 WHERE NOT col2 + + - col1 * col1 / - col2 * + ( + CAST( + - 46 AS SIGNED ) ) - - 92 * - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-1171
SELECT * FROM tab0 cor0 WHERE NOT col2 + + - col1 * col1 / - col2 * + ( + CAST ( + - 46 AS INTEGER ) ) - - 92 * - col2 <> NULL
----

query III rowsort
SELECT ALL col1 AS col1, 87 AS col1, + - col2 FROM tab1 AS cor0
----
9 values hashing to 25c8514c29ba01cb659bd9c1c3513f24

query I rowsort
SELECT ALL + + 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ( + 56 ) * + - COUNT( DISTINCT 46 ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-1174
SELECT ( + 56 ) * + - COUNT ( DISTINCT 46 ) AS col2 FROM tab2
----
-56

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

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

query I rowsort
SELECT - 7 FROM tab0 AS cor0 WHERE col0 <= col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT DISTINCT CAST( - + 35 AS SIGNED ) + - col0 + - 58 + - - 24 AS col0 FROM tab0
----
-156
-166
-84

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT CAST ( - + 35 AS INTEGER ) + - col0 + - 58 + - - 24 AS col0 FROM tab0
----
-156
-166
-84

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

query II rowsort
SELECT ALL col1, - 89 FROM tab0
----
1
-89
21
-89
81
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1180
SELECT + 20 AS col0 FROM tab1 WHERE + ( - - col2 ) IN ( CAST( + col2 AS SIGNED ) )
----
20
20
20

skipif mysql # not compatible
query I rowsort label-1180
SELECT + 20 AS col0 FROM tab1 WHERE + ( - - col2 ) IN ( CAST ( + col2 AS INTEGER ) )
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + - MAX( DISTINCT col1 ) + 15 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + - MAX ( DISTINCT col1 ) + 15 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 54 + + 24 FROM tab2
----
78
78
78

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

query I rowsort
SELECT ( 20 ) * - col0 - + + col1 + + 64 AS col1 FROM tab0
----
-1697
-1877
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT - SUM( + col1 ) col1 FROM tab0 AS cor0
----
-103

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

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

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

query I rowsort
SELECT ALL 87 * 80 AS col2 FROM tab1
----
6960
6960
6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

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

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE 69 <= NULL
----

query I rowsort
SELECT DISTINCT + 32 * 91 FROM tab0
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + 67 * MIN( DISTINCT col1 ) col0 FROM tab0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1192
SELECT + 67 * MIN ( DISTINCT col1 ) col0 FROM tab0
----
67

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1196
SELECT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1196
SELECT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1197
SELECT * FROM tab0 WHERE ( col1 * - CAST( - col2 AS SIGNED ) ) NOT IN ( - 20 - + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1197
SELECT * FROM tab0 WHERE ( col1 * - CAST ( - col2 AS INTEGER ) ) NOT IN ( - 20 - + 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - 28 * + 47 - col1 * - col2 FROM tab2
----
-143
1764
2570

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1204
SELECT + MIN ( 35 ) AS col1 FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE - 86 <> col2
----
3

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE - 86 <> col2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> 35
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT - 29 + 27 FROM tab0
----
-2
-2
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1211
SELECT 4 * - COUNT( CAST( NULL AS SIGNED ) * + CAST( col0 AS DECIMAL ) ) FROM tab0 WHERE NOT + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1211
SELECT 4 * - COUNT ( CAST ( NULL AS INTEGER ) * + CAST ( col0 AS REAL ) ) FROM tab0 WHERE NOT + col2 IS NULL
----
0

query I rowsort
SELECT - col1 * - 90 AS col2 FROM tab0
----
1890
7290
90

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

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

query I rowsort
SELECT + col1 * col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= 91 + + 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1215
SELECT * FROM tab0 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) + col0 * 21 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1215
SELECT * FROM tab0 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) + col0 * 21 <= NULL
----

query I rowsort
SELECT ALL - col0 + - 74 * + col2 FROM tab0 AS cor0
----
-3493
-7423
-827

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1219
SELECT ALL 23 + + CAST( MAX( DISTINCT 84 ) AS SIGNED ) FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL 23 + + CAST ( MAX ( DISTINCT 84 ) AS INTEGER ) FROM tab0 AS cor0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL COUNT( col2 ) + COUNT( * ) col2 FROM tab2 AS cor0
----
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1221
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1222
SELECT ALL * FROM tab2 WHERE + 37 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1222
SELECT ALL * FROM tab2 WHERE + 37 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL 56 * + col1 + col1 FROM tab2
----
2907
3819
4389

query I rowsort
SELECT ALL - 64 + + 23 FROM tab0 WHERE NOT NULL BETWEEN ( - 22 * - col1 - ( col0 ) ) AND ( - 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT ALL + col1 * + 14 + ( + col0 ) DIV - 34 FROM tab1
----
195
656
68

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + col1 * + 14 + ( + col0 ) / - 34 FROM tab1
----
195
656
68

query I rowsort
SELECT DISTINCT - 63 - + 32 AS col0 FROM tab2 WHERE NOT + col1 < ( col2 )
----
-95

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col0 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * + + col0 col2 FROM tab1
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 7 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 7 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 70 * - 13
----

query I rowsort
SELECT + col2 + 4 * - col2 AS col1 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE col1 BETWEEN CAST( + col1 AS SIGNED ) AND + ( col2 )
----
97

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE col1 BETWEEN CAST ( + col1 AS INTEGER ) AND + ( col2 )
----
97

query I rowsort
SELECT DISTINCT + col2 * + + 80 AS col2 FROM tab1
----
4720
5440
7680

query I rowsort
SELECT - - 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

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

query I rowsort
SELECT ALL - - 20 * + - col1 AS col0 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT DISTINCT COUNT( * ) * + 55 AS col2 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT COUNT ( * ) * + 55 AS col2 FROM tab1 AS cor0
----
165

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE col2 * - col0 >= + 94
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1240
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 * + col1 * - col0 ) NOT IN ( + col1 / - CAST( - 43 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1240
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 * + col1 * - col0 ) NOT IN ( + col1 / - CAST ( - 43 AS REAL ) )
----

query I rowsort
SELECT col1 * - col2 - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT - 55 * - MAX( - 65 ) AS col2 FROM tab2 cor0
----
-3575

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - 55 * - MAX ( - 65 ) AS col2 FROM tab2 cor0
----
-3575

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

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

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

query I rowsort
SELECT DISTINCT 49 * + - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-2303
-4851
-490

query I rowsort
SELECT 32 * - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 = ( 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 26 * + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
-1222
-2574
-260

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT - - 49 IS NULL
----
46
64
75

query I rowsort
SELECT + 4 * + col2 FROM tab1
----
236
272
384

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1253
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT - col2 * + 91 AS col1 FROM tab2
----
-2093
-3640
-5278

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - + MAX( DISTINCT - 20 ) + 96 AS col2 FROM tab0 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-1256
SELECT - + MAX ( DISTINCT - 20 ) + 96 AS col2 FROM tab0 AS cor0
----
116

query I rowsort
SELECT + + col0 + - 28 + col2 AS col2 FROM tab2 AS cor0
----
105
41
76

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

query I rowsort
SELECT - col0 * - 80 AS col2 FROM tab0 WHERE ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT ALL col1 * + 6 + 37 DIV col1 AS col2 FROM tab0 WHERE NOT ( - col0 ) BETWEEN - col0 AND - col1
----
486

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL col1 * + 6 + 37 / col1 AS col2 FROM tab0 WHERE NOT ( - col0 ) BETWEEN - col0 AND - col1
----
486

query I rowsort
SELECT - col2 + - ( col1 ) AS col1 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + COUNT( * ) + + + 1 AS col2 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-1262
SELECT + COUNT ( * ) + + + 1 AS col2 FROM tab2 cor0
----
4

query I rowsort
SELECT col1 + - col1 + + ( - col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT 70 * + col1 + 78 DIV - 22 col0 FROM tab2
----
3567
4687
5387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1264
SELECT 70 * + col1 + 78 / - 22 col0 FROM tab2
----
3567
4687
5387

query I rowsort
SELECT 71 + + + col1 + - + col2 + - col2 AS col2 FROM tab0
----
-126
58
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT 79 * 31 * + 40 * - COUNT( * ) + + 87 FROM tab2
----
-293793

skipif mysql # not compatible
query I rowsort label-1266
SELECT 79 * 31 * + 40 * - COUNT ( * ) + + 87 FROM tab2
----
-293793

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * - + col1 FROM tab0 AS cor0
----
1
441
6561

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IS NOT NULL AND NOT col0 BETWEEN ( - + 24 ) AND + col0
----

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab0 AS cor0 WHERE + 8 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * col0, col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - - col0, col2 + + - col0 )
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 17 + + + col0 AS col2 FROM tab2 cor0
----
63
81
92

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

query I rowsort
SELECT DISTINCT + 28 + + col2 AS col1 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT - + col1 + col0 + + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-10
-26
16

query I rowsort
SELECT ALL 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT CAST( - 38 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif mysql # not compatible
query I rowsort label-1288
SELECT CAST ( - 38 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT - ( + - 37 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT 57 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1291
SELECT 57 / - col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1292
SELECT - col1 DIV + + col1 AS col0, col1 - col2 + + - ( + col2 ) + + - col0 AS col1 FROM tab2 AS cor0
----
-1
-124
-1
-41
-1
-67

skipif mysql # not compatible
query II rowsort label-1292
SELECT - col1 / + + col1 AS col0, col1 - col2 + + - ( + col2 ) + + - col0 AS col1 FROM tab2 AS cor0
----
-1
-124
-1
-41
-1
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1293
SELECT ALL - + col1 DIV + - CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1294
SELECT + - CAST( - col1 AS SIGNED ) AS col0, - col0 + ( - 57 ) FROM tab2 AS cor0
----
51
-103
67
-132
77
-121

skipif mysql # not compatible
query II rowsort label-1294
SELECT + - CAST ( - col1 AS INTEGER ) AS col0, - col0 + ( - 57 ) FROM tab2 AS cor0
----
51
-103
67
-132
77
-121

query I rowsort
SELECT + 9 / - col2 FROM tab1 AS cor0 WHERE + 0 + col0 - col0 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 83 + + + col0 col1, - col1 AS col0 FROM tab1 AS cor0
----
134
-14
168
-5
174
-47

query I rowsort
SELECT - 19 - - 82 AS col0 FROM tab2
----
63
63
63

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

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

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

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

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

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

query I rowsort
SELECT ALL 5 + + + col0 FROM tab2
----
51
69
80

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

query I rowsort
SELECT + 10 + + 11 AS col1 FROM tab2
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT 3 * ( + COUNT( * ) ) + - + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1305
SELECT 3 * ( + COUNT ( * ) ) + - + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL + col0 * col0 * - - 95 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
21375
719055
893855

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT - - ( + MAX( - 23 ) ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1308
SELECT - - ( + MAX ( - 23 ) ) AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1309
SELECT ALL - ( col1 ), + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-1309
SELECT ALL - ( col1 ), + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1315
SELECT ALL col0 * - - col0 * + col2 - + col0, - 43 * 60 DIV + 21 col0 FROM tab0 AS cor0
----
10560
-122
75603
-122
931394
-122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1315
SELECT ALL col0 * - - col0 * + col2 - + col0, - 43 * 60 / + 21 col0 FROM tab0 AS cor0
----
10560
-122
75603
-122
931394
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT ALL 96 * col2 DIV col2 AS col2 FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL 96 * col2 / col2 AS col2 FROM tab1
----
96
96
96

query I rowsort
SELECT col1 * col1 + - 26 * + 25 FROM tab2
----
1951
3839
5279

query I rowsort
SELECT + 29 + + 84 FROM tab1
----
113
113
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1319
SELECT DISTINCT + CAST( + 29 AS SIGNED ) DIV + ( - COUNT( * ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + CAST ( + 29 AS INTEGER ) / + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col1 + - 29 * + ( + col0 ) FROM tab2 AS cor0
----
-1283
-1779
-2108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + col0 + - + col0 * - 51 * - ( 58 ) col1 FROM tab2 cor0
----
-136091
-189336
-221867

query I rowsort
SELECT ALL 13 + - col2 FROM tab1 cor0
----
-46
-55
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL - MAX( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) <= ( - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - MAX ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) <= ( - - col0 )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1329
SELECT + COUNT ( * ) + CAST ( 72 AS INTEGER ) FROM tab1 AS cor0
----
75

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

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col1 + - - 72 BETWEEN NULL AND - col2
----

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

query III rowsort
SELECT * FROM tab2 WHERE + + col1 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + - + col2 + + + 2 FROM tab2
----
-114
-44
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT + col0 DIV + ( col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1335
SELECT + col0 / + ( col2 ) FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + col1 col1 FROM tab0 WHERE - col1 >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT + COUNT ( * ) * + 31 FROM tab0
----
93

query III rowsort
SELECT * FROM tab2 WHERE - + 76 BETWEEN NULL AND - col0 * 62
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + col1 * - col2 * + col1 + + 28 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + 33 * + COUNT( * ) col0 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1343
SELECT + 33 * + COUNT ( * ) col0 FROM tab2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1344
SELECT ALL + MIN( - CAST( - 94 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1344
SELECT ALL + MIN ( - CAST ( - 94 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col2, COUNT( - 3 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1345
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col2, COUNT ( - 3 ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL - 98 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IN ( + col1 + - + col1, col1 + - 97 )
----
-98
-98
-98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1348
SELECT 6 DIV - + MIN( - - col1 ) * - - 29 * + - 50 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1348
SELECT 6 / - + MIN ( - - col1 ) * - - 29 * + - 50 FROM tab2
----
0

query I rowsort
SELECT 99 FROM tab2 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT - col2 * + + 56 * - col1 AS col2 FROM tab1
----
16520
178976
75264

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + + 41 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT ALL CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

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

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL - MAX ( ALL - 69 ) AS col2 FROM tab2 AS cor0
----
69

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT - CAST( - - col0 AS SIGNED ) * + 94, col1 AS col1 FROM tab1 AS cor0
----
-4794
14
-7990
5
-8554
47

skipif mysql # not compatible
query II rowsort label-1355
SELECT - CAST ( - - col0 AS INTEGER ) * + 94, col1 AS col1 FROM tab1 AS cor0
----
-4794
14
-7990
5
-8554
47

query I rowsort
SELECT ALL 60 * + 28 AS col0 FROM tab1 AS cor0
----
1680
1680
1680

query I rowsort
SELECT + col0 * + 75 + ( col1 ) FROM tab2 AS cor0
----
3501
4877
5692

query I rowsort
SELECT + + 99 + 29 FROM tab1 WHERE NOT ( + + 91 ) BETWEEN - col2 AND 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT DISTINCT COUNT( * ) * + CAST( COUNT( DISTINCT - 25 ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT COUNT ( * ) * + CAST ( COUNT ( DISTINCT - 25 ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( + - 80 ) IN ( - 0, - col0 * - 89, + + 87, + + col0 )
----
46
64
75

query II rowsort
SELECT DISTINCT + 75 AS col2, col2 FROM tab1
----
75
59
75
68
75
96

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

query I rowsort
SELECT ALL + - 58 AS col0 FROM tab0 WHERE NOT NULL = - 29 + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT + + MAX( ALL col2 ) * + COUNT( ALL col2 ) + 79 FROM tab2 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-1365
SELECT + + MAX ( ALL col2 ) * + COUNT ( ALL col2 ) + 79 FROM tab2 AS cor0
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL + SUM( ALL + 77 ) FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + SUM ( ALL + 77 ) FROM tab1 AS cor0
----
231

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

query I rowsort
SELECT DISTINCT 72 + + 63 + + + 99 AS col1 FROM tab1 AS cor0
----
234

query I rowsort
SELECT DISTINCT ( - - 22 ) + - col0 AS col0 FROM tab0 AS cor0
----
-65
-75
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT + COUNT( * ) - MAX( + col0 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + COUNT ( * ) - MAX ( + col0 ) FROM tab0
----
-94

query II rowsort
SELECT DISTINCT + col0 * + - col0 - - + col2, col0 * 16 * 13 AS col0 FROM tab2 AS cor0
----
-2093
9568
-4056
13312
-5567
15600

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 * - + col1 FROM tab2 AS cor0
----
123200
225388
26979

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1376
SELECT ALL CAST( NULL AS DECIMAL ) / 29 * - - 8 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL CAST ( NULL AS REAL ) / 29 * - - 8 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL MIN( - col0 ) + + MAX( col1 ) FROM tab0 WHERE col2 * + 44 + - - 21 * - col2 BETWEEN ( + + col0 - + col0 + - - col1 - 78 * - col0 ) AND - CAST( NULL AS SIGNED ) / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL MIN ( - col0 ) + + MAX ( col1 ) FROM tab0 WHERE col2 * + 44 + - - 21 * - col2 BETWEEN ( + + col0 - + col0 + - - col1 - 78 * - col0 ) AND - CAST ( NULL AS INTEGER ) / - col1
----
NULL

query I rowsort
SELECT DISTINCT col2 * - + 41 FROM tab0
----
-1927
-4059
-410

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL + MIN( DISTINCT col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + MIN ( DISTINCT col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
46

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT COUNT ( * ) * COUNT ( * ) * - - COUNT ( + col2 ) * + COUNT ( * ) + + + CAST ( + + 76 AS INTEGER ) AS col2 FROM tab1
----
157

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

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

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

query I rowsort
SELECT - 8 * - col2 + + - 63 AS col2 FROM tab0 AS cor0
----
17
313
729

query I rowsort
SELECT ALL + 23 * - col1 * + 32 FROM tab2 cor0
----
-37536
-49312
-56672

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT ( + ( + MIN( ALL + ( 46 ) ) ) ) AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT ( + ( + MIN ( ALL + ( 46 ) ) ) ) AS col0 FROM tab1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT + COUNT( * ) DIV + SUM( ALL + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT + COUNT ( * ) / + SUM ( ALL + col0 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL BETWEEN + col2 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT + + 39 DIV - col1 + + + col2 FROM tab1 AS cor0
----
52
68
94

skipif mysql # not compatible
query I rowsort label-1389
SELECT + + 39 / - col1 + + + col2 FROM tab1 AS cor0
----
52
68
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - COUNT( DISTINCT 80 ) + - 63 FROM tab0 AS cor0 WHERE NOT col1 = - col0
----
-64

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - COUNT ( DISTINCT 80 ) + - 63 FROM tab0 AS cor0 WHERE NOT col1 = - col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT CAST( - 65 AS SIGNED ) col2 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1392
SELECT CAST ( - 65 AS INTEGER ) col2 FROM tab0 AS cor0
----
-65
-65
-65

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

query I rowsort
SELECT DISTINCT col2 + - 51 AS col0 FROM tab0
----
-4
-41
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + 41 + + 19 col0 FROM tab1
----
2069
2069
2069

onlyif mysql # DIV for integer division: 
query II rowsort label-1396
SELECT - 5 DIV - col0 + + + col0, + 53 AS col0 FROM tab1
----
51
53
85
53
91
53

skipif mysql # not compatible
query II rowsort label-1396
SELECT - 5 / - col0 + + + col0, + 53 AS col0 FROM tab1
----
51
53
85
53
91
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + 50 + COUNT( DISTINCT + col0 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1397
SELECT + 50 + COUNT ( DISTINCT + col0 ) FROM tab2
----
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT DISTINCT - - col0 col0 FROM tab1 AS cor0 WHERE NOT - 19 NOT IN ( - - ( - ( col1 ) ) + - - CAST( - 42 AS SIGNED ), 0 / - - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1399
SELECT DISTINCT - - col0 col0 FROM tab1 AS cor0 WHERE NOT - 19 NOT IN ( - - ( - ( col1 ) ) + - - CAST ( - 42 AS INTEGER ), 0 / - - col0 )
----

query I rowsort
SELECT DISTINCT + 62 + col1 + - col0 FROM tab1 AS cor0
----
-18
18
25

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE - col2 * + col2 <= ( + + 62 / + ( + + col2 ) - 61 * + col0 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 4 + col2 < ( + + 73 ) * + col0 + + - 7
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT 30 DIV - ( + MAX( ALL - 9 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT 30 / - ( + MAX ( ALL - 9 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + 63 <> 8
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1405
SELECT ALL ( - 62 ) * + COUNT( - col1 ), - 61 AS col0 FROM tab2 AS cor0
----
-186
-61

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL ( - 62 ) * + COUNT ( - col1 ), - 61 AS col0 FROM tab2 AS cor0
----
-186
-61

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col2 col2, col0 + - col0 + - col0 col1 FROM tab2 AS cor0
----
-1058
-46
-2560
-64
-4350
-75

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

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

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

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

query I rowsort
SELECT DISTINCT + 79 * - col1 FROM tab2
----
-4029
-5293
-6083

query I rowsort
SELECT ALL ( ( + col0 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT 2 * - COUNT( * ) * ( + 67 ) FROM tab1
----
-402

skipif mysql # not compatible
query I rowsort label-1412
SELECT 2 * - COUNT ( * ) * ( + 67 ) FROM tab1
----
-402

query I rowsort
SELECT DISTINCT + + 16 AS col0 FROM tab1 WHERE + 92 IS NOT NULL
----
16

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 94 * - col2 BETWEEN + + col0 / col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL + + 93 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1417
SELECT ALL col0 AS col0, + col1 - + - col2 DIV - - 23 FROM tab1
----
51
18
85
7
91
49

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL col0 AS col0, + col1 - + - col2 / - - 23 FROM tab1
----
51
18
85
7
91
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1418
SELECT + col1 + col1 * - col1 + - CAST( + + col2 AS DECIMAL ) FROM tab0 WHERE NOT - - col2 <> 97
----

skipif mysql # not compatible
query I rowsort label-1418
SELECT + col1 + col1 * - col1 + - CAST ( + + col2 AS REAL ) FROM tab0 WHERE NOT - - col2 <> 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 * col2 + + 25, col0 col1 FROM tab0
----
1609
97
185
87
777
15

query I rowsort
SELECT col0 + + - 5 FROM tab0 cor0
----
10
82
92

query I rowsort
SELECT DISTINCT - 83 + + + 97 FROM tab2 cor0
----
14

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

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

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

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

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

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

query I rowsort
SELECT - col0 * + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
4896
5015
6188

query I rowsort
SELECT ALL col0 + 23 FROM tab1
----
108
114
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT ALL + col1 + + CAST( + col1 AS SIGNED ) + - 38 * ( - col1 ) FROM tab0
----
3240
40
840

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + col1 + + CAST ( + col1 AS INTEGER ) + - 38 * ( - col1 ) FROM tab0
----
3240
40
840

query II rowsort
SELECT DISTINCT + col1 + - 53, col0 - + + col2 AS col2 FROM tab2
----
-2
23
14
17
24
24

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

query II rowsort
SELECT - 82 + - - col2 AS col0, 0 FROM tab0 AS cor0
----
-35
0
-72
0
17
0

query II rowsort
SELECT - 38 + - col0, 51 * + col1 AS col2 FROM tab1 AS cor0
----
-123
255
-129
2397
-89
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + - col1 * - + col2 * + + col2 * + 32 + - - 1 = - ( + + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1433
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + - col1 * - + col2 * + + col2 * + 32 + - - 1 = - ( + + col0 )
----
3

query I rowsort
SELECT DISTINCT - - 56 * col1 AS col1 FROM tab1 cor0
----
2632
280
784

query I rowsort
SELECT DISTINCT ( 63 ) * + - 26 * - + ( - 16 ) FROM tab2 AS cor0
----
-26208

query I rowsort
SELECT + col0 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT - - SUM( - ( + 17 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT - - SUM ( - ( + 17 ) ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( col2 + - CAST( + col2 AS SIGNED ) ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1438
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( col2 + - CAST ( + col2 AS INTEGER ) ) IS NULL
----
14
47
5

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

query I rowsort
SELECT ALL + 19 * - ( + + 1 ) FROM tab2
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + 80 * - COUNT( * ) FROM tab2 WHERE NOT 57 > + 19
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + 80 * - COUNT ( * ) FROM tab2 WHERE NOT 57 > + 19
----
0

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

skipif mysql # not compatible
query I rowsort label-1442
SELECT - CAST ( NULL AS INTEGER ) * - 93 * - col0 * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT + COUNT( * ) FROM tab0 WHERE NOT + + 80 > + 52
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + + 80 > + 52
----
0

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

query II rowsort
SELECT + col0 * - col2, 75 AS col0 FROM tab1
----
-4896
75
-5015
75
-6188
75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 29 - - col1, col1 )
----

query II rowsort
SELECT 63, + ( + col0 ) + - + col1 AS col1 FROM tab0
----
63
-66
63
66
63
96

query I rowsort
SELECT ALL + 56 * ( - 15 ) AS col2 FROM tab2
----
-840
-840
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT 40, MAX( - 5 ) AS col1 FROM tab1 cor0
----
40
-5

skipif mysql # not compatible
query II rowsort label-1449
SELECT 40, MAX ( - 5 ) AS col1 FROM tab1 cor0
----
40
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT DISTINCT - COUNT( * ) + - 59 * - 25 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
1466

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT - COUNT ( * ) + - 59 * - 25 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
1466

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * - - col0 * - - col0 * - col2 FROM tab0 AS cor0
----
497025
756900
92217609

query I rowsort
SELECT - col1 * 47 * - + col2 + - - 76 AS col0 FROM tab2 AS cor0
----
144836
182718
55207

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE + 33 BETWEEN ( + - 7 ) AND 21 + + - col2
----

query I rowsort
SELECT ALL + col2 + - - 89 * + + col1 FROM tab1 cor0
----
1342
4251
504

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

query I rowsort
SELECT DISTINCT col1 + - 98 FROM tab2
----
-21
-31
-47

query I rowsort
SELECT DISTINCT - 86 - + col2 - + col2 FROM tab1
----
-204
-222
-278

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

query I rowsort
SELECT - col2 + + 36 + - col2 FROM tab0
----
-162
-58
16

query I rowsort
SELECT DISTINCT 77 + - ( - 88 ) AS col0 FROM tab0
----
165

query II rowsort
SELECT DISTINCT 55, - col2 * + 50 AS col2 FROM tab2
----
55
-1150
55
-2000
55
-2900

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

skipif mysql # not compatible
query I rowsort label-1465
SELECT COUNT ( ALL + - col0 ) FROM tab1
----
3

query II rowsort
SELECT 30, - col1 AS col1 FROM tab1
----
30
-14
30
-47
30
-5

query II rowsort
SELECT - 33, + col0 * 99 AS col1 FROM tab0
----
-33
1485
-33
8613
-33
9603

query I rowsort
SELECT DISTINCT - - 82 * + + col0 FROM tab0 AS cor0
----
1230
7134
7954

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT COUNT( * ) * + + 26 col0 FROM tab1 AS cor0 WHERE NOT col2 - + 95 IS NOT NULL
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1471
SELECT + col1 * - ( - CAST ( NULL AS INTEGER ) ) * + col1 * - 54 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + COUNT( * ) * + MAX( 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT + COUNT ( * ) * + MAX ( 0 ) FROM tab1
----
0

query I rowsort
SELECT - col2 * - col1 * 13 FROM tab0
----
1287
2730
49491

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 43 <= - - col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT MAX( + 21 ) FROM tab0, tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT MAX ( + 21 ) FROM tab0, tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT ( - col0 ) * 37 + - 58 FROM tab0 AS cor0
----
-3277
-3647
-613

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

query II rowsort
SELECT + col2, 19 * + col2 AS col1 FROM tab2 AS cor0
----
23
437
40
760
58
1102

query II rowsort
SELECT col1 + + + col0 + + 9 * - + ( + col1 ) * - 80 AS col0, - col1 + - + col0 + + + ( + + col1 ) FROM tab2
----
36817
-46
48382
-75
55581
-64

query I rowsort
SELECT DISTINCT 57 * + 5 AS col1 FROM tab1 AS cor0
----
285

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

query I rowsort
SELECT + + 28 FROM tab1 AS cor0 WHERE col1 <= col2
----
28
28
28

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

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

query I rowsort
SELECT DISTINCT - ( + + col0 ) + 78 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT + + COUNT( * ) * 61 + - 18 + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 55
----
-18

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT + + COUNT ( * ) * 61 + - 18 + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 55
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1490
SELECT + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( 24 ) + col0 - + 63 FROM tab0
----
-24
48
58

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + - 50 * col0
----

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

query I rowsort
SELECT + 53 - col0 + + - col2 - col1 * 65 FROM tab0
----
-1409
-208
-5274

query II rowsort
SELECT ALL - col2 - - + col0 AS col0, 9 AS col0 FROM tab1
----
-45
9
23
9
26
9

query I rowsort
SELECT col1 FROM tab2 WHERE + col0 * - 62 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL MAX( col2 ) - - - COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL MAX ( col2 ) - - - COUNT ( * ) FROM tab1
----
93

query I rowsort
SELECT + 50 - - - 4 FROM tab0 WHERE NULL NOT BETWEEN col2 + - col0 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 - 84 AS col1 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT col1 + - - 90 - - 9 FROM tab1
----
104
113
146

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1502
SELECT + COUNT( * ) AS col2, MIN( - - 44 ), MIN( ALL ( + + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0
NULL
NULL

skipif mysql # not compatible
query III rowsort label-1502
SELECT + COUNT ( * ) AS col2, MIN ( - - 44 ), MIN ( ALL ( + + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0
NULL
NULL

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

query I rowsort
SELECT 15 + + - 36 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT 67 * + + 32 * + col0 * - - col0 AS col2 FROM tab1 AS cor0
----
15490400
17754464
5576544

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - + col0 AND col1
----
15
81
47
87
21
10

query I rowsort
SELECT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 36, 96 * 0 / - 70 )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 56 * 25 NOT BETWEEN - ( - col0 ) + + col2 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL COUNT( DISTINCT + 81 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL COUNT ( DISTINCT + 81 ) FROM tab1
----
1

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

skipif mysql # not compatible
query I rowsort label-1511
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT + col1 + col2 IS NOT NULL
----
0

query I rowsort
SELECT col1 * + 12 * - - col1 FROM tab1
----
2352
26508
300

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + col1 + - - col0 = ( - col1 - 29 - ( 52 ) * + 6 )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1514
SELECT DISTINCT CAST( + + ( - - ( - col0 ) ) AS SIGNED ) AS col1, col2 + + col2 AS col0 FROM tab1
----
-51
192
-85
118
-91
136

skipif mysql # not compatible
query II rowsort label-1514
SELECT DISTINCT CAST ( + + ( - - ( - col0 ) ) AS INTEGER ) AS col1, col2 + + col2 AS col0 FROM tab1
----
-51
192
-85
118
-91
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1516
SELECT - 34 * + COUNT( * ) + - CAST( SUM( DISTINCT - col2 ) AS SIGNED ) DIV COUNT( * ) AS col2 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-1516
SELECT - 34 * + COUNT ( * ) + - CAST ( SUM ( DISTINCT - col2 ) AS INTEGER ) / COUNT ( * ) AS col2 FROM tab0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT COUNT( * ) + + 46 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1517
SELECT COUNT ( * ) + + 46 FROM tab1 AS cor0
----
49

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + MIN ( 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT 14, - COUNT( * ) AS col2 FROM tab1
----
14
-3

skipif mysql # not compatible
query II rowsort label-1519
SELECT 14, - COUNT ( * ) AS col2 FROM tab1
----
14
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1520
SELECT - col1 + + 97 + + - CAST( NULL AS SIGNED ) AS col1, 77 AS col2 FROM tab1 AS cor0
----
NULL
77
NULL
77
NULL
77

skipif mysql # not compatible
query II rowsort label-1520
SELECT - col1 + + 97 + + - CAST ( NULL AS INTEGER ) AS col1, 77 AS col2 FROM tab1 AS cor0
----
NULL
77
NULL
77
NULL
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - 90 + - col1 NOT IN ( - col0, - col0 * col2 ) AND col2 <> NULL
----

query I rowsort
SELECT ALL - col0 + + + col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL 36 * - - 76 FROM tab1 cor0
----
2736
2736
2736

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

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

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

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

query I rowsort
SELECT ALL - 17 + + - col0 * 64 FROM tab2 cor0
----
-2961
-4113
-4817

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

query I rowsort
SELECT ALL + col0 + - 43 FROM tab1
----
42
48
8

query I rowsort
SELECT ALL + 74 - - col1 FROM tab0
----
155
75
95

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT DISTINCT + col2 - + col0 + + col2 + col2 DIV + - col0 + - col2 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT + col2 - + col0 + + col2 + col2 / + - col0 + - col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab2 WHERE + 17 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 80 - + 7 + - col1 AS col0 FROM tab1
----
1099
3706
388

query II rowsort
SELECT DISTINCT col2 AS col1, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + col0 - - 63 - + col2 FROM tab1
----
18
86
89

query II rowsort
SELECT ALL + col1 AS col2, 15 + - - col2 * - + col2 * - - col1 * + col0 + - + col1 FROM tab1 AS cor0
----
14
-6580223
47
-19776880
5
-1479415

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NULL <> NULL
----
0

query I rowsort
SELECT - 64 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT - ( - COUNT( - 54 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1542
SELECT - ( - COUNT ( - 54 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - SUM( - + 67 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
201

skipif mysql # not compatible
query I rowsort label-1543
SELECT - SUM ( - + 67 ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
201

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

query I rowsort
SELECT 76 * - 52 FROM tab1
----
-3952
-3952
-3952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT + SUM( ALL - 48 ) * + 27 + COUNT( * ) + 82 AS col0 FROM tab2 AS cor0
----
-3803

skipif mysql # not compatible
query I rowsort label-1547
SELECT + SUM ( ALL - 48 ) * + 27 + COUNT ( * ) + 82 AS col0 FROM tab2 AS cor0
----
-3803

query I rowsort
SELECT DISTINCT - - 59 + + col2 FROM tab1 AS cor0
----
118
127
155

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + MAX( + col0 ) + + + 34 col1 FROM tab2
----
109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1549
SELECT + MAX ( + col0 ) + + + 34 col1 FROM tab2
----
109

query I rowsort
SELECT ALL + 17 + + col0 AS col0 FROM tab1
----
102
108
68

query I rowsort
SELECT ALL - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

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

query III rowsort
SELECT DISTINCT - col0 - 67 AS col0, - col1 * + 23 + - col1, - 99 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL COUNT( * ) DIV - 2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL COUNT ( * ) / - 2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT DISTINCT - 93 * + ( - col0 ) * + col2 FROM tab0 AS cor0
----
65565
80910
893079

query I rowsort
SELECT DISTINCT - 53 - - + col2 FROM tab0 AS cor0
----
-43
-6
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL + + COUNT( * ) * + 87 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + + COUNT ( * ) * + 87 FROM tab2 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + + MIN( + + col2 ) * 17 FROM tab2 AS cor0
----
391

skipif mysql # not compatible
query I rowsort label-1559
SELECT + + MIN ( + + col2 ) * 17 FROM tab2 AS cor0
----
391

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT SUM( ALL - 35 ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-1560
SELECT SUM ( ALL - 35 ) FROM tab1 AS cor0
----
-105

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

query I rowsort
SELECT - col1 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
528
6576
98

query I rowsort
SELECT ALL 14 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
-826
-952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT - 70 + + - COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - 70 + + - COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-73

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT - 88 - - - CAST( + col1 AS SIGNED ) * + col2 + + col1 FROM tab0 AS cor0
----
-186
-277
-3814

skipif mysql # not compatible
query I rowsort label-1567
SELECT - 88 - - - CAST ( + col1 AS INTEGER ) * + col2 + + col1 FROM tab0 AS cor0
----
-186
-277
-3814

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

query I rowsort
SELECT col0 * - + 42 * col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1571
SELECT col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1571
SELECT col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL + 0 * - - 22 - - 1 FROM tab1 WHERE NULL IS NULL
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT - - 99 * - COUNT( * ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT - - 99 * - COUNT ( * ) FROM tab0 AS cor0
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT DISTINCT ( + 57 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT ( + 57 ) / - col1 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL + COUNT( ALL + - 91 ) AS col1 FROM tab0 WHERE + + 43 + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + COUNT ( ALL + - 91 ) AS col1 FROM tab0 WHERE + + 43 + - col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95 * - col1 - - - 42 * + col1 AS col1, - col1 col1 FROM tab2 AS cor0
----
2703
-51
3551
-67
4081
-77

query I rowsort
SELECT DISTINCT - col0 + 34 + + + col2 / ( - 94 ) * + col0 / ( + ( - col0 ) ) * + col1 + 65 * - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 99 AS col1, ( - + 76 ) FROM tab0 cor0
----
99
-76
99
-76
99
-76

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

query I rowsort
SELECT DISTINCT - col0 + + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query II rowsort label-1582
SELECT ALL + col2 DIV - 5 AS col2, 37 FROM tab1 AS cor0
----
-11
37
-13
37
-19
37

skipif mysql # not compatible
query II rowsort label-1582
SELECT ALL + col2 / - 5 AS col2, 37 FROM tab1 AS cor0
----
-11
37
-13
37
-19
37

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - 21 + 30
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( + col2 ) / col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1586
SELECT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) * - col0 + + col1 + + - 18 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1586
SELECT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) * - col0 + + col1 + + - 18 IS NULL
----

query I rowsort
SELECT 88 + + col0 FROM tab2
----
134
152
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + 5, - col2 col2 FROM tab0
----
104
-99
15
-10
52
-47

query III rowsort
SELECT * FROM tab2 WHERE 89 BETWEEN - col0 AND + col1 / + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT - 57 + COUNT( DISTINCT col1 ) + + - 19 AS col2 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-1590
SELECT - 57 + COUNT ( DISTINCT col1 ) + + - 19 AS col2 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + MAX( DISTINCT col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + MAX ( DISTINCT col0 ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT - ( 22 ) AS col1 FROM tab0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 AS cor0 WHERE col2 + - + col2 <> - col2
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 55 col2 FROM tab0 AS cor0
----
-142
-152
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - + 48 + + col2, - 22 col2 FROM tab2
----
-1081
-22
-1880
-22
-2726
-22

query I rowsort
SELECT - col2 - 3 AS col1 FROM tab0
----
-102
-13
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * 84 col0 FROM tab2
----
7560

query I rowsort
SELECT 38 * + col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL + - COUNT( * ) - - 88 FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + - COUNT ( * ) - - 88 FROM tab1 cor0
----
85

query I rowsort
SELECT DISTINCT 36 * + col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

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

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

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

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

query I rowsort
SELECT ALL + - 19 + + - col0 * - ( - - col0 ) FROM tab2 WHERE NULL IS NULL
----
2097
4077
5606

onlyif mysql # DIV for integer division: 
query II rowsort label-1605
SELECT - 63 * - col0, 26 DIV col2 AS col1 FROM tab1
----
3213
0
5355
0
5733
0

skipif mysql # not compatible
query II rowsort label-1605
SELECT - 63 * - col0, 26 / col2 AS col1 FROM tab1
----
3213
0
5355
0
5733
0

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

query II rowsort
SELECT ALL col1 * col2, - ( + col1 ) + - col2 + - 84 * - col2 AS col0 FROM tab0
----
210
809
3807
3820
99
8216

query II rowsort
SELECT - 65, + col1 * + 68 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IN ( + col0 )
----
-65
3468
-65
4556
-65
5236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * - col0 col2 FROM tab2 AS cor0
----
-3312
-4608
-5400

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 84 col1, + 73 AS col0 FROM tab1 AS cor0
----
84
73
84
73
84
73

query I rowsort
SELECT ALL col1 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

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

query II rowsort
SELECT - - 1, + col2 + - - 60 + + 23 * 94 + + - col0 AS col0 FROM tab2 AS cor0
----
1
2198
1
2199
1
2205

query II rowsort
SELECT col2 AS col1, - 9 FROM tab0
----
10
-9
47
-9
99
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT - 45 * + COUNT( - col0 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT - 45 * + COUNT ( - col0 ) FROM tab1
----
-135

query I rowsort
SELECT ALL col1 + - 95 + col2 - col0 AS col0 FROM tab1
----
-116
-36
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL + 12 * - CAST( 26 AS SIGNED ) AS col1 FROM tab0
----
-312
-312
-312

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL + 12 * - CAST ( 26 AS INTEGER ) AS col1 FROM tab0
----
-312
-312
-312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1623
SELECT - + 55 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN col1 + - col0 AND CAST( - 93 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1623
SELECT - + 55 AS col0 FROM tab1 WHERE ( NULL ) BETWEEN col1 + - col0 AND CAST ( - 93 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 82 + - col1 + col1 FROM tab1
----
82

query III rowsort
SELECT * FROM tab0 WHERE - - col0 <= + col2 / - + col1 + col0 - - ( col2 ) + 82 * + - col2 * col1
----

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

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + col0 / + col2 AS col1 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT - - 59 + - + col1 DIV + + 62 FROM tab0 AS cor0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-1627
SELECT - - 59 + - + col1 / + + 62 FROM tab0 AS cor0
----
58
59
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 + + + 44 + + col2 + - 8 col1 FROM tab2 cor0
----
107
125
90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT - 25 + + ( ( - - COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
-22

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

query I rowsort
SELECT 29 * - 55 * 58 * col2 + - col2 FROM tab0 AS cor0
----
-4348017
-9158589
-925110

query I rowsort
SELECT + + 34 - - 49 AS col1 FROM tab1 cor0
----
83
83
83

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

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

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

query II rowsort
SELECT col2 * + - col0, col0 + col2 AS col2 FROM tab2 cor0
----
-1058
69
-2560
104
-4350
133

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

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

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

query II rowsort
SELECT + col2 * col2, + col1 AS col1 FROM tab0 AS cor0
----
100
21
2209
81
9801
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT 96 * ( col1 ) + col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
1344
4513
481

skipif mysql # not compatible
query I rowsort label-1642
SELECT 96 * ( col1 ) + col0 / + col2 AS col2 FROM tab1 AS cor0
----
1344
4513
481

query II rowsort
SELECT ALL - 8, 10 AS col1 FROM tab2
----
-8
10
-8
10
-8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT COUNT( * ) - + + SUM( ( - + 43 ) ) FROM tab0, tab0 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-1644
SELECT COUNT ( * ) - + + SUM ( ( - + 43 ) ) FROM tab0, tab0 AS cor0
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1645
SELECT ALL CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) * + COUNT( * ) * - 53 FROM tab1
----
-477

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) * + COUNT ( * ) * - 53 FROM tab1
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT + 54 * - COUNT( * ) * COUNT( * ) FROM tab1
----
-486

skipif mysql # not compatible
query I rowsort label-1646
SELECT + 54 * - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-486

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

query I rowsort
SELECT DISTINCT ( 80 ) - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
13
29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT 88 - MAX( DISTINCT - col2 ) * 6 AS col0 FROM tab0
----
148

skipif mysql # not compatible
query I rowsort label-1649
SELECT 88 - MAX ( DISTINCT - col2 ) * 6 AS col0 FROM tab0
----
148

query I rowsort
SELECT col0 / + col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT COUNT( * ) * - 56 AS col2 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-1651
SELECT COUNT ( * ) * - 56 AS col2 FROM tab0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT 35 * SUM( ALL col0 ) FROM tab2
----
6475

skipif mysql # not compatible
query I rowsort label-1652
SELECT 35 * SUM ( ALL col0 ) FROM tab2
----
6475

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

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

query I rowsort
SELECT ALL col1 * col1 - 77 AS col2 FROM tab1
----
-52
119
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT MAX( + col2 ) AS col1 FROM tab1 WHERE - col2 NOT BETWEEN - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT MAX ( + col2 ) AS col1 FROM tab1 WHERE - col2 NOT BETWEEN - col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE - 24 * col0 = ( 11 * col2 + 70 * + 1 )
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE - 24 * col0 = ( 11 * col2 + 70 * + 1 )
----
0

query I rowsort
SELECT + 77 * - col2 AS col0 FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT MIN( 76 ) + MAX( ALL - col1 + - 1 ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-1658
SELECT MIN ( 76 ) + MAX ( ALL - col1 + - 1 ) AS col0 FROM tab1
----
70

query I rowsort
SELECT ALL + ( 1 ) AS col0 FROM tab0 WHERE col2 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT + COUNT( * ) FROM tab2 WHERE - 4 BETWEEN ( NULL ) AND - 1
----
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT + COUNT ( * ) FROM tab2 WHERE - 4 BETWEEN ( NULL ) AND - 1
----
0

query I rowsort
SELECT 33 * + 34 AS col2 FROM tab1
----
1122
1122
1122

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT 2 * - MIN( col0 ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-1662
SELECT 2 * - MIN ( col0 ) FROM tab2
----
-92

query I rowsort
SELECT ALL 37 * - 12 AS col2 FROM tab2
----
-444
-444
-444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT ALL MAX( - 65 ) DIV MIN( col1 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL MAX ( - 65 ) / MIN ( col1 ) FROM tab1
----
-13

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

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

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

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

query I rowsort
SELECT + 42 FROM tab1 WHERE NOT - col2 IS NULL
----
42
42
42

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

query I rowsort
SELECT ALL - 34 FROM tab0 cor0
----
-34
-34
-34

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

query I rowsort
SELECT DISTINCT 64 + - col2 FROM tab1 AS cor0
----
-32
-4
5

query I rowsort
SELECT DISTINCT 70 FROM tab2 AS cor0 WHERE NOT col2 - col0 * - 31 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT DISTINCT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT ALL + MAX( - 29 ) DIV COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL + MAX ( - 29 ) / COUNT ( * ) FROM tab0 AS cor0
----
-9

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT ALL - - 38 DIV - 26 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL - - 38 / - 26 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 90 ) NOT BETWEEN 32 AND col2 + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 > col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1682
SELECT ALL * FROM tab2 WHERE NOT ( - col1 * - CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1682
SELECT ALL * FROM tab2 WHERE NOT ( - col1 * - CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 85 ) col1 FROM tab0
----
-85
-85
-85

query I rowsort
SELECT col2 * - col2 + col1 AS col1 FROM tab2 WHERE NOT col2 * + col0 IS NULL
----
-1523
-3297
-478

query I rowsort
SELECT 59 * + - col0 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1686
SELECT + CAST( NULL AS DECIMAL ) / - 25 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1686
SELECT + CAST ( NULL AS REAL ) / - 25 col0 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL MIN( ALL col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL MIN ( ALL col0 ) FROM tab2 AS cor0
----
46

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT 84 AS col2, COUNT( * ) FROM tab0
----
84
3

skipif mysql # not compatible
query II rowsort label-1691
SELECT 84 AS col2, COUNT ( * ) FROM tab0
----
84
3

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT ALL - COUNT( * ) FROM tab2, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL - COUNT ( * ) FROM tab2, tab0 cor0
----
-9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT col1 + - + CAST( col0 AS SIGNED ) FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-1695
SELECT col1 + - + CAST ( col0 AS INTEGER ) FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - COUNT( * ) col0 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-1696
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + + ( + col0 ) ) - - col2 BETWEEN + col0 AND 95
----
15
81
47

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

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

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

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

query I rowsort
SELECT + col1 * + + 19 FROM tab1 AS cor0
----
266
893
95

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

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

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

query I rowsort
SELECT DISTINCT 71 * - col0 - col1 * + col1 AS col2 FROM tab1
----
-3817
-6060
-8670

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + COUNT( * ) * + 24 + 85 * - COUNT( * ) AS col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
-183

skipif mysql # not compatible
query I rowsort label-1706
SELECT + COUNT ( * ) * + 24 + 85 * - COUNT ( * ) AS col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
-183

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = NULL AND ( NULL > + 36 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL 88 + COUNT( * ) + + - COUNT( * ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL 88 + COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
88

query I rowsort
SELECT ALL ( + + 90 ) * - 70 + + - col1 FROM tab1
----
-6305
-6314
-6347

query I rowsort
SELECT col0 + - - ( col2 ) + 24 + - col1 * - 44 * col2 FROM tab2
----
135648
171141
51705

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 + - - col1 col2 FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT ALL - 77 - + 30 AS col1 FROM tab2 AS cor0
----
-107
-107
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL COUNT( * ) FROM tab2 WHERE 69 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL COUNT ( * ) FROM tab2 WHERE 69 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * + col0 / + - 13 + + col0 + - col0 <= + col2
----

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

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

query I rowsort
SELECT DISTINCT + 56 * - ( - 40 ) + - 41 AS col2 FROM tab0 AS cor0
----
2199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - col2 * + 35 / + col1 - + col0 * col2 )
----

query I rowsort
SELECT + 19 * + col2 AS col1 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 13 + - ( - 80 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 13 + - ( - 80 ) FROM tab2 cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 = - col0
----

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

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT MAX ( ALL - col0 ) FROM tab2
----
-46

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NOT ( NOT ( + 38 * col1 + + col0 ) IN ( col2 + col1 * 85 ) ) )
----
46
64
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) * 70 AS col0 FROM tab0
----
630

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) * 70 AS col0 FROM tab0
----
630

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 97 + + COUNT( * ) AS col0 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-1731
SELECT 97 + + COUNT ( * ) AS col0 FROM tab1
----
100

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

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

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

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

query I rowsort
SELECT ALL 80 FROM tab1 cor0 WHERE col2 NOT IN ( + col1, 56 )
----
80
80
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1736
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * CAST( + - col0 AS SIGNED ) - + 55 * - col0 + + 24 / 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1736
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * CAST ( + - col0 AS INTEGER ) - + 55 * - col0 + + 24 / 15 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query II rowsort
SELECT - 92 + - + col2, col0 * + col1 AS col2 FROM tab0 AS cor0
----
-102
1827
-139
1215
-191
97

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

query I rowsort
SELECT ALL col2 - - + ( col2 ) * + col2 AS col0 FROM tab2
----
1640
3422
552

query I rowsort
SELECT DISTINCT - col0 + 86 FROM tab2
----
11
22
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 71 col2 FROM tab1
----
118
76
85

query I rowsort
SELECT DISTINCT 84 - 37 * 18 + col0 FROM tab0
----
-485
-495
-567

query II rowsort
SELECT - 11 AS col2, + col1 AS col0 FROM tab1
----
-11
14
-11
47
-11
5

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

query I rowsort
SELECT ALL - col0 * + 26 + + col1 + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1140
-1574
-1891

query I rowsort
SELECT + col0 * col2 * + 73 AS col0 FROM tab2
----
186880
317550
77234

query I rowsort
SELECT ALL - ( - col1 ) * + + 31 AS col1 FROM tab2 AS cor0
----
1581
2077
2387

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1751
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 - - 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - CAST ( NULL AS REAL ) * col2 - - 10 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 * - - col1 + ( col1 ) + + ( - col2 ) - col0 + 92 * + 88 / - col1 - - 61 )
----

query I rowsort
SELECT 95 AS col2 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT + 88 * + col0 AS col0 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1756
SELECT ALL 58 DIV SUM( 43 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL 58 / SUM ( 43 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col1 * + + 51 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT DISTINCT + 10 * + - 68 AS col2, MIN( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-680
5

skipif mysql # not compatible
query II rowsort label-1758
SELECT DISTINCT + 10 * + - 68 AS col2, MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-680
5

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1760
SELECT * FROM tab0 WHERE NOT - CAST( 76 AS DECIMAL ) <= + - 57
----

skipif mysql # not compatible
query III rowsort label-1760
SELECT * FROM tab0 WHERE NOT - CAST ( 76 AS REAL ) <= + - 57
----

query I rowsort
SELECT ALL col1 * + 28 AS col0 FROM tab1
----
1316
140
392

query III rowsort
SELECT * FROM tab0 WHERE NOT - 9 < + - col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT col1 DIV - col0 + + ( - + 36 ) AS col2 FROM tab2 AS cor0
----
-36
-37

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT col1 / - col0 + + ( - + 36 ) AS col2 FROM tab2 AS cor0
----
-36
-37

query I rowsort
SELECT DISTINCT 23 + + col0 FROM tab2
----
69
87
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 WHERE NOT + col2 * - col1 + + col1 + + col0 - col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT ALL + - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0 WHERE NOT 15 IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-1766
SELECT ALL + - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE NOT 15 IS NULL
----
-3
3

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

query I rowsort
SELECT ALL - - 68 AS col0 FROM tab1 cor0
----
68
68
68

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

query I rowsort
SELECT ALL 78 + - 74 AS col1 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT col1 DIV - - col1 - col1 AS col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-1771
SELECT col1 / - - col1 - col1 AS col1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT DISTINCT - 86 + - ( + + 54 ) + col1 * - 7 + + + col2 + + + col0 * - col2 FROM tab1 AS cor0
----
-5038
-5131
-6589

query II rowsort
SELECT ALL - 58 - - + col2 * + - col0 * + 9, - col1 * 35 * - 51 FROM tab0 WHERE + col2 <= NULL
----

query I rowsort
SELECT ALL col2 + + + col0 AS col2 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1775
SELECT DISTINCT * FROM tab2 WHERE + + 43 = + col0 / col1 - - + col1 + + col0 / CAST( NULL AS DECIMAL ) - + - 65
----

skipif mysql # not compatible
query III rowsort label-1775
SELECT DISTINCT * FROM tab2 WHERE + + 43 = + col0 / col1 - - + col1 + + col0 / CAST ( NULL AS REAL ) - + - 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - + col1 col0, - col0 * col0 AS col0 FROM tab1
----
0
-2601
0
-7225
0
-8281

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT 15 * + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT 15 * + COUNT ( * ) FROM tab1
----
45

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 74 FROM tab0 cor0
----
15
74
87
74
97
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1783
SELECT DISTINCT + col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1783
SELECT DISTINCT + col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

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

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

skipif mysql # not compatible
query II rowsort label-1785
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - col0, + 33 + + col2 col2 FROM tab1
----
-425
92
-4277
101
-714
129

query II rowsort
SELECT ALL 54 * col1 AS col1, + col1 + - 70 FROM tab2
----
2754
-19
3618
-3
4158
7

query I rowsort
SELECT ALL - col0 * + + 49 FROM tab0
----
-4263
-4753
-735

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

query I rowsort
SELECT - col2 + + 24 AS col2 FROM tab0
----
-23
-75
14

query I rowsort
SELECT col2 + + col2 * + + col2 AS col2 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT DISTINCT - 87 + - - ( + col0 ) FROM tab1 AS cor0
----
-2
-36
4

query I rowsort
SELECT DISTINCT col2 - + - col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT ALL CAST( MAX( + + col1 ) AS SIGNED ) AS col1 FROM tab2
----
77

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

query II rowsort
SELECT col2 * - + 34 - - - col0, col0 FROM tab2
----
-1424
64
-2047
75
-828
46

query I rowsort
SELECT + + col1 AS col0 FROM tab1 WHERE ( - col1 <= + col1 + + col0 )
----
14
47
5

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

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

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

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 22 ) IS NULL
----
51
67
77

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + 26 * 58 * - - COUNT( * ) AS col1 FROM tab2
----
4524

skipif mysql # not compatible
query I rowsort label-1803
SELECT + 26 * 58 * - - COUNT ( * ) AS col1 FROM tab2
----
4524

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

skipif mysql # not compatible
query I rowsort label-1804
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE + col0 * + col2 + - col0 BETWEEN NULL AND - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1806
SELECT 4 AS col1, + CAST( NULL AS SIGNED ) FROM tab2
----
4
NULL
4
NULL
4
NULL

skipif mysql # not compatible
query II rowsort label-1806
SELECT 4 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
4
NULL
4
NULL
4
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1808
SELECT * FROM tab0 WHERE NOT - - 59 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1808
SELECT * FROM tab0 WHERE NOT - - 59 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col0 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT DISTINCT col1, - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT + col1 + - 50 AS col1 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT DISTINCT 52 + + - ( - col0 ) * + - col0 AS col2 FROM tab0 AS cor0
----
-173
-7517
-9357

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1813
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - CAST( NULL AS SIGNED ) + col2 + + col2 + - col1 * + 3 * + - col2 / 77 * - - ( + col0 ) * - col2
----

skipif mysql # not compatible
query III rowsort label-1813
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - CAST ( NULL AS INTEGER ) + col2 + + col2 + - col1 * + 3 * + - col2 / 77 * - - ( + col0 ) * - col2
----

query I rowsort
SELECT - col2 * + 92 AS col0 FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - + MAX( - + col2 ) * + - ( - COUNT( * ) ) FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-1815
SELECT - + MAX ( - + col2 ) * + - ( - COUNT ( * ) ) FROM tab2 cor0
----
69

query I rowsort
SELECT DISTINCT + 37 * + - 35 FROM tab2
----
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT DISTINCT - 43 DIV - 46 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT DISTINCT - 43 / - 46 col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col1, + ( + 50 ) AS col2 FROM tab0
----
1
50
21
50
81
50

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT DISTINCT + ( 63 ) + - - 46, - SUM( ALL - - 98 ) AS col1 FROM tab1 cor0
----
109
-294

skipif mysql # not compatible
query II rowsort label-1819
SELECT DISTINCT + ( 63 ) + - - 46, - SUM ( ALL - - 98 ) AS col1 FROM tab1 cor0
----
109
-294

query I rowsort
SELECT + 60 + + col2 FROM tab1 AS cor0
----
119
128
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1821
SELECT DISTINCT + CAST( - - 78 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT + CAST ( - - 78 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
78

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - 17 + + ( - 27 ) + col1 FROM tab0 AS cor0
----
-9
1431
351

query III rowsort
SELECT * FROM tab1 WHERE - col2 = + + 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT ALL CAST( + 13 AS SIGNED ) - + col0 AS col2 FROM tab0
----
-2
-74
-84

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL CAST ( + 13 AS INTEGER ) - + col0 AS col2 FROM tab0
----
-2
-74
-84

query I rowsort
SELECT + col1 - - 34 * + col2 FROM tab2 AS cor0
----
1437
2039
833

query I rowsort
SELECT + - col1 - col0 * - 57 AS col2 FROM tab0 AS cor0
----
4938
5528
774

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

onlyif mysql # DIV for integer division: 
query III rowsort label-1830
SELECT DISTINCT - col0 AS col1, - col0 * col1 AS col1, + + col2 DIV 72 + - 92 AS col1 FROM tab1
----
9 values hashing to 6ad1158e6e40d812b059888a5c7897e1

skipif mysql # not compatible
query III rowsort label-1830
SELECT DISTINCT - col0 AS col1, - col0 * col1 AS col1, + + col2 / 72 + - 92 AS col1 FROM tab1
----
9 values hashing to 6ad1158e6e40d812b059888a5c7897e1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL COUNT( * ) * - - 57 + + - COUNT( * ) * 77 AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL COUNT ( * ) * - - 57 + + - COUNT ( * ) * 77 AS col2 FROM tab1 AS cor0
----
-60

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

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

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

query I rowsort
SELECT ALL - - 99 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT DISTINCT COUNT( * ) AS col1, 75 AS col0 FROM tab0 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-1836
SELECT DISTINCT COUNT ( * ) AS col1, 75 AS col0 FROM tab0 AS cor0
----
3
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT + 35 * COUNT( * ) col1 FROM tab1 cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1838
SELECT + 35 * COUNT ( * ) col1 FROM tab1 cor0
----
105

query II rowsort
SELECT 88 AS col1, col2 FROM tab1 AS cor0
----
88
59
88
68
88
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT ALL - col2 * + col1 * - - 90 + - 66 * + col0 + + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-124422
-293714
-32219

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - col2 * + col1 * - - 90 + - 66 * + col0 + + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-124422
-293714
-32219

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT COUNT( + - col0 ) col2 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-1843
SELECT COUNT ( + - col0 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT + + 13 * - 19 - - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + + 13 * - 19 - - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 42 col0 FROM tab2
----
-16
19
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT DISTINCT CAST( - + col1 AS SIGNED ) + + - col1 * col2 - col1 * - col0 + + col1 * - col0 FROM tab1
----
-1358
-300
-3243

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) + + - col1 * col2 - col1 * - col0 + + col1 * - col0 FROM tab1
----
-1358
-300
-3243

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 * + col1 FROM tab2 WHERE NOT - 45 NOT BETWEEN + col1 AND - col2 * col1
----

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + + col1, col2 )
----

query II rowsort
SELECT col0 * - 33 AS col2, - col1 FROM tab0
----
-2871
-21
-3201
-1
-495
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + COUNT( * ) * - MAX( - col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1851
SELECT + COUNT ( * ) * - MAX ( - col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT + ( - + 13 ) AS col1 FROM tab0 cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL + - 59 * SUM( DISTINCT col0 ) - + SUM( DISTINCT + 83 ) + - - COUNT( * ) col1 FROM tab0 AS cor0
----
-11821

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1853
SELECT ALL + - 59 * SUM ( DISTINCT col0 ) - + SUM ( DISTINCT + 83 ) + - - COUNT ( * ) col1 FROM tab0 AS cor0
----
-11821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL - ( - - ( - + 15 ) ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL - ( - - ( - + 15 ) ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 79 * - + 54 FROM tab0 AS cor0
----
-4266

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL - COUNT( 71 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - COUNT ( 71 ) AS col1 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 * + - col2 col2 FROM tab0 AS cor0
----
-2820
-5940
-600

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 + + col0 IS NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL <> + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT + MAX( DISTINCT - + 14 ) * + COUNT( * ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1861
SELECT + MAX ( DISTINCT - + 14 ) * + COUNT ( * ) FROM tab1
----
-42

query I rowsort
SELECT ALL + col2 * - 77 AS col2 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT - AVG ( ALL + + col2 ) AS col1 FROM tab2 WHERE NOT + + CAST( 42 AS SIGNED ) / - 3 / 73 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT - AVG ( ALL + + col2 ) AS col1 FROM tab2 WHERE NOT + + CAST ( 42 AS INTEGER ) / - 3 / 73 = NULL
----
NULL

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 99 IS NULL
----
15
87
97

query I rowsort
SELECT - ( + col0 ) * 87 FROM tab0
----
-1305
-7569
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT 98 + SUM( DISTINCT - + 82 ) AS col0 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-1866
SELECT 98 + SUM ( DISTINCT - + 82 ) AS col0 FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 82 / - + 24 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 82 / - + 24 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - 4 * + COUNT( * ) FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 4 * + COUNT ( * ) FROM tab2 cor0
----
-12

query I rowsort
SELECT + + 12 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - 43
----

query I rowsort
SELECT ( 18 ) AS col1 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab2
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT DISTINCT col0 * - 19 AS col0 FROM tab0 WHERE - + ( - - col0 ) - + col2 BETWEEN ( - col0 ) AND col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT col0 * - 19 AS col0 FROM tab0 WHERE - + ( - - col0 ) - + col2 BETWEEN ( - col0 ) AND col1 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col0, + 85 FROM tab1
----
51
85
85
85
91
85

query I rowsort
SELECT ALL 7 * + 10 + + 79 FROM tab2
----
149
149
149

query III rowsort
SELECT * FROM tab2 WHERE - - col0 / + - 89 > - 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 47 FROM tab0 WHERE col2 NOT BETWEEN - + col0 AND col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL - 15 - - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - 15 - - COUNT ( * ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT + - COUNT( * ) + + 94 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1878
SELECT + - COUNT ( * ) + + 94 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT ALL - 1 col1, - 68 + + SUM( - - col2 ) AS col2 FROM tab1 AS cor0
----
-1
155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1879
SELECT ALL - 1 col1, - 68 + + SUM ( - - col2 ) AS col2 FROM tab1 AS cor0
----
-1
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT + + 51, COUNT( * ) + - + 66 AS col1 FROM tab2 cor0
----
51
-63

skipif mysql # not compatible
query II rowsort label-1880
SELECT + + 51, COUNT ( * ) + - + 66 AS col1 FROM tab2 cor0
----
51
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT ALL + 4 * + - MAX( DISTINCT + - 5 ) AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + 4 * + - MAX ( DISTINCT + - 5 ) AS col0 FROM tab2
----
20

query II rowsort
SELECT ALL 76 * - 84, + 60 * ( - col2 ) AS col0 FROM tab1
----
-6384
-3540
-6384
-4080
-6384
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1883
SELECT + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab2, tab0 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT COUNT( - - 98 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1885
SELECT COUNT ( - - 98 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 77 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + 97 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT DISTINCT - COUNT( * ) DIV - - 40 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT - COUNT ( * ) / - - 40 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1889
SELECT + CAST( + + 20 AS SIGNED ) DIV 24 + - col2 * + + 64 + col2 col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1889
SELECT + CAST ( + + 20 AS INTEGER ) / 24 + - col2 * + + 64 + col2 col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT DISTINCT - SUM( DISTINCT col0 ) AS col2, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-199
3

skipif mysql # not compatible
query II rowsort label-1890
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-199
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + 24 = NULL
----

query I rowsort
SELECT ALL col1 * + - 23 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT DISTINCT - 81 * - COUNT( * ) col1 FROM tab2
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1893
SELECT DISTINCT - 81 * - COUNT ( * ) col1 FROM tab2
----
243

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / + - col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + - 93 + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + - 93 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----
-93

query II rowsort
SELECT + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 26 * + + col2 col1 FROM tab2 AS cor0
----
1441
547
963

query I rowsort
SELECT ALL - - 51 + + col2 FROM tab1 cor0
----
110
119
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT + COUNT( * ) DIV - + ( + - 81 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT + COUNT ( * ) / - + ( + - 81 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 46 >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 6 FROM tab0 WHERE NOT ( - + col0 ) IS NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT + CAST( NULL AS SIGNED ) * ( - col2 ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1903
SELECT + CAST ( NULL AS INTEGER ) * ( - col2 ) col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL AND + 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 - col1 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-1905
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col0 - col1 IS NOT NULL
----
6

query I rowsort
SELECT + 75 + col0 + - ( - - col1 ) FROM tab1 AS cor0
----
112
119
155

query I rowsort
SELECT ALL + 79 + - + col1 * + col2 * ( - col0 ) AS col0 FROM tab2 cor0
----
197199
291529
54037

query I rowsort
SELECT ALL + + col0 * + - col0 * + col0 - col1 + - col2 + + + col1 AS col1 FROM tab2 cor0
----
-262184
-421933
-97359

query I rowsort
SELECT ALL + col2 - - + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT 12 + - col0 FROM tab0
----
-3
-75
-85

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 90
----

query II rowsort
SELECT ALL col1 AS col0, col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND col1 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE + + 76 <= - 47 + + 47
----

query II rowsort
SELECT DISTINCT 94, col1 AS col1 FROM tab2 AS cor0
----
94
51
94
67
94
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1915
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( CAST( NULL AS SIGNED ), + col0, - + col1, + + col1, col1 + + + 4 )
----

skipif mysql # not compatible
query III rowsort label-1915
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( CAST ( NULL AS INTEGER ), + col0, - + col1, + + col1, col1 + + + 4 )
----

query I rowsort
SELECT DISTINCT + col0 + - - 84 FROM tab0 AS cor0
----
171
181
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT + COUNT( * ) + + 91 AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT + COUNT ( * ) + + 91 AS col1 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL + MIN( ALL + 55 ) AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + MIN ( ALL + 55 ) AS col1 FROM tab2
----
55

query I rowsort
SELECT ALL + col2 * 18 AS col0 FROM tab1 AS cor0
----
1062
1224
1728

query I rowsort
SELECT ALL ( 45 ) AS col2 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + 80 FROM tab1 WHERE col0 / - + col1 IS NOT NULL
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - + col2 col1 FROM tab1
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT MAX( DISTINCT - + col0 ) * + + 20 AS col2 FROM tab2
----
-920

skipif mysql # not compatible
query I rowsort label-1923
SELECT MAX ( DISTINCT - + col0 ) * + + 20 AS col2 FROM tab2
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL COUNT( + col2 ) * + COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT ALL COUNT ( + col2 ) * + COUNT ( * ) col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT col0 * + CAST( col2 AS SIGNED ) * - ( + - col2 ) AS col0 FROM tab2
----
102400
24334
252300

skipif mysql # not compatible
query I rowsort label-1925
SELECT col0 * + CAST ( col2 AS INTEGER ) * - ( + - col2 ) AS col0 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL COUNT( * ) * MAX( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1926
SELECT ALL COUNT ( * ) * MAX ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT ( col1 ) * - + 2, + col0 AS col0 FROM tab1
----
-10
85
-28
51
-94
91

query I rowsort
SELECT DISTINCT 89 * + + col2 AS col0 FROM tab2 AS cor0
----
2047
3560
5162

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - - 93 + COUNT( * ) AS col1 FROM tab2 cor0 WHERE 58 IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - - 93 + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE 58 IS NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col1 + + + col1 col0, 9 AS col0 FROM tab0
----
-97
9
115
9
32
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL MAX( 58 ) * 44 AS col1 FROM tab0
----
2552

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL MAX ( 58 ) * 44 AS col1 FROM tab0
----
2552

query II rowsort
SELECT ALL - - col2 AS col0, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + 97 + + - ( 22 ) AS col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT - col1 DIV - 93 * ( 12 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1936
SELECT - col1 / - 93 * ( 12 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - 21 * + col0 AS col2 FROM tab0
----
-1806
-2036
-234

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 IS NOT NULL AND ( NULL ) >= + + col1 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT ALL - + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1939
SELECT ALL - + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1940
SELECT ALL - ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + 92 < + col2 + - 99
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT + 32 FROM tab2 AS cor0 WHERE NOT NULL <= - col2 + - + col2 * - 34 * - - col0
----

query I rowsort
SELECT ALL col0 - + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 98 * - 2 + + 29 AND - col0 * + col0 / + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 - + 41 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL COUNT( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL COUNT ( - ( + + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT - SUM( DISTINCT - CAST( - CAST( - 54 AS SIGNED ) AS SIGNED ) ) FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1947
SELECT - SUM ( DISTINCT - CAST ( - CAST ( - 54 AS INTEGER ) AS INTEGER ) ) FROM tab1 cor0
----
54

query II rowsort
SELECT ALL - + col1, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 - col2 NOT BETWEEN 82 + + col2 + 68 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1951
SELECT + col1 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + col1 + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1952
SELECT ALL - col2 AS col1, - 69 + + CAST( NULL AS SIGNED ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1952
SELECT ALL - col2 AS col1, - 69 + + CAST ( NULL AS INTEGER ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT col2 * CAST( + col1 AS SIGNED ) + - + 36 AS col2 FROM tab2
----
1137
3044
3850

skipif mysql # not compatible
query I rowsort label-1953
SELECT col2 * CAST ( + col1 AS INTEGER ) + - + 36 AS col2 FROM tab2
----
1137
3044
3850

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT - col2 / + col1 * - col2 * + 10 > col2 / - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + 5 - - - 64
----

query I rowsort
SELECT + 82 FROM tab2 AS cor0 WHERE 84 IS NULL
----

query II rowsort
SELECT - - col2 AS col2, + col1 + - 44 AS col1 FROM tab2 AS cor0
----
23
7
40
33
58
23

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab2 cor0 WHERE NOT - col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL + COUNT( * ) + + COUNT( * ) * - 18 col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1959
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * - 18 col1 FROM tab1 cor0
----
-51

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

query II rowsort
SELECT - ( col0 ) AS col1, + 51 + - 28 + + - 91 + + col1 FROM tab1 WHERE - col2 + + col2 * + ( - + 68 ) * ( col0 ) IS NULL
----

query I rowsort
SELECT ALL - + 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query II rowsort
SELECT - 31 + 35 AS col0, - 32 FROM tab1 AS cor0
----
4
-32
4
-32
4
-32

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 75 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + COUNT( + col1 ) + + 84 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1965
SELECT + COUNT ( + col1 ) + + 84 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT 30 BETWEEN + col2 AND NULL
----
-15
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + ( + 33 ) - - - 34 - - ( - + col1 ) * - - col0 * col0 AS col2, - col0 * 20 col0 FROM tab2 AS cor0
----
-107871
-920
-315329
-1280
-376801
-1500

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 * + col0 - - col0 * col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL ( - 3 ) * COUNT( - col0 ) * MAX( ALL col2 ) FROM tab2 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL ( - 3 ) * COUNT ( - col0 ) * MAX ( ALL col2 ) FROM tab2 AS cor0
----
-522

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1970
SELECT DISTINCT - 40 + CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - 40 + CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 + col2 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT + col2 * - col2 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT MAX( + 88 ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1973
SELECT MAX ( + 88 ) FROM tab2
----
88

query III rowsort
SELECT * FROM tab2 WHERE - 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 col0, - 25 * - 97 * ( col2 ) FROM tab2
----
13
140650
13
55775
13
97000

query II rowsort
SELECT 19, col2 AS col1 FROM tab1
----
19
59
19
68
19
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1977
SELECT - col0 AS col2, + CAST( NULL AS SIGNED ) * - - col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-1977
SELECT - col0 AS col2, + CAST ( NULL AS INTEGER ) * - - col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT + ( - + 73 ) FROM tab0
----
-73
-73
-73

query I rowsort
SELECT - col0 * + col1 * + col2 - - 63 * + - 30 AS col2 FROM tab2
----
-199010
-293340
-55848

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - MAX( DISTINCT + 52 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1980
SELECT - MAX ( DISTINCT + 52 ) FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - SUM( DISTINCT - - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1981
SELECT - SUM ( DISTINCT - - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT - - 98 * - col0 FROM tab0 AS cor0 WHERE NOT col2 + 98 + col1 - - col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 60 * ( - 30 ) / col2
----

query I rowsort
SELECT - 80 * 59 FROM tab1
----
-4720
-4720
-4720

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 - + col1 IN ( 97, col1, - - col0, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + 0 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT ALL 50 + - CAST( - + 84 AS SIGNED ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
134
134
134

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL 50 + - CAST ( - + 84 AS INTEGER ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
134
134
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) + 90 AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) + 90 AS col1 FROM tab0
----
99

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1990
SELECT ( + col1 ) DIV col1 AS col2, + 52 * - 25 AS col0 FROM tab2
----
1
-1300
1
-1300
1
-1300

skipif mysql # not compatible
query II rowsort label-1990
SELECT ( + col1 ) / col1 AS col2, + 52 * - 25 AS col0 FROM tab2
----
1
-1300
1
-1300
1
-1300

query II rowsort
SELECT DISTINCT + - 9 + - col2, - col0 * 71 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + - col2 col2 FROM tab2 WHERE NULL < 73
----

query I rowsort
SELECT DISTINCT 52 + + + col1 FROM tab2
----
103
119
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - MIN( - col0 ) * + 80 FROM tab2
----
6000

skipif mysql # not compatible
query I rowsort label-1994
SELECT - MIN ( - col0 ) * + 80 FROM tab2
----
6000

query II rowsort
SELECT ALL - col2, 31 AS col2 FROM tab2
----
-23
31
-40
31
-58
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1996
SELECT ALL + 6 + CAST( + + 45 AS SIGNED ) col0, - col2 FROM tab0 AS cor0
----
51
-10
51
-47
51
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1996
SELECT ALL + 6 + CAST ( + + 45 AS INTEGER ) col0, - col2 FROM tab0 AS cor0
----
51
-10
51
-47
51
-99

query I rowsort
SELECT + col1 - + + 49 FROM tab2 AS cor0
----
18
2
28

query II rowsort
SELECT ALL - col0 * + + col2, col0 AS col0 FROM tab1 AS cor0
----
-4896
51
-5015
85
-6188
91

query I rowsort
SELECT DISTINCT + + 80 * - 80 AS col0 FROM tab0 AS cor0
----
-6400

query I rowsort
SELECT - 93 - - - col1 FROM tab1 cor0
----
-107
-140
-98

query I rowsort
SELECT + 20 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT ALL COUNT( * ) DIV + 95 * - - SUM( - col2 ) DIV - 96 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL COUNT ( * ) / + 95 * - - SUM ( - col2 ) / - 96 FROM tab2
----
0

query II rowsort
SELECT + 51 + + 20, 12 AS col2 FROM tab2
----
71
12
71
12
71
12

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + - 62
----

query I rowsort
SELECT DISTINCT - 37 * + + col0 * + 96 * + col1 AS col2 FROM tab1
----
-1509600
-15191904
-2536128

query I rowsort
SELECT 69 AS col2 FROM tab0 cor0 WHERE NOT - col1 < - col1 * col2 + - + col2 * + + col2
----
69
69
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT DISTINCT ( MIN( col1 ) ) AS col1, 29 FROM tab2 AS cor0
----
51
29

skipif mysql # not compatible
query II rowsort label-2007
SELECT DISTINCT ( MIN ( col1 ) ) AS col1, 29 FROM tab2 AS cor0
----
51
29

query I rowsort
SELECT col2 * + 32 FROM tab2 cor0
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT - COUNT( * ) AS col2, - 96 AS col0 FROM tab0
----
-3
-96

skipif mysql # not compatible
query II rowsort label-2009
SELECT - COUNT ( * ) AS col2, - 96 AS col0 FROM tab0
----
-3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL - MIN( DISTINCT col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT + col0 * - + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT DISTINCT COUNT( + 15 ) * 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT COUNT ( + 15 ) * 2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - + COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2013
SELECT - + COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - col0 * - 1 * + - col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT - col2 * - ( + col0 ) + - 64 + + 43 * - CAST( + 41 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1122
-957
7776

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - col2 * - ( + col0 ) + - 64 + + 43 * - CAST ( + 41 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1122
-957
7776

query II rowsort
SELECT + 87, - col1 AS col1 FROM tab0 AS cor0
----
87
-1
87
-21
87
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT - - 43 + + 34 + COUNT( col1 ) + - 44 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - - 43 + + 34 + COUNT ( col1 ) + - 44 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - 60 + COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2018
SELECT - 60 + COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2019
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT col2 * - - 56 + - ( col0 ) AS col2 FROM tab1
----
3219
3717
5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT - CAST( - + 78 AS SIGNED ) + + + ( - col2 ) FROM tab0
----
-21
31
68

skipif mysql # not compatible
query I rowsort label-2022
SELECT - CAST ( - + 78 AS INTEGER ) + + + ( - col2 ) FROM tab0
----
-21
31
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * - + col0 col0 FROM tab0
----
3132
3492
540

onlyif mysql # DIV for integer division: 
query I rowsort label-2024
SELECT DISTINCT 10 + - col2 DIV col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT 10 + - col2 / col2 FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( NULL IS NULL ) OR - + col1 BETWEEN + col2 * col2 + 49 + - col2 - col0 AND 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 29 * col0 AS col2, col0 AS col1 FROM tab0
----
2523
87
2813
97
435
15

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 * col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 * + - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT col0 DIV 43 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2029
SELECT col0 / 43 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - + - 20 <= + col2
----

query I rowsort
SELECT ALL - 23 * 34 AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 92d61ff6ad50f2f7762ed51567f01894

query I rowsort
SELECT - col2 + + 22 FROM tab0
----
-25
-77
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 WHERE - col2 * - col1 * + 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 WHERE - col2 * - col1 * + 27 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 23 col0 FROM tab0 AS cor0
----
-58
2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT + MAX( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + MAX ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab2 AS cor0 WHERE col2 * + - col0 + + col0 - ( CAST( NULL AS SIGNED ) ) * - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab2 AS cor0 WHERE col2 * + - col0 + + col0 - ( CAST ( NULL AS INTEGER ) ) * - - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN 54 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, 21 * - col0 + col2, + col0, - + col2 * col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT CAST( + - col2 AS SIGNED ) * - + col0 + + CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE col1 / + 1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT CAST ( + - col2 AS INTEGER ) * - + col0 + + CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE col1 / + 1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2040
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 58 AS col0 FROM tab0 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE 40 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT DISTINCT + ( + MIN( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + ( + MIN ( + col0 ) ) FROM tab1
----
51

query I rowsort
SELECT 84 * + + col0 AS col0 FROM tab1
----
4284
7140
7644

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2045
SELECT col1, 67 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2045
SELECT col1, 67 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT 55 * col0 * + col2 FROM tab2
----
140800
239250
58190

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT + COUNT( * ) * + 5 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + COUNT ( * ) * + 5 FROM tab2
----
15

query I rowsort
SELECT ALL - col0 * - 63 FROM tab0
----
5481
6111
945

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT ALL 82 DIV + + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 82 / + + col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT col2 * - + CAST( NULL AS SIGNED ) * - col0 / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT col2 * - + CAST ( NULL AS INTEGER ) * - col0 / col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * + + col0 * - col2 col1 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 * + - ( 75 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2053
SELECT + 69 DIV - col2, col1 + - - 83 + ( + - 50 ) AS col1 FROM tab0 AS cor0
----
-1
114
-6
54
0
34

skipif mysql # not compatible
query II rowsort label-2053
SELECT + 69 / - col2, col1 + - - 83 + ( + - 50 ) AS col1 FROM tab0 AS cor0
----
-1
114
-6
54
0
34

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE col0 <> + col1
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 + - col2 - col1 + + 51 AS col2 FROM tab2 AS cor0 WHERE NOT col1 <= ( + 5 )
----
-2
1
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 > NULL
----

query II rowsort
SELECT DISTINCT + + col0 + + col2, - 28 * - + col1 - + + col1 AS col1 FROM tab0 AS cor0
----
196
27
62
2187
97
567

query I rowsort
SELECT ALL col1 + - 37 FROM tab2
----
14
30
40

query II rowsort
SELECT + 33 AS col0, + col1 AS col1 FROM tab1
----
33
14
33
47
33
5

query I rowsort
SELECT + col0 * col0 * + - col2 AS col2 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL + col1 * - 16 + - col1 FROM tab1
----
-238
-799
-85

query I rowsort
SELECT DISTINCT - ( 59 ) FROM tab2 AS cor0 WHERE NOT NULL > 58 / - + 17
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 14 = 96
----
-46
-64
-75

query I rowsort
SELECT + col0 * + col2 + - + col2 + - col1 FROM tab0 cor0
----
577
839
9503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT + col0 * + + col1 / - + ( + CAST( NULL AS SIGNED ) ) * + 42 + + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + col0 * + + col1 / - + ( + CAST ( NULL AS INTEGER ) ) * + 42 + + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 - 6 FROM tab0
----
4
41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT MIN( DISTINCT 99 ) + + 47 AS col2 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-2067
SELECT MIN ( DISTINCT 99 ) + + 47 AS col2 FROM tab1
----
146

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 20 * col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2070
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col0 + col0 * - CAST( NULL AS DECIMAL ) = - ( - 63 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2070
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col0 + col0 * - CAST ( NULL AS REAL ) = - ( - 63 ) * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT - 50 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 50 IS NOT NULL
----
0

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT + 91 NOT IN ( ( - 41 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col2 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT + AVG ( + col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT + AVG ( + col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 54 BETWEEN - col1 + - 77 AND col1 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + ( 65 ) ) FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT COUNT( * ) - 53 AS col1 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT COUNT ( * ) - 53 AS col1 FROM tab1
----
-50

query III rowsort
SELECT ALL * FROM tab0 WHERE + 16 IN ( col0 + col0 )
----

query I rowsort
SELECT - 89 AS col0 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
-89
-89
-89

query III rowsort
SELECT * FROM tab1 WHERE NOT - 73 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - col2 * - 15 AS col2 FROM tab0
----
1582
237
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE + col0 * - ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col0 * - ( + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE ( col2 + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE ( col2 + col0 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( 17 ) AS col2 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT - MIN( + col0 ) + - ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-54

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - MIN ( + col0 ) + - ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT SUM( ( - col1 ) ) * 79 + + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col0 - - 95 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT SUM ( ( - col1 ) ) * 79 + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col0 - - 95 < NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col0 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 17 NOT IN ( + 62 * - 45 )
----

query I rowsort
SELECT ALL - 84 * col1 AS col1 FROM tab1 WHERE NOT col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT + COUNT( * ) * 16 AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2090
SELECT + COUNT ( * ) * 16 AS col0 FROM tab2
----
48

query I rowsort
SELECT AVG ( DISTINCT col2 ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 / 25 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 52 ) col2 FROM tab1
----
52
52
52

query I rowsort
SELECT - 31 * col1 AS col0 FROM tab0 AS cor0
----
-2511
-31
-651

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT + 36 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT + 36 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + ( 78 ) FROM tab0 AS cor0 WHERE ( NULL ) <= + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2096
SELECT 30 DIV MIN( col1 ) + + 15 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2096
SELECT 30 / MIN ( col1 ) + + 15 FROM tab0 AS cor0
----
45

query I rowsort
SELECT DISTINCT - ( + 98 ) AS col0 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT ALL - 90 + col0 AS col1 FROM tab1 cor0
----
-39
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2099
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2100
SELECT ALL - + col1 + CAST( col0 + - 40 * + col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
11370
123516
53032

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - + col1 + CAST ( col0 + - 40 * + col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
11370
123516
53032

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + + col0 * - col2 IS NULL
----

query I rowsort
SELECT ALL ( + col2 ) + - 22 FROM tab1
----
37
46
74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2103
SELECT * FROM tab2 WHERE ( 73 * + col0 ) NOT BETWEEN + ( + 71 ) AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2103
SELECT * FROM tab2 WHERE ( 73 * + col0 ) NOT BETWEEN + ( + 71 ) AND - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - col1 + - 51 FROM tab0
----
-132
-52
-72

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND 69 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT MIN( - col2 ) + 21 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2106
SELECT MIN ( - col2 ) + 21 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL - COUNT( * ) * 55 FROM tab1 WHERE NOT ( 38 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - COUNT ( * ) * 55 FROM tab1 WHERE NOT ( 38 ) <= NULL
----
0

query I rowsort
SELECT ALL - col2 + ( col0 ) AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT col0 + - 68 + 57 * + col2 * + ( col0 ) AS col0 FROM tab1
----
279055
285872
352739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT CAST( NULL AS SIGNED ) * 12 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT CAST ( NULL AS INTEGER ) * 12 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - col0 * ( + 64 ) IS NULL
----

query I rowsort
SELECT ALL col1 - + - 9 AS col1 FROM tab0
----
10
30
90

query III rowsort
SELECT * FROM tab1 WHERE 14 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col2 + - col2 * 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2115
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND 16
----

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT DISTINCT - CAST( - 96 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - CAST ( - 96 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 * col2 = - col1 * - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col2 * + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT ( - 71 ) * col1 + col2 - col2 AS col0 FROM tab0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT + CAST( NULL AS SIGNED ) / + 80 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2121
SELECT + CAST ( NULL AS INTEGER ) / + 80 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT + COUNT( * ) + 43 + + CAST( NULL AS SIGNED ) + + ( AVG ( ALL 77 ) + 79 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + COUNT ( * ) + 43 + + CAST ( NULL AS INTEGER ) + + ( AVG ( ALL 77 ) + 79 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL MAX( - - 22 ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL MAX ( - - 22 ) FROM tab2
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, col0 col1 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
85

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE col1 >= NULL
----

query II rowsort
SELECT - 87, - 79 AS col0 FROM tab2 AS cor0
----
-87
-79
-87
-79
-87
-79

query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL SUM( DISTINCT col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL SUM ( DISTINCT col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT + + 95 * - 23 FROM tab1 AS cor0
----
-2185

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT col2 * 83 DIV - col1 + + col1 FROM tab0 cor0
----
-18
-8216
33

skipif mysql # not compatible
query I rowsort label-2131
SELECT col2 * 83 / - col1 + + col1 FROM tab0 cor0
----
-18
-8216
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + + 62 + - 66 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT - + MIN( 50 ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2133
SELECT - + MIN ( 50 ) FROM tab0 AS cor0
----
-50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 17 BETWEEN ( + col1 + col2 ) AND + col0 * col0 - 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 * + + 2 FROM tab2 cor0
----
-116
-46
-80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 / + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT + COUNT( ALL col2 ) - - 3 FROM tab2 WHERE NOT ( + col2 ) IN ( + col0 )
----
6

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT + COUNT ( ALL col2 ) - - 3 FROM tab2 WHERE NOT ( + col2 ) IN ( + col0 )
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( + 71 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL <> ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL <> ( + col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 NOT BETWEEN NULL AND ( 3 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2141
SELECT - COUNT( * ) DIV + + COUNT( * ), + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2141
SELECT - COUNT ( * ) / + + COUNT ( * ), + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT ALL 3 AS col1 FROM tab1 WHERE NOT ( + - 32 ) IS NULL
----
3
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 * - + ( + + col0 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2144
SELECT + ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( - 98 * + col1 * CAST( NULL AS DECIMAL ) * - col1 ) >= col1
----

skipif mysql # not compatible
query I rowsort label-2144
SELECT + ( - col0 ) FROM tab1 AS cor0 WHERE NOT ( - 98 * + col1 * CAST ( NULL AS REAL ) * - col1 ) >= col1
----

query I rowsort
SELECT DISTINCT - col0 / - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 96 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
96
96
96

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 AS col2 FROM tab0
----
-100
-231
-3888

query II rowsort
SELECT ALL col2 AS col1, col1 AS col1 FROM tab2 cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL - COUNT( * ) / + COUNT( * ) + - CAST( NULL AS SIGNED ) + - 47 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - COUNT ( * ) / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 47 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT - 15 DIV - COUNT( * ) + - 77 AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2150
SELECT - 15 / - COUNT ( * ) + - 77 AS col1 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT + 54 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - 98, + col2 AS col2 FROM tab0 AS cor0
----
-98
10
-98
47
-98
99

query I rowsort
SELECT - ( - 4 ) AS col1 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - col0 col0 FROM tab0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + ( - - col2 ) AND col2 / col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col0 + + 85 AS col0 FROM tab1
----
4981
5100
6273

query I rowsort
SELECT ALL 21 / - 95 + + col1 FROM tab1 WHERE ( + col1 ) BETWEEN + 16 * - 39 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT + 90 DIV + - col0 + - - col0 FROM tab0
----
86
9
97

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 90 / + - col0 + - - col0 FROM tab0
----
86
9
97

query I rowsort
SELECT DISTINCT 59 - + - 25 AS col2 FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2161
SELECT ( + + COUNT( DISTINCT + col2 ) ) + CAST( NULL AS SIGNED ), - 29 + - 38 col1 FROM tab1 AS cor0
----
NULL
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2161
SELECT ( + + COUNT ( DISTINCT + col2 ) ) + CAST ( NULL AS INTEGER ), - 29 + - 38 col1 FROM tab1 AS cor0
----
NULL
-67

query I rowsort
SELECT ALL + col0 * 32 * + 69 FROM tab0 cor0 WHERE NOT ( 63 + + 57 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - MIN( + + 98 ) AS col1 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2163
SELECT - MIN ( + + 98 ) AS col1 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT ALL 4 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2165
SELECT - col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT - col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * - col2 * + col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT - 2 + 27 - + + 93 / + - col1 > 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * col2 * - - 59 AS col2 FROM tab0 AS cor0
----
130331
578259
5900

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT - 85 * 41 DIV + col1 + + + col1 * - col0 FROM tab2 AS cor0
----
-2414
-4973
-5077

skipif mysql # not compatible
query I rowsort label-2170
SELECT - 85 * 41 / + col1 + + + col1 * - col0 FROM tab2 AS cor0
----
-2414
-4973
-5077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT CAST( + col2 AS SIGNED ) * - col1 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2171
SELECT CAST ( + col2 AS INTEGER ) * - col1 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - + 71 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + CAST( - col0 AS SIGNED ) = + col1 )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2173
SELECT + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + CAST ( - col0 AS INTEGER ) = + col1 )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2174
SELECT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2175
SELECT * FROM tab0 WHERE NOT - col2 + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2175
SELECT * FROM tab0 WHERE NOT - col2 + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 9 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + ( + col0 ) ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT + MAX( DISTINCT - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + MAX ( DISTINCT - 28 ) FROM tab0
----
-28

query I rowsort
SELECT - 70 * - col0 * col1 AS col0 FROM tab2
----
164220
344960
351750

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT DISTINCT - COUNT( + - 19 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT - COUNT ( + - 19 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + + ( + col1 ) * col0 + + - col0 * + 17 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + + ( + col1 ) * col0 + + - col0 * + 17 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT MAX( ALL + col1 ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col2 / + 7 + + + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT MAX ( ALL + col1 ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col2 / + 7 + + + col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - 34 + - col0 AS col0 FROM tab0 AS cor0
----
-121
-131
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-2185
SELECT + + 20 col0, - col1 DIV 55 FROM tab1 AS cor0
----
20
0
20
0
20
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2185
SELECT + + 20 col0, - col1 / 55 FROM tab1 AS cor0
----
20
0
20
0
20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT - MAX( ALL + 19 ) col0 FROM tab1
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2186
SELECT DISTINCT - MAX ( ALL + 19 ) col0 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT ( - 4 ) + + - COUNT( + - col0 ) AS col0, + 31 FROM tab0 AS cor0
----
-7
31

skipif mysql # not compatible
query II rowsort label-2187
SELECT ( - 4 ) + + - COUNT ( + - col0 ) AS col0, + 31 FROM tab0 AS cor0
----
-7
31

query II rowsort
SELECT 7 + col2 + - col1 + + col2 AS col2, col1 + col0 + + col1 + - - ( + col1 ) AS col0 FROM tab2 AS cor0
----
10
295
2
199
56
276

query III rowsort
SELECT * FROM tab2 cor0 WHERE 10 * + ( col0 ) NOT BETWEEN - - 33 AND - ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 63 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ALL - col1 + + ( col1 ) + + 85 * + + col0 * - ( + col1 ) * + CAST( NULL AS SIGNED ) + + 96 + 13 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - col1 + + ( col1 ) + + 85 * + + col0 * - ( + col1 ) * + CAST ( NULL AS INTEGER ) + + 96 + 13 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT 95 + - + MAX( ALL 56 ) * + 6 FROM tab2
----
-241

skipif mysql # not compatible
query I rowsort label-2192
SELECT 95 + - + MAX ( ALL 56 ) * + 6 FROM tab2
----
-241

query III rowsort
SELECT * FROM tab0 WHERE - 60 IS NULL
----

query I rowsort
SELECT ALL - col2 + ( - col0 ) FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) BETWEEN - 56 AND + col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - MIN( - col2 ) - - + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-2197
SELECT - MIN ( - col2 ) - - + COUNT ( * ) FROM tab0
----
102

query I rowsort
SELECT DISTINCT - 85 * + + col0 + + + ( + 12 ) FROM tab0 AS cor0
----
-1263
-7383
-8233

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 < ( - - 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT MIN( 24 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2200
SELECT MIN ( 24 ) FROM tab1
----
24

query II rowsort
SELECT - col0, - col2 AS col0 FROM tab1
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT DISTINCT - - col1 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT COUNT( + - col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2203
SELECT COUNT ( + - col1 ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT DISTINCT + 12 DIV - ( col1 ) FROM tab1 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT + 12 / - ( col1 ) FROM tab1 cor0
----
-2
0

query II rowsort
SELECT DISTINCT - col0, + col0 * - + ( + + ( 36 ) ) AS col2 FROM tab0 AS cor0
----
-15
-540
-87
-3132
-97
-3492

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT col0 * - - 95 AS col0 FROM tab2 AS cor0
----
4370
6080
7125

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 WHERE NOT col1 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 + col1 col0 FROM tab0 cor0
----
786
891
9604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT DISTINCT + COUNT( - col1 ) DIV - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT DISTINCT + COUNT ( - col1 ) / - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL - - 99 + - + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - - 99 + - + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - + AVG ( - col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + ( col2 ) FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT ALL + col0 + - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + col0 + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2215
SELECT + CAST( NULL AS SIGNED ) + - - ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT + CAST ( NULL AS INTEGER ) + - - ( col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2216
SELECT col2 DIV + CAST( - + CAST( - 53 AS SIGNED ) AS SIGNED ) + - 80 * - 89 FROM tab0
----
7120
7120
7121

skipif mysql # not compatible
query I rowsort label-2216
SELECT col2 / + CAST ( - + CAST ( - 53 AS INTEGER ) AS INTEGER ) + - 80 * - 89 FROM tab0
----
7120
7120
7121

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL <= - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2218
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 98 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 98 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - 30 * + + col2 FROM tab0 AS cor0
----
15
-1410
87
-300
97
-2970

query I rowsort
SELECT DISTINCT - + col0 + - ( - col1 ) + col1 FROM tab2 AS cor0
----
56
59
90

query I rowsort
SELECT 16 * col0 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2223
SELECT - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2223
SELECT - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 99 * 19 - + col0 - 68 - + + col1 + col2 AS col1 FROM tab1 AS cor0
----
1743
1782
1844

query I rowsort
SELECT DISTINCT col2 * - + 2 + + 98 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-752
-880
-9702

query I rowsort
SELECT ALL col2 * + 25 + - + col2 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT ALL - col1 + 10 * + 15 FROM tab2
----
73
83
99

query I rowsort
SELECT DISTINCT - col0 - + + 55 - - 54 AS col0 FROM tab2
----
-47
-65
-76

query III rowsort
SELECT * FROM tab2 WHERE - col2 < ( col2 * + col0 + - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 49 FROM tab0 WHERE - ( + 68 ) IS NULL
----

query II rowsort
SELECT ALL + ( + + col2 ), + 99 FROM tab1
----
59
99
68
99
96
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 * + 52 col0 FROM tab0
----
3224
3224
3224

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT + + 81 <> NULL
----

query I rowsort
SELECT - col2 * - + ( - col0 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2236
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + + - CAST( NULL AS DECIMAL ) / + col2 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 + + - CAST ( NULL AS REAL ) / + col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT ALL 9 AS col2 FROM tab0 cor0
----
9
9
9

query I rowsort
SELECT DISTINCT - + 76 AS col0 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT MAX( DISTINCT + + 66 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT MAX ( DISTINCT + + 66 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
66

query I rowsort
SELECT - 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT + + CAST( NULL AS SIGNED ) + + 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2242
SELECT + + CAST ( NULL AS INTEGER ) + + 82 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + col0 * + col1 * + + col1 AS col1, + 16 FROM tab1
----
201019
16
2125
16
9996
16

query I rowsort
SELECT ALL - col2 * + - col1 AS col1 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 61 * - 76 AS col0 FROM tab0 AS cor0
----
-4636
-4636
-4636

query II rowsort
SELECT ALL - col1, 85 * 20 AS col0 FROM tab2 AS cor0
----
-51
1700
-67
1700
-77
1700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT DISTINCT - COUNT( * ) DIV - + SUM( DISTINCT + 7 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT - COUNT ( * ) / - + SUM ( DISTINCT + 7 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2249
SELECT col2 AS col1, ( + - col1 ) DIV + col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-2249
SELECT col2 AS col1, ( + - col1 ) / + col2 FROM tab2 AS cor0
----
23
-2
40
-1
58
-1

query I rowsort
SELECT - - 94 * - 37 AS col1 FROM tab0 AS cor0
----
-3478
-3478
-3478

query I rowsort
SELECT ALL 47 + - 79 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT + 36 * + 91 * + col2 + col1 FROM tab1 AS cor0
----
193289
222815
314510

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT - COUNT( * ) + - 35 AS col2 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - COUNT ( * ) + - 35 AS col2 FROM tab0 cor0
----
-38

query I rowsort
SELECT DISTINCT col2 * - 42 FROM tab2
----
-1680
-2436
-966

query I rowsort
SELECT col2 + + col0 + col1 AS col0 FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT ALL - 11 * - + CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - 11 * - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT SUM( ALL - col0 ) + - COUNT( * ) FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-2257
SELECT SUM ( ALL - col0 ) + - COUNT ( * ) FROM tab1
----
-230

query I rowsort
SELECT - 12 * 12 + - col0 FROM tab0
----
-159
-231
-241

query II rowsort
SELECT 86 + col1 AS col1, + col2 FROM tab2
----
137
23
153
58
163
40

query II rowsort
SELECT ALL 92 AS col0, 47 + col0 + + col1 + + col2 FROM tab2
----
92
167
92
228
92
247

query I rowsort
SELECT + col2 + + 59 AS col1 FROM tab0
----
106
158
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2264
SELECT DISTINCT ( + + 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-2264
SELECT DISTINCT ( + + col1 ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + + 27 + - - COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + + 27 + - - COUNT ( * ) FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL > col0
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL > col0
----

query I rowsort
SELECT col0 - ( col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 80 + + col2 + col2 AS col1 FROM tab1
----
198
216
272

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT COUNT( * ) * - 97 + COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-2269
SELECT COUNT ( * ) * - 97 + COUNT ( * ) FROM tab2
----
-288

query I rowsort
SELECT col2 + 18 * 92 FROM tab2 AS cor0
----
1679
1696
1714

query I rowsort
SELECT 90 * - col1 * - col1 + + col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-9
39480
586683

query I rowsort
SELECT + + col1 + + ( + 34 ) AS col0 FROM tab2 AS cor0
----
101
111
85

query I rowsort
SELECT DISTINCT + 50 - - col2 AS col1 FROM tab2 AS cor0
----
108
73
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 22 * col1 BETWEEN + 78 * 22 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT DISTINCT - 64 DIV - 10 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2275
SELECT DISTINCT - 64 / - 10 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 + + col1 + col2 * 27 * + 55 FROM tab0 cor0
----
147017
14892
69957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT - + CAST( + 32 AS SIGNED ) * - col1 + + col2 FROM tab2 cor0
----
1655
2202
2504

skipif mysql # not compatible
query I rowsort label-2277
SELECT - + CAST ( + 32 AS INTEGER ) * - col1 + + col2 FROM tab2 cor0
----
1655
2202
2504

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL - COUNT( ALL + + col2 ) + + COUNT( * ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2278
SELECT ALL - COUNT ( ALL + + col2 ) + + COUNT ( * ) col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / + ( col2 ) < NULL
----

query I rowsort
SELECT + col0 * - 42 + + 97 FROM tab2 AS cor0
----
-1835
-2591
-3053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT - col1 * - CAST( col1 AS SIGNED ) + ( - ( + + CAST( + + col0 AS SIGNED ) ) ) FROM tab2
----
2555
4414
5865

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - col1 * - CAST ( col1 AS INTEGER ) + ( - ( + + CAST ( + + col0 AS INTEGER ) ) ) FROM tab2
----
2555
4414
5865

query II rowsort
SELECT col0 AS col1, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab2 WHERE NOT 97 * + + col1 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL + MIN( + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + MIN ( + + col2 ) FROM tab2
----
23

query II rowsort
SELECT - col1 AS col1, col2 + + - col1 FROM tab1
----
-14
82
-47
21
-5
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 78 col2 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2287
SELECT - + col1, CAST( - - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-2287
SELECT - + col1, CAST ( - - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - 1 ) <> - ( - 3 ) * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT COUNT( 22 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2289
SELECT COUNT ( 22 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT + CAST( - 33 AS SIGNED ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) AS col1 FROM tab1
----
-33

query I rowsort
SELECT DISTINCT + - col1 + ( + + col2 ) FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - ( - ( - + COUNT( * ) ) ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2292
SELECT - ( - ( - + COUNT ( * ) ) ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 63 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-16
-49
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 9
----

query I rowsort
SELECT DISTINCT - 95 * + col0 AS col1 FROM tab0
----
-1425
-8265
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col0 FROM tab1
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, col2 col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 61 + + + col2 * + col0 * 1 FROM tab0 AS cor0
----
766
931
9664

query I rowsort
SELECT DISTINCT - col0 + + - 66 FROM tab0 AS cor0
----
-153
-163
-81

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 94 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT - - COUNT( * ) - - + SUM( - ( + - col2 ) ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - - COUNT ( * ) - - + SUM ( - ( + - col2 ) ) FROM tab1 AS cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT + 6 - + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 6 - + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT MIN( - - col2 ) - - + COUNT( * ) col2 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2306
SELECT MIN ( - - col2 ) - - + COUNT ( * ) col2 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2307
SELECT - SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT col0 * - col2 AS col0, col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT ( 98 ) * - + CAST( NULL AS SIGNED ) + 91 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT ( 98 ) * - + CAST ( NULL AS INTEGER ) + 91 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - COUNT( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2310
SELECT - COUNT ( * ) FROM tab1 WHERE NOT + col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + COUNT( * ) * + 48 + - 1 FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-2311
SELECT + COUNT ( * ) * + 48 + - 1 FROM tab0 AS cor0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT ALL CAST( + - 62 AS SIGNED ) FROM tab2
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL CAST ( + - 62 AS INTEGER ) FROM tab2
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - + 0 + 76 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT ( + - 21 ) AS col1 FROM tab2 AS cor0
----
-21
-21
-21

query II rowsort
SELECT DISTINCT + col1 AS col1, 22 AS col1 FROM tab2 AS cor0
----
51
22
67
22
77
22

query II rowsort
SELECT ALL + 68 AS col0, + col2 * + 42 FROM tab2 AS cor0
----
68
1680
68
2436
68
966

query I rowsort
SELECT DISTINCT + + 85 + + 83 AS col2 FROM tab1 AS cor0 WHERE NULL <> col1
----

query II rowsort
SELECT DISTINCT col1 + + col0 * - col2 + + - 33 AS col1, + col2 FROM tab0 AS cor0
----
-657
47
-882
10
-9635
99

query I rowsort
SELECT + - 30 * col1 + - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-127
-2457
-3645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2320
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= col1 * + 49 * + 22 * + ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 = - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + 93 AS col1 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT DISTINCT + - col2 * + 15 FROM tab0 cor0
----
-1485
-150
-705

query I rowsort
SELECT - 27 * - col1 - + col1 AS col0 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT DISTINCT + ( + COUNT( * ) ) + - + COUNT( + 66 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + ( + COUNT ( * ) ) + - + COUNT ( + 66 ) FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT + 88 * + col1 - 19 DIV col2 FROM tab0 AS cor0
----
1847
7128
88

skipif mysql # not compatible
query I rowsort label-2327
SELECT + 88 * + col1 - 19 / col2 FROM tab0 AS cor0
----
1847
7128
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - - col1 IS NULL
----

query I rowsort
SELECT col2 * col0 + + ( + 27 ) AS col0 FROM tab0
----
732
897
9630

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - ( + + SUM( ALL - col0 ) ) * - 6 AS col2 FROM tab1 AS cor0
----
-1362

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - ( + + SUM ( ALL - col0 ) ) * - 6 AS col2 FROM tab1 AS cor0
----
-1362

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT 62 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT 62 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL - MAX( + + col1 ) * - + ( - - SUM( CAST( NULL AS SIGNED ) ) ) * 24 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - MAX ( + + col1 ) * - + ( - - SUM ( CAST ( NULL AS INTEGER ) ) ) * 24 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 71 - col1 / + col2 AS col2 FROM tab0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * 5 FROM tab1
----
-295
-340
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2335
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + MIN( ALL - ( - + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2336
SELECT + MIN ( ALL - ( - + col0 ) ) FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) * + + col2 + col1 NOT BETWEEN - col0 * 21 + - 30 AND 86 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 * + 75 AS col1, + col0 AS col0 FROM tab1
----
1050
51
3525
91
375
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2340
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) > + 72 + - col1 + + 45 + + col0 * + - col1
----

skipif mysql # not compatible
query III rowsort label-2340
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) > + 72 + - col1 + + 45 + + col0 * + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2341
SELECT - 44 col0, col2 DIV + col0 AS col2 FROM tab2
----
-44
0
-44
0
-44
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2341
SELECT - 44 col0, col2 / + col0 AS col2 FROM tab2
----
-44
0
-44
0
-44
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 > col1 + 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 92 / + col1 AND 76 + - + col1 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT 29 + + COUNT( * ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT 29 + + COUNT ( * ) FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + COUNT( * ) col0 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT + COUNT ( * ) col0 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL - MIN( + col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - MIN ( + col2 ) AS col0 FROM tab1
----
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + + col0 > NULL )
----

query II rowsort
SELECT DISTINCT col0 * - + col2 AS col1, col0 AS col0 FROM tab1
----
-4896
51
-5015
85
-6188
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2349
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2349
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT - + 64 DIV - - col1 + - 16 * + + col2 AS col0 FROM tab0 AS cor0
----
-163
-1648
-752

skipif mysql # not compatible
query I rowsort label-2350
SELECT - + 64 / - - col1 + - 16 * + + col2 AS col0 FROM tab0 AS cor0
----
-163
-1648
-752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2351
SELECT - CAST( + + 15 AS SIGNED ) AS col1, - col1 FROM tab2 cor0
----
-15
-51
-15
-67
-15
-77

skipif mysql # not compatible
query II rowsort label-2351
SELECT - CAST ( + + 15 AS INTEGER ) AS col1, - col1 FROM tab2 cor0
----
-15
-51
-15
-67
-15
-77

query I rowsort
SELECT ALL col1 + - 55 + + - ( col1 ) - - 9 AS col2 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT COUNT( * ), 60 col2 FROM tab1
----
3
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2354
SELECT COUNT ( * ), 60 col2 FROM tab1
----
3
60

query I rowsort
SELECT ALL col0 + - 55 AS col2 FROM tab0 WHERE NOT + col2 IS NULL AND NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 85 FROM tab1
----
-136
-170
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL + 73 - + + 85 * - COUNT( * ) FROM tab0
----
328

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 73 - + + 85 * - COUNT ( * ) FROM tab0
----
328

query II rowsort
SELECT ALL col0 AS col1, 35 - col0 AS col1 FROM tab2
----
46
-11
64
-29
75
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT - - MAX( col0 ) + + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2359
SELECT - - MAX ( col0 ) + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 / + col2 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2361
SELECT ALL - + 20 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-20
3

skipif mysql # not compatible
query II rowsort label-2361
SELECT ALL - + 20 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-20
3

query I rowsort
SELECT + - 19 + col2 AS col0 FROM tab2 AS cor0
----
21
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT + + COUNT( DISTINCT + col2 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT + + COUNT ( DISTINCT + col2 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT + + 95 * - SUM( col1 ) FROM tab1 AS cor0
----
-6270

skipif mysql # not compatible
query I rowsort label-2364
SELECT + + 95 * - SUM ( col1 ) FROM tab1 AS cor0
----
-6270

query I rowsort
SELECT DISTINCT - col1 * + + 16 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab1 AS cor0 WHERE col2 + col1 + + 41 + 78 = - - col2
----

query I rowsort
SELECT + col1 * + + 29 FROM tab0 AS cor0
----
2349
29
609

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT + 51 DIV + col2 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2368
SELECT + 51 / + col2 FROM tab0 cor0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT - COUNT( * ) * MAX( - - col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - COUNT ( * ) * MAX ( - - col2 ) FROM tab0 AS cor0
----
-297

query III rowsort
SELECT * FROM tab0 WHERE NOT 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab2 WHERE + - col1 / col2 IS NOT NULL
----
24

query II rowsort
SELECT ALL + ( - col2 ) * - 10 AS col2, - 71 AS col0 FROM tab1 AS cor0
----
590
-71
680
-71
960
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 BETWEEN + col1 AND + col0
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + + col0 + - + col2 col1 FROM tab2 AS cor0
----
103
104
97

query II rowsort
SELECT + 57, col2 AS col0 FROM tab2
----
57
23
57
40
57
58

query I rowsort
SELECT - 57 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL + 94 * + col1 FROM tab1
----
1316
4418
470

query I rowsort
SELECT ALL col2 * - 4 AS col0 FROM tab0
----
-188
-396
-40

query I rowsort
SELECT ALL - 34 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + + col2 + + 2 AS col2 FROM tab1 AS cor0
----
61
70
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 41 col1 FROM tab0 cor0
----
-58
-6
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + 42 + - SUM( ALL - col0 ) col1 FROM tab0 AS cor0
----
241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2382
SELECT + 42 + - SUM ( ALL - col0 ) col1 FROM tab0 AS cor0
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT 62 + - COUNT( * ) * 96 FROM tab0 cor0
----
-226

skipif mysql # not compatible
query I rowsort label-2383
SELECT 62 + - COUNT ( * ) * 96 FROM tab0 cor0
----
-226

onlyif mysql # DIV for integer division: 
query II rowsort label-2384
SELECT DISTINCT 78 AS col0, + col1 DIV - + 36 AS col2 FROM tab0 AS cor0
----
78
-2
78
0

skipif mysql # not compatible
query II rowsort label-2384
SELECT DISTINCT 78 AS col0, + col1 / - + 36 AS col2 FROM tab0 AS cor0
----
78
-2
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT - COUNT( * ) + + 0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - COUNT ( * ) + + 0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT ALL + + 72 DIV + + col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL + + 72 / + + col2 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT ALL - 77 + col0 AS col2 FROM tab2 AS cor0
----
-13
-2
-31

query III rowsort
SELECT * FROM tab0 WHERE - - col1 <= - - 70 - + 98 + 31
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - 39 - + COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - 39 - + COUNT ( * ) FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-2390
SELECT col2 * - + 53 AS col1, 98 DIV + - col1 FROM tab1
----
-3127
-19
-3604
-2
-5088
-7

skipif mysql # not compatible
query II rowsort label-2390
SELECT col2 * - + 53 AS col1, 98 / + - col1 FROM tab1
----
-3127
-19
-3604
-2
-5088
-7

query II rowsort
SELECT DISTINCT + 80 AS col0, + col1 * - 35 AS col0 FROM tab1
----
80
-1645
80
-175
80
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT + ( - - 79 ) * COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + ( - - 79 ) * COUNT ( * ) FROM tab1 AS cor0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-2393
SELECT - ( + col1 ) + + col0 DIV col1 + - 8 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-59
-74
-85

skipif mysql # not compatible
query I rowsort label-2393
SELECT - ( + col1 ) + + col0 / col1 + - 8 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-59
-74
-85

query II rowsort
SELECT ALL 27, + col0 FROM tab0 cor0
----
27
15
27
87
27
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 72 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + col2 FROM tab2 AS cor0 WHERE col2 * + + col1 + 57 + + col2 * ( + col1 ) - + 1 / - col1 * - col1 BETWEEN ( + col2 + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT - 84 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-84
-3

skipif mysql # not compatible
query II rowsort label-2397
SELECT - 84 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-84
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT DISTINCT + CAST( NULL AS SIGNED ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT 27 * - + col1 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
-102708
-2672
-5649

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + + SUM( - 13 ) AS col2 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2400
SELECT + + SUM ( - 13 ) AS col2 FROM tab1 cor0
----
-39

query I rowsort
SELECT col2 * 57 FROM tab0
----
2679
5643
570

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT + col2 * 93 DIV + 99 AS col1 FROM tab2
----
21
37
54

skipif mysql # not compatible
query I rowsort label-2402
SELECT + col2 * 93 / + 99 AS col1 FROM tab2
----
21
37
54

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 80 <> + 13 + - + 85 + + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( - col2 ) BETWEEN ( col2 + + col0 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT 96 * - - COUNT( * ) * - 96 FROM tab1
----
-27648

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT 96 * - - COUNT ( * ) * - 96 FROM tab1
----
-27648

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT COUNT( * ) * + + 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT COUNT ( * ) * + + 41 FROM tab2
----
123

query I rowsort
SELECT - 97 * + col1 AS col1 FROM tab1
----
-1358
-4559
-485

query II rowsort
SELECT ALL - col0 * - 43, - col2 AS col0 FROM tab2
----
1978
-23
2752
-40
3225
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2409
SELECT ALL * FROM tab0 WHERE NOT - + 91 * + - CAST( NULL AS SIGNED ) * - col0 < col0 + - 80
----

skipif mysql # not compatible
query III rowsort label-2409
SELECT ALL * FROM tab0 WHERE NOT - + 91 * + - CAST ( NULL AS INTEGER ) * - col0 < col0 + - 80
----

query I rowsort
SELECT DISTINCT + - col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1293
210
3105

query II rowsort
SELECT 13 + 47 AS col1, 68 FROM tab2 AS cor0
----
60
68
60
68
60
68

query I rowsort
SELECT DISTINCT + col1 + - 75 + + + col1 FROM tab2 AS cor0
----
27
59
79

query I rowsort
SELECT + 50 + - col0 * col2 FROM tab2 cor0
----
-1008
-2510
-4300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2414
SELECT ALL * FROM tab1 AS cor0 WHERE col2 > + CAST( NULL AS SIGNED ) + - + ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-2414
SELECT ALL * FROM tab1 AS cor0 WHERE col2 > + CAST ( NULL AS INTEGER ) + - + ( + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 80, col2 * 42 )
----

query I rowsort
SELECT + ( + 77 ) FROM tab1 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2417
SELECT DISTINCT - ( + COUNT( col0 ) ) AS col0, 89 * + COUNT( * ) FROM tab1 AS cor0
----
-3
267

skipif mysql # not compatible
query II rowsort label-2417
SELECT DISTINCT - ( + COUNT ( col0 ) ) AS col0, 89 * + COUNT ( * ) FROM tab1 AS cor0
----
-3
267

query I rowsort
SELECT ALL - 69 + col1 * + 88 FROM tab0 AS cor0
----
1779
19
7059

query I rowsort
SELECT - 29 - + - 97 AS col2 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL + - col0 + - 48 AS col0 FROM tab0 AS cor0
----
-135
-145
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT - + ( + 38 ) - + 93 DIV + - col0 AS col0 FROM tab0 AS cor0
----
-32
-37
-38

skipif mysql # not compatible
query I rowsort label-2421
SELECT - + ( + 38 ) - + 93 / + - col0 AS col0 FROM tab0 AS cor0
----
-32
-37
-38

query I rowsort
SELECT - + 50 - col2 AS col2 FROM tab1 AS cor0
----
-109
-118
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT DISTINCT MIN( + col0 ) - - ( - 91 ), - 43 AS col1 FROM tab0
----
-76
-43

skipif mysql # not compatible
query II rowsort label-2423
SELECT DISTINCT MIN ( + col0 ) - - ( - 91 ), - 43 AS col1 FROM tab0
----
-76
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT ALL col1 - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2424
SELECT ALL col1 - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL + CAST( + 56 AS SIGNED ) FROM tab0 cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + CAST ( + 56 AS INTEGER ) FROM tab0 cor0
----
56
56
56

query I rowsort
SELECT - col2 * - 20 FROM tab1 cor0
----
1180
1360
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + - COUNT( 91 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2427
SELECT + - COUNT ( 91 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT DISTINCT + MAX( - + 95 ) AS col2, - 33 * + 38 FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL
-1254

skipif mysql # not compatible
query II rowsort label-2428
SELECT DISTINCT + MAX ( - + 95 ) AS col2, - 33 * + 38 FROM tab1 AS cor0 WHERE NOT NULL < col0
----
NULL
-1254

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * + col0 AND - 2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 73 * + col1 * - 44 AS col2 FROM tab0
----
260172
3212
67452

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + - SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2432
SELECT + - SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + MAX( - ( - ( + - 99 ) ) ) col2 FROM tab1 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2433
SELECT + MAX ( - ( - ( + - 99 ) ) ) col2 FROM tab1 cor0
----
-99

query II rowsort
SELECT ALL + - 70 * + col0 AS col0, ( - - 76 ) FROM tab1 AS cor0
----
-3570
76
-5950
76
-6370
76

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 27
----

query I rowsort
SELECT - 48 + - col1 AS col2 FROM tab0
----
-129
-49
-69

query I rowsort
SELECT col1 + + - 44 FROM tab1
----
-30
-39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col0 FROM tab1
----
87

query I rowsort
SELECT col0 * 41 FROM tab2
----
1886
2624
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + MAX( - - 96 ) col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2440
SELECT + MAX ( - - 96 ) col0 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT + - col0 + - 59 FROM tab2 AS cor0
----
-105
-123
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - MAX( - col0 ) + 60 FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - MAX ( - col0 ) + 60 FROM tab2 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL - - COUNT( * ) * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - - COUNT ( * ) * 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
180

query I rowsort
SELECT + col1 + + - col1 - + 65 AS col1 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT + col0 + + ( - col1 ) AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT + + 95 + + col0 FROM tab0 AS cor0
----
110
182
192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + col2 * + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE - + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2448
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE - + col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 + - col2 * - - col2 FROM tab0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT SUM( DISTINCT - + 91 ) + + 30 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT SUM ( DISTINCT - + 91 ) + + 30 FROM tab2
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 - + - 35 * + 16 * - col0 col0 FROM tab1
----
-28505
-47545
-50905

query II rowsort
SELECT col0, 12 - - 30 + - - col1 * + + col0 AS col1 FROM tab1
----
51
756
85
467
91
4319

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 20 < NULL
----

query I rowsort
SELECT - ( - 78 ) AS col2 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + - 83 * + ( 2 ) AS col0 FROM tab2 cor0
----
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT 7 * + 63 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22491
-29547
-33957

skipif mysql # not compatible
query I rowsort label-2456
SELECT 7 * + 63 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22491
-29547
-33957

query I rowsort
SELECT ALL 36 AS col2 FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT 61 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 92 * + col2 AND + col2
----

query II rowsort
SELECT - 78 AS col2, col2 FROM tab0 AS cor0
----
-78
10
-78
47
-78
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 15 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - col2 AS col2, + col1 + + 54 FROM tab0 AS cor0
----
10
75
47
135
99
55

query I rowsort
SELECT DISTINCT + + col2 + + col0 + - 71 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
3399
7225
807

query II rowsort
SELECT + col2, + col1 * col1 - 45 FROM tab0 AS cor0
----
10
396
47
6516
99
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col0 col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2465
SELECT - 63 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - CAST( NULL AS DECIMAL ) - col0 AND CAST( NULL AS SIGNED ) * + - ( - - col1 )
----

skipif mysql # not compatible
query I rowsort label-2465
SELECT - 63 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - CAST ( NULL AS REAL ) - col0 AND CAST ( NULL AS INTEGER ) * + - ( - - col1 )
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 * + 49 col1 FROM tab0
----
10290
186543
4851

query I rowsort
SELECT col0 FROM tab1 WHERE ( NOT NULL <> - col1 )
----

query I rowsort
SELECT col2 + + 92 + - + col2 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( NULL ) <> col2 * 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT - + COUNT( * ) + - 81 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2471
SELECT - + COUNT ( * ) + - 81 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 5 + 23 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT - col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT DISTINCT COUNT( - 17 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT COUNT ( - 17 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - SUM( + col0 ) * 26 col2 FROM tab2 AS cor0
----
-4810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2475
SELECT - SUM ( + col0 ) * 26 col2 FROM tab2 AS cor0
----
-4810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 56 * 40 * + col2 col0 FROM tab1 cor0
----
10357760
20643840
7797440

query I rowsort
SELECT + + col2 - - col0 * - + 44 AS col0 FROM tab2 AS cor0
----
-2001
-2776
-3242

query I rowsort
SELECT DISTINCT + 5 * - 58 AS col0 FROM tab1 AS cor0
----
-290

query I rowsort
SELECT + 51 - + col0 FROM tab2 AS cor0
----
-13
-24
5

query I rowsort
SELECT - col2 + + 11 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-36
-88
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2481
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - + + col2 - - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2481
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + + col2 - - + col2 IS NOT NULL
----

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT ALL 10 * - + 21 DIV + COUNT( * ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL 10 * - + 21 / + COUNT ( * ) FROM tab1
----
-70

query II rowsort
SELECT DISTINCT ( - col1 ), - 65 AS col0 FROM tab2
----
-51
-65
-67
-65
-77
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL SUM( - - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL SUM ( - - col2 ) AS col0 FROM tab2
----
121

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + ( col1 ) AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - - 91 * + 88 FROM tab1 AS cor0
----
8008
8008
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT + - 37 * + + CAST( - ( + MIN( DISTINCT col2 ) ) AS SIGNED ) FROM tab1 AS cor0
----
2183

skipif mysql # not compatible
query I rowsort label-2489
SELECT + - 37 * + + CAST ( - ( + MIN ( DISTINCT col2 ) ) AS INTEGER ) FROM tab1 AS cor0
----
2183

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT DISTINCT - col1 DIV ( 38 ) * 14 + 51 AS col2 FROM tab0 AS cor0
----
23
51

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - col1 / ( 38 ) * 14 + 51 AS col2 FROM tab0 AS cor0
----
23
51

query I rowsort
SELECT - col0 * + col0 * + - 79 AS col1 FROM tab2
----
167164
323584
444375

query II rowsort
SELECT + 53 AS col1, col0 FROM tab1 AS cor0
----
53
51
53
85
53
91

query II rowsort
SELECT ALL - 89 AS col0, col0 * col1 AS col0 FROM tab0 AS cor0
----
-89
1215
-89
1827
-89
97

query I rowsort
SELECT 70 + col0 + - col0 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ( + 59 ) + - SUM( - col2 ) FROM tab0 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-2495
SELECT ( + 59 ) + - SUM ( - col2 ) FROM tab0 AS cor0
----
215

query I rowsort
SELECT DISTINCT ( - col1 ) + - + col1 AS col2 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2497
SELECT ALL 73, + 58 DIV - + COUNT( * ) AS col1 FROM tab2
----
73
-19

skipif mysql # not compatible
query II rowsort label-2497
SELECT ALL 73, + 58 / - + COUNT ( * ) AS col1 FROM tab2
----
73
-19

query II rowsort
SELECT ALL col2 * - ( + 61 ) + + - col0, 93 + - - ( + col0 ) AS col0 FROM tab2
----
-1449
139
-2504
157
-3613
168

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT col1 + - col1 DIV + + 79 + + col2 DIV + - 78 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2499
SELECT col1 + - col1 / + + 79 + + col2 / + - 78 AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2500
SELECT 53, + col1 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
53
-1173
53
-3080
53
-3886

skipif mysql # not compatible
query II rowsort label-2500
SELECT 53, + col1 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
53
-1173
53
-3080
53
-3886

onlyif mysql # DIV for integer division: 
query II rowsort label-2501
SELECT col2 DIV - - 25, col2 FROM tab0
----
0
10
1
47
3
99

skipif mysql # not compatible
query II rowsort label-2501
SELECT col2 / - - 25, col2 FROM tab0
----
0
10
1
47
3
99

query I rowsort
SELECT col1 * - + col0 AS col2 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT + col2, col2 + col1 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT - SUM( DISTINCT + + 94 ) FROM tab1 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT - SUM ( DISTINCT + + 94 ) FROM tab1 cor0
----
-94

query I rowsort
SELECT ALL - col2 + + - col0 - col0 FROM tab1
----
-198
-229
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT - 73 + CAST( NULL AS SIGNED ) + - + col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT - 73 + CAST ( NULL AS INTEGER ) + - + col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT SUM( DISTINCT + 92 ) + - MAX( col1 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2507
SELECT SUM ( DISTINCT + 92 ) + - MAX ( col1 ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL MAX( ALL + col0 ) * + COUNT( 58 ) col0 FROM tab0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2508
SELECT ALL MAX ( ALL + col0 ) * + COUNT ( 58 ) col0 FROM tab0
----
291

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2509
SELECT col1 DIV + - col0 + CAST( + col0 AS SIGNED ) FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-2509
SELECT col1 / + - col0 + CAST ( + col0 AS INTEGER ) FROM tab2
----
45
63
75

query I rowsort
SELECT - 73 + 51 AS col1 FROM tab0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL - + col1 * - CAST( - + ( - - col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - + col1 * - CAST ( - + ( - - col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT - ( + 51 ) * col0 + 77 + 21 + + col2 FROM tab1 cor0
----
-2407
-4178
-4475

query I rowsort
SELECT ALL - 84 * + col2 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * col1 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT ALL + 48 DIV + 71 + + col0 - col2 * + col1 * + col1 col1 FROM tab2 AS cor0
----
-237096
-260287
-59777

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT ALL + 48 / + 71 + + col0 - col2 * + col1 * + col1 col1 FROM tab2 AS cor0
----
-237096
-260287
-59777

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 / - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 / - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2516
SELECT - col1 / + col0 + + - col2 FROM tab0 WHERE NOT 44 <= - - col2 * - col2 * - + CAST( + col0 AS DECIMAL ) + - + col1 + col2 * + col2
----

skipif mysql # not compatible
query I rowsort label-2516
SELECT - col1 / + col0 + + - col2 FROM tab0 WHERE NOT 44 <= - - col2 * - col2 * - + CAST ( + col0 AS REAL ) + - + col1 + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col1 + - + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col1 + - + col1 < NULL
----
0

query I rowsort
SELECT DISTINCT + ( + col1 ) * - 92 AS col2 FROM tab0
----
-1932
-7452
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT ALL col2 DIV - + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL col2 / - + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT SUM( + col1 ) FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT SUM ( + col1 ) FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND - + col0
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NULL IN ( 41 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 60 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL col1 + CAST( + col0 AS SIGNED ) FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL col1 + CAST ( + col0 AS INTEGER ) FROM tab2
----
141
142
97

query I rowsort
SELECT 66 * + col1 AS col1 FROM tab2
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT + ( SUM( col0 ) ) FROM tab1 WHERE ( NULL ) BETWEEN - col2 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT + ( SUM ( col0 ) ) FROM tab1 WHERE ( NULL ) BETWEEN - col2 AND - col0
----
NULL

query I rowsort
SELECT 72 * col1 AS col2 FROM tab1
----
1008
3384
360

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT DISTINCT ( - col1 ) * + col1 + - 26 DIV col0 FROM tab0
----
-1
-441
-6562

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT ( - col1 ) * + col1 + - 26 / col0 FROM tab0
----
-1
-441
-6562

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT ALL 28 + col2 DIV + col1 AS col2 FROM tab0
----
127
28
28

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL 28 + col2 / + col1 AS col2 FROM tab0
----
127
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) * 48 AS col2 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) * 48 AS col2 FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - 28 * COUNT( * ) + COUNT( * ) col1 FROM tab1 WHERE + 59 - col2 * - col1 <> ( ( col0 ) )
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2530
SELECT ALL - 28 * COUNT ( * ) + COUNT ( * ) col1 FROM tab1 WHERE + 59 - col2 * - col1 <> ( ( col0 ) )
----
-81

query I rowsort
SELECT ALL + col2 * + col2 FROM tab1 WHERE NULL IS NULL
----
3481
4624
9216

query I rowsort
SELECT - 51 - - col1 AS col2 FROM tab0
----
-30
-50
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2533
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - 2 * col0 ) AND + col2 * - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2533
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - 2 * col0 ) AND + col2 * - CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT 50 * - 61 FROM tab1 WHERE ( col2 ) <= - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT 68 FROM tab2 WHERE NULL <> + 99 + - 95 * - col1
----

query I rowsort
SELECT DISTINCT + ( 36 ) * - 44 AS col1 FROM tab2
----
-1584

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( col0 / col1 ) AND NULL
----

query I rowsort
SELECT ALL - 43 * + col0 FROM tab2
----
-1978
-2752
-3225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 12 ) col0 FROM tab1
----
12
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT CAST( COUNT( DISTINCT col1 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2541
SELECT CAST ( COUNT ( DISTINCT col1 ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 7 * + ( - col2 ) FROM tab2
----
-161
-280
-406

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 + 59 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * 48 AS col0 FROM tab1
----
-2256
-240
-672

query I rowsort
SELECT ALL + 48 * 12 AS col1 FROM tab1
----
576
576
576

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 53 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + col1 + 89 * col0 IN ( 6 + 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 + - col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 - + col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 * - col1 AS col0 FROM tab0
----
-105
-405
-5

query I rowsort
SELECT DISTINCT + col2 * col0 - - 55 FROM tab2
----
1113
2615
4405

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT COUNT( * ) * SUM( col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-2553
SELECT COUNT ( * ) * SUM ( col2 ) FROM tab2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT COUNT( * ) * - 66 AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-2554
SELECT COUNT ( * ) * - 66 AS col2 FROM tab0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT col0 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2555
SELECT col0 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col0 * ( ( - 47 ) ) FROM tab2
----
-2162
-3008
-3525

query III rowsort
SELECT * FROM tab1 WHERE col2 - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT ALL col2 DIV ( - col2 * col1 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL col2 / ( - col2 * col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + ( 76 ) AS col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT - 50 + + 79 AS col1 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT col2 * - col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT 76 * - MAX( col0 ) + 34 * - 73 FROM tab0 AS cor0
----
-9854

skipif mysql # not compatible
query I rowsort label-2562
SELECT 76 * - MAX ( col0 ) + 34 * - 73 FROM tab0 AS cor0
----
-9854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT + ( COUNT( * ) ) DIV - 15 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT + ( COUNT ( * ) ) / - 15 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT 81 + COUNT( * ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT 81 + COUNT ( * ) AS col2 FROM tab2
----
84

query I rowsort
SELECT 83 AS col2 FROM tab2 WHERE col0 > ( col2 + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( col1 + - ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * col2 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 14 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT COUNT( * ) * CAST( MIN( DISTINCT + ( col2 ) ) * 58 AS SIGNED ) FROM tab0 AS cor0
----
1740

skipif mysql # not compatible
query I rowsort label-2570
SELECT COUNT ( * ) * CAST ( MIN ( DISTINCT + ( col2 ) ) * 58 AS INTEGER ) FROM tab0 AS cor0
----
1740

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2571
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - 80 = - 44 * col0
----

skipif mysql # not compatible
query III rowsort label-2571
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 80 = - 44 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - COUNT( * ) + - 11 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + 46 * + 97 > NULL
----
-11

skipif mysql # not compatible
query I rowsort label-2572
SELECT - COUNT ( * ) + - 11 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + 46 * + 97 > NULL
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - MAX( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2573
SELECT - MAX ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + 9 + 41 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col0 > - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT SUM( ALL + + ( - col0 ) ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2576
SELECT SUM ( ALL + + ( - col0 ) ) AS col2 FROM tab2
----
-185

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - col0 ) AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( col1 * - ( col2 ) ) AND 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2579
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col0 + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2579
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col0 + CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT MIN( col2 ) * + MAX( 16 * - col0 ) FROM tab2
----
-16928

skipif mysql # not compatible
query I rowsort label-2580
SELECT MIN ( col2 ) * + MAX ( 16 * - col0 ) FROM tab2
----
-16928

query I rowsort
SELECT col0 * + 49 + - 39 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 46 + col1 * + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2582
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 39 + 91 * + CAST( NULL AS SIGNED ) <> ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-2582
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 39 + 91 * + CAST ( NULL AS INTEGER ) <> ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 * - + 31 + + - col1 FROM tab1
----
-1595
-2640
-2868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NOT - 78 * col2 BETWEEN ( col0 ) AND ( + col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + MAX( ( + ( + 59 ) ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + MAX ( ( + ( + 59 ) ) ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - COUNT( * ) * - 91 + + MIN( DISTINCT - col2 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT - COUNT ( * ) * - 91 + + MIN ( DISTINCT - col2 ) FROM tab2 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2587
SELECT + COUNT( * ) / - MIN( + col1 ) + + ( + CAST( NULL AS SIGNED ) + + MIN( ALL - col1 ) ) FROM tab1 WHERE ( ( - 92 ) < - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( * ) / - MIN ( + col1 ) + + ( + CAST ( NULL AS INTEGER ) + + MIN ( ALL - col1 ) ) FROM tab1 WHERE ( ( - 92 ) < - col1 )
----
NULL

query I rowsort
SELECT DISTINCT - 11 * - - col0 FROM tab1 AS cor0
----
-1001
-561
-935

query I rowsort
SELECT 87 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col1 + - + col2 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT DISTINCT - col2 * + CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - col2 * + CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + + SUM( ALL + col1 ) - COUNT( * ) FROM tab0 cor0 WHERE - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT + + SUM ( ALL + col1 ) - COUNT ( * ) FROM tab0 cor0 WHERE - col0 <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT - + 7 + - - ( MIN( DISTINCT col0 ) ) * ( CAST( - 51 AS SIGNED ) ) FROM tab1 AS cor0
----
-2608

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - + 7 + - - ( MIN ( DISTINCT col0 ) ) * ( CAST ( - 51 AS INTEGER ) ) FROM tab1 AS cor0
----
-2608

query I rowsort
SELECT + col0 + + col0 * - - col1 * col2 AS col1 FROM tab2 cor0
----
197184
291525
54004

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - col2 + - 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 17 + + 62 FROM tab0 AS cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 64 AND ( + col2 )
----

query I rowsort
SELECT - col1 + + - col2 * + ( col2 ) + 98 AS col2 FROM tab2
----
-1579
-3333
-482

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * - 31 IS NULL
----

query I rowsort
SELECT DISTINCT 94 + - 75 - col1 AS col0 FROM tab2
----
-32
-48
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 33 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 - + col1 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * + + col1 col0 FROM tab1
----
-2820
-300
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT - COUNT( * ) * + + 74 - 87 col2 FROM tab1
----
-309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2604
SELECT DISTINCT - COUNT ( * ) * + + 74 - 87 col2 FROM tab1
----
-309

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2605
SELECT * FROM tab0 WHERE ( - ( + 75 ) ) NOT BETWEEN ( + col1 ) AND col1 / + CAST( NULL AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2605
SELECT * FROM tab0 WHERE ( - ( + 75 ) ) NOT BETWEEN ( + col1 ) AND col1 / + CAST ( NULL AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( - - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( - - col0 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + ( - ( - 79 ) ) * - ( - COUNT( * ) ) AS col1 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-2607
SELECT + ( - ( - 79 ) ) * - ( - COUNT ( * ) ) AS col1 FROM tab2
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT + MIN( DISTINCT + col2 ) FROM tab2 WHERE NOT - 73 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab2 WHERE NOT - 73 IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND 31
----
0

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND 31
----
0

query I rowsort
SELECT - 13 * - - 94 + - + col1 - - - ( 44 ) AS col2 FROM tab0 AS cor0
----
-1267
-1287
-1347

query II rowsort
SELECT ALL - col0 + + + 17, col1 FROM tab1 cor0
----
-34
14
-68
5
-74
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2612
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - CAST( col1 AS SIGNED ) ) NOT IN ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2612
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - CAST ( col1 AS INTEGER ) ) NOT IN ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 6 * - 1 + col1 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT DISTINCT 51 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT 51 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL ( + COUNT( * ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2615
SELECT ALL ( + COUNT ( * ) ) col0 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2617
SELECT DISTINCT + 8, ( + CAST( NULL AS SIGNED ) ) + - 71 AS col2 FROM tab1 AS cor0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-2617
SELECT DISTINCT + 8, ( + CAST ( NULL AS INTEGER ) ) + - 71 AS col2 FROM tab1 AS cor0
----
8
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) AS col2 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2618
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( col1 ) * col2 = NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 / + col0 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 59 col2 FROM tab1 AS cor0
----
2773
295
826

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT + col1 DIV + ( - col0 ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2623
SELECT + col1 / + ( - col0 ) FROM tab0
----
-5
0
0

query I rowsort
SELECT + ( + + 61 ) * + + 79 - + + col2 FROM tab2
----
4761
4779
4796

query II rowsort
SELECT ALL col2, 11 AS col2 FROM tab0
----
10
11
47
11
99
11

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 6 * + + 82 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 10 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT + 31 DIV col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2628
SELECT + 31 / col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT - col0 < - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2630
SELECT ALL + + col0, CAST( + 46 AS SIGNED ) + - - col0 + - col0 + + ( + col0 ) + col1 DIV + 94 * col0 AS col1 FROM tab0 cor0
----
15
61
87
133
97
143

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL + + col0, CAST ( + 46 AS INTEGER ) + - - col0 + - col0 + + ( + col0 ) + col1 / + 94 * col0 AS col1 FROM tab0 cor0
----
15
61
87
133
97
143

query I rowsort
SELECT ALL + 79 + + + col1 FROM tab2 AS cor0
----
130
146
156

query II rowsort
SELECT - - col2 AS col1, col2 * + - 75 - + + 57 FROM tab0 AS cor0
----
10
-807
47
-3582
99
-7482

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / - col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2634
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT MAX( + - 27 ) col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2635
SELECT DISTINCT MAX ( + - 27 ) col2 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT + - SUM( + + col0 ) FROM tab1 AS cor0 WHERE col0 + + 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + - SUM ( + + col0 ) FROM tab1 AS cor0 WHERE col0 + + 34 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2637
SELECT col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT 10 / + 88 BETWEEN ( - + col0 ) AND ( 94 )
----

skipif mysql # not compatible
query I rowsort label-2637
SELECT col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT 10 / + 88 BETWEEN ( - + col0 ) AND ( 94 )
----

query I rowsort
SELECT col1 + - ( + col0 ) AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT - CAST( NULL AS SIGNED ) + + + MIN( + 85 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - CAST ( NULL AS INTEGER ) + + + MIN ( + 85 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 * col2 + + - 8 + - - col2 * col1 FROM tab2
----
1694
4672
7242

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL - 88 * - MAX( DISTINCT - col2 ) FROM tab0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL - 88 * - MAX ( DISTINCT - col2 ) FROM tab0 WHERE NOT ( NULL ) <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 7 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + - ( + 17 ) AS col0 FROM tab0 AS cor0
----
-16
4
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 0 <= NULL
----

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 64 - - col0 * + + 35 AS col2, col1 AS col2 FROM tab2
----
1674
51
2304
77
2689
67

query I rowsort
SELECT DISTINCT 58 + + - 19 AS col1 FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2648
SELECT * FROM tab2 WHERE + col0 * + col2 BETWEEN col0 * - col2 AND - CAST( + 58 AS SIGNED ) - 24
----

skipif mysql # not compatible
query III rowsort label-2648
SELECT * FROM tab2 WHERE + col0 * + col2 BETWEEN col0 * - col2 AND - CAST ( + 58 AS INTEGER ) - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - + COUNT( DISTINCT + col1 ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2649
SELECT - + COUNT ( DISTINCT + col1 ) FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT 91 * - 2 + + + col2 + col2 FROM tab2
----
-102
-136
-66

query I rowsort
SELECT - col0 FROM tab0 WHERE - col1 + - col0 * col2 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 99 / + col0 > - col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + col0 * - col0 + - 86 AS col0 FROM tab0 AS cor0
----
-311
-7655
-9495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * + + 67 + + col2 col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + 71 * + - col0 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT + + 19 col2 FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT + + 19 col2 FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 56 AS col2 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-56

query I rowsort
SELECT DISTINCT + col0 * + col0 - + - col0 + + - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - - col0 * - 25 * + 63 * 45 FROM tab0 AS cor0
----
-1063125
-6166125
-6874875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - 8 * + + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2661
SELECT ALL - CAST( 30 AS SIGNED ) AS col2 FROM tab0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - CAST ( 30 AS INTEGER ) AS col2 FROM tab0
----
-30
-30
-30

query I rowsort
SELECT - 94 * + col0 FROM tab2
----
-4324
-6016
-7050

query I rowsort
SELECT + + ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + + 46 + - col1 AS col2 FROM tab0 AS cor0
----
-35
25
45

query II rowsort
SELECT ALL col2 AS col1, + col2 + + - 19 FROM tab0
----
10
-9
47
28
99
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT + COUNT( * ) + + COUNT( - + CAST( - + col1 AS SIGNED ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2666
SELECT + COUNT ( * ) + + COUNT ( - + CAST ( - + col1 AS INTEGER ) ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT col2 * - - 84 + + + col2 + 91 + + col1 + - - 95 + + 73 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT col2 * - - 84 + + + col2 + 91 + + col1 + - - 95 + + 73 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - + 49 FROM tab2 AS cor0
----
-3
15
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT DISTINCT CAST( - + col0 AS SIGNED ) * - + 77 + + + 72 AS col0 FROM tab1 AS cor0
----
3999
6617
7079

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) * - + 77 + + + 72 AS col0 FROM tab1 AS cor0
----
3999
6617
7079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + - + 48 col1 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 63 > + 37 + col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT DISTINCT col0 * - col0 + 58 * - col2 + + col1 + - 1 DIV - + col2 AS col1 FROM tab1 cor0
----
-10642
-12178
-8155

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT col0 * - col0 + 58 * - col2 + + col1 + - 1 / - + col2 AS col1 FROM tab1 cor0
----
-10642
-12178
-8155

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT COUNT( - + col2 ) - + COUNT( ALL - + col0 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2674
SELECT DISTINCT COUNT ( - + col2 ) - + COUNT ( ALL - + col0 ) col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2675
SELECT CAST( - 17 AS SIGNED ), col1 * - 21 AS col0 FROM tab1
----
-17
-105
-17
-294
-17
-987

skipif mysql # not compatible
query II rowsort label-2675
SELECT CAST ( - 17 AS INTEGER ), col1 * - 21 AS col0 FROM tab1
----
-17
-105
-17
-294
-17
-987

query I rowsort
SELECT DISTINCT 21 * col2 - - + ( + col0 ) * + + col2 * - + col1 FROM tab2
----
-196280
-290232
-53475

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT ( NOT ( - col2 ) BETWEEN col1 + + + 46 AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 / - - col2 AND ( + col0 )
----

query I rowsort
SELECT DISTINCT 95 * col1 AS col2 FROM tab0 AS cor0
----
1995
7695
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 19 - + - col0 - + + col1 BETWEEN - + col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-2681
SELECT - col1 DIV col0, - col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-5
-1215
0
-1827
0
-97

skipif mysql # not compatible
query II rowsort label-2681
SELECT - col1 / col0, - col1 * + + col0 AS col0 FROM tab0 AS cor0
----
-5
-1215
0
-1827
0
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT - 88 DIV - 59 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2682
SELECT - 88 / - 59 AS col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT 81 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT 81 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 86 * + - 45 FROM tab0
----
-3870

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 55 <> + col1 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT DISTINCT - - COUNT( * ) AS col2, + 32 FROM tab0 AS cor0
----
3
32

skipif mysql # not compatible
query II rowsort label-2687
SELECT DISTINCT - - COUNT ( * ) AS col2, + 32 FROM tab0 AS cor0
----
3
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2688
SELECT ALL - + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL - + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 46 * + - 76 * + 78
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2690
SELECT COUNT( * ) AS col0, COUNT( * ) * - 95 DIV 29 - + - ( + 75 ) FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-2690
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - 95 / 29 - + - ( + 75 ) FROM tab1 AS cor0
----
3
66

query I rowsort
SELECT ALL - 20 * - col0 FROM tab0 AS cor0
----
1740
1940
300

query II rowsort
SELECT ALL 88 AS col2, col2 AS col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) - + 96 + - 5 * + col0 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) - + 96 + - 5 * + col0 AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT ALL 80 * - - ( + + ( - col0 ) ) + + 15 + + 0 DIV - col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4065
-6785
-7265

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL 80 * - - ( + + ( - col0 ) ) + + 15 + + 0 / - col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4065
-6785
-7265

query I rowsort
SELECT ALL - col0 * - - 19 AS col2 FROM tab0 AS cor0
----
-1653
-1843
-285

query II rowsort
SELECT - col2 * + col0 AS col2, col2 + + col1 FROM tab1
----
-4896
110
-5015
64
-6188
115

query I rowsort
SELECT - 85 * + ( + 95 ) FROM tab2
----
-8075
-8075
-8075

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 48 AND - col2 - - col1 * + col0 + - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2699
SELECT DISTINCT * FROM tab2 WHERE NOT 89 / + CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2699
SELECT DISTINCT * FROM tab2 WHERE NOT 89 / + CAST ( - col0 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT SUM( + 39 ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT SUM ( + 39 ) FROM tab1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-2701
SELECT DISTINCT + COUNT( * ) * - - 87 AS col1, + MAX( DISTINCT - col2 ) FROM tab1 WHERE NOT col1 NOT BETWEEN - - col2 AND + + 36 / - 92 * - - 77
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2701
SELECT DISTINCT + COUNT ( * ) * - - 87 AS col1, + MAX ( DISTINCT - col2 ) FROM tab1 WHERE NOT col1 NOT BETWEEN - - col2 AND + + 36 / - 92 * - - 77
----
0
NULL

query I rowsort
SELECT DISTINCT 59 * - - 23 FROM tab0
----
1357

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 84 / + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + + 62 * - MIN( + col2 ) AS col0 FROM tab0 cor0
----
-620

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + + 62 * - MIN ( + col2 ) AS col0 FROM tab0 cor0
----
-620

query I rowsort
SELECT ALL col1 * + - col2 * col0 + + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-197133
-291442
-53963

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT + + COUNT( * ) * - - 90 * - 33 * 38 + - - SUM( - col0 ) FROM tab0 cor0
----
-338779

skipif mysql # not compatible
query I rowsort label-2706
SELECT + + COUNT ( * ) * - - 90 * - 33 * 38 + - - SUM ( - col0 ) FROM tab0 cor0
----
-338779

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT - COUNT( * ) + - COUNT( * ) * - + 1 * 76 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2707
SELECT - COUNT ( * ) + - COUNT ( * ) * - + 1 * 76 FROM tab0 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - COUNT( * ) + - + ( - 94 ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COUNT ( * ) + - + ( - 94 ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT - AVG ( + 60 ) AS col1 FROM tab2 WHERE NOT ( - - col1 * - 98 ) NOT BETWEEN col0 + + + 82 AND + col0
----
NULL

query I rowsort
SELECT ALL ( - 46 ) AS col0 FROM tab1 cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 30 + + - 95 FROM tab0 AS cor0
----
-125

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 NOT BETWEEN 24 - - col1 AND ( - + ( - col2 ) + col1 )
----

query I rowsort
SELECT col1 - + 34 + - col0 FROM tab2 AS cor0
----
-21
-29
-42

query I rowsort
SELECT - 25 - - col1 AS col2 FROM tab1 cor0
----
-11
-20
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT + COUNT( * ) + + - 16 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + COUNT ( * ) + + - 16 FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT DISTINCT - COUNT( * ), + 86 AS col1 FROM tab0
----
-3
86

skipif mysql # not compatible
query II rowsort label-2716
SELECT DISTINCT - COUNT ( * ), + 86 AS col1 FROM tab0
----
-3
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2717
SELECT 41 DIV + ( + COUNT( * ) ) + 8 * COUNT( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2717
SELECT 41 / + ( + COUNT ( * ) ) + 8 * COUNT ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 - + col1 col2 FROM tab1
----
-1
-34
8

query I rowsort
SELECT ALL 9 * - + 82 * + col2 FROM tab1
----
-43542
-50184
-70848

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT + MAX( ALL + - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + MAX ( ALL + - col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2721
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( + + 18 AS SIGNED ) * + + col0 / - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2721
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + 18 AS INTEGER ) * + + col0 / - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT + + 53, + COUNT( + - col2 ) AS col1 FROM tab1 AS cor0
----
53
3

skipif mysql # not compatible
query II rowsort label-2722
SELECT + + 53, + COUNT ( + - col2 ) AS col1 FROM tab1 AS cor0
----
53
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2723
SELECT ALL - CAST( NULL AS SIGNED ), + col1 + CAST( NULL AS SIGNED ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL - CAST ( NULL AS INTEGER ), + col1 + CAST ( NULL AS INTEGER ) - 37 + + - 62 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT 34 * - MAX( ALL + 57 ) * + ( - ( + 4 ) ) + - COUNT( * ) FROM tab0 WHERE + 15 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT 34 * - MAX ( ALL + 57 ) * + ( - ( + 4 ) ) + - COUNT ( * ) FROM tab0 WHERE + 15 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - + MAX( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-2726
SELECT - + MAX ( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-97

query I rowsort
SELECT - - 87 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT - 70 DIV - 73 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 70 / - 73 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL + 93 - - COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2729
SELECT ALL + 93 - - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL - COUNT( - 96 ) * + 60 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - COUNT ( - 96 ) * + 60 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT ALL + - ( - + col1 ) * + 93 + - ( 72 ) AS col0 FROM tab0 cor0
----
1881
21
7461

query II rowsort
SELECT DISTINCT + col1 + ( + - col2 ) AS col1, 26 AS col2 FROM tab2
----
28
26
37
26
9
26

query III rowsort
SELECT * FROM tab1 WHERE + - 27 * - 86 + 58 < + 19 - - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT + COUNT( DISTINCT - + col2 ) + - 33, - COUNT( * ) + + 2 AS col1 FROM tab1
----
-30
-1

skipif mysql # not compatible
query II rowsort label-2735
SELECT + COUNT ( DISTINCT - + col2 ) + - 33, - COUNT ( * ) + + 2 AS col1 FROM tab1
----
-30
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE + 53 + + + col2 >= - - 42 / + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2738
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) < col2
----

skipif mysql # not compatible
query III rowsort label-2738
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) < col2
----

query I rowsort
SELECT ALL + col2 + + col0 FROM tab0 AS cor0 WHERE NOT col2 * col0 IS NULL
----
196
62
97

query I rowsort
SELECT ( - - ( - col1 ) ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - col1 - + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1677
-3431
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + COUNT( + - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2742
SELECT + COUNT ( + - col1 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT ALL - ( - COUNT( DISTINCT - col0 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL - ( - COUNT ( DISTINCT - col0 ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT + - col0 * - 77 * col0 * col2 + col2 FROM tab1 AS cor0
----
19226688
32823234
43359384

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT col0 DIV 25 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-2745
SELECT col0 / 25 FROM tab0
----
0
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL MAX( - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL MAX ( - col0 ) AS col1 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 52 FROM tab1
----
14
-52
47
-52
5
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2748
SELECT CAST( NULL AS SIGNED ) * + col2 + - + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT CAST ( NULL AS INTEGER ) * + col2 + - + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + + + col2 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2750
SELECT ALL - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT 63 DIV 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT 63 / 96 FROM tab0
----
0
0
0

query I rowsort
SELECT - + 85 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT - col1 * - - 20 AS col0 FROM tab0
----
-1620
-20
-420

query II rowsort
SELECT DISTINCT + 92 AS col0, 77 * + 35 FROM tab0 AS cor0
----
92
2695

query II rowsort
SELECT + col0, + 27 AS col1 FROM tab0 AS cor0
----
15
27
87
27
97
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - MIN( ALL - + col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2756
SELECT - MIN ( ALL - + col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2757
SELECT ALL * FROM tab1 WHERE NOT - col2 / - 54 NOT IN ( - - 54 * col2 + - + CAST( - col2 AS SIGNED ) + - 20 / + + 66, - 21, col1 )
----

skipif mysql # not compatible
query III rowsort label-2757
SELECT ALL * FROM tab1 WHERE NOT - col2 / - 54 NOT IN ( - - 54 * col2 + - + CAST ( - col2 AS INTEGER ) + - 20 / + + 66, - 21, col1 )
----

query I rowsort
SELECT DISTINCT 20 * + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND NOT NULL IS NOT NULL
----
1280
1500
920

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND - col2
----

query I rowsort
SELECT DISTINCT + + col2 + + col1 - + 32 * + 58 FROM tab2 AS cor0
----
-1731
-1739
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2761
SELECT CAST( NULL AS SIGNED ) + - 58 AS col2, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-2761
SELECT CAST ( NULL AS INTEGER ) + - 58 AS col2, 22 FROM tab0 AS cor0
----
NULL
22
NULL
22
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL SUM( + - 20 ) + + ( 97 ) AS col0 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL SUM ( + - 20 ) + + ( 97 ) AS col0 FROM tab1
----
37

query I rowsort
SELECT - 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query II rowsort
SELECT - 49 AS col0, + col2 FROM tab0
----
-49
10
-49
47
-49
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT + MIN( DISTINCT - - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + MIN ( DISTINCT - - col2 ) AS col2 FROM tab0
----
10

query I rowsort
SELECT - - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - + 6 * + 38 AS col1 FROM tab0 cor0
----
-228
-228
-228

query I rowsort
SELECT + col0 * - col1 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
-119595
-336608
-379379

query I rowsort
SELECT - 16 * - - col0 * col2 AS col2 FROM tab1
----
-78336
-80240
-99008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2770
SELECT ALL - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 33 FROM tab1
----
-1947
-2244
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col1 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT + MIN( DISTINCT col2 ) col2, 82 AS col2 FROM tab0 AS cor0
----
10
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2773
SELECT + MIN ( DISTINCT col2 ) col2, 82 AS col2 FROM tab0 AS cor0
----
10
82

query II rowsort
SELECT DISTINCT ( + + col0 ) * col1, + col1 AS col2 FROM tab2
----
2346
51
4928
77
5025
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT 97 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT 97 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 * - 2 + + col2 AS col1 FROM tab2 AS cor0
----
120
174
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2777
SELECT * FROM tab2 AS cor0 WHERE 45 BETWEEN - + col0 AND - CAST( + 16 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2777
SELECT * FROM tab2 AS cor0 WHERE 45 BETWEEN - + col0 AND - CAST ( + 16 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 col2 FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 74
----

query I rowsort
SELECT + ( - 4 ) AS col2 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT 22, MIN( col0 ) AS col2 FROM tab0
----
22
15

skipif mysql # not compatible
query II rowsort label-2781
SELECT 22, MIN ( col0 ) AS col2 FROM tab0
----
22
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT DISTINCT col1 * - CAST( 58 AS SIGNED ) FROM tab0
----
-1218
-4698
-58

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT col1 * - CAST ( 58 AS INTEGER ) FROM tab0
----
-1218
-4698
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT ALL CAST( - + col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL - MIN( - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - MIN ( - col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2785
SELECT DISTINCT - 70 AS col2, - COUNT( + ( + - CAST( + col0 AS DECIMAL ) ) ) FROM tab2 AS cor0
----
-70
-3

skipif mysql # not compatible
query II rowsort label-2785
SELECT DISTINCT - 70 AS col2, - COUNT ( + ( + - CAST ( + col0 AS REAL ) ) ) FROM tab2 AS cor0
----
-70
-3

query II rowsort
SELECT ALL + + col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT col2 + - ( - col0 ) FROM tab2
----
104
133
69

query I rowsort
SELECT + col0 + + - col2 * - - col0 AS col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT + - 66 AS col2 FROM tab2 WHERE NOT - col1 * + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + + col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT - + COUNT( col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT - + COUNT ( col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col1 * + col2 * + col2 FROM tab1 cor0
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT - COUNT( * ) * 65 AS col1, - 71 FROM tab0 AS cor0
----
-195
-71

skipif mysql # not compatible
query II rowsort label-2794
SELECT - COUNT ( * ) * 65 AS col1, - 71 FROM tab0 AS cor0
----
-195
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + COUNT( * ) * - 27 * + 56 AS col0 FROM tab0
----
-4536

skipif mysql # not compatible
query I rowsort label-2795
SELECT + COUNT ( * ) * - 27 * + 56 AS col0 FROM tab0
----
-4536

query I rowsort
SELECT 17 * + 99 FROM tab2
----
1683
1683
1683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2797
SELECT - CAST( NULL AS SIGNED ) AS col0, col0 * - col2 * + - col0 FROM tab1
----
NULL
249696
NULL
426275
NULL
563108

skipif mysql # not compatible
query II rowsort label-2797
SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 * - col2 * + - col0 FROM tab1
----
NULL
249696
NULL
426275
NULL
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - 67 * MIN( ALL 9 ) AS col2 FROM tab1
----
-603

skipif mysql # not compatible
query I rowsort label-2798
SELECT - 67 * MIN ( ALL 9 ) AS col2 FROM tab1
----
-603

query II rowsort
SELECT ALL + col0 AS col2, col2 * + + col2 AS col0 FROM tab1
----
51
9216
85
3481
91
4624

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT - 50 + + COUNT( * ) + + + 28 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - 50 + + COUNT ( * ) + + + 28 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 77 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT - - 99 AS col0, MAX( - 43 ) FROM tab2 AS cor0
----
99
-43

skipif mysql # not compatible
query II rowsort label-2803
SELECT - - 99 AS col0, MAX ( - 43 ) FROM tab2 AS cor0
----
99
-43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 + + - col2 * - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT 29 + CAST( - col2 AS SIGNED ) FROM tab0
----
-18
-70
19

skipif mysql # not compatible
query I rowsort label-2805
SELECT 29 + CAST ( - col2 AS INTEGER ) FROM tab0
----
-18
-70
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2806
SELECT ALL + - ( - CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + - ( - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2807
SELECT ( - COUNT( * ) ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2807
SELECT ( - COUNT ( * ) ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT ALL + + 54 AS col2 FROM tab1 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + ( col2 ) + 37 AS col2 FROM tab0 AS cor0
----
136
47
84

query I rowsort
SELECT 98 - + - col1 AS col2 FROM tab2
----
149
165
175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 24 + - - col2 * - col0 col1, - col2 AS col1 FROM tab2
----
-1034
-23
-2536
-40
-4326
-58

query I rowsort
SELECT - ( - 23 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 25 AS col2 FROM tab2
----
48
65
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT ALL col1 DIV - 85 + + 74 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL col1 / - 85 + + 74 FROM tab2
----
74
74
74

query I rowsort
SELECT DISTINCT col1 - col0 + - + col2 * + 60 AS col2 FROM tab0
----
-2754
-6036
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT MAX( ALL 23 ) AS col1 FROM tab2, tab1 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2817
SELECT MAX ( ALL 23 ) AS col1 FROM tab2, tab1 cor0
----
23

query I rowsort
SELECT 46 + - col2 FROM tab1
----
-13
-22
-50

query I rowsort
SELECT ALL - 48 * + - col2 AS col2 FROM tab2
----
1104
1920
2784

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / + 46 >= col1
----

query I rowsort
SELECT DISTINCT + - 17 * col2 FROM tab0 AS cor0
----
-1683
-170
-799

query I rowsort
SELECT + col2 * 96 * col1 FROM tab2 AS cor0
----
112608
295680
373056

query I rowsort
SELECT 59 * - 7 AS col0 FROM tab2 AS cor0
----
-413
-413
-413

query I rowsort
SELECT col0 * + 48 FROM tab0 AS cor0
----
4176
4656
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL + col1 * + CAST( - - col1 AS SIGNED ) * + 53 FROM tab2 AS cor0
----
137853
237917
314237

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + col1 * + CAST ( - - col1 AS INTEGER ) * + 53 FROM tab2 AS cor0
----
137853
237917
314237

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + COUNT( * ) * - 51 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2826
SELECT + COUNT ( * ) * - 51 FROM tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT ALL + col2 * col0 DIV + col1 FROM tab2 AS cor0
----
20
33
64

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + col2 * col0 / + col1 FROM tab2 AS cor0
----
20
33
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2828
SELECT DISTINCT - col1 * + + CAST( NULL AS SIGNED ) + - + col0 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2828
SELECT DISTINCT - col1 * + + CAST ( NULL AS INTEGER ) + - + col0 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - ( + + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT - CAST( - col1 AS SIGNED ) * - 34 + + col2 col2 FROM tab0 AS cor0
----
-2707
-704
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2830
SELECT - CAST ( - col1 AS INTEGER ) * - 34 + + col2 col2 FROM tab0 AS cor0
----
-2707
-704
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT DISTINCT col1 DIV + - col0 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT col1 / + - col0 AS col0 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2832
SELECT ALL col1 * - + 4 AS col2, 79 DIV + - 21 FROM tab0
----
-324
-3
-4
-3
-84
-3

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL col1 * - + 4 AS col2, 79 / + - 21 FROM tab0
----
-324
-3
-4
-3
-84
-3

query I rowsort
SELECT ALL - 98 * col0 * - + col0 AS col0 FROM tab0
----
22050
741762
922082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 24 * - col2 * - - col1 AS col1, col0 - - col1 col0 FROM tab0
----
-2376
98
-5040
108
-91368
96

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 + + 37 AS col2 FROM tab0 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 55 col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + - 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 1 IS NULL
----
-47

query I rowsort
SELECT + col0 + + col0 + + 10 AS col1 FROM tab0
----
184
204
40

query I rowsort
SELECT - 62 + + col0 * + col0 FROM tab1 cor0
----
2539
7163
8219

onlyif mysql # DIV for integer division: 
query II rowsort label-2841
SELECT ALL + col1, col2 DIV + 54 AS col0 FROM tab1 AS cor0
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-2841
SELECT ALL + col1, col2 / + 54 AS col0 FROM tab1 AS cor0
----
14
1
47
1
5
1

query I rowsort
SELECT DISTINCT + ( + col1 ) * - 92 FROM tab1 AS cor0
----
-1288
-4324
-460

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 55 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT ALL - col0 DIV 77 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL - col0 / 77 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - 36 + - + col0 AS col2 FROM tab2 cor0
----
-10
-28
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 78 AND NULL
----

query I rowsort
SELECT - col0 + + 39 - col0 + col1 * col0 + + col0 FROM tab2 AS cor0
----
2339
4903
4989

query I rowsort
SELECT ALL col2 + + 56 * - col2 - + + col1 AS col0 FROM tab2
----
-1316
-2277
-3257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT DISTINCT COUNT( * ) - + SUM( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT COUNT ( * ) - + SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 - 93 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab1 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL MAX( DISTINCT + 26 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL MAX ( DISTINCT + 26 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT col0 * + 76 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT ALL - + col1 * - col0 AS col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT 54 * + MIN( 12 ) AS col2 FROM tab2
----
648

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT 54 * + MIN ( 12 ) AS col2 FROM tab2
----
648

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 / - - col2 IS NULL
----

query I rowsort
SELECT ALL col2 * - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2859
SELECT ALL CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT - - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT + SUM( DISTINCT + 13 ) AS col2 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-2861
SELECT + SUM ( DISTINCT + 13 ) AS col2 FROM tab0 cor0
----
13

query I rowsort
SELECT col1 * - 76 AS col0 FROM tab0
----
-1596
-6156
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT col1 * - CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT col1 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 AS col0, 15 + - - col1 FROM tab1
----
14
29
47
62
5
20

query I rowsort
SELECT ALL col0 * - + col0 FROM tab1 WHERE NOT + col1 * - col2 NOT IN ( col0, col2 * 57, - + 58 )
----

query I rowsort
SELECT DISTINCT col2 * + - col2 * col0 AS col0 FROM tab0
----
-33135
-8700
-950697

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT ( - col1 <= col2 ) ) )
----

query II rowsort
SELECT col1 + + col0 * col1, + 30 + - ( + col0 ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ( - SUM( DISTINCT + col1 ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2869
SELECT ( - SUM ( DISTINCT + col1 ) ) AS col1 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2870
SELECT col2, ( + - CAST( - col2 AS SIGNED ) ) AS col0, + - col0 col0 FROM tab1 AS cor0
----
9 values hashing to c54344399f428ea394425a7b67de710f

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2870
SELECT col2, ( + - CAST ( - col2 AS INTEGER ) ) AS col0, + - col0 col0 FROM tab1 AS cor0
----
9 values hashing to c54344399f428ea394425a7b67de710f

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT DISTINCT + 86 DIV - 30 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + 86 / - 30 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + 81 + + - col1 * - 86 AS col1 FROM tab1 cor0
----
1285
4123
511

query I rowsort
SELECT col1 * col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

query I rowsort
SELECT ALL 7 + col2 FROM tab1
----
103
66
75

query II rowsort
SELECT col2 * + col0 * + col0 AS col2, col1 FROM tab1
----
249696
14
426275
5
563108
47

query I rowsort
SELECT ALL + col2 + - + ( + + col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 87 * + - col0 + col0 * - col2 FROM tab0 AS cor0
----
-18042
-2010
-8439

query I rowsort
SELECT col1 - + col1 * col2 + col1 FROM tab2 AS cor0
----
-1071
-2926
-3752

query I rowsort
SELECT - - col1 * - col1 + + col1 - - 27 - + 86 + - - 57 FROM tab0 AS cor0
----
-2
-422
-6482

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ( 30 ) + ( - COUNT( ALL 79 ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2880
SELECT ( 30 ) + ( - COUNT ( ALL 79 ) ) FROM tab2
----
27

query I rowsort
SELECT 98 + + ( - - 13 ) FROM tab1
----
111
111
111

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT DISTINCT col1 DIV col0 + + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT col1 / col0 + + + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT + 79 - MIN( ALL - 36 ) col2 FROM tab0
----
115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT DISTINCT + 79 - MIN ( ALL - 36 ) col2 FROM tab0
----
115

query II rowsort
SELECT ALL - col1 * + col0 + - 88, 73 AS col0 FROM tab0
----
-1303
73
-185
73
-1915
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - SUM( + col2 ) AS col2 FROM tab2 WHERE + 42 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT - SUM ( + col2 ) AS col2 FROM tab2 WHERE + 42 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 23, col1 * + - col2 AS col0 FROM tab2 AS cor0
----
23
-1173
23
-3080
23
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 54 ) col1 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT + - SUM( DISTINCT 48 ) * - 94 FROM tab2 AS cor0
----
4512

skipif mysql # not compatible
query I rowsort label-2888
SELECT + - SUM ( DISTINCT 48 ) * - 94 FROM tab2 AS cor0
----
4512

query I rowsort
SELECT + + col2 * + + col1 AS col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT 83 AS col2 FROM tab1 cor0
----
83
83
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2891
SELECT ( + COUNT( * ) ), + 96 * + - COUNT( * ) - COUNT( * ) DIV 78 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
-288

skipif mysql # not compatible
query II rowsort label-2891
SELECT ( + COUNT ( * ) ), + 96 * + - COUNT ( * ) - COUNT ( * ) / 78 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - COUNT( * ) * - COUNT( * ) + - 21 AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2892
SELECT - COUNT ( * ) * - COUNT ( * ) + - 21 AS col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL - - ( ( + 34 ) ) FROM tab2 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 cor0 WHERE + 51 IS NULL
----

query I rowsort
SELECT DISTINCT 71 + - + col2 AS col1 FROM tab1
----
-25
12
3

query I rowsort
SELECT DISTINCT 16 * - col1 AS col0 FROM tab2
----
-1072
-1232
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + 4 * 58 * - MIN( DISTINCT + + 30 ) AS col2 FROM tab0
----
-6960

skipif mysql # not compatible
query I rowsort label-2897
SELECT + 4 * 58 * - MIN ( DISTINCT + + 30 ) AS col2 FROM tab0
----
-6960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT + col1 DIV col0 DIV - + col0 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-2899
SELECT + col1 / col0 / - + col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 96 + col2 + - + 27 FROM tab2 cor0
----
-100
-65
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT COUNT( * ) + - MAX( + - CAST( NULL AS SIGNED ) ) - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT COUNT ( * ) + - MAX ( + - CAST ( NULL AS INTEGER ) ) - COUNT ( * ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col1, col2 - + col2 AS col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT - 3 + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT - 3 + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2904
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( + col1 AS SIGNED ) + - 37 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2904
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) + - 37 IS NULL
----

query I rowsort
SELECT ALL - ( + - ( - 1 ) ) * - + col1 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ( - col1 ) AS col2, 6 FROM tab0
----
-1
6
-21
6
-81
6

onlyif mysql # DIV for integer division: 
query II rowsort label-2907
SELECT ALL + col0 + + col2 AS col0, - col0 DIV + col0 FROM tab2
----
104
-1
133
-1
69
-1

skipif mysql # not compatible
query II rowsort label-2907
SELECT ALL + col0 + + col2 AS col0, - col0 / + col0 FROM tab2
----
104
-1
133
-1
69
-1

query I rowsort
SELECT + col0 - + ( + 17 ) FROM tab1
----
34
68
74

query I rowsort
SELECT + col1 + - col1 FROM tab1 WHERE ( NULL IS NULL )
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2910
SELECT ALL COUNT( * ) DIV - + ( - COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL COUNT ( * ) / - + ( - COUNT ( * ) ) FROM tab1
----
1

query I rowsort
SELECT 59 * - + 53 AS col0 FROM tab2
----
-3127
-3127
-3127

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - MIN( - 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2913
SELECT - MIN ( - 12 ) FROM tab0
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - 16 + - + 23 / - col1 * - col0 * - 97 * - 94 + - col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND 8 * - col2 * col2 + - + 97
----

query I rowsort
SELECT ALL - - 6 FROM tab2 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 66 AND + col2 * - - 19 + col1 * - + ( col1 )
----
1

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 66 AND + col2 * - - 19 + col1 * - + ( col1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT ALL col2 * + + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 40 AS col2, 63 FROM tab2
----
40
63
40
63
40
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ( - + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2920
SELECT ( - + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL + 77 AS col2 FROM tab0 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col1 col2 FROM tab0 AS cor0 WHERE NOT col2 <= - col1
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT - CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2923
SELECT - CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 55 = + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT MAX( DISTINCT 7 ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2925
SELECT MAX ( DISTINCT 7 ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT + + col0 + + + 34 + - col1 FROM tab0 AS cor0
----
-32
100
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT ALL col0 DIV + col1 + - col0 + - col0 * - - 51 + + 17 - - col1 - col1 + - - col2 * - col0 AS col2 FROM tab1
----
-10902
-7528
-9401

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL col0 / + col1 + - col0 + - col0 * - - 51 + + 17 - - col1 - col1 + - - col2 * - col0 AS col2 FROM tab1
----
-10902
-7528
-9401

query III rowsort
SELECT * FROM tab1 WHERE - + 54 NOT IN ( - 69 / + 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT - SUM( + col1 ) + COUNT( * ) col1 FROM tab1
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2929
SELECT DISTINCT - SUM ( + col1 ) + COUNT ( * ) col1 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + COUNT( * ) * 34 AS col0 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-2930
SELECT + COUNT ( * ) * 34 AS col0 FROM tab1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL col0 + + col0 DIV + 18 - + col1 + col2 DIV - 14 AS col0 FROM tab0 cor0
----
-69
70
94

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL col0 + + col0 / + 18 - + col1 + col2 / - 14 AS col0 FROM tab0 cor0
----
-69
70
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL SUM( ALL col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL SUM ( ALL col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT DISTINCT - col0 + + 91 AS col0, - col0 - + + col2 FROM tab2 AS cor0
----
16
-133
27
-104
45
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + ( + ( + col2 ) ) ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL 38 * + SUM( + ( - 10 ) ) AS col0 FROM tab1 cor0
----
-1140

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL 38 * + SUM ( + ( - 10 ) ) AS col0 FROM tab1 cor0
----
-1140

query I rowsort
SELECT - ( + 94 ) - - + col2 * + 2 FROM tab1 AS cor0
----
24
42
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + - COUNT( * ) * - - 32 AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + - COUNT ( * ) * - - 32 AS col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + col0 - + - col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL - 60 + + col0 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 * - + 7 + - CAST( NULL AS SIGNED ) + - 43 IS NOT NULL
----
-14
15
4

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - 60 + + col0 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 * - + 7 + - CAST ( NULL AS INTEGER ) + - 43 IS NOT NULL
----
-14
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT + COUNT( * ) - + COUNT( * ) * + COUNT( * ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2942
SELECT + COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT 88 + + + col2 FROM tab1 AS cor0
----
147
156
184

query I rowsort
SELECT + col1 + - + col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( 65 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2946
SELECT DISTINCT + + CAST( ( 4 ) AS SIGNED ) * COUNT( * ) col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2946
SELECT DISTINCT + + CAST ( ( 4 ) AS INTEGER ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 43, 80 * 36 col0 FROM tab1
----
43
2880

query I rowsort
SELECT DISTINCT ( col1 ) * - 78 AS col2 FROM tab1
----
-1092
-3666
-390

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 11 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col2 ) * + - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 88 * - 93 col0 FROM tab1 AS cor0
----
417384
695640
744744

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL SUM( DISTINCT - + 97 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2952
SELECT ALL SUM ( DISTINCT - + 97 ) col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + - 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

query I rowsort
SELECT ALL - ( - 87 ) AS col2 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL MIN( - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL MIN ( - + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + - col2 + + 0 * col2 + - col0 + - 95 * - - col2 AS col0 FROM tab2 AS cor0
----
-2254
-3904
-5643

query I rowsort
SELECT - ( - + col0 ) + - + ( - col0 ) AS col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT - col0 * - col2 + - + col0 + 58 AS col0 FROM tab1 AS cor0
----
4903
4988
6155

query I rowsort
SELECT + ( col2 ) + + 86 * + + col0 - - + ( - - 35 ) FROM tab0 AS cor0
----
1372
7527
8476

query I rowsort
SELECT + col1 * + 57 + - 97 - - + col0 * - 33 + + ( - + 61 ) + 23 AS col2 FROM tab1 AS cor0
----
-1020
-2655
-459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL + CAST( - col2 AS SIGNED ) + + ( + col0 ) col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2962
SELECT ALL + CAST ( - col2 AS INTEGER ) + + ( + col0 ) col2 FROM tab2
----
17
23
24

query I rowsort
SELECT 60 * - + col1 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT DISTINCT - col0 * - - col2 + - col2 + + 29 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-723
-851
-9673

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + + SUM( DISTINCT + + col2 ) AS col1 FROM tab0 WHERE ( 70 IS NOT NULL )
----
156

skipif mysql # not compatible
query I rowsort label-2965
SELECT + + SUM ( DISTINCT + + col2 ) AS col1 FROM tab0 WHERE ( 70 IS NOT NULL )
----
156

query II rowsort
SELECT DISTINCT 3, - 40 AS col2 FROM tab2
----
3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT col1 / col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-46
46
-64
64
-75
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 = + col0 + - - 66 * + + col2 + + col1 * + 87 + + col1 - col1 / - col0 - + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 34 + col1 AS col1 FROM tab1
----
39
48
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT 90 * COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-2972
SELECT 90 * COUNT ( * ) FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT 46 * COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-2973
SELECT 46 * COUNT ( * ) FROM tab2
----
138

query I rowsort
SELECT + col0 * 47 AS col0 FROM tab1
----
2397
3995
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL MAX( ALL 84 ) + 40 FROM tab1
----
124

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL MAX ( ALL 84 ) + 40 FROM tab1
----
124

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( col1 + + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + 14 * COUNT( * ) col2 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2977
SELECT + 14 * COUNT ( * ) col2 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT DISTINCT + col1 DIV 27 AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + col1 / 27 AS col0 FROM tab2
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT 21 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
21
21
21

skipif mysql # not compatible
query I rowsort label-2979
SELECT 21 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2980
SELECT ALL * FROM tab0 WHERE NOT ( - col1 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2980
SELECT ALL * FROM tab0 WHERE NOT ( - col1 * CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 64 FROM tab1 WHERE NOT - 64 IS NOT NULL
----

query I rowsort
SELECT 47 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT ALL col0 DIV - col1 col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT ALL col0 / - col1 col0 FROM tab0
----
-4
-97
0

query I rowsort
SELECT 19 - col1 * 66 FROM tab1
----
-3083
-311
-905

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT - MAX( ALL + 7 ) col1 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2985
SELECT - MAX ( ALL + 7 ) col1 FROM tab2
----
-7

query I rowsort
SELECT col1 * - 33 FROM tab2 WHERE - 52 IS NOT NULL
----
-1683
-2211
-2541

query I rowsort
SELECT ALL 70 AS col1 FROM tab2 WHERE + col2 * + col0 + - 76 NOT BETWEEN - 75 AND col1
----
70
70
70

query I rowsort
SELECT DISTINCT 8 + + col2 AS col0 FROM tab1
----
104
67
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT + 52 - + col1 DIV - ( + 85 ) FROM tab2
----
52
52
52

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 52 - + col1 / - ( + 85 ) FROM tab2
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL - COUNT( * ) + 14 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - COUNT ( * ) + 14 FROM tab1
----
11

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL = - col2 * 79
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL COUNT( * ) + + 87 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL COUNT ( * ) + + 87 FROM tab0
----
90

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + col0 = ( 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2995
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 83 * CAST( 72 AS SIGNED ) - + 34 = NULL
----

skipif mysql # not compatible
query III rowsort label-2995
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 83 * CAST ( 72 AS INTEGER ) - + 34 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL + col2 * - CAST( 76 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4484
-5168
-7296

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + col2 * - CAST ( 76 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2997
SELECT COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + 60 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 87 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 87 > NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT DISTINCT + + 41 DIV - COUNT( * ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT + + 41 / - COUNT ( * ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE 43 BETWEEN + col0 * col1 AND col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 79 - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT 11 DIV - 89 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT 11 / - 89 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT COUNT( * ) * COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT ALL + 32 DIV + 31 col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3007
SELECT ALL + 32 / + 31 col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT ALL + CAST( col0 AS SIGNED ) + 71 FROM tab2 AS cor0
----
117
135
146

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + CAST ( col0 AS INTEGER ) + 71 FROM tab2 AS cor0
----
117
135
146

query I rowsort
SELECT ALL + ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE - 47 * - 52 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + + MIN( DISTINCT 40 ) col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3010
SELECT + + MIN ( DISTINCT 40 ) col2 FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3011
SELECT ALL - COUNT( * ) DIV 77 + - SUM( 32 ) * - 48 AS col0 FROM tab2 AS cor0
----
4608

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - COUNT ( * ) / 77 + - SUM ( 32 ) * - 48 AS col0 FROM tab2 AS cor0
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + MIN( ALL 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3012
SELECT + MIN ( ALL 72 ) FROM tab1 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT ALL 63 * + 12 + - col0 DIV - 47 AS col1 FROM tab2 AS cor0
----
756
757
757

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 63 * + 12 + - col0 / - 47 AS col1 FROM tab2 AS cor0
----
756
757
757

query I rowsort
SELECT ALL + col0 * col0 FROM tab1 WHERE NULL IS NULL
----
2601
7225
8281

query I rowsort
SELECT DISTINCT - col1 * + 29 + + ( + col2 ) FROM tab1
----
-1295
-310
-86

query III rowsort
SELECT * FROM tab1 WHERE - 34 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT MIN( - col1 ) + - 99 FROM tab2
----
-176

skipif mysql # not compatible
query I rowsort label-3017
SELECT MIN ( - col1 ) + - 99 FROM tab2
----
-176

query I rowsort
SELECT 2 * - col0 + - col1 FROM tab1
----
-116
-175
-229

query III rowsort
SELECT * FROM tab2 WHERE ( 10 + - col1 ) NOT BETWEEN ( NULL ) AND col1 + col0
----

query I rowsort
SELECT ALL + col2 * - 75 FROM tab2
----
-1725
-3000
-4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - 69 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT - 34 DIV - ( + col1 ) + + col1 AS col1 FROM tab0 cor0
----
22
35
81

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 34 / - ( + col1 ) + + col1 AS col1 FROM tab0 cor0
----
22
35
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT + + col0 + + 72 + col1 * col0 DIV col2 AS col2 FROM tab1 cor0
----
130
164
225

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT + + col0 + + 72 + col1 * col0 / col2 AS col2 FROM tab1 cor0
----
130
164
225

query I rowsort
SELECT - col2 * + 45 AS col0 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT DISTINCT - col0 - - + col1 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT + 38 * - col1 * col2 FROM tab1
----
-11210
-121448
-51072

query I rowsort
SELECT ALL - col2 + col2 FROM tab1 WHERE 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT SUM( DISTINCT 40 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3028
SELECT SUM ( DISTINCT 40 ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT + + col2 * - col1 * + + 16 - - 11 AS col1 FROM tab1 AS cor0
----
-21493
-4709
-51125

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT + COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3030
SELECT + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT - + 19 * 36 FROM tab1 AS cor0
----
-684
-684
-684

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT + 92, COUNT( * ) AS col1 FROM tab1 AS cor0
----
92
3

skipif mysql # not compatible
query II rowsort label-3032
SELECT + 92, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
92
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 BETWEEN + col0 * + col2 AND - col1 ) OR 62 * col2 - + col2 IN ( + col0 * + col0 + + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - + SUM( - col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3034
SELECT - + SUM ( - col2 ) AS col0 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + COUNT( * ) FROM tab0 WHERE NOT - 63 + - - col0 - col1 * 48 / col1 = ( col0 * col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3035
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - 63 + - - col0 - col1 * 48 / col1 = ( col0 * col2 )
----
3

query II rowsort
SELECT DISTINCT ( - col1 ), col1 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col1 * col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + - SUM( DISTINCT + - col0 ) FROM tab0
----
1791

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + - SUM ( DISTINCT + - col0 ) FROM tab0
----
1791

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( 83 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - SUM( + - 71 ) col2 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3040
SELECT - SUM ( + - 71 ) col2 FROM tab0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT ALL + + col0 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT ALL + + col0 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 * - 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 67 * + 63 FROM tab0
----
4221
4221
4221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT DISTINCT 51 DIV COUNT( * ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT 51 / COUNT ( * ) AS col2 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT - 52 * COUNT( * ) AS col2 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 52 * COUNT ( * ) AS col2 FROM tab2
----
-156

query II rowsort
SELECT DISTINCT + 48, - col2 * col1 + - - col2 + - 1 * - col0 AS col1 FROM tab0
----
48
-113
48
-3745
48
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 32 - + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT - 84 / - CAST( NULL AS SIGNED ) * AVG ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 84 / - CAST ( NULL AS INTEGER ) * AVG ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3049
SELECT DISTINCT + + col2 AS col2, - CAST( - col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3049
SELECT DISTINCT + + col2 AS col2, - CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL col2 + - + col1 * col0 + + 76 AS col2 FROM tab0 AS cor0
----
-1092
-1741
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col1 + - 91 ) NOT IN ( + 58 * 15 ) )
----

query I rowsort
SELECT - 52 * - ( + col2 ) AS col0 FROM tab2
----
1196
2080
3016

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + 66 = NULL )
----

query I rowsort
SELECT + 42 FROM tab1 WHERE ( ( + + col1 ) * - col0 ) < col0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3055
SELECT col1 AS col2, col1 * ( + CAST( + col1 AS SIGNED ) ) * - - ( col2 ) AS col1 FROM tab0
----
1
99
21
4410
81
308367

skipif mysql # not compatible
query II rowsort label-3055
SELECT col1 AS col2, col1 * ( + CAST ( + col1 AS INTEGER ) ) * - - ( col2 ) AS col1 FROM tab0
----
1
99
21
4410
81
308367

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( ( + 27 * - col0 ) <= - 28 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 * - 12 col2 FROM tab2 AS cor0
----
575
808
958

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL - 0 + - + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL - 0 + - + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE + 24 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT - MAX( ALL - col2 ) * - - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3062
SELECT - MAX ( ALL - col2 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3063
SELECT ALL MIN( DISTINCT + + col2 ) col1, + 33 DIV + + 5 AS col1 FROM tab2 cor0
----
23
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3063
SELECT ALL MIN ( DISTINCT + + col2 ) col1, + 33 / + + 5 AS col1 FROM tab2 cor0
----
23
6

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - 14 IN ( - col1 * + 18 * 40 + - 49 )
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col0 AS col1, - ( + - col2 ) * 76 AS col1 FROM tab0
----
15
3572
87
760
97
7524

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT 3 col2, ( + + MIN( ALL - + col0 ) ) * - + 75 FROM tab1
----
3
6825

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3066
SELECT 3 col2, ( + + MIN ( ALL - + col0 ) ) * - + 75 FROM tab1
----
3
6825

onlyif mysql # DIV for integer division: 
query II rowsort label-3067
SELECT - col0 DIV col2 DIV + col1, col0 FROM tab0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-3067
SELECT - col0 / col2 / + col1, col0 FROM tab0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + 37 * + MAX( - 61 ) * - ( + + COUNT( * ) ) AS col1 FROM tab2
----
6771

skipif mysql # not compatible
query I rowsort label-3068
SELECT + 37 * + MAX ( - 61 ) * - ( + + COUNT ( * ) ) AS col1 FROM tab2
----
6771

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3069
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( CAST( NULL AS SIGNED ) / - col1 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3069
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( CAST ( NULL AS INTEGER ) / - col1 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE col0 IN ( + ( 62 ), + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col0 IN ( + ( 62 ), + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT col0 * 43 + - col0 + - col0 + + col2 * 83 DIV col1 FROM tab0 cor0
----
12194
3606
663

skipif mysql # not compatible
query I rowsort label-3071
SELECT col0 * 43 + - col0 + - col0 + + col2 * 83 / col1 FROM tab0 cor0
----
12194
3606
663

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT 18 DIV col1 + - + col1 col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3072
SELECT 18 / col1 + - + col1 col0 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT col0 + - 76, + col0 FROM tab2 AS cor0
----
-1
75
-12
64
-30
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT - col2 DIV - 60 * col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3074
SELECT - col2 / - 60 * col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + 23 + + - col0 * - 97 FROM tab0 AS cor0
----
1478
8462
9432

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + - col2 - - 93 FROM tab1 cor0
----
-3
25
34

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IS NOT NULL AND ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT - CAST( NULL AS SIGNED ) + - 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT - CAST ( NULL AS INTEGER ) + - 27 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - - + 28 AS col2 FROM tab1
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL MAX( + col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3081
SELECT ALL MAX ( + col2 ) col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - col0 + + col2 + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
16
41

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - 33 BETWEEN NULL AND + 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - COUNT( * ) * MAX( col1 ) + 83 * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( - col2 ) >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - COUNT ( * ) * MAX ( col1 ) + 83 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( - col2 ) >= NULL )
----
NULL

query II rowsort
SELECT 53 AS col0, col0 + + col2 FROM tab0
----
53
196
53
62
53
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL + + MAX( ALL + 50 ) + + COUNT( * ) * MAX( col0 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 66 + - + col0 + + - col0 + + col1 + - - col0 * + + 93 AND ( + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + + MAX ( ALL + 50 ) + + COUNT ( * ) * MAX ( col0 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 66 + - + col0 + + - col0 + + col1 + - - col0 * + + 93 AND ( + + col1 )
----
NULL

query II rowsort
SELECT ALL col1 AS col2, - 52 FROM tab1
----
14
-52
47
-52
5
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 >= NULL
----
0

query I rowsort
SELECT + col0 * - 3 FROM tab0 AS cor0
----
-261
-291
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <> + + col1 * + col2
----

query II rowsort
SELECT col0 AS col1, - col1 FROM tab0 cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - 54 * + col1 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT - COUNT( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3093
SELECT - COUNT ( DISTINCT + + col0 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * + col2 BETWEEN - - col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - COUNT( * ) + + 58 AS col2 FROM tab1, tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - COUNT ( * ) + + 58 AS col2 FROM tab1, tab0 cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 15 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * 78 FROM tab1
----
-4602
-5304
-7488

query I rowsort
SELECT - - col1 AS col1 FROM tab2 WHERE NOT ( NOT 21 + + col1 BETWEEN - col2 + col1 AND - 30 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3099
SELECT ALL * FROM tab2 WHERE 5 + CAST( 34 AS DECIMAL ) <> + col2 + + 91 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3099
SELECT ALL * FROM tab2 WHERE 5 + CAST ( 34 AS REAL ) <> + col2 + + 91 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 54 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <= + col0 * 48 / + col2 + + - col1 - + col2 * 26 / + 22
----
46
51
23

query I rowsort
SELECT ALL col0 + - - col0 FROM tab0 cor0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( 12 ) AND - 67 * - - col2
----

query I rowsort
SELECT - 6 + - col2 AS col2 FROM tab1
----
-102
-65
-74

query I rowsort
SELECT - col0 + - - ( + 94 ) FROM tab0
----
-3
7
79

query I rowsort
SELECT + + 80 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + col2 - col0 + - col0 - + col2 AS col0 FROM tab2 WHERE + 87 * + col1 BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + - + col1 col2 FROM tab2 AS cor0
----
-14
-4
12

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NOT col2 - - col1 < + col1
----
23
40
58

query I rowsort
SELECT - 6 FROM tab1 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-6
-6
-6

query I rowsort
SELECT DISTINCT 73 * - + col2 + - + 33 * - col2 AS col1 FROM tab2 AS cor0
----
-1600
-2320
-920

query I rowsort
SELECT - 44 + 48 * + col2 - - - col2 - + col1 FROM tab1 AS cor0
----
2724
3105
4454

query II rowsort
SELECT DISTINCT 69, col2 * - - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT + 48 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT + 48 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( - col0 ) ) IN ( - col1, col2 )
----

query I rowsort
SELECT col1 * + col2 + + 74 + col1 + - col0 / col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT 28 * col2 + + + CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
1269
2673
270

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT 28 * col2 + + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
1269
2673
270

query I rowsort
SELECT ( 57 ) - - + col1 FROM tab1
----
104
62
71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3120
SELECT ALL * FROM tab0 WHERE NOT CAST( + - col2 AS DECIMAL ) BETWEEN - - col0 + - - 92 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3120
SELECT ALL * FROM tab0 WHERE NOT CAST ( + - col2 AS REAL ) BETWEEN - - col0 + - - 92 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( ( 63 ) ) AS col0 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE - 3 * - 21 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3124
SELECT DISTINCT 49 + + COUNT( * ) AS col1, + 57 AS col0 FROM tab0, tab2 AS cor0
----
58
57

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT 49 + + COUNT ( * ) AS col1, + 57 AS col0 FROM tab0, tab2 AS cor0
----
58
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT + COUNT( * ) * 64 FROM tab0 cor0
----
192

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + COUNT ( * ) * 64 FROM tab0 cor0
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3126
SELECT ALL + - COUNT( * ) DIV - 95 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + - COUNT ( * ) / - 95 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 col0, 8 AS col1 FROM tab1 AS cor0
----
32
8
32
8
32
8

query II rowsort
SELECT + col0, + col2 AS col1 FROM tab1 cor0
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 90 col1 FROM tab2
----
46
90
64
90
75
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab0 WHERE NOT - + ( - 68 ) - + 70 / + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 96 + col1 - - col2 * - 81 FROM tab2
----
-1716
-3067
-4535

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT NULL > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT - - CAST( - + 76 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - col0 AND NULL
----
-76
-76

skipif mysql # not compatible
query I rowsort label-3133
SELECT - - CAST ( - + 76 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - col0 AND NULL
----
-76
-76

query I rowsort
SELECT + - col0 + - col0 * - 30 * + ( + col2 ) - col1 AS col2 FROM tab1 AS cor0
----
146815
150360
185502

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - - MIN( + ( + 17 ) ) + + 24 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3135
SELECT - - MIN ( + ( + 17 ) ) + + 24 FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT 87 + + SUM( DISTINCT col0 ) + COUNT( * ) col2 FROM tab0 AS cor0
----
289

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3136
SELECT 87 + + SUM ( DISTINCT col0 ) + COUNT ( * ) col2 FROM tab0 AS cor0
----
289

query I rowsort
SELECT ALL + 89 + - col2 + + 31 * - col1 FROM tab2 AS cor0
----
-1515
-2046
-2338

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + MAX( ALL + 51 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3138
SELECT + MAX ( ALL + 51 ) FROM tab1
----
51

query I rowsort
SELECT ALL col1 - + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3140
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col0, 4 AS col0 FROM tab0 cor0
----
15
4
87
4
97
4

skipif mysql # not compatible
query II rowsort label-3140
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0, 4 AS col0 FROM tab0 cor0
----
15
4
87
4
97
4

query I rowsort
SELECT DISTINCT col2 * col0 + + ( col0 ) FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT - - CAST( + 96 AS SIGNED ) - - 52 FROM tab0 AS cor0
----
148
148
148

skipif mysql # not compatible
query I rowsort label-3142
SELECT - - CAST ( + 96 AS INTEGER ) - - 52 FROM tab0 AS cor0
----
148
148
148

query II rowsort
SELECT 73 - col0 AS col1, col1 + - - col0 + + col1 FROM tab2 AS cor0
----
-2
209
27
148
9
218

query I rowsort
SELECT DISTINCT + col0 * col1 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
159036
18240
9506

query III rowsort
SELECT * FROM tab1 cor0 WHERE 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 43, + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
43
15
43
87
43
97

query I rowsort
SELECT DISTINCT + col1 + - 21 AS col2 FROM tab0 AS cor0
----
-20
0
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT ALL - COUNT( * ) DIV + SUM( - - col0 ) - + 87 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - COUNT ( * ) / + SUM ( - - col0 ) - + 87 FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3149
SELECT DISTINCT CAST( ( - - 94 ) AS SIGNED ) + - - col0 DIV - 10 col0 FROM tab2
----
87
88
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3149
SELECT DISTINCT CAST ( ( - - 94 ) AS INTEGER ) + - - col0 / - 10 col0 FROM tab2
----
87
88
90

query I rowsort
SELECT + col1 + - 18 + + col2 * - 84 AS col1 FROM tab2
----
-1899
-3301
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT + COUNT( * ) * - 5 * 89 + SUM( ALL + 56 ) col0 FROM tab1
----
-1167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3151
SELECT + COUNT ( * ) * - 5 * 89 + SUM ( ALL + 56 ) col0 FROM tab1
----
-1167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 AS col2, + col1 * col2 + - ( + col1 ) col2 FROM tab1
----
35
1330
35
290
35
3149

query I rowsort
SELECT - 67 * - col0 * + col0 AS col1 FROM tab1 AS cor0
----
174267
484075
554827

query I rowsort
SELECT + - col2 * col2 * + col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col0 ) col2 FROM tab1 cor0 WHERE NOT col1 < - 27
----
51
85
91

query II rowsort
SELECT ALL - - col1 AS col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT DISTINCT - col1 AS col0, ( - - col0 ) * - col0 FROM tab1 AS cor0
----
-14
-2601
-47
-8281
-5
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - - SUM( - + 68 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - ( + col0 ), col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT - - SUM ( - + 68 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - ( + col0 ), col2 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT + - col1 * 35 * + + col0 * - + col2 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
10200750
-67
1888530
-51
6899200
-77

query I rowsort
SELECT 17 * + - 11 + - - col0 FROM tab2 AS cor0
----
-112
-123
-141

query I rowsort
SELECT DISTINCT - - 65 + + 13 AS col1 FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col1 + - 45 AS col2 FROM tab0 AS cor0
----
-126
-46
-66

query I rowsort
SELECT DISTINCT col2 + - 91 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col0 * + col0 * - + 78 >= + + ( + + col2 )
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT ( - ( - col2 ) ) < 26
----
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT col1 DIV - col0 col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3168
SELECT col1 / - col0 col1 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT - 43 DIV col1 AS col1 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - 43 / col1 AS col1 FROM tab1
----
-3
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL COUNT( ALL - 84 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL COUNT ( ALL - 84 ) FROM tab1
----
3

query I rowsort
SELECT ALL - - col0 + col0 * + - col1 AS col0 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT col0 + - col1 FROM tab1 WHERE - col2 - + ( + col0 ) + col2 + + - 36 < ( col2 )
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3173
SELECT col1 * 9 * + ( CAST( NULL AS SIGNED ) ) + + col0 - - + 39 AS col2, + col1 * - - col1 * col1, col1 FROM tab1
----
9 values hashing to 2b2794d08797e567d1f8b5aa914ec67a

skipif mysql # not compatible
query III rowsort label-3173
SELECT col1 * 9 * + ( CAST ( NULL AS INTEGER ) ) + + col0 - - + 39 AS col2, + col1 * - - col1 * col1, col1 FROM tab1
----
9 values hashing to 2b2794d08797e567d1f8b5aa914ec67a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL + col2 * col1 * - col2 + 68 + + col1 / + - ( + col0 ) * - 88 + - + col1 AS col1 FROM tab0 WHERE + - col1 <= - col2 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + col2 * col1 * - col2 + 68 + + col1 / + - ( + col0 ) * - 88 + - + col1 AS col1 FROM tab0 WHERE + - col1 <= - col2 + + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 0 + + + 99 FROM tab1 AS cor0
----
99
99
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - 2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 AS col0, + col2 * - - col1 * - col1 col2, - col2 * col0 AS col2 FROM tab2 cor0
----
9 values hashing to 26bbd5be966f8758cd918943f14714d1

query I rowsort
SELECT 34 * col0 AS col0 FROM tab0
----
2958
3298
510

query I rowsort
SELECT ALL ( 11 ) FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE + 74 / - col2 - + col1 + + 42 NOT BETWEEN + - col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE + 74 / - col2 - + col1 + + 42 NOT BETWEEN + - col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT col2 * + 86 FROM tab1
----
5074
5848
8256

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT + + MAX( - 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3183
SELECT + + MAX ( - 41 ) FROM tab1 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL col2 * 78 AS col2 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 75 + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 36 AS col2 FROM tab0 cor0
----
-36
-36
-36

query II rowsort
SELECT DISTINCT - + 93 + 90 * + + col0 AS col0, col2 + 28 + + 80 AS col1 FROM tab1 cor0
----
4497
204
7557
167
8097
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col1 * + ( + col2 ) AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 68 * + col1 + col0 AS col0 FROM tab2
----
3514
4631
5300

query I rowsort
SELECT DISTINCT - col2 * col0 * - col0 AS col1 FROM tab1
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL ( + 79 ) DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL ( + 79 ) / - col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT - 15 * + col1 AS col1 FROM tab1
----
-210
-705
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT ALL - 82 DIV - col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - 82 / - col0 AS col2 FROM tab0
----
0
0
5

query I rowsort
SELECT 89 + + ( + 65 ) FROM tab0
----
154
154
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 + + col2 col0 FROM tab0
----
15
87
97

query II rowsort
SELECT - col2 + + col2 AS col0, + 21 FROM tab0 AS cor0
----
0
21
0
21
0
21

query I rowsort
SELECT DISTINCT + 51 * - col0 AS col0 FROM tab2 WHERE + col0 + + - col0 - + 64 < NULL
----

query I rowsort
SELECT - 3 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + - 36 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3203
SELECT ALL * FROM tab2 cor0 WHERE NOT - 48 * + col1 IN ( + 10 * + + CAST( - col1 AS SIGNED ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3203
SELECT ALL * FROM tab2 cor0 WHERE NOT - 48 * + col1 IN ( + 10 * + + CAST ( - col1 AS INTEGER ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT DISTINCT MAX( DISTINCT + 64 ) col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3204
SELECT DISTINCT MAX ( DISTINCT + 64 ) col1 FROM tab0 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT - 63 * - col0 - + 40 DIV + - col0 AS col2 FROM tab1 AS cor0
----
3213
5355
5733

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 63 * - col0 - + 40 / + - col0 AS col2 FROM tab1 AS cor0
----
3213
5355
5733

query I rowsort
SELECT + col1 * + + 36 AS col0 FROM tab2 AS cor0 WHERE NOT 61 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3207
SELECT COUNT( * ) AS col0, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3207
SELECT COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0
----
3
-3

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 - col2 FROM tab0
----
-1
-98
-21
11
-81
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3209
SELECT DISTINCT + col2, + col0 + CAST( col1 AS SIGNED ) + col1 + + - col1 FROM tab2
----
23
97
40
141
58
142

skipif mysql # not compatible
query II rowsort label-3209
SELECT DISTINCT + col2, + col0 + CAST ( col1 AS INTEGER ) + col1 + + - col1 FROM tab2
----
23
97
40
141
58
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col0 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 38 - col0 - + - 13 = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT - CAST( - + COUNT( ( + - col0 ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3212
SELECT - CAST ( - + COUNT ( ( + - col0 ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 81 AS col1 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3214
SELECT + MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL + COUNT( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3215
SELECT ALL + COUNT ( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 WHERE NOT - 99 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3218
SELECT - col1 DIV 54 * - 84 * - - col0 AS col1 FROM tab0
----
0
0
1260

skipif mysql # not compatible
query I rowsort label-3218
SELECT - col1 / 54 * - 84 * - - col0 AS col1 FROM tab0
----
0
0
1260

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( * ) + + + SUM( col1 ) AS col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( * ) + + + SUM ( col1 ) AS col2 FROM tab2 AS cor0
----
192

query I rowsort
SELECT + 70 + - + col0 AS col2 FROM tab2 AS cor0
----
-5
24
6

query I rowsort
SELECT ALL 80 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT DISTINCT - MIN( ALL - 59 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - MIN ( ALL - 59 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL 47 * - col2 FROM tab0 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT 57 + - 56 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( + + 47 ) FROM tab0
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE 11 / + + col2 > NULL
----

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 66 * + 86 AS col0 FROM tab2
----
5676
5676
5676

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + col2 <> col2
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + 46 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT 40 DIV + - 14 AS col2 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3232
SELECT 40 / + - 14 AS col2 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL + 75 + - COUNT( * ) AS col2 FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + 75 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + + 13 + - COUNT( * ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3234
SELECT + + 13 + - COUNT ( * ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL col1 + - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL col1 + - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 95 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col1 col0 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT DISTINCT + + col0 * + 44 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL >= - ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + + col0 * + 44 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL >= - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT - 75, - 46 + - MIN( 41 ) AS col1 FROM tab1
----
-75
-87

skipif mysql # not compatible
query II rowsort label-3240
SELECT - 75, - 46 + - MIN ( 41 ) AS col1 FROM tab1
----
-75
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT MAX( + + ( - - 8 ) ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3241
SELECT MAX ( + + ( - - 8 ) ) AS col0 FROM tab2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT COUNT( * ) * 93 * + + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-3242
SELECT COUNT ( * ) * 93 * + + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + COUNT( col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3243
SELECT + COUNT ( col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col1 IN ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - 80 * col2
----

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - 80 * col2
----

query II rowsort
SELECT ALL + ( + col0 ) AS col2, + col2 + - ( - + col1 ) AS col1 FROM tab0 cor0
----
15
128
87
31
97
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) IN ( - + 54 + + 35 * + 30 + + - col2, + col0 * - col2, col1 + - + 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3247
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) IN ( - + 54 + + 35 * + 30 + + - col2, + col0 * - col2, col1 + - + 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2, col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT + + 17 AS col2 FROM tab1 cor0
----
17

query I rowsort
SELECT - ( + 3 ) AS col1 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL - col0 * col1 * + 76 + - col1 AS col0 FROM tab2 AS cor0
----
-178347
-374605
-381967

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 36 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 * - 20 - - - col1 + + + col1 AS col2 FROM tab1
----
184224
69561
92412

query III rowsort
SELECT ALL * FROM tab1 WHERE - 94 <= - col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3255
SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST( NULL AS SIGNED ) * + col1 * + col2 AS col1 FROM tab1
----
1751
NULL

skipif mysql # not compatible
query II rowsort label-3255
SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col1 FROM tab1
----
1751
NULL

query I rowsort
SELECT ALL 14 FROM tab2 WHERE NOT + col2 IS NULL
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3257
SELECT DISTINCT ( + col1 ), + col2 + CAST( + col0 AS SIGNED ) + + col1 FROM tab1
----
14
161
47
206
5
149

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT ( + col1 ), + col2 + CAST ( + col0 AS INTEGER ) + + col1 FROM tab1
----
14
161
47
206
5
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT MAX( 36 ) * + COUNT( * ) * - 98 FROM tab0 AS cor0
----
-10584

skipif mysql # not compatible
query I rowsort label-3258
SELECT MAX ( 36 ) * + COUNT ( * ) * - 98 FROM tab0 AS cor0
----
-10584

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + 68 * + + COUNT( * ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3259
SELECT + 68 * + + COUNT ( * ) FROM tab1 AS cor0
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT + COUNT( * ) DIV + SUM( - 27 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT + COUNT ( * ) / + SUM ( - 27 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + + col2
----

query I rowsort
SELECT ALL + col1 * ( ( - + col1 ) ) FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE - col1 BETWEEN NULL AND + col0
----

query II rowsort
SELECT col0 AS col1, - 46 FROM tab0 cor0
----
15
-46
87
-46
97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + 18 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 18 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL 28 DIV + ( + col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL 28 / + ( + col0 ) FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - col1 AS col2, - col1 AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT - - ( - 88 ) * + COUNT( DISTINCT + 81 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3268
SELECT - - ( - 88 ) * + COUNT ( DISTINCT + 81 ) FROM tab0 AS cor0
----
-88

query I rowsort
SELECT + 3 * 68 AS col1 FROM tab1 AS cor0
----
204
204
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - 36 AS col1, col1 + - - 94 col1 FROM tab2
----
1440
171
2088
161
828
145

query I rowsort
SELECT DISTINCT - 54 * + 24 AS col2 FROM tab1
----
-1296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * 67 col1 FROM tab1
----
2747

query II rowsort
SELECT + col0 * col1 AS col0, + col0 + - col2 * 20 + ( - + col2 ) FROM tab1
----
425
-1154
4277
-1337
714
-1965

query I rowsort
SELECT DISTINCT - col1 * 96 FROM tab0
----
-2016
-7776
-96

query II rowsort
SELECT DISTINCT + col2 + col1, - col1 - + col1 AS col0 FROM tab0 AS cor0
----
100
-2
128
-162
31
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - + COUNT( * ) + 38 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
29

skipif mysql # not compatible
query I rowsort label-3276
SELECT - + COUNT ( * ) + 38 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL ( - SUM( 79 ) ) AS col2 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL ( - SUM ( 79 ) ) AS col2 FROM tab1 AS cor0
----
-237

query I rowsort
SELECT - col2 + - + 6 FROM tab0 AS cor0
----
-105
-16
-53

query I rowsort
SELECT ALL - 81 + - col0 FROM tab2 AS cor0
----
-127
-145
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL MAX( ALL + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL MAX ( ALL + col0 ) FROM tab2 cor0
----
75

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col1 + - 34 FROM tab2
----
17
33
43

query I rowsort
SELECT ALL - ( + 58 ) FROM tab1 WHERE NOT 21 + - ( 91 ) + col2 / + - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT ( - COUNT( * ) ) + 97 AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT ( - COUNT ( * ) ) + 97 AS col1 FROM tab1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT + CAST( NULL AS SIGNED ) - + + COUNT( * ) + + 65 * + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + + 65 * + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT 81 - + 20 * - + CAST( + SUM( DISTINCT + col2 ) AS SIGNED ) FROM tab2
----
2501

skipif mysql # not compatible
query I rowsort label-3287
SELECT 81 - + 20 * - + CAST ( + SUM ( DISTINCT + col2 ) AS INTEGER ) FROM tab2
----
2501

query I rowsort
SELECT ALL + 68 + + - 58 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT col2 * + col0 * 21 FROM tab2
----
22218
53760
91350

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + SUM( DISTINCT + col1 ) * + 26 AS col1 FROM tab0
----
2678

skipif mysql # not compatible
query I rowsort label-3290
SELECT + SUM ( DISTINCT + col1 ) * + 26 AS col1 FROM tab0
----
2678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT ALL + CAST( + 21 AS SIGNED ) * + + col1 + - col1 FROM tab0 WHERE NOT NULL < - col0 + col1
----

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + CAST ( + 21 AS INTEGER ) * + + col1 + - col1 FROM tab0 WHERE NOT NULL < - col0 + col1
----

query I rowsort
SELECT ALL ( - ( col2 ) ) + - col2 * + 8 + - col2 - + col1 * 32 / col0 AS col2 FROM tab1 WHERE + - col0 + col0 IS NULL
----

query I rowsort
SELECT col0 * - - col0 * 61 * + col0 + - col2 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + ( - - 78 ) col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 2 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 99 * - 48 FROM tab1 AS cor0
----
4752
4752
4752

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + col0 + + ( - - 63 )
----

query I rowsort
SELECT 67 * + - col1 AS col2 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT + 99 * - 67 * - + col1 AS col1 FROM tab2
----
338283
444411
510741

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT - 5 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT - 5 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3302
SELECT col1, col2 DIV - col2 FROM tab1
----
14
-1
47
-1
5
-1

skipif mysql # not compatible
query II rowsort label-3302
SELECT col1, col2 / - col2 FROM tab1
----
14
-1
47
-1
5
-1

query I rowsort
SELECT ALL + 44 * + col1 AS col1 FROM tab0
----
3564
44
924

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT ALL - 38 DIV - 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - 38 / - 85 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL - COUNT( * ) + - - COUNT( DISTINCT - - col0 ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - COUNT ( * ) + - - COUNT ( DISTINCT - - col0 ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT + COUNT( DISTINCT ( col1 ) ) * COUNT( - col2 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + COUNT ( DISTINCT ( col1 ) ) * COUNT ( - col2 ) AS col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT ALL + 97, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-3308
SELECT ALL + 97, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
97
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT - col2 * ( + + ( + 19 ) ) + + CAST( - - col0 AS SIGNED ) * - + col0 AS col1 FROM tab1 cor0
----
-4425
-8346
-9573

skipif mysql # not compatible
query I rowsort label-3309
SELECT - col2 * ( + + ( + 19 ) ) + + CAST ( - - col0 AS INTEGER ) * - + col0 AS col1 FROM tab1 cor0
----
-4425
-8346
-9573

query I rowsort
SELECT ALL + col0 + - + 56 AS col1 FROM tab2
----
-10
19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT + ( - MIN( - - col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + ( - MIN ( - - col0 ) ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3312
SELECT * FROM tab0 AS cor0 WHERE - ( - - col1 ) - + + ( + - col1 ) * + + 47 IN ( + col1, - col2 * - col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3312
SELECT * FROM tab0 AS cor0 WHERE - ( - - col1 ) - + + ( + - col1 ) * + + 47 IN ( + col1, - col2 * - col0 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT DISTINCT 98 DIV - - ( - col2 ) AS col0 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT 98 / - - ( - col2 ) AS col0 FROM tab2 cor0
----
-1
-2
-4

query I rowsort
SELECT + - AVG ( + 90 ) FROM tab1 cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT - COUNT( * ) * + COUNT( * ) - + ( + 78 ) + - + 59 AS col2 FROM tab0 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-3315
SELECT - COUNT ( * ) * + COUNT ( * ) - + ( + 78 ) + - + 59 AS col2 FROM tab0 AS cor0
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT - 43 * - COUNT( * ) * - + CAST( NULL AS SIGNED ) + - ( - ( 86 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 43 * - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - ( - ( 86 ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 IS NULL OR NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT SUM( 85 ) + + + MIN( + - 20 ) FROM tab1
----
235

skipif mysql # not compatible
query I rowsort label-3319
SELECT SUM ( 85 ) + + + MIN ( + - 20 ) FROM tab1
----
235

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT col0 * + + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT - col1 + + + col1 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + SUM( ALL 17 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3323
SELECT + SUM ( ALL 17 ) col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 87 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT ALL col2 AS col0, + col0 * - col0 AS col2 FROM tab2
----
23
-2116
40
-4096
58
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3326
SELECT ALL - COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3326
SELECT ALL - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

query I rowsort
SELECT DISTINCT 88 + - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 4 col0, - 34 FROM tab0 AS cor0
----
4
-34

query I rowsort
SELECT DISTINCT - + col2 * + 37 AS col1 FROM tab1 AS cor0
----
-2183
-2516
-3552

query II rowsort
SELECT + - ( col1 ) AS col1, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT - 52 DIV - - 66 - - col2 * - 64 + + col1 FROM tab0 AS cor0
----
-2927
-619
-6335

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 52 / - - 66 - - col2 * - 64 + + col1 FROM tab0 AS cor0
----
-2927
-619
-6335

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - + 15
----

query I rowsort
SELECT ALL + 77 + - - col2 AS col0 FROM tab1 AS cor0
----
136
145
173

query I rowsort
SELECT + col0 + col0 + col1 + + col0 AS col1 FROM tab1 AS cor0
----
167
260
320

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT 36 + - col2 + + col2 FROM tab0
----
36
36
36

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND + col1
----

query I rowsort
SELECT 85 * - - col1 FROM tab1
----
1190
3995
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 8 + col2 col0 FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT - col0 * + + 72 - col2 FROM tab0
----
-1127
-6274
-7083

onlyif mysql # aggregate syntax: 
query II rowsort label-3341
SELECT ALL 63, COUNT( * ) AS col0 FROM tab1
----
63
3

skipif mysql # not compatible
query II rowsort label-3341
SELECT ALL 63, COUNT ( * ) AS col0 FROM tab1
----
63
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT MAX( DISTINCT - col1 ) + ( - + 37 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-3342
SELECT MAX ( DISTINCT - col1 ) + ( - + 37 ) FROM tab1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL + SUM( ALL + col1 ) - COUNT( * ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL + SUM ( ALL + col1 ) - COUNT ( * ) AS col2 FROM tab2
----
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - + 5 > + col0
----

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 67 * - - col2 > - col2 / 34
----

query I rowsort
SELECT col0 - - + 42 AS col0 FROM tab1
----
127
133
93

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 - 59 + + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL SUM( + 58 ) AS col2 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL SUM ( + 58 ) AS col2 FROM tab0
----
174

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 33 IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, - col1 col1 FROM tab2 cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 - + col1 BETWEEN ( + col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= - 13 * + col0 * 75 + - ( - 19 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ( - SUM( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3357
SELECT ( - SUM ( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 AS cor0 WHERE + 74 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT CAST( col0 AS SIGNED ) FROM tab0 cor0 WHERE 84 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3359
SELECT CAST ( col0 AS INTEGER ) FROM tab0 cor0 WHERE 84 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col0 / - col1 * col0 * - + col0 * + + col1 + - 37 - + + 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3362
SELECT DISTINCT col1, col0 DIV - col1 FROM tab0
----
1
-97
21
-4
81
0

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT col1, col0 / - col1 FROM tab0
----
1
-97
21
-4
81
0

query II rowsort
SELECT ALL + col2 AS col2, - col1 + col2 + - 82 AS col0 FROM tab2
----
23
-110
40
-119
58
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - COUNT( * ) + + + 48 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-3364
SELECT - COUNT ( * ) + + + 48 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT DISTINCT + 19 + - COUNT( * ) + - 8 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT + 19 + - COUNT ( * ) + - 8 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL + ( - col1 ) + 36 FROM tab1 AS cor0
----
-11
22
31

query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * - 99 - + col0 FROM tab0 AS cor0
----
-11229
-1518
-9899

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3368
SELECT CAST( col0 AS SIGNED ) col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3368
SELECT CAST ( col0 AS INTEGER ) col2, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT - 74 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-74

query I rowsort
SELECT DISTINCT + 48 * - 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1200

query I rowsort
SELECT DISTINCT 39 - - col1 AS col1 FROM tab1 AS cor0
----
44
53
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT 17 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3372
SELECT 17 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
14

query I rowsort
SELECT + col2 + + + col2 + + col1 FROM tab2 AS cor0
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT DISTINCT - 86 * ( + COUNT( * ) ) FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT - 86 * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT ALL - CAST( NULL AS SIGNED ) * - 7 + + - 8 + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3375
SELECT ALL - CAST ( NULL AS INTEGER ) * - 7 + + - 8 + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 > + col1 * - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT + - 67 DIV col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT + - 67 / col0 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT - 90 DIV 36 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3378
SELECT - 90 / 36 AS col2 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - 11 * 86 <> - 4 + ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3380
SELECT ALL * FROM tab0 WHERE NULL = CAST( col0 AS SIGNED ) + - 75 * - col1 + - 66
----

skipif mysql # not compatible
query III rowsort label-3380
SELECT ALL * FROM tab0 WHERE NULL = CAST ( col0 AS INTEGER ) + - 75 * - col1 + - 66
----

query I rowsort
SELECT + col2 * + col1 + - - col0 AS col1 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 0 / + 45 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + - col2 + col0 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3384
SELECT ALL CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - COUNT( * ) + + 25 FROM tab0 WHERE NOT col0 + - col0 * + col2 IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - COUNT ( * ) + + 25 FROM tab0 WHERE NOT col0 + - col0 * + col2 IS NOT NULL
----
25

query I rowsort
SELECT DISTINCT 45 * - col2 - - col0 FROM tab2 WHERE NOT - col0 * 24 - col0 * - col0 IS NULL
----
-1736
-2535
-989

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - 87 + + col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * col0 - - 40 col0 FROM tab0
----
-1874
-2094
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3390
SELECT COUNT( * ) DIV 87 + ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( * ) / 87 + ( - COUNT ( * ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE ( 29 ) = + ( col2 ) + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3392
SELECT DISTINCT - ( MIN( CAST( NULL AS SIGNED ) ) ) * CAST( MIN( ALL + col2 ) AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - ( MIN ( CAST ( NULL AS INTEGER ) ) ) * CAST ( MIN ( ALL + col2 ) AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT COUNT( * ) * 66 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3393
SELECT COUNT ( * ) * 66 FROM tab1
----
198

query I rowsort
SELECT ALL - ( col2 ) * - col1 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT CAST( NULL AS SIGNED ) * - 11 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3395
SELECT CAST ( NULL AS INTEGER ) * - 11 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 52 >= ( + 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 22 AS col2 FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT + 41 * + MIN( ALL col2 ) + + 25 AS col2 FROM tab1
----
2444

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + 41 * + MIN ( ALL col2 ) + + 25 AS col2 FROM tab1
----
2444

query I rowsort
SELECT DISTINCT - 70 + + col1 * - col2 FROM tab1
----
-1414
-3266
-365

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT 47 * + col2 + - 6 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) > + col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3401
SELECT 47 * + col2 + - 6 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > + col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + SUM( ( + col1 ) ) * 15 col2 FROM tab1
----
990

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT + SUM ( ( + col1 ) ) * 15 col2 FROM tab1
----
990

query I rowsort
SELECT - col0 * + 49 AS col1 FROM tab2
----
-2254
-3136
-3675

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1 * col1 )
----

query I rowsort
SELECT ( 91 ) AS col1 FROM tab1
----
91
91
91

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab1 WHERE NOT NULL = + ( + ( - col1 ) ) * + col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT - 18 * + COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT - 18 * + COUNT ( * ) FROM tab2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT SUM( CAST( + 65 AS SIGNED ) ) AS col0 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT SUM ( CAST ( + 65 AS INTEGER ) ) AS col0 FROM tab1
----
195

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - ( col0 ) + - 75 * + col1 AS col2 FROM tab1
----
-1101
-3616
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT COUNT( ( + col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3411
SELECT COUNT ( ( + col2 ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 53 + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT + ( COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + ( COUNT ( * ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + col0 + - ( col1 ) FROM tab2 WHERE NOT ( col1 ) - - col2 BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT + col1 * 99 AS col1 FROM tab2 cor0
----
5049
6633
7623

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 46 * col1 + + ( + col2 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT 74 + MIN( DISTINCT + col2 + 53 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT 74 + MIN ( DISTINCT + col2 + 53 ) FROM tab2 AS cor0
----
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT col1 * + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + ( + 25 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3423
SELECT + COUNT( * ) DIV MAX( ALL 75 ) + 70 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3423
SELECT + COUNT ( * ) / MAX ( ALL 75 ) + 70 FROM tab0
----
70

query I rowsort
SELECT - 74 + 45 FROM tab2
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( - 79 ) + - 23 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 85 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < ( - 11 )
----

query I rowsort
SELECT DISTINCT + - col1 * 34 AS col0 FROM tab2 cor0
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT + - 54 * + COUNT( * ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT + - 54 * + COUNT ( * ) FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL MAX( ALL col1 ) FROM tab0 AS cor0 WHERE NOT - col1 + + col2 <= col1 * - col2 + ( col0 - 55 )
----
81

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL MAX ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT - col1 + + col2 <= col1 * - col2 + ( col0 - 55 )
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 43 col1 FROM tab0 cor0
----
3741
4171
645

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + ( col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT ALL + 59 DIV + MAX( 56 * col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 59 / + MAX ( 56 * col0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT + col0 DIV + - 95 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3434
SELECT + col0 / + - 95 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3435
SELECT - SUM( col0 ) DIV - 60 AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3435
SELECT - SUM ( col0 ) / - 60 AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT 66 * - AVG ( DISTINCT CAST( - col1 AS SIGNED ) ) FROM tab0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT 66 * - AVG ( DISTINCT CAST ( - col1 AS INTEGER ) ) FROM tab0 WHERE NOT col0 + - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col1 AS col1 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3438
SELECT DISTINCT + CAST( ( + CAST( - col2 AS DECIMAL ) ) AS DECIMAL ) + - col0 / + col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + CAST ( ( + CAST ( - col2 AS REAL ) ) AS REAL ) + - col0 / + col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 73 * - 74 AS col2 FROM tab1
----
-5402

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 / - col0 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT ALL + - 54 DIV + - ( + COUNT( * ) ) - 82 AS col1 FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + - 54 / + - ( + COUNT ( * ) ) - 82 AS col1 FROM tab0 AS cor0
----
-64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + + col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3443
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 31 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 31 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - 64 * + COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - 64 * + COUNT ( * ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT ALL + col2 + + + col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE col2 + + 14 IN ( - col1 + - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT 84 + MIN( 78 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT 84 + MIN ( 78 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
165

query I rowsort
SELECT DISTINCT 92 + - + col1 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - - SUM( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3449
SELECT - - SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( + + 31 )
----

query I rowsort
SELECT DISTINCT - col0 + - - col1 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT COUNT( * ) + + 87 AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3452
SELECT COUNT ( * ) + + 87 AS col2 FROM tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT 65 + + - 15 + + - col1 FROM tab0
----
-31
29
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT + 13 + - col0 DIV + 40 FROM tab1
----
11
11
12

skipif mysql # not compatible
query I rowsort label-3454
SELECT + 13 + - col0 / + 40 FROM tab1
----
11
11
12

query III rowsort
SELECT * FROM tab2 WHERE + col2 > - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT col1 + - 39 * col2 DIV col0 + col1 FROM tab0
----
-37
38
40

skipif mysql # not compatible
query I rowsort label-3456
SELECT col1 + - 39 * col2 / col0 + col1 FROM tab0
----
-37
38
40

query I rowsort
SELECT ALL col2 + + 79 * + col0 AS col1 FROM tab2
----
3657
5096
5983

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( ( 35 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN + col0 AND NULL
----
75
67
58

query I rowsort
SELECT ALL + 64 + + - col1 FROM tab1 AS cor0
----
17
50
59

query I rowsort
SELECT 65 * - ( - 49 ) - - 0 * 2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3185
3185
3185

query I rowsort
SELECT col1 + 43 FROM tab0 cor0 WHERE col0 * - + 1 IS NULL
----

query I rowsort
SELECT + - ( 4 ) FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + - ( + - MAX( DISTINCT + - ( + col1 ) ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3465
SELECT + - ( + - MAX ( DISTINCT + - ( + col1 ) ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3466
SELECT ALL CAST( NULL AS DECIMAL ) 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-3466
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * - + col2 * 41 FROM tab0 AS cor0
----
401841
4100
90569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3468
SELECT DISTINCT - COUNT( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - COUNT ( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) AND col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 * + - col2 col1 FROM tab0 AS cor0
----
2350
4950
500

query I rowsort
SELECT col2 * ( - 56 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3471
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT - CAST( - - 40 AS SIGNED ) FROM tab2 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-3472
SELECT - CAST ( - - 40 AS INTEGER ) FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT - 65 * + - 22 * col2 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
141471
14290
67163

skipif mysql # not compatible
query I rowsort label-3473
SELECT - 65 * + - 22 * col2 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
141471
14290
67163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT DISTINCT COUNT( * ) * + 42 AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT COUNT ( * ) * + 42 AS col2 FROM tab1
----
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3476
SELECT 40 * + col0 + + col0 AS col2 FROM tab0 WHERE NOT + ( - col2 ) - - 52 * + col0 > CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3476
SELECT 40 * + col0 + + col0 AS col2 FROM tab0 WHERE NOT + ( - col2 ) - - 52 * + col0 > CAST ( + col0 AS REAL )
----

query II rowsort
SELECT ALL + col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT + 34 IN ( + 32, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + 54 col0, col0 FROM tab0
----
2538
15
5346
97
540
87

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col0 * + 62 * col1 * 76 + + col1 * col1 ) <> ( + 71 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT - 78 * - COUNT( * ) AS col0 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - 78 * - COUNT ( * ) AS col0 FROM tab0
----
234

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab1 WHERE NULL IS NULL
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT - col1 DIV ( - col2 ) * - col2 FROM tab0
----
-20
-47
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT - col1 / ( - col2 ) * - col2 FROM tab0
----
-20
-47
0

query I rowsort
SELECT - col0 * + col0 + + col0 AS col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-2070
-4032
-5550

query I rowsort
SELECT ALL + + col1 * - + 30 AS col0 FROM tab1 AS cor0
----
-1410
-150
-420

query II rowsort
SELECT DISTINCT - 14 AS col1, col0 FROM tab0 AS cor0
----
-14
15
-14
87
-14
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT MIN( ALL 59 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

skipif mysql # not compatible
query I rowsort label-3487
SELECT MIN ( ALL 59 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query I rowsort
SELECT + col1 * + 83 + - col2 FROM tab2 AS cor0
----
4210
5503
6351

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3489
SELECT DISTINCT - col0 DIV CAST( NULL AS SIGNED ) AS col1, + col1 DIV col2 * ( - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
102
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3489
SELECT DISTINCT - col0 / CAST ( NULL AS INTEGER ) AS col1, + col1 / col2 * ( - - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
102
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + - ( + col0 ) col1 FROM tab0 AS cor0
----
-163
-173
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) + - - col2 NOT IN ( + 17 / col1 * - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 63 + - 23 AS col2 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL <= ( + 44 + - 6 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + - - 87 * 75 ) <> - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - 62 * - 6 * + col0 FROM tab2
----
17112
23808
27900

query III rowsort
SELECT * FROM tab1 WHERE - ( col2 ) = ( + + col2 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 95 ) - - - col0 + 59 col2 FROM tab0
----
139
57
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT ALL 7 + - + ( col1 ) DIV + col0 AS col1 FROM tab0
----
2
7
7

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL 7 + - + ( col1 ) / + col0 AS col1 FROM tab0
----
2
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT 32 AS col2, - SUM( ALL + 67 ) FROM tab2
----
32
-201

skipif mysql # not compatible
query II rowsort label-3500
SELECT 32 AS col2, - SUM ( ALL + 67 ) FROM tab2
----
32
-201

query I rowsort
SELECT DISTINCT + 45 - 92 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3502
SELECT COUNT( * ) col0, 6 col2 FROM tab0
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3502
SELECT COUNT ( * ) col0, 6 col2 FROM tab0
----
3
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - 39 col1 FROM tab0
----
-18
-38
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 40 * - 38 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT DISTINCT - col2 DIV - 53 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT - col2 / - 53 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3506
SELECT - 51 * + - 72 / + col1 AS col0, col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( + + 9 )
----

skipif mysql # not compatible
query II rowsort label-3506
SELECT - 51 * + - 72 / + col1 AS col0, col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( + + 9 )
----

query I rowsort
SELECT DISTINCT + + col0 + + + 46 AS col1 FROM tab1 cor0
----
131
137
97

query I rowsort
SELECT - + col0 * - col0 FROM tab0 WHERE NOT ( - ( - - 98 ) + - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - + 53 AS col1 FROM tab0 cor0
----
-53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND + + col1
----

query II rowsort
SELECT DISTINCT 35 AS col1, 98 FROM tab0
----
35
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + 67 + - - 49 FROM tab1
----
51
116
85
116
91
116

query I rowsort
SELECT DISTINCT + col2 * - + col1 * + col0 AS col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - ( + - ( - 53 ) ) * - ( - col0 ) * col1 )
----

query I rowsort
SELECT + 24 * + - 9 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-216
-216
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT DISTINCT - CAST( - ( 1 ) AS SIGNED ) + - SUM( DISTINCT - - 3 ) col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT DISTINCT - CAST ( - ( 1 ) AS INTEGER ) + - SUM ( DISTINCT - - 3 ) col2 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 26 AS col2 FROM tab2 AS cor0 WHERE ( 13 ) NOT BETWEEN - col0 AND - - col2
----

query I rowsort
SELECT - + 91 + + col1 + + 31 FROM tab2 AS cor0
----
-9
17
7

query I rowsort
SELECT ALL - ( - col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT COUNT( ALL + col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3521
SELECT COUNT ( ALL + col0 ) col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 99 AS col2, - 5 FROM tab1
----
99
-5

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 10, col2 AS col0 FROM tab0 cor0
----
-10
10
-10
47
-10
99

query I rowsort
SELECT - 53 - - - col0 FROM tab2 AS cor0
----
-117
-128
-99

query I rowsort
SELECT ALL 28 + + - col2 AS col2 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT + 46 + CAST( + + SUM( - + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + 46 + CAST ( + + SUM ( - + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3528
SELECT - + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT - + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) + - col0 + - - col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query II rowsort label-3530
SELECT col0 + - col2, - col2 DIV + col2 AS col2 FROM tab2
----
17
-1
23
-1
24
-1

skipif mysql # not compatible
query II rowsort label-3530
SELECT col0 + - col2, - col2 / + col2 AS col2 FROM tab2
----
17
-1
23
-1
24
-1

query I rowsort
SELECT col2 + 14 AS col2 FROM tab1
----
110
73
82

query II rowsort
SELECT DISTINCT col2 - 80 AS col0, col2 FROM tab1
----
-12
68
-21
59
16
96

query III rowsort
SELECT * FROM tab2 WHERE + - 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3534
SELECT ALL + ( - col0 ), - ( - - col2 ) DIV + - col1 + col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

skipif mysql # not compatible
query II rowsort label-3534
SELECT ALL + ( - col0 ), - ( - - col2 ) / + - col1 + col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL - ( COUNT( * ) ) - - ( + + 70 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - ( COUNT ( * ) ) - - ( + + 70 ) FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + 78 * + - COUNT( DISTINCT col0 ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3536
SELECT + 78 * + - COUNT ( DISTINCT col0 ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + COUNT( ALL col0 ) * + - 20 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + COUNT ( ALL col0 ) * + - 20 FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - SUM( + 1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - SUM ( + 1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT + + COUNT( ALL - 47 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= + - col0 - - + 82 * - + 6
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT + + COUNT ( ALL - 47 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= + - col0 - - + 82 * - + 6
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 BETWEEN col0 + + 76 AND + col2 )
----

query I rowsort
SELECT + col2 / + - col2 FROM tab0 AS cor0 WHERE NOT col2 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3542
SELECT - 31 AS col1, 75 + + col0 + + col2 * CAST( NULL AS SIGNED ) + + col1 FROM tab1 cor0
----
-31
NULL
-31
NULL
-31
NULL

skipif mysql # not compatible
query II rowsort label-3542
SELECT - 31 AS col1, 75 + + col0 + + col2 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1 cor0
----
-31
NULL
-31
NULL
-31
NULL

query II rowsort
SELECT DISTINCT - col2, - 22 AS col2 FROM tab0 AS cor0
----
-10
-22
-47
-22
-99
-22

query I rowsort
SELECT ALL - - 93 + - ( + col1 ) FROM tab2 AS cor0
----
16
26
42

query I rowsort
SELECT DISTINCT - col2 + col1 + + - col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3546
SELECT col2, col1 + + 61 AS col1 FROM tab1 WHERE NOT 99 + + col1 / - col2 * - - 11 + - + col0 IN ( + CAST( NULL AS SIGNED ) - + - 8 / + col2, - col0 )
----

skipif mysql # not compatible
query II rowsort label-3546
SELECT col2, col1 + + 61 AS col1 FROM tab1 WHERE NOT 99 + + col1 / - col2 * - - 11 + - + col0 IN ( + CAST ( NULL AS INTEGER ) - + - 8 / + col2, - col0 )
----

query I rowsort
SELECT ALL + 52 * + col2 FROM tab1
----
3068
3536
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - COUNT( - + 5 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3548
SELECT - COUNT ( - + 5 ) FROM tab0
----
-3

query I rowsort
SELECT + - 17 * - col1 AS col0 FROM tab0 WHERE NOT + col0 * + ( + col1 ) + - col0 * col0 IS NULL
----
1377
17
357

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + MIN( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + MIN ( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND + 43
----

query I rowsort
SELECT DISTINCT + col0 * + + 47 + + col1 FROM tab0
----
4110
4560
786

query I rowsort
SELECT 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT col1 + - + col2 DIV + + col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3554
SELECT col1 + - + col2 / + + col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3555
SELECT ALL + + 60 DIV - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + + 60 / - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + - COUNT( * ) + + + 86 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3556
SELECT + - COUNT ( * ) + + + 86 FROM tab1 AS cor0
----
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - 51
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT + + ( + MIN( ALL + - col1 ) ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT + + ( + MIN ( ALL + - col1 ) ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT col0 DIV - 74 + ( + col2 ) + - col1 AS col2 FROM tab1 cor0
----
20
53
82

skipif mysql # not compatible
query I rowsort label-3560
SELECT col0 / - 74 + ( + col2 ) + - col1 AS col2 FROM tab1 cor0
----
20
53
82

query II rowsort
SELECT ALL - col0 AS col0, + 31 AS col1 FROM tab1 AS cor0
----
-51
31
-85
31
-91
31

query I rowsort
SELECT + col2 * - - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 49
----

query I rowsort
SELECT ALL + 35 * + - col2 + + + col1 + + col2 FROM tab2 cor0
----
-1283
-1905
-731

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - 58 * 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> col1 + - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT CAST( + + col2 AS SIGNED ) * 34 + col2 FROM tab1
----
2065
2380
3360

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) * 34 + col2 FROM tab1
----
2065
2380
3360

query I rowsort
SELECT ALL col0 * col1 + col0 + + - col0 + + col0 AS col0 FROM tab1
----
4368
510
765

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + col2 + - + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + 72 * + + col1 FROM tab0
----
1599
169
5847

query I rowsort
SELECT 59 - - 35 FROM tab2
----
94
94
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT ALL COUNT( * ) AS col1, + 20 FROM tab2
----
3
20

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL COUNT ( * ) AS col1, + 20 FROM tab2
----
3
20

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + + col0 AND col0
----

query I rowsort
SELECT DISTINCT 96 * + col0 * - col1 AS col0 FROM tab0
----
-116640
-175392
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT ALL + + CAST( - + col2 AS SIGNED ) + - col0 AS col1 FROM tab0 WHERE NOT - + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL + + CAST ( - + col2 AS INTEGER ) + - col0 AS col1 FROM tab0 WHERE NOT - + col1 < NULL
----

query I rowsort
SELECT ALL ( 86 ) AS col0 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT ALL + col0 * - col2 * + 55 AS col2 FROM tab0 AS cor0
----
-38775
-47850
-528165

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - COUNT( * ) * 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-126

skipif mysql # not compatible
query I rowsort label-3577
SELECT - COUNT ( * ) * 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 4 * + 41 - + 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) + col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-3579
SELECT col1 FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3580
SELECT MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 61 ) * col0 - - col1 + - + col2 * - col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 85 AS col1, + 29 * - 70 AS col1 FROM tab2
----
85
-2030
85
-2030
85
-2030

query I rowsort
SELECT + col1 * 22 AS col0 FROM tab1
----
1034
110
308

query I rowsort
SELECT col0 * - + col0 * col0 AS col0 FROM tab1
----
-132651
-614125
-753571

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3585
SELECT * FROM tab0 WHERE NOT ( ( - ( + CAST( + col0 AS SIGNED ) ) ) NOT BETWEEN + - col0 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-3585
SELECT * FROM tab0 WHERE NOT ( ( - ( + CAST ( + col0 AS INTEGER ) ) ) NOT BETWEEN + - col0 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT + col1 DIV ( - col0 ) * col2 + - 10 + col2 FROM tab1
----
49
58
86

skipif mysql # not compatible
query I rowsort label-3586
SELECT + col1 / ( - col0 ) * col2 + - 10 + col2 FROM tab1
----
49
58
86

query II rowsort
SELECT DISTINCT - col0 AS col1, - col0 FROM tab1
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE col1 + col0 <= + col0 * + col2
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 + col1 col0 FROM tab2 AS cor0
----
-24
-8
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT - SUM( DISTINCT + 17 ) + - 57 AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT - SUM ( DISTINCT + 17 ) + - 57 AS col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL - col0 + - - ( col2 ) - + 67 + - col1 * + - col2 * - col0 * - col2 AS col0 FROM tab1
----
1479332
19776758
6580202

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 9 AS col2 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * - col0 * - col0 * col0 col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT DISTINCT - - col2 + + + CAST( - 21 AS SIGNED ) - - col0 AS col2 FROM tab1 AS cor0
----
123
126
138

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT - - col2 + + + CAST ( - 21 AS INTEGER ) - - col0 AS col2 FROM tab1 AS cor0
----
123
126
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3598
SELECT DISTINCT + 88 * - MAX( DISTINCT + 20 ) + - ( - 87 ) DIV + 91 AS col2 FROM tab0 cor0
----
-1760

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT + 88 * - MAX ( DISTINCT + 20 ) + - ( - 87 ) / + 91 AS col2 FROM tab0 cor0
----
-1760

query I rowsort
SELECT ALL - col0 + 53 * col0 AS col0 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT DISTINCT SUM( DISTINCT + 48 ) * CAST( NULL AS SIGNED ) * - + 7 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT SUM ( DISTINCT + 48 ) * CAST ( NULL AS INTEGER ) * - + 7 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 22 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT + 46 DIV + - 85 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3602
SELECT + 46 / + - 85 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT + col0 + - col2 DIV col2 AS col2 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-3603
SELECT + col0 + - col2 / col2 AS col2 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT col1 + + col1 + col1 AS col2 FROM tab2 AS cor0
----
153
201
231

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT + 58 + + COUNT( - col1 ), + COUNT( * ) AS col1 FROM tab2
----
61
3

skipif mysql # not compatible
query II rowsort label-3605
SELECT + 58 + + COUNT ( - col1 ), + COUNT ( * ) AS col1 FROM tab2
----
61
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 96 * + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 96 * + col0 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT - col1, - 78 AS col2 FROM tab1
----
-14
-78
-47
-78
-5
-78

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 42 * - - 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + + ( - col1 ) FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL + MAX( + col0 ) * - 25 col1 FROM tab2 AS cor0
----
-1875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3612
SELECT ALL + MAX ( + col0 ) * - 25 col1 FROM tab2 AS cor0
----
-1875

query I rowsort
SELECT ALL + - col2 * + col1 * 87 FROM tab0 WHERE + col0 + + ( + 24 ) + + col0 * - - col0 * 14 BETWEEN - col1 + - 95 - col0 + + 40 * - col2 - - - 64 AND + col1
----

query I rowsort
SELECT + col0 * + 68 FROM tab2 cor0
----
3128
4352
5100

query I rowsort
SELECT ALL col0 * - 20 FROM tab1 AS cor0
----
-1020
-1700
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3616
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3616
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + CAST ( + col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT DISTINCT - col2 DIV 71 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - col2 / 71 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - + col1 * - 1 + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

query II rowsort
SELECT ALL 97 * - + col2 AS col0, - col0 FROM tab0
----
-4559
-15
-9603
-97
-970
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab0 WHERE + 73 + + col1 >= + + col0
----
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + MAX( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-3621
SELECT + MAX ( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-5

query I rowsort
SELECT - + ( - + col0 ) - + ( - - col2 ) FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL col1 + - 16 AS col1 FROM tab1
----
-11
-2
31

query II rowsort
SELECT col1, - col1 * col0 FROM tab0
----
1
-97
21
-1827
81
-1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT DISTINCT - ( - 67 ) - + + CAST( + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
20
53
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT DISTINCT - ( - 67 ) - + + CAST ( + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
20
53
62

query I rowsort
SELECT DISTINCT - - 3 * - col2 + col1 + - col2 AS col1 FROM tab2 cor0 WHERE NOT ( 84 ) <= NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 90 - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + ( col1 ) FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - - - col1 IS NOT NULL
----

query I rowsort
SELECT - 94 FROM tab1 WHERE NOT + + col2 * - 21 + + col1 >= - - col1
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ( - - ( MAX( ALL + 62 ) ) ) AS col2 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3631
SELECT ( - - ( MAX ( ALL + 62 ) ) ) AS col2 FROM tab0
----
62

query I rowsort
SELECT ALL + col2 * - - col1 * - col1 AS col0 FROM tab0
----
-308367
-4410
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( 14 )
----

query I rowsort
SELECT 10 * - col2 FROM tab1 cor0
----
-590
-680
-960

query I rowsort
SELECT ALL col1 * - 52 * + + 62 FROM tab2
----
-164424
-216008
-248248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) * col1 * 58 col1 FROM tab1
----
-24650
-248066
-41412

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3638
SELECT col1 + + + col2 / - - col2 / - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + ( col0 ) NOT IN ( - CAST( + + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3638
SELECT col1 + + + col2 / - - col2 / - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + ( col0 ) NOT IN ( - CAST ( + + col0 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT + + CAST( + 33 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3639
SELECT + + CAST ( + 33 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
33
33
33

query II rowsort
SELECT - col1 AS col1, + 88 - + - 90 AS col2 FROM tab0 cor0
----
-1
178
-21
178
-81
178

query I rowsort
SELECT + 36 AS col0 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + + ( - col0 ) + - 73 + - 99 * + - col2 * + - col1 * - 85 AS col0 FROM tab1 AS cor0
----
11309636
2482267
26894176

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 4 + - + 42 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT CAST( - + col2 AS SIGNED ) + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT CAST ( - + col2 AS INTEGER ) + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3646
SELECT DISTINCT col2 / + col2 + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3646
SELECT DISTINCT col2 / + col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3647
SELECT DISTINCT * FROM tab1 WHERE NOT - - 38 <> - + CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3647
SELECT DISTINCT * FROM tab1 WHERE NOT - - 38 <> - + CAST ( - col0 AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT ALL + 40 DIV 59 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + 40 / 59 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3649
SELECT CAST( NULL AS SIGNED ) + - 79 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT CAST ( NULL AS INTEGER ) + - 79 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, - col1 + - - 56 + + col0 col1 FROM tab2
----
-23
51
-40
43
-58
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col0 + - + 85 col1 FROM tab1
----
51
-34
85
0
91
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL + MAX( ALL col1 ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + MAX ( ALL col1 ) AS col2 FROM tab0 cor0
----
81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 47 / + 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL - SUM( ALL 77 ) AS col0 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL - SUM ( ALL 77 ) AS col0 FROM tab0 AS cor0
----
-231

query II rowsort
SELECT ALL 22 * + 81 + - ( + col2 ) AS col0, + 69 * - 71 AS col2 FROM tab0 AS cor0
----
1683
-4899
1735
-4899
1772
-4899

query I rowsort
SELECT DISTINCT - 62 - 49 + - col0 * + col1 - - col2 AS col1 FROM tab1
----
-4320
-477
-729

query I rowsort
SELECT ( 98 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT SUM( - 7 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT SUM ( - 7 ) FROM tab2 AS cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + + 16 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3660
SELECT - ( + 7 ) DIV SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3660
SELECT - ( + 7 ) / SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL - CAST( - col2 AS SIGNED ) + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - CAST ( - col2 AS INTEGER ) + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT - - 69 * col0 AS col0 FROM tab0 cor0
----
1035
6003
6693

query II rowsort
SELECT + - col2 * - col2, - 84 + + col2 AS col0 FROM tab2 AS cor0
----
1600
-44
3364
-26
529
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3664
SELECT DISTINCT 94, col2 - col2 AS col1 FROM tab1 cor0 WHERE + CAST( + + col2 AS DECIMAL ) <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-3664
SELECT DISTINCT 94, col2 - col2 AS col1 FROM tab1 cor0 WHERE + CAST ( + + col2 AS REAL ) <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 + ( - - 41 ) FROM tab1 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col0 ) col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT 3 * - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3667
SELECT 3 * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-9

query I rowsort
SELECT 32 * - 5 / - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 7 * - 32 AS col0 FROM tab2
----
-224
-224
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-3670
SELECT DISTINCT 27, MAX( + col2 ) AS col2 FROM tab0
----
27
99

skipif mysql # not compatible
query II rowsort label-3670
SELECT DISTINCT 27, MAX ( + col2 ) AS col2 FROM tab0
----
27
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3671
SELECT DISTINCT - 51, col0 DIV + - 48 AS col2 FROM tab2
----
-51
-1
-51
0

skipif mysql # not compatible
query II rowsort label-3671
SELECT DISTINCT - 51, col0 / + - 48 AS col2 FROM tab2
----
-51
-1
-51
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL < col2 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + ( - 29 )
----

query II rowsort
SELECT + + 97 AS col1, + col2 * + col0 AS col1 FROM tab2 AS cor0
----
97
1058
97
2560
97
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 29 + + col1 * 61 * - ( ( col2 ) ) - col0 + col1 + - col1 / + - col2 * col0 <= + + col2 - 62
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3677
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 * + col2 * + + CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3677
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 * + col2 * + + CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL + COUNT( * ) + + + 84 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + COUNT ( * ) + + + 84 FROM tab0 AS cor0
----
87

query I rowsort
SELECT + 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + 33 + 15 AS col0 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT + col2 * + 43 + - 3 FROM tab0 cor0
----
2018
4254
427

query I rowsort
SELECT ALL - col0 + 2 AS col0 FROM tab0 AS cor0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT DISTINCT - ( - SUM( DISTINCT 39 ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - ( - SUM ( DISTINCT 39 ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
39

query I rowsort
SELECT - col2 * 41 + - - 45 FROM tab0 AS cor0
----
-1882
-365
-4014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 + - - col1 col0 FROM tab2 AS cor0
----
22
38
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3686
SELECT ALL + col1 + - - col0 col2, col2 + + + col0 DIV + 66 AS col2 FROM tab1 AS cor0
----
138
69
65
96
90
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3686
SELECT ALL + col1 + - - col0 col2, col2 + + + col0 / + 66 AS col2 FROM tab1 AS cor0
----
138
69
65
96
90
60

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 62 / - - 84 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL - - col0 * 43 + - col0 DIV + col2 + + col0 FROM tab1 AS cor0
----
2244
3739
4003

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - - col0 * 43 + - col0 / + col2 + + col0 FROM tab1 AS cor0
----
2244
3739
4003

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL + ( + 13 ) + ( - + ( - MIN( ALL - col2 ) ) ) + - 81 AS col1 FROM tab1 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + ( + 13 ) + ( - + ( - MIN ( ALL - col2 ) ) ) + - 81 AS col1 FROM tab1 AS cor0
----
-164

query I rowsort
SELECT DISTINCT 77 + - col2 FROM tab0
----
-22
30
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT DISTINCT + 80 + - col1 * - - col0 + - col1 DIV - col0 FROM tab0
----
-1130
-17
-1747

skipif mysql # not compatible
query I rowsort label-3691
SELECT DISTINCT + 80 + - col1 * - - col0 + - col1 / - col0 FROM tab0
----
-1130
-17
-1747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT CAST( NULL AS SIGNED ) * + 72 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3692
SELECT CAST ( NULL AS INTEGER ) * + 72 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + COUNT( * ) * - 33 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3693
SELECT + COUNT ( * ) * - 33 FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 94 - 11 * - col1 <= - col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE + col0 - 22 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 42 ) FROM tab0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 39 col0 FROM tab2 AS cor0 WHERE NOT 17 + - col0 > 18
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query II rowsort label-3698
SELECT + - 16 AS col2, ( + ( COUNT( * ) ) ) FROM tab0 cor0 WHERE NOT + col0 IN ( + + 17, - col0 * 16 ) OR NOT NULL NOT BETWEEN NULL AND NULL
----
-16
3

skipif mysql # not compatible
query II rowsort label-3698
SELECT + - 16 AS col2, ( + ( COUNT ( * ) ) ) FROM tab0 cor0 WHERE NOT + col0 IN ( + + 17, - col0 * 16 ) OR NOT NULL NOT BETWEEN NULL AND NULL
----
-16
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT - + col0 DIV + + col0 - - 98 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-3699
SELECT - + col0 / + + col0 - - 98 FROM tab0 AS cor0
----
97
97
97

query II rowsort
SELECT + 25, col1 FROM tab1
----
25
14
25
47
25
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( + - 45 ) ) col1 FROM tab2
----
45
45
45

query II rowsort
SELECT DISTINCT - col1 AS col0, + 11 FROM tab0
----
-1
11
-21
11
-81
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 8 + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT col0 * col2 * - col1 * + 88 * - ( + 69 ) - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT col0 * col2 * - col1 * + 88 * - ( + 69 ) - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - ( 33 ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - SUM( ALL 39 ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - SUM ( ALL 39 ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT + col0 * + col2 * + - 67 FROM tab1
----
-328032
-336005
-414596

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3708
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + col2 - + - col2 + col1 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3708
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + col2 - + - col2 + col1 * + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3709
SELECT + 62 DIV - + col1 AS col2, - col0 AS col2 FROM tab1
----
-1
-91
-12
-85
-4
-51

skipif mysql # not compatible
query II rowsort label-3709
SELECT + 62 / - + col1 AS col2, - col0 AS col2 FROM tab1
----
-1
-91
-12
-85
-4
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT ALL + 78 DIV - MIN( DISTINCT - 29 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + 78 / - MIN ( DISTINCT - 29 ) FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT MAX( ALL + 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT MAX ( ALL + 84 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + + 51 + + COUNT( * ) * - MIN( DISTINCT + - col0 ) * MAX( ALL 26 ) FROM tab0 AS cor0
----
7617

skipif mysql # not compatible
query I rowsort label-3712
SELECT + + 51 + + COUNT ( * ) * - MIN ( DISTINCT + - col0 ) * MAX ( ALL 26 ) FROM tab0 AS cor0
----
7617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT DISTINCT col2 + col2 + - CAST( + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + 44 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT col2 + col2 + - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + 44 <> NULL
----

query I rowsort
SELECT - 3 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-72

query I rowsort
SELECT ALL - 30 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3717
SELECT + CAST( NULL AS DECIMAL ) * ( + - 29 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT + CAST ( NULL AS REAL ) * ( + - 29 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 61 + - ( 73 ) * + - col2 col1, - 66 AS col1 FROM tab1 AS cor0
----
4246
-66
4903
-66
6947
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT DISTINCT - COUNT( * ), MIN( ( col2 ) ) + 50 AS col2 FROM tab1 AS cor0
----
-3
109

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT - COUNT ( * ), MIN ( ( col2 ) ) + 50 AS col2 FROM tab1 AS cor0
----
-3
109

query I rowsort
SELECT ALL - - col0 * col1 - col2 + - 5 - + col1 + + col2 FROM tab0 AS cor0
----
1129
1801
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL 28 + COUNT( * ) * MIN( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-263

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL 28 + COUNT ( * ) * MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + MAX( ALL - col2 ) + COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3722
SELECT + MAX ( ALL - col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3723
SELECT DISTINCT - 52 + + col2 * + CAST( NULL AS SIGNED ) AS col0, ( CAST( NULL AS SIGNED ) ) + - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT - 52 + + col2 * + CAST ( NULL AS INTEGER ) AS col0, ( CAST ( NULL AS INTEGER ) ) + - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT DISTINCT 72 DIV - col0 - 19 FROM tab0
----
-19
-23

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT 72 / - col0 - 19 FROM tab0
----
-19
-23

query I rowsort
SELECT col0 * col2 + + + 23 AS col2 FROM tab1
----
4919
5038
6211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 72 ) - 83 + col2 + - col0 * - + 74 col0 FROM tab0
----
1146
6437
7266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col1 FROM tab2 WHERE NULL IS NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL + COUNT( ALL + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + COUNT ( ALL + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL 41 - + COUNT( * ) - - + COUNT( - 50 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL 41 - + COUNT ( * ) - - + COUNT ( - 50 ) FROM tab2
----
41

query I rowsort
SELECT ALL col2 * + - col2 - + - col1 AS col2 FROM tab2
----
-1523
-3297
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - 18 - COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - 18 - COUNT ( * ) FROM tab1
----
-21

query I rowsort
SELECT DISTINCT 59 * + + ( 33 ) AS col2 FROM tab2 cor0
----
1947

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT - col1 DIV ( - 85 ) * - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT - col1 / ( - 85 ) * - + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 45 col1 FROM tab0 cor0
----
-3645
-45
-945

query I rowsort
SELECT ALL - + col2 * col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT DISTINCT 93 * - col2 AS col2 FROM tab1
----
-5487
-6324
-8928

query I rowsort
SELECT ALL - 56 * col1 AS col1 FROM tab1 AS cor0
----
-2632
-280
-784

query II rowsort
SELECT - 58 AS col0, - col2 FROM tab2 AS cor0
----
-58
-23
-58
-40
-58
-58

query I rowsort
SELECT ALL - col1 / - col0 * col2 + col2 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 93 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 93 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < - col0 * - 5 * + col2 + + + col2 + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT DISTINCT + - SUM( - col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3742
SELECT DISTINCT + - SUM ( - col0 ) col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query III rowsort label-3743
SELECT DISTINCT - 51 AS col1, SUM( + + 64 ), + 51 AS col0 FROM tab1 AS cor0
----
-51
192
51

skipif mysql # not compatible
query III rowsort label-3743
SELECT DISTINCT - 51 AS col1, SUM ( + + 64 ), + 51 AS col0 FROM tab1 AS cor0
----
-51
192
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3744
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - COUNT( - 67 ) FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - COUNT ( - 67 ) FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----
NULL

query I rowsort
SELECT 61 * - 26 * + 53 FROM tab0
----
-84058
-84058
-84058

query I rowsort
SELECT ALL col0 * - + 28 * + col2 FROM tab1
----
-137088
-140420
-173264

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT ( NOT ( NOT NULL IS NOT NULL ) ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + COUNT( 58 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3748
SELECT + COUNT ( 58 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query III rowsort label-3749
SELECT COUNT( * ) col0, 17 col2, - - ( + - 5 ) + COUNT( * ) FROM tab0
----
3
17
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3749
SELECT COUNT ( * ) col0, 17 col2, - - ( + - 5 ) + COUNT ( * ) FROM tab0
----
3
17
-2

query II rowsort
SELECT col0, + 86 AS col0 FROM tab0 AS cor0
----
15
86
87
86
97
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT DISTINCT + MAX( col1 ) DIV - SUM( ALL + - 65 ) + - 34 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT + MAX ( col1 ) / - SUM ( ALL + - 65 ) + - 34 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT - MAX( + + 14 ) FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3752
SELECT - MAX ( + + 14 ) FROM tab2 cor0
----
-14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 60 + - - 23 IN ( + col0 - + 16 + - - col0 )
----

query I rowsort
SELECT - col2 * + 86 + 66 + col2 - - col0 * - 97 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 + 74 * + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3756
SELECT ALL + CAST( - + 30 AS SIGNED ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL + CAST ( - + 30 AS INTEGER ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-30
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3757
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST( NULL AS DECIMAL ) / + - col2 BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-3757
SELECT * FROM tab0 AS cor0 WHERE col1 * CAST ( NULL AS REAL ) / + - col2 BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 45 * - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) + - AVG ( DISTINCT - + 77 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - AVG ( DISTINCT - + 77 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT 73 + + + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) BETWEEN NULL AND NULL
----
73

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT 73 + + + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) BETWEEN NULL AND NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT + COUNT( + + 62 ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3761
SELECT DISTINCT + COUNT ( + + 62 ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL >= + 78
----

query I rowsort
SELECT col2 * + col0 + - - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT ( col0 ) DIV + ( - col2 ) - + col0 * - ( col1 ) FROM tab1
----
424
4276
714

skipif mysql # not compatible
query I rowsort label-3764
SELECT ( col0 ) / + ( - col2 ) - + col0 * - ( col1 ) FROM tab1
----
424
4276
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT CAST( NULL AS SIGNED ) - + col0 + + + col2 * col0 * 12 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT CAST ( NULL AS INTEGER ) - + col0 + + + col2 * col0 * 12 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + COUNT( * ) - - - COUNT( * ) * + + 46 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-3766
SELECT + COUNT ( * ) - - - COUNT ( * ) * + + 46 FROM tab0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT + COUNT( * ) * + - MIN( ALL + + col1 ) - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT + COUNT ( * ) * + - MIN ( ALL + + col1 ) - + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-3768
SELECT col1 DIV + 99 * - col1 - + + 69 AS col1, - 77 AS col2 FROM tab1
----
-69
-77
-69
-77
-69
-77

skipif mysql # not compatible
query II rowsort label-3768
SELECT col1 / + 99 * - col1 - + + 69 AS col1, - 77 AS col2 FROM tab1
----
-69
-77
-69
-77
-69
-77

query I rowsort
SELECT - col1 - - + col1 + - col2 * - 92 AS col1 FROM tab1 AS cor0
----
5428
6256
8832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT ALL - col0 - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - col0 - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT DISTINCT + + 26 AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-3771
SELECT DISTINCT + + 26 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
26
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL + + 33 * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + + 33 * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - 10 * - ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

query II rowsort
SELECT DISTINCT + 47 AS col1, col0 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT ALL CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT col0 / + + col2 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3779
SELECT * FROM tab2 cor0 WHERE NOT + 51 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3779
SELECT * FROM tab2 cor0 WHERE NOT + 51 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT 31 * + col1 AS col1 FROM tab1
----
1457
155
434

query I rowsort
SELECT col2 * - - 2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT + 55 * - + col2 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT - + col0 AS col0, + 53 AS col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - col0 < col0
----

skipif mysql # not compatible
query II rowsort label-3784
SELECT - + col0 AS col0, + 53 AS col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - col0 < col0
----

query I rowsort
SELECT 79 * + + 95 AS col0 FROM tab2
----
7505
7505
7505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3786
SELECT - 10 + + MAX( - col1 ) AS col2, - CAST( NULL AS SIGNED ) / - + 33 AS col1 FROM tab0 AS cor0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-3786
SELECT - 10 + + MAX ( - col1 ) AS col2, - CAST ( NULL AS INTEGER ) / - + 33 AS col1 FROM tab0 AS cor0
----
-11
NULL

query I rowsort
SELECT ALL + + 26 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT 4, col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 - - col0 + + + col2 AS col2 FROM tab2 cor0
----
120
181
200

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT + - COUNT( * ) AS col2, 74 * - - COUNT( * ) AS col1 FROM tab0 cor0
----
-3
222

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT + - COUNT ( * ) AS col2, 74 * - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3
222

query I rowsort
SELECT DISTINCT - - col1 + 29 FROM tab1 cor0
----
34
43
76

query I rowsort
SELECT - col0 + - 95 AS col1 FROM tab0 AS cor0
----
-110
-182
-192

query I rowsort
SELECT DISTINCT 68 * - col1 - - - 84 AS col1 FROM tab0 AS cor0
----
-1512
-152
-5592

query I rowsort
SELECT - 93 + + col0 FROM tab0
----
-6
-78
4

query I rowsort
SELECT ALL + col0 + ( - + 40 ) FROM tab2
----
24
35
6

query I rowsort
SELECT - col2 * - 23 FROM tab2 AS cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT MAX( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT MAX ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab2 cor0
----
10

query I rowsort
SELECT DISTINCT + col0 + + ( - - 79 ) * + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
1157
3804
480

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL ( + - MAX( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL ( + - MAX ( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL MAX( + 70 ) AS col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL MAX ( + 70 ) AS col2 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + col0 + + col1 * + 67
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 45 - + col0 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + COUNT( * ) + - 21 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3806
SELECT + COUNT ( * ) + - 21 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3807
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + + col0 - + col0 * 52 / + col2 + + + 94, col1 + 93 AS col1 FROM tab2
----
NULL
144
NULL
160
NULL
170

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col0 - + col0 * 52 / + col2 + + + 94, col1 + 93 AS col1 FROM tab2
----
NULL
144
NULL
160
NULL
170

query I rowsort
SELECT ALL + col2 * + col0 * + col2 AS col2 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ( - ( - COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3809
SELECT ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0
----
3

query II rowsort
SELECT DISTINCT col0 * - col2, - col0 AS col0 FROM tab0
----
-705
-15
-870
-87
-9603
-97

query I rowsort
SELECT - 40 * + 5 AS col2 FROM tab2
----
-200
-200
-200

query II rowsort
SELECT ( - col2 ) AS col1, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT MIN( - + 34 ) + - COUNT( * ) - + + COUNT( * ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT MIN ( - + 34 ) + - COUNT ( * ) - + + COUNT ( * ) FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - col1 * col0 * + + 14 FROM tab1
----
-5945
-59831
-9982

query I rowsort
SELECT - ( col1 ) + - 44 AS col1 FROM tab0
----
-125
-45
-65

query I rowsort
SELECT ALL 73 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 35 col2, - col2 AS col1 FROM tab2
----
-35
-23
-35
-40
-35
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <> + col2 * col1 * 7 * + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - - 36 ) col1 FROM tab1 AS cor0
----
-1836
-3060
-3276

query II rowsort
SELECT DISTINCT 10 + + + col2 AS col2, + col0 * col0 + - col2 FROM tab2 AS cor0 WHERE NOT 58 NOT IN ( - col0 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + COUNT( * ) * 37 AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3823
SELECT + COUNT ( * ) * 37 AS col1 FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL + COUNT( - col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL + COUNT ( - col1 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT COUNT( * ) + - 72 AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT COUNT ( * ) + - 72 AS col1 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL >= NULL AND NOT - 12 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - - + col1 >= NULL
----

query I rowsort
SELECT ALL 46 * + col1 AS col0 FROM tab1 WHERE 72 IS NOT NULL
----
2162
230
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 65 AS col0, col0 col1 FROM tab2
----
-65
46
-65
64
-65
75

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( ( - col1 ), + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3831
SELECT - col1 DIV + + 15 AS col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT - col1 / + + 15 AS col0 FROM tab0
----
-1
-5
0

query II rowsort
SELECT + 79 AS col1, col0 * col1 * + - col1 FROM tab2
----
79
-119646
79
-336675
79
-379456

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT 12, - ( + COUNT( * ) ) AS col2 FROM tab0
----
12
-3

skipif mysql # not compatible
query II rowsort label-3833
SELECT 12, - ( + COUNT ( * ) ) AS col2 FROM tab0
----
12
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + MIN( + + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + MIN ( + + col2 ) AS col0 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT + ( - - COUNT( DISTINCT - 30 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + ( - - COUNT ( DISTINCT - 30 ) ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 44 AND + + col1 + - 60 * - 41 - + - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL + + MIN( - col1 ) col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT ALL + + MIN ( - col1 ) col1 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3839
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - CAST( NULL AS SIGNED ) NOT BETWEEN 52 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3839
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - CAST ( NULL AS INTEGER ) NOT BETWEEN 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3840
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 19 NOT BETWEEN - CAST( - col1 AS SIGNED ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3840
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 19 NOT BETWEEN - CAST ( - col1 AS INTEGER ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL - + SUM( + col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - + SUM ( + col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL + col0 * col0 + - col2 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
2070
4016
5509

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + col0 * col0 + - col2 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
2070
4016
5509

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT DISTINCT COUNT( DISTINCT - + col0 ) * + ( - 67 ) AS col2 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) * + ( - 67 ) AS col2 FROM tab1 AS cor0
----
-201

query I rowsort
SELECT ALL + - col1 + - 36 AS col2 FROM tab1 AS cor0
----
-41
-50
-83

query I rowsort
SELECT ALL + 63 * - 58 AS col1 FROM tab0 AS cor0
----
-3654
-3654
-3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT - - 7 AS col0 FROM tab1 AS cor0 WHERE + CAST( - col0 AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - - 7 AS col0 FROM tab1 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND + - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT COUNT( * ) + - COUNT( * ) + 29 AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3848
SELECT COUNT ( * ) + - COUNT ( * ) + 29 AS col1 FROM tab2
----
29

query I rowsort
SELECT ALL + ( - + 6 ) FROM tab1
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT CAST( + col1 AS SIGNED ) * 75 + + 81 FROM tab2
----
3906
5106
5856

skipif mysql # not compatible
query I rowsort label-3850
SELECT CAST ( + col1 AS INTEGER ) * 75 + + 81 FROM tab2
----
3906
5106
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE col1 - col0 NOT IN ( + 62 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT + col1 FROM tab2 WHERE - 74 * + CAST( + 53 AS SIGNED ) NOT IN ( + col2 * col1 + 94 * - col0 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3853
SELECT + col1 FROM tab2 WHERE - 74 * + CAST ( + 53 AS INTEGER ) NOT IN ( + col2 * col1 + 94 * - col0 )
----
51
67
77

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT ( - col2 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - col0 * 27 AS col2 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT + 59 FROM tab0 WHERE ( NULL ) IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3857
SELECT DISTINCT - ( - 81 ) DIV 88 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - ( - 81 ) / 88 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab0 WHERE ( - col0 ) BETWEEN col2 AND - 29
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3859
SELECT - 54 DIV CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3859
SELECT - 54 / CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3860
SELECT - MIN( 29 ) DIV COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3860
SELECT - MIN ( 29 ) / COUNT ( * ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3861
SELECT DISTINCT col2 - 51 DIV 53 col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3861
SELECT DISTINCT col2 - 51 / 53 col1 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE - 40 * + 9 IN ( 36 + 57 / col0 )
----

query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
104
133
69

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + 41 ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT - 44 DIV + 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT - 44 / + 90 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3867
SELECT ALL CAST( + 67 AS SIGNED ) + COUNT( * ) DIV ( 90 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL CAST ( + 67 AS INTEGER ) + COUNT ( * ) / ( 90 ) FROM tab1
----
67

query I rowsort
SELECT 71 AS col0 FROM tab0 WHERE - 22 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT 98 * + COUNT( * ) AS col2 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-3870
SELECT 98 * + COUNT ( * ) AS col2 FROM tab1
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT + col1 + col1 DIV col0 col2 FROM tab0 WHERE NOT + 25 * col0 IS NULL
----
1
21
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT + col1 + col1 / col0 col2 FROM tab0 WHERE NOT + 25 * col0 IS NULL
----
1
21
86

query I rowsort
SELECT ALL - col1 + 16 AS col2 FROM tab2
----
-35
-51
-61

query I rowsort
SELECT col1 * col0 + + col1 * + col0 FROM tab1 WHERE NOT col0 > ( col2 )
----
1428

query III rowsort
SELECT * FROM tab2 WHERE NOT 4 < ( + col1 )
----

query I rowsort
SELECT DISTINCT + ( 14 ) FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - col2 + - col2 NOT BETWEEN - 10 * - col2 AND col1 + CAST( - col2 + 86 AS SIGNED ) * + ( col2 * col0 - + col0 )
----

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - col2 + - col2 NOT BETWEEN - 10 * - col2 AND col1 + CAST ( - col2 + 86 AS INTEGER ) * + ( col2 * col0 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3877
SELECT * FROM tab2 WHERE NOT - ( ( CAST( NULL AS SIGNED ) ) ) = + col2 * 66
----

skipif mysql # not compatible
query III rowsort label-3877
SELECT * FROM tab2 WHERE NOT - ( ( CAST ( NULL AS INTEGER ) ) ) = + col2 * 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT MAX( DISTINCT ( + 63 ) ) AS col1 FROM tab0 WHERE + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT MAX ( DISTINCT ( + 63 ) ) AS col1 FROM tab0 WHERE + col1 < NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - 3 + col2 * + 27 ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( + 93 ) FROM tab2 WHERE ( NULL ) < - 59 / + col0
----

query I rowsort
SELECT ALL + col1 * col2 + col2 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT ( SUM( DISTINCT + ( + col0 ) ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT ( SUM ( DISTINCT + ( + col0 ) ) ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + 11 FROM tab0 WHERE NOT ( + ( - col2 ) ) IS NULL
----
11
11
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) BETWEEN 23 AND NULL
----

query I rowsort
SELECT ALL 49 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT + COUNT( * ) + + 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
106

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + COUNT ( * ) + + 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
106

query I rowsort
SELECT - col0 * + 2 + - col1 AS col1 FROM tab0 AS cor0
----
-111
-195
-195

query I rowsort
SELECT + 2 + col1 AS col2 FROM tab2 AS cor0
----
53
69
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN 67 + - 73 AND col0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col0 * 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - ( 93 ) + + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-3891
SELECT - ( 93 ) + + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT - 66 * + col0 + col0 FROM tab2 AS cor0
----
-2990
-4160
-4875

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 3 >= 83 + + col1
----

query I rowsort
SELECT - 69 * col0 + - 7 FROM tab0 cor0
----
-1042
-6010
-6700

query I rowsort
SELECT ALL + col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT - col2 + 68 * col1 FROM tab1 AS cor0
----
281
3128
856

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE - col0 + + col0 NOT BETWEEN ( - col0 ) AND ( + 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL - col1 + + CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3898
SELECT ALL - col1 + + CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE 10 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * + col0 + - 93 AS col2 FROM tab2
----
2253
4835
4932

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + SUM( 48 ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-3903
SELECT + SUM ( 48 ) AS col0 FROM tab1
----
144

query I rowsort
SELECT 33 * - 13 * + col1 AS col1 FROM tab0
----
-34749
-429
-9009

query I rowsort
SELECT DISTINCT 57 + col2 AS col0 FROM tab0 AS cor0
----
104
156
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - 71 + COUNT( * ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - 71 + COUNT ( * ) FROM tab1 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3907
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT DISTINCT - COUNT( col0 ) AS col1 FROM tab2 WHERE ( 28 - + col2 * - 51 ) < - CAST( col0 AS SIGNED ) * - col1
----
-3

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT - COUNT ( col0 ) AS col1 FROM tab2 WHERE ( 28 - + col2 * - 51 ) < - CAST ( col0 AS INTEGER ) * - col1
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > - ( 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL COUNT( * ) - + 22 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL COUNT ( * ) - + 22 FROM tab1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3911
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( + - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( + - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 51 ) = - 96
----
-3

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 51 ) = - 96
----
-3

query I rowsort
SELECT + 6 * - col0 FROM tab0 cor0
----
-522
-582
-90

query I rowsort
SELECT DISTINCT - ( 24 ) * - + 50 FROM tab1 AS cor0
----
1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col2 FROM tab0 AS cor0 WHERE NOT ( - ( + col2 ) ) >= 18 * - col1
----
56

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + + col1 * - col1 + + col1 / col2 )
----

query I rowsort
SELECT DISTINCT + col2 * 58 AS col0 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT + COUNT( 87 ) AS col0 FROM tab1 AS cor0 WHERE 39 / + col2 + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + COUNT ( 87 ) AS col0 FROM tab1 AS cor0 WHERE 39 / + col2 + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT ALL - - COUNT( * ), 98 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
294

skipif mysql # not compatible
query II rowsort label-3920
SELECT ALL - - COUNT ( * ), 98 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
294

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) * col2 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT 24 DIV + col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3923
SELECT 24 / + col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT MIN( DISTINCT ( col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3924
SELECT MIN ( DISTINCT ( col0 ) ) FROM tab0
----
15

query I rowsort
SELECT - - col0 * + + ( - + ( - + ( 56 ) ) ) + + col0 FROM tab2 AS cor0
----
2622
3648
4275

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 40 / col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + + col1 ) + - + col2 - + col0 - col1 FROM tab0 AS cor0
----
-139
-198
-224

query I rowsort
SELECT DISTINCT + - 24 AS col2 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE col0 * + col1 + + 21 - + 98 + - col1 NOT BETWEEN col2 * col2 + + col2 / + 5 AND ( col0 / 93 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 53
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + 92 + - col0 + - - ( - 88 ) / 18 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT col2 DIV - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT col2 / - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-3
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 45 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 + + 35 AS col1 FROM tab1 AS cor0
----
-12
21
30

query I rowsort
SELECT + col2 AS col1 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col1 * + 77 + - - 31 FROM tab0 AS cor0
----
108
1648
6268

query I rowsort
SELECT col1 * + col1 * - col2 * - - col1 + - - 4 FROM tab2
----
-17444250
-18261316
-3050969

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL COUNT( * ) + + - 33 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL COUNT ( * ) + + - 33 FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT MIN( 80 ) col1 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT DISTINCT MIN ( 80 ) col1 FROM tab1
----
80

query III rowsort
SELECT * FROM tab2 WHERE 4 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL + 40 * + + 21 + + + COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
843

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL + 40 * + + 21 + + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT - col1 * + col1 + + CAST( col2 AS SIGNED ) + col0 FROM tab0
----
-344
-6499
195

skipif mysql # not compatible
query I rowsort label-3943
SELECT - col1 * + col1 + + CAST ( col2 AS INTEGER ) + col0 FROM tab0
----
-344
-6499
195

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - - col2 + - 60 FROM tab1
----
-39
-6
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT - MAX( + + ( + + 58 ) ) AS col0 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT - MAX ( + + ( + + 58 ) ) AS col0 FROM tab0
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-3947
SELECT + + col1 AS col0, + 45 DIV 81 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3947
SELECT + + col1 AS col0, + 45 / 81 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3948
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 18 * - 77 NOT BETWEEN CAST( - - col2 AS DECIMAL ) + - - ( col2 ) AND + col1 + col0 / 10
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 18 * - 77 NOT BETWEEN CAST ( - - col2 AS REAL ) + - - ( col2 ) AND + col1 + col0 / 10
----
3

query I rowsort
SELECT ALL - 73 + - col0 FROM tab0 cor0
----
-160
-170
-88

query II rowsort
SELECT 73 AS col0, col1 AS col1 FROM tab2 cor0
----
73
51
73
67
73
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 * - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT 54 * col2 DIV 47 * - col0 - 71 FROM tab2
----
-1267
-2951
-5021

skipif mysql # not compatible
query I rowsort label-3952
SELECT 54 * col2 / 47 * - col0 - 71 FROM tab2
----
-1267
-2951
-5021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( 3 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( 3 AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + 47 + col0 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-1110
-49
-7599

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 85 * + - col1 AS col2 FROM tab0 AS cor0
----
1785
6885
85

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 31 * col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 / - col1 AS col0 FROM tab2 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 8 IS NULL
----

query I rowsort
SELECT ALL col1 * + 11 FROM tab2
----
561
737
847

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT col0 DIV 28 AS col0 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-3961
SELECT col0 / 28 AS col0 FROM tab1
----
1
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT ALL 75 * + - CAST( - col1 AS SIGNED ) FROM tab2
----
3825
5025
5775

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 75 * + - CAST ( - col1 AS INTEGER ) FROM tab2
----
3825
5025
5775

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 44 col2, col0 FROM tab1 AS cor0
----
44
51
44
85
44
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT MAX( + - col1 ) * - 88 + + + 76 - COUNT( * ) * + - MIN( ALL + col2 ) FROM tab0 AS cor0
----
194

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT MAX ( + - col1 ) * - 88 + + + 76 - COUNT ( * ) * + - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
194

query I rowsort
SELECT + 96 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, ( + - 25 ) col2 FROM tab0 AS cor0
----
-1
-25
-21
-25
-81
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT ALL - + ( col0 ) + + + col1 DIV - 42 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - + ( col0 ) + + + col1 / - 42 FROM tab1 AS cor0
----
-51
-85
-92

query I rowsort
SELECT DISTINCT + - ( + 14 ) * + 0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + 96 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + 16 AS col0 FROM tab1
----
-1088
-1536
-944

query I rowsort
SELECT - - col2 + + col0 * - + 22 FROM tab0 AS cor0
----
-1904
-2035
-283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT + COUNT( * ) + + ( - - 96 ) + - - CAST( + + 22 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COUNT ( * ) + + ( - - 96 ) + - - CAST ( + + 22 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
121

query I rowsort
SELECT + + ( + + col0 ) + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + col1 + - + 69 - + - col1 + - col2 FROM tab0 AS cor0
----
-166
-37
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT DISTINCT + 95 DIV - + col1 FROM tab1 AS cor0
----
-19
-2
-6

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT + 95 / - + col1 FROM tab1 AS cor0
----
-19
-2
-6

query I rowsort
SELECT DISTINCT col2 * - 92 + + - col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

query I rowsort
SELECT DISTINCT + - 70 + - + 30 FROM tab2 AS cor0
----
-100

query II rowsort
SELECT DISTINCT - - 76 + - col2 AS col1, col2 + - - col2 * - - col0 AS col1 FROM tab1 AS cor0
----
-20
4992
17
5074
8
6256

query III rowsort
SELECT ALL * FROM tab2 WHERE 10 IN ( + 14 + + col1 / + col2 * + col1 * - col2, + ( + 59 ) )
----

query I rowsort
SELECT ALL - + col0 + - - 63 * col2 * + col2 * col2 FROM tab0 WHERE + + col1 = + 15
----

query I rowsort
SELECT ALL 99 + - 96 FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col2 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - MAX( DISTINCT + 35 ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-3986
SELECT - MAX ( DISTINCT + 35 ) FROM tab1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL + MIN( ALL + - 4 ) - + - ( + ( - - 63 ) ) AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + MIN ( ALL + - 4 ) - + - ( + ( - - 63 ) ) AS col2 FROM tab2
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + col2 AND NOT - 25 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE - + 9 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + - 17 + + col1 AS col2 FROM tab2
----
100
108
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT DISTINCT 66 DIV + col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT 66 / + col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL + + SUM( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + + SUM ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + - 90 - - col1 FROM tab1 AS cor0
----
-43
-76
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3994
SELECT ALL * FROM tab2 cor0 WHERE NOT 91 NOT BETWEEN col1 AND + CAST( NULL AS SIGNED ) * 67
----

skipif mysql # not compatible
query III rowsort label-3994
SELECT ALL * FROM tab2 cor0 WHERE NOT 91 NOT BETWEEN col1 AND + CAST ( NULL AS INTEGER ) * 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT DISTINCT - col2 * - 47 + - col2 DIV - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2773
3196
4511

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - col2 * - 47 + - col2 / - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2773
3196
4511

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT 17 * + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT 17 * + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT + 59 + - + ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
118
127
155

query I rowsort
SELECT ALL + 51 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL - COUNT( * ) * + 42 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + 27, - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - COUNT ( * ) * + 42 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + 27, - 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + 63 * - 86 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16254

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + 63 * - 86 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16254

query I rowsort
SELECT DISTINCT col1 * 65 AS col2 FROM tab2
----
3315
4355
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT ALL AVG ( + col1 ) * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL AVG ( + col1 ) * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + 38 * - col2 FROM tab0
----
-1786
-3762
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + col0 * + col2 * - 31 * col0 col1 FROM tab2
----
203161600
34700284
586597500

query I rowsort
SELECT ALL - 37 * + col1 * - 68 FROM tab1
----
118252
12580
35224

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT 84 * - + MIN( + + col1 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT 84 * - + MIN ( + + col1 ) FROM tab0 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 67 - - col0 < - 13
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 32 * col1 * - - 34 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4011
SELECT ALL + - col2, CAST( - 53 AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4011
SELECT ALL + - col2, CAST ( - 53 AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT CAST( NULL AS SIGNED ) + 56 * + - col0 + + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 56 * + - col0 + + col2 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - - ( - col1 ) NOT BETWEEN + + col1 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT ALL 90 DIV - COUNT( * ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 90 / - COUNT ( * ) FROM tab2
----
-30

query I rowsort
SELECT col2 + - - col1 + + + col1 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT ALL + - 79 FROM tab1 AS cor0 WHERE ( - col2 * + 32 ) NOT BETWEEN + col2 * col1 AND NULL
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + + ( - - col0 ) col2, - col1 FROM tab0 AS cor0
----
-2
-1
-32
-81
77
-21

query I rowsort
SELECT ALL col1 + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
114
76
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4019
SELECT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4019
SELECT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) IN ( col1 )
----

query I rowsort
SELECT + col1 + - 53 FROM tab1
----
-39
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - 43 + + COUNT( * ) AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 43 + + COUNT ( * ) AS col1 FROM tab2
----
-40

query I rowsort
SELECT ALL + col1 - - - col2 AS col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + col1 + + col2 * - + ( 88 ) * - 8 * col2 + col1 + + col1 AS col1 FROM tab0
----
1555379
6899907
70463

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4024
SELECT * FROM tab2 WHERE + ( + CAST( col2 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4024
SELECT * FROM tab2 WHERE + ( + CAST ( col2 AS REAL ) ) IS NULL
----

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + col1, - ( col0 ) + + - col1 / + 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT DISTINCT - + col1 DIV - + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - + col1 / - + col2 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - SUM( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4028
SELECT - SUM ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT MAX( DISTINCT + 47 ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4029
SELECT DISTINCT MAX ( DISTINCT + 47 ) col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= - + 94 + - - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 26 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT DISTINCT 55 AS col2, - ( COUNT( * ) ) AS col0 FROM tab0
----
55
-3

skipif mysql # not compatible
query II rowsort label-4032
SELECT DISTINCT 55 AS col2, - ( COUNT ( * ) ) AS col0 FROM tab0
----
55
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 38 AND + - col2
----

query II rowsort
SELECT ALL col0, + 11 + + col0 - - col0 * + - 36 * - - col1 FROM tab2
----
46
-84399
64
-177333
75
-180814

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT MIN( - - col0 ) * + COUNT( * ) + - - 87 AS col0 FROM tab0 WHERE - - 12 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT MIN ( - - col0 ) * + COUNT ( * ) + - - 87 AS col0 FROM tab0 WHERE - - 12 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - ( MAX( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4036
SELECT - ( MAX ( col2 ) ) FROM tab2
----
-58

query I rowsort
SELECT + col1 * + col2 * + + col1 * - col2 FROM tab0 AS cor0 WHERE col0 * col1 >= - - col0
----
-14493249
-44100
-9801

query I rowsort
SELECT DISTINCT - + col1 + - col2 * - + col0 + col2 FROM tab2 AS cor0
----
1030
2523
4341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT + MIN( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - col0 + - 7, - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-53
0
-71
0
-82
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 + - + col0 * col0 col1 FROM tab2 AS cor0
----
-51
-2065
-67
-5558
-77
-4019

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT + 53 + + COUNT( * ) + - SUM( ALL - - col0 ) AS col0 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-4043
SELECT + 53 + + COUNT ( * ) + - SUM ( ALL - - col0 ) AS col0 FROM tab2
----
-129

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 22 - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( 69, - col0, - 45 / + 68 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT DISTINCT + ( - MIN( ALL 80 ) ) AS col0, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT + ( - MIN ( ALL 80 ) ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-80
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4047
SELECT + + COUNT( * ) DIV COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4047
SELECT + + COUNT ( * ) / COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 41 * - 8 AS col0 FROM tab0 AS cor0
----
328

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT ALL + + col0 + + - col0 DIV + col2 AS col1 FROM tab2 cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL + + col0 + + - col0 / + col2 AS col1 FROM tab2 cor0
----
44
63
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT DISTINCT - - col1 DIV + + 70 + - 94 - - col1 FROM tab1 AS cor0
----
-47
-80
-89

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - - col1 / + + 70 + - 94 - - col1 FROM tab1 AS cor0
----
-47
-80
-89

query I rowsort
SELECT ALL 98 * - - 73 + col0 FROM tab2 AS cor0
----
7200
7218
7229

query I rowsort
SELECT DISTINCT - 72 + - ( - 55 ) + - col0 AS col2 FROM tab0 AS cor0
----
-104
-114
-32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + ( - - col1 )
----

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT ALL - COUNT( - ( col2 ) ) AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - COUNT ( - ( col2 ) ) AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT + 28, + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
28
1344
28
295
28
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT DISTINCT - + ( - col0 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT - + ( - col0 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT + AVG ( col2 ) * + ( - - ( COUNT( * ) ) ) FROM tab1 AS cor0 WHERE NOT 5 + - col0 + CAST( NULL AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT + AVG ( col2 ) * + ( - - ( COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE NOT 5 + - col0 + CAST ( NULL AS INTEGER ) = NULL
----
NULL

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 WHERE 66 IS NOT NULL
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 1 / col1 > col2 + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 99 / - + ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4063
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > 99 / - + ( col2 )
----
0

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col2 + 29 AS col0 FROM tab2
----
52
69
87

query II rowsort
SELECT ALL - 6 AS col2, ( + - 48 ) FROM tab0
----
-6
-48
-6
-48
-6
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT col1 DIV + col1 + + ( + col0 ) FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4067
SELECT col1 / + col1 + + ( + col0 ) FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL COUNT( + 80 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL COUNT ( + 80 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT ALL + + 13 DIV - 91 + + + col1 * + - 78 AS col2 FROM tab0 AS cor0
----
-1638
-6318
-78

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + + 13 / - 91 + + + col1 * + - 78 AS col2 FROM tab0 AS cor0
----
-1638
-6318
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + 46 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - col1 AS col0, - 3 FROM tab0 AS cor0
----
1
-3
21
-3
81
-3

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab0, tab2 AS cor0
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL + MAX( DISTINCT + 82 ) * + COUNT( * ) FROM tab2 WHERE - + col0 + + + ( + col1 ) > 44 + - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + MAX ( DISTINCT + 82 ) * + COUNT ( * ) FROM tab2 WHERE - + col0 + + + ( + col1 ) > 44 + - - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 74 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
666

skipif mysql # not compatible
query I rowsort label-4077
SELECT 74 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
666

query I rowsort
SELECT ALL ( + 94 ) AS col2 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - MIN( - col0 ) + COUNT( * ) FROM tab0 cor0
----
100

skipif mysql # not compatible
query I rowsort label-4079
SELECT - MIN ( - col0 ) + COUNT ( * ) FROM tab0 cor0
----
100

query I rowsort
SELECT DISTINCT + col2 * + col2 + + col1 AS col0 FROM tab0 cor0
----
121
2290
9802

query I rowsort
SELECT - - col1 + 13 FROM tab0 AS cor0
----
14
34
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL - 25 + - CAST( 26 AS SIGNED ) + col0 * + col2 + + col0 + - - col1 + 7 + 95 + - col2 + 27 * + col0 col2 FROM tab0 WHERE - ( ( - col2 ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4082
SELECT ALL - 25 + - CAST ( 26 AS INTEGER ) + col0 * + col2 + + col0 + - - col1 + 7 + 95 + - col2 + 27 * + col0 col2 FROM tab0 WHERE - ( ( - col2 ) ) IS NULL
----

query I rowsort
SELECT ( - col0 ) * - 2 AS col0 FROM tab0
----
174
194
30

onlyif mysql # DIV for integer division: 
query II rowsort label-4084
SELECT ALL + 92 * col1 DIV - col1 AS col2, + col0 * + 87 FROM tab2
----
-92
4002
-92
5568
-92
6525

skipif mysql # not compatible
query II rowsort label-4084
SELECT ALL + 92 * col1 / - col1 AS col2, + col0 * + 87 FROM tab2
----
-92
4002
-92
5568
-92
6525

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT BETWEEN + col0 AND + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + col1 * + 56 FROM tab2 WHERE NULL <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL - col2 * - + 92 FROM tab2 WHERE col0 NOT IN ( - - 74 * - 27 * + + CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - col2 * - + 92 FROM tab2 WHERE col0 NOT IN ( - - 74 * - 27 * + + CAST ( NULL AS INTEGER ), col2 )
----

query I rowsort
SELECT ALL + col0 * - + ( 61 ) AS col1 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT ALL 44 + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
125
45
65

query I rowsort
SELECT ALL - col1 * - + 63 AS col1 FROM tab2 AS cor0
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - SUM( DISTINCT ( - - col2 ) ) col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4091
SELECT - SUM ( DISTINCT ( - - col2 ) ) col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4092
SELECT DISTINCT - - COUNT( * ) DIV - 82, 23 AS col0 FROM tab1 AS cor0
----
0
23

skipif mysql # not compatible
query II rowsort label-4092
SELECT DISTINCT - - COUNT ( * ) / - 82, 23 AS col0 FROM tab1 AS cor0
----
0
23

query I rowsort
SELECT DISTINCT + - 7 * - 46 * - 82 AS col0 FROM tab2 AS cor0
----
-26404

query II rowsort
SELECT ALL col2, - 58 * - 91 AS col0 FROM tab1
----
59
5278
68
5278
96
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - - col0 + - + 10 FROM tab0 AS cor0
----
5
77
87

query I rowsort
SELECT col2 + + + col1 * + + col1 * col0 FROM tab0 cor0
----
196
38377
98462

query I rowsort
SELECT + 56 + - - col0 AS col0 FROM tab2 AS cor0
----
102
120
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL - - CAST( 39 AS SIGNED ) FROM tab1 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - - CAST ( 39 AS INTEGER ) FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT + 61 + - 15 AS col0 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + + 57 + - 50 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT + 58 + - - COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT + 58 + - - COUNT ( * ) FROM tab0
----
61

query I rowsort
SELECT DISTINCT col0 + + ( - - ( col2 ) ) AS col1 FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col0 FROM tab2
----
52

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4106
SELECT col1 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT col1 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4107
SELECT DISTINCT + 58 DIV + - col0, col0 AS col2 FROM tab2
----
-1
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-4107
SELECT DISTINCT + 58 / + - col0, col0 AS col2 FROM tab2
----
-1
46
0
64
0
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4108
SELECT CAST( NULL AS DECIMAL ) / - - 95 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT CAST ( NULL AS REAL ) / - - 95 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4109
SELECT col2 DIV - col2 * col2 DIV + col2 col2, 21 * - 1 AS col0 FROM tab0 AS cor0
----
-1
-21
-1
-21
-1
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4109
SELECT col2 / - col2 * col2 / + col2 col2, 21 * - 1 AS col0 FROM tab0 AS cor0
----
-1
-21
-1
-21
-1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT + SUM( 64 ) + - COUNT( * ) FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + SUM ( 64 ) + - COUNT ( * ) FROM tab2 cor0
----
189

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4111
SELECT ALL CAST( NULL AS DECIMAL ) + 86 - + + 90 * 51 * - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL CAST ( NULL AS REAL ) + 86 - + + 90 * 51 * - COUNT ( * ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4112
SELECT ALL CAST( - col0 AS SIGNED ) + - + 26 DIV col1 + col0 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL CAST ( - col0 AS INTEGER ) + - + 26 / col1 + col0 FROM tab1
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT col2 DIV ( col2 ) + 35 - - ( 61 ) + col2 * + col2 + col2 AS col2 FROM tab1
----
3637
4789
9409

skipif mysql # not compatible
query I rowsort label-4113
SELECT col2 / ( col2 ) + 35 - - ( 61 ) + col2 * + col2 + col2 AS col2 FROM tab1
----
3637
4789
9409

query I rowsort
SELECT ALL - 35 + + - 64 FROM tab1
----
-99
-99
-99

query II rowsort
SELECT col1 AS col0, + 44 AS col0 FROM tab1
----
14
44
47
44
5
44

query II rowsort
SELECT DISTINCT col0, col0 FROM tab0 WHERE NOT NULL BETWEEN - 55 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT COUNT( ALL 81 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4117
SELECT COUNT ( ALL 81 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT col1 * + ( col2 ) FROM tab1 cor0 WHERE col0 BETWEEN + col2 * + - col2 * - col0 + col0 AND + - col0 - - + col2 + - col2 * + CAST( + col0 AS SIGNED ) / - - 49
----

skipif mysql # not compatible
query I rowsort label-4118
SELECT col1 * + ( col2 ) FROM tab1 cor0 WHERE col0 BETWEEN + col2 * + - col2 * - col0 + col0 AND + - col0 - - + col2 + - col2 * + CAST ( + col0 AS INTEGER ) / - - 49
----

query I rowsort
SELECT ALL - + 52 AS col1 FROM tab1 AS cor0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 35 AS col0 FROM tab2 cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > 42
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col1 FROM tab0
----
11

query II rowsort
SELECT DISTINCT 22, + col1 AS col2 FROM tab2
----
22
51
22
67
22
77

query I rowsort
SELECT 48 * + col2 FROM tab0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT 89 * COUNT( + col0 ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-4127
SELECT 89 * COUNT ( + col0 ) FROM tab0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 col2, - col1 + - - col0 FROM tab0
----
30
-66
30
66
30
96

query II rowsort
SELECT col1, - 43 AS col2 FROM tab1
----
14
-43
47
-43
5
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL + CAST( + 66 AS SIGNED ) AS col1 FROM tab0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + CAST ( + 66 AS INTEGER ) AS col1 FROM tab0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 17 col0 FROM tab0
----
15
17
87
17
97
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT MAX( - col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4132
SELECT DISTINCT MAX ( - col0 ) col1 FROM tab0
----
-15

query II rowsort
SELECT 30, col0 AS col1 FROM tab1
----
30
51
30
85
30
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL 65 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL 65 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----
0

query I rowsort
SELECT 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - ( ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE + 87 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL SUM( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE - col0 * col2 IS NOT NULL
----
199

query II rowsort
SELECT + col2 + - col2 AS col0, - col1 AS col2 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4142
SELECT * FROM tab2 WHERE + col1 BETWEEN + col1 + + + col2 AND ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4142
SELECT * FROM tab2 WHERE + col1 BETWEEN + col1 + + + col2 AND ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + 53 + - col0 AS col1 FROM tab2
----
-11
-22
7

query I rowsort
SELECT DISTINCT - 98 + col0 * - col0 + - + col1 + 71 AS col2 FROM tab1
----
-2642
-7257
-8355

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - ( + - COUNT( * ) ) + COUNT( * ) + - ( - - 14 ) col1 FROM tab0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4145
SELECT - ( + - COUNT ( * ) ) + COUNT ( * ) + - ( - - 14 ) col1 FROM tab0
----
-8

query I rowsort
SELECT DISTINCT 72 * + - col1 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # DIV for integer division: 
query I rowsort label-4147
SELECT DISTINCT - 97 DIV + col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT - 97 / + col2 FROM tab2
----
-1
-2
-4

query II rowsort
SELECT ALL + col2 AS col1, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT - CAST( NULL AS SIGNED ) * - + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT - CAST ( NULL AS INTEGER ) * - + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + - col0 * - + 73 AS col1 FROM tab0 AS cor0
----
1014
6330
7080

query II rowsort
SELECT col0 AS col0, - 21 FROM tab1 AS cor0
----
51
-21
85
-21
91
-21

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab2 AS cor0 WHERE + col1 * - + col2 >= + - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL - AVG ( ALL + 36 ) + + COUNT( - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + col0, col2, 78 / col2 + + + col0 * - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - AVG ( ALL + 36 ) + + COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( + col0, col2, 78 / col2 + + + col0 * - 11 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT 90 DIV - + 35 + - col1 AS col1 FROM tab0 AS cor0
----
-23
-3
-83

skipif mysql # not compatible
query I rowsort label-4154
SELECT 90 / - + 35 + - col1 AS col1 FROM tab0 AS cor0
----
-23
-3
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - 35 * + MAX( col0 ) * - 98 * - + COUNT( - 94 ) FROM tab1 AS cor0
----
-936390

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 35 * + MAX ( col0 ) * - 98 * - + COUNT ( - 94 ) FROM tab1 AS cor0
----
-936390

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT - 2 DIV + 39 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT - 2 / + 39 AS col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - 68, + 41 AS col0 FROM tab1
----
-68
41
-68
41
-68
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) = col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL + MAX( DISTINCT - 92 ) AS col2 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + MAX ( DISTINCT - 92 ) AS col2 FROM tab1
----
-92

query II rowsort
SELECT ALL + col1 AS col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + COUNT( 41 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4161
SELECT + COUNT ( 41 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 85 - - + 52 * + 54 * col2 * col2 FROM tab0 AS cor0 WHERE + col1 >= - 90 - + col1
----
27521293
280885
6202957

query I rowsort
SELECT DISTINCT - 87 * + 32 FROM tab0
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT col2 * col0 + - + col1 + col0 * - col2 + - col1 + - + col1 + - CAST( NULL AS SIGNED ) + + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT col2 * col0 + - + col1 + col0 * - col2 + - col1 + - + col1 + - CAST ( NULL AS INTEGER ) + + + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT - CAST( NULL AS SIGNED ) + + col0 * - - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4165
SELECT - CAST ( NULL AS INTEGER ) + + col0 * - - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT - MIN( 78 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4166
SELECT - MIN ( 78 ) FROM tab2 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 + + col0 col0 FROM tab0 cor0
----
118
143
197

query I rowsort
SELECT ALL - col1 * + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-210
-3807
-99

query I rowsort
SELECT + col0 - - ( col2 ) FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT 43 * + CAST( NULL AS SIGNED ) - - 93 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4170
SELECT 43 * + CAST ( NULL AS INTEGER ) - - 93 + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - MIN( - col1 ) * - COUNT( * ) - - 70 FROM tab0
----
-173

skipif mysql # not compatible
query I rowsort label-4171
SELECT - MIN ( - col1 ) * - COUNT ( * ) - - 70 FROM tab0
----
-173

query I rowsort
SELECT DISTINCT - - col2 * - 72 AS col2 FROM tab1 AS cor0
----
-4248
-4896
-6912

query I rowsort
SELECT - 71 + + 51 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL col0 + col2 + - - col1 * - col2 FROM tab2 cor0
----
-1104
-2976
-3753

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL - COUNT( * ) * - 18 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - COUNT ( * ) * - 18 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT COUNT( * ) - - - MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT COUNT ( * ) - - - MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 76 * - - 92 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT DISTINCT MAX( DISTINCT - - CAST( + - 52 AS SIGNED ) ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT MAX ( DISTINCT - - CAST ( + - 52 AS INTEGER ) ) FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + - MIN( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + - MIN ( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4181
SELECT DISTINCT + - col0, col1 * ( - CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

skipif mysql # not compatible
query II rowsort label-4181
SELECT DISTINCT + - col0, col1 * ( - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT - - ( + CAST( NULL AS SIGNED ) ) * + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - - ( + CAST ( NULL AS INTEGER ) ) * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT DISTINCT + + 27 DIV + - col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT + + 27 / + - col1 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 66 * + col1 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL ( ( + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL ( ( + COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4188
SELECT + + 22 + + + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT + + 22 + + + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab0 cor0
----
-60

query I rowsort
SELECT 85 + - + 84 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + ( - + 7 ) + 55 FROM tab1 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL COUNT( * ) + + COUNT( * ) + + 69 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL COUNT ( * ) + + COUNT ( * ) + + 69 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - 50 + col1 AS col0 FROM tab0 AS cor0
----
-29
-49
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT - col1 + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - col1 + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT col0 * - - ( - - col2 ) FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + 26 + - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + 26 + - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query I rowsort
SELECT ALL 18 * col0 * + 17 + + col0 FROM tab1 AS cor0
----
15657
26095
27937

query I rowsort
SELECT + + 15 + + 35 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT ALL - - col1 DIV - col1 + 89 AS col1 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - - col1 / - col1 + 89 AS col1 FROM tab2 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 28 * - col2 BETWEEN + 84 + 35 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT DISTINCT col1 + + col0 DIV - col0 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT col1 + + col0 / - col0 FROM tab2 AS cor0
----
50
66
76

query III rowsort
SELECT * FROM tab0 WHERE + 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL + 3 + ( + COUNT( * ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + 3 + ( + COUNT ( * ) ) FROM tab0
----
6

query I rowsort
SELECT - ( + 13 ) + - - col2 AS col2 FROM tab2
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT - COUNT( * ) + ( - - COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - COUNT ( * ) + ( - - COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT COUNT( + 16 ) * + + 93 AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4206
SELECT COUNT ( + 16 ) * + + 93 AS col1 FROM tab2
----
279

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 - + + 11 AND + col1
----

query I rowsort
SELECT col0 * col0 * + 70 FROM tab0 cor0
----
15750
529830
658630

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - 66 * col2 * - - ( - - 82 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - 66 * col2 * - - ( - - 82 ) IS NULL
----
0

query I rowsort
SELECT ALL 20 * + col0 + - col1 FROM tab0 AS cor0
----
1719
1939
219

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT + MIN( DISTINCT - ( 45 ) ), - 4 col2 FROM tab2 cor0
----
-45
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4211
SELECT + MIN ( DISTINCT - ( 45 ) ), - 4 col2 FROM tab2 cor0
----
-45
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + MIN( - + 76 ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT + MIN ( - + 76 ) AS col2 FROM tab1 cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 91 * - - ( 18 ) = + 78 + - 93
----
-46
-64
-75

query I rowsort
SELECT + 85 * - 18 FROM tab1 AS cor0
----
-1530
-1530
-1530

query I rowsort
SELECT - ( - + ( - 82 ) ) FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - + 87 * + col2 AS col1 FROM tab1 AS cor0
----
-5133
-5916
-8352

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL - CAST( + SUM( ALL col2 ) AS SIGNED ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - CAST ( + SUM ( ALL col2 ) AS INTEGER ) AS col2 FROM tab0
----
-156

query II rowsort
SELECT ALL - col0 AS col0, + col1 * col1 * - 52 * + col2 FROM tab0
----
-15
-16035084
-87
-229320
-97
-5148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + col0 * - col0 AS col2 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - 90 + - 40 * + col2 * 81
----

query I rowsort
SELECT DISTINCT - ( - - 94 ) AS col1 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + ( - MIN( - 63 ) ) AS col0 FROM tab2 WHERE NOT + 10 + - + col1 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + ( - MIN ( - 63 ) ) AS col0 FROM tab2 WHERE NOT + 10 + - + col1 IS NULL
----
63

query I rowsort
SELECT DISTINCT - col1 + 46 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-21
-31
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / + + col0 + - - 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT + + 6 + - + MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4226
SELECT + + 6 + - + MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-45

query II rowsort
SELECT ( col1 ) + - col0 + + 49 AS col0, col2 * col0 FROM tab1 AS cor0
----
-31
5015
12
4896
5
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT ALL + col0 * CAST( NULL AS SIGNED ) / - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) / - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 47 * - - ( col2 ) AS col1 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT DISTINCT + 32 + col2 AS col1 FROM tab2 AS cor0
----
55
72
90

query I rowsort
SELECT DISTINCT - 43 + - + col0 FROM tab2
----
-107
-118
-89

query I rowsort
SELECT ALL - col2 - - - col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL col2 - - col0 * + ( 18 ) FROM tab2
----
1192
1408
851

query I rowsort
SELECT + 18 * - col1 * + 64 FROM tab1 cor0
----
-16128
-54144
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT - MAX( DISTINCT - 33 ) col1 FROM tab0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4235
SELECT DISTINCT - MAX ( DISTINCT - 33 ) col1 FROM tab0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT - SUM( ALL + col2 ) * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4236
SELECT DISTINCT - SUM ( ALL + col2 ) * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * - col0 - - 59 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL - + col2 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - + col2 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL + col2 * ( + col2 ) FROM tab0 WHERE 91 + + ( + + col0 ) NOT BETWEEN + CAST( NULL AS SIGNED ) * + 56 + 31 AND ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL + col2 * ( + col2 ) FROM tab0 WHERE 91 + + ( + + col0 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) * + 56 + 31 AND ( + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT + CAST( NULL AS SIGNED ) / + - 31 * + 46 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT + CAST ( NULL AS INTEGER ) / + - 31 * + 46 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 59 * - col1 AS col0 FROM tab1 AS cor0
----
2773
295
826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4242
SELECT ( - CAST( - + 8 AS SIGNED ) ) * col2 AS col0, col1 FROM tab2 AS cor0
----
184
51
320
77
464
67

skipif mysql # not compatible
query II rowsort label-4242
SELECT ( - CAST ( - + 8 AS INTEGER ) ) * col2 AS col0, col1 FROM tab2 AS cor0
----
184
51
320
77
464
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT - + 62 DIV - 60 + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT - + 62 / - 60 + COUNT ( * ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT - col2 * + - 47 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT col1 * - - 30 FROM tab0
----
2430
30
630

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
83

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT ( NOT col0 * col1 IS NOT NULL )
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 66 col0 FROM tab1
----
-3894
-4488
-6336

query I rowsort
SELECT DISTINCT - 58 * + 11 FROM tab1
----
-638

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT 53 DIV col1 + col2 FROM tab0
----
12
152
47

skipif mysql # not compatible
query I rowsort label-4251
SELECT 53 / col1 + col2 FROM tab0
----
12
152
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT CAST( NULL AS SIGNED ) + col0 - + 58 * - + col1 * + 95 * - ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4252
SELECT CAST ( NULL AS INTEGER ) + col0 - + 58 * - + col1 * + 95 * - ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 56 * + col0 + - col2 FROM tab2 AS cor0
----
2553
3544
4142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT + CAST( NULL AS SIGNED ) * 26 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4254
SELECT + CAST ( NULL AS INTEGER ) * 26 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL col2 DIV + - 95 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL col2 / + - 95 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + + + ( + 98 ) * + 63 AS col0 FROM tab0 cor0
----
6189
6261
6271

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL - COUNT( * ) * MIN( - - col0 ) + 70 AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - COUNT ( * ) * MIN ( - - col0 ) + 70 AS col1 FROM tab1 AS cor0
----
-83

query I rowsort
SELECT DISTINCT + - 77 + - - 42 + - col1 FROM tab2 AS cor0
----
-102
-112
-86

query I rowsort
SELECT - col1 + - + col2 * + + col1 / - col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT 27 + ( - col1 ) - col0 AS col0 FROM tab2 AS cor0
----
-114
-115
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT + + CAST( NULL AS SIGNED ) * col1 * - ( - col0 ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT + + CAST ( NULL AS INTEGER ) * col1 * - ( - col0 ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + ( - + 95 ) + - MIN( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4262
SELECT + ( - + 95 ) + - MIN ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL + 6 + - 55 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - col0 + - + col1 * + col1 FROM tab0
----
-528
-6576
-98

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT + 52 + - col2 <= - + 14 * + col0 * + col0
----
1
21
81

query I rowsort
SELECT ALL 73 - + 10 AS col0 FROM tab1
----
63
63
63

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 96, 35 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4268
SELECT * FROM tab0 AS cor0 WHERE NOT 21 NOT BETWEEN CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4268
SELECT * FROM tab0 AS cor0 WHERE NOT 21 NOT BETWEEN CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4269
SELECT + - ( COUNT( * ) ) * - 36 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT + - ( COUNT ( * ) ) * - 36 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 16 * + col1 AS col2 FROM tab1 cor0
----
224
752
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND col1 * + col0 * + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 91 col2, col1 * - - 96 - + col2 FROM tab1 AS cor0
----
-91
1248
-91
421
-91
4444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT + - 70 + 26 * - + col1 + CAST( - - col1 AS SIGNED ) * - col1 * + - 70 FROM tab1 AS cor0
----
13286
153338
1550

skipif mysql # not compatible
query I rowsort label-4273
SELECT + - 70 + 26 * - + col1 + CAST ( - - col1 AS INTEGER ) * - col1 * + - 70 FROM tab1 AS cor0
----
13286
153338
1550

query I rowsort
SELECT ALL 54 AS col2 FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
54
54
54

query I rowsort
SELECT + - 66 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + col2 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
4345
484
810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT - 41 / + + CAST( NULL AS SIGNED ) + 98 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT - 41 / + + CAST ( NULL AS INTEGER ) + 98 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col0 + + - col1 * + + 7 FROM tab0 AS cor0
----
-50
-505
189

query I rowsort
SELECT col1 * col0 + + col1 + - 37 * - - col2 + + + 37 * - 79 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT col2 * col1 DIV ( + + col1 ) col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4281
SELECT col2 * col1 / ( + + col1 ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4282
SELECT * FROM tab1 WHERE - - 81 - col2 <> + col1 / CAST( - + col1 AS SIGNED ) - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4282
SELECT * FROM tab1 WHERE - - 81 - col2 <> + col1 / CAST ( - + col1 AS INTEGER ) - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT ALL col2 + + + col2 DIV + - 21 AS col0 FROM tab1
----
57
65
92

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL col2 + + + col2 / + - 21 AS col0 FROM tab1
----
57
65
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT 9 * COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT 9 * COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 * + 84 * col1 * - + 12 AS col0 FROM tab2
----
-2364768
-4967424
-5065200

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT col1 - - 41 + 7 DIV - col2 AS col1 FROM tab0 AS cor0
----
122
42
62

skipif mysql # not compatible
query I rowsort label-4286
SELECT col1 - - 41 + 7 / - col2 AS col1 FROM tab0 AS cor0
----
122
42
62

query I rowsort
SELECT DISTINCT col2 + 71 AS col1 FROM tab1 AS cor0
----
130
139
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL CAST( NULL AS SIGNED ) * 7 + - + col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4288
SELECT ALL CAST ( NULL AS INTEGER ) * 7 + - + col0 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 + - - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 + - - col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 66 * + 49 - - col2 AS col0 FROM tab0 AS cor0
----
3244
3281
3333

query I rowsort
SELECT DISTINCT col2 / + - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT ALL SUM( DISTINCT - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL SUM ( DISTINCT - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT col1 + + col0 + + 69 FROM tab0 AS cor0
----
165
167
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col1 FROM tab0 cor0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT CAST( - ( MAX( ALL 82 ) ) AS SIGNED ) + - COUNT( * ) * - - COUNT( * ) * + ( + AVG ( ALL + col0 ) ) FROM tab1 WHERE NOT ( - 21 ) < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT CAST ( - ( MAX ( ALL 82 ) ) AS INTEGER ) + - COUNT ( * ) * - - COUNT ( * ) * + ( + AVG ( ALL + col0 ) ) FROM tab1 WHERE NOT ( - 21 ) < col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT DISTINCT + col2 DIV 12 AS col1 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + col2 / 12 AS col1 FROM tab2
----
1
3
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4297
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4297
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) col0 FROM tab2
----
3
3

query II rowsort
SELECT - 2 AS col1, col1 AS col0 FROM tab0
----
-2
1
-2
21
-2
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT + col1 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT + col1 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 55 ) AS col1 FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT + col1 * + + CAST( NULL AS SIGNED ) - - - col1 * - CAST( NULL AS SIGNED ) + + 21 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT + col1 * + + CAST ( NULL AS INTEGER ) - - - col1 * - CAST ( NULL AS INTEGER ) + + 21 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, 0 col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT ALL - col2 - + col1 * col0 AS col0 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + SUM( - col2 ) col2 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT ALL + SUM ( - col2 ) col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4305
SELECT COUNT( * ) DIV + 78 + - COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4305
SELECT COUNT ( * ) / + 78 + - COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - CAST( 83 AS SIGNED ) FROM tab2 WHERE NOT NULL < ( col0 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-4307
SELECT - CAST ( 83 AS INTEGER ) FROM tab2 WHERE NOT NULL < ( col0 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 35 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col1 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL + col2 * CAST( - 94 AS SIGNED ) FROM tab0
----
-4418
-9306
-940

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + col2 * CAST ( - 94 AS INTEGER ) FROM tab0
----
-4418
-9306
-940

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab2 WHERE NOT ( col2 + col0 ) > ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * + 48 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT 27 - - COUNT( + col0 + col2 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4314
SELECT 27 - - COUNT ( + col0 + col2 ) FROM tab0
----
30

query I rowsort
SELECT DISTINCT + 55 * col2 FROM tab2
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - 86 / MAX( + 17 ) FROM tab2 WHERE NOT - col2 * col2 + - 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT - 86 / MAX ( + 17 ) FROM tab2 WHERE NOT - col2 * col2 + - 68 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - ( - 18 ) * - 23 IS NULL
----

query I rowsort
SELECT DISTINCT + ( col2 ) - col0 * col0 FROM tab0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT 88 * + COUNT( * ) AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4319
SELECT 88 * + COUNT ( * ) AS col2 FROM tab2
----
264

query I rowsort
SELECT ALL + ( ( + col0 ) ) + col0 AS col0 FROM tab0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + COUNT( * ) * - 32 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4322
SELECT + COUNT ( * ) * - 32 FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT + ( - col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4323
SELECT + ( - col2 ) / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL COUNT( * ) + - ( 82 ) FROM tab1 cor0 WHERE NOT ( + col2 - + 34 ) < + col0
----
-81

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL COUNT ( * ) + - ( 82 ) FROM tab1 cor0 WHERE NOT ( + col2 - + 34 ) < + col0
----
-81

query I rowsort
SELECT col2 * - 19 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4326
SELECT * FROM tab0 AS cor0 WHERE col0 < CAST( col2 AS SIGNED )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-4326
SELECT * FROM tab0 AS cor0 WHERE col0 < CAST ( col2 AS INTEGER )
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * - col2 col1 FROM tab2 AS cor0
----
-1978
-3440
-4988

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4328
SELECT ALL col0 AS col0 FROM tab1 cor0 WHERE + col1 BETWEEN CAST( NULL AS DECIMAL ) AND col2
----

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL col0 AS col0 FROM tab1 cor0 WHERE + col1 BETWEEN CAST ( NULL AS REAL ) AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT ALL col2 - - ( col1 ) DIV 64 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL col2 - - ( col1 ) / 64 FROM tab0
----
10
48
99

query I rowsort
SELECT col1 - ( col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 * 57 - - 5 FROM tab0
----
4964
5534
860

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + 94 / 90 NOT BETWEEN + 39 AND 96
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 27 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
27

query I rowsort
SELECT col1 + + 37 * col2 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT ALL 15 * 35 AS col2 FROM tab2 AS cor0
----
525
525
525

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 32 * col2 <= col0 + col0
----

query I rowsort
SELECT + 92 * col1 AS col0 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT - col2 * 12 AS col1 FROM tab0 AS cor0
----
-1188
-120
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT MAX( - col2 ) * + COUNT( - col0 / + 80 ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT MAX ( - col2 ) * + COUNT ( - col0 / + 80 ) AS col2 FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT - + 32 * - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - + 32 * - COUNT ( * ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT 0 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col1 * 33 + + col1 * - 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4343
SELECT + ( + ( - col0 ) ) DIV - 67 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4343
SELECT + ( + ( - col0 ) ) / - 67 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT DISTINCT + col1 * ( + col2 ) DIV col0 FROM tab2
----
25
48
51

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + col1 * ( + col2 ) / col0 FROM tab2
----
25
48
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col0 - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4347
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4347
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT - ( + - col1 ) DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT - ( + - col1 ) / col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4349
SELECT ALL + CAST( 88 AS SIGNED ) DIV + col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + CAST ( 88 AS INTEGER ) / + col1 AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 12 + 91 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4351
SELECT DISTINCT + 44 AS col0 FROM tab2 WHERE + col1 + + ( - CAST( NULL AS DECIMAL ) ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + 44 AS col0 FROM tab2 WHERE + col1 + + ( - CAST ( NULL AS REAL ) ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT + COUNT( * ) * - ( 59 ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-4352
SELECT + COUNT ( * ) * - ( 59 ) AS col2 FROM tab1
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - ( - - 33 ) AS col0 FROM tab1
----
-33
-33
-33

query I rowsort
SELECT + + 76 * + 43 FROM tab2 AS cor0
----
3268
3268
3268

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) <> - col1 + ( + col1 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4357
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) <> - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT ALL ( col1 ) DIV + col1 + 52 AS col1 FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL ( col1 ) / + col1 + 52 AS col1 FROM tab0
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4360
SELECT DISTINCT SUM( DISTINCT + col2 ) col0 FROM tab1 WHERE NOT + 6 NOT BETWEEN NULL AND + col1 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4360
SELECT DISTINCT SUM ( DISTINCT + col2 ) col0 FROM tab1 WHERE NOT + 6 NOT BETWEEN NULL AND + col1 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT + COUNT( * ) - + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4361
SELECT DISTINCT + COUNT ( * ) - + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-13

query II rowsort
SELECT ALL col0, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT + + 23 + + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + + 23 + + COUNT ( * ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - 6 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4364
SELECT - 6 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4365
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col2 AND - CAST( NULL AS SIGNED ) + - 83
----

skipif mysql # not compatible
query III rowsort label-4365
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col2 AND - CAST ( NULL AS INTEGER ) + - 83
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4366
SELECT - + col1 + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT - + col1 + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4367
SELECT ALL COUNT( * ) + + COUNT( * ) DIV + SUM( - CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL COUNT ( * ) + + COUNT ( * ) / + SUM ( - CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT DISTINCT - col2 + + - 70 DIV - 10 - col1 * col2 FROM tab2 cor0
----
-1189
-3113
-3937

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT - col2 + + - 70 / - 10 - col1 * col2 FROM tab2 cor0
----
-1189
-3113
-3937

query I rowsort
SELECT DISTINCT ( + - 13 ) AS col1 FROM tab1
----
-13

query I rowsort
SELECT DISTINCT + 9 * + 0 * - - 64 + - - 15 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE - - 39 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - - 39 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT - ( - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4372
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( + + 3 ) IS NULL
----

query I rowsort
SELECT - 71 * - 4 FROM tab0
----
284
284
284

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT COUNT( * ) * + 68 AS col1 FROM tab1 WHERE NOT col1 <> - - col2
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT COUNT ( * ) * + 68 AS col1 FROM tab1 WHERE NOT col1 <> - - col2
----
0

query I rowsort
SELECT DISTINCT col2 - + col1 * - - col0 - - - ( - col2 ) FROM tab2
----
-2300
-4848
-4909

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0, col2 + - + 58 + 71 )
----

query I rowsort
SELECT - + col2 + col0 + + 60 AS col0 FROM tab1 AS cor0
----
15
83
86

query I rowsort
SELECT ALL 15 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 * + 17 + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT + 74 * - + COUNT( * ) * 48 FROM tab0 cor0 WHERE - 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + 74 * - + COUNT ( * ) * 48 FROM tab0 cor0 WHERE - 27 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 5 NOT BETWEEN - col2 + - col1 AND col2
----

query I rowsort
SELECT col1 + + + 86 AS col2 FROM tab2
----
137
153
163

query I rowsort
SELECT DISTINCT + col0 - + 93 FROM tab0
----
-6
-78
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * - + 93 col1 FROM tab2
----
6417
6417
6417

query I rowsort
SELECT ALL - col0 / - col2 FROM tab0 WHERE NOT 99 NOT IN ( - col1 * + col0 ) OR 30 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4386
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4386
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ( col0 ) * ( + col1 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT + + COUNT( - - 69 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT + + COUNT ( - - 69 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - 95, + 34 * + 27 * col1 AS col0 FROM tab1 AS cor0
----
-95
12852
-95
43146
-95
4590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT ALL CAST( + 79 AS SIGNED ) * - col1 AS col1 FROM tab2 cor0
----
-4029
-5293
-6083

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL CAST ( + 79 AS INTEGER ) * - col1 AS col1 FROM tab2 cor0
----
-4029
-5293
-6083

query I rowsort
SELECT DISTINCT col2 / + 60 * - 37 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT - - col1 AS col2, - col2 AS col2 FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT - col0 * - - col2 * 0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - 11 ) IS NOT NULL
----

query I rowsort
SELECT + 24 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
24
24
24

query II rowsort
SELECT col2 * + 19 AS col2, + col1 AS col0 FROM tab0
----
1881
1
190
21
893
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4398
SELECT DISTINCT * FROM tab1 WHERE + - 51 * - col1 * - ( col1 ) + CAST( - col2 AS SIGNED ) + col0 <= col0 / + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4398
SELECT DISTINCT * FROM tab1 WHERE + - 51 * - col1 * - ( col1 ) + CAST ( - col2 AS INTEGER ) + col0 <= col0 / + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4399
SELECT DISTINCT - SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT - COUNT( * ) * 59 AS col1 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - COUNT ( * ) * 59 AS col1 FROM tab0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT - COUNT( - ( - col0 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT - COUNT ( - ( - col0 ) ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + ( + 98 ) >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT COUNT( * ) * - COUNT( + col1 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT COUNT ( * ) * - COUNT ( + col1 ) FROM tab0
----
-9

query I rowsort
SELECT - 81 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 * - col0 * - 72 ) < ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - + 68 / - ( col1 ) + + + col2 + + col2 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT - 69 DIV + 60 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4406
SELECT - 69 / + 60 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 78 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - ( + col2 ) ) * 9 col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-531
-612
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4409
SELECT ALL + - 5 DIV + COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + - 5 / + COUNT ( * ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT - - col0 * - - 15 + ( - + 51 ) AS col2 FROM tab2 AS cor0
----
1074
639
909

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4411
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <= CAST( - 78 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4411
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <= CAST ( - 78 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT + + 40 + col1 * - - col2 FROM tab0 AS cor0
----
139
250
3847

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4414
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 69 - - col1 AS col0 FROM tab2 AS cor0
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - COUNT( * ) * - - 82 + - 90 + + + COUNT( DISTINCT - 83 ) FROM tab1 AS cor0
----
-335

skipif mysql # not compatible
query I rowsort label-4416
SELECT - COUNT ( * ) * - - 82 + - 90 + + + COUNT ( DISTINCT - 83 ) FROM tab1 AS cor0
----
-335

query I rowsort
SELECT ALL - col0 + + ( - - ( - col2 ) ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + + ( - - 36 ) + - col0 * + col2 - - 51 FROM tab2 cor0
----
-2473
-4263
-971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT - col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4419
SELECT - col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 27 + - col0 FROM tab2
----
-102
-73
-91

query I rowsort
SELECT ALL - 94 + col2 + - col1 AS col1 FROM tab1
----
-12
-40
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT 86 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT 86 IS NULL
----
3

query I rowsort
SELECT col1 * col0 + - + col2 FROM tab2 WHERE NULL >= + + 37 + - col0 + col0
----

query I rowsort
SELECT DISTINCT col2 - + - col0 + ( + col2 ) FROM tab0
----
107
109
295

query III rowsort
SELECT * FROM tab1 WHERE - - 31 BETWEEN col1 / col0 - - col0 + - col2 * 9 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4426
SELECT COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT COUNT ( * ) + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + - 20 AS col2, + ( 19 ) AS col0 FROM tab2 AS cor0
----
-20
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 82 ) col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( + 51, 67 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4429
SELECT CAST( NULL AS SIGNED ) AS col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-4429
SELECT CAST ( NULL AS INTEGER ) AS col1, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL MAX( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL MAX ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + 10 * - col0 + + col2 AS col1, col2 FROM tab1 AS cor0
----
-414
96
-791
59
-842
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT DISTINCT + CAST( - ( - - 52 ) AS SIGNED ) + 66 * - col1 FROM tab1 AS cor0
----
-3154
-382
-976

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + CAST ( - ( - - 52 ) AS INTEGER ) + 66 * - col1 FROM tab1 AS cor0
----
-3154
-382
-976

query I rowsort
SELECT ALL 70 AS col2 FROM tab0 WHERE + ( + + col0 ) NOT IN ( + col0 * + col1 - + + col0, col1 + col0 )
----
70
70
70

query I rowsort
SELECT ALL - - 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - + 70 ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( ( 22 ) ) + 57
----

query I rowsort
SELECT + col2 * 26 * - 70 FROM tab2 AS cor0
----
-105560
-41860
-72800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT DISTINCT 52 * CAST( + - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4438
SELECT DISTINCT 52 * CAST ( + - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

query I rowsort
SELECT ALL - 2 * + col1 * col0 AS col2 FROM tab0 AS cor0
----
-194
-2430
-3654

query I rowsort
SELECT + - col1 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL col2 * - + 40 AS col1 FROM tab0
----
-1880
-3960
-400

query I rowsort
SELECT ALL - 84 AS col1 FROM tab1 WHERE NOT + 18 < col2
----

query I rowsort
SELECT DISTINCT ( - 6 ) FROM tab0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 28 + + 23 NOT BETWEEN - col1 * - col2 AND ( 73 )
----

query I rowsort
SELECT ALL ( + 51 ) AS col0 FROM tab2
----
51
51
51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 * + ( + + 27 ) < NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( - 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL MAX( + col2 ) col2 FROM tab0 WHERE NOT + - col0 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4448
SELECT ALL MAX ( + col2 ) col2 FROM tab0 WHERE NOT + - col0 + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 57 + + col1 FROM tab2
----
-6
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - - SUM( - 97 ) * - 37 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
32301

skipif mysql # not compatible
query I rowsort label-4450
SELECT - - SUM ( - 97 ) * - 37 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
32301

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT ALL - 77 DIV col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - 77 / col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + + col0 * - 8 * - + col0 FROM tab2 AS cor0
----
16928
32768
45000

query I rowsort
SELECT 50 * col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 24 * - col0 * 9 + 65 AS col1 FROM tab2 AS cor0
----
-13759
-16135
-9871

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT ALL - 99 - - - SUM( col2 ) + + 75 AS col1, 30 FROM tab0 AS cor0
----
-180
30

skipif mysql # not compatible
query II rowsort label-4455
SELECT ALL - 99 - - - SUM ( col2 ) + + 75 AS col1, 30 FROM tab0 AS cor0
----
-180
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4456
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 39 col2, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4456
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 39 col2, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL col2 + - - 42 FROM tab0
----
141
52
89

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + col0 ) - + 83 FROM tab0
----
-170
-180
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col2 FROM tab0
----
-73
-73
-73

query I rowsort
SELECT 75 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1 + - - 37 AS col1, col0 * 58 AS col2 FROM tab1
----
42
4930
51
2958
84
5278

query I rowsort
SELECT 46 + col2 AS col2 FROM tab0 AS cor0
----
145
56
93

query I rowsort
SELECT DISTINCT 94 * - - col0 + + col1 AS col1 FROM tab2 AS cor0
----
4375
6093
7117

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT MIN( + 27 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4466
SELECT MIN ( + 27 ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + COUNT( * ) + + - 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4467
SELECT + COUNT ( * ) + + - 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query II rowsort
SELECT DISTINCT - - ( col2 ) * col1 AS col1, col1 * + + 18 FROM tab0 WHERE col0 IS NOT NULL
----
210
378
3807
1458
99
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL - SUM( DISTINCT 46 ) AS col2 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - SUM ( DISTINCT 46 ) AS col2 FROM tab1 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 10 IS NOT NULL
----

query II rowsort
SELECT col1, 72 * + ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
-3312
67
-5400
77
-4608

query II rowsort
SELECT col1 AS col2, 91 AS col0 FROM tab2 AS cor0
----
51
91
67
91
77
91

query I rowsort
SELECT DISTINCT - col0 * col0 * - - col2 AS col1 FROM tab2
----
-163840
-326250
-48668

query II rowsort
SELECT DISTINCT - ( - col1 ), + 22 + col1 AS col1 FROM tab2
----
51
73
67
89
77
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT CAST( 95 AS SIGNED ) AS col2 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-4476
SELECT CAST ( 95 AS INTEGER ) AS col2 FROM tab2
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - MAX( - col2 ) col1 FROM tab2 WHERE NOT + 37 NOT BETWEEN 6 AND - - col1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4477
SELECT - MAX ( - col2 ) col1 FROM tab2 WHERE NOT + 37 NOT BETWEEN 6 AND - - col1
----
23

query I rowsort
SELECT 31 * - 18 FROM tab2
----
-558
-558
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT MAX( col0 ) DIV + SUM( - + ( - 84 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT MAX ( col0 ) / + SUM ( - + ( - 84 ) ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT col0 + - col1 - + + col1 DIV + - 24 AS col2 FROM tab0
----
-63
66
96

skipif mysql # not compatible
query I rowsort label-4480
SELECT col0 + - col1 - + + col1 / + - 24 AS col2 FROM tab0
----
-63
66
96

query I rowsort
SELECT 38 * col0 * - + col2 + col2 * 2 FROM tab2
----
-165184
-40158
-97200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 13 * - col1 col2 FROM tab2
----
33813
58357
77077

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT DISTINCT + - 90 DIV + + col1 AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + - 90 / + + col1 AS col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT - 41 - col0 * + 78 * + col0 AS col1 FROM tab0 cor0 WHERE - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + 49 * + col0 + - 31 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 49 * + col0 + - 31 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT + 16 DIV + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + 16 / + col0 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT COUNT( DISTINCT - - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4487
SELECT COUNT ( DISTINCT - - col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + col1 * 47 AS col2 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT - col2 - - 99 FROM tab2
----
41
59
76

query I rowsort
SELECT DISTINCT col1 + - col2 * - + col0 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT - col1 * - CAST( NULL AS SIGNED ) * - col2 * ( - col2 ) + + CAST( ( - CAST( col1 AS SIGNED ) ) AS SIGNED ) 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-4491
SELECT - col1 * - CAST ( NULL AS INTEGER ) * - col2 * ( - col2 ) + + CAST ( ( - CAST ( col1 AS INTEGER ) ) AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + - MIN( DISTINCT + col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + - MIN ( DISTINCT + col0 ) FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL + MIN( 73 ) + + ( + 67 ) FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + MIN ( 73 ) + + ( + 67 ) FROM tab1 AS cor0
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT + - col1 DIV ( - - col1 ) + - - col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-4494
SELECT + - col1 / ( - - col1 ) + - - col1 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT + ( + + 99 ) DIV + col2 + + col2 FROM tab0 AS cor0
----
100
19
49

skipif mysql # not compatible
query I rowsort label-4495
SELECT + ( + + 99 ) / + col2 + + col2 FROM tab0 AS cor0
----
100
19
49

query I rowsort
SELECT DISTINCT + col0 - - col0 AS col0 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT - ( + 80 ) * - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
240

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - ( + 80 ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT ALL 13 DIV + - col1 - 71 FROM tab0
----
-71
-71
-84

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL 13 / + - col1 - 71 FROM tab0
----
-71
-71
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT + col1 + - + CAST( - col2 AS SIGNED ) FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-4499
SELECT + col1 + - + CAST ( - col2 AS INTEGER ) FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 21 * - col1 - col1 FROM tab0
----
-1782
-22
-462

query II rowsort
SELECT col0 AS col2, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL CAST( - col1 AS SIGNED ) + + + col0 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL CAST ( - col1 AS INTEGER ) + + + col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT - 54 AS col0 FROM tab2 WHERE 26 IS NOT NULL
----
-54
-54
-54

query I rowsort
SELECT - + col0 * - + 36 * + + 19 FROM tab0 cor0
----
10260
59508
66348

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 - - col0 + - col2 / + 20 * - col0 NOT BETWEEN + col0 + - + col0 - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT - + 63 * - col1 + + - ( - CAST( - + col2 AS SIGNED ) ) - + - ( + - col2 ) FROM tab0 AS cor0
----
-135
1303
5009

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - + 63 * - col1 + + - ( - CAST ( - + col2 AS INTEGER ) ) - + - ( + - col2 ) FROM tab0 AS cor0
----
-135
1303
5009

query I rowsort
SELECT ALL - + 27 * - ( 15 ) + col1 AS col1 FROM tab2 AS cor0
----
456
472
482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT 39, + COUNT( * ) col1 FROM tab2
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4509
SELECT 39, + COUNT ( * ) col1 FROM tab2
----
39
3

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT + - 16 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col0 * 89 AS col2, - 60 - + ( - col2 ) col1 FROM tab2
----
-208794
-37
-438592
-20
-447225
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT ALL - COUNT( * ) col0, COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
-3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4513
SELECT ALL - COUNT ( * ) col0, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
-3
-9

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - ( - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT - 79 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT - 79 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT - ( MIN( + + 96 ) ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT - ( MIN ( + + 96 ) ) AS col1 FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT col2 + 28 + + 93 * col1 * col0 + col1 FROM tab0 AS cor0
----
113151
169970
9149

onlyif mysql # DIV for integer division: 
query II rowsort label-4518
SELECT DISTINCT - - col1 * - col2 + - 97 DIV + col2, col1 + + + col2 DIV col2 AS col1 FROM tab2 cor0
----
-1177
52
-3082
78
-3887
68

skipif mysql # not compatible
query II rowsort label-4518
SELECT DISTINCT - - col1 * - col2 + - 97 / + col2, col1 + + + col2 / col2 AS col1 FROM tab2 cor0
----
-1177
52
-3082
78
-3887
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4519
SELECT COUNT( * ) * + MIN( ALL - col2 ) * + - COUNT( - col0 ) / - COUNT( * ) + - - COUNT( * ) + - 80 * + CAST( NULL AS SIGNED ), COUNT( * ) * + SUM( ALL - col0 ) AS col1 FROM tab1
----
NULL
-681

skipif mysql # not compatible
query II rowsort label-4519
SELECT COUNT ( * ) * + MIN ( ALL - col2 ) * + - COUNT ( - col0 ) / - COUNT ( * ) + - - COUNT ( * ) + - 80 * + CAST ( NULL AS INTEGER ), COUNT ( * ) * + SUM ( ALL - col0 ) AS col1 FROM tab1
----
NULL
-681

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4520
SELECT DISTINCT * FROM tab0 WHERE CAST( col1 AS SIGNED ) NOT BETWEEN col0 AND + - ( col0 ) * - + col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-4520
SELECT DISTINCT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) NOT BETWEEN col0 AND + - ( col0 ) * - + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT col2 * CAST( NULL AS SIGNED ) + + col1 * col1 AS col1 FROM tab0 WHERE - 60 + - 7 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT col2 * CAST ( NULL AS INTEGER ) + + col1 * col1 AS col1 FROM tab0 WHERE - 60 + - 7 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4522
SELECT col0 DIV 78 * col1 * + col1 AS col0, col1 FROM tab0 AS cor0
----
0
81
1
1
441
21

skipif mysql # not compatible
query II rowsort label-4522
SELECT col0 / 78 * col1 * + col1 AS col0, col1 FROM tab0 AS cor0
----
0
81
1
1
441
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT - SUM( + 56 ) AS col2, - 62 + + + ( 97 ) FROM tab0 AS cor0
----
-168
35

skipif mysql # not compatible
query II rowsort label-4523
SELECT - SUM ( + 56 ) AS col2, - 62 + + + ( 97 ) FROM tab0 AS cor0
----
-168
35

query I rowsort
SELECT ALL + 64 * + 57 * + col0 * + + col0 FROM tab2 AS cor0
----
14942208
20520000
7719168

query I rowsort
SELECT ALL - col0 + + 18 AS col0 FROM tab0 cor0
----
-69
-79
3

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( - 10 IS NOT NULL )
----
10
47
99

query I rowsort
SELECT DISTINCT ( + + 37 ) * + 63 + - 42 AS col1 FROM tab0 AS cor0
----
2289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT 13 * + col2 - + + CAST( - ( - 96 ) AS SIGNED ) * + - col2 FROM tab2
----
2507
4360
6322

skipif mysql # not compatible
query I rowsort label-4528
SELECT 13 * + col2 - + + CAST ( - ( - 96 ) AS INTEGER ) * + - col2 FROM tab2
----
2507
4360
6322

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL - COUNT( - 7 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - COUNT ( - 7 ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT ALL - col1 DIV + - 7 AS col0 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - col1 / + - 7 AS col0 FROM tab2
----
11
7
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT COUNT( * ) * + 17 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4531
SELECT COUNT ( * ) * + 17 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + SUM( + + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4532
SELECT + SUM ( + + col1 ) AS col0 FROM tab0
----
103

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col2 + - 64 * + col1 / - 41 >= col2 OR - col0 + + col2 < NULL
----

query I rowsort
SELECT - 84 * col2 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT - - 37 * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
181152
185555
228956

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + col1 / - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 39 * + col2 FROM tab0 AS cor0
----
1833
3861
390

onlyif mysql # DIV for integer division: 
query II rowsort label-4538
SELECT + col0 AS col2, ( - col2 ) + - - col1 DIV 35 DIV ( col1 ) AS col0 FROM tab2
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
query II rowsort label-4538
SELECT + col0 AS col2, ( - col2 ) + - - col1 / 35 / ( col1 ) AS col0 FROM tab2
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 * + ( + - col1 ) >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 79 + + col2 FROM tab1 AS cor0
----
138
147
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT DISTINCT + CAST( - - col0 AS SIGNED ) * 80 col0 FROM tab1 AS cor0 WHERE col0 * + col2 <> + col0
----
4080
6800
7280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4541
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) * 80 col0 FROM tab1 AS cor0 WHERE col0 * + col2 <> + col0
----
4080
6800
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - MIN( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT - MIN ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 5 + - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab2 WHERE - - col2 * - 24 IS NULL
----

query I rowsort
SELECT - col0 * + + col1 + + - ( - 74 ) FROM tab2
----
-2272
-4854
-4951

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT - col2 * + 69 * 55 IS NOT NULL AND ( + - col2 ) + + 63 NOT IN ( + col2, + ( col1 ) + - ( - - 41 ), - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4547
SELECT ALL + 56 + - + COUNT( * ) AS col2, COUNT( * ) * CAST( NULL AS SIGNED ) / + + 20 FROM tab1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4547
SELECT ALL + 56 + - + COUNT ( * ) AS col2, COUNT ( * ) * CAST ( NULL AS INTEGER ) / + + 20 FROM tab1
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT + MAX( DISTINCT - ( - - col0 ) ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + MAX ( DISTINCT - ( - - col0 ) ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
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-4549
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT + - ( + 30 ) FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - col1 * - 39 AS col0 FROM tab1
----
1833
195
546

query III rowsort
SELECT * FROM tab1 WHERE - col0 - - col0 + + - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT - col0 + CAST( NULL AS SIGNED ) + + CAST( 79 AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT - col0 + CAST ( NULL AS INTEGER ) + + CAST ( 79 AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL MAX( DISTINCT 14 ) AS col2 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL MAX ( DISTINCT 14 ) AS col2 FROM tab1 AS cor0
----
14

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 * + - 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT ALL - - 68 * + COUNT( * ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL - - 68 * + COUNT ( * ) FROM tab2 AS cor0
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col1 * 52 col2 FROM tab1 AS cor0
----
22100
222404
37128

query I rowsort
SELECT + + col2 * + col1 * - - col0 * 58 + + 77 AS col2 FROM tab0 AS cor0
----
1059737
3312167
557051

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT 4 DIV + + 79 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT 4 / + + 79 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - + ( - col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE + col0 BETWEEN NULL AND - 40
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT DISTINCT + SUM( ALL - col1 ) DIV + + 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + SUM ( ALL - col1 ) / + + 72 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL + + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + + col2 / + col1 AS col2 FROM tab1 AS cor0
----
1
11
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + + 40 * 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + COUNT( - 71 ) col2 FROM tab1 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-4566
SELECT + COUNT ( - 71 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ( + - COUNT( * ) ) * + 69 FROM tab1 AS cor0 WHERE NOT 11 + - 82 > - col1 * col1
----
-69

skipif mysql # not compatible
query I rowsort label-4567
SELECT ( + - COUNT ( * ) ) * + 69 FROM tab1 AS cor0 WHERE NOT 11 + - 82 > - col1 * col1
----
-69

query I rowsort
SELECT col1 * - + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL + 37 + + - COUNT( * ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + 37 + + - COUNT ( * ) FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT + col0 + - + col0 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT CAST( + - 80 AS SIGNED ) * + - col2 FROM tab0 AS cor0
----
3760
7920
800

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT CAST ( + - 80 AS INTEGER ) * + - col2 FROM tab0 AS cor0
----
3760
7920
800

query I rowsort
SELECT ALL col0 * - col0 + + + col2 AS col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - COUNT( * ) + - COUNT( * ) + + 84 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4573
SELECT - COUNT ( * ) + - COUNT ( * ) + + 84 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL + 38 + - 49 AS col0 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - ( + + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4575
SELECT - ( + + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 49 + - + col2 FROM tab1 AS cor0
----
-10
-19
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT ALL - col2 + + col2 + + 92 DIV 83 + + + col2 AS col1 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - col2 + + col2 + + 92 / 83 + + + col2 AS col1 FROM tab2
----
24
41
59

query I rowsort
SELECT DISTINCT 99 * 91 * col2 FROM tab0
----
423423
891891
90090

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT 66 * - - MAX( DISTINCT col1 ) col1 FROM tab0
----
5346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4579
SELECT 66 * - - MAX ( DISTINCT col1 ) col1 FROM tab0
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL COUNT( col1 ) AS col2 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL COUNT ( col1 ) AS col2 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 21 * 55 FROM tab1
----
-1155
-1155
-1155

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4582
SELECT ALL - 16 DIV CAST( + 18 AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - 16 / CAST ( + 18 AS INTEGER ) AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT 89, - col1 AS col2 FROM tab0
----
89
-1
89
-21
89
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT COUNT( * ) * 87 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-4584
SELECT COUNT ( * ) * 87 FROM tab0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4585
SELECT * FROM tab2 WHERE - 54 IN ( + - col1 + - ( - - ( - col2 ) ), CAST( + col2 AS SIGNED ) * - CAST( col0 AS SIGNED ) + + - col0 - - 93 / + col2 + + col0 / - col0 - - col0 - 88 + + - 45 )
----

skipif mysql # not compatible
query III rowsort label-4585
SELECT * FROM tab2 WHERE - 54 IN ( + - col1 + - ( - - ( - col2 ) ), CAST ( + col2 AS INTEGER ) * - CAST ( col0 AS INTEGER ) + + - col0 - - 93 / + col2 + + col0 / - col0 - - col0 - 88 + + - 45 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT 85, MAX( DISTINCT + + col2 ) AS col0 FROM tab2
----
85
58

skipif mysql # not compatible
query II rowsort label-4586
SELECT 85, MAX ( DISTINCT + + col2 ) AS col0 FROM tab2
----
85
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT + ( - ( - col2 ) ) - + + CAST( + col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4587
SELECT + ( - ( - col2 ) ) - + + CAST ( + col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 28 + + col0 AS col0 FROM tab1 AS cor0
----
113
119
79

query I rowsort
SELECT 53 + col2 - + - col1 FROM tab2 AS cor0
----
127
170
178

query I rowsort
SELECT - col1 + + + 36 + + + col0 * - col0 * - ( - + col0 ) AS col1 FROM tab1 cor0
----
-132629
-614094
-753582

query I rowsort
SELECT + 74 * 82 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT + ( + COUNT( * ) ) + + ( - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT + ( + COUNT ( * ) ) + + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 19 * col2 * + - col2 + col0 AS col0 FROM tab1 AS cor0
----
-175053
-66054
-87765

query I rowsort
SELECT DISTINCT - 67 + + col2 AS col2 FROM tab0
----
-20
-57
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - COUNT( * ) col0 FROM tab2 WHERE col2 - - 44 BETWEEN ( NULL ) AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4595
SELECT - COUNT ( * ) col0 FROM tab2 WHERE col2 - - 44 BETWEEN ( NULL ) AND + col0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN ( - col1 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL - MIN( DISTINCT - 35 ) col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4597
SELECT ALL - MIN ( DISTINCT - 35 ) col2 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT SUM( ALL - 79 ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4598
SELECT SUM ( ALL - 79 ) FROM tab0 AS cor0
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4599
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4599
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
3

query I rowsort
SELECT - - 30 * col2 - + 75 FROM tab1 AS cor0
----
1695
1965
2805

query II rowsort
SELECT DISTINCT - + ( - col0 ) AS col1, + 29 AS col1 FROM tab0 AS cor0
----
15
29
87
29
97
29

query I rowsort
SELECT + 69 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
69
69
69

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col1 * - col0 * - 28 AS col1 FROM tab2 AS cor0 WHERE - col0 * + col2 = - col2
----

query I rowsort
SELECT ( col2 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT COUNT( + 70 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT COUNT ( + 70 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + COUNT( * ) * - + 16 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4606
SELECT + COUNT ( * ) * - + 16 FROM tab2
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT MAX( - col1 ) * - + CAST( - + 23 AS SIGNED ) FROM tab2
----
-1173

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT MAX ( - col1 ) * - + CAST ( - + 23 AS INTEGER ) FROM tab2
----
-1173

query I rowsort
SELECT + + 4 * - col0 - - - 16 + col2 AS col1 FROM tab1 WHERE NOT - + col1 BETWEEN - 72 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT ALL - col1 * + ( - - CAST( - col1 AS SIGNED ) ) col1 FROM tab1 cor0
----
196
2209
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4610
SELECT ALL - col1 * + ( - - CAST ( - col1 AS INTEGER ) ) col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT + - 64 FROM tab1 AS cor0 WHERE NOT + 4 / + + col1 NOT BETWEEN + 25 * - + col2 AND col1 * + col1
----
-64
-64
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT 71 DIV - 94 * col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT 71 / - 94 * col2 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 78 * + col1, + col0 col0 FROM tab2
----
3978
46
5226
75
6006
64

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT MIN( ALL + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4615
SELECT MIN ( ALL + + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4616
SELECT - - 92 + + col1 AS col2, + 22 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
106
NULL
139
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4616
SELECT - - 92 + + col1 AS col2, + 22 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
106
NULL
139
NULL
97
NULL

query I rowsort
SELECT ALL 62 + - - 81 AS col2 FROM tab2
----
143
143
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL + MAX( + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + MAX ( + col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT ALL - col1 * + - 10 FROM tab0
----
10
210
810

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT ALL 48 DIV - col1 FROM tab1
----
-1
-3
-9

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 48 / - col1 FROM tab1
----
-1
-3
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT 5 + - col0 FROM tab2
----
-41
-59
-70

query II rowsort
SELECT ALL + col0, + col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT BETWEEN + col0 + - col0 AND col2 + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT - MAX( 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - MAX ( 47 ) FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT COUNT( * ) - + CAST( + - CAST( + 78 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4626
SELECT COUNT ( * ) - + CAST ( + - CAST ( + 78 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT DISTINCT + col0 DIV + - col1 AS col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT + col0 / + - col1 AS col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL MIN( DISTINCT - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL MIN ( DISTINCT - col2 ) FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 + - col2 col1 FROM tab2 cor0 WHERE NOT - col2 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - COUNT( DISTINCT - col2 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4632
SELECT - COUNT ( DISTINCT - col2 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT + + COUNT( * ) DIV - 6 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT + + COUNT ( * ) / - 6 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL COUNT( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT 35 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4635
SELECT 35 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT MIN( col1 ) * + 49 AS col0 FROM tab1
----
245

skipif mysql # not compatible
query I rowsort label-4637
SELECT MIN ( col1 ) * + 49 AS col0 FROM tab1
----
245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT + + SUM( DISTINCT col0 ) / - 47 + - - COUNT( * ) col0 FROM tab0 WHERE - - col0 + + CAST( + col2 AS SIGNED ) = - + 56 + ( + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT DISTINCT + + SUM ( DISTINCT col0 ) / - 47 + - - COUNT ( * ) col0 FROM tab0 WHERE - - col0 + + CAST ( + col2 AS INTEGER ) = - + 56 + ( + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT - + MAX( - + col2 ) col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4639
SELECT - + MAX ( - + col2 ) col0 FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN + 99 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col2 col1 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col1 col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL + 24 DIV - + col1 - + - col0 * - col0 + + + col1 AS col2 FROM tab2 AS cor0
----
-2065
-4019
-5558

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 24 / - + col1 - + - col0 * - col0 + + + col1 AS col2 FROM tab2 AS cor0
----
-2065
-4019
-5558

query I rowsort
SELECT + 21 + - col1 + - + col2 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + 14 + - + col2 * + col0 + col1 * col0 * - col0 + - col2 FROM tab1 AS cor0
----
-395449
-41185
-41392

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 91 < 22 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 91 < 22 + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT - ( - COUNT( * ) ) + - COUNT( DISTINCT + 77 ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - ( - COUNT ( * ) ) + - COUNT ( DISTINCT + 77 ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL - 10 + - + COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - 10 + - + COUNT ( * ) FROM tab0 AS cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + + col0 * - - col0 + - + ( - col1 ) + - 58 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 27 + + 6 AS col2 FROM tab2
----
-21

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 94 + + col1 FROM tab1
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT - COUNT( - col2 ) AS col0 FROM tab1 WHERE + col1 / + - col2 + - col0 < + ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT - COUNT ( - col2 ) AS col0 FROM tab1 WHERE + col1 / + - col2 + - col0 < + ( col1 )
----
-3

query II rowsort
SELECT DISTINCT col1 - - + ( + col2 ) - + 12, + 54 - col1 + - 68 * + - col0 * + + 14 + + 76 AS col2 FROM tab1
----
103
86715
52
81045
98
48668

query I rowsort
SELECT 33 - + - col0 AS col2 FROM tab0
----
120
130
48

query II rowsort
SELECT col2 * - 1 * + + col0 - - col0, col0 AS col2 FROM tab0
----
-690
15
-783
87
-9506
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL MIN( ALL + + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL MIN ( ALL + + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + 43 + col1 DIV - 47 col1 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4658
SELECT + 43 + col1 / - 47 col1 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab0 AS cor0 WHERE 14 IS NOT NULL
----
-77

query I rowsort
SELECT ALL - - 24 AS col0 FROM tab0 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + ( - 71 ) + + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT ALL MIN( - col0 ) + SUM( - - 85 ) + 56, 30 col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN col1 AND NULL
----
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4664
SELECT ALL MIN ( - col0 ) + SUM ( - - 85 ) + 56, 30 col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN col1 AND NULL
----
NULL
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT CAST( COUNT( * ) AS SIGNED ) * SUM( DISTINCT - col2 ) + - COUNT( * ) AS col0 FROM tab2
----
-366

skipif mysql # not compatible
query I rowsort label-4665
SELECT CAST ( COUNT ( * ) AS INTEGER ) * SUM ( DISTINCT - col2 ) + - COUNT ( * ) AS col0 FROM tab2
----
-366

query I rowsort
SELECT ALL + ( 60 ) FROM tab0
----
60
60
60

query II rowsort
SELECT DISTINCT 57, col2 AS col1 FROM tab2
----
57
23
57
40
57
58

query II rowsort
SELECT - 68 AS col1, col0 FROM tab2
----
-68
46
-68
64
-68
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT + col1 DIV - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT + col1 / - - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 85 col2, - 62 FROM tab1
----
-85
-62
-85
-62
-85
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 47 col0, - col0 FROM tab1
----
47
-51
47
-85
47
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + col1 col2 FROM tab1 AS cor0
----
101
59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT + 45 + - COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT + 45 + - COUNT ( * ) FROM tab2 AS cor0
----
42

query II rowsort
SELECT col2 * col1 AS col2, - ( - + 85 ) * + col0 FROM tab2
----
1173
3910
3080
5440
3886
6375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4676
SELECT ALL col2 + + 48 col2, + CAST( + - 5 AS SIGNED ) AS col2 FROM tab1
----
107
-5
116
-5
144
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4676
SELECT ALL col2 + + 48 col2, + CAST ( + - 5 AS INTEGER ) AS col2 FROM tab1
----
107
-5
116
-5
144
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4677
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL - MIN( + + 73 ) + - 41 * + 49 + - 86 FROM tab0 cor0
----
-2168

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - MIN ( + + 73 ) + - 41 * + 49 + - 86 FROM tab0 cor0
----
-2168

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4681
SELECT DISTINCT + col2 / - - col1 / + col1 - + 30 + - - col1 * ( col2 ) * col1 + + CAST( 85 AS DECIMAL ) / - - col2 FROM tab0 AS cor0 WHERE NOT + 59 NOT BETWEEN + + col2 + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + col2 / - - col1 / + col1 - + 30 + - - col1 * ( col2 ) * col1 + + CAST ( 85 AS REAL ) / - - col2 FROM tab0 AS cor0 WHERE NOT + 59 NOT BETWEEN + + col2 + col0 AND NULL
----

query I rowsort
SELECT ( 26 ) + + + col1 AS col2 FROM tab2 AS cor0
----
103
77
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT COUNT( * ) * - MAX( DISTINCT - col1 ) + 25 + + 4 DIV - COUNT( * ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4683
SELECT COUNT ( * ) * - MAX ( DISTINCT - col1 ) + 25 + + 4 / - COUNT ( * ) FROM tab2 AS cor0
----
177

query I rowsort
SELECT DISTINCT - col0 - - + col2 AS col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 12 * + + 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT 98 * CAST( NULL AS SIGNED ) / + - ( 54 ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT 98 * CAST ( NULL AS INTEGER ) / + - ( 54 ) + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + 61 ) FROM tab2
----
61
61
61

query II rowsort
SELECT + 14, 58 + 57 AS col2 FROM tab0
----
14
115
14
115
14
115

query I rowsort
SELECT DISTINCT - col1 - 76 AS col1 FROM tab0
----
-157
-77
-97

query I rowsort
SELECT ALL 31 * - + col0 AS col2 FROM tab1 AS cor0
----
-1581
-2635
-2821

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT DISTINCT + + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT + + col1 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT + SUM( ALL + - 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4692
SELECT + SUM ( ALL + - 8 ) FROM tab2 AS cor0
----
-24

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + - 42 IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL - + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + MAX( DISTINCT + - 5 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4695
SELECT + MAX ( DISTINCT + - 5 ) FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4696
SELECT DISTINCT CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT CAST ( CAST ( NULL AS REAL ) AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 * - + col2 AS col1 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query II rowsort label-4698
SELECT + col2 * + col1 AS col1, + 57 DIV + 25 AS col2 FROM tab0 AS cor0
----
210
2
3807
2
99
2

skipif mysql # not compatible
query II rowsort label-4698
SELECT + col2 * + col1 AS col1, + 57 / + 25 AS col2 FROM tab0 AS cor0
----
210
2
3807
2
99
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4699
SELECT ALL + - 6 DIV + - CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + - 6 / + - CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col2 ) * - + 34 FROM tab2 AS cor0
----
-1360
-1972
-782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( col0 ) >= - + 28 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 19 + - - col2 FROM tab2 AS cor0
----
21
39
4

query I rowsort
SELECT + 16 + + col1 AS col1 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE 7 * + 6 * - + col0 * col0 * + - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col0 FROM tab2
----
77
77
77

query I rowsort
SELECT - col1 * + 95 FROM tab1 cor0
----
-1330
-4465
-475

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL
----

query II rowsort
SELECT ALL - - col0 AS col0, + 98 AS col2 FROM tab0 AS cor0
----
15
98
87
98
97
98

query I rowsort
SELECT ALL - ( - col2 ) * + 23 + ( + - col0 ) FROM tab0 AS cor0
----
1066
143
2180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 48 col0 FROM tab0 AS cor0
----
-51
1
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 - + - ( col1 ) col2 FROM tab1 AS cor0
----
44
53
86

query I rowsort
SELECT DISTINCT col0 - ( col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL - COUNT( * ) - - - 68 col2 FROM tab0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4715
SELECT ALL - COUNT ( * ) - - - 68 col2 FROM tab0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab2 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT 90 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + ( - + ( + 6 ) ) + col1 FROM tab0
----
-5
15
75

query I rowsort
SELECT ( + col0 ) + + col0 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 66 BETWEEN - 81 * + - 68 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4721
SELECT ALL - - COUNT( * ) * + COUNT( * ), - 35 AS col2 FROM tab1 AS cor0
----
9
-35

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL - - COUNT ( * ) * + COUNT ( * ), - 35 AS col2 FROM tab1 AS cor0
----
9
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT - 70 + MAX( + - 99 ) + - + 9 + - + COUNT( * ) * MIN( ALL - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 70 + MAX ( + - 99 ) + - + 9 + - + COUNT ( * ) * MIN ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT ALL col2 * - + 16 AS col2, 60 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> col0 * + + ( col2 )
----

query I rowsort
SELECT - 57 * + col2 AS col1 FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT + MIN( ALL 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + MIN ( ALL 35 ) FROM tab0
----
35

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE 90 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT ALL - col2 + - + col0 + + - col2 DIV + col1 FROM tab0 AS cor0
----
-295
-62
-97

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - col2 + - + col0 + + - col2 / + col1 FROM tab0 AS cor0
----
-295
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT CAST( - 3 AS SIGNED ) - - ( 67 ) col2 FROM tab2
----
64
64
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4731
SELECT CAST ( - 3 AS INTEGER ) - - ( 67 ) col2 FROM tab2
----
64
64
64

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL < col2
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE 69 * - - 42 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - col1 + - + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * 21 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + 29 AS col0 FROM tab2 AS cor0
----
106
80
96

query I rowsort
SELECT ALL - col1 * + - col0 + + col0 * + + col0 FROM tab0 AS cor0
----
1440
9396
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL 8 - + COUNT( * ) col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT ALL 8 - + COUNT ( * ) col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
94

query II rowsort
SELECT - 19 AS col1, + 25 FROM tab0
----
-19
25
-19
25
-19
25

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col0 - + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT ALL + ( ( + - CAST( NULL AS SIGNED ) ) ) * - 15 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + ( ( + - CAST ( NULL AS INTEGER ) ) ) * - 15 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4743
SELECT * FROM tab2 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4743
SELECT * FROM tab2 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 * ( - 44 ) FROM tab2
----
-2244
-2948
-3388

query II rowsort
SELECT 74, + col1 AS col2 FROM tab1 AS cor0
----
74
14
74
47
74
5

query II rowsort
SELECT DISTINCT + col0, + col1 - + col2 FROM tab0 AS cor0
----
15
34
87
11
97
-98

query I rowsort
SELECT DISTINCT col1 * + + 89 AS col1 FROM tab1 AS cor0
----
1246
4183
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab0 AS cor0 WHERE NOT + 41 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 0 NOT BETWEEN NULL AND 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2 col2, col0 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab2
----
48
48
48

query I rowsort
SELECT ALL + col1 * + col0 * + col0 * + - col0 / 48 FROM tab2 WHERE NOT - - col2 * - col2 * 31 < - col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL + + 47 * + - 68 * - COUNT( * ) col0 FROM tab2 cor0
----
9588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4754
SELECT ALL + + 47 * + - 68 * - COUNT ( * ) col0 FROM tab2 cor0
----
9588

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 50 + + COUNT( * ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4755
SELECT 50 + + COUNT ( * ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT col1 * - 69 + + - col0 + + + col0 FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4757
SELECT - CAST( NULL AS DECIMAL ) * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT - CAST ( NULL AS REAL ) * + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 * 81 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 * 81 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 14 AS col0 FROM tab2 AS cor0
----
37
54
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + col1 <> NULL
----

query I rowsort
SELECT ALL + col1 + - col0 * - + 87 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL CAST( + 38 AS SIGNED ) FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL CAST ( + 38 AS INTEGER ) FROM tab1
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4764
SELECT - + col2 AS col1, CAST( + + 26 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

skipif mysql # not compatible
query II rowsort label-4764
SELECT - + col2 AS col1, CAST ( + + 26 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 + - + 8 AS col1 FROM tab2 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT + 17 col1 FROM tab1 WHERE NOT ( + ( CAST( + col2 AS SIGNED ) ) * 93 ) NOT BETWEEN + col0 AND - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT + 17 col1 FROM tab1 WHERE NOT ( + ( CAST ( + col2 AS INTEGER ) ) * 93 ) NOT BETWEEN + col0 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT ALL - col1 DIV 35 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - col1 / 35 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT col0 - CAST( - 47 AS SIGNED ) * + col2 FROM tab1
----
2858
3287
4563

skipif mysql # not compatible
query I rowsort label-4769
SELECT col0 - CAST ( - 47 AS INTEGER ) * + col2 FROM tab1
----
2858
3287
4563

query III rowsort
SELECT ALL * FROM tab2 WHERE 84 * - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL MAX( DISTINCT col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL MAX ( DISTINCT col1 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT 35 * - COUNT( * ) col1 FROM tab0
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4772
SELECT 35 * - COUNT ( * ) col1 FROM tab0
----
-105

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 67 + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT ALL col1 * + col0 + col0 DIV + 18 FROM tab1
----
4282
429
716

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL col1 * + col0 + col0 / + 18 FROM tab1
----
4282
429
716

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4775
SELECT 41 + + CAST( NULL AS DECIMAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT 41 + + CAST ( NULL AS REAL ) * + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 40 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT DISTINCT MIN( DISTINCT - 69 ) DIV COUNT( * ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT MIN ( DISTINCT - 69 ) / COUNT ( * ) FROM tab1
----
-23

query I rowsort
SELECT - col2 + + ( 43 ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-15
20
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT + 77 DIV - COUNT( * ) AS col2 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + 77 / - COUNT ( * ) AS col2 FROM tab0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT - 46 * MAX( DISTINCT col2 * CAST( - 52 * + col0 AS SIGNED ) ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 46 * MAX ( DISTINCT col2 * CAST ( - 52 * + col0 AS INTEGER ) ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab1 WHERE NOT col2 = NULL
----

query I rowsort
SELECT DISTINCT + 25 + - 76 AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( col2 - col0 * 89 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4783
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( col2 - col0 * 89 ) IS NULL
----
-3

query I rowsort
SELECT + ( 80 ) FROM tab0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - SUM( ALL 55 ) AS col2 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-4785
SELECT - SUM ( ALL 55 ) AS col2 FROM tab2
----
-165

query I rowsort
SELECT ALL col0 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 37 + + 99 * 0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - 25 / col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 / + 58 AND ( NULL )
----

query I rowsort
SELECT ( - col0 ) - + col2 AS col0 FROM tab0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 WHERE ( 67 * col1 + + 53 ) BETWEEN + 16 AND ( + col1 / col0 )
----

query I rowsort
SELECT 63 * ( - 2 ) AS col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT 50 <> 15
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT 50 <> 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL MAX( + 94 ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL MAX ( + 94 ) FROM tab1 AS cor0
----
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT - SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - col1 * + 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + - MAX( DISTINCT - 66 ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4798
SELECT + - MAX ( DISTINCT - 66 ) AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4799
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4799
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 55 BETWEEN - col1 - col1 * 8 AND col2
----
75
67
58

query I rowsort
SELECT ALL - - col1 + 25 AS col0 FROM tab1 AS cor0
----
30
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT + MAX( ( + col0 ) ) + 75 AS col1 FROM tab1 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + MAX ( ( + col0 ) ) + 75 AS col1 FROM tab1 AS cor0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - ( + COUNT( * ) ) + - MAX( + 85 ) AS col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - ( + COUNT ( * ) ) + - MAX ( + 85 ) AS col0 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL COUNT( * ) * - 46 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL COUNT ( * ) * - 46 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL COUNT( * ) + - MAX( DISTINCT 25 ) * 4 AS col2 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT 25 ) * 4 AS col2 FROM tab2
----
-97

query I rowsort
SELECT ALL 65 + + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
124
133
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT COUNT( * ) + + 26 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4807
SELECT COUNT ( * ) + + 26 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - 7 * - COUNT( * ) * 99 + MAX( + col2 ) FROM tab2
----
2137

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 7 * - COUNT ( * ) * 99 + MAX ( + col2 ) FROM tab2
----
2137

query I rowsort
SELECT + col0 * col1 * col2 + 71 * 23 AS col2 FROM tab1
----
26708
292469
70177

query I rowsort
SELECT DISTINCT + col2 + - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND 95 * + ( col1 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4812
SELECT DISTINCT 50 DIV + - COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT 50 / + - COUNT ( * ) FROM tab1
----
-16

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col0 FROM tab0 WHERE NOT + col0 * col1 NOT IN ( + col0 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT 77 + - COUNT( * ) + + 22 DIV - COUNT( * ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-4814
SELECT 77 + - COUNT ( * ) + + 22 / - COUNT ( * ) FROM tab0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT 95 + col1 + - col1 DIV col1 AS col1 FROM tab1
----
108
141
99

skipif mysql # not compatible
query I rowsort label-4815
SELECT 95 + col1 + - col1 / col1 AS col1 FROM tab1
----
108
141
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( + 1 * col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + 81 * + 71 + MIN( + col0 ) AS col2 FROM tab0
----
5766

skipif mysql # not compatible
query I rowsort label-4817
SELECT + 81 * + 71 + MIN ( + col0 ) AS col2 FROM tab0
----
5766

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT SUM( + 78 ) AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT SUM ( + 78 ) AS col1 FROM tab2
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 col2 FROM tab0 cor0
----
-81
-81
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= ( + 17 )
----

query I rowsort
SELECT ALL 44 * - col1 + - col0 + - ( + col2 + 12 ) AS col1 FROM tab2 AS cor0
----
-2325
-3093
-3504

query I rowsort
SELECT DISTINCT col1 / + 55 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 20 AS col2 FROM tab1 WHERE ( - 62 ) <= col1
----
20
20
20

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - col1 / + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL - COUNT( * ) - + COUNT( ALL + col1 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL - COUNT ( * ) - + COUNT ( ALL + col1 ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT ALL col2 - - 33 * col2 FROM tab1
----
2006
2312
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - MIN( ALL + + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - MIN ( ALL + + col2 ) AS col1 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + col0 * col1 * ( 82 ) * + ( col0 + + 78 ) + + 29 FROM tab1 AS cor0
----
5680579
59270695
7552721

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> 9 + col1 * ( + col0 / 1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1 / + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - COUNT( * ) * MAX( + - col0 ) AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4832
SELECT - COUNT ( * ) * MAX ( + - col0 ) AS col2 FROM tab2 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT - ( - + col2 ) BETWEEN col0 AND ( NULL )
----
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT ALL - COUNT( DISTINCT - 28 ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - COUNT ( DISTINCT - 28 ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT COUNT( * ) DIV + COUNT( * ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT COUNT ( * ) / + COUNT ( * ) col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col0 )
----
36
36
36

query I rowsort
SELECT + 54 * + col0 + + 48 FROM tab1 AS cor0 WHERE NOT col1 - + - 44 >= - col2 + - 51 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col0 ) NOT IN ( + col0 * - col0 + + 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4839
SELECT DISTINCT * FROM tab2 WHERE + - col0 * - + CAST( NULL AS SIGNED ) BETWEEN ( col0 * + col0 + 92 / col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4839
SELECT DISTINCT * FROM tab2 WHERE + - col0 * - + CAST ( NULL AS INTEGER ) BETWEEN ( col0 * + col0 + 92 / col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT - MIN( ALL + col2 ) / + COUNT( * ) AS col0 FROM tab2 WHERE ( + 1 + - col0 / - col2 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - MIN ( ALL + col2 ) / + COUNT ( * ) AS col0 FROM tab2 WHERE ( + 1 + - col0 / - col2 ) > NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 70 <= + col1
----
15
81
47

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( - 37 ) = + col1 + - col1 * - col1
----

query I rowsort
SELECT + - 73 * - 14 AS col2 FROM tab2 AS cor0
----
1022
1022
1022

query I rowsort
SELECT - 95 AS col0 FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT + + col1 DIV col2 + + 77 DIV 38 col2 FROM tab2 AS cor0
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4845
SELECT DISTINCT + + col1 / col2 + + 77 / 38 col2 FROM tab2 AS cor0
----
3
4

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 4 + - + col1 ) IS NOT NULL
----

query I rowsort
SELECT col1 * + + col2 + - col1 AS col2 FROM tab2 WHERE NOT - - col2 IS NULL
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + 74 + - ( + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 74 + - ( + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT COUNT( ALL col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4849
SELECT COUNT ( ALL col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + - col0 * - 24 + 59 FROM tab0 AS cor0
----
2147
2387
419

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT - - 55 + COUNT( * ) * SUM( ALL - - 40 ) FROM tab2 AS cor0
----
415

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - - 55 + COUNT ( * ) * SUM ( ALL - - 40 ) FROM tab2 AS cor0
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT - MAX( ALL 97 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4852
SELECT - MAX ( ALL 97 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - COUNT( * ) * + 79 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-4853
SELECT - COUNT ( * ) * + 79 FROM tab0 AS cor0
----
-237

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4855
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( - col2 AS SIGNED ) * - col0 IN ( - col0 * 68 )
----

skipif mysql # not compatible
query III rowsort label-4855
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) * - col0 IN ( - col0 * 68 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + ( + + ( + 36 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 54 FROM tab0, tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT CAST( + 67 AS SIGNED ) AS col1 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT CAST ( + 67 AS INTEGER ) AS col1 FROM tab2
----
67

query I rowsort
SELECT ALL - ( - - 35 ) - 36 AS col2 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT ALL + + col1 + + 39 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col2 - - - col0 FROM tab1 WHERE NULL <= col0 + 69
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT DISTINCT + 25 + col2 + + col2 FROM tab1 AS cor0
----
143
161
217

query I rowsort
SELECT - + col1 + - col2 + col1 * col2 AS col2 FROM tab0 cor0
----
-1
179
3679

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL + + SUM( + col1 ) + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + + SUM ( + col1 ) + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
106

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + + 65 * + col1 FROM tab2
----
3338
4413
5045

query I rowsort
SELECT DISTINCT col1 + - 5 + col2 * col1 AS col2 FROM tab1
----
1353
295
3238

query I rowsort
SELECT DISTINCT + - col1 * + - 10 FROM tab0 AS cor0
----
10
210
810

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col2 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT - 41 DIV col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT - 41 / col0 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT - 95, + col1 * - col1 + + 45 AS col2 FROM tab2
----
-95
-2556
-95
-4444
-95
-5884

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT - - 0 IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT 57, + col0 + + col1 * + col2 AS col1 FROM tab1
----
57
1395
57
3287
57
380

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT + 85 AS col2, - COUNT( - col0 ) AS col1 FROM tab2
----
85
-3

skipif mysql # not compatible
query II rowsort label-4876
SELECT + 85 AS col2, - COUNT ( - col0 ) AS col1 FROM tab2
----
85
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL < - 33 + + 34
----
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL < - 33 + + 34
----
0

query I rowsort
SELECT DISTINCT + col0 + - + 87 FROM tab0 AS cor0
----
-72
0
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4879
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 29 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 29 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4880
SELECT DISTINCT 39 + + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + - + col1 IN ( - + 75 )
----

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 39 + + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) + - + col1 IN ( - + 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4881
SELECT + 69 DIV + + 81 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT + 69 / + + 81 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4882
SELECT 34 + - - col2 AS col1 FROM tab2 AS cor0 WHERE col0 * + col1 * - CAST( NULL AS DECIMAL ) - - 87 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4882
SELECT 34 + - - col2 AS col1 FROM tab2 AS cor0 WHERE col0 * + col1 * - CAST ( NULL AS REAL ) - - 87 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 = + 3 + - 43
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT 98 + - col2 / + - CAST( NULL AS SIGNED ) * + col2 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-4885
SELECT 98 + - col2 / + - CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 32 + + col1 * 79 AS col0 FROM tab0 AS cor0
----
111
1691
6431

query I rowsort
SELECT col2 + - + ( col2 ) AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + 2 + + - col0 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT - 84 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT - 84 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ALL - ( + col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 68 > + + 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 5 + col2 + - - col0 * 91 * + + 61 FROM tab1 AS cor0
----
283202
471899
505214

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 22 ) * - col0 * col0 * + col2 = ( col1 )
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4896
SELECT ALL COUNT( * ) * + 98 * 24 + + MIN( ALL - + 71 ) DIV + + 84 + + COUNT( * ) FROM tab1 AS cor0
----
7059

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL COUNT ( * ) * + 98 * 24 + + MIN ( ALL - + 71 ) / + + 84 + + COUNT ( * ) FROM tab1 AS cor0
----
7059

query I rowsort
SELECT - ( + 53 ) AS col0 FROM tab2
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4898
SELECT - 70 AS col2, COUNT( * ) col2 FROM tab1
----
-70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4898
SELECT - 70 AS col2, COUNT ( * ) col2 FROM tab1
----
-70
3

query I rowsort
SELECT ALL - ( col0 ) * + - 25 + 13 + col0 AS col2 FROM tab2
----
1209
1677
1963

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 / + + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, - col2 * + - 33 col0 FROM tab0 AS cor0
----
1
3267
21
330
81
1551

query I rowsort
SELECT ALL 17 * + col1 * - col2 FROM tab1 AS cor0
----
-22848
-5015
-54332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT col2 * + - ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT col2 * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + col1 + - col1 col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - ( MAX( - + 42 ) ) AS col2 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - ( MAX ( - + 42 ) ) AS col2 FROM tab2 AS cor0
----
42

query II rowsort
SELECT + 21 AS col0, 39 AS col1 FROM tab0 AS cor0
----
21
39
21
39
21
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col1, col1 + - - ( col2 ) FROM tab0 cor0 WHERE NULL IS NULL AND col1 IS NOT NULL
----
27
100
27
128
27
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4908
SELECT + 57 DIV 1 AS col2, + col0 FROM tab1
----
57
51
57
85
57
91

skipif mysql # not compatible
query II rowsort label-4908
SELECT + 57 / 1 AS col2, + col0 FROM tab1
----
57
51
57
85
57
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col1 col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + MAX( ALL col2 ) * + COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT + col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + MAX ( ALL col2 ) * + COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT + col1 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4911
SELECT - col0 DIV + 24 AS col2, - col1 + CAST( col2 AS SIGNED ) FROM tab2
----
-1
-28
-2
-37
-3
-9

skipif mysql # not compatible
query II rowsort label-4911
SELECT - col0 / + 24 AS col2, - col1 + CAST ( col2 AS INTEGER ) FROM tab2
----
-1
-28
-2
-37
-3
-9

query I rowsort
SELECT - - 28 AS col1 FROM tab0 WHERE NOT ( col0 / + ( + 81 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 24 * - 33 * + - col2 AS col2 FROM tab1
----
46728
53856
76032

onlyif mysql # DIV for integer division: 
query II rowsort label-4914
SELECT ALL + col0 DIV + + col0 col1, - ( - col2 ) FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4914
SELECT ALL + col0 / + + col0 col1, - ( - col2 ) FROM tab0
----
1
10
1
47
1
99

query I rowsort
SELECT ALL + 34 * 34 AS col1 FROM tab0 AS cor0
----
1156
1156
1156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT + MAX( - col2 ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + MAX ( - col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 8 FROM tab0 AS cor0 WHERE NOT - 23 * + - col2 < NULL
----

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - + col0 * + - 72, + col1 + - + col1 AS col1 FROM tab2 AS cor0
----
3312
0
4608
0
5400
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT + - COUNT( * ) * 23 AS col2, - MIN( - 62 ) FROM tab2 AS cor0
----
-69
62

skipif mysql # not compatible
query II rowsort label-4920
SELECT + - COUNT ( * ) * 23 AS col2, - MIN ( - 62 ) FROM tab2 AS cor0
----
-69
62

query I rowsort
SELECT ALL 82 + + 36 FROM tab2
----
118
118
118

query I rowsort
SELECT DISTINCT col1 * + + 45 FROM tab2
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT SUM( DISTINCT - ( - col1 ) ) + - 39 AS col0 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-4923
SELECT SUM ( DISTINCT - ( - col1 ) ) + - 39 AS col0 FROM tab2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + - COUNT( * ) * 41 AS col1 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4924
SELECT + - COUNT ( * ) * 41 AS col1 FROM tab1 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT - 50 AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-50
-3

skipif mysql # not compatible
query II rowsort label-4925
SELECT - 50 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-50
-3

query I rowsort
SELECT + + 38 AS col1 FROM tab0 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT - 70 AS col0, - SUM( 81 ) AS col1 FROM tab1 cor0
----
-70
-243

skipif mysql # not compatible
query II rowsort label-4927
SELECT - 70 AS col0, - SUM ( 81 ) AS col1 FROM tab1 cor0
----
-70
-243

query I rowsort
SELECT DISTINCT col1 + + ( + 61 ) + + col0 AS col0 FROM tab1 cor0
----
126
151
199

query I rowsort
SELECT ALL + + 15 + - + 59 AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT col2 + - + col0 + col0 AS col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( col1 ) * col2 col2 FROM tab1
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4932
SELECT - CAST( + col0 AS SIGNED ) + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4932
SELECT - CAST ( + col0 AS INTEGER ) + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + + 60 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT DISTINCT ( 81 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT SUM( DISTINCT + - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT SUM ( DISTINCT + - col2 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT ( - - 80 ) AS col1 FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT - 12 * + 75 AS col1 FROM tab0
----
-900

query I rowsort
SELECT ALL - + ( + ( 31 ) ) * col0 FROM tab2 AS cor0
----
-1426
-1984
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT ALL - CAST( + ( MIN( - col2 ) ) AS SIGNED ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - CAST ( + ( MIN ( - col2 ) ) AS INTEGER ) AS col2 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL - + MAX( DISTINCT 64 ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL - + MAX ( DISTINCT 64 ) FROM tab1 AS cor0
----
-64

query I rowsort
SELECT 38 / 98 FROM tab2 AS cor0 WHERE NOT NULL >= + 41
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 86 > + + ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT + MIN( + - col2 ) col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4943
SELECT DISTINCT + MIN ( + - col2 ) col0 FROM tab0 cor0
----
-99

query II rowsort
SELECT ALL - 63 AS col1, col2 * - - 41 FROM tab2
----
-63
1640
-63
2378
-63
943

query I rowsort
SELECT AVG ( DISTINCT + col0 ) FROM tab1 WHERE NOT - - 75 * + col0 NOT BETWEEN + + col1 * - - col0 AND + 41 / - 8 + - col1 * 91
----
NULL

query I rowsort
SELECT + ( + col1 ) + - - ( 11 ) * 6 FROM tab0
----
147
67
87

query I rowsort
SELECT DISTINCT + 91 * + - 55 * + - col2 FROM tab0
----
235235
495495
50050

query I rowsort
SELECT 30 + - + col1 + + col0 FROM tab2
----
17
25
38

query I rowsort
SELECT - ( + + 74 ) + + - col1 FROM tab1
----
-121
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT - MIN( DISTINCT - 89 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - MIN ( DISTINCT - 89 ) FROM tab1
----
89

query I rowsort
SELECT ALL col0 * 84 * + 70 AS col0 FROM tab2
----
270480
376320
441000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT + 18 * + CAST( NULL AS SIGNED ) + + MIN( + 0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 18 * + CAST ( NULL AS INTEGER ) + + MIN ( + 0 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL + - ( CAST( - 24 AS SIGNED ) ) FROM tab2 cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + - ( CAST ( - 24 AS INTEGER ) ) FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + 48 * col1 + - - 11 + - - col2 AS col0 FROM tab0 AS cor0
----
1029
158
3946

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT DISTINCT - ( 95 ) col1, + COUNT( * ) AS col1 FROM tab0 cor0
----
-95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4955
SELECT DISTINCT - ( 95 ) col1, + COUNT ( * ) AS col1 FROM tab0 cor0
----
-95
3

query I rowsort
SELECT DISTINCT + 57 + + - col2 FROM tab1
----
-11
-2
-39

query I rowsort
SELECT ( - 78 ) FROM tab0
----
-78
-78
-78

query II rowsort
SELECT ALL - col2 AS col0, - 79 AS col0 FROM tab2
----
-23
-79
-40
-79
-58
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - - MIN( ALL col2 ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - - MIN ( ALL col2 ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4960
SELECT DISTINCT + col0 AS col2, 66 DIV - - 57 + + 59 * - 80 AS col0 FROM tab2 cor0
----
46
-4719
64
-4719
75
-4719

skipif mysql # not compatible
query II rowsort label-4960
SELECT DISTINCT + col0 AS col2, 66 / - - 57 + + 59 * - 80 AS col0 FROM tab2 cor0
----
46
-4719
64
-4719
75
-4719

query I rowsort
SELECT col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + MAX( DISTINCT - - col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4962
SELECT + MAX ( DISTINCT - - col2 ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + 93 * + + 24 FROM tab2 AS cor0
----
2232
2232
2232

query I rowsort
SELECT ALL col2 * + col0 + - col1 FROM tab1
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT MAX( DISTINCT 58 ) * + COUNT( * ) * 8 FROM tab2
----
1392

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT MAX ( DISTINCT 58 ) * + COUNT ( * ) * 8 FROM tab2
----
1392

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 41 AND 17
----

query II rowsort
SELECT ALL + col1 AS col0, + ( - col2 ) FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT + col1 AS col0, + col0 * - - col2 FROM tab0 WHERE + 72 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT ALL - 81 AS col2, - COUNT( * ) FROM tab0
----
-81
-3

skipif mysql # not compatible
query II rowsort label-4969
SELECT ALL - 81 AS col2, - COUNT ( * ) FROM tab0
----
-81
-3

query I rowsort
SELECT col2 * 59 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT ALL 5 + - col2 + + col1 - - col0 FROM tab0 AS cor0
----
103
4
54

query I rowsort
SELECT - + ( + 90 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query II rowsort
SELECT ALL - col2 AS col1, 91 FROM tab0
----
-10
91
-47
91
-99
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT - + MAX( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4975
SELECT - + MAX ( DISTINCT + col2 ) AS col1 FROM tab0 cor0
----
-99

query I rowsort
SELECT ALL ( + - 73 ) FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT - MIN( ALL + CAST( - 8 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4977
SELECT - MIN ( ALL + CAST ( - 8 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4978
SELECT + + col1 DIV 57 DIV + - col2 * + col2 - - 44 AS col0 FROM tab1 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-4978
SELECT + + col1 / 57 / + - col2 * + col2 - - 44 AS col0 FROM tab1 AS cor0
----
44
44
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <= ( ( + + 91 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT - + COUNT( * ) + SUM( + col2 ) col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4980
SELECT DISTINCT - + COUNT ( * ) + SUM ( + col2 ) col2 FROM tab0 AS cor0
----
153

query I rowsort
SELECT DISTINCT - + 16 + + - col2 FROM tab0 cor0
----
-115
-26
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT + 24 FROM tab1 WHERE - col0 * + - col2 * - 27 + + CAST( NULL AS SIGNED ) * + 22 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + 24 FROM tab1 WHERE - col0 * + - col2 * - 27 + + CAST ( NULL AS INTEGER ) * + 22 IS NULL
----
24

query I rowsort
SELECT + + 30 AS col0 FROM tab2 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT + ( + 93 ) AS col2 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT - - SUM( + col0 ) FROM tab1 cor0 WHERE col2 * + col1 >= 30
----
227

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - - SUM ( + col0 ) FROM tab1 cor0 WHERE col2 * + col1 >= 30
----
227

query I rowsort
SELECT DISTINCT - 12 - - 76 * + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col2 * + + col1
----

query I rowsort
SELECT - col0 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + + 79 > - col1 + - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - MIN( + col2 ) * 35 * - COUNT( * ) FROM tab0
----
1050

skipif mysql # not compatible
query I rowsort label-4988
SELECT - MIN ( + col2 ) * 35 * - COUNT ( * ) FROM tab0
----
1050

query I rowsort
SELECT DISTINCT - ( - col1 ) * 62 + - col0 AS col2 FROM tab2 AS cor0
----
3116
4079
4710

query I rowsort
SELECT ALL col2 + 73 FROM tab1 cor0
----
132
141
169

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 BETWEEN - - col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT 28 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT 28 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT ALL + col0 * - col0 * + ( col1 ) + - - col0 DIV - col0 FROM tab0 AS cor0
----
-158950
-18226
-9410

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + col0 * - col0 * + ( col1 ) + - - col0 / - col0 FROM tab0 AS cor0
----
-158950
-18226
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT MAX( col2 ) - COUNT( * ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT MAX ( col2 ) - COUNT ( * ) FROM tab2 cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL col2 * col0 + col0 AS col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL - MAX( - - 93 ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - MAX ( - - 93 ) AS col2 FROM tab0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + COUNT( * ) + + + COUNT( + col1 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4997
SELECT + COUNT ( * ) + + + COUNT ( + col1 ) FROM tab0
----
6

query I rowsort
SELECT - 26 + col2 + - col1 * - ( + - col0 ) + - - 56 * col1 * + + col1 FROM tab1
----
1008
10332
119469

query I rowsort
SELECT DISTINCT + - 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT + 35 * + - COUNT( * ) - + COUNT( * ) + + + 68 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + 35 * + - COUNT ( * ) - + COUNT ( * ) + + + 68 FROM tab1
----
-40

query I rowsort
SELECT + col1 * + ( col2 ) - + col0 AS col2 FROM tab0
----
123
2
3792

query I rowsort
SELECT DISTINCT - - 39 AS col0 FROM tab1 AS cor0
----
39

query I rowsort
SELECT ALL - 43 - col1 FROM tab1 cor0
----
-48
-57
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - SUM( ALL col1 ) + + - 45 + + + AVG ( DISTINCT + col2 ) + - 13 FROM tab2 cor0 WHERE - 45 > + 14 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT - SUM ( ALL col1 ) + + - 45 + + + AVG ( DISTINCT + col2 ) + - 13 FROM tab2 cor0 WHERE - 45 > + 14 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - ( + COUNT( * ) ) + 2 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN col2 AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-5005
SELECT - ( + COUNT ( * ) ) + 2 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN col2 AND NULL
----
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 92
----

query I rowsort
SELECT - col2 * - - 78 AS col2 FROM tab1 AS cor0
----
-4602
-5304
-7488

query III rowsort
SELECT ALL * FROM tab0 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT ALL + COUNT( + 52 ) DIV + 17 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + COUNT ( + 52 ) / + 17 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT col1 * CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5010
SELECT col1 * CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - 11 col2 FROM tab1
----
51
-11
85
-11
91
-11

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 WHERE + + 87 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE + 45 NOT BETWEEN col0 * - col2 AND + 46 * - 23 - - col0
----
15
87
97

query I rowsort
SELECT DISTINCT + 80 * + + 87 AS col1 FROM tab2
----
6960

query II rowsort
SELECT - col0, col2 AS col1 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT DISTINCT - col2 * - col0, col1 AS col0 FROM tab0 AS cor0
----
705
81
870
21
9603
1

query I rowsort
SELECT - 12 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 NOT BETWEEN col0 + col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT DISTINCT + 0 * - + col0 * + col2 DIV + 10 * + 12 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT + 0 * - + col0 * + col2 / + 10 * + 12 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT ALL + - 91 + - COUNT( * ) + + COUNT( * ) AS col2, 65 FROM tab1 AS cor0
----
-91
65

skipif mysql # not compatible
query II rowsort label-5020
SELECT ALL + - 91 + - COUNT ( * ) + + COUNT ( * ) AS col2, 65 FROM tab1 AS cor0
----
-91
65

query I rowsort
SELECT ALL col2 + + - col2 * - + col1 FROM tab1 AS cor0
----
1440
3264
354

query II rowsort
SELECT DISTINCT + ( - - col1 ) AS col2, + col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 99 IS NULL
----

query II rowsort
SELECT DISTINCT + - col0 + - - 52 AS col1, 7 * + + col1 AS col2 FROM tab0 AS cor0
----
-35
147
-45
7
37
567

query I rowsort
SELECT ALL + col2 + - + col1 AS col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + 79 + + COUNT( * ) * COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + 79 + + COUNT ( * ) * COUNT ( * ) FROM tab1
----
88

query II rowsort
SELECT DISTINCT col2, col2 - + 54 AS col0 FROM tab2
----
23
-31
40
-14
58
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL + MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5029
SELECT ALL col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 59 + + - 40 - + 33 + + col2 * - - col1 / col0 IS NULL
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 59 + + - 40 - + 33 + + col2 * - - col1 / col0 IS NULL
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5030
SELECT - - col1 + - + col1 DIV - col0, + col1 FROM tab0 cor0
----
1
1
21
21
86
81

skipif mysql # not compatible
query II rowsort label-5030
SELECT - - col1 + - + col1 / - col0, + col1 FROM tab0 cor0
----
1
1
21
21
86
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5031
SELECT ALL + + col0 + + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) + + CAST( + col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + + col0 + + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + - col0 ) + + CAST ( + col0 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - COUNT( * ) + 41 col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5032
SELECT ALL - COUNT ( * ) + 41 col2 FROM tab2 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT + 10 DIV - col1 + 68 AS col0 FROM tab2 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5033
SELECT + 10 / - col1 + 68 AS col0 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL col0 + + 89 AS col0 FROM tab0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT - 23 - - - COUNT( * ) * + - 16 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT - 23 - - - COUNT ( * ) * + - 16 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT MIN( + 8 ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5036
SELECT MIN ( + 8 ) AS col2 FROM tab2
----
8

query I rowsort
SELECT ALL 60 + col1 * - - col0 + + ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2452
5052
5160

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT - col1 DIV + 95 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT - col1 / + 95 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5039
SELECT * FROM tab0 cor0 WHERE + col0 * - col2 + - 77 = NULL AND NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( + 38 ) * CAST( + 48 AS SIGNED ) + 68 + + + col0 AND - col2 + + - col1
----

skipif mysql # not compatible
query III rowsort label-5039
SELECT * FROM tab0 cor0 WHERE + col0 * - col2 + - 77 = NULL AND NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( + 38 ) * CAST ( + 48 AS INTEGER ) + 68 + + + col0 AND - col2 + + - col1
----

query I rowsort
SELECT col1 * - 39 - + - 67 FROM tab2 AS cor0
----
-1922
-2546
-2936

query I rowsort
SELECT DISTINCT + 57 * - col1 * - 80 FROM tab1 AS cor0
----
214320
22800
63840

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT - col1 * col1, col2 + + - 39 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT COUNT( * ) * 95 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-5045
SELECT COUNT ( * ) * 95 FROM tab0
----
285

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT - 77 + 14 BETWEEN - - 27 AND + + col2
----
51
67
77

query I rowsort
SELECT ALL - 19 * + col0 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5050
SELECT - COUNT( * ) DIV + 58 * + 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT - COUNT ( * ) / + 58 * + 85 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col1 * - - 63 * - - 65 AS col2, col0 FROM tab1
----
192465
91
20475
85
57330
51

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= + + ( 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( col1 ) * - 18 AS col1 FROM tab2
----
-1206
-1386
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT ALL + 27 DIV col1 FROM tab0 cor0
----
0
1
27

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + 27 / col1 FROM tab0 cor0
----
0
1
27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 - - col0 > + 30 - - 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - ( col1 )
----

query I rowsort
SELECT - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT 34 * - col1 FROM tab2 AS cor0
----
-1734
-2278
-2618

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT DISTINCT + col0 DIV col0 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + col0 / col0 AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL + 93 + col0 - col2 AS col0 FROM tab0 AS cor0
----
170
61
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT + MAX( + col1 ) + + COUNT( * ) + - + MAX( col2 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5062
SELECT + MAX ( + col1 ) + + COUNT ( * ) + - + MAX ( col2 ) FROM tab2 AS cor0
----
22

query II rowsort
SELECT ALL 63 AS col0, - 53 * + + col1 + - col2 FROM tab0 cor0
----
63
-1123
63
-152
63
-4340

query I rowsort
SELECT ALL - + col2 + + 70 FROM tab2 cor0
----
12
30
47

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab1 AS cor0 WHERE 70 < - col0 * - - 90 - - 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT col2 + + col0 DIV - 55 + + col2 FROM tab1 AS cor0
----
117
135
192

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT col2 + + col0 / - 55 + + col2 FROM tab1 AS cor0
----
117
135
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT 88 + - ( + + COUNT( * ) ) FROM tab2 cor0
----
85

skipif mysql # not compatible
query I rowsort label-5067
SELECT 88 + - ( + + COUNT ( * ) ) FROM tab2 cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT col0 + CAST( NULL AS SIGNED ) * + + 4 / ( - - col1 ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT col0 + CAST ( NULL AS INTEGER ) * + + 4 / ( - - col1 ) + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 + + col1 * - 33 - + col2 AS col2 FROM tab1
----
-1619
-224
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + 18 + ( + + COUNT( * ) ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5070
SELECT + 18 + ( + + COUNT ( * ) ) AS col2 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT + COUNT( * ) + - COUNT( * ) AS col1, - MIN( DISTINCT - col1 ) FROM tab2
----
0
77

skipif mysql # not compatible
query II rowsort label-5071
SELECT + COUNT ( * ) + - COUNT ( * ) AS col1, - MIN ( DISTINCT - col1 ) FROM tab2
----
0
77

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + + col1 + + col2 - - col0 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 91 ) col1 FROM tab0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT DISTINCT + ( - + CAST( col0 AS SIGNED ) ) - + col1 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + ( - + CAST ( col0 AS INTEGER ) ) - + col1 FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT + CAST( NULL AS SIGNED ) * + 73 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT + CAST ( NULL AS INTEGER ) * + 73 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 80 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT + 87 IS NULL
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5077
SELECT - - col2, col0 - + - 37 + + ( col0 ) FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * CAST( col0 AS SIGNED ) NOT BETWEEN - col0 * - col1 * col2 * - - col1 + + col0 + - - 6 / - col1 + - col0 + + col0 + - 81 / + col1 AND col2
----

skipif mysql # not compatible
query II rowsort label-5077
SELECT - - col2, col0 - + - 37 + + ( col0 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * CAST ( col0 AS INTEGER ) NOT BETWEEN - col0 * - col1 * col2 * - - col1 + + col0 + - - 6 / - col1 + - col0 + + col0 + - 81 / + col1 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT COUNT( * ) DIV - 9 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT COUNT ( * ) / - 9 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + - col2 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT + - ( CAST( - + 83 AS SIGNED ) ) * + col0 FROM tab2 AS cor0
----
3818
5312
6225

skipif mysql # not compatible
query I rowsort label-5081
SELECT + - ( CAST ( - + 83 AS INTEGER ) ) * + col0 FROM tab2 AS cor0
----
3818
5312
6225

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT + - 32 AS col2, + COUNT( * ) * - COUNT( * ) col2 FROM tab2 AS cor0
----
-32
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5082
SELECT + - 32 AS col2, + COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-32
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + - 96 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT SUM( + col1 ) * - 38 AS col2 FROM tab1 AS cor0
----
-2508

skipif mysql # not compatible
query I rowsort label-5085
SELECT SUM ( + col1 ) * - 38 AS col2 FROM tab1 AS cor0
----
-2508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5086
SELECT DISTINCT - CAST( + - AVG ( ALL + col1 ) AS SIGNED ) AS col1, + 70 FROM tab0 AS cor0
----
34
70

skipif mysql # not compatible
query II rowsort label-5086
SELECT DISTINCT - CAST ( + - AVG ( ALL + col1 ) AS INTEGER ) AS col1, + 70 FROM tab0 AS cor0
----
34
70

query I rowsort
SELECT - 91 * + 72 AS col0 FROM tab2
----
-6552
-6552
-6552

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 13 - - + col0 / + 69 <> ( 34 ) * + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) * 59 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 59 FROM tab0
----
NULL

query I rowsort
SELECT - col0 / col2 FROM tab2 WHERE NOT + - col1 * ( col1 ) * col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * - - 70 + - ( + 86 ) NOT IN ( - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT col2 * - - 8 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT DISTINCT - 17 * + col1 FROM tab1 AS cor0
----
-238
-799
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5094
SELECT DISTINCT - col0 + + col1 - + + ( - - col1 ) DIV + CAST( col0 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-112
-133
-139

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - col0 + + col1 - + + ( - - col1 ) / + CAST ( col0 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + SUM( 89 ) FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-5095
SELECT + SUM ( 89 ) FROM tab1 AS cor0
----
267

query II rowsort
SELECT - col2 AS col2, + col2 * + 46 + - 84 + col1 FROM tab0 AS cor0
----
-10
397
-47
2159
-99
4471

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT ( - COUNT( + 95 ) ) + 26 AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT ( - COUNT ( + 95 ) ) + 26 AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT - ( - - ( - - 87 ) ) FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + 52 + - + col1 AS col2 FROM tab2
----
-15
-25
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5101
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT ( col1 + - CAST( NULL AS SIGNED ) <= NULL ) ) )
----

skipif mysql # not compatible
query III rowsort label-5101
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT ( col1 + - CAST ( NULL AS INTEGER ) <= NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT - 39 * CAST( NULL AS SIGNED ) + COUNT( col1 ) + 91 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - 39 * CAST ( NULL AS INTEGER ) + COUNT ( col1 ) + 91 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( - ( + col2 ) ) ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * 12 * - col0 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL + COUNT( 56 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + COUNT ( 56 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5106
SELECT ALL + CAST( - AVG ( DISTINCT + 80 ) AS SIGNED ) AS col2, 4 AS col1 FROM tab1
----
-80
4

skipif mysql # not compatible
query II rowsort label-5106
SELECT ALL + CAST ( - AVG ( DISTINCT + 80 ) AS INTEGER ) AS col2, 4 AS col1 FROM tab1
----
-80
4

query II rowsort
SELECT ALL - col2 AS col2, + 63 * - 41 AS col2 FROM tab0
----
-10
-2583
-47
-2583
-99
-2583

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - 56 + COUNT( * ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-5108
SELECT - 56 + COUNT ( * ) FROM tab2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + COUNT( * ) * 4 + 39 * - MIN( ALL + 24 ) AS col1 FROM tab0
----
-924

skipif mysql # not compatible
query I rowsort label-5109
SELECT + COUNT ( * ) * 4 + 39 * - MIN ( ALL + 24 ) AS col1 FROM tab0
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT ( + - CAST( - - MIN( - - 85 ) AS SIGNED ) ) + + 77 AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5110
SELECT ( + - CAST ( - - MIN ( - - 85 ) AS INTEGER ) ) + + 77 AS col1 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT col1 * - ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 96 FROM tab2
----
4416
6144
7200

query I rowsort
SELECT ALL - - ( + ( - col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col2 * 17 + col1 + col1 FROM tab2 AS cor0
----
1120
493
834

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 + 98 NOT BETWEEN 2 AND - - ( 59 ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - 52 * + + 22 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT + 46, + COUNT( * ) * - 67 col0 FROM tab0
----
46
-201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5117
SELECT + 46, + COUNT ( * ) * - 67 col0 FROM tab0
----
46
-201

query I rowsort
SELECT ALL - - col2 + col2 FROM tab1 WHERE NULL IS NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL + COUNT( * ) - + 27 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL + COUNT ( * ) - + 27 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT - ( - 36 ) AS col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT MAX( - + 44 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT MAX ( - + 44 ) AS col2 FROM tab2 AS cor0
----
-44

query II rowsort
SELECT col2 AS col0, - col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = + + col1 )
----

query II rowsort
SELECT - col2 AS col0, + 91 * 46 AS col2 FROM tab1
----
-59
4186
-68
4186
-96
4186

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + + col1 ) / - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 18
----

query II rowsort
SELECT - col0, 28 AS col1 FROM tab2 AS cor0
----
-46
28
-64
28
-75
28

query II rowsort
SELECT - col1, - 12 AS col1 FROM tab2 cor0
----
-51
-12
-67
-12
-77
-12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / 11 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 82 col0 FROM tab0 AS cor0
----
103
163
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5131
SELECT * FROM tab1 AS cor0 WHERE + 12 NOT BETWEEN col2 - CAST( - ( ( col2 ) ) AS SIGNED ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5131
SELECT * FROM tab1 AS cor0 WHERE + 12 NOT BETWEEN col2 - CAST ( - ( ( col2 ) ) AS INTEGER ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT ALL + + COUNT( ALL - col0 ), 23 AS col1 FROM tab0 AS cor0 WHERE NULL > col1 + + col0
----
0
23

skipif mysql # not compatible
query II rowsort label-5132
SELECT ALL + + COUNT ( ALL - col0 ), 23 AS col1 FROM tab0 AS cor0 WHERE NULL > col1 + + col0
----
0
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT - col2 * col1 DIV - col2 col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5133
SELECT - col2 * col1 / - col2 col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT - col1 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5134
SELECT - col1 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 10 BETWEEN col0 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT - 53 DIV col0 - col0 + + col0 + - 9 FROM tab2 AS cor0
----
-10
-9
-9

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 53 / col0 - col0 + + col0 + - 9 FROM tab2 AS cor0
----
-10
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT + MAX( ( 39 ) ) FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + MAX ( ( 39 ) ) FROM tab1 cor0
----
39

query I rowsort
SELECT - 80 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - + 6 + - col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 46 = NULL )
----

query I rowsort
SELECT + col2 - + + col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + col0 - - 63 AS col1 FROM tab2
----
109
127
138

query I rowsort
SELECT 73 + + 5 + + + col2 FROM tab0
----
125
177
88

query I rowsort
SELECT + 23 * col1 * 39 AS col0 FROM tab2
----
45747
60099
69069

query II rowsort
SELECT - - col0 * - col2 * + + col0 + - col1 AS col0, + col2 * - col2 FROM tab0 AS cor0
----
-10656
-2209
-75711
-100
-931492
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 52 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT ALL - 63 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - 63 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 89 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT + + CAST( + - AVG ( DISTINCT + - 2 ) AS SIGNED ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + + CAST ( + - AVG ( DISTINCT + - 2 ) AS INTEGER ) FROM tab2 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT ALL col2 DIV - + 66 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL col2 / - + 66 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT NULL < + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IN ( - + col1 + + ( col1 ), 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 46 * - 28 * + + col2 FROM tab2
----
-29624
-51520
-74704

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT + 99 * + 92 + col0 AS col2 FROM tab0
----
9123
9195
9205

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT 63 * + 60 * + + COUNT( * ) FROM tab1
----
11340

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT 63 * + 60 * + + COUNT ( * ) FROM tab1
----
11340

query I rowsort
SELECT 87 + + + col1 AS col1 FROM tab2
----
138
154
164

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - + 69
----

query I rowsort
SELECT 95 + - + 38 AS col2 FROM tab0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col2 - + ( + - ( - 53 ) ) * col1 + - 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT + COUNT( * ) col1, - SUM( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
3
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5163
SELECT + COUNT ( * ) col1, - SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
3
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + 44 * col2 * col0 <= NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - - 18 + + col1 FROM tab2 cor0
----
1273
1463
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col1 col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL ( - + col1 ) - - 64 AS col0 FROM tab2
----
-13
-3
13

query II rowsort
SELECT DISTINCT + col0 - - col0 AS col1, col0 * - 33 * + 47 FROM tab1
----
102
-79101
170
-131835
182
-141141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 64, - col0 )
----

query II rowsort
SELECT - - 60 + + col1 AS col1, - 1 * - col2 AS col0 FROM tab1 AS cor0
----
107
68
65
59
74
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 75 IS NULL
----

query I rowsort
SELECT ALL - 43 * - 34 + + 21 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT - MAX( + col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - MAX ( + col0 ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT NULL >= + + col2 * + 41 + 92 + 37 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL COUNT( + + col2 ) * + + 36 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL COUNT ( + + col2 ) * + + 36 FROM tab2
----
108

query III rowsort
SELECT * FROM tab2 WHERE NOT - 14 BETWEEN - col1 AND + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 23 * 0 AND NULL
----

query I rowsort
SELECT DISTINCT - - 43 AS col1 FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL + 65 AS col1 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT + COUNT( col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + COUNT ( col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( 31 ) + col1 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + col2 * 46 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 26 * - 2 + col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE NOT ( - col0 * col1 ) = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5184
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE NOT ( - col0 * col1 ) = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT col2 * 66 - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col1 = ( col2 * ( - col1 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT col2 * 66 - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 = ( col2 * ( - col1 ) )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND 0 + 72
----
40

query I rowsort
SELECT + col2 - col0 * + ( - 86 ) AS col1 FROM tab2
----
3979
5544
6508

query I rowsort
SELECT + 39 * col0 FROM tab1
----
1989
3315
3549

query I rowsort
SELECT 26 - col2 FROM tab1
----
-33
-42
-70

query I rowsort
SELECT + col1 + ( col2 ) * col0 AS col2 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT - col1 FROM tab2 WHERE 73 * CAST( NULL AS SIGNED ) NOT BETWEEN col2 AND + col1 * 86
----

skipif mysql # not compatible
query I rowsort label-5192
SELECT - col1 FROM tab2 WHERE 73 * CAST ( NULL AS INTEGER ) NOT BETWEEN col2 AND + col1 * 86
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5193
SELECT ALL col1 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 22 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT col1 DIV 35 + - col2 FROM tab1 WHERE NOT ( 4 ) BETWEEN ( 87 ) AND - col2 * + col1 + 96
----
-59
-67
-96

skipif mysql # not compatible
query I rowsort label-5195
SELECT col1 / 35 + - col2 FROM tab1 WHERE NOT ( 4 ) BETWEEN ( 87 ) AND - col2 * + col1 + 96
----
-59
-67
-96

query III rowsort
SELECT * FROM tab2 WHERE - col1 - col0 NOT BETWEEN col1 + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( col1 * + 32 ) AND ( ( col2 ) + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 / 51 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab2 WHERE NOT ( + col2 + col2 ) <= + col0 + + col1
----

query I rowsort
SELECT DISTINCT ( ( col1 ) ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - 13 + + 59 AS col1 FROM tab2 WHERE - col1 * col1 + - col1 * - col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT DISTINCT - 15 + + ( + SUM( col0 ) ) AS col1 FROM tab0
----
184

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT - 15 + + ( + SUM ( col0 ) ) AS col1 FROM tab0
----
184

query I rowsort
SELECT + 11 + - 20 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - COUNT( * ) + + ( - 63 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - COUNT ( * ) + + ( - 63 ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT 12 + + col0 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT 4 + + col2 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT + 84 * col0 + - col1 * 18 FROM tab0 cor0
----
-198
6930
8130

query I rowsort
SELECT + 10 + - 44 * col2 AS col0 FROM tab1 AS cor0
----
-2586
-2982
-4214

query I rowsort
SELECT DISTINCT col2 - - col1 * + 71 AS col2 FROM tab0
----
1501
170
5798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT col2 - - CAST( col2 AS SIGNED ) * - col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5211
SELECT col2 - - CAST ( col2 AS INTEGER ) * - col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 50 ) >= NULL
----

query I rowsort
SELECT ALL 5 - + 11 * 43 AS col0 FROM tab2 AS cor0
----
-468
-468
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL + - COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + - COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT + col1 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT + col1 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT 91 = + col1 + col1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT COUNT( * ) * + 86 AS col2 FROM tab1 cor0 WHERE NULL IN ( 40 * + CAST( col1 * col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT COUNT ( * ) * + 86 AS col2 FROM tab1 cor0 WHERE NULL IN ( 40 * + CAST ( col1 * col2 AS INTEGER ) )
----
0

query I rowsort
SELECT - - ( col1 ) - 32 * col1 FROM tab1 AS cor0
----
-1457
-155
-434

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 / + col1 BETWEEN ( 60 ) AND 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 63 - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT MAX( ALL - 95 ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT MAX ( ALL - 95 ) FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL - SUM( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE ( col1 * col2 ) BETWEEN - col1 * - col0 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - SUM ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE ( col1 * col2 ) BETWEEN - col1 * - col0 AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < 19 + col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT - 50 / - - 38 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT - 50 / - - 38 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 7 * - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 7 * - col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE col0 / 47 + - 5 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT IN ( + ( + col0 ) / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT MAX( ALL + + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5230
SELECT MAX ( ALL + + col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 + 17 * - 23 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 86 * col1 IS NOT NULL
----

query I rowsort
SELECT 20 FROM tab2 cor0 WHERE NOT col2 < NULL AND ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col0 * - col2 + col1 * col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col1 * + - col2 * + col0 col0 FROM tab1
----
14
-68544
47
-290836
5
-25075

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 27 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col2, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE - 74 * + col1 < 20 * 73
----
23
40
58

query I rowsort
SELECT ( col2 ) + + col0 + + col1 * 34 * 60 AS col0 FROM tab1 cor0
----
10344
28707
96039

query I rowsort
SELECT ALL - col0 + + col1 - col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + - col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL + 37 + + ( - SUM( DISTINCT - 98 ) ) AS col1 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL + 37 + + ( - SUM ( DISTINCT - 98 ) ) AS col1 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + 10 * 28 + + 76 + COUNT( * ) AS col2 FROM tab2
----
359

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 10 * 28 + + 76 + COUNT ( * ) AS col2 FROM tab2
----
359

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col2 IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT - 4 DIV - - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - 4 / - - COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT CAST( NULL AS SIGNED ) + + col0 * col1 + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT CAST ( NULL AS INTEGER ) + + col0 * col1 + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5250
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col1, - 60 - - ( 25 ) - ( + 42 ) AS col1 FROM tab1
----
3
-77

skipif mysql # not compatible
query II rowsort label-5250
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, - 60 - - ( 25 ) - ( + 42 ) AS col1 FROM tab1
----
3
-77

query I rowsort
SELECT 77 * 1 AS col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col1 * + ( - + col0 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL MIN( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL MIN ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5254
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + - col0 * - col0 AND col0 - col1
----

skipif mysql # not compatible
query III rowsort label-5254
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + - col0 * - col0 AND col0 - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5255
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( - col0 + ( CAST( NULL AS DECIMAL ) ) + - col0 ) AND + 42
----

skipif mysql # not compatible
query III rowsort label-5255
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( - col0 + ( CAST ( NULL AS REAL ) ) + - col0 ) AND + 42
----

query I rowsort
SELECT ALL ( - + col2 ) + + - col0 + - col0 AS col1 FROM tab1
----
-198
-229
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE + col0 + + - col1 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE + col0 + + - col1 IS NOT NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 26 AS col0, - col1 * col2 * 90 col0 FROM tab0
----
26
-18900
26
-342630
26
-8910

query II rowsort
SELECT DISTINCT - - col1 * col2 * - 75 AS col2, col2 + + + 67 * col2 FROM tab1 AS cor0
----
-100800
6528
-22125
4012
-239700
4624

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 79 >= NULL
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT DISTINCT + 28 AS col2, COUNT( * ) FROM tab1 AS cor0
----
28
3

skipif mysql # not compatible
query II rowsort label-5262
SELECT DISTINCT + 28 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - ( + COUNT( * ) ) * 27 col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5263
SELECT ALL - ( + COUNT ( * ) ) * 27 col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 0 * - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 54 AND + - 18
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 * col2 ) = - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 9 * + 64 AS col2 FROM tab2
----
576
576
576

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5270
SELECT DISTINCT + CAST( - col2 AS SIGNED ) DIV - 44 + - + 97 AS col2, col2 * - - col0 - col0 AS col0 FROM tab0
----
-95
9506
-96
690
-97
783

skipif mysql # not compatible
query II rowsort label-5270
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) / - 44 + - + 97 AS col2, col2 * - - col0 - col0 AS col0 FROM tab0
----
-95
9506
-96
690
-97
783

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE + col2 + + - ( - 2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5272
SELECT + 14, + CAST( col0 AS SIGNED ) - ( 93 + col0 ) AS col1 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5272
SELECT + 14, + CAST ( col0 AS INTEGER ) - ( 93 + col0 ) AS col1 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5273
SELECT ALL + col1 DIV col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15

skipif mysql # not compatible
query II rowsort label-5273
SELECT ALL + col1 / col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + - MIN( - + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5274
SELECT + - MIN ( - + col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 52 ) BETWEEN + col1 + + + ( - col1 ) AND - col0 * + 68 + col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 78 ) col0 FROM tab1
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + 32 + - col1 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 84 / 72 * + - col0 NOT BETWEEN + 74 * - ( + col1 ) AND ( - 91 + - 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE col1 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col2 FROM tab1 cor0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 73 ) > + col2 * col0
----

query II rowsort
SELECT ALL + col1, + col2 * col0 FROM tab2
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT DISTINCT col2 + - 96 + + col2 * - CAST( - + col1 AS SIGNED ) AS col2 FROM tab0
----
102
124
3758

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT col2 + - 96 + + col2 * - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0
----
102
124
3758

query I rowsort
SELECT ALL + - col0 / 81 FROM tab0 WHERE ( + ( - col1 ) ) BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT COUNT( * ) col1 FROM tab2 WHERE 64 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5285
SELECT COUNT ( * ) col1 FROM tab2 WHERE 64 IS NOT NULL
----
3

query I rowsort
SELECT + 19 + - + col0 FROM tab2
----
-27
-45
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT 98 - COUNT( * ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 98 - COUNT ( * ) AS col0 FROM tab0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT CAST( NULL AS SIGNED ) * + 46 + + 31 + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT CAST ( NULL AS INTEGER ) * + 46 + + 31 + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL - CAST( + 98 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL < + col1 - 6 + - + 59 + + 17 * - - col0 * + col2 * + col2
----

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - CAST ( + 98 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL < + col1 - 6 + - + 59 + + 17 * - - col0 * + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT 27 + + COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5290
SELECT 27 + + COUNT ( * ) FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT + 37 * + 47 * + 77 * - COUNT( * ) FROM tab1
----
-401709

skipif mysql # not compatible
query I rowsort label-5291
SELECT + 37 * + 47 * + 77 * - COUNT ( * ) FROM tab1
----
-401709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT DISTINCT col0 * + col1 * - CAST( NULL AS SIGNED ) + col0 + + col0 + - col2 - + + 84 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT col0 * + col1 * - CAST ( NULL AS INTEGER ) + col0 + + col0 + - col2 - + + 84 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + + ( - - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5293
SELECT + + ( - - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT 13 * + col2 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + ( - ( 10 ) ) AS col2 FROM tab0 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL COUNT( * ) * + - ( + COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL COUNT ( * ) * + - ( + COUNT ( * ) ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT 52 + + 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT DISTINCT col1 DIV - + 59 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT col1 / - + 59 AS col2 FROM tab2
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT + CAST( + - ( col1 ) AS SIGNED ), + 67 AS col0 FROM tab1
----
-14
67
-47
67
-5
67

skipif mysql # not compatible
query II rowsort label-5301
SELECT + CAST ( + - ( col1 ) AS INTEGER ), + 67 AS col0 FROM tab1
----
-14
67
-47
67
-5
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT 78 * + SUM( + col2 ) FROM tab2
----
9438

skipif mysql # not compatible
query I rowsort label-5302
SELECT 78 * + SUM ( + col2 ) FROM tab2
----
9438

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT - col2 DIV - - 23 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5303
SELECT - col2 / - - 23 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT + - ( - col0 ) + col2 * col0 FROM tab2 WHERE NOT + - 54 IS NULL
----
1104
2624
4425

query II rowsort
SELECT DISTINCT col2, + col0 + - 88 AS col2 FROM tab0
----
10
-1
47
-73
99
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 90 AS col2, - col0 + + 15 col0 FROM tab1
----
90
-36
90
-70
90
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 42 + + + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 42 + + + col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT 71 * - 49 * - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT 71 * - 49 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT ALL - 68 DIV + + 47 + - col1 - 93 + - col0 FROM tab0 AS cor0
----
-190
-192
-202

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - 68 / + + 47 + - col1 - 93 + - col0 FROM tab0 AS cor0
----
-190
-192
-202

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= ( - 81 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT + + 46 IS NOT NULL WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - col2 col0 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL col1, + 58 AS col1 FROM tab1
----
14
58
47
58
5
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2, col1 * 70 FROM tab2
----
23
3570
40
5390
58
4690

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT DISTINCT + COUNT( * ), - MAX( ALL + - 42 ) col2 FROM tab0 AS cor0
----
3
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5316
SELECT DISTINCT + COUNT ( * ), - MAX ( ALL + - 42 ) col2 FROM tab0 AS cor0
----
3
42

onlyif mysql # DIV for integer division: 
query II rowsort label-5317
SELECT - - 54 + col1 AS col2, 62 + + 3 DIV + 1 FROM tab0 AS cor0
----
135
65
55
65
75
65

skipif mysql # not compatible
query II rowsort label-5317
SELECT - - 54 + col1 AS col2, 62 + + 3 / + 1 FROM tab0 AS cor0
----
135
65
55
65
75
65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN + col2 + + + 95 AND NULL AND NOT ( NOT ( NOT col1 >= + ( - col2 ) ) )
----

query I rowsort
SELECT ALL col1 - + + col2 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - ( - col0 )
----

query I rowsort
SELECT DISTINCT + + col0 + 30 AS col0 FROM tab2 AS cor0
----
105
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL 17 + + COUNT( * ) FROM tab1 WHERE + 24 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL 17 + + COUNT ( * ) FROM tab1 WHERE + 24 IS NOT NULL
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT ALL + COUNT( * ) - - MIN( + + CAST( ( + col0 ) AS SIGNED ) ) - + 25 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + COUNT ( * ) - - MIN ( + + CAST ( ( + col0 ) AS INTEGER ) ) - + 25 FROM tab1
----
29

query I rowsort
SELECT - 47 + + - col0 * + col2 FROM tab1
----
-4943
-5062
-6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT - col0 - - - 73 + - CAST( NULL AS SIGNED ) * - col0 + + 14 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - col0 - - - 73 + - CAST ( NULL AS INTEGER ) * - col0 + + 14 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 43 AS col2 FROM tab2 WHERE - col1 * + - 27 - - 36 IS NOT NULL
----
43
43
43

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= col0 + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 + col2 + - col2 + + col1 = 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT - MIN( - + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - MIN ( - + 27 ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT DISTINCT SUM( DISTINCT - - 13 ) col2 FROM tab0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5330
SELECT DISTINCT SUM ( DISTINCT - - 13 ) col2 FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT ALL + - CAST( NULL AS SIGNED ) / col2 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL + - CAST ( NULL AS INTEGER ) / col2 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 9 col2 FROM tab0 AS cor0
----
-135
-783
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT DISTINCT + - SUM( 27 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5333
SELECT DISTINCT + - SUM ( 27 ) FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5334
SELECT - 88 col1, - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-88
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5334
SELECT - 88 col1, - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT 58 DIV + + 20 AS col2 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5335
SELECT 58 / + + 20 AS col2 FROM tab0 AS cor0
----
2
2
2

query II rowsort
SELECT 28 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
28
14
28
47
28
5

query I rowsort
SELECT - + 30 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5338
SELECT ALL col2 AS col2, col1 + ( - CAST( + - col2 AS SIGNED ) ) + + col1 FROM tab1 AS cor0
----
59
69
68
162
96
124

skipif mysql # not compatible
query II rowsort label-5338
SELECT ALL col2 AS col2, col1 + ( - CAST ( + - col2 AS INTEGER ) ) + + col1 FROM tab1 AS cor0
----
59
69
68
162
96
124

query I rowsort
SELECT + - col2 * - + col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5340
SELECT ALL * FROM tab0 WHERE NOT ( col2 * - 22 + col1 + + col0 + - - 27 + - + CAST( + + 39 AS SIGNED ) + + col0 + + CAST( - col0 AS SIGNED ) * 35 * - col1 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5340
SELECT ALL * FROM tab0 WHERE NOT ( col2 * - 22 + col1 + + col0 + - - 27 + - + CAST ( + + 39 AS INTEGER ) + + col0 + + CAST ( - col0 AS INTEGER ) * 35 * - col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 + 23 AS col0 FROM tab2
----
69
87
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - ( ( - ( ( col0 ) ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT DISTINCT + ( ( - 57 ) ) AS col1, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57
9

skipif mysql # not compatible
query II rowsort label-5344
SELECT DISTINCT + ( ( - 57 ) ) AS col1, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-57
9

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( ( NULL ) BETWEEN + col2 AND - 43 )
----

query I rowsort
SELECT ALL + 43 + - 96 * col2 FROM tab2 AS cor0
----
-2165
-3797
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - SUM( + 15 ) AS col2 FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5347
SELECT - SUM ( + 15 ) AS col2 FROM tab2 cor0
----
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 + - 33 + - col1 * 9 * + col2 * + 83 + - + 89 + 59 * - + 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 44 - + col2 + - - col1 FROM tab1
----
-10
-38
23

query I rowsort
SELECT ALL 92 + 9 FROM tab1
----
101
101
101

query I rowsort
SELECT DISTINCT - col1 - col0 + + - 74 * - + col2 AS col1 FROM tab0
----
3382
632
7228

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT + 16 - - + COUNT( * ) col0 FROM tab0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5353
SELECT DISTINCT + 16 - - + COUNT ( * ) col0 FROM tab0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT ALL + CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + col0 NOT BETWEEN NULL AND 47 - - ( + 45 ) * + 78
----

query I rowsort
SELECT + + 64 * - + col2 AS col1 FROM tab2 AS cor0
----
-1472
-2560
-3712

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 20 * - ( - 84 ) ) IS NOT NULL
----

query I rowsort
SELECT - 78 * - 83 AS col2 FROM tab0
----
6474
6474
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 73 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + 73 AND + col1
----
0

query I rowsort
SELECT ALL + col1 * - + 97 AS col2 FROM tab1
----
-1358
-4559
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT COUNT( * ) + 22 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5361
SELECT COUNT ( * ) + 22 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + COUNT( * ) * - 27 * + + 22 AS col1 FROM tab0
----
-1782

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + COUNT ( * ) * - 27 * + + 22 AS col1 FROM tab0
----
-1782

query I rowsort
SELECT col1 + - col2 * - - 54 FROM tab0
----
-2457
-519
-5345

query I rowsort
SELECT - col2 + - col1 + - col0 - - 26 * - col0 + + + 86 AS col2 FROM tab1
----
-1401
-2273
-2486

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + col2 * + - col0 BETWEEN - col2 AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5367
SELECT - CAST( NULL AS DECIMAL ) + - col1 + + + 40 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT - CAST ( NULL AS REAL ) + - col1 + + + 40 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5369
SELECT - col1 AS col1, - col2 * - CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
-51
-529
-67
-3364
-77
-1600

skipif mysql # not compatible
query II rowsort label-5369
SELECT - col1 AS col1, - col2 * - CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
-51
-529
-67
-3364
-77
-1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT + 37 / - + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + 37 / - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 33 - + - col2 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 - + col1 * + + col1 + - 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT ALL + 61 DIV 71 * + 85 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + 61 / 71 * + 85 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL - COUNT( * ) * 55 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL - COUNT ( * ) * 55 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL - MIN( - CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) ) + - + COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - MIN ( - CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + COUNT( * ) + - + 91 AS col2 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5377
SELECT + COUNT ( * ) + - + 91 AS col2 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT ALL 76 * 31 * - 60 * col0 + ( - + col0 ) FROM tab0
----
-12298407
-13712017
-2120415

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT MAX( ALL + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5379
SELECT MAX ( ALL + + col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL CAST( - 63 AS SIGNED ) - + + COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL CAST ( - 63 AS INTEGER ) - + + COUNT ( * ) FROM tab2
----
-66

query I rowsort
SELECT ALL + col0 * + - col1 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - 15 AS col1 FROM tab1 cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) NOT IN ( + col1, col1 + - 72, + 26 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT MIN( - 98 ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT MIN ( - 98 ) FROM tab0
----
-98

query I rowsort
SELECT + 37 + - + 80 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query III rowsort
SELECT * FROM tab1 WHERE NOT 59 * col2 - - col0 + + col2 * col2 * + col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + + + col1 + col0 FROM tab2 AS cor0
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL + - 13 + - + SUM( DISTINCT - ( - - col0 ) ) FROM tab1 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + - 13 + - + SUM ( DISTINCT - ( - - col0 ) ) FROM tab1 AS cor0
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL + - ( ( + 74 ) ) + + COUNT( DISTINCT + + 31 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + - ( ( + 74 ) ) + + COUNT ( DISTINCT + + 31 ) FROM tab1 AS cor0
----
-73

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <> + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT DISTINCT - + 42 DIV col2 * 75 + - - 0 FROM tab0 AS cor0
----
-300
0

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - + 42 / col2 * 75 + - - 0 FROM tab0 AS cor0
----
-300
0

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 WHERE NOT col2 / - 64 * col2 BETWEEN NULL AND - 88 - + col1 + col0
----
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL - COUNT( * ) * 74 AS col0 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - COUNT ( * ) * 74 AS col0 FROM tab2
----
-222

query I rowsort
SELECT DISTINCT - 99 * + - ( + ( - - 32 ) ) AS col0 FROM tab2
----
3168

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT - col0 * - 51 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * 34 AS col0 FROM tab0
----
-2754
-34
-714

query I rowsort
SELECT ALL - 68 AS col0 FROM tab2 cor0
----
-68
-68
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 95 * 85 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 90 * col2 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT - - CAST( + - col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5401
SELECT - - CAST ( + - col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + 64 * col0 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 / - col0 FROM tab2 AS cor0 WHERE NOT + col0 <> - - 21
----

query I rowsort
SELECT + + col2 * + + col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT 5 * - 71 AS col2 FROM tab1 AS cor0
----
-355
-355
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL - COUNT( DISTINCT + 84 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - COUNT ( DISTINCT + 84 ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT MIN( ( + col1 ) ) * + COUNT( * ) - - 29 + + MAX( 58 ) AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT MIN ( ( + col1 ) ) * + COUNT ( * ) - - 29 + + MAX ( 58 ) AS col2 FROM tab1 AS cor0
----
102

query I rowsort
SELECT - col1 - 55 FROM tab0 AS cor0
----
-136
-56
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5409
SELECT ALL 79 * - - col1 + col0 col2, CAST( NULL AS SIGNED ) / col0 * - col1 + col0 FROM tab0 AS cor0
----
1746
NULL
176
NULL
6414
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5409
SELECT ALL 79 * - - col1 + col0 col2, CAST ( NULL AS INTEGER ) / col0 * - col1 + col0 FROM tab0 AS cor0
----
1746
NULL
176
NULL
6414
NULL

query I rowsort
SELECT + col0 * - 35 AS col2 FROM tab0 AS cor0
----
-3045
-3395
-525

onlyif mysql # DIV for integer division: 
query II rowsort label-5411
SELECT DISTINCT - col1 DIV col0, + col1 * 23 AS col1 FROM tab1
----
0
1081
0
115
0
322

skipif mysql # not compatible
query II rowsort label-5411
SELECT DISTINCT - col1 / col0, + col1 * 23 AS col1 FROM tab1
----
0
1081
0
115
0
322

query II rowsort
SELECT + 85 * - - col1, col2 AS col1 FROM tab0
----
1785
10
6885
47
85
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 90 + - col1 * - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL + - MIN( + + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + - MIN ( + + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ( + ( - col1 ) ) * + 76 FROM tab0
----
-1596
-6156
-76

query I rowsort
SELECT DISTINCT 46 + - + col2 FROM tab1 AS cor0
----
-13
-22
-50

query I rowsort
SELECT DISTINCT 34 FROM tab0 AS cor0 WHERE ( NOT ( - col2 IS NOT NULL ) )
----

query II rowsort
SELECT + 58 AS col2, - 6 FROM tab2 cor0
----
58
-6
58
-6
58
-6

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE - col1 + - + ( + - col0 ) NOT BETWEEN - 11 AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5420
SELECT DISTINCT 21 AS col1, + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 cor0
----
21
9

skipif mysql # not compatible
query II rowsort label-5420
SELECT DISTINCT 21 AS col1, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
21
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 45 * - + col0 FROM tab2 WHERE - - col1 - - + 66 IS NOT NULL
----
-2070
-2880
-3375

query II rowsort
SELECT DISTINCT ( - + 15 ), + col2 AS col0 FROM tab2
----
-15
23
-15
40
-15
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL - COUNT( - 48 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL - COUNT ( - 48 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT ALL + col0 AS col1, + 61 AS col2 FROM tab1
----
51
61
85
61
91
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT SUM( ALL + 43 ) + - COUNT( * ) + - 13 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-5426
SELECT SUM ( ALL + 43 ) + - COUNT ( * ) + - 13 FROM tab0
----
113

query I rowsort
SELECT 24 * - + col0 * 45 + - + col2 * col0 AS col1 FROM tab2
----
-50738
-71680
-85350

query II rowsort
SELECT - col2 AS col0, ( col1 ) + col0 * + 7 AS col0 FROM tab2
----
-23
373
-40
525
-58
592

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + col2 + - + col1 * col2 > NULL
----

query I rowsort
SELECT ALL + 80 + 89 FROM tab2 cor0
----
169
169
169

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + 30
----

query II rowsort
SELECT + col1 AS col1, - ( - col1 ) AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT COUNT( + 97 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT COUNT ( + 97 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 54 + 27 AS col1 FROM tab0
----
81
81
81

query I rowsort
SELECT DISTINCT + - 86 - - 40 AS col2 FROM tab1 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5436
SELECT - col0 - 57 - col0, col1 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-5436
SELECT - col0 - 57 - col0, col1 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - 6 * + 25 * - 4 * col2 AS col2 FROM tab0 cor0
----
28200
59400
6000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT - MIN( ALL + col1 ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5438
SELECT - MIN ( ALL + col1 ) / - - COUNT ( * ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + - 97 * - + 32 * + 80 + + - SUM( + - col2 ) AS col2 FROM tab2 AS cor0
----
248441

skipif mysql # not compatible
query I rowsort label-5439
SELECT + - 97 * - + 32 * + 80 + + - SUM ( + - col2 ) AS col2 FROM tab2 AS cor0
----
248441

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL col1 DIV ( col1 ) col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5440
SELECT ALL col1 / ( col1 ) col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5441
SELECT - 29 DIV - - SUM( DISTINCT - 12 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5441
SELECT - 29 / - - SUM ( DISTINCT - 12 ) FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5442
SELECT DISTINCT + + ( + CAST( - + 45 AS SIGNED ) ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + + ( + CAST ( - + 45 AS INTEGER ) ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - 32 * - + COUNT( DISTINCT - col1 ) * + MIN( ALL + - col0 ) + + SUM( ALL - col2 ) FROM tab1
----
-8959

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - 32 * - + COUNT ( DISTINCT - col1 ) * + MIN ( ALL + - col0 ) + + SUM ( ALL - col2 ) FROM tab1
----
-8959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) / ( - col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) / ( - col0 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 9 * + col0 FROM tab0 WHERE + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( + col0 ) / + col1 + - + 35 / + + col0 + - + ( + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - MAX( ( 56 ) ) AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - MAX ( ( 56 ) ) AS col2 FROM tab2 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5450
SELECT - + col2 AS col1, - col0 + + ( - - 11 ) * + + col0 + col2 * - CAST( NULL AS SIGNED ) * 66 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5450
SELECT - + col2 AS col1, - col0 + + ( - - 11 ) * + + col0 + col2 * - CAST ( NULL AS INTEGER ) * 66 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + 52 * - + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + 52 * - + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - col1 + - col1 col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5454
SELECT DISTINCT + ( - col2 ) DIV ( + + 75 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + ( - col2 ) / ( + + 75 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 8 > NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + col1 - col0 FROM tab1 AS cor0
----
-23
-75
3

query I rowsort
SELECT ALL 25 + col0 AS col0 FROM tab0 AS cor0
----
112
122
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 78 col1 FROM tab0 AS cor0
----
159
79
99

query I rowsort
SELECT - - 38 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
38
38
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col1 + - col2 + - + col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT CAST( NULL AS SIGNED ) - - - col2 + - col1 * + + col1 * + 13 - + 55 + col0 * - - col0 * 76 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT CAST ( NULL AS INTEGER ) - - - col2 + - col1 * + + col1 * + 13 - + 55 + col0 * - - col0 * 76 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL + COUNT( + + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 - col0 + - 7 + + CAST( NULL AS SIGNED ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL + COUNT ( + + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 - col0 + - 7 + + CAST ( NULL AS INTEGER ) AND - col1
----
0

query II rowsort
SELECT ALL - ( + - col1 ) * 7, + col2 FROM tab1
----
329
68
35
59
98
96

query III rowsort
SELECT * FROM tab0 WHERE + 1 < - col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + + col1 IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT + + COUNT( * ) + - + 41 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT + + COUNT ( * ) + - + 41 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT ALL 41 - + col2 + 97 * - col1 FROM tab1
----
-1413
-4586
-503

query I rowsort
SELECT + 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab0 WHERE 99 NOT BETWEEN NULL AND 59 - + - 78 / col0
----
97

query I rowsort
SELECT DISTINCT + + col0 * + col2 * 12 FROM tab1 AS cor0
----
58752
60180
74256

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL + - COUNT( + 20 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + - COUNT ( + 20 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5473
SELECT ALL - 30 DIV 10 + - MIN( + col1 ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - 30 / 10 + - MIN ( + col1 ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - col2 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - - 8 AND + col2
----
-5015
-6188

query I rowsort
SELECT 34 * + + 2 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT + col1 / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT + col1 / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL - MAX( - + ( - + col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL - MAX ( - + ( - + col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + 92 * - + COUNT( * ) AS col1 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-5478
SELECT + 92 * - + COUNT ( * ) AS col1 FROM tab2
----
-276

query II rowsort
SELECT ALL - col2 * col2 AS col1, + 0 AS col0 FROM tab2
----
-1600
0
-3364
0
-529
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT DISTINCT COUNT( * ) * - MAX( ( col2 ) ) AS col0 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-5480
SELECT DISTINCT COUNT ( * ) * - MAX ( ( col2 ) ) AS col0 FROM tab2
----
-174

query I rowsort
SELECT ALL ( + 42 ) * - col2 AS col2 FROM tab0
----
-1974
-4158
-420

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col1 ) >= ( 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) col1 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT ALL + col1 DIV + - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + col1 / + - col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 * - 65 * 62 AS col2 FROM tab1
----
189410
20150
56420

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT ALL 59 DIV - + col2 col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT ALL 59 / - + col2 col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT - ( ( + 89 ) ) * + 82 AS col2 FROM tab0 AS cor0
----
-7298
-7298
-7298

query I rowsort
SELECT + - col0 + + - 63 + + 34 AS col0 FROM tab2 cor0
----
-104
-75
-93

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE 20 * col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5490
SELECT + COUNT( * ) * 84 + + - 81 DIV - + COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5490
SELECT + COUNT ( * ) * 84 + + - 81 / - + COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT + col1 * + + 0 + + + col1 + - + 11 + 87 * col2 + - col1 DIV 47 FROM tab1 AS cor0
----
5127
5951
8355

skipif mysql # not compatible
query I rowsort label-5492
SELECT + col1 * + + 0 + + + col1 + - + 11 + 87 * col2 + - col1 / 47 FROM tab1 AS cor0
----
5127
5951
8355

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5493
SELECT * FROM tab0 AS cor0 WHERE + 32 >= + CAST( + col2 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-5493
SELECT * FROM tab0 AS cor0 WHERE + 32 >= + CAST ( + col2 AS INTEGER )
----
87
21
10

query I rowsort
SELECT - col2 + 47 FROM tab1 AS cor0
----
-12
-21
-49

query I rowsort
SELECT - col1 * + 14 * + + col0 + + col0 AS col2 FROM tab1
----
-5865
-59787
-9945

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT 11 + + COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5497
SELECT 11 + + COUNT ( * ) FROM tab0
----
14

query I rowsort
SELECT ( - ( + + col0 ) ) * 43 + + col2 FROM tab2
----
-1955
-2712
-3167

onlyif mysql # DIV for integer division: 
query II rowsort label-5499
SELECT 59 DIV - col0, + col2 AS col0 FROM tab2
----
-1
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-5499
SELECT 59 / - col0, + col2 AS col0 FROM tab2
----
-1
23
0
40
0
58

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL IN ( + ( - col0 ) + - col0, - 21, col0 )
----

query I rowsort
SELECT ALL + - col1 + + - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

query II rowsort
SELECT + col1 - + 72 AS col1, 18 * + col0 AS col0 FROM tab2 AS cor0
----
-21
828
-5
1350
5
1152

query I rowsort
SELECT DISTINCT - 51 + col0 AS col0 FROM tab0 WHERE NULL IN ( col2 + ( + - 51 ), ( col1 ) )
----

query I rowsort
SELECT ALL 75 * - col0 FROM tab1 cor0
----
-3825
-6375
-6825

query II rowsort
SELECT DISTINCT col2, 49 FROM tab2 AS cor0
----
23
49
40
49
58
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + 65 * + SUM( DISTINCT 3 ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 65 * + SUM ( DISTINCT 3 ) FROM tab0 AS cor0
----
195

query I rowsort
SELECT - col2 * + 39 FROM tab2 cor0
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5508
SELECT - - COUNT( * ) DIV - - 83 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5508
SELECT - - COUNT ( * ) / - - 83 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * - 29 AS col0 FROM tab0 AS cor0
----
-2349
-29
-609

query I rowsort
SELECT col2 * + - 19 FROM tab1
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL ( - + COUNT( * ) ) * + - COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL ( - + COUNT ( * ) ) * + - COUNT ( * ) AS col2 FROM tab1
----
9

query III rowsort
SELECT ALL 55 * - col2 * col0 * + col2 AS col2, ( col1 ) + + + 31 - - 52 * + col0, - ( + + col2 ) AS col2 FROM tab1
----
9 values hashing to 8403e53035010b58c68b41aad95b5a72

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE ( NULL <> col1 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL <> col1 + + col0 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = - 49 + + 76
----

query I rowsort
SELECT DISTINCT - 88 * - + 10 FROM tab1 cor0
----
880

query I rowsort
SELECT + 71 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + + MIN( col1 ) * + - 84 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5517
SELECT + + MIN ( col1 ) * + - 84 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - MIN( ALL - ( col0 ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5518
SELECT - MIN ( ALL - ( col0 ) ) FROM tab2 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN + - col2 + - - col1 AND NULL
----

query II rowsort
SELECT - - col2 * + col0, col2 FROM tab1 AS cor0
----
4896
96
5015
59
6188
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + COUNT( * ) * + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COUNT ( * ) * + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - MIN( - + 36 ) AS col0 FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-5522
SELECT - MIN ( - + 36 ) AS col0 FROM tab2 cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 2 AND NULL
----

query I rowsort
SELECT DISTINCT + 94 + + col1 AS col2 FROM tab2 AS cor0
----
145
161
171

query I rowsort
SELECT ALL - 65 - - - col1 * - + 31 FROM tab1 AS cor0
----
1392
369
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT - 94 * - COUNT( ALL + col0 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT - 94 * - COUNT ( ALL + col0 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL COUNT( * ) + - MAX( 72 ) AS col2 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL COUNT ( * ) + - MAX ( 72 ) AS col2 FROM tab2 cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL BETWEEN + - 63 - - col2 AND + 69
----

query I rowsort
SELECT DISTINCT col2 * + 54 + - - col1 FROM tab0
----
2619
5347
561

query I rowsort
SELECT ALL col1 - - ( + 73 ) + - col0 FROM tab0
----
-23
139
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT col2 + + 47 * + 21 + - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
987
987
987

skipif mysql # not compatible
query I rowsort label-5532
SELECT col2 + + 47 * + 21 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
987
987
987

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - - 21 * col1 AS col0 FROM tab2
----
1025
1332
1553

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + - MIN( + 25 ) AS col1 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5535
SELECT + - MIN ( + 25 ) AS col1 FROM tab0 cor0
----
-25

query I rowsort
SELECT DISTINCT - 26 * 30 + + 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-688

query I rowsort
SELECT ALL + - 52 FROM tab0 cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - 96 AS col0 FROM tab2 cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL - - CAST( + SUM( ALL col0 ) AS SIGNED ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - - CAST ( + SUM ( ALL col0 ) AS INTEGER ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT ALL ( - COUNT( * ) ) * - 64 AS col1, ( - - 19 ) AS col1 FROM tab0
----
192
19

skipif mysql # not compatible
query II rowsort label-5540
SELECT ALL ( - COUNT ( * ) ) * - 64 AS col1, ( - - 19 ) AS col1 FROM tab0
----
192
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ( - 92 ) * 79 + + COUNT( * ) FROM tab2
----
-7265

skipif mysql # not compatible
query I rowsort label-5541
SELECT ( - 92 ) * 79 + + COUNT ( * ) FROM tab2
----
-7265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * + 3 * - - 30 col1 FROM tab1
----
6390
6390
6390

query I rowsort
SELECT 89 * - 48 * col1 FROM tab2
----
-217872
-286224
-328944

query I rowsort
SELECT ( + col1 ) * + 87 FROM tab1
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT - 41 * + COUNT( * ) + + 24, - 68 AS col0 FROM tab1
----
-99
-68

skipif mysql # not compatible
query II rowsort label-5545
SELECT - 41 * + COUNT ( * ) + + 24, - 68 AS col0 FROM tab1
----
-99
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL - + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - + MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, 23 col1 FROM tab2
----
51
23
67
23
77
23

query II rowsort
SELECT ALL + 70, col2 + - - col2 + + + 22 AS col1 FROM tab1 AS cor0
----
70
140
70
158
70
214

query II rowsort
SELECT ALL ( + col1 ) AS col2, ( col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT ALL - 77 + - COUNT( * ) AS col0, 93 FROM tab2 AS cor0
----
-80
93

skipif mysql # not compatible
query II rowsort label-5550
SELECT ALL - 77 + - COUNT ( * ) AS col0, 93 FROM tab2 AS cor0
----
-80
93

query I rowsort
SELECT - col1 + 22 AS col1 FROM tab1 cor0
----
-25
17
8

query I rowsort
SELECT col0 + - + col2 - - + col2 * - 39 FROM tab1 AS cor0
----
-2275
-2629
-3789

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 65 / + - 67 * - col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT - COUNT( DISTINCT - + col1 ) + + MAX( DISTINCT - - 64 ) AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT - COUNT ( DISTINCT - + col1 ) + + MAX ( DISTINCT - - 64 ) AS col1 FROM tab1 AS cor0
----
61

query I rowsort
SELECT DISTINCT - 8 - + col1 - + col2 FROM tab2 AS cor0
----
-125
-133
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT SUM( - - ( - col0 ) ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5557
SELECT SUM ( - - ( - col0 ) ) col1 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT DISTINCT CAST( + - ( + 3 ) AS SIGNED ) + + col0 AS col2 FROM tab2
----
43
61
72

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT CAST ( + - ( + 3 ) AS INTEGER ) + + col0 AS col2 FROM tab2
----
43
61
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5559
SELECT ALL - MIN( ALL + 35 ), SUM( ALL + - 60 ) AS col2 FROM tab2
----
-35
-180

skipif mysql # not compatible
query II rowsort label-5559
SELECT ALL - MIN ( ALL + 35 ), SUM ( ALL + - 60 ) AS col2 FROM tab2
----
-35
-180

query I rowsort
SELECT DISTINCT 72 * - 1 * + 70 AS col1 FROM tab1
----
-5040

query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab1 cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5562
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 62, col1 / - col0 + col1, - - ( + col0 ) / + 74, + col2 / - 38, + CAST( NULL AS SIGNED ) - + + 73 )
----

skipif mysql # not compatible
query III rowsort label-5562
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 62, col1 / - col0 + col1, - - ( + col0 ) / + 74, + col2 / - 38, + CAST ( NULL AS INTEGER ) - + + 73 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT 59 DIV - - COUNT( * ) col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5563
SELECT 59 / - - COUNT ( * ) col1 FROM tab2 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT 60 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT 60 / + col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - ( + + ( - col1 ) ) FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - col0 * + 50
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5567
SELECT col1 AS col0, - col0 DIV + 6 AS col0 FROM tab1 AS cor0
----
14
-8
47
-15
5
-14

skipif mysql # not compatible
query II rowsort label-5567
SELECT col1 AS col0, - col0 / + 6 AS col0 FROM tab1 AS cor0
----
14
-8
47
-15
5
-14

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 49 * + col2 / - 25 + + 29
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
10
47
99

query II rowsort
SELECT 8 AS col1, + 71 AS col0 FROM tab1 AS cor0
----
8
71
8
71
8
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5571
SELECT - COUNT( 67 ) DIV + 46, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-5571
SELECT - COUNT ( 67 ) / + 46, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0
-3

query I rowsort
SELECT ALL col0 * - col2 + - 88 AS col2 FROM tab2
----
-1146
-2648
-4438

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - 89 * + MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
4539

skipif mysql # not compatible
query I rowsort label-5574
SELECT - 89 * + MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
4539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5575
SELECT + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT + 56 * - - 55 FROM tab1
----
3080
3080
3080

query I rowsort
SELECT - ( - 74 ) FROM tab1
----
74
74
74

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + - ( 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT + - COUNT( * ) + 57 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT + - COUNT ( * ) + 57 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL + 71 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + 71 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + COUNT( * ) FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + COUNT ( * ) FROM tab2, tab2 cor0
----
9

query I rowsort
SELECT DISTINCT 75 - + col1 + - col2 * - 28 AS col1 FROM tab1
----
1722
1932
2749

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 20 ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT SUM( + + 45 ) * + + COUNT( * ) col1 FROM tab1, tab0 AS cor0
----
3645

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5584
SELECT DISTINCT SUM ( + + 45 ) * + + COUNT ( * ) col1 FROM tab1, tab0 AS cor0
----
3645

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5585
SELECT ALL - 97 + 4 * COUNT( * ) AS col1, + COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-5585
SELECT ALL - 97 + 4 * COUNT ( * ) AS col1, + COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-61
NULL

query I rowsort
SELECT - 12 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-708
-816

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL col2 * + CAST( NULL AS SIGNED ) * 91 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) * 91 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 88 - + - 24 FROM tab2 AS cor0 WHERE 16 * - col2 - + col2 * col0 < + col2 / + + ( col2 )
----
158
176
187

query I rowsort
SELECT DISTINCT - + col0 + + + col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT + - col1 * + 30 - - + col1 DIV - ( + 93 ) FROM tab0 AS cor0
----
-2430
-30
-630

skipif mysql # not compatible
query I rowsort label-5591
SELECT + - col1 * + 30 - - + col1 / - ( + 93 ) FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) + - 35 * + - COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) + - 35 * + - COUNT ( * ) FROM tab2 AS cor0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5593
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 44 * - CAST( NULL AS SIGNED ) AND + 45
----

skipif mysql # not compatible
query III rowsort label-5593
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 44 * - CAST ( NULL AS INTEGER ) AND + 45
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + col0 ) ) IN ( ( - + col0 ), 12 )
----

query I rowsort
SELECT ALL 11 - + 29 FROM tab0 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab1 WHERE col2 IS NOT NULL AND NULL <= + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 57 + + 49 AS col0 FROM tab2 WHERE - 99 + - 95 / col1 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 57 + + 49 AS col0 FROM tab2 WHERE - 99 + - 95 / col1 IS NOT NULL
----
97

query II rowsort
SELECT 72 * col0 AS col1, ( + - col2 ) FROM tab0
----
1080
-47
6264
-10
6984
-99

query I rowsort
SELECT + 33 * + col2 AS col0 FROM tab0
----
1551
3267
330

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 76 AND - 61 + - col2 * - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 27 col0 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT - 93 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT 74 DIV - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-5603
SELECT 74 / - COUNT ( * ) FROM tab1
----
-24

query II rowsort
SELECT DISTINCT + col2 * + + col2, - col0 AS col0 FROM tab1
----
3481
-85
4624
-91
9216
-51

query II rowsort
SELECT ALL - 25 * - - col1 AS col0, + col1 FROM tab1 AS cor0
----
-1175
47
-125
5
-350
14

query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, + 85 AS col0 FROM tab1
----
59
85
68
85
96
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT - COUNT( * ) * + 12 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT - COUNT ( * ) * + 12 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - COUNT( * ) - - 99 FROM tab0 WHERE ( ( + col2 + - col2 IS NULL ) )
----
99

skipif mysql # not compatible
query I rowsort label-5610
SELECT - COUNT ( * ) - - 99 FROM tab0 WHERE ( ( + col2 + - col2 IS NULL ) )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT COUNT( * ) DIV - - 67 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5611
SELECT COUNT ( * ) / - - 67 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL - 99 + COUNT( * ) + + MIN( - 55 ) FROM tab1
----
-151

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - 99 + COUNT ( * ) + + MIN ( - 55 ) FROM tab1
----
-151

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * - ( col1 ) ) IN ( - col1 )
----
97
1
99

query II rowsort
SELECT - 38, + col1 * + col1 AS col0 FROM tab0 cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5615
SELECT + + COUNT( * ), COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5615
SELECT + + COUNT ( * ), COUNT ( * ) FROM tab1 cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) = - 86
----

query I rowsort
SELECT 28 * col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + col0 * 34 AS col1 FROM tab0
----
2958
3298
510

query III rowsort
SELECT * FROM tab0 WHERE col0 / col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col1 + col2 * col0 AS col1 FROM tab2
----
-115
-520
464

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 0 ) BETWEEN NULL AND col2 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col0 ) IN ( - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - 23 ) + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT CAST( NULL AS SIGNED ) - COUNT( ALL - col0 + 9 ) * + 78 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT CAST ( NULL AS INTEGER ) - COUNT ( ALL - col0 + 9 ) * + 78 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT DISTINCT - COUNT( ALL + CAST( 92 AS SIGNED ) ) * MIN( DISTINCT col2 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT - COUNT ( ALL + CAST ( 92 AS INTEGER ) ) * MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab1 WHERE NOT NULL = ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT DISTINCT MIN( DISTINCT + ( + col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT MIN ( DISTINCT + ( + col0 ) ) FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT DISTINCT + ( 62 ) - COUNT( * ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT + ( 62 ) - COUNT ( * ) FROM tab2
----
59

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( 31 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT ALL col1 DIV col1 + col2 * col2 FROM tab1
----
3482
4625
9217

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL col1 / col1 + col2 * col2 FROM tab1
----
3482
4625
9217

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + col0 BETWEEN NULL AND + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( 46 ) * 82 AS col2 FROM tab1 cor0 WHERE NOT col1 / ( - col2 ) IS NULL
----
3772
3772
3772

query I rowsort
SELECT DISTINCT + 95 * ( 18 ) FROM tab2 AS cor0
----
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - 9 DIV + 28 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT - 9 / + 28 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 90 ) IS NOT NULL
----

query I rowsort
SELECT 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL 64 * + col0 FROM tab0
----
5568
6208
960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5640
SELECT DISTINCT 49 DIV - MAX( ALL - 63 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT 49 / - MAX ( ALL - 63 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT + col0 + + 80 AS col0 FROM tab2
----
126
144
155

query I rowsort
SELECT DISTINCT + - ( col2 ) * 68 + - col1 AS col1 FROM tab1 AS cor0
----
-4017
-4671
-6542

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT - - SUM( 39 ) + 31 AS col1 FROM tab0 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT - - SUM ( 39 ) + 31 AS col1 FROM tab0 AS cor0
----
148

query I rowsort
SELECT ALL ( 98 ) AS col2 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT - - 64 * COUNT( * ) + COUNT( * ) * - 51 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT - - 64 * COUNT ( * ) + COUNT ( * ) * - 51 FROM tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT - + col2 * - 88 FROM tab2 cor0
----
2024
3520
5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT DISTINCT col2 + - - col1 - CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT col2 + - - col1 - CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT + CAST( 19 AS SIGNED ) * 2 FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5649
SELECT + CAST ( 19 AS INTEGER ) * 2 FROM tab0
----
38
38
38

query I rowsort
SELECT ALL - col2 * - + 36 * 10 FROM tab0
----
16920
35640
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT ( - 77 ) + 94 * + COUNT( * ) FROM tab0
----
205

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT ( - 77 ) + 94 * + COUNT ( * ) FROM tab0
----
205

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col1 * 15 )
----

query I rowsort
SELECT col2 * + - 26 AS col1 FROM tab1
----
-1534
-1768
-2496

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + 54 * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL 70 + - + MAX( col1 ) AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL 70 + - + MAX ( col1 ) AS col2 FROM tab0
----
-11

query I rowsort
SELECT ALL - col2 * + 13 AS col2 FROM tab1
----
-1248
-767
-884

query I rowsort
SELECT + 61 - + col2 FROM tab1 WHERE NULL IS NULL
----
-35
-7
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT CAST( NULL AS SIGNED ) + 32 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT CAST ( NULL AS INTEGER ) + 32 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 82 * col0 BETWEEN col2 AND col1 - + col0
----

query I rowsort
SELECT col1 * + col0 + col1 FROM tab0 WHERE col1 BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT ALL col2 * + 0 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL col2 * + 0 / col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT ALL + ( 54 ) * CAST( MAX( col1 ) AS SIGNED ) + COUNT( * ) FROM tab2
----
4161

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + ( 54 ) * CAST ( MAX ( col1 ) AS INTEGER ) + COUNT ( * ) FROM tab2
----
4161

query I rowsort
SELECT + - col1 * + col2 + 85 FROM tab2 AS cor0
----
-1088
-2995
-3801

query I rowsort
SELECT - col2 + + 43 FROM tab2 AS cor0
----
-15
20
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 <> + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 + - col1 col2 FROM tab0 AS cor0
----
-112
-172
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5668
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( 82 ) FROM tab2 WHERE ( - 41 ) BETWEEN ( col1 ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( 82 ) FROM tab2 WHERE ( - 41 ) BETWEEN ( col1 ) AND col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 57 + - 80 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - 48 * ( - col1 ) FROM tab0 AS cor0
----
3807
47
987

query I rowsort
SELECT col0 - + + 41 AS col1 FROM tab2 cor0
----
23
34
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 67 * - 29 + ( + col0 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5674
SELECT + - CAST( 9 AS SIGNED ) * COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT + - CAST ( 9 AS INTEGER ) * COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col0, + 83 FROM tab2 AS cor0
----
23
83
40
83
58
83

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN + col2 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 71 AS col0, col2 AS col2 FROM tab0 AS cor0
----
-71
10
-71
47
-71
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < ( + col1 ) OR NOT - ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 62 = col0
----

query I rowsort
SELECT 17 * col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT CAST( NULL AS SIGNED ) + col0 * - col0 AS col0 FROM tab0 WHERE NOT + + CAST( + + col2 AS SIGNED ) * CAST( + col1 AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT CAST ( NULL AS INTEGER ) + col0 * - col0 AS col0 FROM tab0 WHERE NOT + + CAST ( + + col2 AS INTEGER ) * CAST ( + col1 AS INTEGER ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5683
SELECT ALL col0, + 13 DIV - 79 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-5683
SELECT ALL col0, + 13 / - 79 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT DISTINCT col2 * CAST( - col1 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT col2 * CAST ( - col1 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * MAX( - + col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * MAX ( - + col1 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 61 * + 84 + - 78 + col2 + col2 AS col2 FROM tab2 AS cor0
----
5092
5126
5162

query I rowsort
SELECT ALL + 82 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) <> + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 + + + col2 IS NULL
----

query I rowsort
SELECT ALL - 68 + - col1 * - 99 FROM tab0 AS cor0
----
2011
31
7951

query I rowsort
SELECT ALL col0 * + + 14 AS col0 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT col0 + + 27 FROM tab1 AS cor0
----
112
118
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5692
SELECT col2 + + CAST( NULL AS SIGNED ) - - - 2 * + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT col2 + + CAST ( NULL AS INTEGER ) - - - 2 * + - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - + 50 ) NOT BETWEEN + 72 - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2, - col1 AS col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5695
SELECT ALL - ( + - col2 ) DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - ( + - col2 ) / + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT SUM( ALL - col0 ) AS col1, 98 AS col2 FROM tab1
----
-227
98

skipif mysql # not compatible
query II rowsort label-5696
SELECT SUM ( ALL - col0 ) AS col1, 98 AS col2 FROM tab1
----
-227
98

query II rowsort
SELECT col1, col1 + - - col2 FROM tab0
----
1
100
21
31
81
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 1 col1, col1 * - col1 FROM tab1 AS cor0
----
-1
-196
-1
-2209
-1
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col0 ) <> + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + COUNT( * ) - - ( + 57 ) AS col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5700
SELECT + COUNT ( * ) - - ( + 57 ) AS col2 FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT - + col0 * + 89 + - + col0 AS col1 FROM tab0 AS cor0
----
-1350
-7830
-8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5702
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) - + col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT + col0 - - ( + + col2 ) AS col1 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 20 + col1 / - - col2 - + + ( + col1 ) + - 65 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 20 + col1 / - - col2 - + + ( + col1 ) + - 65 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5706
SELECT * FROM tab2 cor0 WHERE NOT CAST( 92 AS SIGNED ) < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5706
SELECT * FROM tab2 cor0 WHERE NOT CAST ( 92 AS INTEGER ) < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col1 FROM tab2 cor0
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + + col1 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT COUNT( DISTINCT + ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5709
SELECT COUNT ( DISTINCT + ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - col2, col0 * + col0 AS col0 FROM tab1
----
-59
7225
-68
8281
-96
2601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT DISTINCT ( - + ( + CAST( - col0 AS SIGNED ) ) ) * - 63 * - col1 + col0 * - + col1 AS col1 FROM tab1
----
26350
265174
44268

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT ( - + ( + CAST ( - col0 AS INTEGER ) ) ) * - 63 * - col1 + col0 * - + col1 AS col1 FROM tab1
----
26350
265174
44268

query III rowsort
SELECT * FROM tab1 WHERE NOT - 89 / - 64 NOT IN ( - + 59 + + - 92 - - + col2 + 96 + col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT - ( - + COUNT( * ) ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col0 FROM tab2 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT + col2 - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5715
SELECT - AVG ( DISTINCT - 48 ) * - ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT - AVG ( DISTINCT - 48 ) * - ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT DISTINCT - COUNT( * ) + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + + col2 + - 6 * - - 71 FROM tab0 AS cor0
----
-230
-329
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT - ( col0 ) DIV + col0 - + - ( ( 1 ) ) * 61 AS col1 FROM tab2 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-5719
SELECT - ( col0 ) / + col0 - + - ( ( 1 ) ) * 61 AS col1 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5720
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <> CAST( + col1 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5720
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <> CAST ( + col1 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT - 91 + COUNT( * ) + - SUM( 11 ) AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 91 + COUNT ( * ) + - SUM ( 11 ) AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - + 94 col1 FROM tab2 AS cor0
----
-117
-134
-152

query II rowsort
SELECT ALL + - col1, col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT COUNT( * ) - MAX( col1 ) col1 FROM tab0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5724
SELECT COUNT ( * ) - MAX ( col1 ) col1 FROM tab0
----
-78

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 90 - col2 FROM tab1
----
-6
22
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT 85 + + + COUNT( * ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5727
SELECT 85 + + + COUNT ( * ) FROM tab0 AS cor0
----
88

query I rowsort
SELECT DISTINCT + - 59 + - 39 + + - 61 * col2 AS col0 FROM tab1 cor0
----
-3697
-4246
-5954

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5729
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) + + col0 NOT BETWEEN - + col1 * + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5729
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + + col0 NOT BETWEEN - + col1 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5730
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT + SUM( + ( - + col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5731
SELECT + SUM ( + ( - + col2 ) ) AS col2 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL - + COUNT( * ) * 46 * + + COUNT( * ) FROM tab2 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - + COUNT ( * ) * 46 * + + COUNT ( * ) FROM tab2 AS cor0
----
-414

query I rowsort
SELECT DISTINCT + col0 * + 97 AS col1 FROM tab0 AS cor0
----
1455
8439
9409

query II rowsort
SELECT + col2 AS col0, col1 + + 96 + 73 * + - 64 * - col2 AS col2 FROM tab2 AS cor0
----
23
107603
40
187053
58
271139

query II rowsort
SELECT col1, col1 * + + col1 FROM tab1 AS cor0
----
14
196
47
2209
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
37
37
37

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - col1 * + col1 + 55 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + - - 53 + col1 col2 FROM tab2
----
151
167
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL - MIN( ALL - col1 ) * - 29 + - - SUM( + col1 ) AS col1 FROM tab0
----
-2246

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - MIN ( ALL - col1 ) * - 29 + - - SUM ( + col1 ) AS col1 FROM tab0
----
-2246

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( col1, 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 22 + - 50 AS col1, col2 + - + col0 col0 FROM tab1 AS cor0
----
-28
-23
-28
-26
-28
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 76 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 13 * - ( col1 ) AS col0 FROM tab2
----
1001
663
871

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 17 + col2 < col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT - col2 + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT - col2 + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + - col0 * + col2 + - - 69 + - - 62 FROM tab2
----
163971
326381
48799

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT ALL - col1 DIV + ( - + 96 ) + col1 * - col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL - col1 / + ( - + 96 ) + col1 * - col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 - col2 * + + col2 col1 FROM tab2
----
-1560
-3324
-489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT ALL col1 - + + 16 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL col1 - + + 16 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5755
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - + 11 * - CAST( - ( - - col0 ) AS SIGNED ) AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5755
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - + 11 * - CAST ( - ( - - col0 ) AS INTEGER ) AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 25 col0 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT ALL + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT col0 * - + 11 AS col1 FROM tab2
----
-506
-704
-825

query I rowsort
SELECT ALL + col1 * - 97 * + - col0 FROM tab0 WHERE + col1 - - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT DISTINCT 89 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT 89 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5761
SELECT col1 * CAST( NULL AS SIGNED ) * 84 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT col1 * CAST ( NULL AS INTEGER ) * 84 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 89 ) col1 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT - - MAX( - ( - + ( 81 ) ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5763
SELECT - - MAX ( - ( - + ( 81 ) ) ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT SUM( ALL col1 ) * - SUM( + col2 ) AS col2 FROM tab1 cor0
----
-14718

skipif mysql # not compatible
query I rowsort label-5764
SELECT SUM ( ALL col1 ) * - SUM ( + col2 ) AS col2 FROM tab1 cor0
----
-14718

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + - col1 >= - 6 OR + ( + - col2 ) * + col2 = NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5766
SELECT + 57 DIV SUM( ALL + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5766
SELECT + 57 / SUM ( ALL + col1 ) FROM tab2
----
0

query I rowsort
SELECT - 5 * + col1 FROM tab0
----
-105
-405
-5

query I rowsort
SELECT + ( + ( - col1 ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT NULL = - 6 * + - col2 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT NULL = - 6 * + - col2 + - + col2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 39 IS NOT NULL
----

query I rowsort
SELECT - 30 * - - 67 * - col1 FROM tab2
----
102510
134670
154770

query I rowsort
SELECT ALL 79 * + col0 AS col1 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT DISTINCT 65 DIV - 5 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT 65 / - 5 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - - 10 + - 41 + 48 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT - 0 * + 62 + + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT DISTINCT - + MIN( + col1 ) DIV COUNT( * ) * + - 25 FROM tab2 AS cor0
----
425

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - + MIN ( + col1 ) / COUNT ( * ) * + - 25 FROM tab2 AS cor0
----
425

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT + - col0 DIV - col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5779
SELECT + - col0 / - col0 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ( col1 ) / col0 + - 17 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL SUM( ALL + col0 ) + + - COUNT( + col1 ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL SUM ( ALL + col0 ) + + - COUNT ( + col1 ) FROM tab2 AS cor0
----
182

query I rowsort
SELECT - ( 16 ) * - + 60 AS col1 FROM tab1 AS cor0
----
960
960
960

query I rowsort
SELECT ALL - + 97 + + + col1 + + col1 FROM tab0 AS cor0
----
-55
-95
65

query I rowsort
SELECT - ( + - 90 ) - 92 * col1 * - - 9 AS col1 FROM tab2
----
-42138
-55386
-63666

query I rowsort
SELECT 34 FROM tab2 WHERE - col0 <= NULL
----

query I rowsort
SELECT DISTINCT 82 - ( + col1 ) AS col0 FROM tab0
----
1
61
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5787
SELECT CAST( ( - col0 ) AS SIGNED ), col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-5787
SELECT CAST ( ( - col0 ) AS INTEGER ), col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT + ( + + 24 ) AS col0 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 40 NOT BETWEEN - 25 * 48 AND - + 98 * - 75 + + CAST( - col0 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-5789
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 40 NOT BETWEEN - 25 * 48 AND - + 98 * - 75 + + CAST ( - col0 AS INTEGER )
----
6

query I rowsort
SELECT ALL + + ( col1 ) * col0 * - 31 AS col0 FROM tab0 AS cor0
----
-3007
-37665
-56637

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL ( - 28 ) * + + SUM( ALL col1 ) FROM tab1
----
-1848

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL ( - 28 ) * + + SUM ( ALL col1 ) FROM tab1
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - + COUNT( * ) * + + 89 * 72 AS col2 FROM tab0 AS cor0
----
-19224

skipif mysql # not compatible
query I rowsort label-5792
SELECT - + COUNT ( * ) * + + 89 * 72 AS col2 FROM tab0 AS cor0
----
-19224

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5793
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( 94 AS SIGNED ) + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5793
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( 94 AS INTEGER ) + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 + + 5 * 28 * - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - ( col2 ) AS col0, + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT + + COUNT( ALL - col1 ) * + 41 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + + COUNT ( ALL - col1 ) * + 41 FROM tab1 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT + - COUNT( - 41 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5797
SELECT + - COUNT ( - 41 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 63 + 42 FROM tab0 AS cor0
----
105

query II rowsort
SELECT DISTINCT - - col1 + + + 31, + col0 - + col0 AS col2 FROM tab0 AS cor0
----
112
0
32
0
52
0

query I rowsort
SELECT DISTINCT col0 * - - ( col1 ) * - - col1 AS col2 FROM tab0
----
38367
97
98415

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - col1 + + col1 + - col2 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 26 NOT BETWEEN + + col0 AND - - 38 * - 59
----

query I rowsort
SELECT - ( + 21 ) + - 47 + - ( - col2 ) AS col2 FROM tab2
----
-10
-28
-45

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - 17 * 53 FROM tab1
----
-901
-901
-901

query I rowsort
SELECT ALL + col2 * col0 * - 40 AS col0 FROM tab1
----
-195840
-200600
-247520

query I rowsort
SELECT col1 * + - 73 AS col1 FROM tab1
----
-1022
-3431
-365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT DISTINCT - 67 DIV + + COUNT( * ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT - 67 / + + COUNT ( * ) FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL + COUNT( * ) + + + 51 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL + COUNT ( * ) + + + 51 FROM tab0 AS cor0
----
54

query I rowsort
SELECT col2 - + ( - ( col0 ) ) + col1 AS col0 FROM tab0
----
118
143
197

query I rowsort
SELECT ALL - 1 + col0 FROM tab1
----
50
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT DISTINCT ( col1 ) DIV - 35 AS col2 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT ( col1 ) / - 35 AS col2 FROM tab2 AS cor0
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT ALL - col1 DIV - ( + col1 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - col1 / - ( + col1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 83 + - + 49 AS col2 FROM tab0 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * + + col2 + + - 47 + col0 col2 FROM tab1 AS cor0
----
569
656
868

query I rowsort
SELECT ALL 26 * + 71 + 52 AS col0 FROM tab2 AS cor0
----
1898
1898
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT + COUNT( * ) + - 96 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT + COUNT ( * ) + - 96 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - col2 + - + 88 AS col2 FROM tab1 AS cor0
----
-147
-156
-184

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT ALL 7 DIV - - 4 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL 7 / - - 4 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL < + col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL 30 + + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) * + ( col0 ) + + col2 IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL 30 + + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) * + ( col0 ) + + col2 IS NULL
----
33

query I rowsort
SELECT ( + 50 ) FROM tab1
----
50
50
50

query I rowsort
SELECT + + 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - - 50 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92 col2, + 66 * - - col1 AS col2 FROM tab2 AS cor0
----
92
3366
92
4422
92
5082

query I rowsort
SELECT DISTINCT - + 98 * - 61 - ( + - col0 ) + - 32 + - + ( + 86 ) + + - col0 + + + col2 + + + col0 FROM tab2 AS cor0
----
5929
5964
5993

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - col1 + - 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT DISTINCT - 0 + - COUNT( DISTINCT 69 ), + MIN( ALL - col0 ) col1 FROM tab2 AS cor0
----
-1
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5829
SELECT DISTINCT - 0 + - COUNT ( DISTINCT 69 ), + MIN ( ALL - col0 ) col1 FROM tab2 AS cor0
----
-1
-75

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = - col1 * - + 42 * - col2 * + 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 - - + col2 + col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + - col1 ) * + col1 AS col2 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL - 89 * - + 46 AS col2 FROM tab1
----
4094
4094
4094

query I rowsort
SELECT ALL + col1 + col2 + - 82 * + col2 AS col0 FROM tab1
----
-4774
-5461
-7762

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - COUNT( * ) + + + 69 * + 52 FROM tab1 AS cor0
----
3585

skipif mysql # not compatible
query I rowsort label-5836
SELECT - COUNT ( * ) + + + 69 * + 52 FROM tab1 AS cor0
----
3585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - + col2 = NULL
----

query I rowsort
SELECT col0 - 79 AS col2 FROM tab0 AS cor0
----
-64
18
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5839
SELECT ALL - - col0 - - 45 DIV - 57 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - - col0 - - 45 / - 57 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT 46 + col1 + - - 14 FROM tab1 AS cor0
----
107
65
74

query I rowsort
SELECT col1 - + + col1 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5842
SELECT DISTINCT - - SUM( - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - - SUM ( - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL + ( + 63 ) + - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + ( + 63 ) + - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT ( - - CAST( + - COUNT( DISTINCT - col1 ) AS SIGNED ) ) - 98 * + + MAX( DISTINCT col1 ) FROM tab1 cor0
----
-4609

skipif mysql # not compatible
query I rowsort label-5844
SELECT ( - - CAST ( + - COUNT ( DISTINCT - col1 ) AS INTEGER ) ) - 98 * + + MAX ( DISTINCT col1 ) FROM tab1 cor0
----
-4609

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL MIN( - 2 ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL MIN ( - 2 ) AS col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL + - col0 * - + col2 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - 15
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5848
SELECT DISTINCT - col2 DIV col0 + col1 + col0 * + col0 AS col1, col0 - 13 + - - 5 FROM tab1 cor0
----
2614
43
7230
77
8328
83

skipif mysql # not compatible
query II rowsort label-5848
SELECT DISTINCT - col2 / col0 + col1 + col0 * + col0 AS col1, col0 - 13 + - - 5 FROM tab1 cor0
----
2614
43
7230
77
8328
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + 58 / + + col1 AND NULL
----

query I rowsort
SELECT ALL - 33 * + col1 AS col1 FROM tab2 AS cor0
----
-1683
-2211
-2541

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE - col0 * + 12 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - col1 BETWEEN + col2 AND NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5853
SELECT * FROM tab2 WHERE NOT - ( - - col0 ) / + - CAST( + col2 AS DECIMAL ) + + ( + ( + 85 ) ) + + col0 IN ( - col2 - + ( + - col0 ), - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5853
SELECT * FROM tab2 WHERE NOT - ( - - col0 ) / + - CAST ( + col2 AS REAL ) + + ( + ( + 85 ) ) + + col0 IN ( - col2 - + ( + - col0 ), - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT DISTINCT ( - + 41 ) DIV + col2 col1 FROM tab0
----
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5854
SELECT DISTINCT ( - + 41 ) / + col2 col1 FROM tab0
----
-4
0

query II rowsort
SELECT ALL + col1, - ( - col0 ) FROM tab0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - 60 col2 FROM tab1
----
14
-60
47
-60
5
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL - MIN( 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - MIN ( 96 ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5858
SELECT col2 AS col0, + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5858
SELECT col2 AS col0, + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT + 22 AS col1, - col1 AS col2 FROM tab1
----
22
-14
22
-47
22
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT COUNT( * ) * - ( - SUM( - + 54 ) ) AS col0 FROM tab2
----
-486

skipif mysql # not compatible
query I rowsort label-5860
SELECT COUNT ( * ) * - ( - SUM ( - + 54 ) ) AS col0 FROM tab2
----
-486

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * col1 * - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5862
SELECT ALL - MIN( ALL - + 63 ) col2, - ( + 21 ) AS col0 FROM tab0 AS cor0
----
63
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5862
SELECT ALL - MIN ( ALL - + 63 ) col2, - ( + 21 ) AS col0 FROM tab0 AS cor0
----
63
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT ALL - 2 * + col0 + - 26 + 39 DIV col0 AS col1 FROM tab2 AS cor0
----
-118
-154
-176

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - 2 * + col0 + - 26 + 39 / col0 AS col1 FROM tab2 AS cor0
----
-118
-154
-176

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - - col0 IS NOT NULL AND + 33 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col1 col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col0 + - + col1 + 1 <> + 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 * + 65 col2 FROM tab0
----
118755
6305
78975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT + CAST( + + 45 AS SIGNED ) FROM tab2
----
45
45
45

skipif mysql # not compatible
query I rowsort label-5868
SELECT + CAST ( + + 45 AS INTEGER ) FROM tab2
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT ALL + - col2 DIV - 76 + + 85 col1 FROM tab0 AS cor0
----
85
85
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5869
SELECT ALL + - col2 / - 76 + + 85 col1 FROM tab0 AS cor0
----
85
85
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT DISTINCT + + COUNT( * ) * - - 55 AS col0 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + + COUNT ( * ) * - - 55 AS col0 FROM tab1 AS cor0
----
165

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col2 ) IN ( + 60 / + - 57 )
----

query I rowsort
SELECT 83 + + col0 FROM tab1 AS cor0
----
134
168
174

query I rowsort
SELECT DISTINCT + 28 + col2 FROM tab0
----
127
38
75

query I rowsort
SELECT + - ( - col2 ) AS col2 FROM tab2 WHERE + - col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT - col1 FROM tab1 WHERE + + CAST( - col0 AS SIGNED ) IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5875
SELECT - col1 FROM tab1 WHERE + + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + 60 + col1 AS col0 FROM tab1
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT 36 + COUNT( * ) AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5877
SELECT 36 + COUNT ( * ) AS col2 FROM tab2
----
39

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2, + 74 )
----

query I rowsort
SELECT 43 * - col2 FROM tab1
----
-2537
-2924
-4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col2 col2 FROM tab2
----
1058
2560
4350

query II rowsort
SELECT 80, + 46 AS col1 FROM tab2 AS cor0
----
80
46
80
46
80
46

query II rowsort
SELECT ALL 70 AS col1, + 43 FROM tab2 AS cor0
----
70
43
70
43
70
43

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( - - col0 ) IS NULL )
----

query II rowsort
SELECT - 62, + col1 + + 5 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - + SUM( col0 ) - COUNT( * ) * + + 76 * - - COUNT( * ) FROM tab1 AS cor0
----
-911

skipif mysql # not compatible
query I rowsort label-5885
SELECT - + SUM ( col0 ) - COUNT ( * ) * + + 76 * - - COUNT ( * ) FROM tab1 AS cor0
----
-911

query I rowsort
SELECT - 67 + - col0 FROM tab0
----
-154
-164
-82

query I rowsort
SELECT + col0 * - + col0 + + + col2 AS col2 FROM tab0
----
-178
-7559
-9310

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 > + col0
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT ALL 25 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL 25 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * + 13 + - 20 AS col0 FROM tab0 AS cor0
----
-1073
-293
-33

query I rowsort
SELECT ALL - + col0 * + col0 * + col1 * + - col1 FROM tab0 AS cor0
----
1476225
3337929
9409

onlyif mysql # DIV for integer division: 
query II rowsort label-5892
SELECT DISTINCT + 95 DIV ( - col1 ) col0, col1 AS col1 FROM tab2
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5892
SELECT DISTINCT + 95 / ( - col1 ) col0, col1 AS col1 FROM tab2
----
-1
51
-1
67
-1
77

query I rowsort
SELECT col2 * + 0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 41 * + - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT ALL CAST( col0 AS SIGNED ) col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5895
SELECT ALL CAST ( col0 AS INTEGER ) col2 FROM tab0
----
15
87
97

query II rowsort
SELECT - 36, col1 AS col1 FROM tab1
----
-36
14
-36
47
-36
5

query I rowsort
SELECT ALL + 15 * - col1 AS col2 FROM tab1 cor0
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 92 + - - MAX( col2 ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-5898
SELECT 92 + - - MAX ( col2 ) FROM tab2
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 95 col2, + col1 AS col0 FROM tab0
----
95
1
95
21
95
81

query I rowsort
SELECT + ( + 44 ) AS col0 FROM tab0 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT ALL + 42 * 14 + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT 13 + - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + 42 * 14 + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT 13 + - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - 66 IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL BETWEEN + + 1 AND col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT COUNT( * ) AS col2, 17 * + MIN( ALL - 66 ) FROM tab0 AS cor0
----
3
-1122

skipif mysql # not compatible
query II rowsort label-5905
SELECT COUNT ( * ) AS col2, 17 * + MIN ( ALL - 66 ) FROM tab0 AS cor0
----
3
-1122

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT MAX( ALL - 94 ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT MAX ( ALL - 94 ) AS col1 FROM tab1
----
-94

query III rowsort
SELECT * FROM tab0 WHERE + ( + - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT 76 DIV + col1 + - col2 + - 41 AS col0 FROM tab0
----
-48
-64
-88

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT 76 / + col1 + - col2 + - 41 AS col0 FROM tab0
----
-48
-64
-88

query I rowsort
SELECT - 76 + + 20 AS col2 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT ALL - 82 - + col1 * col2 * - + col2 FROM tab0 AS cor0
----
178847
2018
9719

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 * + - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5913
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5913
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5914
SELECT 47, + SUM( DISTINCT - col2 ) * + 68 + - + ( + - COUNT( * ) ) AS col0 FROM tab2
----
47
-8225

skipif mysql # not compatible
query II rowsort label-5914
SELECT 47, + SUM ( DISTINCT - col2 ) * + 68 + - + ( + - COUNT ( * ) ) AS col0 FROM tab2
----
47
-8225

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + + + 36 <> - col2 + col0 + + ( col1 ) * + col1 / - - col0
----
0

skipif mysql # not compatible
query I rowsort label-5915
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 + + + 36 <> - col2 + col0 + + ( col1 ) * + col1 / - - col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5916
SELECT + CAST( NULL AS DECIMAL ) / + - col1 + - col1 + - + 25 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT + CAST ( NULL AS REAL ) / + - col1 + - col1 + - + 25 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5917
SELECT ALL - col1 * + col0 * + CAST( NULL AS SIGNED ) - col0 * 14 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - col1 * + col0 * + CAST ( NULL AS INTEGER ) - col0 * 14 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - col2 AS col0, col0 * col1 AS col2 FROM tab2 AS cor0
----
23
2346
40
4928
58
5025

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = col1 * - col2 + + 44 + - col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT COUNT( * ) + + 97 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col1, col0, - 88 )
----
100

skipif mysql # not compatible
query I rowsort label-5920
SELECT COUNT ( * ) + + 97 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col1, col0, - 88 )
----
100

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + + col1 NOT BETWEEN NULL AND - + 68
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ( 25 ) * + COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-5922
SELECT ( 25 ) * + COUNT ( * ) FROM tab0
----
75

query I rowsort
SELECT DISTINCT + 34 * col0 AS col1 FROM tab1
----
1734
2890
3094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 * 36 * + + 17 col0 FROM tab0
----
31212
31212
31212

query I rowsort
SELECT ALL - 6 FROM tab2 AS cor0 WHERE ( - + col1 + 94 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col0 + - - col2 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT COUNT( * ) + - 5 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5928
SELECT COUNT ( * ) + - 5 FROM tab2 cor0
----
-2

query II rowsort
SELECT ALL - col1 + + + col0 - + - 82, 51 AS col2 FROM tab0 AS cor0
----
148
51
16
51
178
51

query I rowsort
SELECT DISTINCT - ( - col1 ) + - col0 AS col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + COUNT( * ) + - COUNT( - col2 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5931
SELECT + COUNT ( * ) + - COUNT ( - col2 ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5932
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT + COUNT( ALL - + col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5933
SELECT + COUNT ( ALL - + col1 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT DISTINCT ( - + COUNT( + + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT ( - + COUNT ( + + col2 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL + ( + col2 ) - col0 AS col0 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col2 * - col1 * + - col2 IS NOT NULL AND NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 41 + + 36 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL 74 * + + COUNT( * ) AS col1 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL 74 * + + COUNT ( * ) AS col1 FROM tab1
----
222

query I rowsort
SELECT DISTINCT + - ( - + 77 ) FROM tab2 cor0
----
77

query I rowsort
SELECT ALL - col2 * - - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT - + CAST( NULL AS SIGNED ) * AVG ( - - 82 ) + ( + 90 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT - + CAST ( NULL AS INTEGER ) * AVG ( - - 82 ) + ( + 90 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND col1 * 63 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5944
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 * + ( - 35 ) * + CAST( NULL AS SIGNED ) * - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5944
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 * + ( - 35 ) * + CAST ( NULL AS INTEGER ) * - CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5946
SELECT - 41 * + 37 + - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT - 41 * + 37 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col2, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5948
SELECT - CAST( NULL AS SIGNED ), col0 * - + ( - col2 ) * - col2 + 44 + - + 0 AS col0 FROM tab1
----
NULL
-295841
NULL
-420740
NULL
-469972

skipif mysql # not compatible
query II rowsort label-5948
SELECT - CAST ( NULL AS INTEGER ), col0 * - + ( - col2 ) * - col2 + 44 + - + 0 AS col0 FROM tab1
----
NULL
-295841
NULL
-420740
NULL
-469972

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL 6 * - COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL 6 * - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
-54

query I rowsort
SELECT + - col0 + 21 AS col2 FROM tab1 WHERE NOT col2 + + col2 + - - ( col0 ) + - + col0 + + col1 * + col0 + + col0 / + col1 * + col1 + - - 98 IS NULL
----
-30
-64
-70

query I rowsort
SELECT DISTINCT + - ( - + 50 ) + + col1 + - + 96 FROM tab1 WHERE - - 20 * - - col2 NOT BETWEEN - 91 AND + col1 * - 67 * + + ( - col2 ) * - 22 + 98
----
-32
-41
1

query III rowsort
SELECT * FROM tab0 WHERE NOT 34 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, 10 AS col1 FROM tab1
----
14
10
47
10
5
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT ALL - col2 DIV + 58 - - col2 AS col2 FROM tab1 cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - col2 / + 58 - - col2 AS col2 FROM tab1 cor0
----
58
67
95

query I rowsort
SELECT - + ( - col1 ) * col0 + 30 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
10080
4722
9886

query I rowsort
SELECT - + 87 + + col1 FROM tab2 AS cor0
----
-10
-20
-36

query I rowsort
SELECT DISTINCT - 51 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT - SUM( ALL - + 66 ) * - + MAX( DISTINCT 24 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-14256

skipif mysql # not compatible
query I rowsort label-5958
SELECT - SUM ( ALL - + 66 ) * - + MAX ( DISTINCT 24 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-14256

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT COUNT( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5959
SELECT COUNT ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT - COUNT( * ) + - 35 AS col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - COUNT ( * ) + - 35 AS col1 FROM tab2 AS cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT DISTINCT + 23 + - - CAST( NULL AS SIGNED ) - col0 FROM tab1 cor0 WHERE + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT + 23 + - - CAST ( NULL AS INTEGER ) - col0 FROM tab1 cor0 WHERE + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + - 11 * + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + + 21 ) * 27 * + 55 + - - col1 AS col2 FROM tab0
----
31186
31206
31266

query I rowsort
SELECT ALL + 67 + + col2 FROM tab1
----
126
135
163

query I rowsort
SELECT DISTINCT 52 - col2 AS col1 FROM tab0
----
-47
42
5

query I rowsort
SELECT DISTINCT - 62 * + + col1 - + 81 + + col2 AS col1 FROM tab2
----
-3220
-4177
-4815

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 14 IS NULL AND NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + 50 col2 FROM tab1
----
109
118
146

query III rowsort
SELECT * FROM tab2 WHERE col0 - + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT 97 + - MIN( col1 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5970
SELECT 97 + - MIN ( col1 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5971
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT COUNT( + - col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT COUNT ( + - col0 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT + MAX( - col1 ) AS col2 FROM tab1 WHERE NOT - 9 <> - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + MAX ( - col1 ) AS col2 FROM tab1 WHERE NOT - 9 <> - + col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5975
SELECT ALL 70 * - + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
-210
NULL

skipif mysql # not compatible
query II rowsort label-5975
SELECT ALL 70 * - + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
-210
NULL

query I rowsort
SELECT ALL + col2 * - 21 AS col0 FROM tab1
----
-1239
-1428
-2016

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5977
SELECT col2 * + col2 + + 15 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT col2 * + col2 + + 15 + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 AS col0 FROM tab1 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT + col2 * + 89 * CAST( - col2 AS SIGNED ) + - + col2 AS col1 FROM tab0 AS cor0
----
-196648
-872388
-8910

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT + col2 * + 89 * CAST ( - col2 AS INTEGER ) + - + col2 AS col1 FROM tab0 AS cor0
----
-196648
-872388
-8910

query I rowsort
SELECT - + col0 * - 3 * - - col1 - - + col1 FROM tab0 AS cor0
----
292
3726
5502

query I rowsort
SELECT + col0 * + + ( + col2 ) FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND 8
----

query I rowsort
SELECT - 90 - + col1 + - col0 + - col1 AS col2 FROM tab1
----
-169
-185
-275

query I rowsort
SELECT + col1 * col2 - col0 * + col2 AS col0 FROM tab2
----
-464
115
520

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT col2 + + - 46 + + + ( - + 96 ) DIV 24 FROM tab2
----
-10
-27
8

skipif mysql # not compatible
query I rowsort label-5986
SELECT col2 + + - 46 + + + ( - + 96 ) / 24 FROM tab2
----
-10
-27
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + 3 ) - col0, col1 * + col0 col2 FROM tab2
----
-43
2346
-61
4928
-72
5025

query I rowsort
SELECT 74 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 97 + + col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT + col0 + - - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT + col0 + - - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT + MIN( DISTINCT + col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5991
SELECT + MIN ( DISTINCT + col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
737
793
9605

query I rowsort
SELECT ALL + col1 * col1 FROM tab2 AS cor0 WHERE 61 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT DISTINCT col0 - - + col2 DIV - 99 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT col0 - - + col2 / - 99 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + col1 - - ( col0 ) FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT 76 + col0 FROM tab0
----
163
173
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5997
SELECT DISTINCT + ( - + 28 ) AS col0, + COUNT( * ) col1 FROM tab2
----
-28
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5997
SELECT DISTINCT + ( - + 28 ) AS col0, + COUNT ( * ) col1 FROM tab2
----
-28
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5998
SELECT - + COUNT( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT NULL <> - 29 + - + CAST( NULL AS DECIMAL ) * - + col1
----
0

skipif mysql # not compatible
query I rowsort label-5998
SELECT - + COUNT ( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT NULL <> - 29 + - + CAST ( NULL AS REAL ) * - + col1
----
0

query I rowsort
SELECT + col2 * + 48 * - col2 * + 34 + + 9 AS col0 FROM tab1 AS cor0
----
-15040503
-5680983
-7546359

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT COUNT( + - 2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT COUNT ( + - 2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL - SUM( + 8 ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - SUM ( + 8 ) AS col2 FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT + + COUNT( - + 93 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + + COUNT ( - + 93 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( ( + - col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - 92 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT - SUM( - - 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - SUM ( - - 16 ) FROM tab1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6006
SELECT 49 * COUNT( * ) DIV COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-6006
SELECT 49 * COUNT ( * ) / COUNT ( * ) FROM tab2
----
49

query II rowsort
SELECT DISTINCT col0 AS col2, + col2 * col2 + - col1 + col1 AS col0 FROM tab0
----
15
2209
87
100
97
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT DISTINCT 67 * + - MAX( DISTINCT + 13 ) FROM tab2
----
-871

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT 67 * + - MAX ( DISTINCT + 13 ) FROM tab2
----
-871

onlyif mysql # DIV for integer division: 
query II rowsort label-6009
SELECT DISTINCT col2, 41 DIV col1 AS col0 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-6009
SELECT DISTINCT col2, 41 / col1 AS col0 FROM tab2
----
23
0
40
0
58
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 12 IS NOT NULL
----

query I rowsort
SELECT 50 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
50
50
50

query III rowsort
SELECT * FROM tab1 WHERE + 52 * + 85 = NULL
----

query I rowsort
SELECT - + col2 AS col1 FROM tab0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col1 * col1 FROM tab0 cor0
----
10
441
47
6561
99
1

query I rowsort
SELECT col1 + 17 FROM tab0 AS cor0
----
18
38
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT - MIN( - 13 ) * - + 43 FROM tab1
----
-559

skipif mysql # not compatible
query I rowsort label-6017
SELECT - MIN ( - 13 ) * - + 43 FROM tab1
----
-559

query I rowsort
SELECT + col0 * - col2 * - col2 AS col0 FROM tab2
----
102400
24334
252300

query II rowsort
SELECT + col2 * col1, col1 AS col1 FROM tab1 AS cor0
----
1344
14
295
5
3196
47

query II rowsort
SELECT - - col2 * - - 10, col2 FROM tab2 AS cor0
----
230
23
400
40
580
58

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 + col2 AS col0 FROM tab2 AS cor0
----
2190
4213
5750

query II rowsort
SELECT 4 - col2 + 45 + - col1 - + 45 * col1 * - - col2, col0 FROM tab1 cor0
----
-13290
85
-143886
91
-60541
51

query I rowsort
SELECT - 89 - - col2 AS col1 FROM tab2 AS cor0
----
-31
-49
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + 96 col0 FROM tab0 AS cor0
----
-111
-183
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT 40 - - COUNT( * ) - - CAST( NULL AS SIGNED ) / + 96 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT 40 - - COUNT ( * ) - - CAST ( NULL AS INTEGER ) / + 96 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 - - + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 72 - + - 29 FROM tab2 AS cor0
----
101
101
101

query I rowsort
SELECT - col1 * - + col1 * - 53 AS col0 FROM tab1 AS cor0 WHERE 39 IS NOT NULL
----
-10388
-117077
-1325

query I rowsort
SELECT DISTINCT 4 + - - col0 FROM tab1
----
55
89
95

query I rowsort
SELECT ALL + col0 * 19 AS col1 FROM tab0
----
1653
1843
285

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col1 * 99 + col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + - 5 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT + MIN( DISTINCT 59 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT + MIN ( DISTINCT 59 ) FROM tab0
----
59

query I rowsort
SELECT DISTINCT + col2 * - - col1 AS col2 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT ALL 33, - 75 AS col1 FROM tab0
----
33
-75
33
-75
33
-75

query I rowsort
SELECT ALL + 8 * - 85 FROM tab1 AS cor0
----
-680
-680
-680

query I rowsort
SELECT DISTINCT - col2 * - 25 + col1 AS col0 FROM tab1 AS cor0
----
1480
1747
2414

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT ALL + 78 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + 78 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT ALL col2 * 23 AS col1 FROM tab1 AS cor0
----
1357
1564
2208

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - 59 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT DISTINCT - - 35 / + CAST( NULL AS SIGNED ) * - + 98 / + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - - 35 / + CAST ( NULL AS INTEGER ) * - + 98 / + + col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) <> + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT CAST( COUNT( col2 ) AS SIGNED ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6044
SELECT CAST ( COUNT ( col2 ) AS INTEGER ) col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 73 col1 FROM tab0
----
160
170
88

query I rowsort
SELECT ALL col0 + - ( col2 ) * col2 AS col2 FROM tab0 WHERE NOT + 65 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT col1 * col2 + + col0 AS col0 FROM tab0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL - MIN( 12 ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - MIN ( 12 ) AS col2 FROM tab1
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( 40 ) FROM tab0 WHERE NOT ( 79 * 39 ) >= col2 - col1
----

query I rowsort
SELECT 61 - 14 FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6053
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL >= ( NULL )
----
0

query I rowsort
SELECT + col1 * - col1 - + col1 * - 6 AS col0 FROM tab0
----
-315
-6075
5

query I rowsort
SELECT ALL col0 * 6 AS col2 FROM tab2
----
276
384
450

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 9 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col1 FROM tab1 WHERE NOT ( + 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + 3 * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6058
SELECT + 3 * + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT 70 * - col0 - + col2 FROM tab1
----
-3666
-6009
-6438

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 35 BETWEEN ( NULL ) AND - 0
----

query I rowsort
SELECT + ( - ( col1 ) ) * - col2 AS col0 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - col0 col1 FROM tab2
----
3818
5312
6225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6063
SELECT DISTINCT AVG ( ALL CAST( NULL AS SIGNED ) ) + + 31 * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT AVG ( ALL CAST ( NULL AS INTEGER ) ) + + 31 * + COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( 44 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT - CAST( 48 AS SIGNED ) FROM tab0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-6065
SELECT - CAST ( 48 AS INTEGER ) FROM tab0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT MIN( DISTINCT ( - 93 ) ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6066
SELECT MIN ( DISTINCT ( - 93 ) ) FROM tab2 AS cor0
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + 49 ) / - col2 AND 25
----

query I rowsort
SELECT DISTINCT - 57 FROM tab0 AS cor0 CROSS JOIN tab2
----
-57

query III rowsort
SELECT * FROM tab2 WHERE ( + 53 ) BETWEEN ( + col1 * 27 ) AND col0
----

query I rowsort
SELECT 72 FROM tab0 WHERE - col1 <> 28 + - col1
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT DISTINCT + - col0 * - col0 + + 19 DIV col0 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT + - col0 * - col0 + + 19 / col0 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 93 * - 85 BETWEEN + 61 * col2 AND - col2 + + 76 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6074
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6075
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + col0 > + 91 * + CAST( col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6075
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + col0 > + 91 * + CAST ( col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT col2 DIV col0 + 72 * ( col0 ) FROM tab2 AS cor0 WHERE NOT ( 8 + - col1 DIV col0 ) IS NULL
----
3312
4608
5400

skipif mysql # not compatible
query I rowsort label-6076
SELECT col2 / col0 + 72 * ( col0 ) FROM tab2 AS cor0 WHERE NOT ( 8 + - col1 / col0 ) IS NULL
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - COUNT( + 14 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6077
SELECT - COUNT ( + 14 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 25 + + col0 FROM tab2 AS cor0 WHERE NOT NULL <= ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 43 * 61 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT + - MIN( ALL - 18 ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6080
SELECT + - MIN ( ALL - 18 ) AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT - 83 * COUNT( * ) col2 FROM tab2
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6081
SELECT - 83 * COUNT ( * ) col2 FROM tab2
----
-249

query I rowsort
SELECT ALL + 81 * - - col0 * col0 FROM tab0
----
18225
613089
762129

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL = ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL = ( - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT 58 DIV - ( col0 ) AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6084
SELECT 58 / - ( col0 ) AS col2 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL + MAX( - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + MAX ( - col2 ) AS col2 FROM tab1
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 40 col1 FROM tab1
----
-1880
-200
-560

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= ( + ( 76 ) / 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT ALL - col2 DIV - + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - col2 / - + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - + MAX( + 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6089
SELECT - + MAX ( + 62 ) FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT 46 - + 8 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-6090
SELECT 46 - + 8 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6092
SELECT + + col1, 47 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-6092
SELECT + + col1, 47 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT DISTINCT - + col0 DIV + - 23 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - + col0 / + - 23 FROM tab0 AS cor0
----
0
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT - - ( + CAST( col1 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6094
SELECT - - ( + CAST ( col1 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL 53, col0 FROM tab1 AS cor0
----
53
51
53
85
53
91

query I rowsort
SELECT - 66 * - 38 AS col0 FROM tab1 AS cor0
----
2508
2508
2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) IN ( + col2 * - col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6099
SELECT + CAST( CAST( col2 AS DECIMAL ) AS SIGNED ) * - 59 FROM tab0 cor0
----
-2773
-5841
-590

skipif mysql # not compatible
query I rowsort label-6099
SELECT + CAST ( CAST ( col2 AS REAL ) AS INTEGER ) * - 59 FROM tab0 cor0
----
-2773
-5841
-590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT ALL col2 + col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN CAST( + col1 AS SIGNED ) AND NULL
----
144
147
159

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL col2 + col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN CAST ( + col1 AS INTEGER ) AND NULL
----
144
147
159

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT ( - col0 - - col1 * + col2 ) IN ( col1 )
----
15
87
97

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT NULL <> + 12 * + col2 * col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + COUNT( DISTINCT - + ( - col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6103
SELECT + COUNT ( DISTINCT - + ( - col1 ) ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col0 * + 66 AS col0, + 16 FROM tab1
----
3366
16
5610
16
6006
16

query I rowsort
SELECT ALL + col2 * col0 + - col1 AS col1 FROM tab2
----
1007
2483
4283

query III rowsort
SELECT * FROM tab0 WHERE + col1 < ( - - col2 * ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + - col1 * - 87 * 19 * + col1 FROM tab1
----
2438175
248300436
31102848

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - + col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL COUNT( ALL ( col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL COUNT ( ALL ( col1 ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + COUNT( * ) * + - COUNT( * ) + + 51 * 66 + COUNT( * ) * 11 FROM tab2
----
3390

skipif mysql # not compatible
query I rowsort label-6110
SELECT + COUNT ( * ) * + - COUNT ( * ) + + 51 * 66 + COUNT ( * ) * 11 FROM tab2
----
3390

query I rowsort
SELECT + col0 + - - col0 + + + 25 FROM tab0 AS cor0
----
199
219
55

query I rowsort
SELECT - col1 + ( + col2 ) - - col2 FROM tab0 cor0
----
-1
13
197

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT col2 DIV + 77 + + col0 AS col0 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-6113
SELECT col2 / + 77 + + col0 AS col0 FROM tab1 AS cor0
----
52
85
91

query I rowsort
SELECT ALL - ( col2 ) + - + 45 FROM tab2 AS cor0
----
-103
-68
-85

query I rowsort
SELECT 25 * - 31 AS col2 FROM tab0
----
-775
-775
-775

query I rowsort
SELECT col0 - + + col1 FROM tab0 WHERE ( NULL ) = ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT - 73 * - COUNT( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-6117
SELECT - 73 * - COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
219

query I rowsort
SELECT DISTINCT + - 77 AS col1 FROM tab0 AS cor0
----
-77

query II rowsort
SELECT ALL + col1 AS col2, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT + MIN( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) AS col1 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 NOT BETWEEN + ( - col2 ) + - col0 * 59 AND col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6122
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col0, + 0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6122
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col0, + 0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 47 col0 FROM tab0 AS cor0
----
47

query II rowsort
SELECT ALL 48, + ( - 41 ) AS col1 FROM tab2
----
48
-41
48
-41
48
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6125
SELECT DISTINCT + 97 AS col0, - SUM( DISTINCT col0 ) FROM tab1
----
97
-227

skipif mysql # not compatible
query II rowsort label-6125
SELECT DISTINCT + 97 AS col0, - SUM ( DISTINCT col0 ) FROM tab1
----
97
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6126
SELECT DISTINCT 38 AS col0, COUNT( * ) + - - 83 DIV - - 34 FROM tab1
----
38
5

skipif mysql # not compatible
query II rowsort label-6126
SELECT DISTINCT 38 AS col0, COUNT ( * ) + - - 83 / - - 34 FROM tab1
----
38
5

query I rowsort
SELECT DISTINCT - col2 * 46 AS col0 FROM tab0 WHERE + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 68 / + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 + - ( col0 ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT + SUM( ALL + CAST( - + 34 AS SIGNED ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT + SUM ( ALL + CAST ( - + 34 AS INTEGER ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT DISTINCT + col1 * + CAST( 36 AS SIGNED ) AS col1 FROM tab1
----
1692
180
504

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + col1 * + CAST ( 36 AS INTEGER ) AS col1 FROM tab1
----
1692
180
504

query II rowsort
SELECT DISTINCT col0, 81 + col1 AS col0 FROM tab0 AS cor0
----
15
162
87
102
97
82

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - 83 = NULL
----

query I rowsort
SELECT col2 + col2 * 23 AS col2 FROM tab0 AS cor0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL - - 39 + COUNT( * ) - + 33 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - - 39 + COUNT ( * ) - + 33 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1 cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT DISTINCT 5 + MIN( + col0 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT 5 + MIN ( + col0 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT DISTINCT col0 + + + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT col0 + + + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + - col2 - + 26 col2 FROM tab0
----
-37
-89
0

query I rowsort
SELECT DISTINCT - col2 * + + col0 + + + 20 FROM tab1
----
-4876
-4995
-6168

query I rowsort
SELECT ALL 84 * + 63 AS col1 FROM tab0
----
5292
5292
5292

query I rowsort
SELECT DISTINCT - 52 - + - 74 FROM tab0
----
22

query II rowsort
SELECT ALL + col0 * - + ( + + col2 ), - col0 AS col1 FROM tab0
----
-705
-15
-870
-87
-9603
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6144
SELECT ALL * FROM tab2 WHERE col1 IN ( + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6144
SELECT ALL * FROM tab2 WHERE col1 IN ( + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT DISTINCT + 25 DIV + - ( - + col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + 25 / + - ( - + col1 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + ( 6 ) AS col1 FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col0 col2 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT DISTINCT - - 5 + MAX( col0 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - - 5 + MAX ( col0 ) FROM tab0 AS cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT DISTINCT + 73 DIV - 1 - - col2 col1 FROM tab2
----
-15
-33
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6149
SELECT DISTINCT + 73 / - 1 - - col2 col1 FROM tab2
----
-15
-33
-50

query I rowsort
SELECT + 48 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query II rowsort
SELECT + col1 * + 16, col0 AS col2 FROM tab0
----
1296
15
16
97
336
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT 86 * + 7 * ( - CAST( - CAST( + + col1 AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
12642
48762
602

skipif mysql # not compatible
query I rowsort label-6152
SELECT 86 * + 7 * ( - CAST ( - CAST ( + + col1 AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
12642
48762
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + + col1 * - + col2 col0 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT + MIN( ALL col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT COUNT( + 56 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6155
SELECT COUNT ( + 56 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 42 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT + col0 DIV - 64 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT + col0 / - 64 AS col2 FROM tab1
----
-1
-1
0

query II rowsort
SELECT - col1, - col0 * + 11 * + col0 * col1 AS col2 FROM tab2
----
-51
-1187076
-67
-4145625
-77
-3469312

query I rowsort
SELECT DISTINCT + 92 * + - 28 * - col1 FROM tab1
----
121072
12880
36064

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 48 AS col0 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT DISTINCT ( - 33 ) + MIN( - col0 ) AS col2 FROM tab0 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT ( - 33 ) + MIN ( - col0 ) AS col2 FROM tab0 AS cor0
----
-130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - + col1 ) * - + col1 + + col0 col2 FROM tab2 AS cor0
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL + MIN( + 3 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + MIN ( + 3 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 22 * + + col0 * - 32 AS col0 FROM tab1 cor0
----
-35904
-59840
-64064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + 33 ) AS col2, - col2 * + - 20 col1 FROM tab0 AS cor0
----
-33
1980
-33
200
-33
940

query II rowsort
SELECT ALL col0 + 72 AS col0, col1 AS col2 FROM tab2 AS cor0
----
118
51
136
77
147
67

query II rowsort
SELECT + - col0 AS col2, + ( - col0 ) FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE 30 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, col2 col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT + col1 - col2 - col0 * + col1 AS col2 FROM tab1
----
-4298
-479
-796

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col2 IS NULL
----

query II rowsort
SELECT DISTINCT 99 - + col0 AS col2, + col0 * - - 82 FROM tab1
----
14
6970
48
4182
8
7462

query I rowsort
SELECT - col0 * + ( - 49 ) + col2 AS col1 FROM tab2
----
2277
3176
3733

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT - ( + MIN( ALL - col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT - ( + MIN ( ALL - col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT DISTINCT + 77, + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
77
9

skipif mysql # not compatible
query II rowsort label-6176
SELECT DISTINCT + 77, + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
77
9

query II rowsort
SELECT + - col1 * - + col2 * - col0 AS col0, - col2 FROM tab2 AS cor0
----
-197120
-40
-291450
-58
-53958
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT - - 83 * + + 47 AS col1 FROM tab2 cor0 WHERE NOT 76 * + - col1 NOT BETWEEN + col1 * - col2 * - CAST( NULL AS SIGNED ) AND - 82
----

skipif mysql # not compatible
query I rowsort label-6178
SELECT - - 83 * + + 47 AS col1 FROM tab2 cor0 WHERE NOT 76 * + - col1 NOT BETWEEN + col1 * - col2 * - CAST ( NULL AS INTEGER ) AND - 82
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT ALL - + 80 * - col2 * col0 FROM tab0 AS cor0
----
56400
69600
768240

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT DISTINCT + col1 DIV - 8 AS col0 FROM tab0 AS cor0
----
-10
-2
0

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + col1 / - 8 AS col0 FROM tab0 AS cor0
----
-10
-2
0

query I rowsort
SELECT ( col1 ) FROM tab2 WHERE NOT NULL IN ( col1, + ( + ( - ( 85 ) ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE NOT - col2 IN ( col2 )
----
15
87
97

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT - 88 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 + 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6186
SELECT CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL ) - + 66 AS col2 FROM tab0 WHERE NOT + 9 IN ( + col0 + + + 2 - col0 * col1 * - - col2 / + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL ) - + 66 AS col2 FROM tab0 WHERE NOT + 9 IN ( + col0 + + + 2 - col0 * col1 * - - col2 / + col2 )
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + + col0 AS col0 FROM tab1 WHERE NOT + ( + col1 ) IS NOT NULL
----

query II rowsort
SELECT 61 + + - col1, + 39 AS col1 FROM tab0
----
-20
39
40
39
60
39

query I rowsort
SELECT ALL ( + + 71 ) AS col2 FROM tab2
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT - 58 DIV + + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6190
SELECT - 58 / + + col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ( - + ( - 50 ) ) FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT - - col2 + - col2 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - - 6 + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + + col0 * + + col1 / - 59 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6193
SELECT - - 6 + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + + col0 * + + col1 / - 59 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL + ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT col2 DIV + col0 + - col1 * col0 + + col2 DIV + - col1 col0 FROM tab1 cor0
----
-4278
-436
-719

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6195
SELECT col2 / + col0 + - col1 * col0 + + col2 / + - col1 col0 FROM tab1 cor0
----
-4278
-436
-719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + - col2 col0 FROM tab1 AS cor0
----
-39
-48
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + 75 NOT BETWEEN + - ( + col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6197
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + 75 NOT BETWEEN + - ( + col2 ) AND NULL
----

query I rowsort
SELECT ALL + 61 + 97 FROM tab2 AS cor0
----
158
158
158

query II rowsort
SELECT DISTINCT - col2 + + - ( + col2 ) * + col0 * + - ( col2 ), + col2 FROM tab1 AS cor0
----
295826
59
420716
68
469920
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6200
SELECT - + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 27 col1, 49 + - col1 AS col1 FROM tab0
----
-27
-32
-27
28
-27
48

query I rowsort
SELECT ALL col1 + 91 + - 14 FROM tab0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT - COUNT( - 30 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6203
SELECT - COUNT ( - 30 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 52 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-52

query I rowsort
SELECT ALL + col0 - - 66 FROM tab2
----
112
130
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT DISTINCT CAST( + + col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query II rowsort
SELECT - col1, + 76 AS col2 FROM tab1
----
-14
76
-47
76
-5
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL COUNT( ALL - col2 ) - 93 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL COUNT ( ALL - col2 ) - 93 FROM tab1
----
-90

query I rowsort
SELECT 53 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT ALL ( COUNT( ALL + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL ( COUNT ( ALL + col1 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT col2 - - 20 + CAST( NULL AS SIGNED ) * + + 75 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT col2 - - 20 + CAST ( NULL AS INTEGER ) * + + 75 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 27 * + 16 FROM tab0 AS cor0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT + 94 * + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-6214
SELECT + 94 * + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
846

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT DISTINCT - col0 DIV - + col0 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - col0 / - + col0 AS col0 FROM tab1
----
1

query I rowsort
SELECT - 55 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2 * col0
----

query I rowsort
SELECT + + 86 * - col1 AS col0 FROM tab0 AS cor0
----
-1806
-6966
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT + - COUNT( DISTINCT - + col0 ) * + + 95 AS col1 FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + - COUNT ( DISTINCT - + col0 ) * + + 95 AS col1 FROM tab0 AS cor0
----
-285

query I rowsort
SELECT + - 17 * - col2 AS col1 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT ALL col2 * ( 26 ) FROM tab2 cor0
----
1040
1508
598

onlyif mysql # DIV for integer division: 
query II rowsort label-6221
SELECT ALL - col2 DIV 32 AS col2, - 31 col0 FROM tab1 AS cor0
----
-1
-31
-2
-31
-3
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6221
SELECT ALL - col2 / 32 AS col2, - 31 col0 FROM tab1 AS cor0
----
-1
-31
-2
-31
-3
-31

query I rowsort
SELECT - col2 * + ( - 71 ) FROM tab1 cor0
----
4189
4828
6816

query II rowsort
SELECT + col1 AS col1, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT CAST( NULL AS SIGNED ) * + ( + col0 ) * + + 13 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT CAST ( NULL AS INTEGER ) * + ( + col0 ) * + + 13 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT SUM( ALL + + 73 ) DIV - 56 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6225
SELECT SUM ( ALL + + 73 ) / - 56 AS col2 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - col0 * + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * + col0 * + 5 AS col2 FROM tab2 WHERE ( NOT ( NULL BETWEEN col1 AND col2 ) )
----

query I rowsort
SELECT DISTINCT col2 + + col1 - + - col0 * - col1 AS col1 FROM tab2
----
-2272
-4811
-4900

query I rowsort
SELECT DISTINCT - col1 * - 61 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT + ( + - col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 * + + 32 col0 FROM tab0
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6233
SELECT + 82 * - - 0 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT + 82 * - - 0 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 58 AS col2 FROM tab1 AS cor0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND + - 66
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6236
SELECT 21 + + SUM( ALL + col0 ) AS col1, + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
248
3

skipif mysql # not compatible
query II rowsort label-6236
SELECT 21 + + SUM ( ALL + col0 ) AS col1, + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
248
3

query I rowsort
SELECT col0 - + 61 * 47 AS col2 FROM tab0 AS cor0
----
-2770
-2780
-2852

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col2 IS NULL )
----

query I rowsort
SELECT ALL + 38 * + col0 + + col0 AS col0 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT ALL ( col2 ) + - + 65 FROM tab2
----
-25
-42
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6241
SELECT * FROM tab0 WHERE + CAST( + col1 AS DECIMAL ) + - + CAST( NULL AS SIGNED ) - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6241
SELECT * FROM tab0 WHERE + CAST ( + col1 AS REAL ) + - + CAST ( NULL AS INTEGER ) - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL - ( 87 ) * + 52 - + ( - - COUNT( * ) ) FROM tab1
----
-4527

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - ( 87 ) * + 52 - + ( - - COUNT ( * ) ) FROM tab1
----
-4527

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT DISTINCT 20 * - 67 - + 59, + COUNT( * ) AS col2 FROM tab0
----
-1399
3

skipif mysql # not compatible
query II rowsort label-6243
SELECT DISTINCT 20 * - 67 - + 59, + COUNT ( * ) AS col2 FROM tab0
----
-1399
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL 74 + + + COUNT( * ) + 49 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL 74 + + + COUNT ( * ) + 49 FROM tab0
----
126

query I rowsort
SELECT DISTINCT 92 - - 2 AS col0 FROM tab0
----
94

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT MIN( + 77 ) col2 FROM tab0 WHERE NOT NULL IN ( + + 76 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6247
SELECT MIN ( + 77 ) col2 FROM tab0 WHERE NOT NULL IN ( + + 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ( + - COUNT( * ) ) * + 37 col2 FROM tab1
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6248
SELECT ( + - COUNT ( * ) ) * + 37 col2 FROM tab1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT MAX( ALL 99 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-6249
SELECT MAX ( ALL 99 ) FROM tab2
----
99

query I rowsort
SELECT ALL col2 * + - 39 AS col0 FROM tab0 AS cor0
----
-1833
-3861
-390

query I rowsort
SELECT DISTINCT - 8 * - col0 + col1 FROM tab1 AS cor0 WHERE NOT 18 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 AS cor0 WHERE NOT + col2 * - col2 = - + col1
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6253
SELECT - col0 DIV col1 + - col1 col2, col2 AS col0 FROM tab2 cor0
----
-51
23
-68
58
-77
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6253
SELECT - col0 / col1 + - col1 col2, col2 AS col0 FROM tab2 cor0
----
-51
23
-68
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col0
----

query II rowsort
SELECT ALL - 18, + col2 AS col0 FROM tab2
----
-18
23
-18
40
-18
58

query I rowsort
SELECT - 79 * + col2 AS col1 FROM tab2
----
-1817
-3160
-4582

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL COUNT( * ) * + + 96 FROM tab1, tab2 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL COUNT ( * ) * + + 96 FROM tab1, tab2 AS cor0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT MAX( + + 67 ) AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6258
SELECT MAX ( + + 67 ) AS col0 FROM tab2
----
67

query I rowsort
SELECT DISTINCT - col2 * - col2 * col0 FROM tab2 AS cor0
----
102400
24334
252300

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 21 / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + col1 + + - col1 AS col2 FROM tab0 cor0
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 92 * - 62 * - + 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6263
SELECT DISTINCT + MAX( DISTINCT + + 96 ) DIV - SUM( - - 90 ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6263
SELECT DISTINCT + MAX ( DISTINCT + + 96 ) / - SUM ( - - 90 ) col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 >= col0
----

query I rowsort
SELECT - col2 + + col0 + + 53 + + col2 * col1 AS col0 FROM tab2
----
1249
3157
3956

query I rowsort
SELECT DISTINCT 92 * - col2 FROM tab2
----
-2116
-3680
-5336

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT col1 DIV col0 + - - col2 AS col1 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-6267
SELECT col1 / col0 + - - col2 AS col1 FROM tab0
----
10
52
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT COUNT( - col0 ), 70 col0 FROM tab0
----
3
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6268
SELECT COUNT ( - col0 ), 70 col0 FROM tab0
----
3
70

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE 50 + - + 87 * - 5 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL ( - 11 ) AS col2 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6271
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * col1 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6271
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col1 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 + + col0 col0 FROM tab1
----
111
117
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT MIN( ( - col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT MIN ( ( - col0 ) ) FROM tab1
----
-91

query II rowsort
SELECT DISTINCT + + col0 AS col1, - 44 FROM tab0 cor0
----
15
-44
87
-44
97
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT ( - CAST( - AVG ( DISTINCT - 98 ) AS SIGNED ) ) + COUNT( * ) * MIN( - - 61 ) col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6276
SELECT ( - CAST ( - AVG ( DISTINCT - 98 ) AS INTEGER ) ) + COUNT ( * ) * MIN ( - - 61 ) col1 FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6277
SELECT + - 23 col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6277
SELECT + - 23 col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-23
3

query I rowsort
SELECT ALL - - 65 AS col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col1 AND + 38 * + - col1 + - col1
----

query I rowsort
SELECT ALL - + 51 + + col2 AS col2 FROM tab1 AS cor0
----
17
45
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT ALL CAST( NULL AS SIGNED ) - 73 + + + MIN( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL CAST ( NULL AS INTEGER ) - 73 + + + MIN ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 - ( col0 ) FROM tab2 cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6282
SELECT + CAST( 38 AS SIGNED ) AS col1, 34 FROM tab0
----
38
34
38
34
38
34

skipif mysql # not compatible
query II rowsort label-6282
SELECT + CAST ( 38 AS INTEGER ) AS col1, 34 FROM tab0
----
38
34
38
34
38
34

query I rowsort
SELECT - 37 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1 * - + 90 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT - 86 * COUNT( + - col2 ) FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6284
SELECT - 86 * COUNT ( + - col2 ) FROM tab0 AS cor0
----
-258

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6285
SELECT DISTINCT + col1 * + ( - + ( - col2 ) ) / - CAST( NULL AS DECIMAL ) + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + col1 * + ( - + ( - col2 ) ) / - CAST ( NULL AS REAL ) + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6286
SELECT + - CAST( NULL AS SIGNED ) AS col2, + COUNT( - + col0 ) FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6286
SELECT + - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( - + col0 ) FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6287
SELECT ALL - 32 * + SUM( DISTINCT col2 ) DIV + + 26 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - 32 * + SUM ( DISTINCT col2 ) / + + 26 FROM tab0 AS cor0
----
-192

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6289
SELECT - 28 * ( + 15 ) DIV CAST( - + 21 AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 28 * ( + 15 ) / CAST ( - + 21 AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT DISTINCT - + col0 + - ( + 34 ) + - ( - col0 ) * + CAST( - + 75 AS SIGNED ) * + 13 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-49810
-82994
-88850

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - + col0 + - ( + 34 ) + - ( - col0 ) * + CAST ( - + 75 AS INTEGER ) * + 13 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-49810
-82994
-88850

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + - ( - SUM( + ( + 75 ) ) ) AS col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-6291
SELECT + - ( - SUM ( + ( + 75 ) ) ) AS col1 FROM tab0 AS cor0
----
225

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab2 AS cor0 WHERE NOT col1 >= + ( - col2 )
----

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL + 69 + + MAX( ALL + - 1 ) AS col2 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL + 69 + + MAX ( ALL + - 1 ) AS col2 FROM tab2 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col0 FROM tab1 WHERE NOT + col1 * + col2 - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 14 * + + 71 AS col1 FROM tab1
----
-994
-994
-994

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab0 WHERE NOT 49 = NULL
----

query I rowsort
SELECT ALL 30 * - - 7 AS col1 FROM tab2
----
210
210
210

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT 68 + + COUNT( * ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT 68 + + COUNT ( * ) FROM tab0 AS cor0
----
71

query I rowsort
SELECT - col1 + - ( + 20 ) FROM tab1 AS cor0
----
-25
-34
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + 99 + - - MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + 99 + - - MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
76

query I rowsort
SELECT 76 + ( - col0 ) AS col1 FROM tab1 cor0
----
-15
-9
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - + COUNT( * ) + 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-6303
SELECT - + COUNT ( * ) + 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
67

query III rowsort
SELECT * FROM tab2 WHERE col1 / - col1 + ( + 55 ) + - col2 + ( - col1 ) * + 42 BETWEEN - - col1 AND + - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL + COUNT( - 90 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + COUNT ( - 90 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + - col1 ) - - col0 col0 FROM tab1 AS cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT 98 DIV + col0 col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6308
SELECT 98 / + col0 col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT - MIN( col0 ) * + + ( + 59 ) col0 FROM tab0 AS cor0
----
-885

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6309
SELECT - MIN ( col0 ) * + + ( + 59 ) col0 FROM tab0 AS cor0
----
-885

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 / - 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT 50 * ( + - COUNT( * ) ) AS col0 FROM tab2 WHERE NULL NOT IN ( - + 64, - 96, + col0, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT 50 * ( + - COUNT ( * ) ) AS col0 FROM tab2 WHERE NULL NOT IN ( - + 64, - 96, + col0, + col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + col0 + - col2 FROM tab0
----
10
77
47
-32
99
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT DISTINCT + MIN( DISTINCT 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + MIN ( DISTINCT 14 ) FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - MIN( - 24 ) col1 FROM tab1
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6314
SELECT - MIN ( - 24 ) col1 FROM tab1
----
24

query II rowsort
SELECT ALL - col1 AS col0, + col0 - - + 67 AS col2 FROM tab0
----
-1
164
-21
154
-81
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT - ( MIN( + 87 ) ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - ( MIN ( + 87 ) ) AS col0 FROM tab0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ) * + col1 col2, col2 AS col0 FROM tab0
----
1
99
441
10
6561
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT + + COUNT( * ) FROM tab0 WHERE + col1 * - col2 * + - 26 + - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + + COUNT ( * ) FROM tab0 WHERE + col1 * - col2 * + - 26 + - col2 = NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 9 / + + 68 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - - 5 ) + 80 < - 55 OR NOT 73 IN ( + col2, 41 * + col0 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT MAX( - + 43 ) + + + 24 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6321
SELECT MAX ( - + 43 ) + + + 24 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - col1 * - col0 + + 75 FROM tab0 AS cor0
----
1290
172
1902

query I rowsort
SELECT ALL - 31 + - col1 AS col1 FROM tab2 AS cor0
----
-108
-82
-98

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-1440
-3264
-354

query I rowsort
SELECT ALL - col1 / - col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 31 * 58 - - col1 * + 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + 38 + - COUNT( * ) * + 83 col1 FROM tab0
----
-211

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6329
SELECT + 38 + - COUNT ( * ) * + 83 col1 FROM tab0
----
-211

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6331
SELECT - col1 + - CAST( - - 7 AS SIGNED ) + - 90 FROM tab0
----
-118
-178
-98

skipif mysql # not compatible
query I rowsort label-6331
SELECT - col1 + - CAST ( - - 7 AS INTEGER ) + - 90 FROM tab0
----
-118
-178
-98

query I rowsort
SELECT col2 * col1 + col0 - col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL - MIN( ALL + + col0 ) + - - MIN( DISTINCT + 44 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - MIN ( ALL + + col0 ) + - - MIN ( DISTINCT + 44 ) FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT COUNT( * ) * 74 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-6334
SELECT COUNT ( * ) * 74 FROM tab2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT + MAX( ALL + + 52 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + MAX ( ALL + + 52 ) FROM tab2
----
52

query I rowsort
SELECT + 64 * - 73 * - + col1 AS col1 FROM tab0 AS cor0
----
378432
4672
98112

query I rowsort
SELECT DISTINCT + col0 + - 62 FROM tab0 AS cor0
----
-47
25
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6338
SELECT DISTINCT + 59 * + 89 * - 37 + - - COUNT( * ) DIV + MIN( - 32 ) + 39 AS col2 FROM tab2 cor0
----
-194248

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + 59 * + 89 * - 37 + - - COUNT ( * ) / + MIN ( - 32 ) + 39 AS col2 FROM tab2 cor0
----
-194248

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL + COUNT( * ) + - + SUM( - 86 ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + COUNT ( * ) + - + SUM ( - 86 ) FROM tab2 AS cor0
----
261

query I rowsort
SELECT + - 23 - - col0 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-120
-1238
-1850

query II rowsort
SELECT - col2 + + col0 AS col2, 72 FROM tab0
----
-2
72
-32
72
77
72

query I rowsort
SELECT ALL - + 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < col1 + - + col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT + - MAX( DISTINCT + 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + - MAX ( DISTINCT + 97 ) FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL + + 89 * + 23 * COUNT( * ) FROM tab1 AS cor0
----
6141

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL + + 89 * + 23 * COUNT ( * ) FROM tab1 AS cor0
----
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + - ( - 10 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6346
SELECT + - ( - 10 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-30

query I rowsort
SELECT DISTINCT + 18 * + col0 FROM tab1 cor0
----
1530
1638
918

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT DISTINCT + - COUNT( * ) - - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NOT ( 59 * col0 IS NOT NULL ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT + - COUNT ( * ) - - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NOT ( 59 * col0 IS NOT NULL ) ) ) )
----
0

query II rowsort
SELECT ALL + col1, + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + COUNT( * ) * + COUNT( * ) * - 46 AS col0 FROM tab1 AS cor0
----
-414

skipif mysql # not compatible
query I rowsort label-6351
SELECT + COUNT ( * ) * + COUNT ( * ) * - 46 AS col0 FROM tab1 AS cor0
----
-414

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 35 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 * + ( + col0 ) col0 FROM tab1
----
2193
3655
3913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col0 ) col2 FROM tab0 WHERE col2 - - + 16 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL + MIN( ALL - 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL + MIN ( ALL - 62 ) FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - + ( + 48 ) * + SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
4944

skipif mysql # not compatible
query I rowsort label-6356
SELECT - + ( + 48 ) * + SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
4944

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT + MIN( ALL 10 ) FROM tab0 AS cor0 WHERE NOT 53 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT + MIN ( ALL 10 ) FROM tab0 AS cor0 WHERE NOT 53 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 28 * 10 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT DISTINCT ( COUNT( * ) ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT ( COUNT ( * ) ) / - + COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT - 77 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT - 77 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL 82 + - COUNT( * ) col0 FROM tab1 cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6361
SELECT ALL 82 + - COUNT ( * ) col0 FROM tab1 cor0
----
79

query I rowsort
SELECT DISTINCT + ( - 93 ) AS col2 FROM tab1 cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT + COUNT( * ) + - 21 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT + COUNT ( * ) + - 21 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - ( + col0 ), col2 + + col2, - - col2 - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + - 32
----

query I rowsort
SELECT DISTINCT - 71 * - 64 + + 65 AS col0 FROM tab2 AS cor0
----
4609

query I rowsort
SELECT ALL + col1 * col0 * 21 + + - ( - col0 ) + 73 + - 49 FROM tab1 AS cor0
----
15069
89932
9034

query I rowsort
SELECT ALL - col0 + col0 + - - 39 FROM tab1
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 14 + + col1 + + + col1 + + col2 * + - col1, - 10 AS col0 FROM tab0
----
-154
-10
-3631
-10
-83
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col0 col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL - col1 + 62 * - col0 * col2 AS col0 FROM tab1 AS cor0
----
-303566
-310935
-383703

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * 69 * 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT SUM( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6374
SELECT SUM ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT DISTINCT + CAST( - + 95 AS SIGNED ) * - col1 * col2 * - + col1 FROM tab1 AS cor0
----
-140125
-14270140
-1787520

skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + CAST ( - + 95 AS INTEGER ) * - col1 * col2 * - + col1 FROM tab1 AS cor0
----
-140125
-14270140
-1787520

query I rowsort
SELECT ALL col2 * - + col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + COUNT( * ) * - 62 FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6377
SELECT + COUNT ( * ) * - 62 FROM tab2 AS cor0
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + 68 * COUNT( * ) col2 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6379
SELECT + 68 * COUNT ( * ) col2 FROM tab2 AS cor0
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6380
SELECT DISTINCT COUNT( * ) DIV 93 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT COUNT ( * ) / 93 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT DISTINCT - 46, + COUNT( + - col2 ) AS col0 FROM tab0
----
-46
3

skipif mysql # not compatible
query II rowsort label-6381
SELECT DISTINCT - 46, + COUNT ( + - col2 ) AS col0 FROM tab0
----
-46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT DISTINCT 87 - + COUNT( * ) * - COUNT( * ) FROM tab2, tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT 87 - + COUNT ( * ) * - COUNT ( * ) FROM tab2, tab0 AS cor0
----
168

query I rowsort
SELECT ALL 43 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - + col2 AND + ( 41 )
----

query II rowsort
SELECT - + col0 * col0, + ( + - col2 ) AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6386
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - col2, 8 AS col0 FROM tab1 AS cor0 WHERE col1 <= - col1 * - col0 + + - col0
----
-59
8
-68
8
-96
8

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 66, - col2 + + 95 col0 FROM tab2 AS cor0
----
66
37
66
55
66
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL 20 + COUNT( DISTINCT + - col0 ) FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL 20 + COUNT ( DISTINCT + - col0 ) FROM tab0 cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT CAST( + + col0 AS SIGNED ) + + col2 * - col0 + - + col1 AS col1 FROM tab1
----
-4859
-4935
-6144

skipif mysql # not compatible
query I rowsort label-6392
SELECT CAST ( + + col0 AS INTEGER ) + + col2 * - col0 + - + col1 AS col1 FROM tab1
----
-4859
-4935
-6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col0 + - 50 + - col1 * + col1 * - 24 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6393
SELECT - - col1 AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col0 + - 50 + - col1 * + col1 * - 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 + col1 AS col1 FROM tab2 AS cor0
----
102
118
128

query I rowsort
SELECT col2 + + + col2 + 47 + + - col1 - - 54 * + 17 * - - 84 + - 87 FROM tab2 AS cor0
----
77067
77075
77121

query I rowsort
SELECT + 41 + + col2 * + - col1 FROM tab0 AS cor0
----
-169
-3766
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT + 91 + + COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + 91 + + COUNT ( * ) FROM tab0
----
94

query I rowsort
SELECT DISTINCT - 57 + + col2 * + col0 FROM tab2 WHERE + col1 < - col1
----

query I rowsort
SELECT DISTINCT col2 + 17 AS col0 FROM tab1
----
113
76
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + + col0 NOT IN ( - col0, col2, + + col1, + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 17, col0 * - col2 AS col2 FROM tab2
----
-17
-1058
-17
-2560
-17
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT MIN( ALL 81 ) * + + COUNT( * ) * + - MAX( + col0 ) FROM tab2
----
-18225

skipif mysql # not compatible
query I rowsort label-6402
SELECT MIN ( ALL 81 ) * + + COUNT ( * ) * + - MAX ( + col0 ) FROM tab2
----
-18225

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL + MAX( col0 ) + COUNT( ALL + + 80 ) * + 93 FROM tab2 AS cor0
----
354

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL + MAX ( col0 ) + COUNT ( ALL + + 80 ) * + 93 FROM tab2 AS cor0
----
354

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col1 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 NOT BETWEEN + + col0 + col0 AND - 12
----

query I rowsort
SELECT ALL + col2 * + 68 + - col0 AS col0 FROM tab2 AS cor0
----
1518
2656
3869

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 * ( - col0 ) AS col0 FROM tab2 cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL + - ( - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + - ( - COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6410
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST( col2 AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6410
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST ( col2 AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6411
SELECT - MIN( + col2 ) DIV - MIN( ALL + 37 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6411
SELECT - MIN ( + col2 ) / - MIN ( ALL + 37 ) col0 FROM tab0
----
0

query I rowsort
SELECT 74 * + col2 FROM tab1
----
4366
5032
7104

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 + - col0 + + 16 * + col1 AND col2
----

query I rowsort
SELECT ALL + ( + ( + col1 ) ) + + col1 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
-189
-3726
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col0 col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT col1 * - - 48 + + 9 * + col2 + - 81 * + col0 FROM tab0 AS cor0
----
-5949
-6918
3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6417
SELECT ALL - ( + ( + 71 ) ) + + ( - + 12 ) + - + ( + - COUNT( * ) ) DIV SUM( + + col2 ) AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL - ( + ( + 71 ) ) + + ( - + 12 ) + - + ( + - COUNT ( * ) ) / SUM ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 22 ) AND NULL
----

query I rowsort
SELECT + col0 * col1 + - 3 AS col1 FROM tab0 AS cor0
----
1212
1824
94

query I rowsort
SELECT + 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT + + 87 + - 35 AS col0 FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6422
SELECT DISTINCT + 9 + + col0 / - CAST( NULL AS SIGNED ) + col2 + - 39 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT + 9 + + col0 / - CAST ( NULL AS INTEGER ) + col2 + - 39 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT COUNT( - - col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6423
SELECT COUNT ( - - col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL col0 + - col2 * - + 88 AS col1 FROM tab0 AS cor0
----
4151
8809
967

query II rowsort
SELECT col0 - - + 17 AS col1, - col0 AS col2 FROM tab0 cor0
----
104
-87
114
-97
32
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6426
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - - col1 + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT + 36 + + COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-6428
SELECT + 36 + + COUNT ( * ) FROM tab2
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= col0 * col0 + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL <> NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 - + col0 + - col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + COUNT( + col1 ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6432
SELECT + COUNT ( + col1 ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT + SUM( + + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-6433
SELECT + SUM ( + + col1 ) FROM tab0 cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col1 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT - - 85 - + SUM( DISTINCT + 82 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-6435
SELECT - - 85 - + SUM ( DISTINCT + 82 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 / - - ( + + col2 ) * + col0 NOT BETWEEN NULL AND col1 + - + col0 + - - col2
----

query I rowsort
SELECT - - col0 * 2 * + col1 AS col2 FROM tab1 AS cor0
----
1428
850
8554

onlyif mysql # aggregate syntax: 
query II rowsort label-6438
SELECT DISTINCT COUNT( * ), 11 AS col2 FROM tab2 AS cor0
----
3
11

skipif mysql # not compatible
query II rowsort label-6438
SELECT DISTINCT COUNT ( * ), 11 AS col2 FROM tab2 AS cor0
----
3
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL SUM( DISTINCT + 49 ) AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL SUM ( DISTINCT + 49 ) AS col0 FROM tab1 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query II rowsort
SELECT + - col2 AS col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT - col1 * + 74 FROM tab1
----
-1036
-3478
-370

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 83 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - col0 * + + col0 FROM tab1
----
132651
614125
753571

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT DISTINCT - col0 DIV + 41 AS col1 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT - col0 / + 41 AS col1 FROM tab0
----
-2
0

query I rowsort
SELECT - 52 - 23 FROM tab0
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT DISTINCT + col2 DIV + - 21 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT + col2 / + - 21 FROM tab1
----
-2
-3
-4

query I rowsort
SELECT ALL ( - - 64 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT ALL - 79 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - 79 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT - - col2 DIV - - 70 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT - - col2 / - - 70 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6451
SELECT + col1 * - CAST( NULL AS DECIMAL ) * - col2 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT + col1 * - CAST ( NULL AS REAL ) * - col2 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 - col0 * col2 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT IN ( - 31 / + + 6, col2 / + 18, + 88, + - col2 - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT - COUNT( * ) - - MIN( 85 ) * - - MIN( - col2 ) AS col2 FROM tab2
----
-4933

skipif mysql # not compatible
query I rowsort label-6455
SELECT - COUNT ( * ) - - MIN ( 85 ) * - - MIN ( - col2 ) AS col2 FROM tab2
----
-4933

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL 86 - - 96 * - - COUNT( * ) AS col1 FROM tab0
----
374

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL 86 - - 96 * - - COUNT ( * ) AS col1 FROM tab0
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT - ( + + ( + - COUNT( * ) ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6457
SELECT - ( + + ( + - COUNT ( * ) ) ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT ALL col2 DIV + + 17 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL col2 / + + 17 AS col2 FROM tab2
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 66 col1 FROM tab0 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 * - col2 + - + 8 + col0 + - 31 - col1 * col0 col0 FROM tab2 AS cor0
----
232257
255373
57484

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - 55 AND - - 24
----

query I rowsort
SELECT DISTINCT + col1 * + ( - col2 ) FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT ALL 32 DIV 45 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL 32 / 45 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT DISTINCT - col2 DIV + - col2 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6464
SELECT DISTINCT - col2 / + - col2 col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT 11 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT 11 / + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 93 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 BETWEEN + col2 AND col1 * + + ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT 40 + col2 NOT BETWEEN - - ( - 75 ) AND - col0 * - - col0 - + col2
----

query I rowsort
SELECT DISTINCT col2 * + 83 FROM tab0
----
3901
8217
830

query I rowsort
SELECT ALL - col2 + col1 * + - col0 AS col2 FROM tab1
----
-4345
-484
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6472
SELECT ALL 40 AS col2, - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL 40 AS col2, - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - SUM( DISTINCT col0 ) * 70 FROM tab1
----
-15890

skipif mysql # not compatible
query I rowsort label-6473
SELECT - SUM ( DISTINCT col0 ) * 70 FROM tab1
----
-15890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT DISTINCT CAST( 11 AS SIGNED ) * col0 AS col0 FROM tab0
----
1067
165
957

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT CAST ( 11 AS INTEGER ) * col0 AS col0 FROM tab0
----
1067
165
957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT + CAST( - 32 AS SIGNED ) FROM tab1
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-6475
SELECT + CAST ( - 32 AS INTEGER ) FROM tab1
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT - COUNT( * ) + - 82 FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-6476
SELECT - COUNT ( * ) + - 82 FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-91

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * - + col2 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT - 58 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-6478
SELECT - 58 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT + + 47 + - COUNT( * ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT + + 47 + - COUNT ( * ) FROM tab0 AS cor0
----
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col1 ) + 19 FROM tab2
----
-32
-48
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 * col2 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT + CAST( NULL AS SIGNED ) - - col0 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT + CAST ( NULL AS INTEGER ) - - col0 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( 21 - + 56 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT - ( MAX( + 34 ) ) AS col2 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - ( MAX ( + 34 ) ) AS col2 FROM tab2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT - 65 - - 76 DIV + col1 AS col2 FROM tab2
----
-64
-64
-65

skipif mysql # not compatible
query I rowsort label-6487
SELECT - 65 - - 76 / + col1 AS col2 FROM tab2
----
-64
-64
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT ALL 76 DIV 60 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL 76 / 60 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT DISTINCT + 40 AS col0 FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) BETWEEN ( NULL ) AND col2
----

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT + 40 AS col0 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6490
SELECT + CAST( NULL AS SIGNED ) + 38 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT + CAST ( NULL AS INTEGER ) + 38 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT IN ( + ( 64 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT 74 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT 74 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 35 - + col2 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6494
SELECT ( col2 ) DIV col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-6494
SELECT ( col2 ) / col1 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT 96 + - COUNT( * ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6495
SELECT 96 + - COUNT ( * ) AS col2 FROM tab1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6496
SELECT 90 DIV + CAST( - COUNT( + col2 ) AS SIGNED ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6496
SELECT 90 / + CAST ( - COUNT ( + col2 ) AS INTEGER ) AS col1 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT MIN( DISTINCT - col0 ) FROM tab2 WHERE NOT ( + 66 ) * + 98 < col0
----
-75

skipif mysql # not compatible
query I rowsort label-6497
SELECT MIN ( DISTINCT - col0 ) FROM tab2 WHERE NOT ( + 66 ) * + 98 < col0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col1 / ( col2 ) BETWEEN + col0 / col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT ( + ( COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT ( + ( COUNT ( * ) ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL - 29 + COUNT( * ) AS col1 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - 29 + COUNT ( * ) AS col1 FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6503
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col2 ) * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6503
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col2 ) * CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE - 74 BETWEEN + 99 AND + 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN ( + col0 ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN ( + col0 ) AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT 44 * - MIN( + 53 * CAST( + 51 * 87 AS SIGNED ) ) FROM tab1 AS cor0
----
-10347084

skipif mysql # not compatible
query I rowsort label-6507
SELECT 44 * - MIN ( + 53 * CAST ( + 51 * 87 AS INTEGER ) ) FROM tab1 AS cor0
----
-10347084

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 26 + 82 NOT BETWEEN NULL AND 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT COUNT( * ) * SUM( DISTINCT - 57 ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-6509
SELECT COUNT ( * ) * SUM ( DISTINCT - 57 ) FROM tab2 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT 93 * - COUNT( * ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6510
SELECT 93 * - COUNT ( * ) FROM tab2 AS cor0
----
-279

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 35 * - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 69 AS col2 FROM tab0 cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6513
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
NULL

query I rowsort
SELECT + col1 * - ( - ( + col1 ) * + col1 ) AS col0 FROM tab2
----
132651
300763
456533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT DISTINCT - ( 13 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT - ( 13 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 * col0 + + col2 < 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + 36 FROM tab0 cor0 WHERE col2 + - 56 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN ( - 50 * col1 ) AND 44 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 56 AS col0 FROM tab2 AS cor0
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT ( 99 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT ( 99 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT DISTINCT + - 61 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + - 61 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - ( col1 ) + 43 FROM tab1 AS cor0
----
-4
29
38

query I rowsort
SELECT DISTINCT 70 + + col2 * - col2 FROM tab0 AS cor0
----
-2139
-30
-9731

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL + SUM( col0 ) + + 30 FROM tab2 cor0
----
215

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL + SUM ( col0 ) + + 30 FROM tab2 cor0
----
215

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 22 <> ( - col2 * col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT + ( - - 47 ) * col2 + + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT + ( - - 47 ) * col2 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 27 AS col1 FROM tab0
----
-12
60
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 68 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 68 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col0 * - ( + 50 ) + 48 * - col1 AS col2 FROM tab2
----
-148
-496
534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 + - col2 col0 FROM tab0
----
-113
-3
56

query I rowsort
SELECT ALL + 48 * - col1 FROM tab2 AS cor0 WHERE col2 BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - ( - 66 ) AS col0 FROM tab1 AS cor0
----
19
52
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND col0 * col1 NOT BETWEEN - 97 * - 8 AND NULL
----

query I rowsort
SELECT ALL + ( - - 0 ) + - 99 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT col2 + ( 55 ) FROM tab0
----
102
154
65

query III rowsort
SELECT * FROM tab2 WHERE ( ( - 9 - col2 ) > - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL - SUM( 16 ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6537
SELECT ALL - SUM ( 16 ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT 59 * + COUNT( * ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT 59 * + COUNT ( * ) FROM tab0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT + MAX( DISTINCT 90 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
90

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT + MAX ( DISTINCT 90 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + col0 * - - 73 col1 FROM tab0
----
1110
6438
7178

query I rowsort
SELECT - 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT - + 20 * + COUNT( * ) AS col0 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - + 20 * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-60

query II rowsort
SELECT DISTINCT + col1 AS col2, + col2 * + col2 FROM tab2 AS cor0
----
51
529
67
3364
77
1600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 7 - + col1 * 39 AND col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6546
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 21 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6546
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 21 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - + col0 - + + 30
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 + + 42 IS NOT NULL
----

query I rowsort
SELECT 65 * - + ( - col1 ) FROM tab1
----
3055
325
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * - col2 col0 FROM tab1 WHERE NOT + - col1 / col1 < + 17
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 27 ) IN ( 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT + COUNT( 82 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + COUNT ( 82 ) FROM tab2
----
3

query I rowsort
SELECT ALL ( + col1 ) * + + 41 * - + col2 + col0 AS col1 FROM tab0
----
-156072
-3962
-8523

query I rowsort
SELECT col0 * 23 * - 61 FROM tab2 AS cor0
----
-105225
-64538
-89792

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ( - - MIN( - col0 ) ) * + - 59 FROM tab2 AS cor0
----
4425

skipif mysql # not compatible
query I rowsort label-6555
SELECT ( - - MIN ( - col0 ) ) * + - 59 FROM tab2 AS cor0
----
4425

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <= + 55
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 60 / - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT + col2 * ( + col2 DIV - 10 ) AS col0 FROM tab1 AS cor0 WHERE - col0 * - col0 DIV - + 2 NOT BETWEEN ( - + col1 + + 12 ) AND ( col1 ) * col0
----
-295
-408
-864

skipif mysql # not compatible
query I rowsort label-6558
SELECT + col2 * ( + col2 / - 10 ) AS col0 FROM tab1 AS cor0 WHERE - col0 * - col0 / - + 2 NOT BETWEEN ( - + col1 + + 12 ) AND ( col1 ) * col0
----
-295
-408
-864

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab0 AS cor0 WHERE col1 + 13 - col0 * + - ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT col1 DIV col1 AS col1 FROM tab2 AS cor0 WHERE 95 DIV - - col2 NOT IN ( - 80 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6560
SELECT col1 / col1 AS col1 FROM tab2 AS cor0 WHERE 95 / - - col2 NOT IN ( - 80 )
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND ( 8 + - col1 + - - col1 * + col1 * 51 )
----

query II rowsort
SELECT - - 62, col1 AS col1 FROM tab1 cor0
----
62
14
62
47
62
5

query I rowsort
SELECT ALL + - col1 * + - 40 * + 25 FROM tab0 AS cor0
----
1000
21000
81000

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT + COUNT( * ) * + ( - + COUNT( * ) ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT + COUNT ( * ) * + ( - + COUNT ( * ) ) col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT 79 * + COUNT( * ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-6565
SELECT 79 * + COUNT ( * ) FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 71 * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 71 * col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col1 <> + ( + - 34 ) * + + 76 * - ( col1 * 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT DISTINCT MAX( - 61 ) - 87 * - 26 FROM tab1
----
2201

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT MAX ( - 61 ) - 87 * - 26 FROM tab1
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT 87 + - COUNT( * ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6569
SELECT 87 + - COUNT ( * ) AS col0 FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( + col0 / + - 69 ) NOT BETWEEN NULL AND ( - col2 * + CAST( ( 92 ) AS SIGNED ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( + col0 / + - 69 ) NOT BETWEEN NULL AND ( - col2 * + CAST ( ( 92 ) AS INTEGER ) )
----
14
47
5

query I rowsort
SELECT DISTINCT col2 + + - col2 + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT + 92 DIV col0 * - + 13 * + + 53 * + col1 AS col1 FROM tab1 AS cor0
----
-32383
-3445
-9646

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 92 / col0 * - + 13 * + + 53 * + col1 AS col1 FROM tab1 AS cor0
----
-32383
-3445
-9646

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 40 + - col0 IS NOT NULL OR NOT + col2 BETWEEN NULL AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6574
SELECT - + col1 AS col0, CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-6574
SELECT - + col1 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL col0 + - col1 * col1 + + col0 * + col0 FROM tab1 cor0
----
2456
6163
7285

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL + 89 + SUM( + + col1 ) AS col2 FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + 89 + SUM ( + + col1 ) AS col2 FROM tab1
----
155

query I rowsort
SELECT - col2 * + + 12 + - 96 AS col2 FROM tab2 AS cor0
----
-372
-576
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + - col0 col2 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT - - MIN( + 43 ) * 51 FROM tab0 AS cor0
----
2193

skipif mysql # not compatible
query I rowsort label-6580
SELECT - - MIN ( + 43 ) * 51 FROM tab0 AS cor0
----
2193

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT + SUM( ALL + ( + 88 ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
264
3

skipif mysql # not compatible
query II rowsort label-6581
SELECT + SUM ( ALL + ( + 88 ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
264
3

query II rowsort
SELECT ALL col0 AS col1, 52 FROM tab1
----
51
52
85
52
91
52

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6584
SELECT DISTINCT * FROM tab2 WHERE col2 / col1 + - + 60 NOT IN ( + col2, ( + col2 ) + - col2 / - CAST( - col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6584
SELECT DISTINCT * FROM tab2 WHERE col2 / col1 + - + 60 NOT IN ( + col2, ( + col2 ) + - col2 / - CAST ( - col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT + 83 * COUNT( * ) AS col1 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT + 83 * COUNT ( * ) AS col1 FROM tab2
----
249

query I rowsort
SELECT ( + ( - col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + 61 * - - col1 AS col0 FROM tab0 AS cor0
----
1281
4941
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6588
SELECT * FROM tab0 cor0 WHERE NOT ( col1 + + col2 ) IN ( + col2 - - + 11 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6588
SELECT * FROM tab0 cor0 WHERE NOT ( col1 + + col2 ) IN ( + col2 - - + 11 * - - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT - col0 * - + col2 + + col0 AS col1, - col1 FROM tab1 AS cor0
----
4947
-14
5100
-5
6279
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT + 83 + MIN( - 39 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT + 83 + MIN ( - 39 ) FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NOT col2 NOT IN ( - + 51, + col1 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NOT col2 NOT IN ( - + 51, + col1 + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT 72 * + SUM( + + col0 ) AS col2 FROM tab2
----
13320

skipif mysql # not compatible
query I rowsort label-6592
SELECT 72 * + SUM ( + + col0 ) AS col2 FROM tab2
----
13320

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6593
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( + + 63 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6593
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( + + 63 AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT DISTINCT 61 * CAST( - - 26 AS SIGNED ) AS col2 FROM tab0
----
1586

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT 61 * CAST ( - - 26 AS INTEGER ) AS col2 FROM tab0
----
1586

query III rowsort
SELECT * FROM tab0 WHERE ( - ( - 42 ) ) IN ( 58 )
----

query I rowsort
SELECT - - 2 + + col0 + + 65 * 63 FROM tab1 AS cor0
----
4148
4182
4188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT DISTINCT 88 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT 88 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col2 / - 19 / + - 25 ) AND NULL
----

query II rowsort
SELECT + col2 + + + 83 * - + col2 * - col0 + - + 82 AS col0, col2 FROM tab0 AS cor0
----
58480
47
72138
10
797066
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6600
SELECT ALL - 12 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL - 12 / + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) * col0 * - col0 * col0 + - - 18 col0 FROM tab0 AS cor0
----
50643
57289779
88529299

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + ( - 44 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 ) IN ( 52 + 94 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6604
SELECT DISTINCT + COUNT( * ) + + - 71 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT + COUNT ( * ) + + - 71 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT 86 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-6605
SELECT 86 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
83

query I rowsort
SELECT 69 * + + col1 FROM tab0
----
1449
5589
69

query III rowsort
SELECT * FROM tab0 WHERE + 36 <= ( NULL )
----

query I rowsort
SELECT col2 * + 91 * - 30 FROM tab2
----
-109200
-158340
-62790

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 83 - + 76 AS col1 FROM tab2
----
-159
-159
-159

query II rowsort
SELECT DISTINCT 33, 33 * - col0 AS col1 FROM tab1
----
33
-1683
33
-2805
33
-3003

query I rowsort
SELECT 17 * + - ( 41 ) FROM tab1
----
-697
-697
-697

query II rowsort
SELECT + col1 AS col0, + 5 * + - col0 + 6 FROM tab0
----
1
-479
21
-429
81
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL IN ( + + 78 - col2 - 84, + 57, + 90 + + + 58 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT - - 94 - + COUNT( DISTINCT + + 72 ) + + 10 AS col0 FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6615
SELECT - - 94 - + COUNT ( DISTINCT + + 72 ) + + 10 AS col0 FROM tab1 AS cor0
----
103

query I rowsort
SELECT col2 * + ( - ( - - col1 ) ) + col1 * - + col0 AS col0 FROM tab2
----
-3519
-8008
-8911

query I rowsort
SELECT col1 + + + col2 + - col2 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL <> + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 / + 95 - + 70 col0 FROM tab2 AS cor0 WHERE NOT col0 > ( + col0 + - 58 )
----

query I rowsort
SELECT - col1 * + 41 - - col2 FROM tab2 AS cor0
----
-2068
-2689
-3117

query II rowsort
SELECT - - col0 * - col0 AS col1, + 49 * 90 FROM tab0 AS cor0
----
-225
4410
-7569
4410
-9409
4410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT CAST( NULL AS SIGNED ) / - col0 / col1 / - + 38 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT CAST ( NULL AS INTEGER ) / - col0 / col1 / - + 38 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 67 + - ( + 42 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT - 50 * 21 AS col1 FROM tab1
----
-1050

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN - 55 + + 36 AND ( - 49 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 46 IS NOT NULL
----

query I rowsort
SELECT col0 + - 3 FROM tab1
----
48
82
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6628
SELECT DISTINCT - COUNT( * ), + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-6628
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
1

query I rowsort
SELECT DISTINCT 93 + - - col2 * + col1 FROM tab0 AS cor0
----
192
303
3900

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT + COUNT( * ) AS col1, 62 * - COUNT( * ) FROM tab0 cor0
----
3
-186

skipif mysql # not compatible
query II rowsort label-6630
SELECT + COUNT ( * ) AS col1, 62 * - COUNT ( * ) FROM tab0 cor0
----
3
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT - MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6631
SELECT - MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT ALL - 71 + col1 DIV - col1 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - 71 + col1 / - col1 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL - 16 + col1 + - 10 - + 92 * + + col1 * + 40 FROM tab2
----
-187655
-246519
-283309

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT ALL - 11 DIV - col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - 11 / - col1 FROM tab1
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6635
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + 84 - col2 DIV - 89 + - col1 col0 FROM tab2
----
-33
-41
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6635
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + 84 - col2 / - 89 + - col1 col0 FROM tab2
----
-33
-41
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6636
SELECT * FROM tab0 WHERE - col2 * 91 - - CAST( - col2 AS SIGNED ) NOT IN ( col1, col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6636
SELECT * FROM tab0 WHERE - col2 * 91 - - CAST ( - col2 AS INTEGER ) NOT IN ( col1, col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL 71 - + + MAX( DISTINCT col0 ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL 71 - + + MAX ( DISTINCT col0 ) FROM tab0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT + 10 + col2 + col2 - + + 17 + + col1 * col0 DIV + + col2 + 85 * - - 54 FROM tab0
----
4702
4781
4785

skipif mysql # not compatible
query I rowsort label-6638
SELECT + 10 + col2 + col2 - + + 17 + + col1 * col0 / + + col2 + 85 * - - 54 FROM tab0
----
4702
4781
4785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 93 ) col1 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = col0 / - - col2 + + + CAST( + 22 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = col0 / - - col2 + + + CAST ( + 22 AS INTEGER )
----

query I rowsort
SELECT ALL + col0 * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT - - 41 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 5 + col0 * + 22 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL - 7 * - - ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6643
SELECT ALL - 7 * - - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
21

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT 8 IS NOT NULL )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - 81 + + + col0 * + + col0 ) = 85
----

query I rowsort
SELECT ALL + ( + 22 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL SUM( + 6 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL SUM ( + 6 ) FROM tab0 AS cor0
----
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col1 ) * + + col1 + - col0 / + + ( - col1 ) + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - - ( col2 ) * col2 AND + 51 + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL + ( - SUM( ALL ( + col0 ) ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + ( - SUM ( ALL ( + col0 ) ) ) AS col1 FROM tab1
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT ( col0 ) DIV + - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6652
SELECT ( col0 ) / + - col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT - 63 * - - col0 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT - col2 * + col1 * + - 82 AS col1 FROM tab1
----
110208
24190
262072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 65 col1, col1 AS col2 FROM tab2 AS cor0
----
65
51
65
67
65
77

query II rowsort
SELECT DISTINCT col1, 95 AS col0 FROM tab2 cor0
----
51
95
67
95
77
95

query II rowsort
SELECT ALL - 6 AS col0, - 21 * - + col0 FROM tab0 AS cor0
----
-6
1827
-6
2037
-6
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6658
SELECT DISTINCT - 96 FROM tab0 AS cor0 WHERE NULL IN ( col2, + 1 - + CAST( NULL AS SIGNED ) * + 43 )
----

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - 96 FROM tab0 AS cor0 WHERE NULL IN ( col2, + 1 - + CAST ( NULL AS INTEGER ) * + 43 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - ( - col2 ) * col2 - + 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6660
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - - 26 / CAST( + CAST( 23 AS SIGNED ) AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - 26 / CAST ( + CAST ( 23 AS INTEGER ) AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col0 + 6 FROM tab1
----
57
91
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) > - col1 * + - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 * col1 < 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + col1 = + CAST( NULL AS SIGNED ) * - + col2
----

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + col1 = + CAST ( NULL AS INTEGER ) * - + col2
----

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + 63 IN ( ( 5 ), + 44 + + 79 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 53 + + 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE ( 46 + + col1 / col0 IS NOT NULL )
----
1
21
81

query II rowsort
SELECT + col0, + col1 * + col2 - ( - col0 ) AS col2 FROM tab0
----
15
3822
87
297
97
196

query I rowsort
SELECT + col0 FROM tab0 WHERE ( col1 ) > NULL
----

query I rowsort
SELECT 93 * + 21 * + 41 - - 91 + 45 FROM tab0
----
80209
80209
80209

query I rowsort
SELECT DISTINCT - col1 * - + col1 - + 13 FROM tab1
----
12
183
2196

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT DISTINCT - COUNT( * ) AS col2, - 72 col1 FROM tab0
----
-3
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6674
SELECT DISTINCT - COUNT ( * ) AS col2, - 72 col1 FROM tab0
----
-3
-72

query I rowsort
SELECT ALL - 55 - - col0 FROM tab1
----
-4
30
36

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - - 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 26 * - + 23 FROM tab2 AS cor0
----
-598

query I rowsort
SELECT DISTINCT - + 70 * - col2 FROM tab0 AS cor0
----
3290
6930
700

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 = - + 62 )
----

query II rowsort
SELECT DISTINCT 90 AS col2, col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT + col1 DIV + 63 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6682
SELECT + col1 / + 63 FROM tab2
----
0
1
1

query I rowsort
SELECT + - col2 / - 21 + - - 77 + - col0 * + + 49 + 55 FROM tab0 WHERE NOT + 37 * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT DISTINCT + MIN( + 48 ) AS col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + MIN ( + 48 ) AS col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT - MAX( - + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - MAX ( - + col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 80 + + 17 AS col2 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT - col0 + + - 58 DIV - + 23 AS col0 FROM tab1 AS cor0
----
-49
-83
-89

skipif mysql # not compatible
query I rowsort label-6688
SELECT - col0 + + - 58 / - + 23 AS col0 FROM tab1 AS cor0
----
-49
-83
-89

query II rowsort
SELECT + ( col0 ) + - col0 AS col1, 13 AS col2 FROM tab0 AS cor0
----
0
13
0
13
0
13

query I rowsort
SELECT ALL - ( + + col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT col2 + + - 29 + - col2 AS col0 FROM tab0
----
-29

query I rowsort
SELECT 59 FROM tab0 WHERE - col0 * - + 10 >= - col2
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6693
SELECT DISTINCT 43 AS col0, COUNT( * ) FROM tab2 AS cor0
----
43
3

skipif mysql # not compatible
query II rowsort label-6693
SELECT DISTINCT 43 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
43
3

query I rowsort
SELECT col1 - ( - + 76 ) * + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
3890
6465
6963

query I rowsort
SELECT + + 40 * - col1 - 17 AS col0 FROM tab1 cor0
----
-1897
-217
-577

query I rowsort
SELECT ALL col1 + + ( + col0 ) FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT DISTINCT col1 DIV - 45 - col0 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT col1 / - 45 - col0 FROM tab1 AS cor0
----
-51
-85
-92

query II rowsort
SELECT DISTINCT + col0 AS col1, 73 * - - 63 AS col1 FROM tab0 WHERE + + 16 * + ( - col0 ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT CAST( + 98 AS SIGNED ) AS col2 FROM tab0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6699
SELECT CAST ( + 98 AS INTEGER ) AS col2 FROM tab0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6700
SELECT DISTINCT 83 DIV - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
1
3
83

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT 83 / - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
1
3
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT - CAST( + + 72 AS SIGNED ) FROM tab1 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-6701
SELECT - CAST ( + + 72 AS INTEGER ) FROM tab1 AS cor0
----
-72
-72
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 - - 25 BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT MAX( + 93 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-6703
SELECT MAX ( + 93 ) FROM tab2
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 28 AS col2, ( ( col2 ) ) + - 79 col2 FROM tab2 AS cor0
----
28
-21
28
-39
28
-56

query I rowsort
SELECT DISTINCT - 12 * - - col0 FROM tab1 AS cor0
----
-1020
-1092
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT DISTINCT - + SUM( ALL col2 ) FROM tab1 AS cor0 WHERE NOT 80 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT - + SUM ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT 80 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT col1 DIV ( + ( + + 1 ) ) + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6707
SELECT col1 / ( + ( + + 1 ) ) + - col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6708
SELECT DISTINCT - MAX( + 71 ) * - + MIN( DISTINCT col0 ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0 WHERE 1 * - 83 > + col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6708
SELECT DISTINCT - MAX ( + 71 ) * - + MIN ( DISTINCT col0 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 WHERE 1 * - 83 > + col1
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 73 >= + 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 75 * - - col0 + - col2 AS col1 FROM tab0 AS cor0
----
1078
6515
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT + 89 + - - COUNT( * ) + - COUNT( * ) * 94 FROM tab2 cor0
----
-190

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT + 89 + - - COUNT ( * ) + - COUNT ( * ) * 94 FROM tab2 cor0
----
-190

query III rowsort
SELECT * FROM tab0 WHERE + col1 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 7 AS col0 FROM tab1 AS cor0 WHERE col2 NOT IN ( + col1 + + + 63 )
----
7
7
7

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - + col0 + + 18 AS col0 FROM tab0 AS cor0
----
-69
-79
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT + COUNT( * ) * + + COUNT( - col0 ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6718
SELECT + COUNT ( * ) * + + COUNT ( - col0 ) col0 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col2 + + + col2 + + + 52 col2 FROM tab1
----
59
170
68
188
96
244

query II rowsort
SELECT col1, + col0 AS col1 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6721
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6721
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT + SUM( CAST( - col1 AS SIGNED ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6722
SELECT + SUM ( CAST ( - col1 AS INTEGER ) ) FROM tab2
----
-195

query II rowsort
SELECT - 94 * col0 AS col1, col2 FROM tab0
----
-1410
47
-8178
10
-9118
99

query I rowsort
SELECT DISTINCT col2 * 3 AS col0 FROM tab0
----
141
297
30

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 82 IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, ( + + col1 ) FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6727
SELECT ALL + col2 * + - CAST( + + 75 AS SIGNED ) + + + col2, - col2 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6727
SELECT ALL + col2 * + - CAST ( + + 75 AS INTEGER ) + + + col2, - col2 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT ALL - col2 AS col0, + 67 AS col0 FROM tab1 AS cor0
----
-59
67
-68
67
-96
67

query I rowsort
SELECT DISTINCT - ( - 34 ) AS col2 FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col1 <> - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT col2 DIV 24 col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6732
SELECT col2 / 24 col0 FROM tab2
----
0
1
2

query I rowsort
SELECT + 60 * + + 79 FROM tab0
----
4740
4740
4740

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6734
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2, col2 + col0 / - CAST( - - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6734
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2, col2 + col0 / - CAST ( - - col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col2 * col0 + 88 FROM tab0 AS cor0
----
793
958
9691

query I rowsort
SELECT - col1 * col1 + ( col1 ) * - - ( - col0 ) + - col1 FROM tab2 AS cor0
----
-10934
-4998
-9581

query I rowsort
SELECT DISTINCT - - col2 * + + col1 * + ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT 66 * 90 FROM tab0
----
5940

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6739
SELECT ALL - col0 * 21 * + col2, + CAST( NULL AS SIGNED ) col1 FROM tab1
----
-102816
NULL
-105315
NULL
-129948
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6739
SELECT ALL - col0 * 21 * + col2, + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
-102816
NULL
-105315
NULL
-129948
NULL

query II rowsort
SELECT DISTINCT - col2 * + 64 * col0 AS col0, col0 AS col2 FROM tab0
----
-45120
15
-55680
87
-614592
97

query I rowsort
SELECT col1 + col2 + + 8 FROM tab0
----
108
136
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 * - 37 col1 FROM tab0
----
-3663

onlyif mysql # aggregate syntax: 
query II rowsort label-6743
SELECT ALL COUNT( * ) AS col0, + 25 FROM tab0
----
3
25

skipif mysql # not compatible
query II rowsort label-6743
SELECT ALL COUNT ( * ) AS col0, + 25 FROM tab0
----
3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT DISTINCT - 77 * + COUNT( * ) AS col0 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT - 77 * + COUNT ( * ) AS col0 FROM tab1
----
-231

query I rowsort
SELECT 33 + + 15 + + col2 AS col0 FROM tab0 cor0
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + - COUNT( - col0 ) + ( - - MAX( 81 ) ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6746
SELECT + - COUNT ( - col0 ) + ( - - MAX ( 81 ) ) AS col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT DISTINCT col2 + ( + - col2 ) * col0 - - + ( - - ( col1 ) ) FROM tab0 AS cor0
----
-577
-839
-9503

query I rowsort
SELECT DISTINCT + col0 - + + ( ( + - 14 ) ) FROM tab2 AS cor0
----
60
78
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT ALL col0 DIV col0 - - 13 AS col2 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL col0 / col0 - - 13 AS col2 FROM tab1
----
14
14
14

query I rowsort
SELECT DISTINCT col1 * - - col0 * 54 - - col2 AS col1 FROM tab0
----
5337
65657
98668

query I rowsort
SELECT - col1 - + - 10 FROM tab2 cor0
----
-41
-57
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT + 80 - - 94 + MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-6752
SELECT + 80 - - 94 + MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
189

query I rowsort
SELECT ALL - col0 * + col2 + - - 86 AS col0 FROM tab0 AS cor0
----
-619
-784
-9517

query I rowsort
SELECT 27 * + col2 AS col0 FROM tab0 AS cor0
----
1269
2673
270

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6755
SELECT DISTINCT + col2 + - + col2 / - CAST( col2 AS SIGNED ) * + 30, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query II rowsort label-6755
SELECT DISTINCT + col2 + - + col2 / - CAST ( col2 AS INTEGER ) * + 30, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL + MIN( ALL col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT COUNT( + col1 ) * - - COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6757
SELECT COUNT ( + col1 ) * - - COUNT ( * ) col1 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-6758
SELECT - - col2 DIV 13, col2 FROM tab0 AS cor0
----
0
10
3
47
7
99

skipif mysql # not compatible
query II rowsort label-6758
SELECT - - col2 / 13, col2 FROM tab0 AS cor0
----
0
10
3
47
7
99

query I rowsort
SELECT 78 * col0 + - - col0 AS col1 FROM tab1 AS cor0
----
4029
6715
7189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( - ( 44 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT + MIN( + CAST( - - 73 AS SIGNED ) ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-6761
SELECT + MIN ( + CAST ( - - 73 AS INTEGER ) ) FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6762
SELECT - CAST( col0 AS SIGNED ) * - - 55 FROM tab0 AS cor0
----
-4785
-5335
-825

skipif mysql # not compatible
query I rowsort label-6762
SELECT - CAST ( col0 AS INTEGER ) * - - 55 FROM tab0 AS cor0
----
-4785
-5335
-825

query I rowsort
SELECT ALL - - ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 BETWEEN col1 AND NULL
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT - 77 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 77 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 AS col2, col1 * + - 23 FROM tab1
----
51
-322
85
-115
91
-1081

query I rowsort
SELECT DISTINCT 80 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
80

query I rowsort
SELECT - 83 * + col1 + 72 + + col1 FROM tab2 AS cor0
----
-4110
-5422
-6242

query II rowsort
SELECT ALL 86 AS col2, + 77 + + 68 FROM tab0 AS cor0
----
86
145
86
145
86
145

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 97 + col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 + - + col2 AND - ( + - 9 ) * col2
----

query I rowsort
SELECT - 95 + - + col0 - - - col0 - + col0 * - col1 + 35 * 59 AS col1 FROM tab1 AS cor0
----
2225
2582
6065

query I rowsort
SELECT ALL + col0 / + col0 AS col1 FROM tab0 AS cor0 WHERE + col1 + + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 58 + col0 + + 29 + + - 92 - - col1 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * 69 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT ALL - col1 * - 99 + col1 * - col1 AS col1 FROM tab2
----
1694
2144
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL - ( + SUM( - ( col2 ) ) ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - ( + SUM ( - ( col2 ) ) ) AS col1 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT - 82 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) * + 77 * - 84 - - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6779
SELECT - 82 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * + 77 * - 84 - - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 92 + - col2 + - 43 IN ( col0, col2, + + ( - - col2 ) + + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT 90 DIV - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6781
SELECT 90 / - col2 FROM tab2
----
-1
-2
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT + + col0 * + + col0 DIV + col0 + - col1 AS col0 FROM tab1 WHERE - + col2 * col0 IS NOT NULL
----
37
44
80

skipif mysql # not compatible
query I rowsort label-6782
SELECT + + col0 * + + col0 / + col0 + - col1 AS col0 FROM tab1 WHERE - + col2 * col0 IS NOT NULL
----
37
44
80

query I rowsort
SELECT DISTINCT + + col2 + - col2 - 60 * 20 FROM tab0 AS cor0
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT DISTINCT + - col1 + + 90 + col2 DIV - - col1 FROM tab2 AS cor0
----
13
23
39

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + - col1 + + 90 + col2 / - - col1 FROM tab2 AS cor0
----
13
23
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6785
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL AND NOT NULL > NULL
----

skipif mysql # not compatible
query III rowsort label-6785
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL AND NOT NULL > NULL
----

query I rowsort
SELECT - col0 + col1 * - col0 FROM tab2 WHERE NOT - ( + col1 ) + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col2 > 12
----

query I rowsort
SELECT + - 34 * - col0 / + 34 + 16 AS col1 FROM tab2 AS cor0 WHERE NOT col1 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL COUNT( * ) * + 52 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL COUNT ( * ) * + 52 FROM tab1 AS cor0
----
156

query II rowsort
SELECT ALL - col0, 26 AS col0 FROM tab2 AS cor0
----
-46
26
-64
26
-75
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6791
SELECT ALL - 10 DIV CAST( ( + col1 ) AS SIGNED ) * - - col1 AS col0 FROM tab1
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL - 10 / CAST ( ( + col1 ) AS INTEGER ) * - - col1 AS col0 FROM tab1
----
-10
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT ALL - MIN( ALL - col1 ) AS col2, - 59 AS col1 FROM tab2
----
77
-59

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL - MIN ( ALL - col1 ) AS col2, - 59 AS col1 FROM tab2
----
77
-59

query I rowsort
SELECT DISTINCT + 77 * col1 AS col0 FROM tab1
----
1078
3619
385

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / + col0 + - - ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 13 FROM tab2 AS cor0
----
-299
-520
-754

query I rowsort
SELECT ALL + - col0 * - 60 + - ( - 38 ) AS col0 FROM tab1 AS cor0
----
3098
5138
5498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + - col2 col2 FROM tab0 AS cor0
----
-109
-146
-198

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > ( 22 )
----

query I rowsort
SELECT ALL - + 12 + + col1 AS col1 FROM tab0 AS cor0
----
-11
69
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - COUNT( * ) - - COUNT( * ) + 23 * - COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6800
SELECT - COUNT ( * ) - - COUNT ( * ) + 23 * - COUNT ( * ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - 77 - + 97 AS col0 FROM tab0
----
-174

query I rowsort
SELECT ALL ( + + 4 ) + + col1 FROM tab1
----
18
51
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6803
SELECT ALL - COUNT( * ) AS col0, - MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6803
SELECT ALL - COUNT ( * ) AS col0, - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
-3
NULL

query I rowsort
SELECT DISTINCT - col0 + 71 + 31 FROM tab0
----
15
5
87

query I rowsort
SELECT + col1 - - col1 AS col2 FROM tab0 WHERE - 93 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT col1 DIV - 76 + ( + - col0 ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6806
SELECT col1 / - 76 + ( + - col0 ) FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 82 + - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6809
SELECT * FROM tab2 AS cor0 WHERE + CAST( - + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6809
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT DISTINCT CAST( - 48 AS SIGNED ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT CAST ( - 48 AS INTEGER ) FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL ( COUNT( - - col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL ( COUNT ( - - col1 ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6812
SELECT - + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT - + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL - SUM( DISTINCT - col0 ) * - 42 AS col1 FROM tab0 AS cor0
----
-8358

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL - SUM ( DISTINCT - col0 ) * - 42 AS col1 FROM tab0 AS cor0
----
-8358

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 12 / - col0 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT 51 * - SUM( - 64 ) AS col1 FROM tab0 AS cor0
----
9792

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT 51 * - SUM ( - 64 ) AS col1 FROM tab0 AS cor0
----
9792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT ALL - + CAST( col2 AS SIGNED ) * + - ( + col0 ) FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - + CAST ( col2 AS INTEGER ) * + - ( + col0 ) FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - - ( - ( - ( - 34 ) ) ) * + col0 FROM tab2 AS cor0
----
-1564
-2176
-2550

query I rowsort
SELECT - 34 * + col1 * + + col0 AS col0 FROM tab1 AS cor0
----
-14450
-145418
-24276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + + col2 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 94 AS col2, - col0 AS col0 FROM tab0
----
-94
-15
-94
-87
-94
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT + COUNT( DISTINCT - ( - + 47 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT + COUNT ( DISTINCT - ( - + 47 ) ) FROM tab2
----
1

query II rowsort
SELECT ALL - col0 * + 25 * - col1 AS col2, 95 AS col2 FROM tab0
----
2425
95
30375
95
45675
95

onlyif mysql # DIV for integer division: 
query II rowsort label-6823
SELECT 53 DIV ( + col2 ), 24 col2 FROM tab0
----
0
24
1
24
5
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6823
SELECT 53 / ( + col2 ), 24 col2 FROM tab0
----
0
24
1
24
5
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT + 17 * - COUNT( * ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6824
SELECT + 17 * - COUNT ( * ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT MIN( + 81 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT MIN ( + 81 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT DISTINCT COUNT( + - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT COUNT ( + - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + col0 AS col2, - col0 FROM tab0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT ALL col2, + col1 * + + col1 FROM tab2
----
23
2601
40
5929
58
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - MIN( ALL + 9 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6830
SELECT - MIN ( ALL + 9 ) FROM tab2 AS cor0
----
-9

query II rowsort
SELECT col1 AS col1, - col0 FROM tab1 WHERE 95 + + - 60 + + ( + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 64 > NULL )
----

query I rowsort
SELECT - ( + - 51 ) + - col0 + + col2 FROM tab1
----
25
28
96

query I rowsort
SELECT DISTINCT - col0 + - 87 + + 64 AS col1 FROM tab2 AS cor0
----
-69
-87
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - ( - + col1 ) ) * - col1 - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT - COUNT( * ) + + MAX( ALL + - col2 ) FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT - COUNT ( * ) + + MAX ( ALL + - col2 ) FROM tab1 cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + - ( + - col2 ) + - col0 col2 FROM tab0 AS cor0
----
13
2194
9704

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 + - 45 / - - col0 - - - col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6840
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col2 - - 68 AS col0 FROM tab1
----
127
136
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49, + 63 col2 FROM tab2
----
-49
63
-49
63
-49
63

query I rowsort
SELECT DISTINCT 83 - + col1 * + col0 * + col2 FROM tab0
----
-18187
-57022
-9520

query II rowsort
SELECT col1 AS col0, + ( + 62 ) AS col0 FROM tab1
----
14
62
47
62
5
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6845
SELECT COUNT( - - col2 ) - - COUNT( * ) AS col0, - 27 * - + 23 AS col1 FROM tab1
----
6
621

skipif mysql # not compatible
query II rowsort label-6845
SELECT COUNT ( - - col2 ) - - COUNT ( * ) AS col0, - 27 * - + 23 AS col1 FROM tab1
----
6
621

query I rowsort
SELECT + col1 - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT col2 * CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6847
SELECT col2 * CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT - + MIN( + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT - + MIN ( + col1 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + 59 AS col0, col1 + + - 40 FROM tab1 AS cor0
----
59
-26
59
-35
59
7

onlyif mysql # DIV for integer division: 
query II rowsort label-6850
SELECT + col1, col2 DIV col1 DIV - + col2 + + col2 FROM tab0
----
1
98
21
10
81
47

skipif mysql # not compatible
query II rowsort label-6850
SELECT + col1, col2 / col1 / - + col2 + + col2 FROM tab0
----
1
98
21
10
81
47

query I rowsort
SELECT ALL - col0 * 6 * - col0 FROM tab2
----
12696
24576
33750

query I rowsort
SELECT DISTINCT - col0 * + 58 AS col1 FROM tab1 cor0
----
-2958
-4930
-5278

query I rowsort
SELECT + - 86 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
115584
25370
274856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 44 col2, + col0 col2 FROM tab2 AS cor0
----
44
46
44
64
44
75

query I rowsort
SELECT ALL ( + ( + + col1 ) ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 13 * - col1 FROM tab1 AS cor0
----
182
611
65

query I rowsort
SELECT + - 67 FROM tab1 WHERE NOT + + ( - + col1 ) >= NULL
----

query I rowsort
SELECT 50 * - col2 + - col1 AS col0 FROM tab1 WHERE NOT - col0 > col0
----
-2955
-3447
-4814

query I rowsort
SELECT ALL + 25 - + col2 FROM tab2 WHERE NOT ( ( NOT ( ( NULL ) NOT BETWEEN + - col2 * - col0 AND NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6860
SELECT CAST( - + CAST( + - col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6860
SELECT CAST ( - + CAST ( + - col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - col1 * col0 * - col2 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6863
SELECT + + col0 DIV + col0 + - col2 DIV col0 * + CAST( - col1 AS SIGNED ) + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
29
48
6

skipif mysql # not compatible
query I rowsort label-6863
SELECT + + col0 / + col0 + - col2 / col0 * + CAST ( - col1 AS INTEGER ) + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
29
48
6

query I rowsort
SELECT - ( col0 ) + + col2 + - + col1 FROM tab0 AS cor0
----
-49
-98
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * - col2 col1 FROM tab2
----
1725
3000
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 20 col0 FROM tab0
----
1620
20
420

query I rowsort
SELECT + - 99 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL 47 * + COUNT( * ) AS col1 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 47 * + COUNT ( * ) AS col1 FROM tab2
----
141

query I rowsort
SELECT DISTINCT - col1 - + col0 FROM tab1 cor0 WHERE NOT col2 >= - col1
----

query I rowsort
SELECT DISTINCT 47 * + col1 + + col1 FROM tab0 AS cor0 WHERE NOT ( + 64 ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + col1 * - - col2 + + col1 - + 99, ( - col1 ) + - + col0 + + col2 AS col2 FROM tab2 AS cor0
----
-1221
-74
-3102
-101
-3918
-84

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 44 > NULL
----

query I rowsort
SELECT + - 27 - col2 AS col0 FROM tab2 AS cor0
----
-50
-67
-85

query I rowsort
SELECT col1 - - - 69 FROM tab1 AS cor0
----
-22
-55
-64

query I rowsort
SELECT ALL 52 + + - 26 + - - 69 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + 9 + + + col2 AS col1 FROM tab2 cor0
----
32
49
67

query I rowsort
SELECT + 13 + + 88 AS col1 FROM tab1 AS cor0
----
101
101
101

query III rowsort
SELECT ALL * FROM tab0 WHERE - + ( - - col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT ( + + 88 ) * - 24 * - CAST( + + col0 AS SIGNED ) + col0 * + 30 FROM tab1
----
109242
182070
194922

skipif mysql # not compatible
query I rowsort label-6879
SELECT ( + + 88 ) * - 24 * - CAST ( + + col0 AS INTEGER ) + col0 * + 30 FROM tab1
----
109242
182070
194922

query II rowsort
SELECT col2 + col2 AS col2, col1 AS col1 FROM tab1
----
118
5
136
47
192
14

query I rowsort
SELECT 56 * - col1 AS col0 FROM tab2 AS cor0
----
-2856
-3752
-4312

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 79 + + + 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6883
SELECT CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - col1 + + col1 > - 81 + + - col0 * - col1 * col0 + - - 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 6035628694bdea36f584f3649088551d

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT - - COUNT( * ) * - 58 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT - - COUNT ( * ) * - 58 FROM tab0 AS cor0
----
-174

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6888
SELECT DISTINCT + COUNT( DISTINCT + CAST( col0 AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + COUNT ( DISTINCT + CAST ( col0 AS REAL ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 12 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col2 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( col0 ) + - col1 * - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * - col0 * - - 53 AS col2 FROM tab2
----
112148
217088
298125

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 10 - 69 >= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + - col0 AS col1 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT ALL - col0 * + - col1 AS col2, col0 FROM tab1
----
425
85
4277
91
714
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT ALL col2 DIV 50 * - ( + - col1 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL col2 / 50 * - ( + - col1 ) FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT 35 * - COUNT( * ) AS col2 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-6897
SELECT 35 * - COUNT ( * ) AS col2 FROM tab1
----
-105

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 52 ) + + 8 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL + COUNT( DISTINCT - + col0 ) * - - COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + COUNT ( DISTINCT - + col0 ) * - - COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT ( + + col2 ) * + - col1 AS col0 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 <= NULL
----

query I rowsort
SELECT ALL - col0 * - + col2 * - col2 AS col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL 90 + - + CAST( - + col1 AS SIGNED ) AS col0 FROM tab1
----
104
137
95

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 90 + - + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1
----
104
137
95

query I rowsort
SELECT + 14 * - col1 AS col0 FROM tab0 WHERE + 9 IS NOT NULL
----
-1134
-14
-294

query II rowsort
SELECT DISTINCT col0, + col1 - + col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col1 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT ALL 22 + - COUNT( * ) + - - CAST( - 82 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL 22 + - COUNT ( * ) + - - CAST ( - 82 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-63

query II rowsort
SELECT - col0 AS col2, - 18 AS col1 FROM tab2 AS cor0
----
-46
-18
-64
-18
-75
-18

query I rowsort
SELECT ALL - + col1 + + 79 + - col2 * col0 FROM tab0 AS cor0
----
-707
-812
-9525

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT + SUM( 31 ) AS col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6910
SELECT + SUM ( 31 ) AS col1 FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT - - col1 - - ( + + col1 ) FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL + col1 - - 97 AS col2 FROM tab0
----
118
178
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6913
SELECT * FROM tab0 WHERE NOT 79 * + 1 + - CAST( NULL AS SIGNED ) * + 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6913
SELECT * FROM tab0 WHERE NOT 79 * + 1 + - CAST ( NULL AS INTEGER ) * + 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 20, + col1 FROM tab0
----
20
1
20
21
20
81

query II rowsort
SELECT + col0 AS col2, - 34 AS col1 FROM tab1
----
51
-34
85
-34
91
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6916
SELECT CAST( NULL AS SIGNED ) * - 84 * 27 AS col1, 61 FROM tab0
----
NULL
61
NULL
61
NULL
61

skipif mysql # not compatible
query II rowsort label-6916
SELECT CAST ( NULL AS INTEGER ) * - 84 * 27 AS col1, 61 FROM tab0
----
NULL
61
NULL
61
NULL
61

query I rowsort
SELECT + 26 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6918
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0 WHERE NOT 89 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6918
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0 WHERE NOT 89 IS NOT NULL
----

query II rowsort
SELECT 27 AS col2, 99 FROM tab2 AS cor0
----
27
99
27
99
27
99

query II rowsort
SELECT DISTINCT - col1 AS col2, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT - 62 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
-62

query I rowsort
SELECT 79 * - col0 + + 59 FROM tab2
----
-3575
-4997
-5866

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6923
SELECT * FROM tab0 WHERE NOT ( CAST( - 43 AS SIGNED ) + + col2 ) > col1
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-6923
SELECT * FROM tab0 WHERE NOT ( CAST ( - 43 AS INTEGER ) + + col2 ) > col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE col0 / - 39 < col2 * + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + + 88 FROM tab1
----
139
173
179

query III rowsort
SELECT * FROM tab2 WHERE 95 * 6 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT - ( MIN( DISTINCT 31 ) ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT - ( MIN ( DISTINCT 31 ) ) AS col1 FROM tab1
----
-31

query I rowsort
SELECT + 64 FROM tab0 WHERE ( NULL ) IN ( - 32 + 70 )
----

query I rowsort
SELECT ALL - 25 + + col2 FROM tab1
----
34
43
71

query I rowsort
SELECT ALL - ( - 48 ) AS col0 FROM tab1 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT DISTINCT - 35 * MIN( DISTINCT - col2 ) col1 FROM tab1 WHERE 4 + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6931
SELECT DISTINCT - 35 * MIN ( DISTINCT - col2 ) col1 FROM tab1 WHERE 4 + col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 78 ) NOT BETWEEN - 97 AND - col0 * - 24
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) >= ( col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 68 * + col0 + - col2 FROM tab0
----
5906
6497
973

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL + COUNT( * ) * COUNT( * ) + 80 AS col2 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + COUNT ( * ) * COUNT ( * ) + 80 AS col2 FROM tab2
----
89

query I rowsort
SELECT col2 * 4 + + col2 AS col0 FROM tab0 WHERE ( - col0 ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 84 + + col2 FROM tab2
----
-26
-44
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT + col2 AS col2 FROM tab2 WHERE col1 + col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6938
SELECT + col2 AS col2 FROM tab2 WHERE col1 + col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 66 * 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) < ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6942
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) * - col0 + + col2 * col2 ) BETWEEN col2 * + col0 AND 72
----

skipif mysql # not compatible
query III rowsort label-6942
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) * - col0 + + col2 * col2 ) BETWEEN col2 * + col0 AND 72
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6943
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) + - col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-6943
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS REAL ) + - col1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT - 53 + - col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT - 53 + - col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( - col2 * 18 )
----

query I rowsort
SELECT DISTINCT 55 + - col1 FROM tab2 AS cor0
----
-12
-22
4

query I rowsort
SELECT DISTINCT + 35 FROM tab0 cor0 WHERE NOT - col0 * col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT ALL COUNT( * ) + - COUNT( ALL col2 ) DIV COUNT( ALL - 49 * + 27 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL COUNT ( * ) + - COUNT ( ALL col2 ) / COUNT ( ALL - 49 * + 27 ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NULL ) <> 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT + COUNT( * ) - 98 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6950
SELECT + COUNT ( * ) - 98 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - ( COUNT( * ) ) * - 47 - - COUNT( * ) FROM tab2 cor0
----
144

skipif mysql # not compatible
query I rowsort label-6952
SELECT - ( COUNT ( * ) ) * - 47 - - COUNT ( * ) FROM tab2 cor0
----
144

query I rowsort
SELECT col0 - ( 57 ) FROM tab0 AS cor0
----
-42
30
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT + col1 - + col1 * - CAST( col1 + 38 AS SIGNED ) FROM tab2 AS cor0
----
4590
7102
8932

skipif mysql # not compatible
query I rowsort label-6954
SELECT + col1 - + col1 * - CAST ( col1 + 38 AS INTEGER ) FROM tab2 AS cor0
----
4590
7102
8932

query I rowsort
SELECT ALL - 23 + + col2 AS col2 FROM tab2 AS cor0
----
0
17
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT - + CAST( NULL AS SIGNED ) + + 96 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT - + CAST ( NULL AS INTEGER ) + + 96 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT COUNT( * ) + 9 col2 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6957
SELECT COUNT ( * ) + 9 col2 FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT - - 73 * + col1 FROM tab1 AS cor0
----
1022
3431
365

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT - - 54 DIV + ( - col2 - - ( - 51 ) ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT - - 54 / + ( - col2 - - ( - 51 ) ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - 86 / + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT DISTINCT + ( 93 ) DIV col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT + ( 93 ) / col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6963
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( 61 AS SIGNED ) + - 18 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6963
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( 61 AS INTEGER ) + - 18 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT ALL col1 DIV col0 AS col0 FROM tab2 WHERE NOT col1 IN ( - 4 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL col1 / col0 AS col0 FROM tab2 WHERE NOT col1 IN ( - 4 )
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * - 34 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6966
SELECT DISTINCT * FROM tab1 WHERE CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6966
SELECT DISTINCT * FROM tab1 WHERE CAST ( + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 65 AS col2 FROM tab1 WHERE NOT - col1 IN ( col1 )
----
-65
-65
-65

query I rowsort
SELECT + col1 * - col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + COUNT( * ) * 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-6969
SELECT + COUNT ( * ) * 54 FROM tab1
----
162

query I rowsort
SELECT DISTINCT + 62 * - 80 AS col1 FROM tab1
----
-4960

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 54 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT ALL + col1 DIV + 13 + 61 AS col1 FROM tab1 AS cor0
----
61
62
64

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + col1 / + 13 + 61 AS col1 FROM tab1 AS cor0
----
61
62
64

query I rowsort
SELECT - 50 AS col1 FROM tab1 AS cor0 WHERE NOT - 45 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT DISTINCT + col2 DIV 67 * + col0 FROM tab0 AS cor0
----
0
97

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + col2 / 67 * + col0 FROM tab0 AS cor0
----
0
97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col1 / - col0 - - col0 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + col0 AND col2 - - ( 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT - ( + - 63 ) + + - COUNT( * ) * 79 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT - ( + - 63 ) + + - COUNT ( * ) * 79 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT + + 19 + + 46 AS col1 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT - 52 + - COUNT( * ) + + - ( + 28 ) + + 57 * 26 AS col0 FROM tab0 AS cor0
----
1399

skipif mysql # not compatible
query I rowsort label-6979
SELECT - 52 + - COUNT ( * ) + + - ( + 28 ) + + 57 * 26 AS col0 FROM tab0 AS cor0
----
1399

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT - 55 + + COUNT( * ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6980
SELECT - 55 + + COUNT ( * ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT ALL - 9 + + col0 AS col0 FROM tab1 AS cor0
----
42
76
82

query I rowsort
SELECT + 83 FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( col1 )
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL - COUNT( DISTINCT - - col0 ) + - + SUM( + col1 ) FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - COUNT ( DISTINCT - - col0 ) + - + SUM ( + col1 ) FROM tab1 cor0
----
-69

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * 24 - 54 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 94 * - col1 FROM tab2
----
-4794
-6298
-7238

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 * + - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT COUNT( * ) * - 56 * - + 63 AS col2 FROM tab0
----
10584

skipif mysql # not compatible
query I rowsort label-6987
SELECT COUNT ( * ) * - 56 * - + 63 AS col2 FROM tab0
----
10584

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( + 21 )
----

query I rowsort
SELECT col1 * - - ( - + 15 ) AS col1 FROM tab0
----
-1215
-15
-315

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + 12 + - - 92 NOT BETWEEN + col0 - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + 12 + - - 92 NOT BETWEEN + col0 - col0 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT ALL col2 DIV 64 + + 39 AS col1 FROM tab2 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL col2 / 64 + + 39 AS col1 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT DISTINCT - col1 + + - 71 DIV - - col1 AS col1 FROM tab1 AS cor0
----
-19
-48

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - col1 + + - 71 / - - col1 AS col1 FROM tab1 AS cor0
----
-19
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab0 cor0 WHERE ( col2 ) IS NOT NULL
----
80
80
80

query I rowsort
SELECT ALL + + col2 + + col2 * col0 * + - col2 FROM tab0 cor0
----
-33088
-8690
-950598

query I rowsort
SELECT DISTINCT - ( - + col1 ) + - 24 + - col2 AS col1 FROM tab2 cor0
----
-15
13
4

query I rowsort
SELECT - ( + col2 ) + - col0 * col2 AS col0 FROM tab1
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT ( - - 55 ) + + MIN( ALL - col0 ) AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-6998
SELECT ( - - 55 ) + + MIN ( ALL - col0 ) AS col1 FROM tab2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - + 80 - col1 * + 57 AS col2 FROM tab2 cor0
----
-2987
-3899
-4469

query I rowsort
SELECT ALL 44 * + col1 FROM tab1 AS cor0
----
2068
220
616

query I rowsort
SELECT DISTINCT 44 * - col2 FROM tab0 AS cor0 WHERE NOT - 92 / - 18 * col0 + + col1 NOT BETWEEN NULL AND ( + 14 * col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col2 + + col0 )
----

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 68 IN ( 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 * + col0 ) < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT + CAST( 76 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) * col0 * - - col0 + - col1 + - col0 ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-7007
SELECT + CAST ( 76 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * col0 * - - col0 + - col1 + - col0 ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + 96 * - 63 FROM tab2 AS cor0
----
-6048

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT - col2 DIV col0 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-7009
SELECT - col2 / col0 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
0
21
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT ALL + col1 DIV - ( col2 * + col1 ) FROM tab1 AS cor0 WHERE ( col1 ) <> col0 DIV 28 DIV 32
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + col1 / - ( col2 * + col1 ) FROM tab1 AS cor0 WHERE ( col1 ) <> col0 / 28 / 32
----
0
0
0

query I rowsort
SELECT + 43 AS col0 FROM tab2 cor0
----
43
43
43

query II rowsort
SELECT ALL - 75, - col1 AS col0 FROM tab0
----
-75
-1
-75
-21
-75
-81

query II rowsort
SELECT + 77 AS col2, - 0 FROM tab0
----
77
0
77
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT - CAST( ( + 49 ) AS SIGNED ) AS col1 FROM tab0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-7014
SELECT - CAST ( ( + 49 ) AS INTEGER ) AS col1 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT ALL + 8 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 69 * - col0 FROM tab0
----
1035
6003
6693

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - - col0 - col1
----

query I rowsort
SELECT ALL col0 * 40 AS col0 FROM tab0
----
3480
3880
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT CAST( NULL AS SIGNED ) + - col1 FROM tab0 WHERE NOT + col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7020
SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab0 WHERE NOT + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL + + COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT + MAX( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-7022
SELECT + MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT ALL - col1 DIV - 80 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL - col1 / - 80 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT DISTINCT 88 * MIN( ALL - col1 ) col1 FROM tab1
----
-4136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7024
SELECT DISTINCT 88 * MIN ( ALL - col1 ) col1 FROM tab1
----
-4136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7025
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( CAST( NULL AS SIGNED ) * + col2 + - - col2 ) AND col1
----

skipif mysql # not compatible
query III rowsort label-7025
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( CAST ( NULL AS INTEGER ) * + col2 + - - col2 ) AND col1
----

query I rowsort
SELECT ALL col1 + - col2 - + 16 + col0 FROM tab2 AS cor0
----
58
68
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT - + col2 / col0 FROM tab1 AS cor0 WHERE ( NULL BETWEEN - - 24 AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 80 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - col0 NOT IN ( col1 + - + col2 - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 53 AS col1 FROM tab1 WHERE NULL <> col0 / - col1 * + + col0 * col1 + 79 + - col2 * - col2
----

query I rowsort
SELECT + col2 * 59 + col0 FROM tab0
----
2788
5938
677

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col2 - + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7036
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 32 - + col0 ) IN ( CAST( NULL AS SIGNED ), + 94 / - - 52 * 31 )
----

skipif mysql # not compatible
query III rowsort label-7036
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 32 - + col0 ) IN ( CAST ( NULL AS INTEGER ), + 94 / - - 52 * 31 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col0 FROM tab2, tab0 AS cor0
----
20

query I rowsort
SELECT ALL - 48 * - 57 + + 97 AS col2 FROM tab2 AS cor0
----
2833
2833
2833

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT - SUM( 36 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IN ( - 3 )
----
-108

skipif mysql # not compatible
query I rowsort label-7040
SELECT - SUM ( 36 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 + - col2 IN ( - 3 )
----
-108

query I rowsort
SELECT 9 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL + col1, + col2 * + + 52 FROM tab1
----
14
4992
47
3536
5
3068

query I rowsort
SELECT ALL col2 * - + 78 FROM tab2
----
-1794
-3120
-4524

query III rowsort
SELECT * FROM tab0 WHERE - 44 = - - col1 * - col1 + col0 AND NOT - 70 IN ( 62 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7045
SELECT ALL * FROM tab1 WHERE + - col1 * + 24 * - CAST( NULL AS DECIMAL ) = - - 75
----

skipif mysql # not compatible
query III rowsort label-7045
SELECT ALL * FROM tab1 WHERE + - col1 * + 24 * - CAST ( NULL AS REAL ) = - - 75
----

query I rowsort
SELECT ALL + col1 * - - col0 + col2 AS col0 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT 43 * + COUNT( * ) + - SUM( - col0 ) FROM tab0 AS cor0
----
328

skipif mysql # not compatible
query I rowsort label-7047
SELECT 43 * + COUNT ( * ) + - SUM ( - col0 ) FROM tab0 AS cor0
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL + - MAX( col2 ) + - 45 AS col1 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + - MAX ( col2 ) + - 45 AS col1 FROM tab2 AS cor0
----
-103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 90 + - 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 40 * col1 AS col0 FROM tab1
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL - COUNT( * ) + - ( - 29 ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
20

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - COUNT ( * ) + - ( - 29 ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 + - col0 col0 FROM tab1 AS cor0
----
-34
-68
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT ALL col1 * col0 * + - 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-7053
SELECT ALL col1 * col0 * + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col2 + + + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 58 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col1, + 80, - col2, col2 + - ( + 58 ) )
----

query II rowsort
SELECT DISTINCT col0 + col0, + col2 AS col1 FROM tab0
----
174
10
194
99
30
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - - 98 + - col2 * + + ( + col0 ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-7059
SELECT DISTINCT - col1 * col1 AS col1, + col1 DIV - 9 FROM tab1
----
-196
-1
-2209
-5
-25
0

skipif mysql # not compatible
query II rowsort label-7059
SELECT DISTINCT - col1 * col1 AS col1, + col1 / - 9 FROM tab1
----
-196
-1
-2209
-5
-25
0

query I rowsort
SELECT + col2 * col0 * + 90 FROM tab2
----
230400
391500
95220

query I rowsort
SELECT + 38 * + col2 AS col2 FROM tab0
----
1786
3762
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT DISTINCT 17 - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT 17 - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 - + col0 + - 57 col2 FROM tab0
----
-71
-81
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7064
SELECT DISTINCT + col0 DIV col2, col1 FROM tab0
----
0
1
0
81
8
21

skipif mysql # not compatible
query II rowsort label-7064
SELECT DISTINCT + col0 / col2, col1 FROM tab0
----
0
1
0
81
8
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT 50 * + 88 * COUNT( * ) - + 35 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
13095

skipif mysql # not compatible
query I rowsort label-7065
SELECT 50 * + 88 * COUNT ( * ) - + 35 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
13095

query II rowsort
SELECT ALL + + ( + - col2 ) AS col1, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL + - col0 + - col1 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7068
SELECT DISTINCT col2 * - + CAST( NULL AS SIGNED ) AS col2, 43 FROM tab1 AS cor0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-7068
SELECT DISTINCT col2 * - + CAST ( NULL AS INTEGER ) AS col2, 43 FROM tab1 AS cor0
----
NULL
43

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE col2 >= - ( + 85 )
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 >= col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 78 ) IN ( col0 + col1 + + + col0, - col2 * - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7072
SELECT DISTINCT + + 83, ( - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) col0 FROM tab2 AS cor0
----
83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7072
SELECT DISTINCT + + 83, ( - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) col0 FROM tab2 AS cor0
----
83
NULL

query I rowsort
SELECT DISTINCT 91 FROM tab2 AS cor0 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT DISTINCT 88, 86 * + 10 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
88
2580

skipif mysql # not compatible
query II rowsort label-7074
SELECT DISTINCT 88, 86 * + 10 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
88
2580

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT + MAX( ALL + - ( - + 54 ) ) AS col1 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-7075
SELECT + MAX ( ALL + - ( - + 54 ) ) AS col1 FROM tab1 cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT COUNT( * ) / + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT COUNT ( * ) / + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7077
SELECT + - MIN( DISTINCT - + col0 ) DIV + 1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7077
SELECT + - MIN ( DISTINCT - + col0 ) / + 1 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + - col2 ) * 89 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 * col2 + - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT MAX( + 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT MAX ( + 14 ) FROM tab2
----
14

query I rowsort
SELECT DISTINCT + col0 * col0 * - - col1 FROM tab0 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
158949
18225
9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - col2 * col1 + - - col1 IS NULL AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 85 - - + 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7084
SELECT ALL 13 AS col2, - col0 + - CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab0
----
13
NULL
13
NULL
13
NULL

skipif mysql # not compatible
query II rowsort label-7084
SELECT ALL 13 AS col2, - col0 + - CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab0
----
13
NULL
13
NULL
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL + COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) <= ( + 96 ) / - col0 - + col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) <= ( + 96 ) / - col0 - + col2 * + col1
----
0

query I rowsort
SELECT + 50 / + col1 + + + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 49 + col1 AS col1 FROM tab1 cor0
----
54
63
96

query I rowsort
SELECT + col1 * + - 84 FROM tab2 AS cor0
----
-4284
-5628
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT CAST( + col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7089
SELECT CAST ( + col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7090
SELECT + + COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7090
SELECT + + COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - - ( + col1 ) - col1 + 82 AS col0 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT - - col1 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1134
-1806
-96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 90 + + col2 NOT IN ( - col0, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 * - 92 + - - 86 + + - col1 * + - col2, + col2 FROM tab0 AS cor0
----
11345
47
2228
10
277
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT ALL - 14 * - 20 - - COUNT( * ) AS col0, 54 * - + MIN( ALL + ( + - col0 ) ) + + - 87 AS col1 FROM tab2 AS cor0
----
283
3963

skipif mysql # not compatible
query II rowsort label-7095
SELECT ALL - 14 * - 20 - - COUNT ( * ) AS col0, 54 * - + MIN ( ALL + ( + - col0 ) ) + + - 87 AS col1 FROM tab2 AS cor0
----
283
3963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - 97 col1 FROM tab2 AS cor0
----
39
57
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT 71 + + + SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7097
SELECT 71 + + + SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
192

query I rowsort
SELECT ALL 51 + - col2 + col0 * col0 FROM tab1 AS cor0
----
2556
7217
8264

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7099
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT ALL + 20 DIV col2 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + 20 / col2 + + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL + ( + SUM( - - 91 ) ) col2 FROM tab0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7101
SELECT ALL + ( + SUM ( - - 91 ) ) col2 FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT MIN( DISTINCT - + col0 ) - - COUNT( * ) AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT MIN ( DISTINCT - + col0 ) - - COUNT ( * ) AS col1 FROM tab0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7103
SELECT ALL * FROM tab2 WHERE NOT + CAST( - - 2 AS SIGNED ) * + 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7103
SELECT ALL * FROM tab2 WHERE NOT + CAST ( - - 2 AS INTEGER ) * + 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 23 * col2 IS NULL
----

query II rowsort
SELECT ALL + 91 * - ( + + 43 ) * - col2 AS col0, col1 + + col1 AS col0 FROM tab0
----
183911
162
387387
2
39130
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT DISTINCT SUM( - 92 ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT SUM ( - 92 ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 69 + + col1 * + col2 + + 29 col0 FROM tab2 AS cor0
----
2789
5869
7917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7108
SELECT DISTINCT MAX( col2 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT MAX ( col2 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ( - + col1 ) AS col0, col1 - 41 AS col1 FROM tab0
----
-1
-40
-21
-20
-81
40

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col0 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT + COUNT( ALL + 99 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7111
SELECT + COUNT ( ALL + 99 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT - + CAST( NULL AS SIGNED ) * - MIN( - + 86 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT - + CAST ( NULL AS INTEGER ) * - MIN ( - + 86 ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ( - + col0 ) AS col2, + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + + 75 * - COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7114
SELECT + + 75 * - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
-225

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + col1 * + 50 >= NULL
----

query II rowsort
SELECT + ( col1 ) AS col0, + col2 + col0 AS col0 FROM tab1 AS cor0
----
14
147
47
159
5
144

query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + col2 ) / - + 68 * col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - + 97 AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7119
SELECT DISTINCT col0 * - + col2 * + 60, 0 / CAST( - 49 AS SIGNED ) * - - 60 FROM tab0 WHERE NOT NULL < col0
----

skipif mysql # not compatible
query II rowsort label-7119
SELECT DISTINCT col0 * - + col2 * + 60, 0 / CAST ( - 49 AS INTEGER ) * - - 60 FROM tab0 WHERE NOT NULL < col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT - - col0 = NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT - + COUNT( ALL 54 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7121
SELECT - + COUNT ( ALL 54 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < col1
----
15
81
47

query I rowsort
SELECT DISTINCT - col1 + + 26 AS col2 FROM tab2 AS cor0
----
-25
-41
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( 48 ) col2 FROM tab0
----
135
145
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT + + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7125
SELECT + + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT COUNT( * ) + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7126
SELECT COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + 27 * + 87 * + COUNT( ALL col2 ) FROM tab2 AS cor0
----
7047

skipif mysql # not compatible
query I rowsort label-7128
SELECT + 27 * + 87 * + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
7047

query I rowsort
SELECT DISTINCT + - 82 + + col2 + + col0 FROM tab1 cor0
----
62
65
77

query I rowsort
SELECT DISTINCT - 3 * - - 42 + + + 90 FROM tab1 cor0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL - MAX( ALL - - 69 ) - - COUNT( DISTINCT + 42 ) * + - 22 * MAX( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - MAX ( ALL - - 69 ) - - COUNT ( DISTINCT + 42 ) * + - 22 * MAX ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT SUM( - 53 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-7132
SELECT SUM ( - 53 ) FROM tab0 AS cor0
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7133
SELECT DISTINCT ( COUNT( * ) ) - - + SUM( DISTINCT + CAST( + - 66 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT ( COUNT ( * ) ) - - + SUM ( DISTINCT + CAST ( + - 66 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL - 20 * - col0 * - + col0 * + + col0 + + col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 - col0 col1 FROM tab2
----
-1
-19
-30

query I rowsort
SELECT ALL + 13 - + col1 FROM tab1
----
-1
-34
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col1 col2 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7138
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + 58 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + 58 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 66, + ( - 98 ) AS col1 FROM tab2
----
66
-98

query II rowsort
SELECT - col1 AS col2, - 61 AS col0 FROM tab0
----
-1
-61
-21
-61
-81
-61

query I rowsort
SELECT ALL + 59 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT - COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7142
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + + col0 * + col2 * + + col2 + + col1 FROM tab0 cor0
----
33216
8721
950698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7144
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * 74 + + col1 AS col0 FROM tab0 AS cor0
----
-3397
-719
-7325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT DISTINCT - col2 / + col0 * - + CAST( NULL AS SIGNED ) / col2 + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT - col2 / + col0 * - + CAST ( NULL AS INTEGER ) / col2 + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT - + COUNT( * ) * - 64 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7147
SELECT - + COUNT ( * ) * - 64 FROM tab0 AS cor0
----
192

query I rowsort
SELECT 73 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT - col1 * + col2 DIV + col2 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7149
SELECT - col1 * + col2 / + col2 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT ALL col0, + col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT ( col2 ) + + ( + - 85 ) AS col1 FROM tab2
----
-27
-45
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7152
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - CAST( 58 AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - CAST ( 58 AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT - col0 * + - col1 AS col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 35 / - + 82 * - col0 * 42 + + col1 * col0 + - 84 AND col1
----

query I rowsort
SELECT + col2 + + 72 * col1 * + 59 * + - 23 FROM tab2 AS cor0
----
-4982881
-6546110
-7523168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 + - col2 + - col2 - - col1 col1 FROM tab0 AS cor0
----
-158
26
40

query I rowsort
SELECT + 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT DISTINCT + COUNT( * ) + - 21 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + COUNT ( * ) + - 21 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT DISTINCT + 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT DISTINCT - 77, COUNT( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-7160
SELECT DISTINCT - 77, COUNT ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
-77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT - col1 - - col0 DIV + + 91 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7161
SELECT - col1 - - col0 / + + 91 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + col0 * - 10 AS col0 FROM tab0 AS cor0
----
-150
-870
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT - 94 + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT - 94 + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-191

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 + ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) BETWEEN + col2 AND + - 20
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT COUNT( * ) * + COUNT( DISTINCT - 29 ) + + CAST( - MAX( + - 2 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT 29 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT COUNT ( * ) * + COUNT ( DISTINCT - 29 ) + + CAST ( - MAX ( + - 2 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT 29 IS NOT NULL
----
NULL

query I rowsort
SELECT - 10 + + - col0 * - col2 FROM tab0 AS cor0
----
695
860
9593

query II rowsort
SELECT ALL + + col1 + ( + - 2 ), col0 - - 48 * + col1 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
49
-5742962
65
-16160325
75
-18213824

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT + ( 25 ) * - COUNT( 67 ) + - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + ( 25 ) * - COUNT ( 67 ) + - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL - COUNT( * ) - + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT 62 * - COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
-558

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT 62 * - COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL COUNT( + 55 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL COUNT ( + 55 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7175
SELECT ALL - - SUM( ALL - col1 ) DIV - + MIN( DISTINCT + - CAST( - ( 99 ) AS SIGNED ) ) + + COUNT( * ) + MAX( 5 ) AS col1, + COUNT( * ) AS col1 FROM tab0 cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-7175
SELECT ALL - - SUM ( ALL - col1 ) / - + MIN ( DISTINCT + - CAST ( - ( 99 ) AS INTEGER ) ) + + COUNT ( * ) + MAX ( 5 ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0
----
9
3

query I rowsort
SELECT ALL 70 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT COUNT( * ) * - 37 AS col2 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-7177
SELECT COUNT ( * ) * - 37 AS col2 FROM tab1
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col1 FROM tab0 AS cor0
----
36

query II rowsort
SELECT + 79 AS col1, - 33 AS col2 FROM tab2 AS cor0
----
79
-33
79
-33
79
-33

query I rowsort
SELECT - 38 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( + - col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT + + 24 + COUNT( * ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + + 24 + COUNT ( * ) FROM tab1 cor0
----
27

query I rowsort
SELECT + col0 + + + col2 * - + 13 AS col1 FROM tab0
----
-1190
-43
-596

query I rowsort
SELECT ALL col2 * col2 FROM tab2 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - 8 AS col2 FROM tab1
----
59
-8
68
-8
96
-8

query I rowsort
SELECT - 95 * + col0 AS col1 FROM tab0
----
-1425
-8265
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * + + col1 col0 FROM tab2
----
1001
663
871

query I rowsort
SELECT DISTINCT col0 * - 95 FROM tab0
----
-1425
-8265
-9215

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT - 79 * col1 DIV col1 FROM tab0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-7189
SELECT - 79 * col1 / col1 FROM tab0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col2, - col2 + col0 col1 FROM tab2
----
1600
24
3364
17
529
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT + 62 + + 45 * - COUNT( * ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + 62 + + 45 * - COUNT ( * ) AS col1 FROM tab1
----
-73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + - col1 ) = - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 > + col0
----

query I rowsort
SELECT + col2 + col1 + - + 92 * 25 FROM tab0 AS cor0
----
-2172
-2200
-2269

query I rowsort
SELECT ALL ( + col2 ) - + - col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT COUNT( * ) + - + ( - COUNT( * ) ) + - 89 + + + 44 AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-7196
SELECT COUNT ( * ) + - + ( - COUNT ( * ) ) + - 89 + + + 44 AS col0 FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT ( - SUM( ALL + 72 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT ( - SUM ( ALL + 72 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 3 col2 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT + 17 * + - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1649
20655
31059

query I rowsort
SELECT DISTINCT + + col2 + + 96 * ( col1 ) + + 52 * col0 - 52 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - ( - + col1 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 18 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT - - ( 90 ) + + - 41 + COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - - ( 90 ) + + - 41 + COUNT ( * ) FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT + - MIN( - + 4 ) + MAX( DISTINCT + 27 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT + - MIN ( - + 4 ) + MAX ( DISTINCT + 27 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT + - 22 * 40 * - - 19 FROM tab0 AS cor0
----
-16720
-16720
-16720

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL + COUNT( - col0 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7205
SELECT ALL + COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT + + MAX( DISTINCT - + 71 ) * 1 FROM tab0 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7206
SELECT + + MAX ( DISTINCT - + 71 ) * 1 FROM tab0 cor0
----
-71

query II rowsort
SELECT DISTINCT col0 AS col2, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, + col1 * - col2 col2 FROM tab1
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( - 68 * + ( col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT DISTINCT MAX( ALL - 87 ) col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7213
SELECT DISTINCT MAX ( ALL - 87 ) col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT DISTINCT - MIN( ALL 20 ) * + COUNT( * ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7214
SELECT DISTINCT - MIN ( ALL 20 ) * + COUNT ( * ) FROM tab0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT ALL - + 30 * + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL - + 30 * + col1 / - col1 AS col1 FROM tab2 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * + col0 col0 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL - MIN( DISTINCT 78 ) + + - 30 AS col1 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - MIN ( DISTINCT 78 ) + + - 30 AS col1 FROM tab2 AS cor0
----
-108

query I rowsort
SELECT 96 * col1 * - col1 + + + col1 AS col1 FROM tab0 AS cor0
----
-42315
-629775
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT 80 * + 61 * - 25 * SUM( + - 10 ) AS col2 FROM tab1 AS cor0
----
3660000

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT 80 * + 61 * - 25 * SUM ( + - 10 ) AS col2 FROM tab1 AS cor0
----
3660000

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT ALL + 75 + + - MAX( DISTINCT - 40 ) AS col2 FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + 75 + + - MAX ( DISTINCT - 40 ) AS col2 FROM tab1 AS cor0
----
115

query II rowsort
SELECT 29, + col1 * + col1 AS col1 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + 27 FROM tab0
----
2187
27
567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT ALL 58 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL 58 / col2 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 22 / + col0 col1 FROM tab2 AS cor0 WHERE NOT col1 >= - 97
----

query I rowsort
SELECT - col1 * col1 + + - col0 + + col2 * ( ( 92 ) ) FROM tab1 AS cor0
----
3956
5318
8585

query I rowsort
SELECT DISTINCT + ( + - col2 ) + + 89 FROM tab1 AS cor0
----
-7
21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - MAX( col2 ) col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7228
SELECT - MAX ( col2 ) col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + - 0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT NULL <= - 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT ALL - + col2 DIV - col2 + + col1 AS col2 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - + col2 / - col2 + + col1 AS col2 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT - 59 = + + col2 * col1 + - 16
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 9 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7234
SELECT + + COUNT( * ) AS col1, - 26 + 4 FROM tab0 AS cor0
----
3
-22

skipif mysql # not compatible
query II rowsort label-7234
SELECT + + COUNT ( * ) AS col1, - 26 + 4 FROM tab0 AS cor0
----
3
-22

query I rowsort
SELECT ALL + col2 * 50 FROM tab1 cor0 WHERE NOT - 72 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 34 * + 3 * ( 65 ) FROM tab0
----
-6630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7237
SELECT * FROM tab1 WHERE NOT + 17 BETWEEN NULL AND - ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7237
SELECT * FROM tab1 WHERE NOT + 17 BETWEEN NULL AND - ( - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT - MAX( - - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT - MAX ( - - col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT DISTINCT + + SUM( ALL + 90 ) AS col2 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT + + SUM ( ALL + 90 ) AS col2 FROM tab2 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT + - SUM( + 62 ) FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-7241
SELECT + - SUM ( + 62 ) FROM tab1 AS cor0
----
-186

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * col0 * - col0 >= - col0 * - col2
----

query I rowsort
SELECT ALL 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT col1 + - 54 + - 28 DIV col0 FROM tab0
----
-33
-53
26

skipif mysql # not compatible
query I rowsort label-7244
SELECT col1 + - 54 + - 28 / col0 FROM tab0
----
-33
-53
26

query I rowsort
SELECT DISTINCT 86 * - col1 FROM tab1
----
-1204
-4042
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ( + + COUNT( ALL 51 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7246
SELECT ( + + COUNT ( ALL 51 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT ALL + col1 + 16 * + 67 * + col0 AS col1 FROM tab2 WHERE NOT + 16 * + ( - + CAST( NULL AS SIGNED ) ) + + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + col1 + 16 * + 67 * + col0 AS col1 FROM tab2 WHERE NOT + 16 * + ( - + CAST ( NULL AS INTEGER ) ) + + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT - ( + CAST( + col0 AS SIGNED ) ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7248
SELECT - ( + CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 56 * + + col1, - col2 col0 FROM tab1
----
2632
-68
280
-59
784
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT MIN( + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT MIN ( + col0 ) AS col0 FROM tab2
----
46

query II rowsort
SELECT col0 * + + col2 AS col1, + col0 AS col2 FROM tab0
----
705
15
870
87
9603
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col1 ) col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col0 * col1 * col2 + - - col1 + - 11 AS col1 FROM tab2 AS cor0
----
-197054
-291394
-53918

query I rowsort
SELECT ALL ( + + 2 ) - + col0 * col1 + + 90 AS col1 FROM tab0 AS cor0
----
-1123
-1735
-5

query I rowsort
SELECT col1 + 75 AS col0 FROM tab2 cor0 WHERE ( - ( - col1 ) < - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col1 col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT + ( 29 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 97 * - - 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT ALL + COUNT( ALL - col2 ) * - 75 + 49 FROM tab1 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + COUNT ( ALL - col2 ) * - 75 + 49 FROM tab1 AS cor0
----
-176

query I rowsort
SELECT + + col0 * - - 81 FROM tab0 AS cor0
----
1215
7047
7857

query II rowsort
SELECT 82 AS col2, 9 + + ( - - col0 ) + - 15 FROM tab2
----
82
40
82
58
82
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT DISTINCT + col2 DIV col0 DIV + col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT + col2 / col0 / + col0 AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 18, - col2 AS col0 FROM tab1
----
18
-59
18
-68
18
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 33 * + ( 25 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col0, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT DISTINCT + ( + col1 ) + + + col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + col1 + + - 95 AS col2 FROM tab1 AS cor0
----
-48
-81
-90

query I rowsort
SELECT - col2 + + 96 AS col0 FROM tab0 AS cor0
----
-3
49
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT + 45 + - CAST( + col2 AS SIGNED ) FROM tab0
----
-2
-54
35

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 45 + - CAST ( + col2 AS INTEGER ) FROM tab0
----
-2
-54
35

query I rowsort
SELECT ALL + + 36 + 55 * - + 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 69463b0fd728db9584bab65db374fb70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7273
SELECT - + AVG ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT - + AVG ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - 61 AS col1, - col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND + col2 + 21
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + col1 <> 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT COUNT( 85 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7276
SELECT COUNT ( 85 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL + 29 + - COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL + 29 + - COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT 16 - - 7 AS col0 FROM tab0 cor0
----
23

query I rowsort
SELECT + 51 * 43 + - 19 FROM tab2
----
2174
2174
2174

query I rowsort
SELECT col0 + - 88 AS col2 FROM tab0
----
-1
-73
9

query I rowsort
SELECT ALL + 19 FROM tab1 WHERE NOT - - 27 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - - - 27 FROM tab1
----
-112
-118
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT ( COUNT( * ) ) + - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7283
SELECT ( COUNT ( * ) ) + - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col1 + - 30 FROM tab1 AS cor0
----
-35
-44
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT - + MAX( + - col2 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT - + MAX ( + - col2 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL > col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * - 60 + col0 col2 FROM tab2 cor0
----
346
364
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT - - COUNT( + - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - - COUNT ( + - col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + - 72
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7290
SELECT DISTINCT COUNT( * ) DIV - - 63 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT COUNT ( * ) / - - 63 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT - 69 + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-60

skipif mysql # not compatible
query I rowsort label-7291
SELECT - 69 + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IN ( - - 51 + + 11, 70 + 34, col0 * + col1 - + - col2 * col2 * - ( + 5 ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT DISTINCT - - MIN( ALL + 89 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT - - MIN ( ALL + 89 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT - MIN( ALL - ( col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7294
SELECT - MIN ( ALL - ( col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - + col0 * + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL - col0 * + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT 7 * - + 64 + COUNT( * ) FROM tab1 AS cor0
----
-445

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT 7 * - + 64 + COUNT ( * ) FROM tab1 AS cor0
----
-445

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( NULL ) AND NOT NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col0, 27 FROM tab1
----
51
27
85
27
91
27

query I rowsort
SELECT ( - - 83 ) FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT 42 * - + COUNT( * ) * 98 col1 FROM tab2
----
-12348

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7302
SELECT DISTINCT 42 * - + COUNT ( * ) * 98 col1 FROM tab2
----
-12348

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 39 ) NOT BETWEEN + col2 * + 20 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 99 * + col0 AS col0 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT ALL CAST( - 98 AS SIGNED ) + MIN( + CAST( + + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL CAST ( - 98 AS INTEGER ) + MIN ( + CAST ( + + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-7306
SELECT DISTINCT - col2 col0, - col0 DIV - - 90 FROM tab2
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7306
SELECT DISTINCT - col2 col0, - col0 / - - 90 FROM tab2
----
-23
0
-40
0
-58
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7307
SELECT ALL * FROM tab0 WHERE NOT + ( - 41 ) + + col2 + - - 53 + - 58 + col0 * + - CAST( + 4 AS DECIMAL ) + - 86 * - 62 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7307
SELECT ALL * FROM tab0 WHERE NOT + ( - 41 ) + + col2 + - - 53 + - 58 + col0 * + - CAST ( + 4 AS REAL ) + - 86 * - 62 IS NOT NULL
----

query I rowsort
SELECT 36 + + + col2 * + col0 + 23 AS col0 FROM tab0
----
764
929
9662

query I rowsort
SELECT 55 + - + 34 FROM tab2 AS cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col1 col2, + col0 + + + col0 FROM tab2 AS cor0
----
117
128
125
150
74
92

query I rowsort
SELECT ALL - + 66 + col0 FROM tab2 AS cor0
----
-2
-20
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT DISTINCT col1 - + CAST( NULL AS SIGNED ) * col2 / + 23 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT col1 - + CAST ( NULL AS INTEGER ) * col2 / + 23 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT 63, + col2 AS col1 FROM tab2 AS cor0
----
63
23
63
40
63
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + MAX( ALL col2 ) - + - MIN( - + col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT + MAX ( ALL col2 ) - + - MIN ( - + col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - col1 col0, + col2 AS col0 FROM tab1
----
37
96
44
68
80
59

query I rowsort
SELECT DISTINCT 47 + + - col2 FROM tab1
----
-12
-21
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT ALL MIN( col1 ) col0, - 41 AS col0 FROM tab0
----
1
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7317
SELECT ALL MIN ( col1 ) col0, - 41 AS col0 FROM tab0
----
1
-41

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE col1 >= - + col0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT ALL ( + 4 ) DIV + col0 - + 39 FROM tab0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL ( + 4 ) / + col0 - + 39 FROM tab0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT - 33 * 40 DIV - + col1 - col1 FROM tab0
----
-65
1319
41

skipif mysql # not compatible
query I rowsort label-7320
SELECT - 33 * 40 / - + col1 - col1 FROM tab0
----
-65
1319
41

query I rowsort
SELECT DISTINCT col1 - - - col2 - - col1 * + - col0 - - + 61 FROM tab2
----
-2257
-4830
-4955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT CAST( NULL AS SIGNED ) - 25 / COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT CAST ( NULL AS INTEGER ) - 25 / COUNT ( * ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + 98 FROM tab2 WHERE NULL IS NULL
----
149
165
175

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7325
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7325
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 13 * - col1 FROM tab0 cor0
----
1053
13
273

query I rowsort
SELECT DISTINCT + - 26 * - col1 AS col0 FROM tab0 AS cor0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT 53 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-7330
SELECT 53 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
159

query I rowsort
SELECT 88 * - col0 AS col2 FROM tab2 cor0
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT + - COUNT( * ) + - MIN( + + col1 ) FROM tab2 AS cor0 WHERE NOT - 59 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7332
SELECT + - COUNT ( * ) + - MIN ( + + col1 ) FROM tab2 AS cor0 WHERE NOT - 59 IS NOT NULL
----
NULL

query I rowsort
SELECT - 9 * - + 18 AS col2 FROM tab0 AS cor0
----
162
162
162

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT ALL + - col1 DIV 31 AS col1 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + - col1 / 31 AS col1 FROM tab2 AS cor0
----
-1
-2
-2

query I rowsort
SELECT DISTINCT 65 * - - col1 * 65 FROM tab2
----
215475
283075
325325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT ( + CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7336
SELECT ( + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab1 WHERE NOT + col1 < + + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT - MIN( - + 80 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
80

skipif mysql # not compatible
query I rowsort label-7338
SELECT - MIN ( - + 80 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 52 ) col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT 45 * col0 AS col0 FROM tab2 WHERE + col1 NOT BETWEEN ( - 28 * - - col0 * col2 + - 56 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7341
SELECT ALL - CAST( - col2 AS SIGNED ) DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL - CAST ( - col2 AS INTEGER ) / + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - + 90 - + COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7342
SELECT - + 90 - + COUNT ( * ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT + - col0 - - col2 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT + col2 * - col2 - 1 FROM tab2 AS cor0
----
-1601
-3365
-530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT - ( + CAST( NULL AS SIGNED ) ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT - ( + CAST ( NULL AS INTEGER ) ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7346
SELECT ALL - 70, + CAST( - col1 AS SIGNED ) + + col1 + - + 31 * - 29 AS col2 FROM tab0 AS cor0 WHERE col0 >= NULL
----

skipif mysql # not compatible
query II rowsort label-7346
SELECT ALL - 70, + CAST ( - col1 AS INTEGER ) + + col1 + - + 31 * - 29 AS col2 FROM tab0 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT ALL 57 - - col1 AS col1 FROM tab2
----
108
124
134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 18 * col2 col0, 36 FROM tab2 WHERE col1 / + 7 IS NOT NULL
----
-1044
36
-414
36
-720
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT DISTINCT - CAST( - - 98 AS SIGNED ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - CAST ( - - 98 AS INTEGER ) FROM tab0
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-7350
SELECT ALL col1, col1 DIV + - col2 AS col0 FROM tab2
----
51
-2
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-7350
SELECT ALL col1, col1 / + - col2 AS col0 FROM tab2
----
51
-2
67
-1
77
-1

query I rowsort
SELECT ALL ( - 3 ) AS col1 FROM tab1
----
-3
-3
-3

query II rowsort
SELECT + col0, + col1 * - col1 FROM tab2 AS cor0
----
46
-2601
64
-5929
75
-4489

query I rowsort
SELECT ALL + col1 * - + 8 * - col0 FROM tab1 AS cor0
----
3400
34216
5712

query I rowsort
SELECT - - col2 * - col2 - col1 FROM tab1 cor0
----
-3486
-4671
-9230

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7355
SELECT DISTINCT + 15 AS col0, CAST( - + 85 AS SIGNED ) * + + col2 + + + col2 AS col0 FROM tab1 AS cor0
----
15
-4956
15
-5712
15
-8064

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT + 15 AS col0, CAST ( - + 85 AS INTEGER ) * + + col2 + + + col2 AS col0 FROM tab1 AS cor0
----
15
-4956
15
-5712
15
-8064

query II rowsort
SELECT - col0 AS col1, + col1 - 39 AS col2 FROM tab0 AS cor0
----
-15
42
-87
-18
-97
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 32 AS col1, 98 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 16fba2dd33db4dec0ea9cf525e57a85a

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT COUNT( ALL + 67 ), 86 AS col2 FROM tab2
----
3
86

skipif mysql # not compatible
query II rowsort label-7358
SELECT COUNT ( ALL + 67 ), 86 AS col2 FROM tab2
----
3
86

query I rowsort
SELECT ALL + 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - 90 * - 88 * + - col0 FROM tab2
----
-364320
-506880
-594000

query I rowsort
SELECT - 82 * 42 * - - col0 AS col1 FROM tab1 AS cor0
----
-175644
-292740
-313404

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT + MIN( ALL - 67 ) * - + COUNT( * ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + MIN ( ALL - 67 ) * - + COUNT ( * ) FROM tab2 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - ( - + COUNT( * ) ) * - 23 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7363
SELECT - ( - + COUNT ( * ) ) * - 23 FROM tab2 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 * 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - + col1 * - - col2 + 75 + + col1 * 91 AS col0, 38 FROM tab1 cor0
----
1156
38
235
38
5
38

query I rowsort
SELECT - 49 * - - col1 * col2 * - 93 AS col1 FROM tab2
----
14035560
17708502
5345361

query I rowsort
SELECT ALL - ( + 70 ) AS col0 FROM tab0
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + col2 - - col1 FROM tab0
----
1
100
21
31
81
128

query I rowsort
SELECT ALL col1 * + 10 AS col1 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT DISTINCT + + COUNT( * ) + - 34 AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
-31

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + + COUNT ( * ) + - 34 AS col1 FROM tab1 WHERE - col1 IS NOT NULL
----
-31

query II rowsort
SELECT + col1, - col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL 36 + - - 65 * COUNT( * ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL 36 + - - 65 * COUNT ( * ) FROM tab2 AS cor0
----
231

query I rowsort
SELECT - + ( + 87 ) * - 2 + - col0 * + 88 * col1 * + - col1 FROM tab0 AS cor0 WHERE 8 IS NULL
----

query I rowsort
SELECT ALL ( + 4 ) FROM tab1
----
4
4
4

query I rowsort
SELECT ALL - col0 * + 64 + + 33 AS col2 FROM tab2
----
-2911
-4063
-4767

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT MAX( 40 ) * + 90 col1 FROM tab1
----
3600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7376
SELECT MAX ( 40 ) * + 90 col1 FROM tab1
----
3600

query I rowsort
SELECT 96 * 98 AS col2 FROM tab2
----
9408
9408
9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7378
SELECT DISTINCT 21 DIV - COUNT( * ) + 7 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT 21 / - COUNT ( * ) + 7 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE + 2 - + 63 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT 95 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - 85 + ( col0 + 23 ) * + 12 FROM tab2
----
1091
743
959

query III rowsort
SELECT ALL * FROM tab2 WHERE + 59 * 1 > NULL
----

query I rowsort
SELECT + 5 * - col0 FROM tab2
----
-230
-320
-375

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7385
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT - ( - 50 ) * MAX( - 29 + - col2 ) AS col2 FROM tab1
----
-4400

skipif mysql # not compatible
query I rowsort label-7386
SELECT - ( - 50 ) * MAX ( - 29 + - col2 ) AS col2 FROM tab1
----
-4400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT + ( MAX( DISTINCT - 0 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7388
SELECT + ( MAX ( DISTINCT - 0 ) ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 51 * - 66 AS col0 FROM tab2
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT - SUM( ALL 84 ) AS col2 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-7390
SELECT - SUM ( ALL 84 ) AS col2 FROM tab2
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT ALL COUNT( * ) DIV - 73 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL COUNT ( * ) / - 73 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7393
SELECT + ( - col2 ) DIV 86 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT + ( - col2 ) / 86 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE + 4 + + 36 <= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7395
SELECT CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7395
SELECT CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL CAST( - 31 AS SIGNED ) AS col0 FROM tab1
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL CAST ( - 31 AS INTEGER ) AS col0 FROM tab1
----
-31
-31
-31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 >= - 82 * - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7399
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN col2 * col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7399
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN col2 * col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 99 col1 FROM tab0 AS cor0
----
1485
8613
9603

query I rowsort
SELECT - 3 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7402
SELECT + 76 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - col1 - ( CAST( - col2 AS SIGNED ) ) <= CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-7402
SELECT + 76 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - col1 - ( CAST ( - col2 AS INTEGER ) ) <= CAST ( NULL AS INTEGER ) + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 69 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7405
SELECT ALL * FROM tab0 WHERE CAST( 82 AS SIGNED ) NOT IN ( - ( col1 ) * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7405
SELECT ALL * FROM tab0 WHERE CAST ( 82 AS INTEGER ) NOT IN ( - ( col1 ) * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + COUNT( * ) + ( COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab1
----
18

skipif mysql # not compatible
query I rowsort label-7406
SELECT + COUNT ( * ) + ( COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab1
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 20 AND - 69 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL + SUM( DISTINCT col2 ) + COUNT( * ) * 8 FROM tab2 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL + SUM ( DISTINCT col2 ) + COUNT ( * ) * 8 FROM tab2 AS cor0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL COUNT( * ) * 18 AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL COUNT ( * ) * 18 AS col0 FROM tab1 AS cor0
----
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 29 + + col1 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT + COUNT( * ) * + MIN( col2 * + 1 ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + COUNT ( * ) * + MIN ( col2 * + 1 ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT + + col1 * - 16 FROM tab1 AS cor0
----
-224
-752
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL - 7 * 91 + COUNT( * ) AS col2 FROM tab0
----
-634

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - 7 * 91 + COUNT ( * ) AS col2 FROM tab0
----
-634

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 25 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - ( - - 74 ) * col0 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT ALL - ( 32 ) FROM tab0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - col2 * - 67 AS col2 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT DISTINCT - col2 * + + col1 + col1 AS col0 FROM tab2
----
-1122
-3003
-3819

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col1 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT ALL - CAST( AVG ( col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - CAST ( AVG ( col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 50 * - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN 96 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT - 32 + - COUNT( * ) AS col1 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - 32 + - COUNT ( * ) AS col1 FROM tab1
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 56 col0, - ( 11 ) FROM tab0
----
-56
-11

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 * + col0 ) IS NULL
----

query I rowsort
SELECT col0 / col0 FROM tab1 WHERE ( NOT col0 NOT IN ( col0 + + 85 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT + COUNT( * ) * 98 col1 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7428
SELECT DISTINCT + COUNT ( * ) * 98 col1 FROM tab2 AS cor0
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7429
SELECT DISTINCT + CAST( NULL AS SIGNED ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7429
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - + col0 / col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE 19 * + + col2 * col2 >= 0
----
3

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE 19 * + + col2 * col2 >= 0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * + col2 col2 FROM tab1 AS cor0
----
2714
3128
4416

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 - + col1 IN ( 98 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7434
SELECT DISTINCT MIN( DISTINCT + col2 ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT MIN ( DISTINCT + col2 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL + 55 * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND ( + + col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + 55 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND ( + + col0 + col1 )
----
0

query I rowsort
SELECT ALL + 22 * - 38 * col1 FROM tab2 AS cor0
----
-42636
-56012
-64372

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE col0 / - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE col0 / - - col0 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT DISTINCT + col2 DIV - 43 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT + col2 / - 43 AS col1 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT ALL + col0 + ( CAST( NULL AS SIGNED ) + - col0 ) FROM tab2 WHERE ( 18 ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL + col0 + ( CAST ( NULL AS INTEGER ) + - col0 ) FROM tab2 WHERE ( 18 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE 30 <> + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE 30 <> + col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 4 * + ( 24 * col1 ) + col1 FROM tab1 AS cor0 WHERE NOT ( + - ( + col0 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT ALL CAST( NULL AS SIGNED ) * + 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL CAST ( NULL AS INTEGER ) * + 42 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, - 53 FROM tab0
----
1
-53
21
-53
81
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL + COUNT( - ( - col1 ) ) + + 48 AS col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + COUNT ( - ( - col1 ) ) + + 48 AS col2 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL + - col1 + + 35 FROM tab0 AS cor0
----
-46
14
34

query I rowsort
SELECT DISTINCT - 18 + + - col1 + 30 * + col1 * ( + 29 ) * col1 FROM tab0 cor0
----
383631
5707971
851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7447
SELECT ALL + - CAST( - col2 AS SIGNED ) - 95 FROM tab2 AS cor0 WHERE NULL <= + col0
----

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + - CAST ( - col2 AS INTEGER ) - 95 FROM tab2 AS cor0 WHERE NULL <= + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL MIN( ALL col1 ) * - - 27 + 85 FROM tab2 AS cor0
----
1462

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL MIN ( ALL col1 ) * - - 27 + 85 FROM tab2 AS cor0
----
1462

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 19 AND + col1 + col0 * + + col0
----

query I rowsort
SELECT + col2 * + + col0 * - col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7452
SELECT DISTINCT * FROM tab1 WHERE NOT - 33 + + - 45 - - CAST( ( 55 ) AS SIGNED ) + 58 NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-7452
SELECT DISTINCT * FROM tab1 WHERE NOT - 33 + + - 45 - - CAST ( ( 55 ) AS INTEGER ) + 58 NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT + col0 AS col0, col1 * col1 FROM tab2
----
46
2601
64
5929
75
4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT 83 * + CAST( ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-7454
SELECT 83 * + CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + COUNT( * ) - 85 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7455
SELECT + COUNT ( * ) - 85 FROM tab2 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT ALL 62 DIV - 58 - col2 - - + col1 col0 FROM tab2 AS cor0
----
27
36
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7456
SELECT ALL 62 / - 58 - col2 - - + col1 col0 FROM tab2 AS cor0
----
27
36
8

query I rowsort
SELECT - + col1 + 31 AS col0 FROM tab1 AS cor0
----
-16
17
26

query I rowsort
SELECT col0 * + + 29 FROM tab0 cor0
----
2523
2813
435

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7459
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col1 * + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7459
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col1 * + CAST ( - col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT 74 DIV + 20 AS col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7460
SELECT 74 / + 20 AS col1 FROM tab2
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT ALL + 34 FROM tab0 WHERE CAST( NULL AS SIGNED ) * + - 13 + - 68 + col2 BETWEEN 12 AND ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + 34 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + - 13 + - 68 + col2 BETWEEN 12 AND ( - col2 )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL COUNT( DISTINCT + - 37 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL COUNT ( DISTINCT + - 37 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT ( - + 86 ) FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT MAX( ALL - - col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7465
SELECT MAX ( ALL - - col1 ) col0 FROM tab2
----
77

query I rowsort
SELECT DISTINCT + 58 * 47 AS col1 FROM tab2
----
2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT ALL - col2 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL - col2 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - col0 AS col0, + col0 * col0 FROM tab2 cor0
----
-46
2116
-64
4096
-75
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7469
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT + + 60 + + 49 FROM tab1 AS cor0
----
109
109
109

query I rowsort
SELECT ALL - - 80 + + + 24 FROM tab2 cor0
----
104
104
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT - MAX( - 20 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7472
SELECT - MAX ( - 20 ) FROM tab1
----
20

query I rowsort
SELECT - col2 * ( col0 ) - + col1 FROM tab2 cor0
----
-1109
-2637
-4417

query I rowsort
SELECT DISTINCT - 69 * col1 + col0 FROM tab0 AS cor0
----
-1362
-5574
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT ALL - - SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL - - SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT - - CAST( + col2 AS SIGNED ) * - - 49 + + 95 + - - 63 FROM tab1 AS cor0
----
3049
3490
4862

skipif mysql # not compatible
query I rowsort label-7476
SELECT - - CAST ( + col2 AS INTEGER ) * - - 49 + + 95 + - - 63 FROM tab1 AS cor0
----
3049
3490
4862

query I rowsort
SELECT - 85 + - ( col1 ) AS col0 FROM tab2 AS cor0
----
-136
-152
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT col1 DIV - 71 + - + 39 * col0 col2 FROM tab0
----
-3393
-3783
-586

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7478
SELECT col1 / - 71 + - + 39 * col0 col2 FROM tab0
----
-3393
-3783
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT ALL - COUNT( * ) + - 13 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - COUNT ( * ) + - 13 FROM tab1
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + - + col2 col2 FROM tab2
----
22
40
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col0, col0 * - + col2 * + - 83 * + col1 col2 FROM tab0
----
1
797049
21
1516410
81
4739715

query III rowsort
SELECT * FROM tab2 WHERE NULL > - 29
----

query I rowsort
SELECT ALL + 21 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT + MAX( ALL - - 24 ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7484
SELECT + MAX ( ALL - - 24 ) AS col1 FROM tab2 AS cor0
----
24

query I rowsort
SELECT + - col0 * - 99 * + col2 FROM tab2 AS cor0
----
104742
253440
430650

query I rowsort
SELECT DISTINCT 54 + - 52 * + col0 FROM tab1 AS cor0
----
-2598
-4366
-4678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col1 FROM tab2
----
-8
-8
-8

query I rowsort
SELECT + - 10 * + + col1 AS col1 FROM tab0 AS cor0
----
-10
-210
-810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - ( - + 33 ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + + MIN( ALL + 26 ) AS col1 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7490
SELECT + + MIN ( ALL + 26 ) AS col1 FROM tab1 AS cor0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7491
SELECT MIN( DISTINCT col2 ) DIV + ( 78 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7491
SELECT MIN ( DISTINCT col2 ) / + ( 78 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 95 * col2 - - col0 AS col1 FROM tab1 cor0
----
-5520
-6369
-9069

query II rowsort
SELECT + col0 AS col1, + col1 * + ( 60 ) FROM tab2 AS cor0
----
46
3060
64
4620
75
4020

query I rowsort
SELECT DISTINCT - + 38 * + col0 FROM tab0 AS cor0
----
-3306
-3686
-570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7495
SELECT 66 DIV COUNT( * ) - - 97 col0 FROM tab1 AS cor0
----
119

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7495
SELECT 66 / COUNT ( * ) - - 97 col0 FROM tab1 AS cor0
----
119

query II rowsort
SELECT ALL col0 * - col2 + + ( - 91 ) / col2, + ( + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + 31 ) FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7498
SELECT - 49 AS col2, - COUNT( + 52 ) FROM tab0 AS cor0
----
-49
-3

skipif mysql # not compatible
query II rowsort label-7498
SELECT - 49 AS col2, - COUNT ( + 52 ) FROM tab0 AS cor0
----
-49
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT COUNT( * ) * - 85 - + 97 col1 FROM tab1, tab2 cor0
----
-862

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7499
SELECT COUNT ( * ) * - 85 - + 97 col1 FROM tab1, tab2 cor0
----
-862

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * col1 col1, 53 + - col0 - 63 FROM tab1
----
425
-95
4277
-101
714
-61

query I rowsort
SELECT ALL - 92 * - + 90 FROM tab0
----
8280
8280
8280

query III rowsort
SELECT * FROM tab2 WHERE NOT - 61 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 81 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT + - 77 * - 52 FROM tab1 AS cor0
----
4004
4004
4004

query II rowsort
SELECT DISTINCT 99 + + + col0, col1 FROM tab0 AS cor0
----
114
81
186
21
196
1

query I rowsort
SELECT DISTINCT + 20 * + + col2 FROM tab0
----
1980
200
940

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT + SUM( + 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-7508
SELECT + SUM ( + 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 42 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - col0 + + + 37 AS col0 FROM tab1
----
-14
-48
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT ( - COUNT( * ) ) * 59 + COUNT( ALL - 35 ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT ( - COUNT ( * ) ) * 59 + COUNT ( ALL - 35 ) FROM tab0 AS cor0
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 * + + col0 col1 FROM tab1 AS cor0
----
1632
2720
2912

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + col0 + + ( + 76 ) )
----

query I rowsort
SELECT DISTINCT col2 * - col1 + + + col0 FROM tab0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT - 24 - COUNT( * ) + - 27 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT - 24 - COUNT ( * ) + - 27 FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT DISTINCT 90 + COUNT( DISTINCT + col0 ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT 90 + COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT COUNT( * ) * - MAX( + - col1 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7518
SELECT COUNT ( * ) * - MAX ( + - col1 ) AS col0 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( col1 + - col2 )
----

query I rowsort
SELECT ALL 8 - - - 38 FROM tab1
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT DISTINCT col2 DIV + col0 col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7521
SELECT DISTINCT col2 / + col0 col1 FROM tab0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT DISTINCT - 32 * - col2 - - - col0 DIV + - col1 col0 FROM tab1
----
1905
2177
3075

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7522
SELECT DISTINCT - 32 * - col2 - - - col0 / + - col1 col0 FROM tab1
----
1905
2177
3075

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT ALL + 92 DIV - 29 AS col1 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + 92 / - 29 AS col1 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT col0 - 35 FROM tab2
----
11
29
40

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT 32 * + MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
3168

skipif mysql # not compatible
query I rowsort label-7526
SELECT 32 * + MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
3168

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND ( + - 16 * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - col2, col2, + + col2, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT SUM( ( - + col0 ) ) FROM tab0 AS cor0 WHERE NOT - ( - 20 ) + + 44 IS NULL
----
-199

skipif mysql # not compatible
query I rowsort label-7529
SELECT SUM ( ( - + col0 ) ) FROM tab0 AS cor0 WHERE NOT - ( - 20 ) + + 44 IS NULL
----
-199

query II rowsort
SELECT ALL col1 AS col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7531
SELECT ALL + CAST( - SUM( - 1 ) AS SIGNED ) AS col1, - 69 AS col2 FROM tab1 cor0
----
3
-69

skipif mysql # not compatible
query II rowsort label-7531
SELECT ALL + CAST ( - SUM ( - 1 ) AS INTEGER ) AS col1, - 69 AS col2 FROM tab1 cor0
----
3
-69

query I rowsort
SELECT - + 73 AS col0 FROM tab0 cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT ALL ( - CAST( 41 AS SIGNED ) ) AS col2 FROM tab1
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL ( - CAST ( 41 AS INTEGER ) ) AS col2 FROM tab1
----
-41
-41
-41

query II rowsort
SELECT - col0, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT + col0 DIV + - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7535
SELECT + col0 / + - col2 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 90 < col1 * + 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 - - 18 col2 FROM tab2 WHERE NOT - + col0 + 41 IN ( + col0 )
----
51
69
67
85
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT MIN( - 48 ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7538
SELECT MIN ( - 48 ) AS col0 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT ALL + 65 * COUNT( * ) AS col1, + 70 FROM tab0
----
195
70

skipif mysql # not compatible
query II rowsort label-7539
SELECT ALL + 65 * COUNT ( * ) AS col1, + 70 FROM tab0
----
195
70

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( - - 31, + 80 )
----

query I rowsort
SELECT ALL - 38 * col2 * - col1 FROM tab1
----
11210
121448
51072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 10 AS col0, col0 col0 FROM tab0 AS cor0
----
10
15
10
87
10
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 col0, col2 FROM tab1 AS cor0
----
50
59
50
68
50
96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 40 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2 WHERE col0 >= + + col2
----
58

query I rowsort
SELECT ALL + - col0 + - + col0 AS col2 FROM tab1 cor0
----
-102
-170
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT 17 DIV - ( + + 53 ) * col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7547
SELECT 17 / - ( + + 53 ) * col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - 80 - - col2 - + - col0 FROM tab2 cor0
----
-3611
-5016
-5867

query I rowsort
SELECT + + 96 - + + 16 FROM tab0 AS cor0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + + col1 + - 27 col2 FROM tab2 AS cor0
----
-12
14
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT - 31 DIV - + col1 + + - 74 AS col0 FROM tab0 AS cor0
----
-43
-73
-74

skipif mysql # not compatible
query I rowsort label-7551
SELECT - 31 / - + col1 + + - 74 AS col0 FROM tab0 AS cor0
----
-43
-73
-74

query I rowsort
SELECT ALL + - col2 - - col1 + + col2 * - + col2 FROM tab1 AS cor0
----
-3535
-4645
-9298

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - MAX( ALL + col0 ) + + - 7 + + - 21 AS col1 FROM tab1
----
-119

skipif mysql # not compatible
query I rowsort label-7553
SELECT - MAX ( ALL + col0 ) + + - 7 + + - 21 AS col1 FROM tab1
----
-119

query I rowsort
SELECT 51 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT SUM( ALL - col2 ) - + COUNT( * ) AS col1 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT SUM ( ALL - col2 ) - + COUNT ( * ) AS col1 FROM tab0
----
-159

query I rowsort
SELECT + col2 + - + 58 FROM tab1
----
1
10
38

query I rowsort
SELECT DISTINCT col1 - - - 57 AS col0 FROM tab2
----
-6
10
20

query II rowsort
SELECT ALL + col2, - 14 AS col0 FROM tab1
----
59
-14
68
-14
96
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7559
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - + CAST( NULL AS DECIMAL ) + - 8 * - col1 < - col0
----

skipif mysql # not compatible
query III rowsort label-7559
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - + CAST ( NULL AS REAL ) + - 8 * - col1 < - col0
----

query I rowsort
SELECT 89 FROM tab0 WHERE NULL IN ( + col2 + col1 )
----

query II rowsort
SELECT - 64, col2 + 66 * + 75 * 48 AS col2 FROM tab1
----
-64
237659
-64
237668
-64
237696

query I rowsort
SELECT DISTINCT + col2 * + ( - - col2 ) + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
121
2290
9802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7563
SELECT + col0 col2, + col1 * + + 51 col0 FROM tab2 WHERE NOT ( + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7563
SELECT + col0 col2, + col1 * + + 51 col0 FROM tab2 WHERE NOT ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT + COUNT( ALL - - col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7564
SELECT + COUNT ( ALL - - col1 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - ( MAX( col1 ) ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7565
SELECT - ( MAX ( col1 ) ) AS col0 FROM tab0 cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7566
SELECT DISTINCT + 65, + col0 * + col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - CAST( NULL AS SIGNED ) * + 74 + + - col0 * col2 * 66 / - + col0 + - col2 * - - 53, col1, - col2 - - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7566
SELECT DISTINCT + 65, + col0 * + col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - CAST ( NULL AS INTEGER ) * + 74 + + - col0 * col2 * 66 / - + col0 + - col2 * - - 53, col1, - col2 - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - ( - col0 ) ) + + col1 + - col0 * col2 / - - 64 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT + col2 DIV col2 * - + 55 * + col2 FROM tab0
----
-2585
-5445
-550

skipif mysql # not compatible
query I rowsort label-7569
SELECT + col2 / col2 * - + 55 * + col2 FROM tab0
----
-2585
-5445
-550

query I rowsort
SELECT 19 + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT COUNT( * ) FROM tab2 WHERE NOT + col2 + + + col0 * ( 20 ) + + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7571
SELECT COUNT ( * ) FROM tab2 WHERE NOT + col2 + + + col0 * ( 20 ) + + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT + 31 * - COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-7572
SELECT + 31 * - COUNT ( * ) FROM tab1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT - 49 DIV + col0 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT - 49 / + col0 AS col2 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - SUM( + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT - SUM ( + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + SUM( + + 88 ) AS col0 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-7575
SELECT + SUM ( + + 88 ) AS col0 FROM tab0
----
264

query II rowsort
SELECT ALL 12 * + 76 + col2, + col2 FROM tab1
----
1008
96
971
59
980
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL - + COUNT( * ) + 83 AS col2 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - + COUNT ( * ) + 83 AS col2 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT - SUM( - + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7578
SELECT - SUM ( - + col1 ) AS col0 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 70 NOT IN ( col2 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - COUNT( * ) + - 29 * + 55 + + 59 + - + 88 AS col2 FROM tab2 AS cor0
----
-1627

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - COUNT ( * ) + - 29 * + 55 + + 59 + - + 88 AS col2 FROM tab2 AS cor0
----
-1627

query I rowsort
SELECT - 1 * - col2 + + col1 * - col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 70
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7582
SELECT 19 + + 44 AS col1, ( + - col1 ), - 1 * - + CAST( NULL AS DECIMAL ) + - col2 / + col0 * - + ( + ( - - col2 ) ) + + + col0 * - + 81 AS col2 FROM tab2
----
9 values hashing to 12dadd7297e2418b90cb60d90e990e09

skipif mysql # not compatible
query III rowsort label-7582
SELECT 19 + + 44 AS col1, ( + - col1 ), - 1 * - + CAST ( NULL AS REAL ) + - col2 / + col0 * - + ( + ( - - col2 ) ) + + + col0 * - + 81 AS col2 FROM tab2
----
9 values hashing to 12dadd7297e2418b90cb60d90e990e09

query I rowsort
SELECT DISTINCT + ( + 74 ) + + 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
132

query I rowsort
SELECT ALL + 93 + - col2 * - col1 * - ( - col2 ) * col1 AS col0 FROM tab0
----
14493342
44193
9894

query I rowsort
SELECT DISTINCT col2 + + - col2 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 68 * - ( + 36 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 >= col2 * + + 71
----

query I rowsort
SELECT ALL - 38 + + - 24 AS col0 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT - col2 + + col0 + + col0 AS col0 FROM tab1 AS cor0
----
111
114
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT DISTINCT col1 + + col0 + + col0 + CAST( NULL AS SIGNED ) * + - col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT col1 + + col0 + + col0 + CAST ( NULL AS INTEGER ) * + - col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 15 + + + col1 FROM tab2 AS cor0
----
36
52
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col2 * + 60 NOT BETWEEN - 39 AND + - col1 + + col0 * + 20
----
2

skipif mysql # not compatible
query I rowsort label-7594
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 * + 60 NOT BETWEEN - 39 AND + - col1 + + col0 * + 20
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT 51 * + COUNT( * ) - - ( - 85 ) - 0 - + MIN( DISTINCT - col0 ) * + 98 * - - 52 AS col1 FROM tab2
----
382268

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT 51 * + COUNT ( * ) - - ( - 85 ) - 0 - + MIN ( DISTINCT - col0 ) * + 98 * - - 52 AS col1 FROM tab2
----
382268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT DISTINCT col2 - + CAST( NULL AS SIGNED ) * - 39 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT col2 - + CAST ( NULL AS INTEGER ) * - 39 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7597
SELECT + col2 DIV CAST( - 71 AS SIGNED ) - - 49 - col0 AS col1 FROM tab0
----
-38
-49
34

skipif mysql # not compatible
query I rowsort label-7597
SELECT + col2 / CAST ( - 71 AS INTEGER ) - - 49 - col0 AS col1 FROM tab0
----
-38
-49
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7598
SELECT DISTINCT col1 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN - col1 * + + col0 + - col1 - - col0 + col1 + - - col0 + col2 + + col1 / 85 + - col2 * + col2 * - col2 * 13 + 89 AND - - 85
----

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT col1 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN - col1 * + + col0 + - col1 - - col0 + col1 + - - col0 + col2 + + col1 / 85 + - col2 * + col2 * - col2 * 13 + 89 AND - - 85
----

query I rowsort
SELECT 23 FROM tab0 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7600
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT + col2 - + - CAST( NULL AS SIGNED ) BETWEEN NULL AND + - ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT + col2 - + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - ( - + col2 )
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT NULL = - 29
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col0 + - col2
----

query I rowsort
SELECT ALL - + col0 * + 79 * + 19 FROM tab2 cor0
----
-112575
-69046
-96064

query I rowsort
SELECT + 79 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1
----

query I rowsort
SELECT + + col0 * + col0 AS col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7606
SELECT - COUNT( * ) DIV + - COUNT( * ) FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) DIV ( - col2 ) + + col2 * + + col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7606
SELECT - COUNT ( * ) / + - COUNT ( * ) FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) / ( - col2 ) + + col2 * + + col0 IS NOT NULL
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT - MAX( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7607
SELECT - MAX ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT DISTINCT COUNT( * ) AS col0, + 63 AS col0 FROM tab2 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-7608
SELECT DISTINCT COUNT ( * ) AS col0, + 63 AS col0 FROM tab2 AS cor0
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT MIN( ALL + 54 ) + - + COUNT( * ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT MIN ( ALL + 54 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7610
SELECT ALL + 82 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-7610
SELECT ALL + 82 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
82
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7611
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - - 87 - - col0 + - - ( - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7611
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - - 87 - - col0 + - - ( - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( - + col1 ), + 54 AS col1 FROM tab1
----
-14
54
-47
54
-5
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7613
SELECT CAST( + + 21 AS SIGNED ) DIV 47 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7613
SELECT CAST ( + + 21 AS INTEGER ) / 47 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 + - 4 * + + 30 FROM tab0
----
-110
-21
-73

query I rowsort
SELECT col1 + - 51 AS col2 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT ALL + col0 + + + 81 FROM tab2 AS cor0
----
127
145
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - 76 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7617
SELECT - 76 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT - - 21 AS col2 FROM tab0 AS cor0 WHERE ( - 46 ) * + + col2 <= col1
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7619
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT ALL MAX( col0 ) + + + 33 col0 FROM tab1
----
124

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7620
SELECT ALL MAX ( col0 ) + + + 33 col0 FROM tab1
----
124

query I rowsort
SELECT 93 + + + 17 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d

query I rowsort
SELECT col2 - - + 81 FROM tab0 AS cor0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL SUM( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL SUM ( ALL - - col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT 22 - ( + + col0 ) + - col2 AS col0 FROM tab1 cor0
----
-122
-125
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT 57 + COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7625
SELECT 57 + COUNT ( * ) FROM tab1 AS cor0
----
60

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7627
SELECT DISTINCT 82 AS col0, COUNT( ALL - 17 ) AS col2 FROM tab0 AS cor0
----
82
3

skipif mysql # not compatible
query II rowsort label-7627
SELECT DISTINCT 82 AS col0, COUNT ( ALL - 17 ) AS col2 FROM tab0 AS cor0
----
82
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT DISTINCT + CAST( 84 AS SIGNED ) + + - col1 FROM tab2 AS cor0
----
17
33
7

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + CAST ( 84 AS INTEGER ) + + - col1 FROM tab2 AS cor0
----
17
33
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7629
SELECT CAST( NULL AS DECIMAL ) + - + ( + - 12 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT CAST ( NULL AS REAL ) + - + ( + - 12 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - SUM( + col0 ) + + MAX( + col2 ) FROM tab1 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-7630
SELECT - SUM ( + col0 ) + + MAX ( + col2 ) FROM tab1 AS cor0
----
-131

query II rowsort
SELECT DISTINCT - col2 AS col1, + col2 + - 83 FROM tab1
----
-59
-24
-68
-15
-96
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 58 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 > 91
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 87 AS col2, col0 * - col1 AS col2 FROM tab0
----
87
-1215
87
-1827
87
-97

query II rowsort
SELECT col0, - col1 AS col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + COUNT( * ) * - 61 AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-7636
SELECT + COUNT ( * ) * - 61 AS col1 FROM tab0 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT + 47 * - - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-2397
-3995
-4277

skipif mysql # not compatible
query I rowsort label-7638
SELECT + 47 * - - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-2397
-3995
-4277

query I rowsort
SELECT DISTINCT - 73 * - - 92 + col2 AS col2 FROM tab0 AS cor0
----
-6617
-6669
-6706

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - + 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT ALL + + MAX( - col1 ) * + 78 AS col2, 61 * - 19 AS col2 FROM tab0 AS cor0
----
-78
-1159

skipif mysql # not compatible
query II rowsort label-7641
SELECT ALL + + MAX ( - col1 ) * + 78 AS col2, 61 * - 19 AS col2 FROM tab0 AS cor0
----
-78
-1159

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - ( 5 ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT ALL + - CAST( - ( - 96 ) AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
-147
-181
-187

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + - CAST ( - ( - 96 ) AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
-147
-181
-187

query II rowsort
SELECT DISTINCT + - col2 + 92 AS col0, + col1 FROM tab1 AS cor0
----
-4
14
24
47
33
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7645
SELECT ALL col1 + - 35 DIV + ( col1 ) FROM tab0 AS cor0
----
-34
20
81

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL col1 + - 35 / + ( col1 ) FROM tab0 AS cor0
----
-34
20
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT DISTINCT 83 * col1 FROM tab1
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT 32 * - MIN( + col1 ) FROM tab1
----
-160

skipif mysql # not compatible
query I rowsort label-7648
SELECT 32 * - MIN ( + col1 ) FROM tab1
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7649
SELECT MAX( - + 85 ) DIV + + 61 + + 26 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-7649
SELECT MAX ( - + 85 ) / + + 61 + + 26 FROM tab0
----
25

query I rowsort
SELECT col2 * + 28 AS col1 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT ( 42 ) AS col2 FROM tab0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL - 26 * + COUNT( * ) AS col2 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - 26 * + COUNT ( * ) AS col2 FROM tab0
----
-78

query I rowsort
SELECT DISTINCT 35 + - 34 + col0 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT DISTINCT - 55 FROM tab2 AS cor0 WHERE NULL > + 2 / + + col1
----

query I rowsort
SELECT ALL + col1 * - col1 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-103823
-125
-2744

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT DISTINCT + col0, 10 DIV + 86 * + 73 * + col1 col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7656
SELECT DISTINCT + col0, 10 / + 86 * + 73 * + col1 col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT + col0 + ( + col2 ) AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT + col1 + 51 + - + 65 AS col0 FROM tab0
----
-13
67
7

query III rowsort
SELECT * FROM tab1 WHERE + + 84 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT - MIN( ALL + 38 ) AS col2 FROM tab2 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT - MIN ( ALL + 38 ) AS col2 FROM tab2 cor0
----
-38

query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 65 FROM tab1 AS cor0 WHERE NOT - 71 BETWEEN NULL AND - col0
----
65
65

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT MIN( ALL 72 ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT MIN ( ALL 72 ) AS col2 FROM tab0
----
72

query II rowsort
SELECT - 65 AS col0, col1 AS col1 FROM tab1
----
-65
14
-65
47
-65
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL <= ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL <= ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7667
SELECT DISTINCT + CAST( NULL AS SIGNED ), ( - - col0 ) col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7667
SELECT DISTINCT + CAST ( NULL AS INTEGER ), ( - - col0 ) col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 + - - col0 > - col1 * + col2 / - ( - + 65 )
----
15
81
47

query I rowsort
SELECT ALL col2 * + + col0 * - col1 FROM tab1
----
-25075
-290836
-68544

query II rowsort
SELECT ALL + col0, + 89 AS col1 FROM tab0
----
15
89
87
89
97
89

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT - col1 * - 40 FROM tab2 AS cor0
----
2040
2680
3080

query II rowsort
SELECT col1, + col1 - + + col1 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT DISTINCT 77 * + col2 FROM tab1
----
4543
5236
7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + col2 col1 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 44 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT - MIN( DISTINCT + - col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7678
SELECT - MIN ( DISTINCT + - col1 ) AS col2 FROM tab1 cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - + 2 * col2 - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 12 * - col1 FROM tab2 AS cor0
----
612
804
924

onlyif mysql # DIV for integer division: 
query II rowsort label-7681
SELECT ALL - col1 * 57 AS col0, 89 DIV col0 * - col0 FROM tab1 AS cor0
----
-2679
0
-285
-85
-798
-51

skipif mysql # not compatible
query II rowsort label-7681
SELECT ALL - col1 * 57 AS col0, 89 / col0 * - col0 FROM tab1 AS cor0
----
-2679
0
-285
-85
-798
-51

query I rowsort
SELECT + - 67 FROM tab0 AS cor0 WHERE col0 + + + 95 IS NOT NULL
----
-67
-67
-67

query I rowsort
SELECT DISTINCT 75 + col1 AS col2 FROM tab1 AS cor0
----
122
80
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7684
SELECT ALL CAST( + col0 AS SIGNED ) col2, - 49 AS col2 FROM tab1 AS cor0
----
51
-49
85
-49
91
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7684
SELECT ALL CAST ( + col0 AS INTEGER ) col2, - 49 AS col2 FROM tab1 AS cor0
----
51
-49
85
-49
91
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT ALL - CAST( 44 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL - CAST ( 44 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT - + ( - col2 ) DIV 47 + + col1 AS col1 FROM tab0 AS cor0
----
21
3
82

skipif mysql # not compatible
query I rowsort label-7686
SELECT - + ( - col2 ) / 47 + + col1 AS col1 FROM tab0 AS cor0
----
21
3
82

query I rowsort
SELECT DISTINCT + 87 * - col1 AS col2 FROM tab0
----
-1827
-7047
-87

query II rowsort
SELECT ALL col2 + + col2 AS col0, + col1 * - - col1 AS col2 FROM tab0
----
198
1
20
441
94
6561

query I rowsort
SELECT ALL col1 * + + 9 AS col1 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - COUNT( * ) FROM tab2 WHERE 52 / + 86 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - COUNT ( * ) FROM tab2 WHERE 52 / + 86 IS NOT NULL
----
-3

query I rowsort
SELECT col1 * - col2 * + 94 AS col1 FROM tab2 AS cor0
----
-110262
-289520
-365284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 64 ) * + col2 + - - col2 + + col2 * + 5 col1 FROM tab0 AS cor0
----
-2726
-5742
-580

query I rowsort
SELECT ALL - col1 - + 85 AS col1 FROM tab2 AS cor0
----
-136
-152
-162

query I rowsort
SELECT ALL + col0 - - - col2 AS col0 FROM tab0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( + col0 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT COUNT( * ) DIV - + 21 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT COUNT ( * ) / - + 21 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( - col1 ) * 41 * - col2 * + 81 FROM tab0 AS cor0
----
-12643047
-328779
-697410

onlyif mysql # DIV for integer division: 
query II rowsort label-7698
SELECT + col1 AS col2, + col2 DIV - col0 * col1 + - - 20 AS col0 FROM tab2 AS cor0
----
51
20
67
20
77
20

skipif mysql # not compatible
query II rowsort label-7698
SELECT + col1 AS col2, + col2 / - col0 * col1 + - - 20 AS col0 FROM tab2 AS cor0
----
51
20
67
20
77
20

query I rowsort
SELECT 20 * 77 FROM tab0 AS cor0
----
1540
1540
1540

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 <> - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT - 92 + - MIN( col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 68 AND 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT - 92 + - MIN ( col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN - 68 AND 61
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 74 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7703
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * 22 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT ALL MAX( ALL ( + - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL MAX ( ALL ( + - col1 ) ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT - SUM( ALL + - col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7706
SELECT - SUM ( ALL + - col2 ) col0 FROM tab1
----
223

query I rowsort
SELECT DISTINCT + col1 * 63 * 26 FROM tab2
----
109746
126126
83538

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 = - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 83 AS col0 FROM tab0
----
3901
8217
830

query I rowsort
SELECT DISTINCT 15 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
15

query I rowsort
SELECT + ( - - col1 ) * 98 * 37 FROM tab0
----
293706
3626
76146

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT - COUNT( * ) + - 89 + SUM( + col2 ) + + 17 AS col2 FROM tab1
----
148

skipif mysql # not compatible
query I rowsort label-7712
SELECT - COUNT ( * ) + - 89 + SUM ( + col2 ) + + 17 AS col2 FROM tab1
----
148

query I rowsort
SELECT - col0 * 20 + + col2 * + + 8 AS col1 FROM tab1
----
-1228
-1276
-252

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7714
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <> - 39 * - CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-7714
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <> - 39 * - CAST ( NULL AS INTEGER ) + - col1
----

query I rowsort
SELECT + + col1 + + 11 + - col2 FROM tab2 AS cor0
----
20
39
48

query I rowsort
SELECT ALL 49 + + + ( 52 ) + + + col1 AS col0 FROM tab1 AS cor0
----
106
115
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT + + COUNT( * ) + + 50 AS col0 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT + + COUNT ( * ) + + 50 AS col0 FROM tab2 AS cor0
----
53

query I rowsort
SELECT ALL - 46 * + col1 AS col0 FROM tab2 AS cor0 WHERE + ( + + 12 ) NOT BETWEEN NULL AND + - col2
----
-2346
-3082
-3542

query I rowsort
SELECT col0 + + 10 AS col1 FROM tab1 AS cor0
----
101
61
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT ALL - - 59 / + ( - CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - - 59 / + ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + + - col1 col1 FROM tab2 AS cor0 WHERE NULL <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7723
SELECT DISTINCT CAST( + - 17 AS SIGNED ) - - + COUNT( - 27 ) DIV + - COUNT( * ) FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT CAST ( + - 17 AS INTEGER ) - - + COUNT ( - 27 ) / + - COUNT ( * ) FROM tab1 cor0
----
-18

query I rowsort
SELECT ALL + ( - col0 ) * col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7725
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT DISTINCT - col0 DIV col0 * + - 31 * + + 23 FROM tab0
----
713

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - col0 / col0 * + - 31 * + + 23 FROM tab0
----
713

query I rowsort
SELECT + 11 * - 12 FROM tab1
----
-132
-132
-132

query I rowsort
SELECT - col1 FROM tab2 WHERE ( col2 IS NOT NULL )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT + col0 DIV col2 * + 11 FROM tab0
----
0
0
88

skipif mysql # not compatible
query I rowsort label-7729
SELECT + col0 / col2 * + 11 FROM tab0
----
0
0
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab0 WHERE - 24 * - 83 + + col0 IN ( + 88 * - ( + col0 ), + col1, 18 )
----

query I rowsort
SELECT - col2 * + - col2 * + 82 AS col2 FROM tab1
----
285442
379168
755712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7732
SELECT ALL 65 DIV + 96 * - MIN( ALL - - 88 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL 65 / + 96 * - MIN ( ALL - - 88 ) FROM tab2
----
0

query I rowsort
SELECT - 54 * - - col1 - - ( 7 ) FROM tab2
----
-2747
-3611
-4151

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT - - SUM( DISTINCT + 56 ) col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7734
SELECT DISTINCT - - SUM ( DISTINCT + 56 ) col1 FROM tab1 AS cor0
----
56

query II rowsort
SELECT ALL - - col0 AS col0, 93 AS col1 FROM tab0 cor0
----
15
93
87
93
97
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT DISTINCT + 61 + + col0 DIV + - col2 FROM tab0
----
53
61

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT + 61 + + col0 / + - col2 FROM tab0
----
53
61

query III rowsort
SELECT * FROM tab1 WHERE NOT + 45 * + - 42 / - col0 * + col1 * - col0 > ( ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # DIV for integer division: 
query I rowsort label-7739
SELECT DISTINCT col2 DIV col0 * - - col0 * col0 AS col1 FROM tab1
----
0
2601

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT col2 / col0 * - - col0 * col0 AS col1 FROM tab1
----
0
2601

query I rowsort
SELECT - ( 5 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT - - MAX( + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT - - MAX ( + col2 ) FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - 10 col2 FROM tab2 AS cor0 WHERE NOT + col1 / - ( 45 ) IS NULL
----
230
400
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT col0 * - ( CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7743
SELECT col0 * - ( CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT DISTINCT col1 * - CAST( + col2 AS SIGNED ) * + - col2 FROM tab2 AS cor0
----
123200
225388
26979

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT col1 * - CAST ( + col2 AS INTEGER ) * + - col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT MAX( - 22 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-7746
SELECT MAX ( - 22 ) FROM tab1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7747
SELECT - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7747
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7748
SELECT + ( CAST( col1 AS SIGNED ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7748
SELECT + ( CAST ( col1 AS INTEGER ) ) FROM tab2
----
51
67
77

query II rowsort
SELECT DISTINCT col2, - 87 FROM tab0
----
10
-87
47
-87
99
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7750
SELECT DISTINCT * FROM tab0 WHERE CAST( col0 AS DECIMAL ) + - 56 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7750
SELECT DISTINCT * FROM tab0 WHERE CAST ( col0 AS REAL ) + - 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL - COUNT( - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT - 45 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query II rowsort
SELECT ( - - 47 ) + + col0, - 65 + 25 - col2 * col0 - col0 AS col2 FROM tab0 AS cor0
----
134
-997
144
-9740
62
-760

query I rowsort
SELECT 7 + + col1 FROM tab1 AS cor0
----
12
21
54

query I rowsort
SELECT ( + 22 ) + 20 - + + col1 + - col0 * + + col2 FROM tab1 AS cor0
----
-4868
-4978
-6193

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 * - ( + 13 ) + col1 < col1 )
----

query I rowsort
SELECT ALL 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT + - ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7758
SELECT + - ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT + + COUNT( * ) - + MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7760
SELECT + + COUNT ( * ) - + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT ALL + col2 * col2 + + - col0 + - + col1 * - col1 + + col0 + + col0 + - - col2 AS col1 FROM tab2 AS cor0
----
3199
7633
7986

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 21 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 - + col0 * - 7 * - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1112556
-127560
-65766

query I rowsort
SELECT + - 48 + + col1 AS col0 FROM tab0 AS cor0
----
-27
-47
33

query I rowsort
SELECT ALL 12 + col1 FROM tab1 AS cor0
----
17
26
59

query I rowsort
SELECT DISTINCT - 49 - - + col0 AS col0 FROM tab2
----
-3
15
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7767
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * - col0 AS col2, + ( col1 ) FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7767
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * - col0 AS col2, + ( col1 ) FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / - 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT - - MIN( + 45 ) FROM tab2 WHERE NULL IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-7769
SELECT - - MIN ( + 45 ) FROM tab2 WHERE NULL IS NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT COUNT( * ) + - + 38 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT COUNT ( * ) + - + 38 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col1 col0 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7772
SELECT DISTINCT COUNT( * ) AS col0, 20 FROM tab2
----
3
20

skipif mysql # not compatible
query II rowsort label-7772
SELECT DISTINCT COUNT ( * ) AS col0, 20 FROM tab2
----
3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT + ( COUNT( * ) ) * COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7773
SELECT + ( COUNT ( * ) ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7774
SELECT + - ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT + - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT - 62 * + col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

query II rowsort
SELECT + - 38, ( + col2 ) * + + col1 AS col2 FROM tab1 AS cor0
----
-38
1344
-38
295
-38
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT COUNT( ALL + 33 ) * 14 AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT COUNT ( ALL + 33 ) * 14 AS col1 FROM tab1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - col1 col2 FROM tab2
----
3060
4020
4620

query I rowsort
SELECT - ( + col2 ) * col0 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - + col1
----

query I rowsort
SELECT - - col0 * - + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + SUM( ALL ( ( - 98 ) ) ) * 44 + + 59 FROM tab1 AS cor0
----
-12877

skipif mysql # not compatible
query I rowsort label-7783
SELECT + SUM ( ALL ( ( - 98 ) ) ) * 44 + + 59 FROM tab1 AS cor0
----
-12877

query I rowsort
SELECT DISTINCT + 93 * + col0 FROM tab2 AS cor0
----
4278
5952
6975

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 9 <= - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 74 * + col0 FROM tab1 AS cor0
----
3774
6290
6734

query I rowsort
SELECT 22 AS col0 FROM tab2 AS cor0 WHERE NOT - ( 54 ) IS NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL + COUNT( + 68 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + COUNT ( + 68 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT ALL - col1 DIV + + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - col1 / + + col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 32 * + - col1 NOT BETWEEN + 29 + - + col2 * 61 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7791
SELECT - COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7791
SELECT - COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL - COUNT( DISTINCT + 22 ) * + + 58 AS col2 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL - COUNT ( DISTINCT + 22 ) * + + 58 AS col2 FROM tab1
----
-58

query I rowsort
SELECT DISTINCT 79 + 33 AS col2 FROM tab1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT ALL + 14 AS col0 FROM tab0 WHERE ( CAST( NULL AS SIGNED ) NOT BETWEEN + 62 AND + 52 + - col1 )
----

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + 14 AS col0 FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) NOT BETWEEN + 62 AND + 52 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 73 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT + MAX( DISTINCT 95 ) col0 FROM tab2
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT DISTINCT + MAX ( DISTINCT 95 ) col0 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT + 48 * - SUM( DISTINCT - + 5 ) FROM tab0 WHERE ( + - 85 / col2 * - col2 + col0 + - 27 + col0 * + + 74 * - col2 + + col1 + + col2 + col2 + + col2 * - - 58 * - col1 ) <> + col1
----
240

skipif mysql # not compatible
query I rowsort label-7797
SELECT + 48 * - SUM ( DISTINCT - + 5 ) FROM tab0 WHERE ( + - 85 / col2 * - col2 + col0 + - 27 + col0 * + + 74 * - col2 + + col1 + + col2 + col2 + + col2 * - - 58 * - col1 ) <> + col1
----
240

query I rowsort
SELECT + - 39 + - 76 AS col2 FROM tab0 AS cor0
----
-115
-115
-115

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7799
SELECT DISTINCT + 54 DIV + 16 + + CAST( - - 69 AS SIGNED ) AS col1, - CAST( NULL AS SIGNED ) * + + col2 FROM tab0 AS cor0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-7799
SELECT DISTINCT + 54 / + 16 + + CAST ( - - 69 AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * + + col2 FROM tab0 AS cor0
----
72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7800
SELECT ALL col0 AS col0, + CAST( NULL AS SIGNED ) * + col0 * + col2 AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7800
SELECT ALL col0 AS col0, + CAST ( NULL AS INTEGER ) * + col0 * + col2 AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT + 30 + col0 FROM tab0 cor0
----
117
127
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 3 <> + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 4 col1 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT 55 DIV + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
3

skipif mysql # not compatible
query I rowsort label-7804
SELECT 55 / + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
3

query I rowsort
SELECT ALL - col2 * - - col1 + + col2 FROM tab2 AS cor0 WHERE ( NOT - 38 >= - 33 / 78 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT + + ( 40 ) AS col0 FROM tab0 AS cor0 WHERE - CAST( - col1 AS SIGNED ) IS NOT NULL
----
40
40
40

skipif mysql # not compatible
query I rowsort label-7806
SELECT + + ( 40 ) AS col0 FROM tab0 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7807
SELECT - + 88, + COUNT( * ) AS col1 FROM tab1 cor0
----
-88
3

skipif mysql # not compatible
query II rowsort label-7807
SELECT - + 88, + COUNT ( * ) AS col1 FROM tab1 cor0
----
-88
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT DISTINCT + COUNT( * ) + + CAST( + + MIN( ALL + + col1 ) AS SIGNED ) + + AVG ( + col2 ) AS col0 FROM tab0 WHERE + col0 IN ( - col1, - col0 * - - 25 * - + 0, - col2, + + 30 * + CAST( col2 AS SIGNED ) - - + 61 * - - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + COUNT ( * ) + + CAST ( + + MIN ( ALL + + col1 ) AS INTEGER ) + + AVG ( + col2 ) AS col0 FROM tab0 WHERE + col0 IN ( - col1, - col0 * - - 25 * - + 0, - col2, + + 30 * + CAST ( col2 AS INTEGER ) - - + 61 * - - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + 37 - + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-7809
SELECT + 37 - + COUNT ( * ) FROM tab2
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7810
SELECT ALL MIN( - - CAST( NULL AS DECIMAL ) ) - - - 1 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7810
SELECT ALL MIN ( - - CAST ( NULL AS REAL ) ) - - - 1 col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT COUNT( * ) - - 92 + + + COUNT( * ) * 69 AS col0 FROM tab2
----
302

skipif mysql # not compatible
query I rowsort label-7812
SELECT COUNT ( * ) - - 92 + + + COUNT ( * ) * 69 AS col0 FROM tab2
----
302

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT MAX( ALL - + 84 ) - COUNT( * ) + 20 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-7813
SELECT MAX ( ALL - + 84 ) - COUNT ( * ) + 20 FROM tab0
----
-67

query I rowsort
SELECT - col1 - - - col1 - + + col0 + + - col2 + + col0 * col0 + - col1 AS col2 FROM tab0
----
-80
7409
9210

query I rowsort
SELECT ALL - col1 * + - col0 AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + + col2 * + + col1 + + col1 - - col1 + - col0 FROM tab2 AS cor0
----
1229
3170
3945

query I rowsort
SELECT + col1 * - + col2 * - + col1 AS col0 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT COUNT( 39 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7818
SELECT COUNT ( 39 ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT ALL CAST( NULL AS SIGNED ) * + 91 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL CAST ( NULL AS INTEGER ) * + 91 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 * - + col0 AS col2 FROM tab2
----
-3588
-4992
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT + ( - + MIN( ALL - + col0 ) ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7821
SELECT + ( - + MIN ( ALL - + col0 ) ) col1 FROM tab1
----
91

query I rowsort
SELECT col1 * + - col1 * + col0 FROM tab1 WHERE NOT 58 - + + 24 + - + col0 <> - col0
----

query I rowsort
SELECT DISTINCT + - 85 * + 23 AS col2 FROM tab1 AS cor0
----
-1955

query I rowsort
SELECT ALL + ( - col2 ) * - - 68 FROM tab0 cor0
----
-3196
-6732
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7825
SELECT + 44 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7825
SELECT + 44 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 72 * - + col0 AS col2 FROM tab1 AS cor0
----
3672
6120
6552

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( - col2 * + 95, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + ( + + 62 ) AS col0 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT 68 * - + 15 FROM tab2 AS cor0
----
-1020
-1020
-1020

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE - 79 + 2 IS NULL
----

query II rowsort
SELECT col0, 56 FROM tab0
----
15
56
87
56
97
56

query I rowsort
SELECT DISTINCT - col1 * - 49 FROM tab1
----
2303
245
686

query I rowsort
SELECT 46 + - 94 FROM tab2
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL + COUNT( * ) * + + 34 AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + COUNT ( * ) * + + 34 AS col2 FROM tab0
----
102

query I rowsort
SELECT DISTINCT 76 * - + col2 FROM tab2
----
-1748
-3040
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT DISTINCT ( - 37 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT ( - 37 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - - 57 + - - col1 - col0 AS col1 FROM tab2 AS cor0
----
49
62
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + - 51 * + ( col2 ) col0 FROM tab2 AS cor0
----
-1120
-1987
-2905

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7839
SELECT * FROM tab0 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7839
SELECT * FROM tab0 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( NOT - col0 NOT BETWEEN - + 51 AND + ( - col2 ) / - - 25 )
----
87
97

query I rowsort
SELECT DISTINCT + 52 + 83 FROM tab2 AS cor0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT ALL - 97 DIV col0 * col1 * - col0 + col0 - + col1 FROM tab0 AS cor0
----
1893
193
7224

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - 97 / col0 * col1 * - col0 + col0 - + col1 FROM tab0 AS cor0
----
1893
193
7224

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col0 / - col0 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT 94 + COUNT( * ) * - SUM( DISTINCT + + col0 ) col2 FROM tab1 AS cor0
----
-587

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7844
SELECT 94 + COUNT ( * ) * - SUM ( DISTINCT + + col0 ) col2 FROM tab1 AS cor0
----
-587

query I rowsort
SELECT DISTINCT 47 + + 76 * + col0 FROM tab0 AS cor0
----
1187
6659
7419

query I rowsort
SELECT 68 + - - 34 AS col1 FROM tab1
----
102
102
102

query I rowsort
SELECT DISTINCT ( + + col1 ) - - - 19 + - 43 AS col2 FROM tab0
----
-41
-61
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + 63 + - + col1 + 58 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 88 col1 FROM tab0
----
1320
7656
8536

query I rowsort
SELECT DISTINCT - 28 * + col0 AS col0 FROM tab1
----
-1428
-2380
-2548

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7851
SELECT + CAST( NULL AS DECIMAL ) * - 77 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT + CAST ( NULL AS REAL ) * - 77 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7852
SELECT + - 81 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-81
-3

skipif mysql # not compatible
query II rowsort label-7852
SELECT + - 81 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-81
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query II rowsort
SELECT + + 50 AS col2, - col1 FROM tab1 AS cor0
----
50
-14
50
-47
50
-5

query II rowsort
SELECT DISTINCT - - 27 AS col0, + 67 FROM tab1 AS cor0
----
27
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT + COUNT( * ) - + 13 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-7857
SELECT + COUNT ( * ) - + 13 FROM tab1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT 83 + + COUNT( * ) AS col1 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-7858
SELECT 83 + + COUNT ( * ) AS col1 FROM tab0
----
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN ( 56 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + col2 >= 51
----
-2

skipif mysql # not compatible
query I rowsort label-7860
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col2 >= 51
----
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7861
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST( col0 AS DECIMAL ) ) BETWEEN NULL AND ( + col1 ) + CAST( 63 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7861
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST ( col0 AS REAL ) ) BETWEEN NULL AND ( + col1 ) + CAST ( 63 AS INTEGER )
----

query I rowsort
SELECT col1 + - col0 FROM tab1 WHERE 98 * - col0 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT DISTINCT - 95 + COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 * - col0 - col0 NOT IN ( - col2 )
----
-95

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT - 95 + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 * - col0 - col0 NOT IN ( - col2 )
----
-95

query I rowsort
SELECT DISTINCT AVG ( col2 ) FROM tab2 WHERE NOT ( NULL ) >= NULL
----
NULL

query I rowsort
SELECT DISTINCT 64 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT - MIN( ALL - 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - MIN ( ALL - 20 ) FROM tab0
----
20

query I rowsort
SELECT ALL - col2 + 17 * - col0 FROM tab1
----
-1504
-1615
-963

query I rowsort
SELECT 71 * - col1 FROM tab2 WHERE ( - 99 ) IS NULL
----

query I rowsort
SELECT DISTINCT 61 - col1 AS col1 FROM tab0
----
-20
40
60

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 - - col0 ) IN ( col2 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 85 col2 FROM tab2
----
3910
5440
6375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 17 col2 FROM tab2
----
40
57
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col2 * col1 + 36 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - COUNT( * ) - MIN( 21 + 93 ) AS col0 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-7875
SELECT - COUNT ( * ) - MIN ( 21 + 93 ) AS col0 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT 51 + + col2 * - col1 AS col0 FROM tab2
----
-1122
-3029
-3835

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT - SUM( - col2 ) * 1 col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT - SUM ( - col2 ) * 1 col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL COUNT( * ) + ( + 94 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL COUNT ( * ) + ( + 94 ) FROM tab2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT CAST( 88 AS SIGNED ) FROM tab1
----
88
88
88

skipif mysql # not compatible
query I rowsort label-7879
SELECT CAST ( 88 AS INTEGER ) FROM tab1
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ALL COUNT( * ) + 36 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL COUNT ( * ) + 36 FROM tab2
----
39

query III rowsort
SELECT * FROM tab0 WHERE - col2 - + 30 = ( NULL )
----

query I rowsort
SELECT 27 - 96 AS col1 FROM tab0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT COUNT( 64 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT COUNT ( 64 ) FROM tab0
----
3

query I rowsort
SELECT ALL - col2 * - 44 AS col1 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL - COUNT( * ) - 4 AS col1 FROM tab0 cor0 WHERE ( NULL ) IN ( col0 * 70 )
----
-4

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL - COUNT ( * ) - 4 AS col1 FROM tab0 cor0 WHERE ( NULL ) IN ( col0 * 70 )
----
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - ( - col0 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL - - 83 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL - - 83 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
86

query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7891
SELECT DISTINCT + + AVG ( 35 ) * + CAST( NULL AS DECIMAL ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT + + AVG ( 35 ) * + CAST ( NULL AS REAL ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 2 * 16 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE col2 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 + - col2 col2 FROM tab2 WHERE 72 * col1 IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 3 NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT - COUNT( ALL col1 ) * + 79 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-237

skipif mysql # not compatible
query I rowsort label-7896
SELECT - COUNT ( ALL col1 ) * + 79 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-237

query I rowsort
SELECT DISTINCT 27 FROM tab0 WHERE - col2 NOT IN ( + col1 )
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( 22 ) * - col2 ) IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 43 + col0 AS col2 FROM tab2 AS cor0
----
21
3
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 28 + + col2 NOT BETWEEN + col2 AND - 8 * - col0
----

query I rowsort
SELECT DISTINCT - col1 + + 98 FROM tab0 AS cor0
----
17
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT - + COUNT( * ) * + + 26 AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT - + COUNT ( * ) * + + 26 AS col0 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT DISTINCT COUNT( ALL - col1 ) * + 59 AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT COUNT ( ALL - col1 ) * + 59 AS col1 FROM tab1
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query II rowsort
SELECT + col1 + - col2 AS col1, 64 FROM tab0
----
-98
64
11
64
34
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT SUM( - 29 ) + + ( 10 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7906
SELECT SUM ( - 29 ) + + ( 10 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT + 34 * - COUNT( * ) AS col0 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + 34 * - COUNT ( * ) AS col0 FROM tab1
----
-102

query I rowsort
SELECT - col2 + - + col2 * + - 76 FROM tab1
----
4425
5100
7200

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7910
SELECT ALL - COUNT( DISTINCT col1 ) DIV + 52 + + ( - 83 ) FROM tab2 AS cor0 WHERE ( NULL ) > + col2
----
-83

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - COUNT ( DISTINCT col1 ) / + 52 + + ( - 83 ) FROM tab2 AS cor0 WHERE ( NULL ) > + col2
----
-83

query I rowsort
SELECT - 34 * - col2 FROM tab1 AS cor0 WHERE col1 >= - col0
----
2006
2312
3264

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN ( - - col1 - - + col0 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col2 + 42
----

query I rowsort
SELECT ALL + 98 - + + 41 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT ALL * FROM tab0 WHERE + 9 + - 73 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7916
SELECT ALL * FROM tab2 WHERE NOT + - CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7916
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT DISTINCT + MIN( ALL + 36 ) FROM tab2 WHERE - - 79 * + 48 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT + MIN ( ALL + 36 ) FROM tab2 WHERE - - 79 * + 48 IS NULL
----
NULL

query II rowsort
SELECT ALL col2, - col1 * - 45 AS col0 FROM tab0
----
10
945
47
3645
99
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 - 35 ) NOT IN ( col0 * - 66 )
----

query I rowsort
SELECT + 19 + + + col2 FROM tab2 cor0
----
42
59
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 41 col2 FROM tab1 cor0
----
100
109
137

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL > - 83
----

query I rowsort
SELECT ALL + + 65 * - 49 FROM tab2 AS cor0
----
-3185
-3185
-3185

query I rowsort
SELECT - + col1 * + - 83 FROM tab0 AS cor0
----
1743
6723
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - - col0 = ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT - col0 / ( + - ( ( + 78 ) ) ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT - col0 / ( + - ( ( + 78 ) ) ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 51 / - + 52 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, + col2 AS col0 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT + 30, col1 * col1 AS col0 FROM tab1
----
30
196
30
2209
30
25

query I rowsort
SELECT - col2 * + ( - + 12 ) FROM tab2
----
276
480
696

onlyif mysql # aggregate syntax: 
query II rowsort label-7931
SELECT ALL - SUM( + col0 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-185
3

skipif mysql # not compatible
query II rowsort label-7931
SELECT ALL - SUM ( + col0 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-185
3

query II rowsort
SELECT DISTINCT - - col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT - + col0 * - 60 AS col1 FROM tab0 AS cor0
----
5220
5820
900

onlyif mysql # aggregate syntax: 
query II rowsort label-7934
SELECT DISTINCT - MAX( + 38 ) AS col0, - COUNT( * ) AS col0 FROM tab0
----
-38
-3

skipif mysql # not compatible
query II rowsort label-7934
SELECT DISTINCT - MAX ( + 38 ) AS col0, - COUNT ( * ) AS col0 FROM tab0
----
-38
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT ALL col0 DIV 84 * - 64 + + col0 FROM tab1
----
21
27
51

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL col0 / 84 * - 64 + + col0 FROM tab1
----
21
27
51

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + 84 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7937
SELECT * FROM tab2 WHERE NOT + col1 > - + CAST( NULL AS SIGNED ) + + col0 + + col2 * + - 16
----

skipif mysql # not compatible
query III rowsort label-7937
SELECT * FROM tab2 WHERE NOT + col1 > - + CAST ( NULL AS INTEGER ) + + col0 + + col2 * + - 16
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7938
SELECT ALL col1 + + col1 AS col2, ( - + col0 ) DIV + col1 FROM tab0 AS cor0
----
162
0
2
-97
42
-4

skipif mysql # not compatible
query II rowsort label-7938
SELECT ALL col1 + + col1 AS col2, ( - + col0 ) / + col1 FROM tab0 AS cor0
----
162
0
2
-97
42
-4

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE + col1 < - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL 95 + + + SUM( ALL ( - col1 ) ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL 95 + + + SUM ( ALL ( - col1 ) ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - col1 * col1 + - 29 FROM tab2 cor0
----
-2630
-4518
-5958

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE - 79 * col2 + - col1 <= + col0 * 86 * 51
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7943
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE - 79 * col2 + - col1 <= + col0 * 86 * 51
----
3

query I rowsort
SELECT + col1 * - col1 FROM tab1 AS cor0 WHERE 27 IS NULL
----

query I rowsort
SELECT DISTINCT + 5 + + - col0 * + col2 + 35 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 23 > NULL )
----

query I rowsort
SELECT ALL col1 * 89 * - col0 + - + 14 * - + 2 AS col0 FROM tab1 AS cor0
----
-37797
-380625
-63518

query I rowsort
SELECT + col2 FROM tab2 WHERE col2 + - 69 IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT 7 * - 32 * + + col2, col1 FROM tab0
----
-10528
81
-22176
1
-2240
21

query I rowsort
SELECT - 47 * + col0 AS col0 FROM tab0
----
-4089
-4559
-705

query II rowsort
SELECT + col1 AS col0, 55 + + col2 FROM tab2
----
51
78
67
113
77
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7951
SELECT ALL + COUNT( CAST( NULL AS DECIMAL ) ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7951
SELECT ALL + COUNT ( CAST ( NULL AS REAL ) ) col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL IN ( - 9 + - - col0, - col1 * 31 )
----

query II rowsort
SELECT + 76 AS col0, col2 FROM tab1
----
76
59
76
68
76
96

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + + col0 - - ( - - ( - 29 ) ) FROM tab0 AS cor0
----
-14
58
68

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col2 * + 57 + ( + col2 ) - - col1 FROM tab2 AS cor0
----
-145803
-247825
-60232

query I rowsort
SELECT + 84 + - 90 FROM tab1
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 <> col0
----

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT DISTINCT + 48 DIV - + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + 48 / - + col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT - SUM( ALL 89 ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-7960
SELECT - SUM ( ALL 89 ) FROM tab2 AS cor0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT ALL col1 * - col0 * - + col1 FROM tab1 WHERE ( NULL ) NOT IN ( 96, - CAST( + col0 AS SIGNED ) + + + col1 )
----

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL col1 * - col0 * - + col1 FROM tab1 WHERE ( NULL ) NOT IN ( 96, - CAST ( + col0 AS INTEGER ) + + + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT + COUNT( * ) AS col0, 42 FROM tab1
----
3
42

skipif mysql # not compatible
query II rowsort label-7962
SELECT + COUNT ( * ) AS col0, 42 FROM tab1
----
3
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT ALL - COUNT( * ) AS col0, 23 FROM tab1
----
-3
23

skipif mysql # not compatible
query II rowsort label-7963
SELECT ALL - COUNT ( * ) AS col0, 23 FROM tab1
----
-3
23

query I rowsort
SELECT 4 - 57 FROM tab0 WHERE NOT - col2 + + col0 + 66 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * + - 81 + col0 IS NULL
----

query I rowsort
SELECT ALL - + 72 * + col1 * + ( - + 74 ) + - + 39 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
272747
361287
412777

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL - + MAX( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL - + MAX ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - - 63 * - 75 + 42 AS col0 FROM tab1 AS cor0
----
-4683
-4683
-4683

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7969
SELECT * FROM tab2 WHERE ( + + CAST( col0 AS DECIMAL ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7969
SELECT * FROM tab2 WHERE ( + + CAST ( col0 AS REAL ) ) = ( NULL )
----

query II rowsort
SELECT 57, + col0 FROM tab0 AS cor0
----
57
15
57
87
57
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT - - COUNT( * ) + + ( + ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT - - COUNT ( * ) + + ( + ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 92 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + - col1 col0, - 85 AS col1 FROM tab1 cor0
----
-110
-85
-115
-85
-64
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + COUNT( * ) + - 27 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7974
SELECT + COUNT ( * ) + - 27 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT ALL - + col1 + - + ( + col1 ) FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7976
SELECT ALL col1 + - CAST( NULL AS SIGNED ), - 71 AS col0 FROM tab1
----
NULL
-71
NULL
-71
NULL
-71

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL col1 + - CAST ( NULL AS INTEGER ), - 71 AS col0 FROM tab1
----
NULL
-71
NULL
-71
NULL
-71

query I rowsort
SELECT DISTINCT + 10 * + 89 FROM tab0
----
890

query I rowsort
SELECT ALL - ( col2 ) - + + col0 * 77 AS col0 FROM tab0
----
-1202
-6709
-7568

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT COUNT( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT COUNT ( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - + 70 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT col2 DIV 73 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7981
SELECT col2 / 73 AS col2 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT 36 DIV + + 21 - - 90 FROM tab2 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-7982
SELECT 36 / + + 21 - - 90 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT + COUNT( * ) FROM tab0 cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7983
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE - col0 IS NULL
----
0

query II rowsort
SELECT 73 AS col1, col0 AS col2 FROM tab0
----
73
15
73
87
73
97

query II rowsort
SELECT ALL 53, + col0 * - col0 AS col0 FROM tab0 AS cor0
----
53
-225
53
-7569
53
-9409

query I rowsort
SELECT DISTINCT + 39 * col1 AS col2 FROM tab0 AS cor0
----
3159
39
819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7987
SELECT + col2, CAST( NULL AS SIGNED ) col0 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-7987
SELECT + col2, CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <= col1 + - col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * - col1 col2 FROM tab0 AS cor0
----
-1407
-5427
-67

query I rowsort
SELECT col0 * - col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 / col0 + ( - col1 ) IN ( + col2 * col1 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 * + + 28 < NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-7992
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT col2 DIV - 84 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7993
SELECT col2 / - 84 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + 79 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + - ( + + col0 ) AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - ( - + col2 ) FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 79 * col1 * + col1 OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7998
SELECT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7998
SELECT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL 81 * - + col0 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT + - COUNT( col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8000
SELECT + - COUNT ( col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab1, tab2 cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT DISTINCT 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-8002
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT 76 * + MAX( 59 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT 76 * + MAX ( 59 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL SUM( - + 3 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL SUM ( - + 3 ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col1 + 44 + col0 AS col2 FROM tab2 cor0
----
141
185
186

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + + col0 IS NULL
----

query I rowsort
SELECT ALL - 80 * + col2 * - 22 + - ( + 57 ) + + - 83 + + col1 AS col2 FROM tab0 AS cor0
----
174101
17481
82661

query I rowsort
SELECT + - col1 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - 83 AS col2 FROM tab1
----
-4233
-7055
-7553

query I rowsort
SELECT + col0 * 66 AS col1 FROM tab2
----
3036
4224
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT DISTINCT - col1 - - col2 DIV 15 + - - col1 * 94 AS col2 FROM tab1
----
1308
4375
468

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT - col1 - - col2 / 15 + - - col1 * 94 AS col2 FROM tab1
----
1308
4375
468

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT COUNT( * ) - 53 AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-8014
SELECT COUNT ( * ) - 53 AS col1 FROM tab2
----
-50

query I rowsort
SELECT ALL - ( - - 58 ) FROM tab1
----
-58
-58
-58

query I rowsort
SELECT col0 * + col0 * - col1 - col0 + - col1 * - col1 * - - 75 * 85 AS col0 FROM tab2
----
16473413
28240425
37481919

query I rowsort
SELECT + ( + ( col2 ) ) - + col0 * + ( + 65 ) * col1 AS col0 FROM tab2
----
-152467
-320280
-326567

query I rowsort
SELECT ALL - col1 - - - ( + - col0 ) AS col0 FROM tab0
----
-66
66
96

query II rowsort
SELECT ALL col0 AS col0, 56 * + + 1 AS col0 FROM tab2
----
46
56
64
56
75
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT ALL + col1 * col0 * + + col2 + + - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + col1 * col0 * + + col2 + + - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN + 40 * + col0 + col2 AND NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL SUM( - col1 ) + - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL SUM ( - col1 ) + - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8023
SELECT ALL 85 AS col0, MIN( ALL col2 ) DIV - 56 + SUM( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
85
-195

skipif mysql # not compatible
query II rowsort label-8023
SELECT ALL 85 AS col0, MIN ( ALL col2 ) / - 56 + SUM ( - + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
85
-195

query I rowsort
SELECT DISTINCT - - col0 + + - 45 AS col1 FROM tab1 AS cor0
----
40
46
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT + MIN( DISTINCT + 31 ) * COUNT( * ) * + 81 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22599

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8026
SELECT DISTINCT + MIN ( DISTINCT + 31 ) * COUNT ( * ) * + 81 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22599

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT - COUNT( ALL + - 0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT - COUNT ( ALL + - 0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + 88 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 * col0 * - col2 + - - col0 + 91 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 * + 68 FROM tab2 cor0 WHERE NOT 4 - + + 93 + + - col1 * - - col0 IS NULL
----
-108800
-228752
-35972

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT + MAX( + col2 ) * - MIN( col2 ) FROM tab1 AS cor0
----
-5664

skipif mysql # not compatible
query I rowsort label-8031
SELECT + MAX ( + col2 ) * - MIN ( col2 ) FROM tab1 AS cor0
----
-5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - ( - 80 ) AS col2 FROM tab2
----
23
80
40
80
58
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8033
SELECT * FROM tab1 WHERE NOT + - CAST( col2 AS SIGNED ) * 20 * col1 + + col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8033
SELECT * FROM tab1 WHERE NOT + - CAST ( col2 AS INTEGER ) * 20 * col1 + + col0 <= NULL
----

query I rowsort
SELECT 88 * - col1 FROM tab0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL SUM( DISTINCT - col1 ) * - SUM( + col1 ) * - 25 AS col1 FROM tab0
----
-265225

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL SUM ( DISTINCT - col1 ) * - SUM ( + col1 ) * - 25 AS col1 FROM tab0
----
-265225

query II rowsort
SELECT ALL 45 * + + 53 * - + 77 AS col2, + col1 * - - ( + col1 ) FROM tab2
----
-183645
2601
-183645
4489
-183645
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT - COUNT( * ) * COUNT( ALL + - 75 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - COUNT ( * ) * COUNT ( ALL + - 75 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT 72 + COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT 72 + COUNT ( * ) FROM tab1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
52

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE NOT + ( - col0 ) * - 85 - - col2 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL + - SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL + - SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT - col0 + - - 45 DIV + col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8042
SELECT - col0 + - - 45 / + col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - + 95 + col2 + col1 + - 80 FROM tab1 AS cor0
----
-111
-60
-65

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 + - col1 + + col2 + - - 84 / - 75 * - + col0 * - - 56 > - 94
----

query I rowsort
SELECT DISTINCT col2 * + 82 FROM tab2
----
1886
3280
4756

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8046
SELECT - col2 * - + ( - col2 ) FROM tab1 WHERE - col1 = 41 * + col0 / - CAST( - 55 AS DECIMAL ) / col1 + col1
----

skipif mysql # not compatible
query I rowsort label-8046
SELECT - col2 * - + ( - col2 ) FROM tab1 WHERE - col1 = 41 * + col0 / - CAST ( - 55 AS REAL ) / col1 + col1
----

query I rowsort
SELECT DISTINCT + - 33 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + COUNT( ALL + + col1 ) FROM tab0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8048
SELECT + COUNT ( ALL + + col1 ) FROM tab0 WHERE - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT - MAX( - - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT - MAX ( - - col2 ) FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT DISTINCT 47 DIV + col2 FROM tab2 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT 47 / + col2 FROM tab2 cor0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT DISTINCT - - 88 + + CAST( NULL AS SIGNED ) + - SUM( - col0 ) + + COUNT( * ) * + 41 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT - - 88 + + CAST ( NULL AS INTEGER ) + - SUM ( - col0 ) + + COUNT ( * ) * + 41 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 18 + - - col1 + - 91 - col1 * col1 FROM tab0 AS cor0
----
-109
-529
-6589

query I rowsort
SELECT 14 * - col0 + + 44 FROM tab1 AS cor0
----
-1146
-1230
-670

query I rowsort
SELECT DISTINCT - + 30 AS col1 FROM tab1 AS cor0 WHERE + 73 IS NOT NULL
----
-30

query I rowsort
SELECT DISTINCT - + col1 + - 92 AS col0 FROM tab1 AS cor0
----
-106
-139
-97

query II rowsort
SELECT + col1 + col2 * - col1 + - col1, col0 AS col0 FROM tab2 AS cor0
----
-1173
46
-3080
64
-3886
75

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab1 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT + ( + col2 ) FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - ( + + ( - col1 ) ) - - 75 AS col1 FROM tab2
----
126
142
152

query I rowsort
SELECT - ( - - col0 ) FROM tab1 WHERE + 25 * col0 * - - ( - col1 ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT - COUNT( ALL - col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT - COUNT ( ALL - col0 ) FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT + col2 DIV col1 * + 16 AS col2 FROM tab0 AS cor0
----
0
0
1584

skipif mysql # not compatible
query I rowsort label-8062
SELECT + col2 / col1 * + 16 AS col2 FROM tab0 AS cor0
----
0
0
1584

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - col2 * - 38 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( ( + 74 ) ) col2 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL + MAX( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL + MAX ( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT MAX( ALL - ( - + 22 ) ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8066
SELECT MAX ( ALL - ( - + 22 ) ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT + - SUM( col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + - SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT + + 19 FROM tab0 cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT DISTINCT - - col1 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - + ( - CAST( - col2 AS SIGNED ) ) * - - 31
----

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT - - col1 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - + ( - CAST ( - col2 AS INTEGER ) ) * - - 31
----

query I rowsort
SELECT col1 * - col1 + - col1 + + + col0 FROM tab0 WHERE NOT - 90 IN ( col0 )
----
-375
-6627
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT - col1 * - CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8071
SELECT - col1 * - CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - 16 AS col0 FROM tab0
----
-1392
-1552
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col0 FROM tab0 WHERE NOT + col0 IS NULL
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab2
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8075
SELECT DISTINCT * FROM tab2 WHERE - 2 * + CAST( + col1 AS SIGNED ) + - col1 + + + col2 <= col2 * - + col1 - ( 24 )
----

skipif mysql # not compatible
query III rowsort label-8075
SELECT DISTINCT * FROM tab2 WHERE - 2 * + CAST ( + col1 AS INTEGER ) + - col1 + + + col2 <= col2 * - + col1 - ( 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT ALL - col0 * - col2 + - CAST( + + col1 AS SIGNED ) FROM tab2
----
1007
2483
4283

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - col0 * - col2 + - CAST ( + + col1 AS INTEGER ) FROM tab2
----
1007
2483
4283

query I rowsort
SELECT + ( - 31 ) FROM tab1
----
-31
-31
-31

query I rowsort
SELECT - - 69 AS col0 FROM tab1 WHERE NULL IS NULL
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + MIN( DISTINCT + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8079
SELECT + MIN ( DISTINCT + col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT + 83 - + 87 AS col2 FROM tab0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8081
SELECT CAST( NULL AS SIGNED ) + + MIN( DISTINCT - col0 ) + - COUNT( * ) AS col0, + 16 AS col0 FROM tab1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-8081
SELECT CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - col0 ) + - COUNT ( * ) AS col0, + 16 AS col0 FROM tab1
----
NULL
16

query I rowsort
SELECT + col2 + + - 18 FROM tab1
----
41
50
78

onlyif mysql # DIV for integer division: 
query II rowsort label-8083
SELECT col1 DIV col0 DIV - - 20 col1, + 57 FROM tab0 AS cor0
----
0
57
0
57
0
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8083
SELECT col1 / col0 / - - 20 col1, + 57 FROM tab0 AS cor0
----
0
57
0
57
0
57

query II rowsort
SELECT DISTINCT + col2, col1 * - 82 FROM tab2 AS cor0
----
23
-4182
40
-6314
58
-5494

query I rowsort
SELECT DISTINCT - 47 + - col1 FROM tab0 cor0
----
-128
-48
-68

query I rowsort
SELECT ALL col0 * col1 FROM tab2 AS cor0 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT SUM( DISTINCT - col1 ) + + COUNT( * ) col2 FROM tab0 cor0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8087
SELECT DISTINCT SUM ( DISTINCT - col1 ) + + COUNT ( * ) col2 FROM tab0 cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL - + SUM( - 94 ) + 55 + + 32 AS col1 FROM tab2 AS cor0
----
369

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - + SUM ( - 94 ) + 55 + + 32 AS col1 FROM tab2 AS cor0
----
369

query I rowsort
SELECT DISTINCT + col1 + - 87 AS col1 FROM tab2 AS cor0
----
-10
-20
-36

query I rowsort
SELECT - col2 * - - 62 - + 86 FROM tab0
----
-3000
-6224
-706

query I rowsort
SELECT ALL - col1 * - 99 AS col2 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL + - ( MAX( - col0 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL + - ( MAX ( - col0 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-8093
SELECT DISTINCT + + col2 DIV col1 AS col2, col0 AS col1 FROM tab2 cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-8093
SELECT DISTINCT + + col2 / col1 AS col2, col0 AS col1 FROM tab2 cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8094
SELECT - COUNT( * ) DIV - 11 + - COUNT( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8094
SELECT - COUNT ( * ) / - 11 + - COUNT ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT DISTINCT + MAX( - 63 ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT + MAX ( - 63 ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - SUM( ALL + 28 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - SUM ( ALL + 28 ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col2 * - 59 * - + col0 FROM tab1 cor0
----
288864
295885
365092

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT - ( SUM( + + col2 ) ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 40 AND - + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8098
SELECT - ( SUM ( + + col2 ) ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 40 AND - + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT DISTINCT col2 DIV 67 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT col2 / 67 AS col0 FROM tab0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT DISTINCT - ( + + col1 ) FROM tab2 AS cor0 WHERE 33 * - - col2 BETWEEN 80 AND + col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - ( + + col1 ) FROM tab2 AS cor0 WHERE 33 * - - col2 BETWEEN 80 AND + col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT DISTINCT 88 * 6 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-176

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT 88 * 6 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-176

query II rowsort
SELECT DISTINCT 21 AS col1, + 75 * col0 - + col0 * + + col0 AS col1 FROM tab1 AS cor0
----
21
-1456
21
-850
21
1224

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 70 AND + 53
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col2 NOT BETWEEN + + col0 AND + - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8106
SELECT ALL col0 * 19 + + - col2 AS col0, + col1 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-8106
SELECT ALL col0 * 19 + + - col2 AS col0, + col1 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL 79 * + CAST( + + 5 AS SIGNED ) * col0 + col1 - 97 AS col0 FROM tab0
----
34289
38219
5909

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL 79 * + CAST ( + + 5 AS INTEGER ) * col0 + col1 - 97 AS col0 FROM tab0
----
34289
38219
5909

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8108
SELECT DISTINCT SUM( + col0 ) DIV + 78 AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT SUM ( + col0 ) / + 78 AS col2 FROM tab0
----
2

query I rowsort
SELECT ALL - 38 * col2 AS col1 FROM tab2
----
-1520
-2204
-874

query I rowsort
SELECT 33 * + + col0 + - - 56 FROM tab0
----
2927
3257
551

query I rowsort
SELECT + col2 FROM tab1 WHERE col0 - + 26 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 91 - - 93 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8113
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + + CAST( NULL AS SIGNED ) AND 28
----

skipif mysql # not compatible
query III rowsort label-8113
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + + CAST ( NULL AS INTEGER ) AND 28
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 26 + + col2 col0 FROM tab2 cor0
----
-3
14
32

query I rowsort
SELECT ALL col2 + - 3 FROM tab2 AS cor0
----
20
37
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - COUNT( * ) + - 86 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8117
SELECT - COUNT ( * ) + - 86 FROM tab2 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8118
SELECT ALL + - col2 + ( - CAST( col1 AS SIGNED ) ) AS col0, + col0 AS col1 FROM tab1 cor0
----
-110
51
-115
91
-64
85

skipif mysql # not compatible
query II rowsort label-8118
SELECT ALL + - col2 + ( - CAST ( col1 AS INTEGER ) ) AS col0, + col0 AS col1 FROM tab1 cor0
----
-110
51
-115
91
-64
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - - COUNT( * ) * 87 + + 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
811

skipif mysql # not compatible
query I rowsort label-8119
SELECT - - COUNT ( * ) * 87 + + 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
811

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL SUM( + ( - col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL SUM ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + 68 + ( 13 ) AS col2 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT 70 + - ( CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-8123
SELECT 70 + - ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1 cor0
----
73

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + col2 + - - col0 * col1 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT - - 51 AS col2 FROM tab1 cor0 WHERE 99 IS NOT NULL
----
51
51
51

query I rowsort
SELECT - - ( + col2 ) * + col2 / + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL COUNT( ALL - 43 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL COUNT ( ALL - 43 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - 92 AS col2 FROM tab1 WHERE NOT - - col2 IS NULL
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE col1 BETWEEN NULL AND + col0 * - 38
----

query II rowsort
SELECT - 30, col1 + + ( + 11 ) AS col1 FROM tab2
----
-30
62
-30
78
-30
88

query I rowsort
SELECT - 89 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) <> NULL
----

query I rowsort
SELECT ALL + - 93 * - col0 FROM tab1 AS cor0
----
4743
7905
8463

query I rowsort
SELECT + + 11 - + col2 FROM tab2 cor0 WHERE NOT NULL >= 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT DISTINCT + + 61 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + + 61 / - col0 AS col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8136
SELECT ALL CAST( NULL AS DECIMAL ) * + 10 AS col2, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL CAST ( NULL AS REAL ) * + 10 AS col2, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT - COUNT( * ) + - COUNT( * ) - - 30 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-8137
SELECT - COUNT ( * ) + - COUNT ( * ) - - 30 FROM tab2
----
24

query I rowsort
SELECT 80 + + + 55 + 58 * - ( - 46 ) * + col0 AS col1 FROM tab2 AS cor0
----
122863
170887
200235

query I rowsort
SELECT ALL - col0 * + - 33 FROM tab2 cor0 WHERE NULL IS NULL
----
1518
2112
2475

query I rowsort
SELECT + col2 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT 81 * col0 * + + 40 + + 89 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 44 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - COUNT( * ) + COUNT( * ) + + + 99 AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8142
SELECT - COUNT ( * ) + COUNT ( * ) + + + 99 AS col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT col0 + + - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-24
-59
21

query I rowsort
SELECT ALL + col2 + col1 + 77 AS col2 FROM tab1 AS cor0
----
141
187
192

query I rowsort
SELECT DISTINCT col1 * - col2 + - col1 * - 46 + + col0 + - 75 FROM tab0 AS cor0
----
-141
-31
768

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 21 * - 76 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8147
SELECT - 81 DIV col1 FROM tab1
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-8147
SELECT - 81 / col1 FROM tab1
----
-1
-16
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab2
----
54
54
54

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + 60 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + - col0 ) + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 41 + 14 FROM tab2 AS cor0
----
55

query I rowsort
SELECT - 14 + - 44 + + - col2 FROM tab0 AS cor0
----
-105
-157
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT + ( - - COUNT( * ) ) + MAX( col2 ) + + + 65 * COUNT( * ) * + 36 AS col1 FROM tab0
----
7122

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT + ( - - COUNT ( * ) ) + MAX ( col2 ) + + + 65 * COUNT ( * ) * + 36 AS col1 FROM tab0
----
7122

query I rowsort
SELECT ALL ( 20 ) * + + col1 * col1 - col0 AS col2 FROM tab2
----
118516
51974
89705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( col1 ) col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
60

query II rowsort
SELECT DISTINCT col2 AS col0, 90 - - 73 FROM tab2
----
23
163
40
163
58
163

query I rowsort
SELECT ALL + col0 + + 69 FROM tab2
----
115
133
144

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - col2 BETWEEN NULL AND col1 )
----

query I rowsort
SELECT DISTINCT + col1 * - ( + col0 ) - - - col1 * + - col2 * + 82 AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + + col1 * col0
----

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT + col1 * + - col0 * + col0 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 65 * - 75 FROM tab0 AS cor0
----
-4875

query I rowsort
SELECT ALL + col1 * - 92 FROM tab0 cor0
----
-1932
-7452
-92

query I rowsort
SELECT ( - - 12 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
12
12
12

query II rowsort
SELECT + - col0, col2 AS col1 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL - + ( - - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + col0, - 10 + - - col2 FROM tab1 AS cor0
----
51
86
85
49
91
58

query I rowsort
SELECT + col0 * - - ( ( - col0 ) ) FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL + + 48 * 29 + + 80 AS col2 FROM tab0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL SUM( DISTINCT - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL SUM ( DISTINCT - col2 ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * - col0 col2 FROM tab0
----
-3375
-658503
-912673

query I rowsort
SELECT ALL 53 * col2 * - col0 * col1 AS col0 FROM tab1
----
-1328975
-15414308
-3632832

query I rowsort
SELECT ALL + + col0 * - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + ( - 90 ) AS col0, - col0 FROM tab2 AS cor0
----
-90
-46
-90
-64
-90
-75

query I rowsort
SELECT + col1 * + 50 * + col2 * - + col2 + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-10866423
-6451155
-870276

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT ALL - - col1 DIV 42 * + + col1 AS col0 FROM tab1 AS cor0 WHERE - 81 IS NOT NULL
----
0
0
47

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL - - col1 / 42 * + + col1 AS col0 FROM tab1 AS cor0 WHERE - 81 IS NOT NULL
----
0
0
47

query I rowsort
SELECT ALL - 95 + + col1 AS col1 FROM tab0 AS cor0
----
-14
-74
-94

query I rowsort
SELECT ( + 54 ) + 17 + 54 * + col2 - + + col0 AS col1 FROM tab1
----
3172
3652
5204

query I rowsort
SELECT ALL - col1 * - + ( - col1 ) FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT - 72 + - 39 AS col1 FROM tab0
----
-111
-111
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT ALL 60 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL 60 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + ( + + col0 ) FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL 6 * + + MAX( DISTINCT col0 ) * + + COUNT( * ) + - - MIN( ALL - 8 ) FROM tab0
----
1738

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL 6 * + + MAX ( DISTINCT col0 ) * + + COUNT ( * ) + - - MIN ( ALL - 8 ) FROM tab0
----
1738

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT ALL + - col0 DIV 11 FROM tab1 AS cor0
----
-4
-7
-8

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + - col0 / 11 FROM tab1 AS cor0
----
-4
-7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + COUNT( ( - col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8188
SELECT + COUNT ( ( - col2 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 85 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT + - COUNT( ALL - 53 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8190
SELECT + - COUNT ( ALL - 53 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - 2 - + MIN( - col0 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8191
SELECT - 2 - + MIN ( - col0 ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT - + 65 FROM tab1 WHERE + + col0 * 53 - - + col0 * + 57 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT + 66 + + ( + + MIN( + - 81 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT + 66 + + ( + + MIN ( + - 81 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

query I rowsort
SELECT + + col0 * col1 * + 83 AS col1 FROM tab2 cor0
----
194718
409024
417075

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT SUM( ALL col2 ) * - 1 AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8195
SELECT SUM ( ALL col2 ) * - 1 AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + COUNT( * ) * 35 FROM tab0 cor0
----
105

skipif mysql # not compatible
query I rowsort label-8196
SELECT + COUNT ( * ) * 35 FROM tab0 cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - + COUNT( * ) * + 74 + 71 AS col0 FROM tab2 cor0
----
-151

skipif mysql # not compatible
query I rowsort label-8197
SELECT - + COUNT ( * ) * + 74 + 71 AS col0 FROM tab2 cor0
----
-151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 80 ) col0 FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT 17, COUNT( * ) AS col2 FROM tab0 AS cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-8199
SELECT 17, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
17
3

query I rowsort
SELECT ALL 82 + 55 FROM tab2, tab0 AS cor0
----
9 values hashing to 63adbd6174340773af6070e9f82b685e

onlyif mysql # aggregate syntax: 
query II rowsort label-8201
SELECT DISTINCT 56 col0, COUNT( * ) * - 70 * + + COUNT( * ) FROM tab2
----
56
-630

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8201
SELECT DISTINCT 56 col0, COUNT ( * ) * - 70 * + + COUNT ( * ) FROM tab2
----
56
-630

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NOT ( NOT ( NULL <> NULL ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 26 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 26 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 < - 57 * - col2 + - col1 / 96 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 84 AS col1, + col0 FROM tab2
----
84
46
84
64
84
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT - + ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8206
SELECT - + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query II rowsort
SELECT ALL + col2 AS col2, 52 + - col1 AS col2 FROM tab1 AS cor0
----
59
47
68
5
96
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - MAX( DISTINCT + 15 ) AS col1 FROM tab0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT - MAX ( DISTINCT + 15 ) AS col1 FROM tab0 WHERE NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT col1 * + 2 + + - col1 DIV + + col1 AS col1 FROM tab0
----
1
161
41

skipif mysql # not compatible
query I rowsort label-8209
SELECT col1 * + 2 + + - col1 / + + col1 AS col1 FROM tab0
----
1
161
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT + COUNT( + - 49 ) + + 76 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT + COUNT ( + - 49 ) + + 76 FROM tab1 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 17 <= NULL
----

query I rowsort
SELECT - 96 * - 82 + + 34 AS col2 FROM tab0 AS cor0
----
7906
7906
7906

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT ALL - 1 DIV + col0 * + - 72 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - 1 / + col0 * + - 72 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT DISTINCT col1 + col1 + + CAST( 53 AS SIGNED ) + - 91 AS col2 FROM tab1 AS cor0
----
-10
-28
56

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT col1 + col1 + + CAST ( 53 AS INTEGER ) + - 91 AS col2 FROM tab1 AS cor0
----
-10
-28
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + 25 + + + MAX( + ( + - col0 ) ) FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8215
SELECT + 25 + + + MAX ( + ( + - col0 ) ) FROM tab2 cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + col1 col1, - 72 FROM tab0 AS cor0
----
0
-72
0
-72
0
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= col2 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8218
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( + + ( + + col0 ) AS SIGNED ) * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8218
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( + + ( + + col0 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 65 + col1 FROM tab2 AS cor0
----
116
132
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * + + col1 col0 FROM tab1 cor0
----
-1232
-4136
-440

query I rowsort
SELECT DISTINCT + 38 + - 98 + + 61 * + col0 AS col1 FROM tab1 cor0
----
3051
5125
5491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 36 col2 FROM tab2
----
1440
2088
828

query I rowsort
SELECT + + 30 FROM tab2 WHERE - 86 IS NOT NULL
----
30
30
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8224
SELECT + col2 * + + 84 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT + col2 * + + 84 - - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8225
SELECT ALL + CAST( NULL AS SIGNED ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8225
SELECT ALL + CAST ( NULL AS INTEGER ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL + 87 + + col2 FROM tab1 cor0
----
146
155
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT + COUNT( * ) + + + 63 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8227
SELECT + COUNT ( * ) + + + 63 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT CAST( + + 86 AS SIGNED ) FROM tab0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-8228
SELECT CAST ( + + 86 AS INTEGER ) FROM tab0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * 66 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f90be468a0821f5019ccd5ecdd99e969

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < + + 46 / col0
----

query I rowsort
SELECT DISTINCT - col0 * + ( + - col0 ) FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + + COUNT( * ) * + + 32 AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8232
SELECT + + COUNT ( * ) * + + 32 AS col0 FROM tab0 AS cor0
----
96

query II rowsort
SELECT col2 AS col0, 29 * - col1 FROM tab2
----
23
-1479
40
-2233
58
-1943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48 col1, col2 AS col1 FROM tab2
----
48
23
48
40
48
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT + col0 DIV + 32 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8235
SELECT + col0 / + 32 AS col2 FROM tab1
----
1
2
2

query I rowsort
SELECT DISTINCT col2 + + - ( col2 ) AS col1 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / - + 36 + + - 76 < 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT ALL - col2 * col2 DIV 10 FROM tab2
----
-160
-336
-52

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - col2 * col2 / 10 FROM tab2
----
-160
-336
-52

query I rowsort
SELECT 75 FROM tab2 AS cor0 WHERE + ( + ( + col2 ) ) >= 88 + col1 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8240
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col1, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-8240
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col1, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 + + col2 * - col2 col0 FROM tab0
----
-2115
-80
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + COUNT( * ) * - 96 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
-288

skipif mysql # not compatible
query I rowsort label-8242
SELECT + COUNT ( * ) * - 96 AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8243
SELECT + - CAST( - col0 AS SIGNED ) AS col0, - 79 * 37 FROM tab0 AS cor0
----
15
-2923
87
-2923
97
-2923

skipif mysql # not compatible
query II rowsort label-8243
SELECT + - CAST ( - col0 AS INTEGER ) AS col0, - 79 * 37 FROM tab0 AS cor0
----
15
-2923
87
-2923
97
-2923

query I rowsort
SELECT - 2 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT ALL 85 DIV + - col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL 85 / + - col0 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 68 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 68 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * 27 AS col2 FROM tab2 AS cor0
----
-1080
-1566
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-8248
SELECT ALL + 36 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
22
37
81

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + 36 / col1 + col1 AS col2 FROM tab0 AS cor0
----
22
37
81

query I rowsort
SELECT 3 * 77 AS col2 FROM tab0 AS cor0
----
231
231
231

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT DISTINCT - COUNT( - 88 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT - COUNT ( - 88 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 54 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-8252
SELECT AVG ( + 22 ) AS col0, + 28 DIV + 78 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8252
SELECT AVG ( + 22 ) AS col0, + 28 / + 78 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8253
SELECT - MAX( - + col1 ), COUNT( * ) DIV - 62 AS col0 FROM tab1
----
5
0

skipif mysql # not compatible
query II rowsort label-8253
SELECT - MAX ( - + col1 ), COUNT ( * ) / - 62 AS col0 FROM tab1
----
5
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN + 84 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 * + 27 / + 47 * - + col0 * - 37 * col2 - + - 69 * col1 - - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT + col1 * col1 * + col2 DIV col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-8256
SELECT + col1 * col1 * + col2 / col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT MAX( ALL + - 44 ) col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8257
SELECT MAX ( ALL + - 44 ) col2 FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - - 43 + - COUNT( * ) FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-8258
SELECT - - 43 + - COUNT ( * ) FROM tab1 cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT DISTINCT - 25 + COUNT( * ) FROM tab1, tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - 25 + COUNT ( * ) FROM tab1, tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT 32 + - + ( + - MIN( + + col1 ) ) AS col2 FROM tab1 cor0
----
37

skipif mysql # not compatible
query I rowsort label-8260
SELECT 32 + - + ( + - MIN ( + + col1 ) ) AS col2 FROM tab1 cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8261
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col1 - - - CAST( NULL AS SIGNED ) - + + col0, - col2 + - - col1 + - col2, + col0 )
----

skipif mysql # not compatible
query III rowsort label-8261
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col1 - - - CAST ( NULL AS INTEGER ) - + + col0, - col2 + - - col1 + - col2, + col0 )
----

query I rowsort
SELECT DISTINCT - 96 AS col2 FROM tab0 cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT + + col0 + - + 82 AS col0 FROM tab2 cor0
----
-18
-36
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + COUNT( * ) + SUM( - col1 ) AS col1 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + COUNT ( * ) + SUM ( - col1 ) AS col1 FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + COUNT( * ) - - - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT + COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT + ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8266
SELECT + ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT 94 * - - SUM( ALL - + 7 ) FROM tab0
----
-1974

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT 94 * - - SUM ( ALL - + 7 ) FROM tab0
----
-1974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8268
SELECT + COUNT( - CAST( NULL AS SIGNED ) ), SUM( DISTINCT CAST( NULL AS SIGNED ) ) - 90 col1 FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8268
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ), SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) - 90 col1 FROM tab0 AS cor0
----
0
NULL

query I rowsort
SELECT ALL + col1 * - 54 * + 89 FROM tab0 cor0
----
-100926
-389286
-4806

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 19 * + ( - - col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
1256
1483
897

query I rowsort
SELECT 70 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT - COUNT( * ) * ( - COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8273
SELECT - COUNT ( * ) * ( - COUNT ( * ) ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 99 < - col0 / - + col1 - - col0 - + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT MIN( col1 ) * - + 39 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8275
SELECT MIN ( col1 ) * - + 39 FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT - 99 AS col1, - COUNT( * ) FROM tab1
----
-99
-3

skipif mysql # not compatible
query II rowsort label-8276
SELECT - 99 AS col1, - COUNT ( * ) FROM tab1
----
-99
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8277
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL <> + CAST( + CAST( + + col0 AS SIGNED ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8277
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL <> + CAST ( + CAST ( + + col0 AS INTEGER ) AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 71 col0, 69 col0 FROM tab1
----
71
69
71
69
71
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL - COUNT( * ) AS col2 FROM tab1, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL - COUNT ( * ) AS col2 FROM tab1, tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT COUNT( - 70 ) FROM tab2 WHERE NOT - col2 NOT IN ( - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT COUNT ( - 70 ) FROM tab2 WHERE NOT - col2 NOT IN ( - 69 )
----
0

query I rowsort
SELECT ALL + col0 * + 92 + + col0 FROM tab1 AS cor0
----
4743
7905
8463

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 89 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - ( + 25 ) AS col1 FROM tab0 cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT - + 36 + + - ( COUNT( * ) ) * - 37 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT - + 36 + + - ( COUNT ( * ) ) * - 37 FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT CAST( NULL AS SIGNED ) * - col1 FROM tab2 WHERE NOT ( col2 / col1 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8285
SELECT CAST ( NULL AS INTEGER ) * - col1 FROM tab2 WHERE NOT ( col2 / col1 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - 71 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8287
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( CAST( NULL AS DECIMAL ) ) BETWEEN ( 51 ) AND ( col2 / 3 )
----

skipif mysql # not compatible
query I rowsort label-8287
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( CAST ( NULL AS REAL ) ) BETWEEN ( 51 ) AND ( col2 / 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT COUNT( * ) * - COUNT( * ) + 36 * MIN( col1 ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-8288
SELECT COUNT ( * ) * - COUNT ( * ) + 36 * MIN ( col1 ) FROM tab1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT - MIN( ALL 41 ) AS col1 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-8289
SELECT - MIN ( ALL 41 ) AS col1 FROM tab2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT - col0 DIV 19 col1 FROM tab2
----
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8290
SELECT DISTINCT - col0 / 19 col1 FROM tab2
----
-2
-3

query I rowsort
SELECT DISTINCT 23 + col0 * col1 FROM tab1
----
4300
448
737

query III rowsort
SELECT * FROM tab2 WHERE NOT 9 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT 24 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8293
SELECT 24 / - col0 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT 61 DIV col1 AS col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-8294
SELECT 61 / col1 AS col1 FROM tab1
----
1
12
4

query I rowsort
SELECT ALL 58 + + col0 FROM tab1
----
109
143
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT col1 * - CAST( 61 AS SIGNED ) FROM tab0
----
-1281
-4941
-61

skipif mysql # not compatible
query I rowsort label-8296
SELECT col1 * - CAST ( 61 AS INTEGER ) FROM tab0
----
-1281
-4941
-61

query I rowsort
SELECT col0 * 16 AS col0 FROM tab1
----
1360
1456
816

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT COUNT( * ) AS col2 FROM tab0 WHERE ( + ( 52 ) ) < 94 * 3
----
3

skipif mysql # not compatible
query I rowsort label-8298
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE ( + ( 52 ) ) < 94 * 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT DISTINCT 64 * + COUNT( * ) AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT 64 * + COUNT ( * ) AS col2 FROM tab1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT COUNT( 4 ) * COUNT( ( col2 ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8300
SELECT COUNT ( 4 ) * COUNT ( ( col2 ) ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT - 13 * COUNT( * ) AS col0 FROM tab0 WHERE NOT ( col2 ) BETWEEN ( - col1 - + 46 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT - 13 * COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( col2 ) BETWEEN ( - col1 - + 46 ) AND NULL
----
0

query I rowsort
SELECT ALL ( - 82 ) * + ( - 23 * - col1 + 10 ) AS col0 FROM tab2
----
-127182
-146042
-97006

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8303
SELECT * FROM tab1 WHERE NOT col1 * col2 - ( col2 + CAST( 6 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8303
SELECT * FROM tab1 WHERE NOT col1 * col2 - ( col2 + CAST ( 6 AS INTEGER ) ) = NULL
----

query I rowsort
SELECT DISTINCT col2 + - col2 * + 71 FROM tab0
----
-3290
-6930
-700

query I rowsort
SELECT - 27 * col2 FROM tab0
----
-1269
-2673
-270

query I rowsort
SELECT + col1 * - 2 AS col2 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + COUNT( * ) * + 80 col1 FROM tab2
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8307
SELECT + COUNT ( * ) * + 80 col1 FROM tab2
----
240

query I rowsort
SELECT + 27 + - 53 AS col1 FROM tab1
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - 17 - COUNT( 9 ) col1 FROM tab0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8309
SELECT - 17 - COUNT ( 9 ) col1 FROM tab0
----
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT - col1 / 22 IN ( col1 / col0 - col1 )
----
10
47
99

query I rowsort
SELECT DISTINCT - 59 * + col0 - col0 FROM tab1
----
-3060
-5100
-5460

query I rowsort
SELECT DISTINCT - col1 * - col1 + 88 AS col2 FROM tab0
----
529
6649
89

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col1 - - 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 69 * - 1 < + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col2 <> 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + SUM( ALL 3 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
27

skipif mysql # not compatible
query I rowsort label-8317
SELECT + SUM ( ALL 3 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL MIN( col1 ) * + COUNT( * ) AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL MIN ( col1 ) * + COUNT ( * ) AS col2 FROM tab2
----
153

query I rowsort
SELECT 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + col1 * col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
196
2209
25

query I rowsort
SELECT + col2 + 75 AS col0 FROM tab1 AS cor0
----
134
143
171

query I rowsort
SELECT + + col0 * + col1 + - 87 AS col2 FROM tab0 cor0
----
10
1128
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL COUNT( * ) + COUNT( * ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8323
SELECT ALL COUNT ( * ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8324
SELECT DISTINCT + + MIN( DISTINCT - col1 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT + + MIN ( DISTINCT - col1 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT col0 + 46 AS col2 FROM tab1 cor0 WHERE NOT - 46 * - col2 + + 96 * CAST( - 44 AS SIGNED ) IS NULL
----
131
137
97

skipif mysql # not compatible
query I rowsort label-8325
SELECT col0 + 46 AS col2 FROM tab1 cor0 WHERE NOT - 46 * - col2 + + 96 * CAST ( - 44 AS INTEGER ) IS NULL
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL - MAX( ALL - 71 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - 58 + + col1 AND - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - MAX ( ALL - 71 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - 58 + + col1 AND - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + 95 * COUNT( * ) + - 53 * 39 AS col1 FROM tab2 AS cor0
----
-1782

skipif mysql # not compatible
query I rowsort label-8327
SELECT + 95 * COUNT ( * ) + - 53 * 39 AS col1 FROM tab2 AS cor0
----
-1782

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8328
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + CAST( NULL AS SIGNED ) > - col0 / + col0 + col1
----

skipif mysql # not compatible
query III rowsort label-8328
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + CAST ( NULL AS INTEGER ) > - col0 / + col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - + COUNT( * ) * - 52 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8329
SELECT - + COUNT ( * ) * - 52 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + 38 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1306
-257
-3158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT ALL + + ( COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL + + ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 * - col2 col0 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT ALL - 70 DIV - COUNT( * ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - 70 / - COUNT ( * ) FROM tab0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT + 59 * col0 DIV col1 FROM tab1
----
1003
114
214

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + 59 * col0 / col1 FROM tab1
----
1003
114
214

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT MIN( DISTINCT col1 ) FROM tab0 WHERE col1 + - 42 * col2 IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT MIN ( DISTINCT col1 ) FROM tab0 WHERE col1 + - 42 * col2 IN ( + col1 )
----
NULL

query I rowsort
SELECT ALL - col2 * - ( col2 ) AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + ( + + 73 ) * + COUNT( * ) FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-8337
SELECT + ( + + 73 ) * + COUNT ( * ) FROM tab2
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT MIN( + + 37 ) col0 FROM tab1
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8338
SELECT MIN ( + + 37 ) col0 FROM tab1
----
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 18 + - 47 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8340
SELECT DISTINCT + 67 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT + 67 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT col0 + + 11 + 13 * + col2 FROM tab1 AS cor0
----
1310
863
986

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT - COUNT( * ) + + ( + 42 ) AS col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - COUNT ( * ) + + ( + 42 ) AS col2 FROM tab1 AS cor0
----
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 - + 37 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 16 FROM tab2 AS cor0
----
30
48
59

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col0 * + + 56 AS col2 FROM tab2
----
2576
3584
4200

onlyif mysql # aggregate syntax: 
query II rowsort label-8347
SELECT - 60 AS col2, + COUNT( * ) FROM tab1
----
-60
3

skipif mysql # not compatible
query II rowsort label-8347
SELECT - 60 AS col2, + COUNT ( * ) FROM tab1
----
-60
3

query I rowsort
SELECT + col0 * - 47 AS col1 FROM tab2 AS cor0 WHERE col1 * - + col1 * ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 78 * col2 * col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8349
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 78 * col2 * col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL + COUNT( * ) + 14 FROM tab1 AS cor0 WHERE 15 + + col0 IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + COUNT ( * ) + 14 FROM tab1 AS cor0 WHERE 15 + + col0 IS NULL
----
14

query I rowsort
SELECT DISTINCT col1 + - 93 AS col0 FROM tab0 cor0
----
-12
-72
-92

query I rowsort
SELECT ALL 5 * col2 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( + col0 * - 44 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT ( + CAST( - ( + col1 ) AS SIGNED ) ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8354
SELECT ( + CAST ( - ( + col1 ) AS INTEGER ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL + 70 * 66 FROM tab0
----
4620
4620
4620

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT ALL col2 DIV - - ( - col1 ) col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8357
SELECT ALL col2 / - - ( - col1 ) col0 FROM tab1
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8358
SELECT CAST( NULL AS SIGNED ) * + CAST( 57 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT CAST ( NULL AS INTEGER ) * + CAST ( 57 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT - col1 DIV - - 91 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - col1 / - - 91 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - COUNT( ALL + - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8360
SELECT - COUNT ( ALL + - col0 ) FROM tab1
----
-3

query I rowsort
SELECT - col2 * - - col2 + + col0 - + - col1 AS col0 FROM tab0 AS cor0
----
-2113
-9703
8

query I rowsort
SELECT ( + ( + + 71 ) ) AS col2 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + 19 * col1 * + col0 FROM tab1
----
13566
8075
81263

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT + + MAX( 57 ) / + 61 AS col2 FROM tab2 AS cor0 WHERE col0 * + ( - 49 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT + + MAX ( 57 ) / + 61 AS col2 FROM tab2 AS cor0 WHERE col0 * + ( - 49 ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT + MIN( col1 ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-8365
SELECT + MIN ( col1 ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
153

query I rowsort
SELECT DISTINCT + col1 + - 75 * + + col2 FROM tab2 AS cor0
----
-1674
-2923
-4283

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 99 * - 39 <= 12 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + + 97 ) + + col2 AS col0 FROM tab1 AS cor0
----
156
165
193

query III rowsort
SELECT * FROM tab2 WHERE - 75 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT SUM( + col0 ) + + + SUM( DISTINCT col1 ) + + + 9 + MAX( ALL - col1 ) FROM tab2
----
338

skipif mysql # not compatible
query I rowsort label-8370
SELECT SUM ( + col0 ) + + + SUM ( DISTINCT col1 ) + + + 9 + MAX ( ALL - col1 ) FROM tab2
----
338

query I rowsort
SELECT 45 + ( col0 ) AS col2 FROM tab0
----
132
142
60

query I rowsort
SELECT col1 + - 54 AS col2 FROM tab0
----
-33
-53
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( 14 ) col0 FROM tab2
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT MIN( col2 ) + COUNT( * ) AS col1 FROM tab1 WHERE ( + - col1 + - + col2 ) IS NOT NULL
----
62

skipif mysql # not compatible
query I rowsort label-8374
SELECT MIN ( col2 ) + COUNT ( * ) AS col1 FROM tab1 WHERE ( + - col1 + - + col2 ) IS NOT NULL
----
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 + + col2 + + ( + - 59 ) - col2 * - col0 * col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 54 * 84 * col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 66 * + col0 > + + 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 46 + + col1, col0 * - col2 AS col0 FROM tab2
----
113
-4350
123
-2560
97
-1058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - col1 col1 FROM tab1
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT DISTINCT - MIN( ALL - 53 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT - MIN ( ALL - 53 ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT - col0 * - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT + ( - 67 ) AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-67
23
-67
40
-67
58

query I rowsort
SELECT + ( - + col1 ) * + - 94 FROM tab1 AS cor0
----
1316
4418
470

query I rowsort
SELECT - col2 * - - 9 AS col0 FROM tab2 cor0
----
-207
-360
-522

query I rowsort
SELECT - - ( + 59 ) FROM tab2 AS cor0
----
59
59
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + 38 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL - + MAX( 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - + MAX ( 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 WHERE NOT + col2 NOT IN ( + ( ( + + col1 ) ) + col1 )
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE col2 * - + col1 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT COUNT( + + col1 ) col0 FROM tab1 WHERE NOT + + 82 / 32 + - 77 + - 22 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8390
SELECT COUNT ( + + col1 ) col0 FROM tab1 WHERE NOT + + 82 / 32 + - 77 + - 22 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT ALL + col2 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + col2 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT + col1 DIV 85 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT + col1 / 85 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT 81 * + MIN( ALL 19 ) * + + COUNT( * ) FROM tab1 AS cor0
----
4617

skipif mysql # not compatible
query I rowsort label-8394
SELECT 81 * + MIN ( ALL 19 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
4617

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + ( + col0 ) - + + col0 NOT IN ( - 37 - col2 * + col1 / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL - + COUNT( ALL 72 ) AS col1 FROM tab0 WHERE NULL NOT IN ( + col2, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL - + COUNT ( ALL 72 ) AS col1 FROM tab0 WHERE NULL NOT IN ( + col2, - col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - - col2 col0, col0 FROM tab2 AS cor0
----
117
64
125
75
74
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT - 90 + 2 DIV + + MAX( ALL + 96 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8398
SELECT - 90 + 2 / + + MAX ( ALL + 96 ) FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8399
SELECT * FROM tab1 AS cor0 WHERE NULL < + 75 * - col1 - + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-8399
SELECT * FROM tab1 AS cor0 WHERE NULL < + 75 * - col1 - + CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT + 10 AS col2 FROM tab1 AS cor0 WHERE + 74 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL + SUM( ALL + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + SUM ( ALL + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT ALL - ( + - 52 ) AS col0 FROM tab1
----
52
52
52

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT col0 DIV - - 58 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8405
SELECT col0 / - - 58 FROM tab1
----
0
1
1

query I rowsort
SELECT 37 - - ( ( + ( + - ( ( + col2 ) ) ) ) ) AS col1 FROM tab2
----
-21
-3
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT - col2 DIV + 40 - + col2 FROM tab0 AS cor0
----
-10
-101
-48

skipif mysql # not compatible
query I rowsort label-8407
SELECT - col2 / + 40 - + col2 FROM tab0 AS cor0
----
-10
-101
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8408
SELECT DISTINCT - MAX( - - CAST( col0 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8408
SELECT DISTINCT - MAX ( - - CAST ( col0 AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col2 + + - col0
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE 3 IN ( + - 62, col0, col0 * + - 10 * + - col0 * + col0 * col2 )
----

query I rowsort
SELECT ALL - 47 - col0 AS col0 FROM tab0
----
-134
-144
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col2 col0 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + MAX( ALL + + 58 ) FROM tab1 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8413
SELECT + MAX ( ALL + + 58 ) FROM tab1 cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8414
SELECT ALL + - 46 * COUNT( * ) DIV + + 3 AS col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + - 46 * COUNT ( * ) / + + 3 AS col2 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + - col1 * - + col0 * - + col0 AS col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - 20 * - col2 - + - col0 <> col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - + 95 * - col0 * - + col2 + + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8418
SELECT ALL 76 DIV + col1 FROM tab0 cor0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL 76 / + col1 FROM tab0 cor0
----
0
3
76

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col0, + col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT col1, 85 FROM tab2 AS cor0
----
51
85
67
85
77
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT + 85 * - MIN( DISTINCT - - 27 ) * - 82 * 13 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
2446467

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT + 85 * - MIN ( DISTINCT - - 27 ) * - 82 * 13 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2446467

query I rowsort
SELECT 5 * - - 37 FROM tab0
----
185
185
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL COUNT( - 23 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL COUNT ( - 23 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 41 * + + 14 AS col0 FROM tab2
----
-574

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + col1 / + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8427
SELECT ALL 13 / - col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 13 / - col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT - CAST( NULL AS SIGNED ) * 65 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT - CAST ( NULL AS INTEGER ) * 65 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + 66 * - ( + col0 ) AS col2 FROM tab2
----
-51
-3036
-67
-4950
-77
-4224

query II rowsort
SELECT DISTINCT - 41, col0 AS col1 FROM tab2
----
-41
46
-41
64
-41
75

query I rowsort
SELECT DISTINCT - col0 * + 40 * - 75 AS col1 FROM tab0
----
261000
291000
45000

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT DISTINCT + - 67, - 84 * + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-67
-756

skipif mysql # not compatible
query II rowsort label-8432
SELECT DISTINCT + - 67, - 84 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-67
-756

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) = ( NULL )
----

query I rowsort
SELECT ALL - - ( + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 92
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8438
SELECT SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 * - CAST( + 99 AS SIGNED ) + - - col0 * 0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8439
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 * - CAST ( + 99 AS INTEGER ) + - - col0 * 0 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col2 col0 FROM tab0 cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT 28 + MIN( - - col2 ) col0 FROM tab1 cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8441
SELECT 28 + MIN ( - - col2 ) col0 FROM tab1 cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + - col2 col0 FROM tab0 AS cor0
----
-36
16
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 + col1 col2 FROM tab1 cor0
----
102
111
144

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - - SUM( + + col0 ) FROM tab1 WHERE col0 IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-8445
SELECT - - SUM ( + + col0 ) FROM tab1 WHERE col0 IS NOT NULL
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - col1 ) * + + 68 + 45 AS col1 FROM tab2
----
-3423
-4511
-5191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - col2 AS col1, + col1 col2 FROM tab0
----
705
81
870
21
9603
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT COUNT( ALL + 4 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8449
SELECT COUNT ( ALL + 4 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8450
SELECT - - COUNT( * ), COUNT( * ) AS col0 FROM tab1 cor0 WHERE - col0 + - col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8450
SELECT - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 cor0 WHERE - col0 + - col2 IS NULL
----
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 90, + col0 * - + col2, - - ( - + col1 ) + - - 68 )
----

query II rowsort
SELECT - 5, + col2 FROM tab2
----
-5
23
-5
40
-5
58

query I rowsort
SELECT ALL - + 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # DIV for integer division: 
query I rowsort label-8454
SELECT + 70 DIV 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-8454
SELECT + 70 / 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL - 0 * - 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( - col2 ) ) <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 * ( col1 ) AS col2 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8460
SELECT ALL + CAST( NULL AS DECIMAL ) * + col1 / + + 35 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL + CAST ( NULL AS REAL ) * + col1 / + + 35 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 7 * - 55 AS col0 FROM tab1 AS cor0
----
-385
-385
-385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 81 / col1 AS col0, - col0 col0 FROM tab1 AS cor0 WHERE NOT + col2 + + col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 47 + - col0 * + + col0 col0 FROM tab1 AS cor0
----
-11477
-7113
-9998

query II rowsort
SELECT DISTINCT - col1, - col1 * - 83 AS col1 FROM tab0
----
-1
83
-21
1743
-81
6723

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL - 34 + SUM( 17 ) FROM tab1 WHERE - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - 34 + SUM ( 17 ) FROM tab1 WHERE - - col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - + ( + col2 ) AND - 24
----

query II rowsort
SELECT + 22 AS col2, + col1 FROM tab2 cor0
----
22
51
22
67
22
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( col2 ) col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL 15 + - ( COUNT( * ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL 15 + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2 AS cor0 WHERE - 44 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT col0 + - CAST( - col0 AS SIGNED ) FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-8471
SELECT col0 + - CAST ( - col0 AS INTEGER ) FROM tab2
----
128
150
92

query I rowsort
SELECT + col1 + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8473
SELECT ALL + CAST( - 60 AS SIGNED ), col2 + 51 col0 FROM tab2 AS cor0
----
-60
109
-60
74
-60
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8473
SELECT ALL + CAST ( - 60 AS INTEGER ), col2 + 51 col0 FROM tab2 AS cor0
----
-60
109
-60
74
-60
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT DISTINCT 76 + - 1 DIV - col0 + + + 38 FROM tab0 AS cor0 WHERE NULL IS NULL
----
114

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT 76 + - 1 / - col0 + + + 38 FROM tab0 AS cor0 WHERE NULL IS NULL
----
114

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0 * + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + ( - - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8477
SELECT 47 AS col1, COUNT( * ) AS col2 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-8477
SELECT 47 AS col1, COUNT ( * ) AS col2 FROM tab1
----
47
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 IN ( + + col0 * + + 29, - col1 / + col0 )
----

query I rowsort
SELECT ALL + 81 - 43 FROM tab1
----
38
38
38

query I rowsort
SELECT DISTINCT - col2 - 88 AS col1 FROM tab0
----
-135
-187
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT ALL + 79 DIV - + col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + 79 / - + col2 FROM tab2
----
-1
-1
-3

query I rowsort
SELECT ( + col2 ) + + + 70 AS col1 FROM tab2
----
110
128
93

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + + col0 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL + MAX( + 35 ) * + 9 AS col0 FROM tab0 AS cor0 WHERE NOT ( 83 * + ( + col0 ) ) IS NULL
----
315

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + MAX ( + 35 ) * + 9 AS col0 FROM tab0 AS cor0 WHERE NOT ( 83 * + ( + col0 ) ) IS NULL
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8486
SELECT col1 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8486
SELECT col1 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT - - COUNT( * ) + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-8487
SELECT - - COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT DISTINCT + COUNT( * ) * + ( 28 ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT + COUNT ( * ) * + ( 28 ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT + 82 AS col2, + 54 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1, col0 FROM tab2 AS cor0 WHERE NOT 14 + + + col0 IS NULL
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8491
SELECT - CAST( - col1 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT - 61 / + col0 < + 17
----

skipif mysql # not compatible
query I rowsort label-8491
SELECT - CAST ( - col1 AS REAL ) FROM tab2 AS cor0 WHERE NOT - 61 / + col0 < + 17
----

query I rowsort
SELECT ALL + 48 * - 55 * col0 * col2 AS col1 FROM tab0
----
-1861200
-2296800
-25351920

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT + col2 * + 56 IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT + 16 DIV + - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT + 16 / + - col0 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT DISTINCT + CAST( + 67 AS SIGNED ) col2 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8495
SELECT DISTINCT + CAST ( + 67 AS INTEGER ) col2 FROM tab2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT ALL - + col2 DIV + 53 AS col1 FROM tab1 WHERE + - col2 >= + - col0
----
-1
-1

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - + col2 / + 53 AS col1 FROM tab1 WHERE + - col2 >= + - col0
----
-1
-1

query I rowsort
SELECT - col1 + - - col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT ALL + 46 * - + 89 AS col0 FROM tab1
----
-4094
-4094
-4094

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE - col0 NOT IN ( + 53 * + col1 / col2 * col0 + - 60 )
----
15
87
97

query I rowsort
SELECT ALL 54 * + + 90 + col1 + + + col1 + - col1 + - col2 - + 24 * 17 FROM tab0 AS cor0
----
4354
4463
4486

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + COUNT( + - col1 ) FROM tab0 AS cor0 WHERE + col0 + - 81 * - col2 + col0 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT + COUNT ( + - col1 ) FROM tab0 AS cor0 WHERE + col0 + - 81 * - col2 + col0 < - col0
----
0

query II rowsort
SELECT - col0 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT - COUNT( * ) * - 58 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8503
SELECT - COUNT ( * ) * - 58 FROM tab0 AS cor0
----
174

query I rowsort
SELECT + 81 - + 81 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - 74 + col2 AS col2 FROM tab1
----
-15
-6
22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 / - + col0 + - col1 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col2, + 4 FROM tab0 cor0
----
-1
4
-21
4
-81
4

query I rowsort
SELECT ALL + col2 + + col1 + - ( + - 70 ) FROM tab2 AS cor0
----
144
187
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8509
SELECT + + col1 + + CAST( NULL AS SIGNED ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8509
SELECT + + col1 + + CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT + col1 * - - 13 AS col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - 36 AND - CAST( NULL AS SIGNED ) * col0 + + + col2
----
1053
13

skipif mysql # not compatible
query I rowsort label-8510
SELECT + col1 * - - 13 AS col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - 36 AND - CAST ( NULL AS INTEGER ) * col0 + + + col2
----
1053
13

query I rowsort
SELECT ALL 88 - + 55 + + col0 AS col2 FROM tab0 AS cor0
----
120
130
48

query II rowsort
SELECT ALL 40 + col1 AS col2, - col2 AS col1 FROM tab0
----
121
-47
41
-99
61
-10

query I rowsort
SELECT ALL - col1 / + + 55 AS col2 FROM tab2 WHERE NOT - + 77 IS NOT NULL
----

query I rowsort
SELECT ALL col1 - 86 * + col2 AS col0 FROM tab0
----
-3961
-839
-8513

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE - + col0 * col1 BETWEEN NULL AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE - + col0 * col1 BETWEEN NULL AND + + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT COUNT( col0 ) * ( + MAX( DISTINCT - col0 ) ) + - COUNT( * ) + + + 91 * COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT COUNT ( col0 ) * ( + MAX ( DISTINCT - col0 ) ) + - COUNT ( * ) + + + 91 * COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8517
SELECT ( + + CAST( NULL AS SIGNED ) ), - col1 + - 4 DIV + - 94 + - - col2 AS col1 FROM tab1
----
NULL
21
NULL
54
NULL
82

skipif mysql # not compatible
query II rowsort label-8517
SELECT ( + + CAST ( NULL AS INTEGER ) ), - col1 + - 4 / + - 94 + - - col2 AS col1 FROM tab1
----
NULL
21
NULL
54
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - COUNT( * ) FROM tab1 WHERE + 4 NOT IN ( col0 - + 43, 78 + - col1 + col1, - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8518
SELECT - COUNT ( * ) FROM tab1 WHERE + 4 NOT IN ( col0 - + 43, 78 + - col1 + col1, - col0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT SUM( 80 ) col1 FROM tab0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8519
SELECT DISTINCT SUM ( 80 ) col1 FROM tab0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8520
SELECT ALL col2 - + col1 + - + CAST( NULL AS SIGNED ) / - col2 * - col2 * - 17 * - - col2 / 40, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-8520
SELECT ALL col2 - + col1 + - + CAST ( NULL AS INTEGER ) / - col2 * - col2 * - 17 * - - col2 / 40, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT - - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 78 * + col1 AS col0 FROM tab1 AS cor0
----
-1092
-3666
-390

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 88 = ( 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8524
SELECT DISTINCT col0 + + col0 * + col0, + col2 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - 65 - + 11 )
----

skipif mysql # not compatible
query II rowsort label-8524
SELECT DISTINCT col0 + + col0 * + col0, + col2 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - 65 - + 11 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 37 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8526
SELECT ALL + col0 AS col1, - CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8526
SELECT ALL + col0 AS col1, - CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL - - col2 + + 94 FROM tab2 AS cor0
----
117
134
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL + COUNT( * ) * - ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8528
SELECT ALL + COUNT ( * ) * - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - + 37 FROM tab1 WHERE NOT ( col0 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT - + 74 AS col2 FROM tab2 WHERE NOT ( NOT ( col2 BETWEEN + CAST( - - ( + 31 ) AS SIGNED ) AND - + 28 / + ( - col1 ) ) )
----

skipif mysql # not compatible
query I rowsort label-8530
SELECT - + 74 AS col2 FROM tab2 WHERE NOT ( NOT ( col2 BETWEEN + CAST ( - - ( + 31 ) AS INTEGER ) AND - + 28 / + ( - col1 ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8531
SELECT ALL col1 * + - col0, - 67 * - + col1 DIV + ( - col1 ) - + 64 col0 FROM tab0
----
-1215
-131
-1827
-131
-97
-131

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8531
SELECT ALL col1 * + - col0, - 67 * - + col1 / + ( - col1 ) - + 64 col0 FROM tab0
----
-1215
-131
-1827
-131
-97
-131

query I rowsort
SELECT col2 * - col1 * - 52 AS col0 FROM tab2 WHERE ( NOT - 2 * 73 IS NULL )
----
160160
202072
60996

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 BETWEEN - col2 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT DISTINCT - AVG ( - ( - - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT - AVG ( - ( - - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8535
SELECT - - 12 FROM tab2 AS cor0 WHERE ( NULL ) = 64 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8535
SELECT - - 12 FROM tab2 AS cor0 WHERE ( NULL ) = 64 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 + 38 AS col0 FROM tab2
----
102
113
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 <= 90 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT + COUNT( * ) - - 41 AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT + COUNT ( * ) - - 41 AS col2 FROM tab2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL + - COUNT( + col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL + - COUNT ( + col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT - COUNT( ALL + 73 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - COUNT ( ALL + 73 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 = - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL - - COUNT( * ) + - 20 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL - - COUNT ( * ) + - 20 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - SUM( col1 ) * + MAX( ALL - 15 ) FROM tab2 AS cor0
----
2925

skipif mysql # not compatible
query I rowsort label-8544
SELECT - SUM ( col1 ) * + MAX ( ALL - 15 ) FROM tab2 AS cor0
----
2925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col0 ) col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL - MIN( + col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL - MIN ( + col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT + + CAST( NULL AS SIGNED ) + + - 45 AS col0 FROM tab2 AS cor0 WHERE ( NOT - col0 IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT + + CAST ( NULL AS INTEGER ) + + - 45 AS col0 FROM tab2 AS cor0 WHERE ( NOT - col0 IS NULL )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT col2 + 81 * - col1 - 70 AS col1 FROM tab2 AS cor0 WHERE - col1 + - CAST( NULL AS SIGNED ) IS NULL
----
-4178
-5439
-6267

skipif mysql # not compatible
query I rowsort label-8548
SELECT col2 + 81 * - col1 - 70 AS col1 FROM tab2 AS cor0 WHERE - col1 + - CAST ( NULL AS INTEGER ) IS NULL
----
-4178
-5439
-6267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT DISTINCT col2 + - + CAST( + + 99 AS SIGNED ) + ( 70 ) + - 7 AS col1 FROM tab2
----
-13
22
4

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT col2 + - + CAST ( + + 99 AS INTEGER ) + ( 70 ) + - 7 AS col1 FROM tab2
----
-13
22
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT ALL 84 + + + 43 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL 84 + + + 43 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT DISTINCT - SUM( DISTINCT 31 ) AS col1 FROM tab1 WHERE NULL >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT - SUM ( DISTINCT 31 ) AS col1 FROM tab1 WHERE NULL >= col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT + 29 - - COUNT( * ) + - 9 col1 FROM tab0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8552
SELECT DISTINCT + 29 - - COUNT ( * ) + - 9 col1 FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + col0 col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab0 WHERE + + col2 NOT IN ( col0, col1, - col0, col0 )
----
1215
1827
97

query I rowsort
SELECT ALL + 85 * + ( - col1 ) FROM tab0
----
-1785
-6885
-85

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col2 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT MAX( ALL ( col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8557
SELECT MAX ( ALL ( col2 ) ) AS col2 FROM tab0
----
99

query II rowsort
SELECT + col2, + col2 * + col1 FROM tab0
----
10
210
47
3807
99
99

query I rowsort
SELECT - ( - 42 ) * + + col2 FROM tab1
----
2478
2856
4032

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 WHERE NULL BETWEEN + - 91 * 42 AND - 73
----

query II rowsort
SELECT - col1 AS col2, 69 AS col1 FROM tab0 cor0
----
-1
69
-21
69
-81
69

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - col2 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL ( + COUNT( * ) ) * + + SUM( ALL + + col1 ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL ( + COUNT ( * ) ) * + + SUM ( ALL + + col1 ) FROM tab0 AS cor0
----
309

query I rowsort
SELECT ALL + - 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / + col1 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 <= + col0
----
51
14
96

query I rowsort
SELECT DISTINCT - - 2 + + col0 + 99 FROM tab0 AS cor0 WHERE - col2 NOT IN ( 8, - 11 )
----
116
188
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT DISTINCT MAX( DISTINCT CAST( + 25 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT MAX ( DISTINCT CAST ( + 25 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT + + col0 * - + col2 + col1 AS col2 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT col2 DIV + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8572
SELECT col2 / + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8573
SELECT * FROM tab0 AS cor0 WHERE CAST( - - 72 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8573
SELECT * FROM tab0 AS cor0 WHERE CAST ( - - 72 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT COUNT( * ) + 46 * COUNT( * ) FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-8574
SELECT COUNT ( * ) + 46 * COUNT ( * ) FROM tab0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT + CAST( NULL AS SIGNED ) + + + col0 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT + CAST ( NULL AS INTEGER ) + + + col0 + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT + 93 * - col0 * + + col1 / CAST( NULL AS SIGNED ) + - 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT + 93 * - col0 * + + col1 / CAST ( NULL AS INTEGER ) + - 38 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + + col0 * - ( col0 ) + - col1 + + col2 AS col1, + 90 AS col0 FROM tab2
----
-2098
90
-4069
90
-5559
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8578
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-8578
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT 22 * 54 + 33 + - - col2 AS col0 FROM tab0
----
1231
1268
1320

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) <> + + CAST( NULL AS SIGNED ) - 77
----

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) <> + + CAST ( NULL AS INTEGER ) - 77
----

query I rowsort
SELECT ALL + col2 * + 62 + 76 FROM tab0 AS cor0
----
2990
6214
696

query II rowsort
SELECT ALL - 50 * - col0 * col0 + + col0 + + 62 - - + col1, col1 FROM tab0 AS cor0
----
11408
81
378620
21
470610
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + + col1 - + col1 * - 89 col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL + COUNT( 91 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL + COUNT ( 91 ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > + 26
----

query I rowsort
SELECT + 84 + - + col1 AS col2 FROM tab1 AS cor0
----
37
70
79

query I rowsort
SELECT DISTINCT + + col1 * + - 36 FROM tab2 cor0
----
-1836
-2412
-2772

query II rowsort
SELECT + col1 * + col1 + - col2 * - col2, col2 AS col2 FROM tab1 AS cor0
----
3506
59
6833
68
9412
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + COUNT( * ) + - 27 AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8591
SELECT + COUNT ( * ) + - 27 AS col2 FROM tab2 AS cor0
----
-24

query II rowsort
SELECT ALL + + col2 * 51 AS col0, col0 + 70 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
3009
-206
3468
-3131
4896
-833

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT + - 99 * 48 + col1 FROM tab2 cor0
----
-4675
-4685
-4701

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 31 AND + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 / - col1 + + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 < ( 91 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL + - COUNT( * ) * 42 AS col0 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + - COUNT ( * ) * 42 AS col0 FROM tab0 AS cor0
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8599
SELECT CAST( ( - - CAST( - AVG ( col1 ) AS SIGNED ) ) AS SIGNED ) AS col0, SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-22
227

skipif mysql # not compatible
query II rowsort label-8599
SELECT CAST ( ( - - CAST ( - AVG ( col1 ) AS INTEGER ) ) AS INTEGER ) AS col0, SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-22
227

query I rowsort
SELECT col0 * - 52 AS col2 FROM tab2 AS cor0
----
-2392
-3328
-3900

query II rowsort
SELECT DISTINCT + 16 AS col0, - 92 * - col2 * ( + + 96 ) AS col1 FROM tab1 cor0
----
16
521088
16
600576
16
847872

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----
0

query I rowsort
SELECT + col0 * - + col1 + - 97 + - col0 * - col2 + - col2 FROM tab1 AS cor0
----
1746
3989
4434

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 8 > - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 56 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL - - 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query II rowsort
SELECT DISTINCT - 6 AS col2, - 43 * col2 + + col0 AS col2 FROM tab2
----
-6
-1656
-6
-2419
-6
-943

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8608
SELECT * FROM tab2 WHERE NOT + 48 + CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8608
SELECT * FROM tab2 WHERE NOT + 48 + CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-59

query II rowsort
SELECT - col2 + - 58 AS col2, 57 * - 46 AS col2 FROM tab0 AS cor0
----
-105
-2622
-157
-2622
-68
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT COUNT( * ) + - COUNT( * ) - - 16 AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8611
SELECT COUNT ( * ) + - COUNT ( * ) - - 16 AS col1 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT 65 + col1 AS col1 FROM tab1 AS cor0
----
112
70
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8614
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8614
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 92 FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
92

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE 39 IS NULL
----

query I rowsort
SELECT 8 * + 23 AS col0 FROM tab1
----
184
184
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT + col1 - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT + col1 - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - col2 + 53 * - + 89 FROM tab1
----
-4776
-4785
-4813

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT + 95 + - - COUNT( + col1 ) col0, 43 FROM tab1 WHERE + 67 IS NOT NULL
----
98
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8621
SELECT + 95 + - - COUNT ( + col1 ) col0, 43 FROM tab1 WHERE + 67 IS NOT NULL
----
98
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL ( + CAST( + ( + + 35 ) AS SIGNED ) ) FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL ( + CAST ( + ( + + 35 ) AS INTEGER ) ) FROM tab1, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query II rowsort
SELECT col0, - col0 AS col0 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL + + 78 * col2 AS col0 FROM tab0 AS cor0
----
3666
7722
780

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 53 IS NOT NULL
----

query I rowsort
SELECT 27 FROM tab0 AS cor0 WHERE NOT ( 11 * col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT - + ( - SUM( 8 ) ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8627
SELECT - + ( - SUM ( 8 ) ) FROM tab2 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 61 ) * - - col0 * + 98 FROM tab2 AS cor0
----
274988
382592
448350

onlyif mysql # DIV for integer division: 
query II rowsort label-8630
SELECT DISTINCT + 69, + col1 DIV - - col0 AS col2 FROM tab1 cor0
----
69
0

skipif mysql # not compatible
query II rowsort label-8630
SELECT DISTINCT + 69, + col1 / - - col0 AS col2 FROM tab1 cor0
----
69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + COUNT( * ) * + 57 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8631
SELECT + COUNT ( * ) * + 57 FROM tab2 AS cor0
----
171

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) * - 4 + - - col0 * 59 + - - col0 * - col1 + + col0 / + col1 * - + ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - - 30 + + col0 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT - ( + COUNT( * ) ) FROM tab1 WHERE NOT 59 * - 61 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT - ( + COUNT ( * ) ) FROM tab1 WHERE NOT 59 * - 61 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8635
SELECT ALL - ( - SUM( + + ( - 83 ) ) ), + COUNT( ALL - 92 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-249
NULL

skipif mysql # not compatible
query II rowsort label-8635
SELECT ALL - ( - SUM ( + + ( - 83 ) ) ), + COUNT ( ALL - 92 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-249
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - 94 ) ) col1 FROM tab0
----
-94
-94
-94

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * + 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + SUM( ALL ( + - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT + SUM ( ALL ( + - col1 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT COUNT( * ) * - 6 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8640
SELECT COUNT ( * ) * - 6 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT + ( + 95 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT + ( + 95 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 99 + + col2 - + - col2 - - 66 * + col2 FROM tab2 cor0
----
1663
2819
4043

query I rowsort
SELECT - ( col1 ) * - col1 FROM tab0 AS cor0 WHERE - col2 * - 2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT DISTINCT 82 + - + ( - CAST( NULL AS SIGNED ) ) - + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT 82 + - + ( - CAST ( NULL AS INTEGER ) ) - + col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 - - 23 FROM tab2
----
69
87
98

query I rowsort
SELECT col0 + + col2 * ( + col2 ) FROM tab2
----
1664
3439
575

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8648
SELECT * FROM tab0 WHERE col0 + - 24 NOT BETWEEN NULL AND - - 54 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8648
SELECT * FROM tab0 WHERE col0 + - 24 NOT BETWEEN NULL AND - - 54 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 + - col1 AS col0 FROM tab0 WHERE NOT + col0 > 40 * ( + - col1 )
----

query I rowsort
SELECT ALL 49 * + + col1 AS col0 FROM tab0
----
1029
3969
49

query I rowsort
SELECT + 28 + col2 FROM tab0
----
127
38
75

query I rowsort
SELECT ALL + col0 * - col1 * + col2 FROM tab0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) + - + 33 col0 FROM tab2 AS cor0
----
-108
-79
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
SELECT - + col1 AS col0, CAST( NULL AS SIGNED ) + 38 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-8654
SELECT - + col1 AS col0, CAST ( NULL AS INTEGER ) + 38 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT col2 / - - CAST( NULL AS SIGNED ) * + 32 * 84 * - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT col2 / - - CAST ( NULL AS INTEGER ) * + 32 * 84 * - - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8656
SELECT - col0 * col1 + - - col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1134
NULL
-1806
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8656
SELECT - col0 * col1 + - - col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1134
NULL
-1806
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8657
SELECT - col2 DIV + 15 AS col0 FROM tab1 AS cor0
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-8657
SELECT - col2 / + 15 AS col0 FROM tab1 AS cor0
----
-3
-4
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( col1 ) - - + 20 col2 FROM tab0 AS cor0
----
-1195
-1807
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col2 FROM tab0 cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col1 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT + 26 * + COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + 26 * + COUNT ( * ) FROM tab1
----
78

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col1 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 82 ) col2 FROM tab1
----
-82

query I rowsort
SELECT DISTINCT 0 * - + col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT ( col1 * + 25 ) NOT BETWEEN - col1 AND + - col1 / + - 49 * + - col0
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col1 * + 25 ) NOT BETWEEN - col1 AND + - col1 / + - 49 * + - col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND ( + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT IN ( 94 * + 47, + col1, + ( - col0 ), - col2 - + 36 + - 95, - + 20 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col1 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8669
SELECT DISTINCT - 26 * 49 + - 61 AS col2, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1335
3

skipif mysql # not compatible
query II rowsort label-8669
SELECT DISTINCT - 26 * 49 + - 61 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1335
3

query I rowsort
SELECT + 0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + 95 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT 85 + + COUNT( DISTINCT 5 ) AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-8672
SELECT 85 + + COUNT ( DISTINCT 5 ) AS col2 FROM tab2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT col1 + + - col1 DIV - - 98 + + 43 col0 FROM tab2
----
110
120
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8673
SELECT col1 + + - col1 / - - 98 + + 43 col0 FROM tab2
----
110
120
94

query I rowsort
SELECT - col0 + + - col1 + - col1 AS col0 FROM tab1
----
-185
-79
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL 16 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL 16 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - col2 - - col1 * col1 / col0 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 22 + - - col0 col0 FROM tab0 AS cor0
----
109
119
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT ALL 1 + 75 + - + ( - ( + CAST( NULL AS SIGNED ) ) ) / + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL 1 + 75 + - + ( - ( + CAST ( NULL AS INTEGER ) ) ) / + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 49 - col1 FROM tab1 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8680
SELECT ( + CAST( - ( - - COUNT( * ) ) AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8680
SELECT ( + CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 83 col2 FROM tab2
----
4233
5561
6391

query I rowsort
SELECT + col2 - 93 AS col1 FROM tab2
----
-35
-53
-70

query I rowsort
SELECT ALL - col1 * col1 - - col2 AS col1 FROM tab1
----
-100
-2141
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT - MAX( ALL - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT - MAX ( ALL - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0
----
10

query I rowsort
SELECT - ( + + col2 ) + - - col2 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - + ( + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT + MAX( col0 ) FROM tab0 AS cor0 WHERE + col1 + col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT + MAX ( col0 ) FROM tab0 AS cor0 WHERE + col1 + col1 >= NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, + col0 + - col1 AS col1 FROM tab2 cor0
----
23
-5
40
-13
58
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8690
SELECT ALL + - MIN( ALL - + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + - MIN ( ALL - + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL + SUM( + 7 ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL + SUM ( + 7 ) AS col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT + + 87 * col0 AS col1 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8693
SELECT MIN( ALL - + 75 ) DIV - + 37 + - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-8693
SELECT MIN ( ALL - + 75 ) / - + 37 + - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1
----
11

query I rowsort
SELECT DISTINCT + col1 * + ( - 21 ) FROM tab0
----
-1701
-21
-441

query I rowsort
SELECT ALL + col0 * + - col1 + + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT - + COUNT( + + col0 ) + - 56 AS col2 FROM tab2 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT - + COUNT ( + + col0 ) + - 56 AS col2 FROM tab2 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT 75 * - MAX( + + col2 ) AS col2 FROM tab0
----
-7425

skipif mysql # not compatible
query I rowsort label-8698
SELECT 75 * - MAX ( + + col2 ) AS col2 FROM tab0
----
-7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT DISTINCT - + col2 * - - 49 + - + ( + CAST( + ( 21 ) AS SIGNED ) ) * - col2 - - ( - - col2 ) + - col2 FROM tab2 AS cor0
----
-1120
-1624
-644

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - + col2 * - - 49 + - + ( + CAST ( + ( 21 ) AS INTEGER ) ) * - col2 - - ( - - col2 ) + - col2 FROM tab2 AS cor0
----
-1120
-1624
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT DISTINCT ( + + 93 ) + - + col1 DIV - + col0 + col0 AS col1 FROM tab1 AS cor0
----
144
178
184

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT ( + + 93 ) + - + col1 / - + col0 + col0 AS col1 FROM tab1 AS cor0
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - 70 + - COUNT( * ) + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 70 + - COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT - CAST( NULL AS SIGNED ) + - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT - CAST ( NULL AS INTEGER ) + - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + + ( 99 ) FROM tab2 AS cor0
----
22
32
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 50 + 64 col2 FROM tab2 AS cor0
----
-2486
-3286
-3786

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( ( - col1 * - + 27 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8706
SELECT - col2 + + - CAST( NULL AS DECIMAL ) / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT - col2 + + - CAST ( NULL AS REAL ) / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 - 69 AS col0 FROM tab1
----
-22
-55
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT ALL col2 + CAST( - 41 AS SIGNED ) FROM tab1
----
18
27
55

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL col2 + CAST ( - 41 AS INTEGER ) FROM tab1
----
18
27
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8709
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col0, - col1 AS col2 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col0, - col1 AS col2 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT DISTINCT ( - ( + + col0 ) ) + + 61 + col1 AS col1 FROM tab2 WHERE - col2 + + col2 + + col0 + - - ( + - col0 ) IS NULL
----

query I rowsort
SELECT ALL col1 * + + 7 - - col0 + col1 + + 18 FROM tab2
----
472
629
698

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT COUNT( * ) - + 84 AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8712
SELECT COUNT ( * ) - + 84 AS col0 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < - 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT ALL - 19 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - 19 / col2 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-93

query I rowsort
SELECT DISTINCT 62 * + 58 FROM tab2
----
3596

query II rowsort
SELECT + col0 AS col1, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab0 AS cor0
----
-24
-24
-24

query II rowsort
SELECT + col2, + 23 FROM tab1 AS cor0
----
59
23
68
23
96
23

query I rowsort
SELECT - + 13 * + col1 * + 86 FROM tab0 AS cor0
----
-1118
-23478
-90558

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - - COUNT( * ) * + SUM( col0 ) + + MIN( - - ( - - ( + col1 ) ) ) FROM tab1 AS cor0
----
686

skipif mysql # not compatible
query I rowsort label-8722
SELECT - - COUNT ( * ) * + SUM ( col0 ) + + MIN ( - - ( - - ( + col1 ) ) ) FROM tab1 AS cor0
----
686

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT DISTINCT + col1 DIV + + col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT + col1 / + + col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 83 IS NULL
----

query II rowsort
SELECT - col1, col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8726
SELECT + MAX( - CAST( col1 AS SIGNED ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8726
SELECT + MAX ( - CAST ( col1 AS INTEGER ) ) FROM tab1
----
-5

query II rowsort
SELECT col1, col0 + + + col1 * + 94 FROM tab0
----
1
191
21
2061
81
7629

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT col2 DIV - 40 AS col1 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8728
SELECT col2 / - 40 AS col1 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT DISTINCT + 56 + + + 49 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT + 56 + + + 49 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8731
SELECT * FROM tab2 AS cor0 WHERE CAST( 32 AS DECIMAL ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8731
SELECT * FROM tab2 AS cor0 WHERE CAST ( 32 AS REAL ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8732
SELECT - COUNT( * ) DIV - - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8732
SELECT - COUNT ( * ) / - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + + col1 * - 84 + + + col2 AS col0 FROM tab2 AS cor0
----
-4261
-5570
-6428

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8735
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 40 AND 27 + - CAST( NULL AS SIGNED ) + - 29
----

skipif mysql # not compatible
query III rowsort label-8735
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 40 AND 27 + - CAST ( NULL AS INTEGER ) + - 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT + COUNT( * ) + + 50 AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT + COUNT ( * ) + + 50 AS col1 FROM tab1 AS cor0
----
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 21 * - + 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 / - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * + 67 * + 48 * + 36 - - + col0 FROM tab0
----
11461921
1157847
5441487

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT - COUNT( + ( + + col2 ) ) - + + 20 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-8740
SELECT - COUNT ( + ( + + col2 ) ) - + + 20 FROM tab1
----
-23

query II rowsort
SELECT DISTINCT - 64, + col2 AS col1 FROM tab0
----
-64
10
-64
47
-64
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT ALL - CAST( NULL AS SIGNED ) * 80 * 66 + - col2 + + 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL - CAST ( NULL AS INTEGER ) * 80 * 66 + - col2 + + 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > 19
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE + col1 * + col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT ALL col2 * col0 + 61 * - col0 AS col1 FROM tab2 WHERE col2 / CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL col2 * col0 + 61 * - col0 AS col1 FROM tab2 WHERE col2 / CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 IN ( + 19 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + 54 + ( COUNT( * ) ) * 33 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-8747
SELECT + 54 + ( COUNT ( * ) ) * 33 FROM tab2
----
153

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( ( col2 ) * + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8749
SELECT + CAST( col0 AS DECIMAL ) col2 FROM tab0 WHERE + 80 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8749
SELECT + CAST ( col0 AS REAL ) col2 FROM tab0 WHERE + 80 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT ALL ( 48 ) DIV + col1 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL ( 48 ) / + col1 + + col0 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col1 < ( 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT ALL - ( - col2 ) + - 30 DIV col1 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
53
68
94

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - ( - col2 ) + - 30 / col1 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
53
68
94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT + MAX( col0 ) FROM tab1 WHERE 42 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-8756
SELECT + MAX ( col0 ) FROM tab1 WHERE 42 IS NOT NULL
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab0 WHERE NOT + col1 BETWEEN - 77 * - 69 AND NULL
----
48
48
48

query I rowsort
SELECT + ( - 49 ) FROM tab1
----
-49
-49
-49

query I rowsort
SELECT - ( + col0 ) + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + MAX( col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8760
SELECT + MAX ( col0 ) AS col0 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * - col0 col1 FROM tab1 WHERE NOT 37 * + 28 IN ( + col1 )
----
-1326
-2210
-2366

query I rowsort
SELECT ALL 48 - - col1 AS col2 FROM tab1
----
53
62
95

query I rowsort
SELECT DISTINCT 93 + + col1 AS col1 FROM tab0
----
114
174
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT 6 * MIN( ALL 26 DIV col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT 6 * MIN ( ALL 26 / col0 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - col0 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * col1 + + ( + 24 ) FROM tab2 AS cor0
----
2625
4513
5953

query I rowsort
SELECT ALL AVG ( DISTINCT - 30 ) AS col2 FROM tab0 AS cor0 WHERE - 83 IS NULL
----
NULL

query I rowsort
SELECT ALL - 93 + 91 FROM tab2 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL 78 + - 43 * - 28 AS col0 FROM tab2 AS cor0
----
1282
1282
1282

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + 58 * ( COUNT( * ) * - COUNT( * ) ) FROM tab2 cor0
----
-522

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 58 * ( COUNT ( * ) * - COUNT ( * ) ) FROM tab2 cor0
----
-522

query I rowsort
SELECT + 24 * + 73 AS col1 FROM tab2
----
1752
1752
1752

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT SUM( ALL + 50 ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT SUM ( ALL + 50 ) FROM tab0
----
150

query I rowsort
SELECT + col1 - + col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( 48 / 93 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT + COUNT( * ) * 26 col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8774
SELECT + COUNT ( * ) * 26 col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL 21 + ( ( 69 ) ) * - 19 AS col1 FROM tab1 AS cor0
----
-1290
-1290
-1290

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + ( + col2 ) + 9
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8777
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( + 33 AS DECIMAL ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-8777
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( + 33 AS REAL ) + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT DISTINCT + + CAST( 92 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + + CAST ( 92 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT + ( col0 ) * - col0 + col1 FROM tab1 cor0
----
-2587
-7220
-8234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - 28 col1 FROM tab2 AS cor0
----
-105
-79
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + COUNT( * ) + - 56 AS col2 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8781
SELECT + COUNT ( * ) + - 56 AS col2 FROM tab1 AS cor0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT + 39 + CAST( COUNT( * ) AS SIGNED ) * 80 AS col1 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8782
SELECT + 39 + CAST ( COUNT ( * ) AS INTEGER ) * 80 AS col1 FROM tab2 AS cor0
----
279

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT COUNT( * ) + - COUNT( 38 ) * 48 AS col0 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8784
SELECT COUNT ( * ) + - COUNT ( 38 ) * 48 AS col0 FROM tab0 AS cor0
----
-141

query I rowsort
SELECT ALL 19 + 81 * col2 FROM tab2 AS cor0
----
1882
3259
4717

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + MIN( + 66 ) AS col2 FROM tab0 WHERE NOT + 19 / + col1 - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT + MIN ( + 66 ) AS col2 FROM tab0 WHERE NOT + 19 / + col1 - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 61 * - 20 * + 80 AS col1 FROM tab2
----
97600

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT ( - col2 ) >= ( 2 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT DISTINCT - CAST( - + 39 AS SIGNED ) AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT - CAST ( - + 39 AS INTEGER ) AS col2 FROM tab2
----
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT CAST( NULL AS SIGNED ) * + + 58 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT CAST ( NULL AS INTEGER ) * + + 58 * + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 / col0 IS NOT NULL
----

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - ( ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8794
SELECT - ( ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT ( ( COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT ( ( COUNT ( * ) ) ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col1 AS col0, + 3 + + col1 - 70 FROM tab0
----
1
-66
21
-46
81
14

query I rowsort
SELECT + + 42 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + + COUNT( * ) * + 36 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
324

skipif mysql # not compatible
query I rowsort label-8798
SELECT + + COUNT ( * ) * + 36 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
324

query I rowsort
SELECT DISTINCT + + 49 * col0 AS col2 FROM tab1 AS cor0
----
2499
4165
4459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8800
SELECT DISTINCT - + 1 * COUNT( * ) DIV 90 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - + 1 * COUNT ( * ) / 90 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 59 + + - col1 + col2 AS col1 FROM tab0 AS cor0
----
157
25
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT COUNT( ALL 48 ) + - 75 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8802
SELECT COUNT ( ALL 48 ) + - 75 FROM tab2 cor0
----
-72

query I rowsort
SELECT - 97 * - 35 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 * 21 * + 20 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT + SUM( ALL CAST( + 68 AS SIGNED ) ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-8804
SELECT + SUM ( ALL CAST ( + 68 AS INTEGER ) ) FROM tab2 AS cor0
----
204

query I rowsort
SELECT + ( + + col2 ) * - - 15 FROM tab1 AS cor0
----
1020
1440
885

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + ( - 5 ) AS col1 FROM tab1 AS cor0
----
255
425
455

query I rowsort
SELECT DISTINCT + - col2 * col0 + - 79 + col2 * col2 AS col1 FROM tab1 AS cor0
----
-1613
-1643
4241

query I rowsort
SELECT DISTINCT ( col1 ) * + - col2 * - col1 + ( - col2 ) FROM tab0 cor0
----
0
308320
4400

query III rowsort
SELECT * FROM tab2 WHERE - 54 >= + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 > col1
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - col0 * - - col2 * - col0 AS col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT ALL col1 * - - 78 FROM tab0
----
1638
6318
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8814
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8814
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + 85 >= ( - + col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT + 47 * + + 71 + + 77 + - COUNT( * ) FROM tab0 AS cor0
----
3411

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + 47 * + + 71 + + 77 + - COUNT ( * ) FROM tab0 AS cor0
----
3411

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( col0 + + ( 50 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - 37 + COUNT( * ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - 37 + COUNT ( * ) FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT + 19 * - COUNT( * ) AS col2 FROM tab0 WHERE NOT + + col0 * - + 16 + + ( + col0 ) NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + 19 * - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + + col0 * - + 16 + + ( + col0 ) NOT IN ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 6 col1 FROM tab1
----
-354
-408
-576

query I rowsort
SELECT ALL col1 + - ( 82 ) + - - col0 * + 68 FROM tab0
----
1019
5855
6515

query I rowsort
SELECT 80 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8823
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT col1 DIV + 67 - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-80

skipif mysql # not compatible
query I rowsort label-8824
SELECT col1 / + 67 - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8825
SELECT COUNT( * ) * + - SUM( ALL - + 92 ) + + 45 DIV - 62 AS col2 FROM tab0 AS cor0 WHERE 68 IS NOT NULL
----
828

skipif mysql # not compatible
query I rowsort label-8825
SELECT COUNT ( * ) * + - SUM ( ALL - + 92 ) + + 45 / - 62 AS col2 FROM tab0 AS cor0 WHERE 68 IS NOT NULL
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT ALL - CAST( - 93 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
107
140
98

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - CAST ( - 93 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
107
140
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8828
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8828
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL - + 2 + + COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8829
SELECT ALL - + 2 + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, col0 * + ( + col1 ) col2 FROM tab2
----
-51
2346
-67
5025
-77
4928

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col1 ) NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 55 + col0, - 70 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL + MAX( ALL - - 87 ) AS col1 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + MAX ( ALL - - 87 ) AS col1 FROM tab2 cor0
----
87

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, col0 + col1 FROM tab2 AS cor0
----
51
97
67
142
77
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL + - COUNT( * ) * - + MAX( col1 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + - COUNT ( * ) * - + MAX ( col1 ) FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0, col2, - + col0 + - col0 + - col2 * - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0, col2, - + col0 + - col0 + - col2 * - 80 )
----
0

query I rowsort
SELECT DISTINCT - col1 + + ( + - 39 ) FROM tab0 AS cor0
----
-120
-40
-60

query I rowsort
SELECT - + ( + col2 ) * col0 + - - col1 + - + col2 FROM tab0 AS cor0
----
-671
-859
-9701

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 * + 52 + - col0 + + ( + 97 ) * + col2 AS col2 FROM tab1 AS cor0
----
10058
11237
11913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8842
SELECT + - CAST( NULL AS SIGNED ) + - 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT + - CAST ( NULL AS INTEGER ) + - 44 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 29 + - col1, + col0 FROM tab1 AS cor0
----
-18
91
15
51
24
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 9 * - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT col1 DIV col2 + - + col0 - 45 AS col0 FROM tab1
----
-130
-136
-96

skipif mysql # not compatible
query I rowsort label-8845
SELECT col1 / col2 + - + col0 - 45 AS col0 FROM tab1
----
-130
-136
-96

query I rowsort
SELECT - col2 + col2 + - + col1 AS col2 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 17 + - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 * + col0 + - col0 AS col2 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT DISTINCT col2 * - 69 * 22 * + - col2 FROM tab2
----
2428800
5106552
803022

query I rowsort
SELECT - 64 + 6 * - col2 AS col0 FROM tab0
----
-124
-346
-658

query I rowsort
SELECT ALL - col1 * - + 39 AS col0 FROM tab0
----
3159
39
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( + col2 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( + col2 ) >= NULL
----

query I rowsort
SELECT - 78 + - + col0 AS col0 FROM tab2
----
-124
-142
-153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8854
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV + col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT CAST ( col0 AS INTEGER ) / + col0 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 <> - 42
----

query I rowsort
SELECT col2 * col2 - col2 - col1 - - col2 FROM tab0 AS cor0
----
2128
79
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL 37 * - COUNT( * ) - + - 54 AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL 37 * - COUNT ( * ) - + - 54 AS col2 FROM tab2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8858
SELECT + 90 DIV - col0 + - + col0 + - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1220
-3145
-3962

skipif mysql # not compatible
query I rowsort label-8858
SELECT + 90 / - col0 + - + col0 + - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1220
-3145
-3962

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT MAX( DISTINCT + + 87 ) AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8859
SELECT MAX ( DISTINCT + + 87 ) AS col1 FROM tab0 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8860
SELECT ALL - ( - col1 ) DIV 19 FROM tab0 cor0 WHERE NOT + col1 - + col0 + + 99 > + col0
----
0
1

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - ( - col1 ) / 19 FROM tab0 cor0 WHERE NOT + col1 - + col0 + + 99 > + col0
----
0
1

query I rowsort
SELECT DISTINCT - - ( - 18 ) * + col0 + + 8 * - 18 / + col1 + col0 + 86 * 29 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - - col2 IN ( - 57 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN col1 AND - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8864
SELECT ALL + 92 DIV - COUNT( * ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + 92 / - COUNT ( * ) AS col1 FROM tab0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT + ( - COUNT( * ) ) DIV - 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT + ( - COUNT ( * ) ) / - 97 FROM tab0
----
0

query I rowsort
SELECT ALL 89 * + - col2 FROM tab0
----
-4183
-8811
-890

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 * + 51 FROM tab2
----
2346
3264
3825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33 col2, - col2 col2 FROM tab0 AS cor0
----
33
-10
33
-47
33
-99

query I rowsort
SELECT ALL + col2 / - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 * + 33 AND + - col0 * + + 85 + col2 - - col0 + + - col2 * col2 - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col1 * - - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 * - col1 AND NULL
----

query I rowsort
SELECT - - col2 + - col0 * - + col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT ALL + 5 + - + col0 * + col1 AS col0 FROM tab2 AS cor0
----
-2341
-4923
-5020

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> col0
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> col0
----
0

query I rowsort
SELECT DISTINCT 56 * + 63 + - col2 AS col1 FROM tab1 AS cor0
----
3432
3460
3469

query I rowsort
SELECT ALL + + 59 * - col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

query I rowsort
SELECT + col2 / - col2 + - - col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) IN ( + col1 / - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - - col0, col0 )
----

query I rowsort
SELECT ALL + 34 * - col1 - + col1 FROM tab1 AS cor0 WHERE + col2 * - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT DISTINCT + + CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8882
SELECT ALL + col1 DIV - col1 + - 94 AS col1 FROM tab0 cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + col1 / - col1 + - 94 AS col1 FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT ALL COUNT( * ) * + - 64 FROM tab1 WHERE NOT + CAST( col0 AS SIGNED ) IS NULL
----
-192

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL COUNT ( * ) * + - 64 FROM tab1 WHERE NOT + CAST ( col0 AS INTEGER ) IS NULL
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE 79 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE 79 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8885
SELECT - col1 DIV - CAST( + 7 AS SIGNED ) + col2 + - ( + col2 ) FROM tab0
----
0
11
3

skipif mysql # not compatible
query I rowsort label-8885
SELECT - col1 / - CAST ( + 7 AS INTEGER ) + col2 + - ( + col2 ) FROM tab0
----
0
11
3

query II rowsort
SELECT col0 + + - col0 + 82, + col2 FROM tab1
----
82
59
82
68
82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT 57 + + COUNT( * ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8887
SELECT 57 + + COUNT ( * ) FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT - 26 / ( CAST( NULL AS SIGNED ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8889
SELECT - 26 / ( CAST ( NULL AS INTEGER ) ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 col1, 54 FROM tab2
----
-26
54
-26
54
-26
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8891
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 + - 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 8 ) >= NULL
----

query I rowsort
SELECT - AVG ( DISTINCT ( + - col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col2 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT DISTINCT COUNT( * ) * SUM( col2 ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
1089

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT COUNT ( * ) * SUM ( col2 ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
1089

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 5 <> NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL = 26
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 60 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT - MAX( DISTINCT - + 33 ) FROM tab0 WHERE col0 * - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - MAX ( DISTINCT - + 33 ) FROM tab0 WHERE col0 * - - col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8900
SELECT DISTINCT col1 DIV col1 * 76 AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT col1 / col1 * 76 AS col0 FROM tab0
----
76

query I rowsort
SELECT DISTINCT - 99 * + 87 FROM tab2
----
-8613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col1 FROM tab0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + + 8 FROM tab1 WHERE - - 57 IS NOT NULL
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( - col0 ) * - col1 + col1 col2 FROM tab1 AS cor0
----
-36120
-36400
-389160

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT MIN( 8 ) FROM tab0 AS cor0 WHERE NOT 88 IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT MIN ( 8 ) FROM tab0 AS cor0 WHERE NOT 88 IS NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 * 57 + ( - 22 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 * 57 + ( - 22 ) IS NOT NULL
----
-3

query I rowsort
SELECT + 45 FROM tab2 AS cor0 WHERE NOT col1 * - 91 IS NULL
----
45
45
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8908
SELECT + COUNT( * ) DIV - 14 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT + COUNT ( * ) / - 14 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8909
SELECT DISTINCT - 9 DIV + 69 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8909
SELECT DISTINCT - 9 / + 69 col2 FROM tab2
----
0

query I rowsort
SELECT ALL + ( - - 43 ) FROM tab0 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT - 93 * MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
-9207

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT - 93 * MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
-9207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8912
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 8 AND - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8912
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 8 AND - CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT ALL + - 35 + - col1 AS col0 FROM tab0 AS cor0
----
-116
-36
-56

query I rowsort
SELECT - col2 + - + 48 + - col1 AS col2 FROM tab0 AS cor0
----
-148
-176
-79

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT ALL - col1 DIV + - 64 + col2 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - col1 / + - 64 + col2 FROM tab0
----
10
48
99

query I rowsort
SELECT + col0 * + ( - 67 ) * + col1 + ( - 76 ) FROM tab0
----
-122485
-6575
-81481

query II rowsort
SELECT + col0 AS col1, + col1 * + 34 AS col1 FROM tab1
----
51
476
85
170
91
1598

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT ALL SUM( 48 ), 49 AS col0 FROM tab0
----
144
49

skipif mysql # not compatible
query II rowsort label-8919
SELECT ALL SUM ( 48 ), 49 AS col0 FROM tab0
----
144
49

query II rowsort
SELECT DISTINCT - col1 + + ( - - ( + 52 ) ), col1 FROM tab2
----
-15
67
-25
77
1
51

query II rowsort
SELECT ALL + col1 AS col1, 44 FROM tab0
----
1
44
21
44
81
44

query I rowsort
SELECT - 66 AS col0 FROM tab0 cor0 WHERE NULL IN ( col2, col1, + - col0 )
----

query I rowsort
SELECT - 89 - - 14 - - 43 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT 43 AS col0, + COUNT( - - 51 ) AS col1 FROM tab0 AS cor0
----
43
3

skipif mysql # not compatible
query II rowsort label-8924
SELECT 43 AS col0, + COUNT ( - - 51 ) AS col1 FROM tab0 AS cor0
----
43
3

query I rowsort
SELECT DISTINCT + ( - + 12 ) * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
1131
1261
195

query I rowsort
SELECT + + col2 * - 56 AS col2 FROM tab0 AS cor0
----
-2632
-5544
-560

query I rowsort
SELECT col1 * col2 * - - 34 AS col0 FROM tab0 AS cor0
----
129438
3366
7140

query I rowsort
SELECT + - 30 * + 94 AS col0 FROM tab0 AS cor0
----
-2820
-2820
-2820

query II rowsort
SELECT DISTINCT col1 * col0 AS col1, - 38 * - col0 FROM tab1 AS cor0
----
425
3230
4277
3458
714
1938

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN + 71 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8931
SELECT DISTINCT * FROM tab0 WHERE NULL > - 36 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8931
SELECT DISTINCT * FROM tab0 WHERE NULL > - 36 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL - 71 + COUNT( * ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - 71 + COUNT ( * ) FROM tab1
----
-68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + 98 + + 90 FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL - - CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL - - CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + + ( - col1 ) + - 54 AS col1 FROM tab2 AS cor0 WHERE col0 * + col2 - + col2 IS NOT NULL
----
-105
-121
-131

query II rowsort
SELECT - 50 + col0 AS col0, - col1 AS col0 FROM tab2
----
-4
-51
14
-77
25
-67

query I rowsort
SELECT DISTINCT - 98 - + col0 + - col2 AS col0 FROM tab1 WHERE NOT + 85 * ( - col2 ) + ( - col0 ) = 66
----
-242
-245
-257

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT 60 + - col1 - 50 DIV - - col1 + col2 FROM tab1
----
104
139
80

skipif mysql # not compatible
query I rowsort label-8939
SELECT 60 + - col1 - 50 / - - col1 + col2 FROM tab1
----
104
139
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT COUNT( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8940
SELECT COUNT ( DISTINCT - col1 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + 26 * - COUNT( DISTINCT + ( - 67 ) ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8941
SELECT + 26 * - COUNT ( DISTINCT + ( - 67 ) ) AS col2 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - 40 * + col0 + col2 FROM tab1 AS cor0
----
-1944
-3341
-3572

query I rowsort
SELECT ALL 68 + col2 AS col1 FROM tab2
----
108
126
91

query I rowsort
SELECT ALL ( - ( 33 ) ) - - 54 AS col2 FROM tab1
----
21
21
21

query I rowsort
SELECT 72 + + - 21 AS col1 FROM tab2
----
51
51
51

query I rowsort
SELECT + col2 + - 48 AS col1 FROM tab0
----
-1
-38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT COUNT( * ) + + + COUNT( * ) + + - 20 AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-8947
SELECT COUNT ( * ) + + + COUNT ( * ) + + - 20 AS col2 FROM tab1
----
-14

query I rowsort
SELECT col1 + 56 + + 54 + + 29 * - 62 AS col2 FROM tab2
----
-1611
-1621
-1637

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT 13 + - COUNT( * ) AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8950
SELECT 13 + - COUNT ( * ) AS col2 FROM tab2
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 + + ( - col1 ) + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab0 AS cor0 WHERE - ( - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT MIN( ALL + col0 ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8953
SELECT DISTINCT MIN ( ALL + col0 ) col1 FROM tab1
----
51

query II rowsort
SELECT col1, 56 * - + col1 FROM tab1
----
14
-784
47
-2632
5
-280

query I rowsort
SELECT - 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL + 2 * col1 FROM tab1 cor0
----
10
28
94

query I rowsort
SELECT + col0 + - 15 + + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + MAX( - col1 ) * - COUNT( * ) * SUM( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
990

skipif mysql # not compatible
query I rowsort label-8958
SELECT + MAX ( - col1 ) * - COUNT ( * ) * SUM ( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
990

query I rowsort
SELECT - col2 + + 34 FROM tab0
----
-13
-65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - COUNT( * ) * + 51 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - COUNT ( * ) * + 51 FROM tab1
----
-153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( 92 ) + col0 > NULL
----

query II rowsort
SELECT ALL - col1 + + col2, + col2 FROM tab2
----
-28
23
-37
40
-9
58

query I rowsort
SELECT ALL 21 AS col2 FROM tab0 AS cor0 WHERE NOT ( + + col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8964
SELECT - CAST( - col0 AS SIGNED ), + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-8964
SELECT - CAST ( - col0 AS INTEGER ), + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - 79 * - - col1 + - + 53 AS col1 FROM tab1 AS cor0
----
-1159
-3766
-448

query I rowsort
SELECT ALL col2 * - + 75 FROM tab1
----
-4425
-5100
-7200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( + 42 ) / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL OR NULL IS NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 50 * + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8970
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT ALL col0 DIV + 1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL col0 / + 1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL col2 + - 25 AS col2 FROM tab2 AS cor0
----
-2
15
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8973
SELECT DISTINCT - 50, + COUNT( * ) AS col1 FROM tab0 cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-8973
SELECT DISTINCT - 50, + COUNT ( * ) AS col1 FROM tab0 cor0
----
-50
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8974
SELECT * FROM tab0 cor0 WHERE CAST( - + col2 AS SIGNED ) IN ( - ( - col0 ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-8974
SELECT * FROM tab0 cor0 WHERE CAST ( - + col2 AS INTEGER ) IN ( - ( - col0 ), - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - col2 + + + 30 AS col2 FROM tab1 cor0
----
-29
-38
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT CAST( NULL AS SIGNED ) + ( - + 67 ) - - col1 / + + 78 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT CAST ( NULL AS INTEGER ) + ( - + 67 ) - - col1 / + + 78 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8979
SELECT CAST( NULL AS SIGNED ) * - - col0, + 62 AS col0 FROM tab1
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
query II rowsort label-8979
SELECT CAST ( NULL AS INTEGER ) * - - col0, + 62 AS col0 FROM tab1
----
NULL
62
NULL
62
NULL
62

query I rowsort
SELECT DISTINCT - 10 + - col1 FROM tab2
----
-61
-77
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-8981
SELECT DISTINCT + col1 DIV - 69 AS col1, col0 + - col1 FROM tab0
----
-1
-66
0
66
0
96

skipif mysql # not compatible
query II rowsort label-8981
SELECT DISTINCT + col1 / - 69 AS col1, col0 + - col1 FROM tab0
----
-1
-66
0
66
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8982
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( - + col0, CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8982
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( - + col0, CAST ( - col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - - 58 ) AS col1, col0 col1 FROM tab0 AS cor0
----
58
15
58
87
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + col1 ) col1, 18 + - ( - - col1 ) + - - col1 + - + col1 * + 79 AS col2 FROM tab0 AS cor0
----
1
-61
21
-1641
81
-6381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT DISTINCT - - 38 * 23 * - + ( CAST( NULL AS SIGNED ) ) + col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT - - 38 * 23 * - + ( CAST ( NULL AS INTEGER ) ) + col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT DISTINCT MAX( ALL + ( - 25 ) ) col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8986
SELECT DISTINCT MAX ( ALL + ( - 25 ) ) col0 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT + + ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT + + ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ( + 16 ) AS col1 FROM tab1
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col2 col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + col0 AS col1, ( - col1 ) FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-8991
SELECT - + col1 AS col1, - 59 DIV 42 AS col0 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-8991
SELECT - + col1 AS col1, - 59 / 42 AS col0 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

query II rowsort
SELECT - col2, 32 AS col2 FROM tab0 AS cor0
----
-10
32
-47
32
-99
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL COUNT( - 58 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL COUNT ( - 58 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT MAX( DISTINCT + 25 ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8994
SELECT MAX ( DISTINCT + 25 ) AS col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT ALL + ( 15 ) AS col0 FROM tab2
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT - MIN( - ( + + 51 ) ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT - MIN ( - ( + + 51 ) ) FROM tab0
----
51

query I rowsort
SELECT - + col0 * - 99 FROM tab1 WHERE - - col2 / ( + + 81 ) + + 53 + 65 / - col0 * - - col2 + 26 + col1 NOT BETWEEN NULL AND + ( - 74 )
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - MIN( - + col1 ) * - 20 FROM tab0
----
-1620

skipif mysql # not compatible
query I rowsort label-8998
SELECT - MIN ( - + col1 ) * - 20 FROM tab0
----
-1620

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT ALL - 61 DIV - col1 + 92 FROM tab1
----
104
93
96

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL - 61 / - col1 + 92 FROM tab1
----
104
93
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> col1 - 0 * + col2 + - ( + col0 ) / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - COUNT( * ) + SUM( ALL col2 ) FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-9002
SELECT - COUNT ( * ) + SUM ( ALL col2 ) FROM tab1 AS cor0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT 37 * - COUNT( * ) FROM tab2 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT 37 * - COUNT ( * ) FROM tab2 cor0
----
-111

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 80 = + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9005
SELECT ALL col2 DIV col2 AS col0, ( - col0 ) FROM tab2
----
1
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-9005
SELECT ALL col2 / col2 AS col0, ( - col0 ) FROM tab2
----
1
-46
1
-64
1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT 93 + - + COUNT( * ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9006
SELECT 93 + - + COUNT ( * ) AS col1 FROM tab1
----
90

query I rowsort
SELECT - + 91 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < 65 * + - 1
----

query I rowsort
SELECT DISTINCT - col0 - + ( 65 ) FROM tab1
----
-116
-150
-156

query I rowsort
SELECT DISTINCT + 71 * - 43 FROM tab0
----
-3053

query I rowsort
SELECT ALL - + 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9012
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 41 > + CAST( NULL AS SIGNED ) - col2
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 41 > + CAST ( NULL AS INTEGER ) - col2
----
0

query I rowsort
SELECT DISTINCT - col1 * + 94 * + + col1 + - 28 + - col0 AS col2 FROM tab0 AS cor0
----
-219
-41569
-616777

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) * ( - col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT - + col1 + - 86 - col2 - - col0 * + col2 AS col1, 89 FROM tab1 AS cor0
----
4700
89
4865
89
5987
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 61 * - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 61 * - col0 IS NULL
----
0

query I rowsort
SELECT ( - 70 ) AS col2 FROM tab0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT ALL 88 * - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL 88 * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - - 25 IN ( - 33, + col2, col1 * + col1, - - col0 + + + 61 - col1 * 78 )
----
-14
-47

query I rowsort
SELECT + ( - - 73 ) AS col2 FROM tab2
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9021
SELECT DISTINCT + col2 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9021
SELECT DISTINCT + col2 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL - 85 * - col1 AS col0 FROM tab2 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT + ( - - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT 99 * - + 5 + + - col2 IS NOT NULL )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( - - 52 ) col0 FROM tab2
----
2392
3328
3900

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + - col0 NOT IN ( col0, ( - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 64 col2 FROM tab1 AS cor0 WHERE 28 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 29 - - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 94
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <= + + col0
----

query I rowsort
SELECT ( - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 70 col0 FROM tab1 AS cor0
----
121
155
161

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 + - 54 FROM tab0 AS cor0
----
-33
-53
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9035
SELECT ALL + MAX( - - 12 ) + CAST( NULL AS DECIMAL ) + MIN( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + MAX ( - - 12 ) + CAST ( NULL AS REAL ) + MIN ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( - 93, 3 * + col0 )
----

query I rowsort
SELECT 39 - - col0 FROM tab1
----
124
130
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL + MAX( CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9038
SELECT ALL + MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 - 39 AS col0 FROM tab2 AS cor0 WHERE + 77 NOT BETWEEN NULL AND ( + 69 * - col2 + - col0 )
----
12
28
38

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 49 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - MIN( ALL col0 ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - MIN ( ALL col0 ) AS col0 FROM tab2 cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT - ( + 36 ) + + 15 - col0 DIV col0 FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-9042
SELECT - ( + 36 ) + + 15 - col0 / col0 FROM tab1 AS cor0
----
-22
-22
-22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 = - 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9044
SELECT + + CAST( NULL AS SIGNED ) + - col2 AS col0, ( + - col2 ) + 51 + + CAST( NULL AS SIGNED ) * - ( - + 89 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9044
SELECT + + CAST ( NULL AS INTEGER ) + - col2 AS col0, ( + - col2 ) + 51 + + CAST ( NULL AS INTEGER ) * - ( - + 89 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ( - - 6 ) AS col2 FROM tab2 cor0
----
6
6
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9046
SELECT + 47 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9046
SELECT + 47 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * - 36 AS col2 FROM tab0 AS cor0
----
-3132
-3492
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, ( - 80 ) FROM tab2 AS cor0
----
23
-80
40
-80
58
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT DISTINCT - MIN( - 75 ) col2, + 31 + 87 + 78 FROM tab0
----
75
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9049
SELECT DISTINCT - MIN ( - 75 ) col2, + 31 + 87 + 78 FROM tab0
----
75
196

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL = col2
----
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL = col2
----
0

query II rowsort
SELECT ALL - col0 * - col2 AS col1, - ( + col1 ) - - col0 AS col1 FROM tab1
----
4896
37
5015
80
6188
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 + - col1 )
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col0 + - + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9056
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND ( col2 ) * - 40 - - - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9056
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND ( col2 ) * - 40 - - - CAST ( + - col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9057
SELECT + 53 + + col0 DIV col1 AS col1, - 11 + - - col2 AS col2 FROM tab0 AS cor0
----
150
88
53
36
57
-1

skipif mysql # not compatible
query II rowsort label-9057
SELECT + 53 + + col0 / col1 AS col1, - 11 + - - col2 AS col2 FROM tab0 AS cor0
----
150
88
53
36
57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT + 56 + - COUNT( * ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9058
SELECT + 56 + - COUNT ( * ) FROM tab2 AS cor0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9059
SELECT + CAST( col0 AS DECIMAL ) * ( + 58 ) / - CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9059
SELECT + CAST ( col0 AS REAL ) * ( + 58 ) / - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 3 + - - col2 <> NULL
----

query II rowsort
SELECT DISTINCT - + 46, col0 FROM tab1 cor0
----
-46
51
-46
85
-46
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 * + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + + col2 * - + col2 FROM tab1
----
-3486
-4671
-9230

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT - MIN( DISTINCT - 90 ) col2 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9065
SELECT DISTINCT - MIN ( DISTINCT - 90 ) col2 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT CAST( + 7 AS SIGNED ) * - 88 FROM tab0
----
-616
-616
-616

skipif mysql # not compatible
query I rowsort label-9066
SELECT CAST ( + 7 AS INTEGER ) * - 88 FROM tab0
----
-616
-616
-616

query I rowsort
SELECT + 30 - + col1 + col1 * + + col2 + - + 82 FROM tab2
----
1070
2951
3767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT 4 + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9068
SELECT 4 + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
5

query I rowsort
SELECT + 96 + + col2 AS col2 FROM tab0
----
106
143
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9070
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - + col0 IN ( - col1 * + 21, col1 )
----

skipif mysql # not compatible
query III rowsort label-9070
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - + col0 IN ( - col1 * + 21, col1 )
----

query I rowsort
SELECT DISTINCT col0 + + col2 - col1 * + col0 * - + ( - col2 ) FROM tab1 AS cor0
----
-24931
-290677
-68397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + col1 + + + col0 col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT COUNT( * ) * - 22 FROM tab1 cor0 WHERE ( NOT - + col1 + + - ( 21 ) IS NULL )
----
-66

skipif mysql # not compatible
query I rowsort label-9073
SELECT COUNT ( * ) * - 22 FROM tab1 cor0 WHERE ( NOT - + col1 + + - ( 21 ) IS NULL )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT ALL + ( + col0 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + ( + col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 45 AS col2 FROM tab1
----
104
113
141

query I rowsort
SELECT + - ( col1 ) AS col0 FROM tab1 WHERE + 21 IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col0 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT + CAST( - 0 AS SIGNED ) * - + 1 * col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT + CAST ( - 0 AS INTEGER ) * - + 1 * col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT + 23 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9079
SELECT + 23 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 52 * - col2 IS NOT NULL
----

query I rowsort
SELECT 67 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
67
67
67

query III rowsort
SELECT * FROM tab1 cor0 WHERE - + col0 IS NOT NULL AND - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9084
SELECT ALL + 83 AS col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-9084
SELECT ALL + 83 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
83
NULL
83
NULL
83
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL + ( + - ( - CAST( COUNT( * ) AS SIGNED ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + ( + - ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9086
SELECT col0 DIV + col1 AS col2, 52 AS col1 FROM tab1
----
1
52
17
52
3
52

skipif mysql # not compatible
query II rowsort label-9086
SELECT col0 / + col1 AS col2, 52 AS col1 FROM tab1
----
1
52
17
52
3
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT - CAST( + - 27 AS SIGNED ) AS col0 FROM tab2
----
27
27
27

skipif mysql # not compatible
query I rowsort label-9087
SELECT - CAST ( + - 27 AS INTEGER ) AS col0 FROM tab2
----
27
27
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + 26 / - ( + ( + 25 ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9089
SELECT - 55 DIV - COUNT( * ) + - MAX( - - col1 ) AS col0 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 55 / - COUNT ( * ) + - MAX ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-59

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query I rowsort
SELECT col1 * col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT + 68 * 34 AS col1 FROM tab2 WHERE - ( 17 ) / col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT col1 - col0 DIV 54 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
20
81

skipif mysql # not compatible
query I rowsort label-9093
SELECT col1 - col0 / 54 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
20
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT ALL + CAST( + 9 AS SIGNED ) * - 93 * + - col2 AS col2 FROM tab0 AS cor0
----
39339
82863
8370

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL + CAST ( + 9 AS INTEGER ) * - 93 * + - col2 AS col2 FROM tab0 AS cor0
----
39339
82863
8370

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 + ( + 79 ) * - + col1 AS col1 FROM tab1 AS cor0
----
-1202
-3781
-454

query I rowsort
SELECT ALL ( - - 31 ) + - 61 - 36 AS col2 FROM tab0 AS cor0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * - col1 + col0 col0 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT DISTINCT col2 * 45 + - 58 FROM tab0 AS cor0
----
2057
392
4397

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT SUM( DISTINCT + 39 ) + + + 10 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9100
SELECT SUM ( DISTINCT + 39 ) + + + 10 FROM tab1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT 59 DIV + 91 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT 59 / + 91 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT 9 DIV 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9102
SELECT 9 / 94 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 * + ( - - 96 ) FROM tab0
----
-4512
-9504
-960

query III rowsort
SELECT * FROM tab2 WHERE + + col2 - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - AVG ( 21 ) FROM tab0 WHERE NULL NOT BETWEEN 13 AND - + 16 - col1
----
NULL

query II rowsort
SELECT - + col0, ( + col0 ) AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT col0 * - 93 AS col1 FROM tab0 AS cor0
----
-1395
-8091
-9021

query II rowsort
SELECT ALL + 75 + + 86 + col1 AS col1, + col1 * - col2 + - 5 FROM tab2 AS cor0
----
212
-1178
228
-3891
238
-3085

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT ALL + 35 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + 35 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9111
SELECT + CAST( NULL AS SIGNED ) * + + 13 AS col0, + ( - ( 40 ) ) FROM tab2 AS cor0
----
NULL
-40
NULL
-40
NULL
-40

skipif mysql # not compatible
query II rowsort label-9111
SELECT + CAST ( NULL AS INTEGER ) * + + 13 AS col0, + ( - ( 40 ) ) FROM tab2 AS cor0
----
NULL
-40
NULL
-40
NULL
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT + 97 DIV + col0 FROM tab0 AS cor0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-9112
SELECT + 97 / + col0 FROM tab0 AS cor0
----
1
1
6

query I rowsort
SELECT - - 91 * - + 19 + + ( col0 ) FROM tab1 cor0
----
-1638
-1644
-1678

onlyif mysql # DIV for integer division: 
query I rowsort label-9114
SELECT - ( + + col1 ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9114
SELECT - ( + + col1 ) / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9115
SELECT col2 * + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT col2 * + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 37 * col1 AS col0 FROM tab2 AS cor0
----
1887
2479
2849

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND + 2
----

query I rowsort
SELECT ALL + col1 * col1 FROM tab2 WHERE + 12 * 88 < - - 49 * - ( + 17 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col0 + + col2 FROM tab0
----
15
62
87
97
97
196

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * col0 + + col1 * col2 * - - col2 BETWEEN - 62 AND - 73
----

query I rowsort
SELECT ALL 92 * col0 FROM tab1
----
4692
7820
8372

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN col1 AND col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / - 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + COUNT( * ) + + SUM( col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) + + SUM ( col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT + CAST( 37 AS SIGNED ) FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-9125
SELECT + CAST ( 37 AS INTEGER ) FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT + 57 FROM tab2 WHERE col2 + + 13 > + 15
----
57
57
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 29 / col1 BETWEEN col2 * col1 + ( 23 ) + - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + 77 + + + ( - COUNT( * ) ) AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-9128
SELECT + 77 + + + ( - COUNT ( * ) ) AS col2 FROM tab0
----
74

query I rowsort
SELECT DISTINCT 4 * + col0 * - ( col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-10240
-17400
-4232

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL + col1 DIV col2 * + 17 FROM tab0
----
0
17
34

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + col1 / col2 * + 17 FROM tab0
----
0
17
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT DISTINCT COUNT( * ) - - + CAST( NULL AS SIGNED ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT COUNT ( * ) - - + CAST ( NULL AS INTEGER ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
NULL

query I rowsort
SELECT DISTINCT col2 * col1 + 98 + + 8 * + col2 AS col0 FROM tab1 AS cor0
----
2210
3838
865

query I rowsort
SELECT ALL - 22 + - col0 - + col2 * ( + + col0 ) FROM tab2 AS cor0
----
-1126
-2646
-4447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT DISTINCT - + CAST( + + 75 AS SIGNED ) * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-3444
-729
-7424

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT - + CAST ( + + 75 AS INTEGER ) * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-3444
-729
-7424

query I rowsort
SELECT + col0 + + 98 AS col2 FROM tab2 AS cor0 WHERE + col1 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT - COUNT( * ) + 70 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT - COUNT ( * ) + 70 FROM tab1 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + 85 col0 FROM tab1 AS cor0
----
-6
0
34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 36 IS NULL
----

query I rowsort
SELECT ALL col2 * + 71 AS col0 FROM tab2
----
1633
2840
4118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT - + col2 AS col0 FROM tab1 WHERE NULL BETWEEN - col1 * col1 + + col0 AND + - CAST( NULL AS SIGNED ) + 3
----

skipif mysql # not compatible
query I rowsort label-9140
SELECT - + col2 AS col0 FROM tab1 WHERE NULL BETWEEN - col1 * col1 + + col0 AND + - CAST ( NULL AS INTEGER ) + 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT ALL CAST( NULL AS SIGNED ) - - + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL CAST ( NULL AS INTEGER ) - - + ( - col1 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - - 24 + col2 FROM tab0 WHERE 59 IS NOT NULL
----
2098
2427
407

onlyif mysql # DIV for integer division: 
query II rowsort label-9143
SELECT col1 + col2 + - 6 * + col2 DIV col2 AS col2, col0 FROM tab2
----
111
64
119
75
68
46

skipif mysql # not compatible
query II rowsort label-9143
SELECT col1 + col2 + - 6 * + col2 / col2 AS col2, col0 FROM tab2
----
111
64
119
75
68
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT - 83 DIV col0 + - col1 * + - 18 AS col2 FROM tab1
----
251
846
90

skipif mysql # not compatible
query I rowsort label-9144
SELECT - 83 / col0 + - col1 * + - 18 AS col2 FROM tab1
----
251
846
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 = + 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT + + 53 / CAST( NULL AS SIGNED ) + - col1 + - 70 + - col2 * - + 83 * + col2 * 46 * + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT + + 53 / CAST ( NULL AS INTEGER ) + - col1 + - 70 + - col2 * - + 83 * + col2 * 46 * + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col1 * col1 + + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT SUM( ALL - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9148
SELECT SUM ( ALL - col0 ) col1 FROM tab0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9149
SELECT ALL CAST( - AVG ( - col1 ) AS SIGNED ), COUNT( * ) col0 FROM tab2
----
65
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9149
SELECT ALL CAST ( - AVG ( - col1 ) AS INTEGER ), COUNT ( * ) col0 FROM tab2
----
65
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT MIN( - + 21 ) FROM tab1 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT MIN ( - + 21 ) FROM tab1 cor0
----
-21

query II rowsort
SELECT ALL col1 AS col1, 41 + 43 AS col2 FROM tab0 AS cor0
----
1
84
21
84
81
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 / 64 ) <> NULL
----

query I rowsort
SELECT ALL 79 * col2 FROM tab1 cor0
----
4661
5372
7584

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT ALL + 64 DIV + 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + 64 / + 99 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT DISTINCT COUNT( * ) DIV 76 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT COUNT ( * ) / 76 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT ( - col0 ) AS col1, col2 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT col2 + 84 * + + col0 FROM tab0
----
1307
7318
8247

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT ALL + 35 * col2 DIV + 24 FROM tab0
----
14
144
68

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL + 35 * col2 / + 24 FROM tab0
----
14
144
68

query I rowsort
SELECT ALL col2 + + 62 FROM tab1
----
121
130
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT DISTINCT + 2 * - COUNT( DISTINCT - - col1 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT + 2 * - COUNT ( DISTINCT - - col1 ) FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9161
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9161
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT DISTINCT - - 20 AS col0 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT col1 + col0 + + ( + 70 ) * - - 32 AS col2 FROM tab1 AS cor0
----
2305
2330
2378

query I rowsort
SELECT ALL + + ( - + col2 ) * col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + 57 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 * 7 FROM tab1
----
51
672
85
413
91
476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 80 col0 FROM tab2
----
126
144
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col2 col0 FROM tab2 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT CAST( NULL AS SIGNED ) col1 FROM tab2 cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9170
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT - MAX( - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - MAX ( - col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col0 AND ( col1 )
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col1 * col0 + col1 * - - col2
----

query I rowsort
SELECT ALL - + col0 - + 97 FROM tab2 AS cor0
----
-143
-161
-172

query I rowsort
SELECT - col2 + - ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + col2 + + + col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - COUNT( * ) * - - 86 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - COUNT ( * ) * - - 86 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-255

query I rowsort
SELECT 1 + - + col1 AS col2 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT ALL + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 + - 98 AS col1 FROM tab1
----
-38
-38
-38

query II rowsort
SELECT DISTINCT 39 AS col2, col1 FROM tab1
----
39
14
39
47
39
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL + col0 - + CAST( - col2 AS SIGNED ) * col0 - + ( + - col2 ) - + + col2 * col2 * - - col2 FROM tab2
----
-11040
-190629
-61336

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + col0 - + CAST ( - col2 AS INTEGER ) * col0 - + ( + - col2 ) - + + col2 * col2 * - - col2 FROM tab2
----
-11040
-190629
-61336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9184
SELECT ALL * FROM tab0 WHERE NOT + CAST( 38 AS SIGNED ) < + - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9184
SELECT ALL * FROM tab0 WHERE NOT + CAST ( 38 AS INTEGER ) < + - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - - 15, col2 FROM tab2 AS cor0
----
15
23
15
40
15
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9186
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + 80 NOT IN ( + col2, CAST( - 74 AS SIGNED ) + CAST( NULL AS SIGNED ) * + 34, - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-9186
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + 80 NOT IN ( + col2, CAST ( - 74 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + 34, - col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9187
SELECT DISTINCT + 81 * - COUNT( * ) * + - CAST( NULL AS SIGNED ) + + 94 + + + CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + 81 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + 94 + + + CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IN ( + 7 * 22 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL - COUNT( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL COUNT( * ) + 28 col0 FROM tab1 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-9190
SELECT ALL COUNT ( * ) + 28 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
37

query II rowsort
SELECT - ( - col1 ) AS col1, + col0 AS col1 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT - COUNT( * ) * - + COUNT( * ) + 6 - - ( CAST( NULL AS SIGNED ) ) * MIN( col0 ) + - 57 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT - COUNT ( * ) * - + COUNT ( * ) + 6 - - ( CAST ( NULL AS INTEGER ) ) * MIN ( col0 ) + - 57 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - + ( 74 ) * + + col0 FROM tab2 AS cor0
----
-189440
-321900
-78292

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 12 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9195
SELECT ALL + col1 DIV 89 DIV - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + col1 / 89 / - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT 48 * - - MIN( - - col0 ) FROM tab2 cor0
----
2208

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT 48 * - - MIN ( - - col0 ) FROM tab2 cor0
----
2208

query I rowsort
SELECT - ( + - col1 ) * col2 * - col1 FROM tab0 cor0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9198
SELECT + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 63 * - col1 IS NULL
----

query I rowsort
SELECT ALL - col1 + 86 AS col1 FROM tab0
----
5
65
85

query II rowsort
SELECT DISTINCT - 38 AS col2, 80 FROM tab0
----
-38
80

query II rowsort
SELECT ALL col0, 77 FROM tab2 AS cor0
----
46
77
64
77
75
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + col2 col1 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT - col2 * + - col0 * + CAST( NULL AS SIGNED ) + + 82 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT - col2 * + - col0 * + CAST ( NULL AS INTEGER ) + + 82 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-8
13
5

query I rowsort
SELECT ALL 73 + col0 * 18 FROM tab1
----
1603
1711
991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL ( + 52 ) AS col1 FROM tab1 WHERE col2 * col1 - 62 > - ( - CAST( NULL AS SIGNED ) ) * + 69
----

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL ( + 52 ) AS col1 FROM tab1 WHERE col2 * col1 - 62 > - ( - CAST ( NULL AS INTEGER ) ) * + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT COUNT( * ) FROM tab0 WHERE col0 - + col0 / 26 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9208
SELECT COUNT ( * ) FROM tab0 WHERE col0 - + col0 / 26 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 61 * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9211
SELECT - ( + 65 ) * CAST( + CAST( COUNT( - ( 24 ) ) AS SIGNED ) AS SIGNED ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-9211
SELECT - ( + 65 ) * CAST ( + CAST ( COUNT ( - ( 24 ) ) AS INTEGER ) AS INTEGER ) FROM tab1
----
-195

query I rowsort
SELECT + 50 + + 27 FROM tab1 WHERE - col1 * - col1 = + ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL COUNT( * ) * - ( - 59 ) AS col0 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL COUNT ( * ) * - ( - 59 ) AS col0 FROM tab0
----
177

query I rowsort
SELECT DISTINCT + ( - 50 ) * + col2 AS col2 FROM tab0
----
-2350
-4950
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( + col2 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9215
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( + col2 ) <> NULL
----
0

query I rowsort
SELECT ALL + 58 * - col0 FROM tab2
----
-2668
-3712
-4350

query I rowsort
SELECT col0 - 82 AS col2 FROM tab2
----
-18
-36
-7

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) NOT BETWEEN col1 AND ( 83 ) + - col0 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * col2 AS col1 FROM tab1 WHERE NOT - col0 > col1 - col0
----
4896
5015
6188

query I rowsort
SELECT 85 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT col0 DIV - 36 AS col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9221
SELECT col0 / - 36 AS col0 FROM tab0
----
-2
-2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9223
SELECT * FROM tab2 WHERE NOT ( col1 ) BETWEEN + col2 - - CAST( + col1 AS SIGNED ) AND + col2 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9223
SELECT * FROM tab2 WHERE NOT ( col1 ) BETWEEN + col2 - - CAST ( + col1 AS INTEGER ) AND + col2 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + 72 ) AS col0 FROM tab2
----
-72

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT COUNT( * ) + 5 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * 94 IN ( 63 )
----
8

skipif mysql # not compatible
query I rowsort label-9227
SELECT COUNT ( * ) + 5 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * 94 IN ( 63 )
----
8

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 19
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - ( + ( col1 ) ) + 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-9230
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT ( SUM( ALL col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT ( SUM ( ALL col1 ) ) FROM tab2
----
195

query I rowsort
SELECT DISTINCT - 8 * col1 AS col0 FROM tab2 AS cor0
----
-408
-536
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL + - 48 * + COUNT( ALL ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL + - 48 * + COUNT ( ALL ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-144

query I rowsort
SELECT ALL ( + col1 ) + col2 * col2 AS col1 FROM tab1 cor0
----
3486
4671
9230

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 * 47 FROM tab0 cor0
----
3807
47
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT ALL col2 * CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT DISTINCT MIN( + - 12 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT MIN ( + - 12 ) FROM tab1
----
-12

query I rowsort
SELECT col0 + - - col1 - - col2 FROM tab0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT 82 * - COUNT( * ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT 82 * - COUNT ( * ) FROM tab2
----
-246

query I rowsort
SELECT DISTINCT + col0 * col0 * col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT 1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT DISTINCT + col2 DIV col0 + 46 + col2 AS col2 FROM tab0 AS cor0
----
146
56
96

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + col2 / col0 + 46 + col2 AS col2 FROM tab0 AS cor0
----
146
56
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 > - 35 + + col1
----
15
81
47
87
21
10

query I rowsort
SELECT 51 AS col2 FROM tab1 WHERE + 24 NOT IN ( 38 )
----
51
51
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT - + col2 + + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT - + col2 + + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 86 + + 9 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ALL - col0 - - 25 + col1 - + 34 FROM tab1 AS cor0
----
-46
-53
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT ALL - 94 AS col2, - MIN( col1 ) FROM tab1 AS cor0
----
-94
-5

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL - 94 AS col2, - MIN ( col1 ) FROM tab1 AS cor0
----
-94
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT CAST( + ( COUNT( + - 88 ) ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9252
SELECT CAST ( + ( COUNT ( + - 88 ) ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - col1 / col1 * col0 + + col0 <> ( - col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT DISTINCT + CAST( col0 AS SIGNED ) FROM tab0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + CAST ( col0 AS INTEGER ) FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + col1 / - col0 + - col0 FROM tab2 WHERE col1 - - + col0 - - col1 / 49 <= ( col2 / 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col2 FROM tab1 WHERE NULL <> ( + + col1 * + 36 )
----

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col2 FROM tab1 WHERE NULL <> ( + + col1 * + 36 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NOT NULL AND ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT DISTINCT - - CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 65 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - - CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT col0 DIV - 65 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9259
SELECT col0 / - 65 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - ( + 53 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT SUM( ALL + - 21 ) AS col1 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-9261
SELECT SUM ( ALL + - 21 ) AS col1 FROM tab2
----
-63

query I rowsort
SELECT DISTINCT - 96 * col1 AS col2 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT ALL - 63 * + + 70 FROM tab2
----
-4410
-4410
-4410

query I rowsort
SELECT + col1 + + col2 + 26 FROM tab0 AS cor0
----
126
154
57

query II rowsort
SELECT DISTINCT 93 + ( - - 88 ) AS col1, col1 FROM tab2 AS cor0
----
181
51
181
67
181
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( - col1 ) ) BETWEEN ( NULL ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 * - - 56 col2 FROM tab0 AS cor0
----
-4592
-4592
-4592

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL + COUNT( 91 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + COUNT ( 91 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 + + - col0 * col2 + + - col2 + + ( - ( 85 ) ) col0 FROM tab1 AS cor0
----
-5120
-5202
-6384

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT + + COUNT( DISTINCT + 94 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT + + COUNT ( DISTINCT + 94 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9271
SELECT DISTINCT - 31, COUNT( * ) * + ( + + CAST( - - ( + - 96 ) AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab2
----
-31
-291

skipif mysql # not compatible
query II rowsort label-9271
SELECT DISTINCT - 31, COUNT ( * ) * + ( + + CAST ( - - ( + - 96 ) AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab2
----
-31
-291

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 + - 56 * col2 ) <> col2
----

query I rowsort
SELECT DISTINCT 79 * 26 AS col2 FROM tab1
----
2054

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT ( + - ( + - col2 ) ) DIV - 32 + - - 35 AS col1 FROM tab2
----
34
34
35

skipif mysql # not compatible
query I rowsort label-9274
SELECT ( + - ( + - col2 ) ) / - 32 + - - 35 AS col1 FROM tab2
----
34
34
35

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( col0 * - col1 + col0 / col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 70 AS col0, + 42 - col1 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
70
-39
70
21
70
41

query I rowsort
SELECT - 64 + col2 + + col2 + + - col0 + - 2 FROM tab0
----
-133
13
35

query I rowsort
SELECT ALL - 85 AS col2 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab0 cor0 WHERE + 5 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE + 5 IS NOT NULL
----
3

query II rowsort
SELECT col2 + 23, col2 AS col2 FROM tab2 AS cor0
----
46
23
63
40
81
58

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col1 FROM tab2 AS cor0 WHERE - 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * + 93 - - + col0 + + 66 col1 FROM tab2
----
7273
7291
7302

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT + col1 DIV + 78 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT DISTINCT + col1 / + 78 col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT col0 DIV 58 * + col0 * col0 AS col1 FROM tab1
----
0
7225
8281

skipif mysql # not compatible
query I rowsort label-9285
SELECT col0 / 58 * + col0 * col0 AS col1 FROM tab1
----
0
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT DISTINCT + + 5 * - 52 * - MIN( DISTINCT CAST( NULL AS SIGNED ) ) - - ( + - COUNT( * ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9286
SELECT DISTINCT + + 5 * - 52 * - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) - - ( + - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + + ( - col2 ) FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + MAX( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9289
SELECT + MAX ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - MIN( ALL - 73 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - MIN ( ALL - 73 ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab0 WHERE + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - ( - + 43 ) FROM tab1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9293
SELECT DISTINCT col0 col0, 17 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9293
SELECT DISTINCT col0 col0, 17 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL + COUNT( ALL - - 88 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL + COUNT ( ALL - - 88 ) FROM tab2
----
3

query I rowsort
SELECT ALL col2 * + 36 FROM tab1 AS cor0
----
2124
2448
3456

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 / 87 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col2 + + 76 / col1 * 99 * - col1 + 83 )
----

query I rowsort
SELECT ALL - - col0 * 7 * + 93 * - col1 * - - 71 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4483437
-56158515
-84445767

query I rowsort
SELECT + col1 * + col1 * + 86 FROM tab1
----
16856
189974
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT MIN( ALL - col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9300
SELECT MIN ( ALL - col1 ) col0 FROM tab0
----
-81

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE + 64 - + 76 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0 WHERE - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT ALL + - COUNT( * ) * 86, 86 AS col1 FROM tab2 cor0
----
-258
86

skipif mysql # not compatible
query II rowsort label-9303
SELECT ALL + - COUNT ( * ) * 86, 86 AS col1 FROM tab2 cor0
----
-258
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT 75 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT 75 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 19 ) BETWEEN col2 AND ( col0 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 + + col1 + + - col1 FROM tab1 AS cor0
----
93
93
93

query II rowsort
SELECT - 56 + col2 AS col0, ( col0 ) FROM tab0 AS cor0
----
-46
87
-9
15
43
97

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 * + col2, + col2 * + 15 * - col2 )
----

query I rowsort
SELECT col1 + + 8 - + col1 FROM tab1
----
8
8
8

query I rowsort
SELECT DISTINCT - col2 * + - col0 + + col1 FROM tab0
----
786
891
9604

query I rowsort
SELECT ALL col0 * - - col1 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9312
SELECT - SUM( ALL + col0 ) + MAX( - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT - SUM ( ALL + col0 ) + MAX ( - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 57 * + 90 FROM tab2
----
5130

query I rowsort
SELECT col0 + 52 AS col0 FROM tab0
----
139
149
67

query I rowsort
SELECT ALL + col1 + 29 + 32 FROM tab0
----
142
62
82

query I rowsort
SELECT - col2 + + col0 FROM tab2 WHERE NULL IS NULL
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 - - col2 + - col2 col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - COUNT( ALL ( 59 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9318
SELECT - COUNT ( ALL ( 59 ) ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - - ( - + 75 ) ) ) * + col1 - - 32 + + col2 col1 FROM tab2 AS cor0
----
3880
5115
5847

query I rowsort
SELECT + - ( col0 ) - + 6 + + - col1 AS col1 FROM tab1 AS cor0
----
-144
-71
-96

query I rowsort
SELECT DISTINCT 7 - + 64 AS col2 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT ALL col1 * + - ( + + col1 ) - - col1 FROM tab1
----
-182
-20
-2162

query I rowsort
SELECT DISTINCT + - 52 FROM tab2 WHERE NOT + 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 58 - + col0 FROM tab0
----
4959
5529
855

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9325
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9325
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + SUM( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * 28 col0 FROM tab2 AS cor0
----
2324
2324
2324

query II rowsort
SELECT + 71 AS col2, + col1 FROM tab2 cor0
----
71
51
71
67
71
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 50 * + - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT 53 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-9330
SELECT 53 / - col1 AS col2 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL COUNT( * ) * - MIN( ALL + 4 ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL COUNT ( * ) * - MIN ( ALL + 4 ) AS col2 FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT - MAX( - - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT - MAX ( - - col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 93 ) NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 41 * + col1 / - 11 NOT IN ( - col2, + col2, - ( + + 37 ) )
----

query I rowsort
SELECT col2 * + col2 * + - col2 FROM tab0
----
-1000
-103823
-970299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, col0 col0 FROM tab1 WHERE NOT col0 NOT IN ( - col2 )
----

query I rowsort
SELECT - 81 * col0 AS col1 FROM tab0
----
-1215
-7047
-7857

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - + 35 AS col2 FROM tab2 cor0
----
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col2 BETWEEN + ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 68 - - 17 AS col2 FROM tab1 cor0 WHERE NOT - 45 * + col0 * - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 68 - - 17 AS col2 FROM tab1 cor0 WHERE NOT - 45 * + col0 * - - col0 IS NULL
----
NULL

query I rowsort
SELECT + 71 AS col1 FROM tab1 WHERE NOT col1 > ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT COUNT( * ) FROM tab0 WHERE + + 66 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9343
SELECT COUNT ( * ) FROM tab0 WHERE + + 66 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + 94 * - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
846

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + 94 * - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
846

query I rowsort
SELECT - col1 + - 23 AS col1 FROM tab1
----
-28
-37
-70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 77 + - 84 AS col1 FROM tab1 AS cor0
----
-161
-161
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT + CAST( + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9348
SELECT + CAST ( + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT + - 8 col0 FROM tab0 cor0 WHERE - CAST( - col1 AS SIGNED ) * + col0 + + col0 NOT BETWEEN NULL AND - col2
----
-8
-8
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9349
SELECT + - 8 col0 FROM tab0 cor0 WHERE - CAST ( - col1 AS INTEGER ) * + col0 + + col0 NOT BETWEEN NULL AND - col2
----
-8
-8
-8

query I rowsort
SELECT ALL - col2 + + col2 * + col0 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT DISTINCT - 34 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
176
3773
65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 <= col1 * + col0 * 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT - COUNT( * ) * - 95 AS col1 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-9353
SELECT - COUNT ( * ) * - 95 AS col1 FROM tab2 AS cor0
----
285

query I rowsort
SELECT DISTINCT col2 + - + 93 AS col2 FROM tab2 AS cor0
----
-35
-53
-70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9355
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9355
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - col0 AS col2 FROM tab2 WHERE + col1 + - col0 BETWEEN + - 36 - + 21 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL SUM( - col0 ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9357
SELECT ALL SUM ( - col0 ) col1 FROM tab0
----
-199

query II rowsort
SELECT DISTINCT - 48 * col2 + + - ( col0 ), + 92 - - 27 + - col0 AS col1 FROM tab0 WHERE NOT + ( + 7 ) * col0 IS NULL
----
-2271
104
-4849
22
-567
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 WHERE NOT - CAST( + col2 AS SIGNED ) BETWEEN col2 AND NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9359
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE NOT - CAST ( + col2 AS INTEGER ) BETWEEN col2 AND NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < col2 / + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 + - ( 26 ) FROM tab0
----
-16
21
73

query I rowsort
SELECT + col1 + + 41 AS col2 FROM tab2
----
108
118
92

query I rowsort
SELECT + 52 + - 31 * + + col0 FROM tab1
----
-1529
-2583
-2769

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + + col2 + + + col0 col0 FROM tab0 AS cor0
----
145
180
279

query I rowsort
SELECT ALL + + col2 + + + col0 FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT DISTINCT - - col2 + + CAST( 92 AS SIGNED ) FROM tab2 AS cor0
----
115
132
150

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - - col2 + + CAST ( 92 AS INTEGER ) FROM tab2 AS cor0
----
115
132
150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 > ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT DISTINCT - col2 + col2 - + CAST( NULL AS SIGNED ) * - - ( + - 95 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT - col2 + col2 - + CAST ( NULL AS INTEGER ) * - - ( + - 95 ) AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <= ( NULL )
----

query II rowsort
SELECT - col0 AS col1, 8 AS col1 FROM tab1
----
-51
8
-85
8
-91
8

query I rowsort
SELECT ALL col2 * + + 77 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT - col0 * + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - ( - + col0 ) * col2 < - col1
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9374
SELECT + ( + 72 ) DIV COUNT( - 83 ) AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9374
SELECT + ( + 72 ) / COUNT ( - 83 ) AS col1 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT ALL + COUNT( * ) col2, - 29 AS col0 FROM tab1
----
3
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9375
SELECT ALL + COUNT ( * ) col2, - 29 AS col0 FROM tab1
----
3
-29

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - col1 IS NULL
----

query I rowsort
SELECT + col1 * + - col1 * + - col2 AS col2 FROM tab1
----
1475
150212
18816

query II rowsort
SELECT - 14, - col0 AS col0 FROM tab2
----
-14
-46
-14
-64
-14
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31, + col0 * - col1 + + col1 col1 FROM tab2
----
31
-2295
31
-4851
31
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL COUNT( DISTINCT - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL COUNT ( DISTINCT - col2 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 56 * col1 col1, 0 - col1 + - - col1 + col0 * - col2 * + 99 FROM tab1
----
2632
-612612
280
-496485
784
-484704

query I rowsort
SELECT - col0 + - col2 - + + col0 FROM tab0
----
-184
-293
-77

query I rowsort
SELECT - col2 + - 74 FROM tab2
----
-114
-132
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT + 57 * + 42 * + - COUNT( * ) AS col0 FROM tab2
----
-7182

skipif mysql # not compatible
query I rowsort label-9384
SELECT + 57 * + 42 * + - COUNT ( * ) AS col0 FROM tab2
----
-7182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL + - MIN( - - 23 ) AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL + - MIN ( - - 23 ) AS col0 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + + MIN( ALL - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT + + MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= 87
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9389
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> + ( col0 ) / + col2 AND NULL BETWEEN NULL AND col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-9389
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> + ( col0 ) / + col2 AND NULL BETWEEN NULL AND col2 * + col0
----

query I rowsort
SELECT + col2 + + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE + col1 - - + ( + 52 ) + - col0 IS NULL
----

query I rowsort
SELECT ALL - col1 * + ( + col1 ) - col1 + - 1 * + - col2 + + + col0 FROM tab1 AS cor0
----
-2097
-63
114

query I rowsort
SELECT ALL + 47 + - + 59 + col0 FROM tab0 AS cor0
----
3
75
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 65 * - 11 * + col1 - - - col1 IS NULL
----

query I rowsort
SELECT - + 34 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
1683
2805
3003

query I rowsort
SELECT - 96 + col0 AS col2 FROM tab1
----
-11
-45
-5

query I rowsort
SELECT ALL col1 - - ( - 57 ) * + + 75 AS col1 FROM tab2
----
-4198
-4208
-4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 94 - col2 AS col2 FROM tab2
----
-117
-134
-152

query I rowsort
SELECT ALL 68 * col1 - + col0 + 34 AS col1 FROM tab1
----
289
3139
935

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT ALL + 35 - 47 DIV + + 80 FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + 35 - 47 / + + 80 FROM tab0
----
35
35
35

query I rowsort
SELECT ALL ( + 35 ) AS col1 FROM tab2
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9403
SELECT DISTINCT + col2 col0, + CAST( - + col2 AS SIGNED ) + col0 FROM tab1 WHERE NOT + + col1 * - 36 * - 79 BETWEEN - 22 AND + 2
----
59
26
68
23
96
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9403
SELECT DISTINCT + col2 col0, + CAST ( - + col2 AS INTEGER ) + col0 FROM tab1 WHERE NOT + + col1 * - 36 * - 79 BETWEEN - 22 AND + 2
----
59
26
68
23
96
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT 96 * - COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-9404
SELECT 96 * - COUNT ( * ) FROM tab1
----
-288

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 34 AND + col2 * - + col1 + - 98 + + 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT ALL col1 * + CAST( NULL AS SIGNED ) * + 71 + + col2 + - 81 * - + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) * + 71 + + col2 + - 81 * - + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9407
SELECT ALL - + col1 * + 84 + col2 DIV 7 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-1163
14
-3939
47
-412
5

skipif mysql # not compatible
query II rowsort label-9407
SELECT ALL - + col1 * + 84 + col2 / 7 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-1163
14
-3939
47
-412
5

query I rowsort
SELECT - col0 * + col1 + + 67 FROM tab1 AS cor0
----
-358
-4210
-647

query I rowsort
SELECT DISTINCT + - col1 * ( + ( + col2 ) ) + + col1 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT ALL 87 DIV + + col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL 87 / + + col1 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9411
SELECT - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT DISTINCT col0 + + + col1 * + col0 * col1 + + col1 FROM tab1
----
10061
201157
2215

query I rowsort
SELECT DISTINCT col1 * - + 27 AS col1 FROM tab1
----
-1269
-135
-378

query I rowsort
SELECT DISTINCT + col0 * + col2 + - + 81 + - 47 AS col2 FROM tab2 AS cor0
----
2432
4222
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col0 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9416
SELECT col1 + + 96 DIV - col0 col1, - 68 FROM tab1 AS cor0
----
13
-68
4
-68
46
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9416
SELECT col1 + + 96 / - col0 col1, - 68 FROM tab1 AS cor0
----
13
-68
4
-68
46
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9417
SELECT - + 97 * + COUNT( * ) AS col2, 32 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-873
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9417
SELECT - + 97 * + COUNT ( * ) AS col2, 32 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-873
32

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 II rowsort label-9419
SELECT + col1 AS col2, CAST( NULL AS SIGNED ) * 41 * col1 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9419
SELECT + col1 AS col2, CAST ( NULL AS INTEGER ) * 41 * col1 FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9421
SELECT col2 AS col2, col2 / - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9421
SELECT col2 AS col2, col2 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT DISTINCT CAST( ( + - col1 ) AS SIGNED ) * - col0 AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT CAST ( ( + - col1 ) AS INTEGER ) * - col0 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT ALL - col0 - - 34 + + 29 + - 56 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL - col0 - - 34 + + 29 + - 56 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT - 79 - CAST( NULL AS SIGNED ) + - col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9424
SELECT - 79 - CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 - - col0 / - + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 - - col0 / - + col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + ( + col0 ) * - col2 FROM tab2 WHERE NULL IS NULL AND NOT ( col0 IS NULL )
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT ALL col1 * - col1 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL col1 * - col1 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 60 + + col2 AS col2 FROM tab0
----
-13
-50
39

query I rowsort
SELECT - ( + col0 ) * 58 + 13 + - col0 AS col1 FROM tab1
----
-2996
-5002
-5356

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 WHERE NOT + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + + col0 IS NULL
----
3

query I rowsort
SELECT ALL + + col0 * - col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 57 col1 FROM tab0 AS cor0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT NULL > 14 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL 66 * - MIN( DISTINCT + + col1 ) FROM tab2
----
-3366

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL 66 * - MIN ( DISTINCT + + col1 ) FROM tab2
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT + MAX( - + 92 ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + MAX ( - + 92 ) FROM tab2
----
-92

query I rowsort
SELECT ALL - - col2 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

query II rowsort
SELECT + col2, 2 FROM tab1 AS cor0
----
59
2
68
2
96
2

query I rowsort
SELECT DISTINCT - col2 * - + col0 AS col0 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + - 41 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9440
SELECT DISTINCT + ( col1 ) + - 66 DIV col2 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + ( col1 ) + - 66 / col2 FROM tab2 AS cor0
----
49
66
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 19 col2, + col1 * 74 col1 FROM tab1 AS cor0
----
19
1036
19
3478
19
370

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 <> 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT + COUNT( + + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT + COUNT ( + + col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT + col1 AS col2 FROM tab2 WHERE NOT ( 54 * col1 * CAST( NULL AS SIGNED ) IS NOT NULL )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9445
SELECT + col1 AS col2 FROM tab2 WHERE NOT ( 54 * col1 * CAST ( NULL AS INTEGER ) IS NOT NULL )
----
51
67
77

query I rowsort
SELECT ALL 4 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col0, 64 + + ( - - ( 36 ) ) FROM tab1
----
-9
100

skipif mysql # not compatible
query II rowsort label-9447
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col0, 64 + + ( - - ( 36 ) ) FROM tab1
----
-9
100

query I rowsort
SELECT + col0 + - + col0 - + col0 * 73 AS col2 FROM tab0
----
-1095
-6351
-7081

query I rowsort
SELECT DISTINCT col2 * 9 FROM tab2
----
207
360
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT + - CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9450
SELECT + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + + 58 AS col2 FROM tab2 AS cor0
----
2668
3712
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT - CAST( - - CAST( col0 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9452
SELECT - CAST ( - - CAST ( col0 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - 6 * + + 59 FROM tab2 AS cor0
----
-354
-354
-354

query I rowsort
SELECT - + col0 * - + 51 + - col0 * - + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1800
-832
230

query I rowsort
SELECT DISTINCT 83 * + 26 AS col1 FROM tab0
----
2158

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT DISTINCT 55 + + COUNT( * ) AS col1 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT 55 + + COUNT ( * ) AS col1 FROM tab0
----
58

query I rowsort
SELECT - col1 + - 36 / + col1 AS col1 FROM tab2 AS cor0 WHERE 57 + + + col0 IS NULL
----

query I rowsort
SELECT + - 63 FROM tab2 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

query I rowsort
SELECT - + 81 * + + 90 + col1 FROM tab2 AS cor0
----
-7213
-7223
-7239

query I rowsort
SELECT - + col0 + 58 AS col2 FROM tab2 AS cor0
----
-17
-6
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT - CAST( NULL AS SIGNED ) / - col2 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT - CAST ( NULL AS INTEGER ) / - col2 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 8 + + - col1 FROM tab0 AS cor0
----
-13
-73
7

query I rowsort
SELECT + col2 * - col1 + col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1076
-2939
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT + ( - CAST( - 85 AS SIGNED ) ) FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-9464
SELECT + ( - CAST ( - 85 AS INTEGER ) ) FROM tab0
----
85
85
85

query II rowsort
SELECT ALL col1, 42 FROM tab0
----
1
42
21
42
81
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT DISTINCT + 3 * + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 / - + col1 * - 11 + - 14 * - col2 NOT BETWEEN + - col1 AND col2
----

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT + 3 * + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 / - + col1 * - 11 + - 14 * - col2 NOT BETWEEN + - col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL COUNT( DISTINCT 31 ) * + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL COUNT ( DISTINCT 31 ) * + COUNT ( * ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 44 >= NULL
----

query I rowsort
SELECT ALL + - 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT SUM( + col0 ) FROM tab2 AS cor0 WHERE NOT 41 + + CAST( - 92 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT SUM ( + col0 ) FROM tab2 AS cor0 WHERE NOT 41 + + CAST ( - 92 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT SUM( DISTINCT + 49 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT SUM ( DISTINCT + 49 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT col0 * + col2 AS col2, ( - col1 ) AS col1 FROM tab0 AS cor0
----
705
-81
870
-21
9603
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT ALL 61 DIV 95 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9473
SELECT ALL 61 / 95 col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT 14 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT 14 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 21 * - 69 * + col1 FROM tab0
----
-117369
-1449
-30429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 * 31 * ( col0 ) + - col1 * - - 24 col0 FROM tab0
----
-291703
-4927923
-566919

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ( COUNT( * ) ) * 13 + + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9477
SELECT ( COUNT ( * ) ) * 13 + + COUNT ( * ) FROM tab2
----
42

query I rowsort
SELECT DISTINCT 61 * + 70 * - 82 - col1 + + col0 FROM tab2 AS cor0
----
-350132
-350145
-350153

query I rowsort
SELECT + - 28 + + col0 + + - 14 FROM tab1 AS cor0
----
43
49
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT DISTINCT col1 DIV - + 70 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT col1 / - + 70 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - COUNT( * ) - + MIN( + 23 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9481
SELECT - COUNT ( * ) - + MIN ( + 23 ) FROM tab1 AS cor0
----
-26

query II rowsort
SELECT col2 * ( - col0 ) - col1 AS col1, col0 FROM tab0 cor0
----
-786
15
-891
87
-9604
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT DISTINCT - + 30 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT - + 30 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT + 43 - + COUNT( * ) * - 97 FROM tab1 AS cor0
----
334

skipif mysql # not compatible
query I rowsort label-9484
SELECT + 43 - + COUNT ( * ) * - 97 FROM tab1 AS cor0
----
334

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - - 29 * + - col0 / + col1 * 87 + - col2 + + col1 AND + col1
----

query I rowsort
SELECT DISTINCT + + 6 AS col0 FROM tab2 WHERE - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9487
SELECT CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT + 86 * - col2 FROM tab1
----
-5074
-5848
-8256

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 / + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT DISTINCT 14 DIV - 51 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT 14 / - 51 AS col0 FROM tab1
----
0

query II rowsort
SELECT - 4 AS col0, - 63 + - col0 FROM tab0
----
-4
-150
-4
-160
-4
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT - - ( - col1 ) DIV - 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9492
SELECT - - ( - col1 ) / - 94 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col0 ) col0 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, col2 col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * - 95 col0 FROM tab0 AS cor0
----
-7125
-7125
-7125

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <= ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - 64
----

query I rowsort
SELECT DISTINCT + 47 + - col0 AS col2 FROM tab0 cor0
----
-40
-50
32

query I rowsort
SELECT ALL + + ( 50 ) * - - col0 FROM tab2 AS cor0
----
2300
3200
3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT + - 7 + + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT + - 7 + + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 + col0 - + 44, col1 FROM tab0
----
52
81
54
1
64
21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9502
SELECT 85 + + - ( + 86 ) + - CAST( NULL AS DECIMAL ) * 37 - ( - 55 ) AS col2, 85 + - col1 col2 FROM tab2
----
NULL
18
NULL
34
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9502
SELECT 85 + + - ( + 86 ) + - CAST ( NULL AS REAL ) * 37 - ( - 55 ) AS col2, 85 + - col1 col2 FROM tab2
----
NULL
18
NULL
34
NULL
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - + 66, 13 col0 FROM tab1
----
-3366
13
-5610
13
-6006
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT MAX( col1 ) * - - 11 + - COUNT( * ) + - 15 FROM tab0
----
873

skipif mysql # not compatible
query I rowsort label-9504
SELECT MAX ( col1 ) * - - 11 + - COUNT ( * ) + - 15 FROM tab0
----
873

query I rowsort
SELECT DISTINCT col2 * + 57 AS col1 FROM tab1
----
3363
3876
5472

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 31 / - + col1 IS NOT NULL
----

query I rowsort
SELECT - + 98 - + - 97 AS col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE + 45 <= NULL
----

query I rowsort
SELECT + col2 * - + 45 - col1 FROM tab2
----
-1086
-1877
-2677

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL COUNT( - 59 ) + - - SUM( DISTINCT - col1 ) col1 FROM tab1 cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9510
SELECT ALL COUNT ( - 59 ) + - - SUM ( DISTINCT - col1 ) col1 FROM tab1 cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9511
SELECT * FROM tab1 AS cor0 WHERE 3 * CAST( + 1 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9511
SELECT * FROM tab1 AS cor0 WHERE 3 * CAST ( + 1 AS INTEGER ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - ( + col0 ) AS col2, col1 col1 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 < col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 82 FROM tab1 AS cor0
----
4838
5576
7872

query I rowsort
SELECT ALL col1 * + 36 AS col0 FROM tab2 AS cor0
----
1836
2412
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT - 8 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT - 8 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 59 * + 37 FROM tab0 AS cor0
----
2183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9518
SELECT DISTINCT - 53 DIV - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - 53 / - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT + ( col1 ) * + + col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT DISTINCT - 84 / - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - 84 / - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT DISTINCT + col2 DIV + - 89 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + col2 / + - 89 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 32 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + 12 AND + col0
----

query II rowsort
SELECT ( + 0 ) AS col2, - col0 * 51 FROM tab1
----
0
-2601
0
-4335
0
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT DISTINCT 50 * - COUNT( - ( - 22 ) ) col0 FROM tab0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9525
SELECT DISTINCT 50 * - COUNT ( - ( - 22 ) ) col0 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + COUNT( * ) * ( COUNT( * ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9527
SELECT + COUNT ( * ) * ( COUNT ( * ) ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, - col1 * + col2 * + + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 9 - + col1 * ( col0 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * col1 * 53 FROM tab1 AS cor0
----
22525
226681
37842

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT - - 48 * 92 - + ( 26 ) AS col2 FROM tab2 AS cor0
----
4390
4390
4390

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT SUM( + + 85 ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9533
SELECT SUM ( + + 85 ) FROM tab0 AS cor0
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9534
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - MAX( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - MAX ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 37 + 16 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT - 79 + - COUNT( * ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - 79 + - COUNT ( * ) FROM tab2 AS cor0
----
-82

query I rowsort
SELECT ALL + + 22 + + col1 AS col0 FROM tab1 AS cor0
----
27
36
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + - MAX( - - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + - MAX ( - - col0 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 23 >= + col1 + - col0 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab0, tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 WHERE - 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - - col0 * + col2 * - 8 FROM tab1
----
-1997568
-3410200
-4504864

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL MIN( + 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL MIN ( + 90 ) FROM tab0
----
90

query II rowsort
SELECT DISTINCT + 70 AS col0, col1 FROM tab1
----
70
14
70
47
70
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75 col1, + col1 AS col2 FROM tab2
----
75
51
75
67
75
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 31 + - col2 + + + col0 * + + 29 / + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT + col0 DIV + 75 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9547
SELECT + col0 / + 75 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT 56 * - - COUNT( * ) * COUNT( * ) * + + COUNT( * ) AS col2 FROM tab2
----
1512

skipif mysql # not compatible
query I rowsort label-9548
SELECT 56 * - - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT + 52 * + COUNT( 36 ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-9549
SELECT + 52 * + COUNT ( 36 ) FROM tab2
----
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9550
SELECT CAST( - col2 AS SIGNED ) DIV - 54 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9550
SELECT CAST ( - col2 AS INTEGER ) / - 54 AS col0 FROM tab1
----
1
1
1

query II rowsort
SELECT col2 * + col0, 53 AS col0 FROM tab2 AS cor0
----
1058
53
2560
53
4350
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL COUNT( DISTINCT + col2 ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT - - COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT - - COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + col1 * + + 69 AS col0 FROM tab0 AS cor0
----
-1449
-5589
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9555
SELECT ALL - col2 * - col2 + + - CAST( NULL AS DECIMAL ) * + - ( - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - col2 * - col2 + + - CAST ( NULL AS REAL ) * + - ( - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 0 * + col2 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 22 + + col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 72 AS col2 FROM tab2 cor0
----
-1656
-2880
-4176

query I rowsort
SELECT ALL + 66 * - 95 AS col1 FROM tab1 AS cor0
----
-6270
-6270
-6270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col1 * CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col1 * CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT 64 * + COUNT( * ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-9561
SELECT 64 * + COUNT ( * ) FROM tab0
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 15 AS col1 FROM tab1
----
14
15
47
15
5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL SUM( DISTINCT - 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL SUM ( DISTINCT - 36 ) FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9564
SELECT ALL - + 40, COUNT( * ) col0 FROM tab1 cor0
----
-40
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9564
SELECT ALL - + 40, COUNT ( * ) col0 FROM tab1 cor0
----
-40
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT + COUNT( * ) * 0 * - 59 * + + 97 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9565
SELECT + COUNT ( * ) * 0 * - 59 * + + 97 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + + col1 * col2 AS col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT + + 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query II rowsort
SELECT DISTINCT + ( ( + - ( + col1 ) ) ) AS col1, - 88 FROM tab1
----
-14
-88
-47
-88
-5
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 32 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 32 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - 96 * + col0 * + 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, col0 * - ( 23 ), + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - ( 56 ) + COUNT( * ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - ( 56 ) + COUNT ( * ) FROM tab0 AS cor0
----
-53

query I rowsort
SELECT ALL col0 + - 81 FROM tab0 AS cor0
----
-66
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT DISTINCT 17 * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT 17 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT DISTINCT + - col1 + - CAST( + 3 AS SIGNED ) FROM tab2 AS cor0
----
-54
-70
-80

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + - col1 + - CAST ( + 3 AS INTEGER ) FROM tab2 AS cor0
----
-54
-70
-80

query I rowsort
SELECT DISTINCT + col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 62 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT COUNT( ALL - - 47 ) + + SUM( DISTINCT - 57 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT COUNT ( ALL - - 47 ) + + SUM ( DISTINCT - 57 ) FROM tab2
----
-54

query II rowsort
SELECT ALL col2 - - 91 - + 65, 60 AS col0 FROM tab1
----
122
60
85
60
94
60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( + col0 ) = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0, + col2 AS col0 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9585
SELECT ALL 84 - + - ( - CAST( NULL AS DECIMAL ) ), - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-9585
SELECT ALL 84 - + - ( - CAST ( NULL AS REAL ) ), - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL - 60 * + + COUNT( ALL col0 ) + + COUNT( * ) + - ( COUNT( * ) ) + - + 70 FROM tab0 AS cor0
----
-250

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - 60 * + + COUNT ( ALL col0 ) + + COUNT ( * ) + - ( COUNT ( * ) ) + - + 70 FROM tab0 AS cor0
----
-250

onlyif mysql # DIV for integer division: 
query II rowsort label-9587
SELECT + col0 - col0 DIV - + 65, ( - 11 ) + 75 AS col2 FROM tab2 AS cor0
----
46
64
64
64
76
64

skipif mysql # not compatible
query II rowsort label-9587
SELECT + col0 - col0 / - + 65, ( - 11 ) + 75 AS col2 FROM tab2 AS cor0
----
46
64
64
64
76
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT + + col0 FROM tab2 WHERE NOT NULL > - CAST( NULL AS SIGNED ) * ( - col0 ) * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9588
SELECT + + col0 FROM tab2 WHERE NOT NULL > - CAST ( NULL AS INTEGER ) * ( - col0 ) * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( ( - + 39 ) ) AS col0 FROM tab1
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL - COUNT( * ) * + - 97 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL - COUNT ( * ) * + - 97 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL - MAX( DISTINCT 61 ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - MAX ( DISTINCT 61 ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT - - col2 * col0 + + + col1 AS col0 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT 96 * + col2 AS col2 FROM tab0 AS cor0
----
4512
9504
960

query I rowsort
SELECT + + 99 * col0 AS col0 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT - 41 = col1
----
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT - 41 = col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - MIN( ( + 21 ) ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9596
SELECT - MIN ( ( + 21 ) ) FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9597
SELECT ALL + COUNT( * ), CAST( 86 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
86

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL + COUNT ( * ), CAST ( 86 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
86

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 AND + + col2 - - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT ( - MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT ( - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + - col1 * - col0, + col2 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

query I rowsort
SELECT + 36 + - 92 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + col0 * 50 AS col2 FROM tab0
----
4350
4850
750

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + 7 + + COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-9605
SELECT + 7 + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT 50 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT 50 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT DISTINCT 75 DIV col2 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT 75 / col2 AS col2 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT - 92 DIV - 77 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9609
SELECT - 92 / - 77 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT COUNT( DISTINCT - ( + + 40 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9610
SELECT COUNT ( DISTINCT - ( + + 40 ) ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col1 + + 77 * 30 AS col1 FROM tab2 AS cor0
----
2361
2377
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL + MIN( + + col0 ) FROM tab2 AS cor0 WHERE + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL + MIN ( + + col0 ) FROM tab2 AS cor0 WHERE + col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT + + COUNT( * ) + + + MAX( DISTINCT + col1 ) col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9613
SELECT DISTINCT + + COUNT ( * ) + + + MAX ( DISTINCT + col1 ) col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT ALL + col0 - + ( col2 ) AS col1 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 WHERE + 14 * + + col1 BETWEEN NULL AND 39
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 WHERE + 14 * + + col1 BETWEEN NULL AND 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + - 17 * + - 79 - - - ( - + SUM( ALL - col0 ) ) FROM tab2 WHERE NULL BETWEEN col2 AND + col2 + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT + - 17 * + - 79 - - - ( - + SUM ( ALL - col0 ) ) FROM tab2 WHERE NULL BETWEEN col2 AND + col2 + - - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL + 19 - - - COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + 19 - - - COUNT ( * ) FROM tab2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT DISTINCT - col2 - - 80 * + - CAST( + + CAST( - 50 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
3904
3932
3941

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT - col2 - - 80 * + - CAST ( + + CAST ( - 50 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
3904
3932
3941

query II rowsort
SELECT + col2 + + col0 + col1 * + col1 AS col1, - col2 * + 79 * col2 FROM tab2
----
2670
-41791
4622
-265756
6033
-126400

query I rowsort
SELECT 47 + - + col0 FROM tab1
----
-38
-4
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL - 93 - + CAST( - col1 AS SIGNED ) FROM tab0
----
-12
-72
-92

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - 93 - + CAST ( - col1 AS INTEGER ) FROM tab0
----
-12
-72
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT COUNT( * ) - + - 21 AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT COUNT ( * ) - + - 21 AS col0 FROM tab0
----
24

query I rowsort
SELECT DISTINCT + - 81 FROM tab2 WHERE NOT - col2 <> 84
----

query I rowsort
SELECT col1 + + ( col2 ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - MIN( ALL + 53 ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - MIN ( ALL + 53 ) FROM tab0 AS cor0
----
-53

query III rowsort
SELECT ALL * FROM tab1 WHERE - 5 * 52 / + - 20 IS NULL
----

query I rowsort
SELECT ( - 64 ) AS col0 FROM tab2
----
-64
-64
-64

query I rowsort
SELECT - col2 * - - col2 AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT + col0 * + col1 * 79 + - - col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT + col0 * + col1 * 79 + - - col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + 26 + col2 AS col2, - col0 * + 93 * + col1 * - col0 + + col1 FROM tab2 AS cor0 WHERE NOT - col1 + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - - SUM( ALL - - col1 ) * + SUM( ALL col2 ) AS col2 FROM tab2 AS cor0
----
23595

skipif mysql # not compatible
query I rowsort label-9631
SELECT - - SUM ( ALL - - col1 ) * + SUM ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
23595

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT DISTINCT + MAX( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT + MAX ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75

query II rowsort
SELECT DISTINCT + col1, + 47 FROM tab0 AS cor0
----
1
47
21
47
81
47

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 60 + + + ( col1 ) BETWEEN - col0 * - col1 * - + col1 + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - 51 * + MIN( - ( - - 4 ) ) FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-9635
SELECT - 51 * + MIN ( - ( - - 4 ) ) FROM tab2
----
204

query II rowsort
SELECT col1 AS col1, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query I rowsort
SELECT - 40 * + + ( - col2 ) + col1 FROM tab2
----
1677
2387
971

query I rowsort
SELECT + col0 + col2 * - - col0 AS col0 FROM tab0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT MIN( DISTINCT + col0 ) + + COUNT( * ) col1 FROM tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9639
SELECT MIN ( DISTINCT + col0 ) + + COUNT ( * ) col1 FROM tab0
----
18

query II rowsort
SELECT DISTINCT + col2 * - col1 AS col0, - ( + 79 ) + 83 AS col2 FROM tab0
----
-210
4
-3807
4
-99
4

query I rowsort
SELECT col0 + + - col2 * + - col1 AS col1 FROM tab0
----
196
297
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT COUNT( * ) + - ( - CAST( - 15 AS SIGNED ) ) col0 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9642
SELECT COUNT ( * ) + - ( - CAST ( - 15 AS INTEGER ) ) col0 FROM tab0
----
-12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 99 * + 46 <= - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT ALL - - 86 + - CAST( NULL AS SIGNED ) 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-9644
SELECT ALL - - 86 + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col0 AS col0, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query II rowsort
SELECT - 12 AS col1, - ( col0 ) FROM tab1 AS cor0 WHERE NULL <= + col2 * 57
----

query I rowsort
SELECT ALL - + 94 * + 44 AS col1 FROM tab0 cor0
----
-4136
-4136
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT MAX( col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9648
SELECT MAX ( col1 ) col0 FROM tab1
----
47

query I rowsort
SELECT col0 FROM tab1 WHERE + col0 + + 1 IS NOT NULL
----
51
85
91

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN 33 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT + CAST( + 58 AS SIGNED ) + + col2 * + + 32 AS col2 FROM tab2 AS cor0
----
1338
1914
794

skipif mysql # not compatible
query I rowsort label-9651
SELECT + CAST ( + 58 AS INTEGER ) + + col2 * + + 32 AS col2 FROM tab2 AS cor0
----
1338
1914
794

query I rowsort
SELECT + 37 + - col1 + - + col1 AS col1 FROM tab2 AS cor0
----
-117
-65
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( - - 33 ) col2 FROM tab2 cor0
----
56
73
91

query I rowsort
SELECT + col1 * + - col0 * + col1 + - - col0 FROM tab0 AS cor0
----
-38280
-98400
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT ALL 43 * - col2 + - - CAST( NULL AS SIGNED ) * - + col1 / - - 10 + 78 * col1 - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL 43 * - col2 + - - CAST ( NULL AS INTEGER ) * - + col1 / - - 10 + 78 * col1 - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - 74 ) + col2 * - + col1 FROM tab0 AS cor0
----
-136
-25
-3733

query I rowsort
SELECT ALL + col1 - 61 AS col2 FROM tab1 AS cor0
----
-14
-47
-56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - + col0 * + col0 * + col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT DISTINCT + 53 - col1 AS col1 FROM tab0
----
-28
32
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9661
SELECT col2 + - - col1 + + + col1 * 45 AS col1 FROM tab1 WHERE ( - ( - CAST( 40 AS SIGNED ) ) NOT IN ( - - col2, col1 * col1, + 85, + 5 ) )
----
2230
289
740

skipif mysql # not compatible
query I rowsort label-9661
SELECT col2 + - - col1 + + + col1 * 45 AS col1 FROM tab1 WHERE ( - ( - CAST ( 40 AS INTEGER ) ) NOT IN ( - - col2, col1 * col1, + 85, + 5 ) )
----
2230
289
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT DISTINCT + COUNT( * ) * 89 - + - 5 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT + COUNT ( * ) * 89 - + - 5 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT - 46, col0 - ( 6 ) + - + 64 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1, col1 * - col0 FROM tab0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT ALL + + 33 * + + col0 AS col2 FROM tab2 AS cor0
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL MAX( ALL - 40 ) AS col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL MAX ( ALL - 40 ) AS col1 FROM tab2 AS cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 95, + col1 col1 FROM tab2 AS cor0
----
95
51
95
67
95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT - MAX( ALL 43 ) FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9668
SELECT - MAX ( ALL 43 ) FROM tab0 AS cor0
----
-43

query I rowsort
SELECT + col1 + col1 * - 61 FROM tab0 WHERE ( + 31 ) <> - col2 / + 17
----
-1260
-4860
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + COUNT( DISTINCT - 86 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + COUNT ( DISTINCT - 86 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( - col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 39 - - 76 * + col2 AS col2 FROM tab1
----
4523
5207
7335

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL >= ( + col2 )
----

query I rowsort
SELECT + col2 - 90 AS col1 FROM tab2
----
-32
-50
-67

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) NOT IN ( + 29 )
----

query I rowsort
SELECT DISTINCT - ( 48 ) FROM tab1
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col0 FROM tab2 WHERE ( - col0 + col1 ) NOT IN ( + col1 / 19 )
----
-70
-70
-70

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( 34 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL - COUNT( 78 ) + COUNT( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - COUNT ( 78 ) + COUNT ( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 + + 62 * col2 col1 FROM tab2 WHERE col2 IS NOT NULL
----
1514
2568
3684

query I rowsort
SELECT ALL - col2 * col2 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN col0 AND - 97 + 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT CAST( - 11 AS SIGNED ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT CAST ( - 11 AS INTEGER ) FROM tab2
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col2 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9685
SELECT + 95 DIV COUNT( * ) - + MAX( ALL col1 + col2 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9685
SELECT + 95 / COUNT ( * ) - + MAX ( ALL col1 + col2 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT ALL + col2 + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT - 13 FROM tab0 WHERE NOT - CAST( + col1 AS SIGNED ) < ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - 13 FROM tab0 WHERE NOT - CAST ( + col1 AS INTEGER ) < ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) * 26 + 81 BETWEEN NULL AND ( col1 * 38 + 21 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 45 + - col0 <> + 56
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9690
SELECT * FROM tab2 WHERE NOT col1 >= ( CAST( NULL AS DECIMAL ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-9690
SELECT * FROM tab2 WHERE NOT col1 >= ( CAST ( NULL AS REAL ) * - col2 )
----

query I rowsort
SELECT ALL - col1 * + 60 AS col2 FROM tab2
----
-3060
-4020
-4620

query I rowsort
SELECT ALL - col2 + 96 FROM tab1 AS cor0
----
0
28
37

query I rowsort
SELECT - 73 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - col1 * + col2 + + col2 * ( col1 + - col0 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT 63 + + 48 * + 25 FROM tab1 AS cor0
----
1263
1263
1263

query I rowsort
SELECT DISTINCT col1 + + 99 FROM tab1 AS cor0
----
104
113
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT COUNT( * ) + + 80 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-9697
SELECT COUNT ( * ) + + 80 FROM tab2 AS cor0
----
83

query I rowsort
SELECT - ( - col2 ) * col2 + + col2 AS col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT - 9 + col0 * + col1 AS col2 FROM tab1 cor0
----
416
4268
705

query I rowsort
SELECT - 82 * col0 FROM tab2
----
-3772
-5248
-6150

query I rowsort
SELECT DISTINCT - col1 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - - COUNT( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9702
SELECT - - COUNT ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9703
SELECT + SUM( col1 ) DIV 83 AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9703
SELECT + SUM ( col1 ) / 83 AS col0 FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT + - CAST( + ( COUNT( DISTINCT col1 ) ) AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9704
SELECT + - CAST ( + ( COUNT ( DISTINCT col1 ) ) AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - 8 + + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( col2 ) ) <> 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 - - col0 FROM tab0 cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT COUNT( ALL + col1 ) + 48 AS col0 FROM tab1 cor0 WHERE ( NULL ) <= col0
----
48

skipif mysql # not compatible
query I rowsort label-9708
SELECT COUNT ( ALL + col1 ) + 48 AS col0 FROM tab1 cor0 WHERE ( NULL ) <= col0
----
48

query I rowsort
SELECT DISTINCT col2 * 13 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-740
-8316
-94

query III rowsort
SELECT * FROM tab1 WHERE + 43 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT COUNT( * ) + SUM( ALL - col2 ) col1 FROM tab0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9711
SELECT COUNT ( * ) + SUM ( ALL - col2 ) col1 FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT COUNT( * ) * - 80 * 46 AS col2 FROM tab0
----
-11040

skipif mysql # not compatible
query I rowsort label-9712
SELECT COUNT ( * ) * - 80 * 46 AS col2 FROM tab0
----
-11040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT + 24 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + 24 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 11 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9715
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT MAX( ALL - col0 ) * - 65 col2 FROM tab1
----
3315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9716
SELECT MAX ( ALL - col0 ) * - 65 col2 FROM tab1
----
3315

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 44 / col2 NOT BETWEEN ( ( 92 ) + - col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT - col2 * - + ( + 60 ) * + ( + col2 DIV - 24 ) FROM tab2
----
-2400
-6960
0

skipif mysql # not compatible
query I rowsort label-9718
SELECT - col2 * - + ( + 60 ) * + ( + col2 / - 24 ) FROM tab2
----
-2400
-6960
0

query I rowsort
SELECT col0 * + + ( + col1 ) FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 31 + col2 * ( col2 ) ) IN ( 43 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9721
SELECT ALL - col2 DIV + - 65 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - col2 / + - 65 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col0 * - 43 * + col2 FROM tab0 AS cor0
----
30315
37410
412929

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT - col1 DIV - 83 FROM tab2 AS cor0 WHERE NOT - col2 + col1 IN ( 49 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT - col1 / - 83 FROM tab2 AS cor0 WHERE NOT - col2 + col1 IN ( 49 )
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT ALL - col0 * 10 DIV col0 FROM tab1 cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL - col0 * 10 / col0 FROM tab1 cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL + + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL IN ( col2 * + ( - ( - col2 ) ) )
----

query I rowsort
SELECT DISTINCT ( 15 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT - col0 * - col1 AS col0 FROM tab1 WHERE NOT - col1 >= - 48 + 11
----
4277

query I rowsort
SELECT ALL + AVG ( 93 ) FROM tab2 WHERE NULL NOT BETWEEN - + col1 AND 59 * + 39
----
NULL

query II rowsort
SELECT - 59, + col2 + col0 AS col1 FROM tab1
----
-59
144
-59
147
-59
159

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + - 56 * + col1 IS NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 4 * 14 <> col2 / - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 54 + - + col1 IS NULL
----

query I rowsort
SELECT ALL - 61 FROM tab0 AS cor0 WHERE col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT ALL + col2 DIV + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL + col2 / + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-21
-81
98

query I rowsort
SELECT + 2 * - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9737
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND ( + CAST( + col0 AS DECIMAL ) / 72 )
----

skipif mysql # not compatible
query I rowsort label-9737
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND ( + CAST ( + col0 AS REAL ) / 72 )
----

query I rowsort
SELECT DISTINCT + - 16 * col0 + - col1 + col0 * col2 FROM tab0 AS cor0
----
-543
384
8050

query I rowsort
SELECT ALL - col0 + - col1 + - col2 - 57 FROM tab0 cor0
----
-175
-200
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - MIN( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - MIN ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ( + SUM( - + col0 ) ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-9741
SELECT ( + SUM ( - + col0 ) ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-182

query I rowsort
SELECT + col1 * - col1 + - + 63 FROM tab0 AS cor0
----
-504
-64
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT DISTINCT - MIN( ALL + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT - MIN ( ALL + col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9744
SELECT COUNT( * ) + + COUNT( * ) col0, + CAST( - - 36 AS SIGNED ) FROM tab1
----
6
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9744
SELECT COUNT ( * ) + + COUNT ( * ) col0, + CAST ( - - 36 AS INTEGER ) FROM tab1
----
6
36

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9745
SELECT ALL * FROM tab0 WHERE NOT - - col2 >= ( + col2 * CAST( NULL AS DECIMAL ) + col1 * 40 )
----

skipif mysql # not compatible
query III rowsort label-9745
SELECT ALL * FROM tab0 WHERE NOT - - col2 >= ( + col2 * CAST ( NULL AS REAL ) + col1 * 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE + col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT ALL col0 DIV + 34 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL col0 / + 34 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL + MIN( ALL 9 ) / - 41 FROM tab0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + MIN ( ALL 9 ) / - 41 FROM tab0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT COUNT( * ) + + SUM( + + ( - col2 ) ) AS col0 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-9749
SELECT COUNT ( * ) + + SUM ( + + ( - col2 ) ) AS col0 FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT MIN( DISTINCT - col2 ) FROM tab2 WHERE - col1 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-9750
SELECT MIN ( DISTINCT - col2 ) FROM tab2 WHERE - col1 IS NOT NULL
----
-58

query I rowsort
SELECT - col0 + + - col2 AS col1 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT col0 / col2 FROM tab0 WHERE + 35 IS NULL
----

query I rowsort
SELECT 64 * - col0 AS col1 FROM tab2 WHERE ( 68 + - - 93 * + col0 ) <> ( - col0 )
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT ALL 52 + - COUNT( - + 12 ) + SUM( ALL 62 ) DIV - 57 AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL 52 + - COUNT ( - + 12 ) + SUM ( ALL 62 ) / - 57 AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + col2 * - col1 + 15 + col1 AS col1 FROM tab1 AS cor0
----
-1315
-275
-3134

query I rowsort
SELECT ALL - - 27 FROM tab0 cor0
----
27
27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + COUNT( DISTINCT + - ( + col0 ) ) * + 13 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + COUNT ( DISTINCT + - ( + col0 ) ) * + 13 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 7 - - + col1 FROM tab1
----
12
21
54

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - col1 + col1 <= ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( - col2 ) / col2 + - + col2 * - 95 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 45 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT col2 + - + 11 * col2 * + - ( + + ( + col2 ) ) FROM tab2 AS cor0
----
17640
37062
5842

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL ( SUM( col2 ) ) col1 FROM tab2 AS cor0 WHERE - 30 > - 75
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9763
SELECT ALL ( SUM ( col2 ) ) col1 FROM tab2 AS cor0 WHERE - 30 > - 75
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9764
SELECT ALL + col0 + - 75 + - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL + col0 + - 75 + - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - + 63 FROM tab1 AS cor0
----
3717
4284
6048

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 13 ) IS NOT NULL
----

query I rowsort
SELECT - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT - COUNT( * ) AS col0, - ( ( + 85 ) ) FROM tab1
----
-3
-85

skipif mysql # not compatible
query II rowsort label-9768
SELECT - COUNT ( * ) AS col0, - ( ( + 85 ) ) FROM tab1
----
-3
-85

query II rowsort
SELECT - 71, col0 FROM tab1
----
-71
51
-71
85
-71
91

query I rowsort
SELECT ALL - ( - 69 ) FROM tab2
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT 92 * ( CAST( NULL AS SIGNED ) * + col2 ) FROM tab0 WHERE NOT - col1 <= + col0 + col2 * + col1
----

skipif mysql # not compatible
query I rowsort label-9771
SELECT 92 * ( CAST ( NULL AS INTEGER ) * + col2 ) FROM tab0 WHERE NOT - col1 <= + col0 + col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT DISTINCT + ( + COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9772
SELECT DISTINCT + ( + COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT 77 * + COUNT( * ) AS col0 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT 77 * + COUNT ( * ) AS col0 FROM tab0
----
231

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 + + - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 93 NOT BETWEEN ( + + col1 ) AND - 31
----

query I rowsort
SELECT ALL + col2 + - col2 * 61 AS col0 FROM tab2 WHERE col1 * - - 27 + col1 IS NULL
----

query I rowsort
SELECT - ( - - 88 ) FROM tab2 cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9778
SELECT CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - - ( - - col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT ALL 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 90 + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col2 + 33, + col2 AS col0 FROM tab2 AS cor0
----
56
23
73
40
91
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 >= NULL )
----

query II rowsort
SELECT DISTINCT + col1 + - - 25 AS col1, - 54 AS col0 FROM tab0 AS cor0
----
106
-54
26
-54
46
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + col0 * + - col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT - - COUNT( * ) * - + 48 * + 22 * ( + 77 ) * + + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - - COUNT ( * ) * - + 48 * + 22 * ( + 77 ) * + + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - MIN( DISTINCT + col1 ) + + COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN - 52 * - col0 * - 31 / - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT - MIN ( DISTINCT + col1 ) + + COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN - 52 * - col0 * - 31 / - col2 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col2, 67 AS col2 FROM tab2
----
51
67
67
67
77
67

query I rowsort
SELECT + 36 + 23 FROM tab1
----
59
59
59

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1 AS cor0 WHERE - col1 * - 24 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( col1 ) IS NULL )
----

query I rowsort
SELECT + 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN - 23 - + ( + col0 ) AND col1
----

query I rowsort
SELECT + 88 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT - + 28 * + 16 - col2 AS col1 FROM tab1 WHERE NOT ( + 99 + - + 85 ) <= + col0 * - ( + CAST( + + col1 AS SIGNED ) )
----
-507
-516
-544

skipif mysql # not compatible
query I rowsort label-9798
SELECT - + 28 * + 16 - col2 AS col1 FROM tab1 WHERE NOT ( + 99 + - + 85 ) <= + col0 * - ( + CAST ( + + col1 AS INTEGER ) )
----
-507
-516
-544

query I rowsort
SELECT ALL - col0 * + + 66 AS col2 FROM tab1
----
-3366
-5610
-6006

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 * col1 AND + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= col0 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT ALL - MAX( DISTINCT - 51 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - MAX ( DISTINCT - 51 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 18 * - 64 + + - col2 + + 47 - + - 6 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT - - COUNT( - - 68 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - - COUNT ( - - 68 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT col0, + 17 FROM tab1
----
51
17
85
17
91
17

query I rowsort
SELECT ALL + 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * col2 col2 FROM tab2
----
1863
3240
4698

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 2 + - + col1 + - col2 - - col2 IS NOT NULL OR col0 BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT ALL + + 65 + - col0 FROM tab0 AS cor0
----
-22
-32
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT ALL + col2 * + col1 DIV col1 * + col2 * + + 98 + 16 AS col1 FROM tab0 AS cor0
----
216498
960514
9816

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL + col2 * + col1 / col1 * + col2 * + + 98 + 16 AS col1 FROM tab0 AS cor0
----
216498
960514
9816

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, 11, col0 + - - col2 ) AND NOT ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 79 <> NULL
----

query I rowsort
SELECT col2 + - + ( + col1 ) FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + - + col1 col1 FROM tab0
----
-100
-160
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT + 32 + col1 * - col2 DIV + + col2 col1 FROM tab2
----
-19
-35
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9815
SELECT + 32 + col1 * - col2 / + + col2 col1 FROM tab2
----
-19
-35
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9816
SELECT + 46 + COUNT( * ), + COUNT( * ) * + - CAST( + 19 AS SIGNED ) * 42 AS col2 FROM tab1
----
49
-2394

skipif mysql # not compatible
query II rowsort label-9816
SELECT + 46 + COUNT ( * ), + COUNT ( * ) * + - CAST ( + 19 AS INTEGER ) * 42 AS col2 FROM tab1
----
49
-2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9817
SELECT ALL + COUNT( * ) DIV - MIN( DISTINCT + 64 ) * + - 83 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL + COUNT ( * ) / - MIN ( DISTINCT + 64 ) * + - 83 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9818
SELECT ALL 78 * + COUNT( * ) AS col0, COUNT( * ) + + + ( 74 ) FROM tab0
----
234
77

skipif mysql # not compatible
query II rowsort label-9818
SELECT ALL 78 * + COUNT ( * ) AS col0, COUNT ( * ) + + + ( 74 ) FROM tab0
----
234
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - - col2 col2 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT - - col0 - col1 * col1 AS col0 FROM tab2 AS cor0
----
-2555
-4414
-5865

query I rowsort
SELECT - 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT - - MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9823
SELECT - - MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - 18 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9825
SELECT + col0 AS col1, + CAST( NULL AS SIGNED ) * - - 51 + - col2 - 69 AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9825
SELECT + col0 AS col1, + CAST ( NULL AS INTEGER ) * - - 51 + - col2 - 69 AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT DISTINCT + MAX( ALL + - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT + MAX ( ALL + - col2 ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9827
SELECT ( - + COUNT( * ) ), 3 DIV COUNT( * ) * + 14 col2 FROM tab1
----
-3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9827
SELECT ( - + COUNT ( * ) ), 3 / COUNT ( * ) * + 14 col2 FROM tab1
----
-3
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT ALL + 13 DIV + + ( ( - 67 ) ) * + + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + 13 / + + ( ( - 67 ) ) * + + col1 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( + col0 * + - col0, 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT COUNT( * ) * ( - 4 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9831
SELECT COUNT ( * ) * ( - 4 ) FROM tab0 AS cor0
----
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + 60
----

query I rowsort
SELECT col2 + + col0 FROM tab2 WHERE ( NOT + col2 - + col0 IS NULL )
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT ALL + ( - + COUNT( * ) ) + 34 DIV + - COUNT( - - ( col0 ) ) col2 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9834
SELECT ALL + ( - + COUNT ( * ) ) + 34 / + - COUNT ( - - ( col0 ) ) col2 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL - ( + ( col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - - SUM( + - col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9836
SELECT - - SUM ( + - col2 ) FROM tab1 cor0
----
-223

query I rowsort
SELECT ALL - col2 * + + 71 + - - 82 - - + col1 * col2 - - 95 FROM tab0 AS cor0
----
-323
-6753
647

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT - COUNT( col2 ), + 97 AS col1 FROM tab1 AS cor0 WHERE col1 = ( + col2 )
----
0
97

skipif mysql # not compatible
query II rowsort label-9838
SELECT - COUNT ( col2 ), + 97 AS col1 FROM tab1 AS cor0 WHERE col1 = ( + col2 )
----
0
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( + 7 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 63 - + col2 FROM tab0
----
-110
-162
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9841
SELECT * FROM tab0 WHERE col1 * + - 39 * - 31 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9841
SELECT * FROM tab0 WHERE col1 * + - 39 * - 31 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - - 28 + - col0 FROM tab1
----
1225
341
55

query I rowsort
SELECT 59 * col2 + - - col1 AS col0 FROM tab1
----
3486
4059
5678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9844
SELECT ALL COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9844
SELECT ALL COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - COUNT( * ) FROM tab2 WHERE - col2 = + 87
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT - COUNT ( * ) FROM tab2 WHERE - col2 = + 87
----
0

query I rowsort
SELECT + col1 * - + ( + col1 ) + + ( + + col0 ) + 73 + - - col1 FROM tab1 cor0
----
-1998
-58
138

query I rowsort
SELECT + 8 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - - 13 + col2 AS col2 FROM tab1 cor0
----
109
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT 43 ) AS col2 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT - COUNT ( * ) + MAX ( DISTINCT 43 ) AS col2 FROM tab0 AS cor0
----
40

query II rowsort
SELECT + col0 * col1, col0 FROM tab0
----
1215
15
1827
87
97
97

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab1 AS cor1 ON + 87 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 54 + - col2 IS NULL AND 21 >= + ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - MIN( ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9854
SELECT - MIN ( ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9855
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 = col0 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9855
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 = col0 - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + MIN( ALL + col0 ) * 90 FROM tab1 AS cor0
----
4590

skipif mysql # not compatible
query I rowsort label-9856
SELECT + MIN ( ALL + col0 ) * 90 FROM tab1 AS cor0
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT - + SUM( - - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - + SUM ( - - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9858
SELECT * FROM tab0 WHERE NOT ( NOT + col2 NOT BETWEEN ( CAST( NULL AS DECIMAL ) ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-9858
SELECT * FROM tab0 WHERE NOT ( NOT + col2 NOT BETWEEN ( CAST ( NULL AS REAL ) ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT - 67 DIV - + 23 col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9859
SELECT - 67 / - + 23 col0 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT col2 AS col2 FROM tab2 WHERE NOT ( - col2 + + - col2 + - CAST( NULL AS SIGNED ) - col0 + - 49 IS NOT NULL )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9860
SELECT col2 AS col2 FROM tab2 WHERE NOT ( - col2 + + - col2 + - CAST ( NULL AS INTEGER ) - col0 + - 49 IS NOT NULL )
----
23
40
58

query II rowsort
SELECT - 37, - ( - col0 ) AS col1 FROM tab2
----
-37
46
-37
64
-37
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL MAX( DISTINCT + 77 ) AS col0 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL MAX ( DISTINCT + 77 ) AS col0 FROM tab0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9863
SELECT ALL col1 + col0 * - - ( - - ( col0 ) ) + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL col1 + col0 * - - ( - - ( col0 ) ) + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9864
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + + col2 - 55, 63 col0 FROM tab1 cor0
----
NULL
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9864
SELECT DISTINCT + - CAST ( NULL AS REAL ) + + col2 - 55, 63 col0 FROM tab1 cor0
----
NULL
63

query I rowsort
SELECT col1 * 20 FROM tab2 cor0 WHERE NOT col2 + + col1 NOT BETWEEN - ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9866
SELECT * FROM tab2 cor0 WHERE col2 - - col1 + - - 54 / + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9866
SELECT * FROM tab2 cor0 WHERE col2 - - col1 + - - 54 / + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT + - col1 DIV + 36 AS col0 FROM tab1 WHERE NULL IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT + - col1 / + 36 AS col0 FROM tab1 WHERE NULL IS NULL
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9868
SELECT ALL - CAST( + MIN( ALL + + col0 ) AS SIGNED ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9868
SELECT ALL - CAST ( + MIN ( ALL + + col0 ) AS INTEGER ) col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT MAX( ALL - - col0 ) * - + COUNT( * ) col2 FROM tab0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9869
SELECT MAX ( ALL - - col0 ) * - + COUNT ( * ) col2 FROM tab0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT - 1 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT - 1 / - col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col0 + + 68 * col0 AS col2 FROM tab1 AS cor0
----
3417
5695
6097

query I rowsort
SELECT + col1 + 97 AS col2 FROM tab2 AS cor0
----
148
164
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL - col1 + 26 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - col1 + 26 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 - + col1 col1 FROM tab2
----
-32
-48
-58

query I rowsort
SELECT DISTINCT ( + 94 ) FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col1 * + col2 AS col0 FROM tab1
----
51
1344
85
295
91
3196

query II rowsort
SELECT ALL - col1, - col1 + - ( col0 ) AS col0 FROM tab2
----
-51
-97
-67
-142
-77
-141

query I rowsort
SELECT - 73 - + col0 FROM tab1 AS cor0
----
-124
-158
-164

query I rowsort
SELECT DISTINCT - ( - col0 ) * - 48 FROM tab1 AS cor0
----
-2448
-4080
-4368

onlyif mysql # DIV for integer division: 
query II rowsort label-9881
SELECT col0 DIV - col2 + + - 61 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-62
64
-62
75
-63
46

skipif mysql # not compatible
query II rowsort label-9881
SELECT col0 / - col2 + + - 61 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-62
64
-62
75
-63
46

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT 59 / + 68 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT - 66 * + COUNT( * ) + + + 46 AS col0 FROM tab0 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-9883
SELECT - 66 * + COUNT ( * ) + + + 46 AS col0 FROM tab0 AS cor0
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT DISTINCT + + CAST( - CAST( - + 68 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 33 IS NULL
----
68

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT + + CAST ( - CAST ( - + 68 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 33 IS NULL
----
68

query I rowsort
SELECT DISTINCT - - ( - 48 ) * + 82 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-3936

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 * + + col2 AS col1 FROM tab1
----
12117361
21381376
84934656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT - CAST( 58 AS SIGNED ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9887
SELECT - CAST ( 58 AS INTEGER ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9888
SELECT DISTINCT CAST( NULL AS SIGNED ), - col2 AS col1 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-9888
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col2 AS col1 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9889
SELECT ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9892
SELECT col2 DIV CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9892
SELECT col2 / CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT 1 AS col0, - col1 FROM tab0 cor0
----
1
-1
1
-21
1
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT DISTINCT MIN( DISTINCT - CAST( + - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT MIN ( DISTINCT - CAST ( + - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( - col2 * - col0 - + - col1, + 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * - col1 FROM tab2 WHERE ( 76 ) > + 3 + + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT DISTINCT + ( - CAST( - - col1 AS SIGNED ) ) FROM tab2 WHERE NOT + col2 >= col2
----

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + ( - CAST ( - - col1 AS INTEGER ) ) FROM tab2 WHERE NOT + col2 >= col2
----

query I rowsort
SELECT 38 * + ( - ( 3 ) ) FROM tab0
----
-114
-114
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT + col2 + + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-9900
SELECT + col2 + + col1 / - col1 AS col0 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT ALL + - col2 + + col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + - col2 + + col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 * + + col1 IN ( - col1, ( + col0 ), - col0 + 73 )
----

query I rowsort
SELECT 33 FROM tab2 cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT DISTINCT + col2 * col0 + - col1 + col2 * - CAST( NULL AS SIGNED ) / - ( col2 ) * col0 + + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + col2 * col0 + - col1 + col2 * - CAST ( NULL AS INTEGER ) / - ( col2 ) * col0 + + col0 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9906
SELECT ALL + 58 DIV MAX( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + 58 / MAX ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9907
SELECT COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 94 * + + col2 * 67 * 21 - + col2 + + col2 / - 31 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT + + 55 - - COUNT( * ) - + + 99 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT + + 55 - - COUNT ( * ) - + + 99 FROM tab1 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9910
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) + - COUNT( * ), 92 DIV + + 36 AS col0 FROM tab0, tab0 cor0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-9910
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ), 92 / + + 36 AS col0 FROM tab0, tab0 cor0
----
NULL
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9911
SELECT 79 / + MAX( ALL - col1 ) + + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9911
SELECT 79 / + MAX ( ALL - col1 ) + + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + - 38 > + + col2
----

query I rowsort
SELECT - 84 + + + col1 - + col2 AS col0 FROM tab2
----
-47
-56
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9914
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 93 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT - SUM( DISTINCT + 38 ) FROM tab2 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - SUM ( DISTINCT + 38 ) FROM tab2 cor0
----
-38

query II rowsort
SELECT ALL - col1 AS col1, + col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT 72 AS col0, 41 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to a6b7e2e767c8e3143963b452cf7f8bc1

query II rowsort
SELECT ALL - ( col1 ) + - - 94, ( - - 6 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT DISTINCT 91 / + - CAST( NULL AS SIGNED ) + ( - col0 ) + - - ( + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT 91 / + - CAST ( NULL AS INTEGER ) + ( - col0 ) + - - ( + col2 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL - + MAX( - - ( + 27 ) ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - + MAX ( - - ( + 27 ) ) AS col1 FROM tab0 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 > - - 89 - - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - 73 FROM tab2
----
-113
-131
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT 39 < col0
----

query I rowsort
SELECT 10 + col1 FROM tab0
----
11
31
91

query I rowsort
SELECT DISTINCT - col2 * 33 AS col2 FROM tab0
----
-1551
-3267
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT col2 + + - col2 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT col2 + + - col2 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 * + col0 * + 89 AS col2, ( col1 ) + 54 col2 FROM tab2 WHERE + col1 < NULL
----

query I rowsort
SELECT DISTINCT 88 * col0 * - col0 AS col0 FROM tab0
----
-19800
-666072
-827992

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9931
SELECT * FROM tab1 WHERE NULL < + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9931
SELECT * FROM tab1 WHERE NULL < + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * + 43 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * + 43 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + MAX( DISTINCT 80 ) + COUNT( * ) FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + MAX ( DISTINCT 80 ) + COUNT ( * ) FROM tab2 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - 65 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - 65 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT + CAST( NULL AS SIGNED ) - + 26 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT + CAST ( NULL AS INTEGER ) - + 26 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT COUNT( * ) - - - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ( - - col2 ) + - col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT - - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9939
SELECT - - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col0 * 71 + 21 FROM tab0 AS cor0
----
1086
6198
6908

query I rowsort
SELECT DISTINCT + + col2 + - col1 * 97 FROM tab1 AS cor0
----
-1262
-426
-4491

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT col2 DIV + + col0 + + col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-9942
SELECT col2 / + + col0 + + col2 FROM tab1 AS cor0
----
59
68
97

query II rowsort
SELECT DISTINCT + 47 AS col1, + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 70 + - 61 * + - col2 FROM tab1 AS cor0
----
3669
4218
5926

query I rowsort
SELECT ALL col2 * - - col1 - - 15 - + col0 AS col2 FROM tab2 cor0
----
1142
3031
3826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT - - 84 + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - - 84 + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + ( + - col0 ) + + + 16 FROM tab0
----
10
-71
47
1
99
-81

query I rowsort
SELECT + 78 * + col0 * + - 21 * - - col1 * + 54 AS col1 FROM tab0 WHERE NOT + col1 + - col2 - 66 = - + col2
----
-107469180
-161601804
-8579844

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT - SUM( - ( ( + - col0 ) ) ) col0 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9949
SELECT DISTINCT - SUM ( - ( ( + - col0 ) ) ) col0 FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT ALL 93 DIV + 16 FROM tab2
----
5
5
5

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 93 / + 16 FROM tab2
----
5
5
5

query I rowsort
SELECT + + 33 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9952
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + - col2 IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + + SUM( ALL col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9954
SELECT + + SUM ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9955
SELECT - 9 DIV - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9955
SELECT - 9 / - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE 24 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT ALL - - col0 + + - col2 + 68 DIV - col0 FROM tab1 AS cor0
----
-46
23
26

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - - col0 + + - col2 + 68 / - col0 FROM tab1 AS cor0
----
-46
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT + + COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9958
SELECT + + COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col0 + - ( - - 18 ) FROM tab1 AS cor0
----
33
67
73

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN - 2 AND - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9961
SELECT ( + + col0 ) AS col2, - col0 DIV + 8 AS col0 FROM tab2 cor0
----
46
-5
64
-8
75
-9

skipif mysql # not compatible
query II rowsort label-9961
SELECT ( + + col0 ) AS col2, - col0 / + 8 AS col0 FROM tab2 cor0
----
46
-5
64
-8
75
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL + COUNT( * ) - + 13 + 6 * - SUM( DISTINCT - col1 ) FROM tab2 WHERE ( NOT col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + COUNT ( * ) - + 13 + 6 * - SUM ( DISTINCT - col1 ) FROM tab2 WHERE ( NOT col1 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL - col0 * col2 * + col2 AS col0 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT DISTINCT + col1 * ( + 81 ) FROM tab1
----
1134
3807
405

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT ALL col1 * + 98 + + + col0 DIV ( - 80 ) AS col2 FROM tab2
----
4998
6566
7546

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL col1 * + 98 + + + col0 / ( - 80 ) AS col2 FROM tab2
----
4998
6566
7546

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT 17 > NULL ) )
----

query I rowsort
SELECT ALL col1 + + + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE ( NULL ) = + 70 * + col2
----

query I rowsort
SELECT + + 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT - + 88 + + col1 AS col1 FROM tab0 cor0
----
-67
-7
-87

query I rowsort
SELECT DISTINCT + col1 + 17 * + 5 FROM tab0 AS cor0
----
106
166
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT + col2 - - 72 DIV - ( - + col2 ) AS col1 FROM tab1 cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-9972
SELECT + col2 - - 72 / - ( - + col2 ) AS col1 FROM tab1 cor0
----
60
69
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT - ( - col1 ) DIV + col1 - - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1214
-1826
-96

skipif mysql # not compatible
query I rowsort label-9973
SELECT - ( - col1 ) / + col1 - - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1214
-1826
-96

query I rowsort
SELECT + + col2 * - - 57 - + - col2 FROM tab0 AS cor0
----
2726
5742
580

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE + col0 * - - col0 < - - col2
----

query II rowsort
SELECT - col1 * col1, 21 * + col1 AS col0 FROM tab0
----
-1
21
-441
441
-6561
1701

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9977
SELECT DISTINCT + col1 * + 26 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + col1 * + 26 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + - CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col0 BETWEEN NULL AND + + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT 99 AS col0, COUNT( * ) FROM tab1
----
99
3

skipif mysql # not compatible
query II rowsort label-9979
SELECT 99 AS col0, COUNT ( * ) FROM tab1
----
99
3

query I rowsort
SELECT DISTINCT - 60 * - ( + + 59 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3540

query II rowsort
SELECT col0, + 9 FROM tab0
----
15
9
87
9
97
9

query II rowsort
SELECT - 92, col0 AS col1 FROM tab0
----
-92
15
-92
87
-92
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT + 22 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9983
SELECT + 22 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
25

query I rowsort
SELECT - col2 * 46 - - col1 FROM tab2 AS cor0 WHERE NOT NULL > col2 OR NOT NULL = + - col1
----

query I rowsort
SELECT ALL + - col2 * + - col0 * col0 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) * + col1 * + 94 AS col2 FROM tab1
----
-11750
-257936
-9759362

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + COUNT( * ) + + + 18 * - 83 FROM tab0
----
-1491

skipif mysql # not compatible
query I rowsort label-9987
SELECT + COUNT ( * ) + + + 18 * - 83 FROM tab0
----
-1491

query I rowsort
SELECT - col2 * + 24 + col1 AS col2 FROM tab0
----
-1047
-219
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT + COUNT( * ) + 22 - - MAX( ALL + col0 ) FROM tab1
----
116

skipif mysql # not compatible
query I rowsort label-9989
SELECT + COUNT ( * ) + 22 - - MAX ( ALL + col0 ) FROM tab1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT COUNT( * ) * - COUNT( col0 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9990
SELECT COUNT ( * ) * - COUNT ( col0 ) FROM tab0
----
-9

query II rowsort
SELECT ALL ( + - col2 ) AS col0, col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * - - 98 * col2 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT col2 * 88 DIV 44 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-9993
SELECT col2 * 88 / 44 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL 81 * col1 * - + 41 FROM tab2
----
-169371
-222507
-255717

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - + MAX( - 85 ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9995
SELECT - + MAX ( - 85 ) FROM tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT col0 + 92 FROM tab1 AS cor0
----
143
177
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT MIN( + col1 ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9997
SELECT MIN ( + col1 ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL COUNT( + - col0 ) + MIN( - ( - col1 ) ) * - + 42 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL COUNT ( + - col0 ) + MIN ( - ( - col1 ) ) * - + 42 FROM tab0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - + col2 col0 FROM tab0 WHERE NULL IN ( - ( + - 91 ), - col0 )
----

