sqllogictest
Artifact Content
Not logged in

Artifact b80b2512716b65f0273fc9dc349be1655618619d:


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 * FROM tab2 AS cor0 WHERE NOT 2 < col0
----

query II rowsort
SELECT DISTINCT + col1 * 98, col2 FROM tab1 AS cor0
----
1372
96
4606
68
490
59

query II rowsort
SELECT DISTINCT 30 * - col1 AS col1, 6 FROM tab0 cor0
----
-2430
6
-30
6
-630
6

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

query I rowsort
SELECT ALL - 82 * + + col1 AS col2 FROM tab1 AS cor0
----
-1148
-3854
-410

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 96 col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - 91 * ( 2 ) AS col0 FROM tab0
----
-182
-182
-182

query III rowsort
SELECT * FROM tab1 WHERE NOT + 42 - col2 / - 76 > + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + + col0 * + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
201019
2125
9996

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - 35
----

onlyif mysql # aggregate syntax: 
query II rowsort label-13
SELECT ALL - COUNT( * ) col0, 81 FROM tab0
----
-3
81

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

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

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

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

skipif mysql # not compatible
query I rowsort label-15
SELECT SUM ( DISTINCT - 8 ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - 8 + 78 FROM tab2 AS cor0
----
70

query II rowsort
SELECT + + col1 + - col0 + - col0 AS col1, + 45 * + 40 AS col1 FROM tab0 AS cor0 WHERE - 69 * - col2 IS NOT NULL
----
-153
1800
-193
1800
51
1800

query II rowsort
SELECT ALL - 98, + 13 AS col2 FROM tab1 AS cor0
----
-98
13
-98
13
-98
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT + CAST( MIN( - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-91

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-21
SELECT + 87 + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT + 87 + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT - col0 + CAST( + col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-528
-6576
-98

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

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

skipif mysql # not compatible
query I rowsort label-23
SELECT + col1 + + - col0 AS col0 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) > 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-24
SELECT + + 63 FROM tab2 WHERE + + col0 * CAST( - 32 AS SIGNED ) < - col0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-24
SELECT + + 63 FROM tab2 WHERE + + col0 * CAST ( - 32 AS INTEGER ) < - col0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL + SUM( + col0 ) + - 6 AS col1 FROM tab1
----
221

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + SUM ( + col0 ) + - 6 AS col1 FROM tab1
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-26
SELECT CAST( + 36 AS SIGNED ) + + + col2 + - 70 + - col2 * CAST( + 85 AS SIGNED ) * + + ( col0 ) FROM tab1
----
-416098
-426250
-525946

skipif mysql # not compatible
query I rowsort label-26
SELECT CAST ( + 36 AS INTEGER ) + + + col2 + - 70 + - col2 * CAST ( + 85 AS INTEGER ) * + + ( col0 ) FROM tab1
----
-416098
-426250
-525946

query I rowsort
SELECT DISTINCT + 98 + + - ( + - 13 ) AS col1 FROM tab0 AS cor0
----
111

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

query I rowsort
SELECT ALL 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-31
SELECT ALL - - CAST ( + col2 AS INTEGER ) * + col1 col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT DISTINCT - SUM( + - CAST( + col1 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-32
SELECT DISTINCT - SUM ( + - CAST ( + col1 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
103

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

query I rowsort
SELECT DISTINCT - col1 * + 38 * + col2 FROM tab1 AS cor0
----
-11210
-121448
-51072

query I rowsort
SELECT ( + col2 ) * 64 AS col1 FROM tab2 cor0
----
1472
2560
3712

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

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE col2 + 97 > NULL AND 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT 88 * + MIN( col1 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-38
SELECT 88 * + MIN ( col1 ) FROM tab0
----
88

query I rowsort
SELECT ( + - ( + 46 ) ) * - - col0 AS col2 FROM tab0
----
-4002
-4462
-690

query I rowsort
SELECT ALL 16 * + 32 FROM tab2
----
512
512
512

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT col2 DIV + 47 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-41
SELECT col2 / + 47 FROM tab0
----
0
1
2

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

query II rowsort
SELECT DISTINCT - 56 * - 43 + ( + col2 ), + 61 AS col1 FROM tab1 AS cor0
----
2467
61
2476
61
2504
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 24 col2 FROM tab2
----
1224
1608
1848

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

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

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

query I rowsort
SELECT ALL - - 8 * col2 * + - col1 FROM tab2 AS cor0 WHERE NOT + ( 6 ) + - 27 / + + col1 * col0 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT + - ( + 3 ) + - col2 FROM tab2 AS cor0
----
-26
-43
-61

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * + 12 * + COUNT( * ) + + - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - + 46 * - - 5
----
0

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * + 12 * + COUNT ( * ) + + - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - + 46 * - - 5
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT + 59 DIV 87 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-52
SELECT + 59 / 87 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT DISTINCT + MAX( DISTINCT + 25 ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT + MAX ( DISTINCT + 25 ) FROM tab0 AS cor0
----
25

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

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

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

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

query I rowsort
SELECT ALL + 49 * - col1 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ( - - SUM( ALL 32 ) ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-57
SELECT ( - - SUM ( ALL 32 ) ) AS col0 FROM tab0
----
96

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

query I rowsort
SELECT ALL + 10 + - col1 FROM tab0
----
-11
-71
9

query I rowsort
SELECT ALL + col1 + - col2 * + + col0 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT - 31 AS col2 FROM tab0 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 22 + - col0 * 47 FROM tab1 AS cor0
----
-2419
-4017
-4299

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT 44 * - MAX( ALL + + 98 ) AS col1 FROM tab0 AS cor0
----
-4312

skipif mysql # not compatible
query I rowsort label-63
SELECT 44 * - MAX ( ALL + + 98 ) AS col1 FROM tab0 AS cor0
----
-4312

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-67
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col2, - 16 + + 1 + + 62 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - 92 AND NULL
----

skipif mysql # not compatible
query II rowsort label-67
SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2, - 16 + + 1 + + 62 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - 92 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 61 / col0 IS NULL
----

query II rowsort
SELECT ALL col2 * 98, - col0 AS col1 FROM tab2 AS cor0
----
2254
-46
3920
-64
5684
-75

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

query I rowsort
SELECT ALL col2 * + + 64 FROM tab0
----
3008
6336
640

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT 19 + - - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT 19 + - - col1 < NULL
----
0

query I rowsort
SELECT ( - 62 ) * col2 * - + 99 AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + - col0 * + - col2 * col0, col1 AS col2 FROM tab0 cor0
----
10575
81
75690
21
931491
1

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT - + 98 + - COUNT( * ) - + 25 AS col2 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-78
SELECT - + 98 + - COUNT ( * ) - + 25 AS col2 FROM tab2 AS cor0
----
-126

query I rowsort
SELECT + 92 + + col0 AS col1 FROM tab0 AS cor0
----
107
179
189

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

query I rowsort
SELECT + + 44 + col0 FROM tab2 cor0
----
108
119
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT DISTINCT 18 * + + ( CAST( NULL AS SIGNED ) ) * + col0 + - 15 + - + 52 * - - 3 col0 FROM tab2 WHERE NULL NOT IN ( - 83 - - col2, col2, 22 * - + 36 * - col1 * + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-82
SELECT DISTINCT 18 * + + ( CAST ( NULL AS INTEGER ) ) * + col0 + - 15 + - + 52 * - - 3 col0 FROM tab2 WHERE NULL NOT IN ( - 83 - - col2, col2, 22 * - + 36 * - col1 * + col1 )
----

query I rowsort
SELECT + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT ALL + 82 DIV - col0 + - col0 AS col1 FROM tab0
----
-20
-87
-97

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + 82 / - col0 + - col0 AS col1 FROM tab0
----
-20
-87
-97

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL > + - 63
----

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

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

query I rowsort
SELECT ALL 17 - + 74 + - + 55 AS col0 FROM tab2
----
-112
-112
-112

query I rowsort
SELECT DISTINCT - + 66 * col1 AS col2 FROM tab1 AS cor0
----
-3102
-330
-924

query I rowsort
SELECT + 43 AS col0 FROM tab0 cor0 WHERE ( NULL ) <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT + col2 + + col0 DIV - 69 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-91
SELECT + col2 + + col0 / - 69 FROM tab1 AS cor0
----
58
67
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-92
SELECT ALL CAST( - - SUM( 57 ) AS SIGNED ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL CAST ( - - SUM ( 57 ) AS INTEGER ) FROM tab2 AS cor0
----
171

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 15 * ( - 83 )
----

query I rowsort
SELECT - col1 + - col0 * + col0 FROM tab2 AS cor0
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL 89 + + - COUNT( * ) AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL 89 + + - COUNT ( * ) AS col2 FROM tab2
----
86

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-99
SELECT + MIN ( 68 ) AS col1 FROM tab0
----
68

query I rowsort
SELECT DISTINCT 74 * + - col0 + - ( - ( - col2 ) ) AS col1 FROM tab1
----
-3870
-6349
-6802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-101
SELECT + COUNT( 1 ) * ( - COUNT( ALL + - col2 ) ) AS col2, - MIN( + CAST( NULL AS SIGNED ) ) - MIN( DISTINCT + ( + ( - col2 ) ) ) FROM tab1 cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-101
SELECT + COUNT ( 1 ) * ( - COUNT ( ALL + - col2 ) ) AS col2, - MIN ( + CAST ( NULL AS INTEGER ) ) - MIN ( DISTINCT + ( + ( - col2 ) ) ) FROM tab1 cor0
----
-9
NULL

query II rowsort
SELECT DISTINCT 5 AS col1, + col2 FROM tab0 AS cor0
----
5
10
5
47
5
99

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

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

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

query I rowsort
SELECT + + 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT 22 * + col1 FROM tab1
----
1034
110
308

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-108
SELECT MAX( col2 ) DIV - MIN( DISTINCT + col1 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-108
SELECT MAX ( col2 ) / - MIN ( DISTINCT + col1 ) FROM tab0 cor0
----
-99

query I rowsort
SELECT col0 * + + 47 - - col0 FROM tab1 cor0
----
2448
4080
4368

onlyif mysql # DIV for integer division: 
query II rowsort label-110
SELECT + 67 DIV 52 + 54 * - + col0 AS col2, + col0 FROM tab0 AS cor0
----
-4697
87
-5237
97
-809
15

skipif mysql # not compatible
query II rowsort label-110
SELECT + 67 / 52 + 54 * - + col0 AS col2, + col0 FROM tab0 AS cor0
----
-4697
87
-5237
97
-809
15

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT SUM( - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-111
SELECT SUM ( - col0 ) FROM tab0 AS cor0
----
-199

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

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

query II rowsort
SELECT DISTINCT + ( - col1 ) + + 43 AS col2, 96 FROM tab0 AS cor0 WHERE NOT 70 = + 45
----
-38
96
22
96
42
96

query I rowsort
SELECT - ( + - ( col2 ) ) * + + ( + - 84 ) FROM tab1 AS cor0
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-116
SELECT DISTINCT + COUNT( * ) * COUNT( * ) DIV + 65 * - + COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) / + 65 * - + COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - col2 + - col0 * + col2 > ( + col2 )
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - - 4 AND + col1 + col2
----
97
1
99

query I rowsort
SELECT DISTINCT 63 + + col1 FROM tab2
----
114
130
140

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

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

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

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

skipif mysql # not compatible
query I rowsort label-122
SELECT - MAX ( DISTINCT - col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-123
SELECT DISTINCT + 2 AS col2, 31 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + - 45 * + 49 - - - 11 IN ( - ( + - 28 ) - - + 58 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-123
SELECT DISTINCT + 2 AS col2, 31 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + - 45 * + 49 - - - 11 IN ( - ( + - 28 ) - - + 58 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + + col2 + - 10 * 55 * + - ( col0 ) FROM tab1 cor0
----
28146
46809
50118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * + 57 - 85 col1 FROM tab0 AS cor0
----
4874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-126
SELECT ALL + 77 * - CAST( col1 AS SIGNED ) FROM tab2 cor0
----
-3927
-5159
-5929

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL + 77 * - CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
-3927
-5159
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT ALL - - col0 * + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL - - col0 * + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + col0 AS col0, + 9 - - 79 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
88
87
88
97
88

query I rowsort
SELECT DISTINCT 27 + col0 + ( 39 ) AS col0 FROM tab2
----
112
130
141

query I rowsort
SELECT DISTINCT - col2 + - - col2 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-132
SELECT DISTINCT - 47 DIV - + MIN( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - 47 / - + MIN ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT ALL ( 39 ) DIV + 86 * 87 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL ( 39 ) / + 86 * 87 AS col1 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT col2 * - ( - - 35 ) - + + ( - ( + + 86 ) ) AS col0 FROM tab1
----
-1979
-2294
-3274

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT MIN( + - col0 ) - - 38 AS col0 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-136
SELECT MIN ( + - col0 ) - - 38 AS col0 FROM tab0
----
-59

query I rowsort
SELECT col2 * col2 - - + 5 AS col1 FROM tab2
----
1605
3369
534

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL + COUNT( * ) * 23 AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + COUNT ( * ) * 23 AS col1 FROM tab2
----
69

query II rowsort
SELECT DISTINCT + + 44 * ( - col0 ) + + col2 AS col1, col2 AS col2 FROM tab1 cor0
----
-2148
96
-3681
59
-3936
68

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( + col0 ) < 6
----
-1
-21
-81

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( 34, 6 * + col0, col2, col1 )
----

query I rowsort
SELECT - - 73 * + + ( col1 ) + + col1 - + + 39 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
3856
4926
6498

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-146
SELECT + ( - CAST( COUNT( * ) AS SIGNED ) ) + - SUM( - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + + 19 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT + ( - CAST ( COUNT ( * ) AS INTEGER ) ) + - SUM ( - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + + 19 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT + col0 + + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * 44 IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT ALL col1, col2 + - col0 AS col0 FROM tab1
----
14
45
47
-23
5
-26

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-154
SELECT ALL ( COUNT( + col2 ) ) + + CAST( 83 AS SIGNED ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL ( COUNT ( + col2 ) ) + + CAST ( 83 AS INTEGER ) FROM tab0
----
86

query I rowsort
SELECT DISTINCT + 68 + col2 FROM tab0 AS cor0
----
115
167
78

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT + col1 DIV - 30 + - ( - 67 ) * + - 0 AS col1 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-158
SELECT + col1 / - 30 + - ( - 67 ) * + - 0 AS col1 FROM tab2 AS cor0
----
-1
-2
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL + - MIN( - 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + - MIN ( - 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

query I rowsort
SELECT col1 - 45 * - col1 FROM tab1
----
2162
230
644

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT DISTINCT - col0 DIV - + col0 - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-173
-193
-29

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - col0 / - + col0 - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-173
-193
-29

query I rowsort
SELECT - col1 + 81 AS col0 FROM tab1 AS cor0
----
34
67
76

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT + + col2 + - 23 DIV col1 AS col2 FROM tab0 AS cor0
----
47
76
9

skipif mysql # not compatible
query I rowsort label-168
SELECT + + col2 + - 23 / col1 AS col2 FROM tab0 AS cor0
----
47
76
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT - + COUNT( * ) + - + 68 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-171
SELECT - + COUNT ( * ) + - + 68 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
201

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

query I rowsort
SELECT - col1 + 85 * 56 AS col2 FROM tab2 AS cor0
----
4683
4693
4709

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT DISTINCT - 56 DIV col1 - ( + + col0 ) col0 FROM tab1 cor0
----
-55
-92
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-174
SELECT DISTINCT - 56 / col1 - ( + + col0 ) col0 FROM tab1 cor0
----
-55
-92
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-175
SELECT - col2 DIV 93 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-175
SELECT - col2 / 93 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - 89 FROM tab2 WHERE NOT - col1 - - col2 = NULL
----

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

query I rowsort
SELECT 20 * + 68 AS col0 FROM tab0
----
1360
1360
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL SUM( + + 97 ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL SUM ( + + 97 ) FROM tab1
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT COUNT( * ) FROM tab1 WHERE NOT ( 70 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-180
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( 70 IS NULL )
----
3

query I rowsort
SELECT DISTINCT col0 * ( - 76 ) * + col0 AS col1 FROM tab2
----
-160816
-311296
-427500

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-183
SELECT ALL SUM ( col0 ) col2 FROM tab0 AS cor0
----
199

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

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

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

query I rowsort
SELECT col1 + - 8 * 86 FROM tab1
----
-641
-674
-683

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( 14 - + col2 )
----

query I rowsort
SELECT 59 + + ( - col0 ) AS col2 FROM tab0
----
-28
-38
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-191
SELECT ALL MAX( CAST( + col2 AS SIGNED ) ) FROM tab0
----
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT COUNT( * ) * + ( - 98 * - COUNT( * ) ) col1 FROM tab0
----
882

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

query I rowsort
SELECT ALL ( col1 ) + 89 AS col1 FROM tab1
----
103
136
94

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

query I rowsort
SELECT ALL ( - ( - 17 ) ) FROM tab2
----
17
17
17

query I rowsort
SELECT col0 + col0 * 75 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT ALL - 76 FROM tab1 WHERE ( - 92 ) IS NULL
----

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

query I rowsort
SELECT DISTINCT - 39 FROM tab0 WHERE - ( - 81 ) * 52 IS NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 73 + 91 IN ( + ( 52 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + ( + col0 ) * + 66 AS col1 FROM tab1
----
3366
5610
6006

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - 0 + + 25
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( 13 + col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 13 col2 FROM tab2
----
10
27
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL SUM( DISTINCT + 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL SUM ( DISTINCT + 80 ) FROM tab1
----
80

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

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

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

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

query I rowsort
SELECT ALL - col1 - col1 AS col0 FROM tab0 cor0
----
-162
-2
-42

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

query I rowsort
SELECT 16 + 15 AS col2 FROM tab2 AS cor0
----
31
31
31

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( 15 ) < ( col1 )
----
10
47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col2 FROM tab0 AS cor0 WHERE - col2 NOT IN ( + 7 )
----
12

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

skipif mysql # not compatible
query I rowsort label-224
SELECT - SUM ( DISTINCT 10 ) AS col2 FROM tab2 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT - MIN( + 65 ) FROM tab1 AS cor0 WHERE NOT ( - col2 ) >= col0 * col2 + + col0
----
-65

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT - MIN ( + 65 ) FROM tab1 AS cor0 WHERE NOT ( - col2 ) >= col0 * col2 + + col0
----
-65

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + 67 + + ( - 52 + - 73 * + 67 ) * + 85 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT - 47 * + col1 * - 58 FROM tab0
----
220806
2726
57246

query I rowsort
SELECT DISTINCT col0 * + 46 AS col1 FROM tab2
----
2116
2944
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL SUM( ALL col0 ) AS col0 FROM tab1 WHERE NOT - col0 + 70 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL SUM ( ALL col0 ) AS col0 FROM tab1 WHERE NOT - col0 + 70 / col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT 88 * + + SUM( - col1 ) AS col1 FROM tab2
----
-17160

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT 88 * + + SUM ( - col1 ) AS col1 FROM tab2
----
-17160

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 1 * + col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN col2 AND + col0
----
75
67
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL - SUM( col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - SUM ( col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT + + 34 * + col1 AS col1 FROM tab1 cor0
----
1598
170
476

query I rowsort
SELECT DISTINCT col2 * + - col2 - + - col1 FROM tab2 AS cor0
----
-1523
-3297
-478

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

skipif mysql # not compatible
query I rowsort label-244
SELECT - COUNT ( * ) / 65 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 64 * + + col1 * + - 35 AS col0 FROM tab1 AS cor0
----
105280
11200
31360

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

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT - col2 + + 6 DIV + col0 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-247
SELECT - col2 + + 6 / + col0 FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 2 * + 91 AS col0 FROM tab2 WHERE NULL IS NOT NULL AND ( ( NULL ) IS NULL )
----

query I rowsort
SELECT ALL + ( + col1 ) * col0 AS col1 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * - 55 + - + col1 col0 FROM tab1
----
-2150
-2159
-2192

query I rowsort
SELECT ( + col2 ) * + 16 * + col1 + - col2 + 90 FROM tab0
----
1575
3440
60955

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) < ( - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) < ( - 65 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 ) AND col2 / ( col1 * col2 ) + col0
----

query I rowsort
SELECT DISTINCT + - col0 - - - col0 * + + 78 FROM tab0 AS cor0
----
-1185
-6873
-7663

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 3 ) NOT BETWEEN ( col0 ) AND - 88 + col2 / - col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT - SUM( - 16 ) - - - MAX( DISTINCT + 12 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-261
SELECT - SUM ( - 16 ) - - - MAX ( DISTINCT + 12 ) FROM tab0
----
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT col2 DIV col1 * + - 39 FROM tab0 cor0
----
-3861
0
0

skipif mysql # not compatible
query I rowsort label-264
SELECT col2 / col1 * + - 39 FROM tab0 cor0
----
-3861
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 96 FROM tab0 cor0
----
4512
9504
960

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-271
SELECT * FROM tab1 WHERE NOT NULL = - 24 / + col0 * CAST( - 52 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-271
SELECT * FROM tab1 WHERE NOT NULL = - 24 / + col0 * CAST ( - 52 AS INTEGER )
----

query II rowsort
SELECT ALL - col2, - ( + + col2 ) * + - 22 AS col0 FROM tab1
----
-59
1298
-68
1496
-96
2112

query I rowsort
SELECT + 35 * + 37 FROM tab0
----
1295
1295
1295

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

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

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

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

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

query II rowsort
SELECT - col2 * + col1 AS col0, + col1 * - 1 FROM tab0
----
-210
-21
-3807
-81
-99
-1

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

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

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

query I rowsort
SELECT DISTINCT - 35 * - - 73 FROM tab0
----
-2555

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-284
SELECT ( CAST( + col0 AS SIGNED ) ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-284
SELECT ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> 71
----

query II rowsort
SELECT + + col0, - 73 * + col0 * 63 + - col0 AS col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-287
SELECT col0 + + - CAST( NULL AS DECIMAL ) AS col0, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-287
SELECT col0 + + - CAST ( NULL AS REAL ) AS col0, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + col0 * + 95 + 33 FROM tab2 AS cor0
----
4403
6113
7158

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 68 <> NULL
----

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

query I rowsort
SELECT 7 * + col0 AS col2 FROM tab0 AS cor0
----
105
609
679

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

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

query II rowsort
SELECT ALL + + col1 + col0 AS col1, col0 FROM tab1 AS cor0
----
138
91
65
51
90
85

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

query I rowsort
SELECT DISTINCT 7 * + - 14 AS col2 FROM tab2
----
-98

query I rowsort
SELECT DISTINCT 77 + - 40 AS col0 FROM tab0
----
37

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

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + 17 / + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * + 43 FROM tab0
----
-2021
-4257
-430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT - 31 + + - CAST( 96 AS SIGNED ) FROM tab1 WHERE - - col2 BETWEEN - ( 40 ) AND + + col1
----

skipif mysql # not compatible
query I rowsort label-300
SELECT - 31 + + - CAST ( 96 AS INTEGER ) FROM tab1 WHERE - - col2 BETWEEN - ( 40 ) AND + + col1
----

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

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

query I rowsort
SELECT ALL - 91 + + col2 FROM tab2
----
-33
-51
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-303
SELECT + CAST( NULL AS DECIMAL ) / + SUM( DISTINCT ( - 9 ) ) col0 FROM tab0 WHERE - 86 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-303
SELECT + CAST ( NULL AS REAL ) / + SUM ( DISTINCT ( - 9 ) ) col0 FROM tab0 WHERE - 86 IS NOT NULL
----
NULL

query I rowsort
SELECT - 18 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-305
SELECT - col2 + - - col2 * - col2 * col1 * - CAST( + col0 AS SIGNED ) AS col1, + col1 + 70 * - col1 FROM tab1 AS cor0
----
1479366
-345
19776780
-3243
6580128
-966

skipif mysql # not compatible
query II rowsort label-305
SELECT - col2 + - - col2 * - col2 * col1 * - CAST ( + col0 AS INTEGER ) AS col1, + col1 + 70 * - col1 FROM tab1 AS cor0
----
1479366
-345
19776780
-3243
6580128
-966

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

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

query I rowsort
SELECT + 47 + col2 - + 70 FROM tab1 AS cor0
----
36
45
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + SUM( ALL + ( + - 66 ) ) FROM tab0 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-310
SELECT + SUM ( ALL + ( + - 66 ) ) FROM tab0 cor0
----
-198

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT + + MAX( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 51 * col2 * + 22 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-312
SELECT + + MAX ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 51 * col2 * + 22 IS NULL
----
-59

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

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

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

query II rowsort
SELECT ALL + col0, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

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

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

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

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

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

query I rowsort
SELECT - col2 + - + 14 FROM tab1 AS cor0
----
-110
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL COUNT( * ) * - + 12 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL COUNT ( * ) * - + 12 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT ALL - 79 + - - col1 + - + col1 AS col1 FROM tab2
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT DISTINCT - 85 + col2 DIV + + col2 + col0 AS col1 FROM tab1
----
-33
1
7

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT - 85 + col2 / + + col2 + col0 AS col1 FROM tab1
----
-33
1
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * - col2 * col1 col2 FROM tab1 AS cor0
----
-34944
-7670
-83096

query I rowsort
SELECT ALL + col0 + + 50 FROM tab0 AS cor0
----
137
147
65

query I rowsort
SELECT + col2 + + 23 FROM tab1 AS cor0 WHERE ( 5 ) <> - 87
----
119
82
91

query I rowsort
SELECT + col2 + + + 16 * col1 FROM tab0 AS cor0
----
115
1343
346

query I rowsort
SELECT DISTINCT - col0 - - col1 + + col0 + + col1 + - col2 * - col0 FROM tab2 AS cor0
----
1160
2714
4484

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT + 2 + + - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT + 2 + + - COUNT ( * ) AS col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-332
SELECT DISTINCT + 0 + + CAST( - - col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT + 0 + + CAST ( - - col0 AS INTEGER ) FROM tab2
----
46
64
75

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

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

query I rowsort
SELECT DISTINCT + col0 + + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
240
7656
9506

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-336
SELECT + 84 * + + CAST( NULL AS DECIMAL ) col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-336
SELECT + 84 * + + CAST ( NULL AS REAL ) col2 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-340
SELECT 70 AS col2, col2 + - col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
70
NULL
70
NULL
70
NULL

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT col2 * - 51 + - col0 DIV + col1 FROM tab1 WHERE NOT + 60 + - + 59 IS NULL
----
-3026
-3469
-4899

skipif mysql # not compatible
query I rowsort label-346
SELECT col2 * - 51 + - col0 / + col1 FROM tab1 WHERE NOT + 60 + - + 59 IS NULL
----
-3026
-3469
-4899

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT + COUNT( - - 72 ), + COUNT( 69 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-347
SELECT + COUNT ( - - 72 ), + COUNT ( 69 ) FROM tab0
----
3
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - 25 * + COUNT( ALL - + 6 ) * - + 89 + + 54 FROM tab0
----
6729

skipif mysql # not compatible
query I rowsort label-349
SELECT - 25 * + COUNT ( ALL - + 6 ) * - + 89 + + 54 FROM tab0
----
6729

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

skipif mysql # not compatible
query I rowsort label-350
SELECT SUM ( + + col0 ) FROM tab1
----
227

query II rowsort
SELECT + col1 * - + col0 AS col2, - col2 + col2 FROM tab0
----
-1215
0
-1827
0
-97
0

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 39 * - col0, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - ( col1 ) + - 71 FROM tab0 AS cor0
----
-152
-72
-92

query I rowsort
SELECT + 8 * + 10 + ( 19 ) AS col2 FROM tab0
----
99
99
99

query I rowsort
SELECT DISTINCT + 18 + - 37 AS col2 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT MIN( DISTINCT - 37 ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-358
SELECT MIN ( DISTINCT - 37 ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT 55 + 13 DIV col2 FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-359
SELECT 55 + 13 / col2 FROM tab1
----
55
55
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-362
SELECT MAX ( col0 ) FROM tab0 AS cor0
----
97

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

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 6 - + - col0 AS col2 FROM tab2 AS cor0
----
2398
4998
5106

query I rowsort
SELECT + col1 * + + col1 - + col0 + + 4 AS col0 FROM tab0 AS cor0
----
-92
358
6550

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 / - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT MAX( - 25 ) * 52 AS col0 FROM tab0
----
-1300

skipif mysql # not compatible
query I rowsort label-368
SELECT MAX ( - 25 ) * 52 AS col0 FROM tab0
----
-1300

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

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT 69 DIV - col2 - 94 + + ( col2 ) * - col1 AS col2 FROM tab2
----
-1270
-3175
-3981

skipif mysql # not compatible
query I rowsort label-370
SELECT 69 / - col2 - 94 + + ( col2 ) * - col1 AS col2 FROM tab2
----
-1270
-3175
-3981

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT 67 DIV + 23 - - col1 FROM tab2
----
53
69
79

skipif mysql # not compatible
query I rowsort label-371
SELECT 67 / + 23 - - col1 FROM tab2
----
53
69
79

onlyif mysql # DIV for integer division: 
query II rowsort label-372
SELECT - col2 DIV col1 - - col2 AS col2, + col0 + - + 54 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
43
10
33
47
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-372
SELECT - col2 / col1 - - col2 AS col2, + col0 + - + 54 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
43
10
33
47
-39

query I rowsort
SELECT ALL + + 60 AS col2 FROM tab0 AS cor0
----
60
60
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL ( + + MAX( ALL - col1 ) ) * - - 23 FROM tab1 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL ( + + MAX ( ALL - col1 ) ) * - - 23 FROM tab1 AS cor0
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT - col0 DIV - 26 + - 51 + - + col0 FROM tab1 AS cor0
----
-101
-133
-139

skipif mysql # not compatible
query I rowsort label-376
SELECT - col0 / - 26 + - 51 + - + col0 FROM tab1 AS cor0
----
-101
-133
-139

query II rowsort
SELECT - col2 AS col2, 5 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 92 FROM tab0 cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-379
SELECT + ( + 5 ) col2, 88 + - CAST( NULL AS SIGNED ) * + + ( col2 ) * + col2 + + - col2 - + - 7 FROM tab1 AS cor0
----
5
NULL
5
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-379
SELECT + ( + 5 ) col2, 88 + - CAST ( NULL AS INTEGER ) * + + ( col2 ) * + col2 + + - col2 - + - 7 FROM tab1 AS cor0
----
5
NULL
5
NULL
5
NULL

query II rowsort
SELECT ALL + 58, - 38 * col0 AS col1 FROM tab2
----
58
-1748
58
-2432
58
-2850

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

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

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

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

query I rowsort
SELECT ALL + 6 + + - 6 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 13 + + - 46 AS col1 FROM tab0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-385
SELECT * FROM tab0 WHERE NULL = + CAST( NULL AS SIGNED ) + - col1 - + 96 + - - 79 * + col1
----

skipif mysql # not compatible
query III rowsort label-385
SELECT * FROM tab0 WHERE NULL = + CAST ( NULL AS INTEGER ) + - col1 - + 96 + - - 79 * + col1
----

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

query III rowsort
SELECT * FROM tab0 WHERE - - 23 - - 3 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + - 32 + - + col0 col1 FROM tab1
----
-231285
-265083
-83283

query II rowsort
SELECT DISTINCT + col0 AS col0, - col1 * - 7 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
357
64
539
75
469

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-390
SELECT ALL - col2, - CAST( 94 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-94
-68
-94
-96
-94

skipif mysql # not compatible
query II rowsort label-390
SELECT ALL - col2, - CAST ( 94 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-94
-68
-94
-96
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT DISTINCT + 74 AS col1 FROM tab1 AS cor0 WHERE 27 BETWEEN ( NULL ) AND - CAST( 46 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT + 74 AS col1 FROM tab1 AS cor0 WHERE 27 BETWEEN ( NULL ) AND - CAST ( 46 AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-393
SELECT ALL + - 21 AS col2, SUM( DISTINCT - 18 ) + + 87 AS col0 FROM tab0 cor0
----
-21
69

skipif mysql # not compatible
query II rowsort label-393
SELECT ALL + - 21 AS col2, SUM ( DISTINCT - 18 ) + + 87 AS col0 FROM tab0 cor0
----
-21
69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-395
SELECT + 27 + + CAST( - - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
123
86
95

skipif mysql # not compatible
query I rowsort label-395
SELECT + 27 + + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
123
86
95

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

skipif mysql # not compatible
query I rowsort label-396
SELECT + - COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-398
SELECT DISTINCT + + col0 + + - CAST( NULL AS DECIMAL ) AS col2, ( + 82 ) + + + col1 * - col0 FROM tab2 AS cor0
----
NULL
-2264
NULL
-4846
NULL
-4943

skipif mysql # not compatible
query II rowsort label-398
SELECT DISTINCT + + col0 + + - CAST ( NULL AS REAL ) AS col2, ( + 82 ) + + + col1 * - col0 FROM tab2 AS cor0
----
NULL
-2264
NULL
-4846
NULL
-4943

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

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

query I rowsort
SELECT col1 + + col0 * - col2 * - col0 - 82 AS col0 FROM tab2 AS cor0
----
163835
326235
48637

query I rowsort
SELECT - col2 + + - col2 AS col0 FROM tab0 AS cor0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 cor0 WHERE NOT ( - col0 ) IN ( col1 )
----
15
87
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 + - col0 - - ( - + col0 ) col0 FROM tab0
----
-101
-121
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 + + 48 <> 24
----
0

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 + + 48 <> 24
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 / - 4 ) NOT BETWEEN NULL AND 44
----

query I rowsort
SELECT + 99 * + + col2 AS col2 FROM tab2
----
2277
3960
5742

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

query I rowsort
SELECT DISTINCT - col0 * - col0 * + + col1 FROM tab1 AS cor0
----
36125
36414
389207

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + - 77
----

query I rowsort
SELECT - + 16 * - 94 AS col1 FROM tab0 AS cor0
----
1504
1504
1504

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

skipif mysql # not compatible
query I rowsort label-413
SELECT ( MIN ( - 17 ) ) AS col1 FROM tab2 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - ( - + col0 ) + ( - 63 ) col2 FROM tab0 AS cor0
----
1152
1764
34

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

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

query I rowsort
SELECT + + ( - col2 ) + - col1 * + + 27 AS col2 FROM tab1 AS cor0
----
-1337
-194
-474

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

query I rowsort
SELECT + 76 * + - col2 + + 3 FROM tab2 AS cor0
----
-1745
-3037
-4405

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT + 10 * - + 59 / - 15 + + col1 / - + col2 * - col0 * - ( col1 ) + + + col2 * 58 + + - col2 + - col0 - col2 * + CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + 10 * - + 59 / - 15 + + col1 / - + col2 * - col0 * - ( col1 ) + + + col2 * 58 + + - col2 + - col0 - col2 * + CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT + MIN( - - 84 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-422
SELECT + MIN ( - - 84 ) FROM tab2 AS cor0
----
84

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

query I rowsort
SELECT ALL + 73 + + - col2 AS col0 FROM tab2
----
15
33
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-425
SELECT MAX( + - col0 ) AS col1, CAST( + AVG ( DISTINCT - col2 ) AS SIGNED ) * + - 84 FROM tab0
----
-15
4368

skipif mysql # not compatible
query II rowsort label-425
SELECT MAX ( + - col0 ) AS col1, CAST ( + AVG ( DISTINCT - col2 ) AS INTEGER ) * + - 84 FROM tab0
----
-15
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT ALL - 52 + - SUM( col1 ) * COUNT( ALL + + col2 ) col0 FROM tab2
----
-637

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-426
SELECT ALL - 52 + - SUM ( col1 ) * COUNT ( ALL + + col2 ) col0 FROM tab2
----
-637

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + 41 IN ( col1 + col1 - - col2 / - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 93 * col2 col1, col0 AS col1 FROM tab1 cor0
----
5487
85
6324
91
8928
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT CAST( NULL AS SIGNED ) + + col2 / - + col2 + + 90 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT CAST ( NULL AS INTEGER ) + + col2 / - + col2 + + 90 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab2 WHERE NULL = + 48
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT + MAX( - col1 ) + + 8 * - + 30 FROM tab1 cor0
----
-245

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT + MAX ( - col1 ) + + 8 * - + 30 FROM tab1 cor0
----
-245

query I rowsort
SELECT DISTINCT + - col0 - + 29 FROM tab0 AS cor0
----
-116
-126
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT DISTINCT COUNT( * ) - - 4 FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT COUNT ( * ) - - 4 FROM tab2 cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT - + CAST( - MIN( ALL + 12 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-436
SELECT - + CAST ( - MIN ( ALL + 12 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * + ( - + col0 ), - 22 + col2, - col2, - - col2, + - col1 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-438
SELECT DISTINCT + 79 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT + 79 / + col1 AS col1 FROM tab1 AS cor0
----
1
15
5

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - col2 <> + 21 AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL 95 * + col2 - ( - - col1 ) FROM tab1 cor0
----
5600
6413
9106

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

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT 95 * + 87 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
24795

skipif mysql # not compatible
query I rowsort label-442
SELECT 95 * + 87 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
24795

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-443
SELECT COUNT ( + 50 ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-444
SELECT + MAX( col2 ) AS col2, COUNT( * ) + + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-444
SELECT + MAX ( col2 ) AS col2, COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT DISTINCT - COUNT( * ) * + 33 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-445
SELECT DISTINCT - COUNT ( * ) * + 33 FROM tab1
----
-99

query I rowsort
SELECT DISTINCT - col1 + - col0 - - - ( + col2 ) + + col0 * + col2 / 64 * + col2 + 39 FROM tab1 WHERE NOT NULL > + ( - - col0 )
----

query I rowsort
SELECT ALL 62 + + - 78 FROM tab0, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 92 ) col0, col2 FROM tab0 AS cor0
----
-92
10
-92
47
-92
99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-452
SELECT - col0 / + 87 AS col0 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-453
SELECT + 50 DIV - - col0 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-453
SELECT + 50 / - - col0 FROM tab0 cor0
----
0
0
3

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + 59 + + - col0 IS NULL
----

query I rowsort
SELECT ALL - 30 + - col2 + - col2 FROM tab0
----
-124
-228
-50

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

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

query I rowsort
SELECT ALL + + 33 AS col0 FROM tab0 WHERE NULL > + - col1
----

query II rowsort
SELECT DISTINCT + col1 + - 4 AS col2, - col0 FROM tab2 WHERE + 94 IN ( col0 )
----

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

query I rowsort
SELECT + col1 + - - col2 + - + col2 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 * ( ( - + 40 ) ) - + col1 + + col1 col2 FROM tab1 cor0
----
-1000
-1000
-1000

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-466
SELECT DISTINCT - 12 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT - 12 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - 12 * col0 AS col0, - col2 FROM tab2 AS cor0
----
-552
-23
-768
-40
-900
-58

query II rowsort
SELECT ALL + col1 * 65 AS col1, + 62 FROM tab0 AS cor0
----
1365
62
5265
62
65
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT 64 * - col1 + - + 80 + 50 / + col1 NOT BETWEEN NULL AND - col1 * - - col0
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT 64 * - col1 + - + 80 + 50 / + col1 NOT BETWEEN NULL AND - col1 * - - col0
----
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 14, col2, - - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT SUM( 74 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-474
SELECT SUM ( 74 ) FROM tab2
----
222

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 >= NULL
----

query I rowsort
SELECT ALL col1 * - 25 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-2025
-25
-525

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

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

query I rowsort
SELECT DISTINCT + - 29 AS col0 FROM tab1 cor0
----
-29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - - 84 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * - col0 * + - col2 col0 FROM tab1 AS cor0
----
479808
491470
606424

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT DISTINCT col2 * ( + + ( + - 88 ) ) * + - col0 * - col1 * - 51 + - 18 DIV col0 FROM tab1
----
112536600
1305271968
307625472

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT col2 * ( + + ( + - 88 ) ) * + - col0 * - col1 * - 51 + - 18 / col0 FROM tab1
----
112536600
1305271968
307625472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT - 24 - 5 + + ( MAX( - 15 ) ) AS col1 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-485
SELECT - 24 - 5 + + ( MAX ( - 15 ) ) AS col1 FROM tab2
----
-44

query II rowsort
SELECT DISTINCT col2 * + col2 + ( - - 82 ) * 34 AS col1, + 78 FROM tab1 cor0
----
12004
78
6269
78
7412
78

query I rowsort
SELECT col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE 30 * + 74 * + + col2 + + 95 * - col1 * 82 IS NULL
----

query II rowsort
SELECT ALL col0, - col0 * - - 27 FROM tab1
----
51
-1377
85
-2295
91
-2457

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

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

query I rowsort
SELECT ALL + - col0 * + 64 - + - col0 FROM tab2 AS cor0
----
-2898
-4032
-4725

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT DISTINCT - 44 * - MIN( + 94 ) FROM tab2 cor0
----
4136

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - 44 * - MIN ( + 94 ) FROM tab2 cor0
----
4136

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-493
SELECT CAST( - col0 AS SIGNED ), col0 AS col1 FROM tab1 cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-493
SELECT CAST ( - col0 AS INTEGER ), col0 AS col1 FROM tab1 cor0
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-494
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-10
-47
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT + MAX( DISTINCT col2 ) col1 FROM tab1
----
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-497
SELECT 82 * - col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-1722
NULL
-6642
NULL
-82
NULL

skipif mysql # not compatible
query II rowsort label-497
SELECT 82 * - col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-1722
NULL
-6642
NULL
-82
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 69 <= NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL >= NULL
----

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

query I rowsort
SELECT DISTINCT 95 * col0 AS col0 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL COUNT( * ) * - 7 AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL COUNT ( * ) * - 7 AS col1 FROM tab2
----
-21

query I rowsort
SELECT ALL col2 + + col2 FROM tab0 WHERE NOT - 20 * 34 * - col0 + + + col2 - - - col0 IS NULL
----
198
20
94

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

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

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

query I rowsort
SELECT ALL + 33 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT 70 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + - 88 + + + col0 AS col0 FROM tab2 AS cor0
----
-13
-24
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-509
SELECT DISTINCT + 96, + col2 * - - 88 + - 18 * + - 19 + + - 78 + CAST( - 87 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
96
5369
96
6161
96
8625

skipif mysql # not compatible
query II rowsort label-509
SELECT DISTINCT + 96, + col2 * - - 88 + - 18 * + - 19 + + - 78 + CAST ( - 87 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
96
5369
96
6161
96
8625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT - COUNT( * ) + SUM( ALL - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-511
SELECT - COUNT ( * ) + SUM ( ALL - + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT + - ( 5 ) + - COUNT( * ) + + 47 AS col2 FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-514
SELECT + - ( 5 ) + - COUNT ( * ) + + 47 AS col2 FROM tab2 cor0
----
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT ALL - 8 + - - CAST( NULL AS SIGNED ) - - + 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL - 8 + - - CAST ( NULL AS INTEGER ) - - + 15 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - ( 20 ), + col2, + 58 )
----

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

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

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL = - + col0 * - ( + col0 ) / + col0
----

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

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT + col1 / + 55 FROM tab2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-522
SELECT 8 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT 8 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL + - CAST( + - 19 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + - CAST ( + - 19 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) FROM tab0 cor0 WHERE NOT + 9 * + col1 = - col0 + + + col0
----
0

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) FROM tab0 cor0 WHERE NOT + 9 * + col1 = - col0 + + + col0
----
0

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

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

query II rowsort
SELECT - - 9 * - + col2, - 18 / + 56 + - - 89 + - col2 FROM tab1 AS cor0 WHERE NOT NULL < - col0 + + col1 * + 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 2 col2 FROM tab1
----
-10
-28
-94

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - col2 col2 FROM tab1
----
-25075
-290836
-68544

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-532
SELECT COUNT ( * ) col1, COUNT ( * ) AS col0 FROM tab2
----
3
3

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

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

query I rowsort
SELECT + 14 * - 15 AS col0 FROM tab1
----
-210
-210
-210

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 87 ) + + + col2 + - col0 col1 FROM tab0
----
10
119
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + - + col0 + - col1 col0 FROM tab0
----
-86
-88
-98

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT + 34 - - ( + - col1 ) + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1557
3331
512

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 90 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT + - 40 / - + CAST( NULL AS SIGNED ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT + - 40 / - + CAST ( NULL AS INTEGER ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-548
SELECT - 60 DIV + - 47, 71 AS col2 FROM tab2 cor0
----
1
71
1
71
1
71

skipif mysql # not compatible
query II rowsort label-548
SELECT - 60 / + - 47, 71 AS col2 FROM tab2 cor0
----
1
71
1
71
1
71

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-552
SELECT col0 - - - col1 DIV - - col0 AS col2, - col0 FROM tab2
----
45
-46
63
-64
75
-75

skipif mysql # not compatible
query II rowsort label-552
SELECT col0 - - - col1 / - - col0 AS col2, - col0 FROM tab2
----
45
-46
63
-64
75
-75

query I rowsort
SELECT 76 - 69 FROM tab1
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) + col0 col1 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT + 32 - CAST( + COUNT( ALL + + col2 ) AS SIGNED ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-555
SELECT + 32 - CAST ( + COUNT ( ALL + + col2 ) AS INTEGER ) AS col1 FROM tab1
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 * + ( + 34 ) * 7 + - 30 col2 FROM tab2
----
-11001
-15302
-17938

query II rowsort
SELECT ALL + col2, col2 FROM tab1 WHERE + 81 - - col1 * - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 99 - - - col0 FROM tab0 cor0
----
-114
-186
-196

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

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

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab1
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-562
SELECT + CAST( NULL AS SIGNED ), col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-562
SELECT + CAST ( NULL AS INTEGER ), col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab1 AS cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-564
SELECT - COUNT( * ) DIV CAST( 48 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-564
SELECT - COUNT ( * ) / CAST ( 48 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 85 * - 53 col2 FROM tab0 AS cor0
----
-4505
-4505
-4505

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

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

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

query I rowsort
SELECT ALL - col2 * + 37 AS col0 FROM tab1
----
-2183
-2516
-3552

query I rowsort
SELECT - col2 * + + 82 FROM tab1
----
-4838
-5576
-7872

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-572
SELECT ALL * FROM tab2 WHERE + - col0 - col0 <> + CAST( + 20 AS SIGNED ) - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-572
SELECT ALL * FROM tab2 WHERE + - col0 - col0 <> + CAST ( + 20 AS INTEGER ) - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + + col2 * col2 + + 39 + - + col1 FROM tab0 AS cor0
----
118
2167
9839

query I rowsort
SELECT ALL col2 + col0 + - - col0 FROM tab1
----
198
229
250

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL + COUNT( ALL 78 ) + - 46 FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + COUNT ( ALL 78 ) + - 46 FROM tab0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT 31 DIV - + col0 - + ( col0 ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-578
SELECT 31 / - + col0 - + ( col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT + 32 - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-579
SELECT + 32 - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
35

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

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

query I rowsort
SELECT - - 58 + col0 FROM tab0 AS cor0
----
145
155
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT - col1 / + CAST( NULL AS SIGNED ) + - col2 col0 FROM tab0 AS cor0 WHERE NULL <> + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-582
SELECT - col1 / + CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab0 AS cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT 7 + - 54 AS col1 FROM tab1 AS cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col0 / - 36 * + + col1 * 80 * + + 2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT - 49 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-585
SELECT - 49 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + col2 + - + col0 AS col1 FROM tab0
----
-56
113
3

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

skipif mysql # not compatible
query I rowsort label-587
SELECT - ( - MIN ( ALL ( - col2 ) ) ) AS col0 FROM tab1
----
-96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-588
SELECT DISTINCT + + SUM ( - col0 ) col1 FROM tab0 AS cor0 WHERE + 12 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, + 98 FROM tab0
----
15
98
87
98
97
98

query I rowsort
SELECT - col0 * - 69 FROM tab0 AS cor0
----
1035
6003
6693

query I rowsort
SELECT + - col1 * - 37 FROM tab0 AS cor0
----
2997
37
777

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-593
SELECT DISTINCT - col0 * 3 * CAST( NULL AS SIGNED ) / 72 / ( - + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT - col0 * 3 * CAST ( NULL AS INTEGER ) / 72 / ( - + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * - + ( ( 77 ) ) FROM tab2
----
-1771
-3080
-4466

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

query I rowsort
SELECT DISTINCT - ( + 45 ) + - - col1 AS col2 FROM tab1 cor0
----
-31
-40
2

query I rowsort
SELECT 58 + col0 FROM tab2
----
104
122
133

query I rowsort
SELECT 89 * + + col0 + - + col0 FROM tab0
----
1320
7656
8536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT ALL - ( + + CAST( - + 25 AS SIGNED ) ) - - 13 FROM tab2
----
38
38
38

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - ( + + CAST ( - + 25 AS INTEGER ) ) - - 13 FROM tab2
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-600
SELECT DISTINCT + col0 - - + 21 + - - CAST( NULL AS SIGNED ), 95 / - col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-600
SELECT DISTINCT + col0 - - + 21 + - - CAST ( NULL AS INTEGER ), 95 / - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-601
SELECT DISTINCT + - COUNT( * ) DIV SUM( - - 12 ) AS col1, 56 + + + 85 FROM tab0 AS cor0
----
0
141

skipif mysql # not compatible
query II rowsort label-601
SELECT DISTINCT + - COUNT ( * ) / SUM ( - - 12 ) AS col1, 56 + + + 85 FROM tab0 AS cor0
----
0
141

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT ALL - 46 DIV col0 col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-603
SELECT ALL - 46 / col0 col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT 27 - - col2 * + col2 FROM tab2
----
1627
3391
556

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL SUM( DISTINCT col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL SUM ( DISTINCT col0 ) FROM tab1
----
227

query I rowsort
SELECT col0 * col1 - + 91 * 7 * col1 AS col1 FROM tab1
----
-25662
-2760
-8204

query I rowsort
SELECT col1 - + + 44 FROM tab0
----
-23
-43
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-608
SELECT MIN( + + col0 ) DIV 11 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-608
SELECT MIN ( + + col0 ) / 11 FROM tab2
----
4

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + 63 + + 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT COUNT( * ) col1, - MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-610
SELECT COUNT ( * ) col1, - MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
3
23

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

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

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

query I rowsort
SELECT + 13 AS col1 FROM tab2 cor0
----
13
13
13

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

onlyif mysql # aggregate syntax: 
query II rowsort label-615
SELECT + + ( 10 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-615
SELECT + + ( 10 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
10
3

query I rowsort
SELECT DISTINCT + 99 + + ( + + 54 ) FROM tab2 WHERE - col2 BETWEEN col2 AND NULL
----

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

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

query I rowsort
SELECT - 82 + - - col2 + + col2 FROM tab2
----
-2
-36
34

query I rowsort
SELECT - col2 + + + col1 * 44 FROM tab1 AS cor0
----
161
2000
520

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - 57 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + 20 * + 56 FROM tab0 WHERE NULL BETWEEN ( - col0 + ( + 31 ) * 12 ) AND NULL
----

query I rowsort
SELECT + col1 + col1 * ( col1 + - col2 ) FROM tab2
----
1479
2926
670

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE 25 BETWEEN 56 AND ( col1 * + col0 )
----

query I rowsort
SELECT col1 + + ( + col2 ) AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT COUNT( ALL col2 ) DIV 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-626
SELECT COUNT ( ALL col2 ) / 97 FROM tab0
----
0

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 / 82 - + col0 <= + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT DISTINCT - 58 DIV - 14 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT - 58 / - 14 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - 3 + - COUNT( * ) AS col2 FROM tab1 WHERE col1 * 46 > ( - col1 )
----
-6

skipif mysql # not compatible
query I rowsort label-630
SELECT - 3 + - COUNT ( * ) AS col2 FROM tab1 WHERE col1 * 46 > ( - col1 )
----
-6

query I rowsort
SELECT col0 * 69 AS col2 FROM tab2
----
3174
4416
5175

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-632
SELECT CAST ( NULL AS INTEGER ) + 8 col0 FROM tab0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT ALL 42 + - COUNT( * ) col0 FROM tab1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-635
SELECT ALL 42 + - COUNT ( * ) col0 FROM tab1
----
39

query I rowsort
SELECT 30 + col0 FROM tab0
----
117
127
45

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

query I rowsort
SELECT col1 * 95 + 67 FROM tab2 WHERE ( NULL ) IS NULL
----
4912
6432
7382

query I rowsort
SELECT 75 + + col2 AS col0 FROM tab2 WHERE 5 - - 25 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT COUNT( * ) AS col1 FROM tab1 WHERE ( 64 ) IN ( - col2 * 48 )
----
0

skipif mysql # not compatible
query I rowsort label-641
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE ( 64 ) IN ( - col2 * 48 )
----
0

query I rowsort
SELECT - col2 * 79 + 18 AS col0 FROM tab1
----
-4643
-5354
-7566

query I rowsort
SELECT - 38 + + col1 FROM tab2
----
13
29
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL + SUM( col0 ) + ( - 20 ) FROM tab0 WHERE NOT ( col0 ) IS NULL
----
179

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + SUM ( col0 ) + ( - 20 ) FROM tab0 WHERE NOT ( col0 ) IS NULL
----
179

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 70 - + col1 BETWEEN ( + col2 ) AND + col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-647
SELECT 96 + CAST( - col1 AS SIGNED ) FROM tab2
----
19
29
45

skipif mysql # not compatible
query I rowsort label-647
SELECT 96 + CAST ( - col1 AS INTEGER ) FROM tab2
----
19
29
45

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT - MAX( ALL 80 ) + + 76 col1 FROM tab0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-648
SELECT DISTINCT - MAX ( ALL 80 ) + + 76 col1 FROM tab0
----
-4

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

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT ALL * FROM tab2 WHERE + 9 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT DISTINCT 19 DIV col0 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-655
SELECT DISTINCT 19 / col0 col2 FROM tab2
----
0

query I rowsort
SELECT - 65 + - col0 * 32 AS col1 FROM tab1 AS cor0
----
-1697
-2785
-2977

query I rowsort
SELECT 13 / 60 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * col0 + col0 col2 FROM tab2 cor0
----
2438
3392
3975

query I rowsort
SELECT ALL 61 + 34 FROM tab1 AS cor0 WHERE NOT NULL <> ( 73 + - col0 )
----

query I rowsort
SELECT + 74 + + col1 * + col2 FROM tab0 AS cor0
----
173
284
3881

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 > ( - col0 )
----
75
67
58

query I rowsort
SELECT ( 0 ) * col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - MAX( + - 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-667
SELECT - MAX ( + - 14 ) FROM tab1
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT - 42 + COUNT( * ) + + 37 * - 36 FROM tab1
----
-1371

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT - 42 + COUNT ( * ) + + 37 * - 36 FROM tab1
----
-1371

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT DISTINCT - 0 - - SUM( col2 ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-673
SELECT DISTINCT - 0 - - SUM ( col2 ) col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - col1 - + 96 NOT BETWEEN ( - 71 + 22 ) AND ( NULL )
----

query I rowsort
SELECT - 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

query I rowsort
SELECT + 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-678
SELECT ALL + CAST( NULL AS DECIMAL ) * 41 FROM tab1 AS cor0 WHERE + col0 = - + col1
----

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + CAST ( NULL AS REAL ) * 41 FROM tab1 AS cor0 WHERE + col0 = - + col1
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( - ( 22 ) )
----

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0 AS cor0 WHERE ( + 92 + - col1 ) NOT IN ( 65 )
----
-10
-47
-99

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-683
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) IN ( col0 - 69 )
----

skipif mysql # not compatible
query III rowsort label-683
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) IN ( col0 - 69 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-684
SELECT MIN( - 12 ) + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT MIN ( - 12 ) + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

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

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

query II rowsort
SELECT + 30 * + col2, col1 FROM tab2
----
1200
77
1740
67
690
51

query I rowsort
SELECT - 44 * - col2 AS col2 FROM tab0
----
2068
4356
440

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT - 36 * + MAX( DISTINCT - col0 ) * + COUNT( * ) FROM tab2
----
4968

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - 36 * + MAX ( DISTINCT - col0 ) * + COUNT ( * ) FROM tab2
----
4968

query II rowsort
SELECT DISTINCT 98 * + col0, col1 FROM tab2
----
4508
51
6272
77
7350
67

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 7 + - - col1 * + 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT DISTINCT col1 DIV - - col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT col1 / - - col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-698
SELECT ALL col0 DIV col1, - ( col1 ) AS col0 FROM tab0
----
0
-81
4
-21
97
-1

skipif mysql # not compatible
query II rowsort label-698
SELECT ALL col0 / col1, - ( col1 ) AS col0 FROM tab0
----
0
-81
4
-21
97
-1

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

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

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

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

query I rowsort
SELECT ALL + col2 * 62 + + col2 FROM tab2 AS cor0
----
1449
2520
3654

query I rowsort
SELECT + col2 * - + 4 * + - 48 FROM tab2 AS cor0
----
11136
4416
7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT DISTINCT CAST( 97 AS SIGNED ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT CAST ( 97 AS INTEGER ) AS col1 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-705
SELECT ALL col1 * col0 AS col2 FROM tab1 WHERE ( + 85 + - 38 * CAST( NULL AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL col1 * col0 AS col2 FROM tab1 WHERE ( + 85 + - 38 * CAST ( NULL AS INTEGER ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT COUNT( * ) * - 31 AS col1 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-706
SELECT COUNT ( * ) * - 31 AS col1 FROM tab2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT DISTINCT 61 DIV - + 24 AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT 61 / - + 24 AS col2 FROM tab1 AS cor0
----
-2

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( ( NOT ( - col1 + - col0 * col0 ) NOT IN ( - 51 ) ) ) )
----

query I rowsort
SELECT DISTINCT + 42 * - col1 AS col0 FROM tab0
----
-3402
-42
-882

query I rowsort
SELECT + 83 + 86 AS col2 FROM tab0
----
169
169
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-713
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + col1 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + col1 FROM tab2
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT DISTINCT col0 DIV + col0 + - 93 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT col0 / + col0 + - 93 FROM tab0
----
-92

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

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

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

skipif mysql # not compatible
query I rowsort label-716
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT ALL 90 DIV col0 + - col0 FROM tab0
----
-86
-9
-97

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL 90 / col0 + - col0 FROM tab0
----
-86
-9
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-718
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + 15 * col2 AS col2 FROM tab2 AS cor0
----
NULL
345
NULL
600
NULL
870

skipif mysql # not compatible
query II rowsort label-718
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + 15 * col2 AS col2 FROM tab2 AS cor0
----
NULL
345
NULL
600
NULL
870

query I rowsort
SELECT DISTINCT + - 91 - - 67 * - 95 AS col0 FROM tab0 AS cor0
----
-6456

query III rowsort
SELECT + 53 AS col2, 76, col1 FROM tab0 AS cor0
----
9 values hashing to 07907458d3beda9a12d6bd30ccd9639a

query I rowsort
SELECT DISTINCT + 5 * + 80 FROM tab0
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - 8 * + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-72

skipif mysql # not compatible
query I rowsort label-722
SELECT - 8 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> - col1
----

query I rowsort
SELECT - col1 * - 99 AS col1 FROM tab2 AS cor0
----
5049
6633
7623

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 59 * - 49 <= NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 > - - 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + 35 + + - 77 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT SUM( ALL - col1 ) * 70 * - MIN( DISTINCT col1 ) AS col2 FROM tab1
----
23100

skipif mysql # not compatible
query I rowsort label-731
SELECT SUM ( ALL - col1 ) * 70 * - MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
23100

query I rowsort
SELECT ALL + 49 * - col0 * + ( + 51 ) FROM tab0
----
-217413
-242403
-37485

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT + col0 DIV - - col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-734
SELECT + col0 / - - col1 AS col0 FROM tab0
----
0
4
97

query I rowsort
SELECT col1 * 4 AS col1 FROM tab2
----
204
268
308

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

query I rowsort
SELECT - 79 * col0 FROM tab1
----
-4029
-6715
-7189

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

query I rowsort
SELECT - 79 * - 57 * - 27 * ( - col0 ) FROM tab0 AS cor0
----
10577547
11793357
1823715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT ALL + MIN( + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + MIN ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT col1 AS col1, 60 - col0 FROM tab0 AS cor0
----
1
-37
21
-27
81
45

query I rowsort
SELECT DISTINCT col0 * + 80 FROM tab1 AS cor0
----
4080
6800
7280

query II rowsort
SELECT col2, 81 + + col2 FROM tab0 cor0
----
10
91
47
128
99
180

query I rowsort
SELECT ALL + col1 * - 85 FROM tab0 cor0
----
-1785
-6885
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT DISTINCT COUNT( * ) * - - 69 + + - 58 + + COUNT( * ) FROM tab0
----
152

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT COUNT ( * ) * - - 69 + + - 58 + + COUNT ( * ) FROM tab0
----
152

query I rowsort
SELECT - 34 * + - ( + 81 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cab9ea50f3a5e60c00b96e8154f91e68

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-750
SELECT ALL * FROM tab2 WHERE NOT - ( + ( + 30 ) ) * + col1 - - 92 + + col2 * + 43 * + col0 + 70 NOT BETWEEN CAST( col2 AS DECIMAL ) + 32 AND NULL
----

skipif mysql # not compatible
query III rowsort label-750
SELECT ALL * FROM tab2 WHERE NOT - ( + ( + 30 ) ) * + col1 - - 92 + + col2 * + 43 * + col0 + 70 NOT BETWEEN CAST ( col2 AS REAL ) + 32 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + - 23 * col0 * + 86 col1 FROM tab2
----
-126668
-148426
-91064

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

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + MIN ( DISTINCT + col0 ) * - + 30 AS col1 FROM tab1 AS cor0
----
-1530

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 34 ) col0 FROM tab1 cor0
----
-34

query I rowsort
SELECT - col1 * - 25 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL 44 * - - col2 + 83 AS col1 FROM tab0 AS cor0
----
2151
4439
523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 10 * + col2 + col2 + 9 col1 FROM tab2 cor0
----
262
449
647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-758
SELECT + - col1 * CAST( + col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-758
SELECT + - col1 * CAST ( + col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT ALL col2 * - + col2 * - col0 AS col0 FROM tab0 cor0
----
33135
8700
950697

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT DISTINCT + ( + SUM( - col2 ) ) * - + 16 + - SUM( DISTINCT + 17 ) FROM tab2 AS cor0
----
1919

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT + ( + SUM ( - col2 ) ) * - + 16 + - SUM ( DISTINCT + 17 ) FROM tab2 AS cor0
----
1919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT - 42 DIV + COUNT( * ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - 42 / + COUNT ( * ) AS col0 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL + + COUNT( * ) * + 5 + MIN( DISTINCT + col2 ) FROM tab0 WHERE NOT col2 NOT IN ( + ( + 84 ), + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + + COUNT ( * ) * + 5 + MIN ( DISTINCT + col2 ) FROM tab0 WHERE NOT col2 NOT IN ( + ( + 84 ), + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT - SUM( ALL 66 ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-764
SELECT - SUM ( ALL 66 ) FROM tab0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL - 93 + - COUNT( 18 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - 93 + - COUNT ( 18 ) FROM tab0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT + COUNT( * ) * CAST( - - COUNT( * ) AS SIGNED ) * + - COUNT( DISTINCT - - 60 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-766
SELECT + COUNT ( * ) * CAST ( - - COUNT ( * ) AS INTEGER ) * + - COUNT ( DISTINCT - - 60 ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL - COUNT( ALL + - col2 ) + - 26 * + + 74 FROM tab2
----
-1927

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - COUNT ( ALL + - col2 ) + - 26 * + + 74 FROM tab2
----
-1927

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

skipif mysql # not compatible
query I rowsort label-768
SELECT - col0 - + CAST ( NULL AS INTEGER ) / - - CAST ( 35 AS INTEGER ) / col2 + + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-769
SELECT - col2 - - 27 + + 30, col1 - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab1
----
-11
NULL
-2
NULL
-39
NULL

skipif mysql # not compatible
query II rowsort label-769
SELECT - col2 - - 27 + + 30, col1 - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab1
----
-11
NULL
-2
NULL
-39
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-770
SELECT DISTINCT - 23 * - + CAST( NULL AS SIGNED ) * - 48 + - 14 - - COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-770
SELECT DISTINCT - 23 * - + CAST ( NULL AS INTEGER ) * - 48 + - 14 - - COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL 76 * + + col1 * 44 * - - 64 + - - 19 AS col2, col1 + - + 31 AS col0 FROM tab1
----
10058771
16
1070099
-26
2996243
-17

query I rowsort
SELECT DISTINCT col0 - + + col1 AS col2 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT ALL + col0 DIV + col0 - 87 - + col1 * - - 70 FROM tab1 AS cor0
----
-1066
-3376
-436

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + col0 / + col0 - 87 - + col1 * - - 70 FROM tab1 AS cor0
----
-1066
-3376
-436

query I rowsort
SELECT col2 + - + 65 FROM tab1 AS cor0
----
-6
3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE col0 + - col2 BETWEEN + ( + col0 ) * + col0 * - col1 AND ( + col0 )
----
51
85
91

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

query I rowsort
SELECT + col1 * - col2 * + col1 * - col2 FROM tab0
----
14493249
44100
9801

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT COUNT( * ) * - 19 * - ( + COUNT( * ) ) AS col1 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-779
SELECT COUNT ( * ) * - 19 * - ( + COUNT ( * ) ) AS col1 FROM tab2
----
171

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

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

query III rowsort
SELECT ALL - col0, - col2 AS col1, col2 - - col0 * + col2 AS col0 FROM tab2
----
9 values hashing to 6fcfb4c32859c15dcee9f1a78f53b317

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + 30 * - 14 * 36 + col2 FROM tab1 AS cor0
----
-51
-15024
-85
-15061
-91
-15052

query I rowsort
SELECT ALL + - col2 + + - col2 AS col0 FROM tab1 AS cor0 WHERE - 98 IS NOT NULL
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT MAX( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT MAX ( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT ( - col1 ) < NULL
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * - - 66 + - - 36 + + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - - 39 * - + 70 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT col1 AS col1, - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-793
SELECT - 53 + + + col2 + - CAST( + + 62 AS SIGNED ) FROM tab0 AS cor0
----
-105
-16
-68

skipif mysql # not compatible
query I rowsort label-793
SELECT - 53 + + + col2 + - CAST ( + + 62 AS INTEGER ) FROM tab0 AS cor0
----
-105
-16
-68

query II rowsort
SELECT + 57 + - - 66 AS col0, col0 AS col1 FROM tab2 AS cor0
----
123
46
123
64
123
75

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + + 66 + + 65 * - + col2 < + col2
----

query I rowsort
SELECT ALL 63 * + + 53 AS col1 FROM tab1
----
3339
3339
3339

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

query I rowsort
SELECT + - col1 + + - 79 + + ( + col1 ) FROM tab2 AS cor0 WHERE - 3 NOT BETWEEN 13 AND NULL
----
-79
-79
-79

query I rowsort
SELECT col0 + 61 * - - 26 AS col1 FROM tab1 AS cor0
----
1637
1671
1677

query I rowsort
SELECT DISTINCT - - col0 * - 45 FROM tab2 AS cor0
----
-2070
-2880
-3375

query I rowsort
SELECT - 35 * col0 + + - 27 + - col0 FROM tab0 AS cor0
----
-3159
-3519
-567

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT ALL - col2 DIV 3 AS col2 FROM tab0 AS cor0
----
-15
-3
-33

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - col2 / 3 AS col2 FROM tab0 AS cor0
----
-15
-3
-33

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT - COUNT( * ) DIV - 97 + + 29 * + MIN( ALL + col0 ) FROM tab2
----
1334

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - COUNT ( * ) / - 97 + + 29 * + MIN ( ALL + col0 ) FROM tab2
----
1334

onlyif mysql # DIV for integer division: 
query II rowsort label-809
SELECT col1 DIV + col2 AS col1, col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-809
SELECT col1 / + col2 AS col1, col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT ALL - 31 - 28 + - 32 * + 74 AS col0 FROM tab1
----
-2427
-2427
-2427

query I rowsort
SELECT ALL + 77 - + 9 + - col1 FROM tab0 AS cor0
----
-13
47
67

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-815
SELECT DISTINCT COUNT( * ) AS col1, COUNT( 4 ), + - ( + 1 ) AS col1 FROM tab1
----
3
3
-1

skipif mysql # not compatible
query III rowsort label-815
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( 4 ), + - ( + 1 ) AS col1 FROM tab1
----
3
3
-1

query I rowsort
SELECT 65 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT 82 * + - col1 FROM tab0
----
-1722
-6642
-82

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

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

query I rowsort
SELECT - col0 * 2 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

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

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

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

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

query II rowsort
SELECT DISTINCT col1, - col0 * - col2 FROM tab1
----
14
4896
47
6188
5
5015

query II rowsort
SELECT + col1 AS col2, 70 + + + 66 AS col1 FROM tab2
----
51
136
67
136
77
136

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT + 4 + - COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT + 4 + - COUNT ( * ) AS col1 FROM tab1
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT CAST( - col1 AS SIGNED ) * 96 FROM tab2 AS cor0
----
-4896
-6432
-7392

skipif mysql # not compatible
query I rowsort label-827
SELECT CAST ( - col1 AS INTEGER ) * 96 FROM tab2 AS cor0
----
-4896
-6432
-7392

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

query I rowsort
SELECT DISTINCT + + 95 * - - col0 FROM tab1 cor0
----
4845
8075
8645

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 49 + col1 col2, - col0 * - col1 FROM tab0
----
-28
1827
-48
97
32
1215

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE 68 IS NULL
----

query II rowsort
SELECT ( col0 ), 34 FROM tab0 AS cor0
----
15
34
87
34
97
34

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL + 40 * COUNT( - 79 ) AS col1 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + 40 * COUNT ( - 79 ) AS col1 FROM tab0 AS cor0
----
120

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

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

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

query I rowsort
SELECT + col1 * + 80 FROM tab1 cor0
----
1120
3760
400

query I rowsort
SELECT 92 * 36 - col2 FROM tab0
----
3213
3265
3302

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT - col1 * col0 - + + col0 + + 51 DIV - col2 AS col1 FROM tab2
----
-2394
-4993
-5100

skipif mysql # not compatible
query I rowsort label-840
SELECT - col1 * col0 - + + col0 + + 51 / - col2 AS col1 FROM tab2
----
-2394
-4993
-5100

query I rowsort
SELECT + 76 FROM tab1, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL ( ( + - 54 ) ) + + ( + 72 ) AS col2 FROM tab0
----
18
18
18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT DISTINCT 93 DIV col2 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT 93 / col2 AS col1 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-847
SELECT DISTINCT - - COUNT( 74 ) DIV - COUNT( ALL + col0 ) + + COUNT( * ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - - COUNT ( 74 ) / - COUNT ( ALL + col0 ) + + COUNT ( * ) FROM tab2 cor0
----
2

query II rowsort
SELECT - 37 AS col0, col0 * + + 65 * col0 AS col2 FROM tab2 AS cor0
----
-37
137540
-37
266240
-37
365625

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT + SUM( col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + SUM ( col1 ) FROM tab0 AS cor0
----
103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT - MAX( 75 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - MAX ( 75 ) FROM tab1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT - col2 DIV 27 AS col0 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-852
SELECT - col2 / 27 AS col0 FROM tab1
----
-2
-2
-3

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

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

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

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

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

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

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

query II rowsort
SELECT - ( - - 52 ) AS col2, - 92 FROM tab1 AS cor0
----
-52
-92
-52
-92
-52
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-859
SELECT * FROM tab1 WHERE NOT + CAST( - + 81 AS SIGNED ) + + + 24 = 18 * + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-859
SELECT * FROM tab1 WHERE NOT + CAST ( - + 81 AS INTEGER ) + + + 24 = 18 * + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL 12 + - + col1 + + + 78 FROM tab1
----
43
76
85

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / + - 74 NOT BETWEEN col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 38 + 13 * + 67 FROM tab2
----
909
909
909

query III rowsort
SELECT * FROM tab2 WHERE col1 < - 14
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-865
SELECT ALL + - col2 / 96 col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 42 + + col0 FROM tab2 AS cor0
----
22
33
4

query II rowsort
SELECT DISTINCT + col2, + col2 * - 81 FROM tab0 AS cor0
----
10
-810
47
-3807
99
-8019

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-869
SELECT ALL - SUM ( - col2 ) col0 FROM tab2 AS cor0
----
121

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL IN ( - col1 * - col1, col0 ) )
----

query I rowsort
SELECT 33 - + 1 + - + 57 FROM tab1
----
-25
-25
-25

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

query I rowsort
SELECT col2 + - + ( + - col1 ) FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-875
SELECT - ( - + 97 ) * COUNT( * ) + + CAST( - + ( + 15 ) AS SIGNED ) AS col0 FROM tab0 cor0
----
276

skipif mysql # not compatible
query I rowsort label-875
SELECT - ( - + 97 ) * COUNT ( * ) + + CAST ( - + ( + 15 ) AS INTEGER ) AS col0 FROM tab0 cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT DISTINCT MIN( 73 ) AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT MIN ( 73 ) AS col2 FROM tab0 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 + + col1 col2 FROM tab1 AS cor0
----
-47
-80
-89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-879
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 > ( 50 )
----
3
-3

skipif mysql # not compatible
query II rowsort label-879
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 > ( 50 )
----
3
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL 70 * + COUNT( * ) AS col2 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL 70 * + COUNT ( * ) AS col2 FROM tab0
----
210

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-883
SELECT + col1 DIV + 20 AS col1, col1 FROM tab0
----
0
1
1
21
4
81

skipif mysql # not compatible
query II rowsort label-883
SELECT + col1 / + 20 AS col1, col1 FROM tab0
----
0
1
1
21
4
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT 20 * - COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-885
SELECT 20 * - COUNT ( * ) FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-886
SELECT + SUM( ALL - - col0 ) col0, + 1 + COUNT( ALL - + col0 ) FROM tab0
----
199
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-886
SELECT + SUM ( ALL - - col0 ) col0, + 1 + COUNT ( ALL - + col0 ) FROM tab0
----
199
4

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT - 3 DIV + - 98 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-887
SELECT - 3 / + - 98 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 21 IS NULL
----

query I rowsort
SELECT + 9 * 46 AS col2 FROM tab2
----
414
414
414

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

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL + MAX( + + 40 ) * - 63 FROM tab2
----
-2520

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + MAX ( + + 40 ) * - 63 FROM tab2
----
-2520

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-893
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 32 BETWEEN - col1 AND - CAST( + 18 AS SIGNED )
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-893
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 32 BETWEEN - col1 AND - CAST ( + 18 AS INTEGER )
----
51
14
96
85
5
59

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 + - col2 * - + 29 < NULL
----

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

query II rowsort
SELECT ALL - col0, + 9 + + 42 + + col2 AS col0 FROM tab2 AS cor0
----
-46
74
-64
91
-75
109

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + SUM( ALL 43 ) AS col1 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-898
SELECT + SUM ( ALL 43 ) AS col1 FROM tab0 AS cor0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT 78 DIV col1 AS col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-899
SELECT 78 / col1 AS col1 FROM tab1
----
1
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT MAX( DISTINCT 89 ) AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-900
SELECT MAX ( DISTINCT 89 ) AS col1 FROM tab2
----
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-902
SELECT DISTINCT * FROM tab2 WHERE col1 < + col0 / - + 78 + - + CAST( NULL AS SIGNED ) + - 15 / - CAST( NULL AS SIGNED ) * - col2 * - 42 / + 99
----

skipif mysql # not compatible
query III rowsort label-902
SELECT DISTINCT * FROM tab2 WHERE col1 < + col0 / - + 78 + - + CAST ( NULL AS INTEGER ) + - 15 / - CAST ( NULL AS INTEGER ) * - col2 * - 42 / + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT COUNT( DISTINCT 16 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-903
SELECT COUNT ( DISTINCT 16 ) AS col1 FROM tab1
----
1

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

query I rowsort
SELECT + 41 * 32 FROM tab1
----
1312
1312
1312

query I rowsort
SELECT - 7 * - + col0 AS col1 FROM tab2
----
322
448
525

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-907
SELECT DISTINCT + + COUNT( * ) * - 25 + CAST( NULL AS DECIMAL ) + + 37 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT + + COUNT ( * ) * - 25 + CAST ( NULL AS REAL ) + + 37 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col1 * + + col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

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

query I rowsort
SELECT - + 97 + col0 AS col1 FROM tab2 AS cor0
----
-22
-33
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT CAST( 84 AS SIGNED ) + - 90 + - COUNT( * ) * - - COUNT( * ) + + COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-911
SELECT CAST ( 84 AS INTEGER ) + - 90 + - COUNT ( * ) * - - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL + COUNT( * ) + + ( COUNT( * ) ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL + COUNT ( * ) + + ( COUNT ( * ) ) AS col2 FROM tab2
----
6

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-917
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-917
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 99 - + ( - + col0 ) AS col0 FROM tab2 cor0
----
-24
-35
-53

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

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

query I rowsort
SELECT ALL 16 - + col0 + + col0 * + 58 FROM tab1 AS cor0
----
2923
4861
5203

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

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT DISTINCT col1 DIV + ( 77 ) - + 26 + col2 - 18 - + 17 FROM tab1 cor0
----
-2
35
7

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT col1 / + ( 77 ) - + 26 + col2 - 18 - + 17 FROM tab1 cor0
----
-2
35
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT COUNT( * ) * 95 AS col1 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-924
SELECT COUNT ( * ) * 95 AS col1 FROM tab1
----
285

query II rowsort
SELECT col2, + 83 FROM tab0
----
10
83
47
83
99
83

query II rowsort
SELECT ALL col2, + 53 FROM tab1
----
59
53
68
53
96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL + MAX( 99 ) * + - 96 AS col2 FROM tab2
----
-9504

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL + MAX ( 99 ) * + - 96 AS col2 FROM tab2
----
-9504

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + col2 * col2 / - - col1 * + 23 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-929
SELECT 7 * - col0 AS col1, 13 DIV 49 AS col0 FROM tab2
----
-322
0
-448
0
-525
0

skipif mysql # not compatible
query II rowsort label-929
SELECT 7 * - col0 AS col1, 13 / 49 AS col0 FROM tab2
----
-322
0
-448
0
-525
0

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT 40 FROM tab2 WHERE NOT - 59 <= - col1
----
40

query I rowsort
SELECT ALL 57 - + col0 + + + col2 AS col0 FROM tab2 WHERE NULL IN ( + col2, - 14 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT DISTINCT - 99 AS col1, - COUNT( ( + 91 ) ) AS col0 FROM tab2
----
-99
-3

skipif mysql # not compatible
query II rowsort label-933
SELECT DISTINCT - 99 AS col1, - COUNT ( ( + 91 ) ) AS col0 FROM tab2
----
-99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col1, 7 FROM tab2 AS cor0
----
59
7
59
7
59
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-937
SELECT MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
96

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

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

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

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

query I rowsort
SELECT - 47 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

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

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

query I rowsort
SELECT - col0 * - 7 AS col0 FROM tab0 AS cor0
----
105
609
679

query I rowsort
SELECT DISTINCT - 48 * + 70 * - - 53 * - col1 FROM tab0 AS cor0
----
14424480
178080
3739680

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

query I rowsort
SELECT - + 83 AS col2 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT - - col2 + + + col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - 17 + - 54 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT ALL 5 + - 90 - - col1 FROM tab0
----
-4
-64
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - ( - + col1 ) * + 5 ) >= NULL
----

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

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

query I rowsort
SELECT DISTINCT - 16 * + - 70 * col1 + + col0 FROM tab2
----
57166
75115
86304

query I rowsort
SELECT + col2 + ( - + 26 ) AS col2 FROM tab0 WHERE + - col1 IS NULL
----

query I rowsort
SELECT ALL - col1 * + 43 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-4539
-7906
-8239

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

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

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

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

query I rowsort
SELECT ALL 10 + + col1 * col2 AS col0 FROM tab2
----
1183
3090
3896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + 90 col0, + 77 + + col0 AS col1 FROM tab2 AS cor0
----
136
123
154
141
165
152

query I rowsort
SELECT DISTINCT + col2 * + + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT ALL - + 75 * - 49 * - 53 + col1 DIV - ( 90 ) AS col1 FROM tab0 AS cor0
----
-194775
-194775
-194775

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL - + 75 * - 49 * - 53 + col1 / - ( 90 ) AS col1 FROM tab0 AS cor0
----
-194775
-194775
-194775

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

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

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

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

query I rowsort
SELECT - col0 * - col0 * - - 58 FROM tab1 cor0
----
150858
419050
480298

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-965
SELECT ALL CAST( 5 AS SIGNED ) DIV - 86 * - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL CAST ( 5 AS INTEGER ) / - 86 * - col2 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL ( - + COUNT ( * ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - MAX( ALL + 23 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-967
SELECT - MAX ( ALL + 23 ) FROM tab1
----
-23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT col0 DIV ( - - 51 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-969
SELECT col0 / ( - - 51 ) / + col1 AS col1 FROM tab0 AS cor0
----
0
0
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL + 34 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + 34 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * col0 * - ( + 90 ) col0 FROM tab0
----
-112050
-649890
-724590

query I rowsort
SELECT ALL ( col1 ) + + col1 AS col0 FROM tab0
----
162
2
42

query II rowsort
SELECT col1 * + ( col1 ) * - + col1 + - col2 * - col1 + col2 AS col1, col2 AS col0 FROM tab1
----
-100559
68
-1304
96
229
59

query I rowsort
SELECT + - 20 + - + col2 AS col1 FROM tab2 AS cor0
----
-43
-60
-78

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab0 cor0
----
-51

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

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

query I rowsort
SELECT DISTINCT col0 * 17 * - 85 FROM tab2 cor0
----
-108375
-66470
-92480

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT - + 2 DIV - - col0 * 31 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-982
SELECT - + 2 / - - col0 * 31 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL col0 + - ( col1 ) * - col1 AS col0 FROM tab1
----
110
2300
247

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT + COUNT( * ) * + 30 + - COUNT( * ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT + COUNT ( * ) * + 30 + - COUNT ( * ) AS col1 FROM tab1
----
87

query III rowsort
SELECT * FROM tab2 WHERE 29 BETWEEN + + col1 + - 60 AND - col0 * 57
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - MAX( - col1 ) * - - 17 AS col2 FROM tab0 cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT - MAX ( - col1 ) * - - 17 AS col2 FROM tab0 cor0 WHERE NULL <> NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON - + 86 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-993
SELECT 18, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
18
3

skipif mysql # not compatible
query II rowsort label-993
SELECT 18, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
18
3

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

query II rowsort
SELECT + 35, 39 * 11 AS col2 FROM tab0 AS cor0
----
35
429
35
429
35
429

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-997
SELECT - MIN( + col1 ) * MIN( - - col1 ) DIV - COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-997
SELECT - MIN ( + col1 ) * MIN ( - - col1 ) / - COUNT ( * ) FROM tab1
----
8

query I rowsort
SELECT - 80 + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-12
-21
16

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + 39 * + MAX( col1 ) FROM tab2
----
3003

skipif mysql # not compatible
query I rowsort label-999
SELECT + 39 * + MAX ( col1 ) FROM tab2
----
3003

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

query II rowsort
SELECT - col2 * - 53 AS col1, - 84 AS col2 FROM tab0
----
2491
-84
5247
-84
530
-84

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 2 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
1
531441
9261

query I rowsort
SELECT + 73 * col2 AS col2 FROM tab2
----
1679
2920
4234

query I rowsort
SELECT DISTINCT - 70 + - 85 FROM tab0
----
-155

query II rowsort
SELECT - + 8 * - col0 + + - 8, 36 * + 5 AS col1 FROM tab2 AS cor0
----
360
180
504
180
592
180

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT - + 93 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 * - - col2 * + + col0 * - 95 + + col2 + + + col2 * - 42 col1 FROM tab1 AS cor0
----
140542956
1878797772
625117344

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT DISTINCT - SUM( + - 55 ) AS col1 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - SUM ( + - 55 ) AS col1 FROM tab2 AS cor0
----
165

query I rowsort
SELECT ALL + col2 * - - 5 FROM tab0 AS cor0
----
235
495
50

query I rowsort
SELECT DISTINCT + 74 * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1702
-2960
-4292

query I rowsort
SELECT + ( 29 ) + - col2 FROM tab2 AS cor0
----
-11
-29
6

query I rowsort
SELECT 57 + + ( + col2 ) AS col1 FROM tab0 cor0
----
104
156
67

query I rowsort
SELECT col1 * + col1 + + 31 AS col1 FROM tab1 cor0
----
2240
227
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT ALL + + COUNT( * ) + - 79 FROM tab2 WHERE col1 BETWEEN - col0 + + col2 AND - col2
----
-79

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL + + COUNT ( * ) + - 79 FROM tab2 WHERE col1 BETWEEN - col0 + + col2 AND - col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL 61 * + SUM( - col0 ) FROM tab2 WHERE ( NOT NULL >= col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL 61 * + SUM ( - col0 ) FROM tab2 WHERE ( NOT NULL >= col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col1 - + col1 * - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT COUNT( * ) * - 90 AS col0 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-1018
SELECT COUNT ( * ) * - 90 AS col0 FROM tab0
----
-270

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE - 3 <> - 72
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT 7 AS col1 FROM tab0 AS cor0 WHERE + 77 IS NULL
----

query I rowsort
SELECT - - 30 - - 30 AS col1 FROM tab1 cor0
----
60
60
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 = - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0 * + + ( + + col2 ) AS col1, - 97 AS col0 FROM tab1
----
4896
-97
5015
-97
6188
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1024
SELECT 39 * col2 + col1 FROM tab2 WHERE NOT + CAST( + 96 AS DECIMAL ) = - + col1
----
1637
2329
948

skipif mysql # not compatible
query I rowsort label-1024
SELECT 39 * col2 + col1 FROM tab2 WHERE NOT + CAST ( + 96 AS REAL ) = - + col1
----
1637
2329
948

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE NULL <> + col2
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT 12 * - COUNT( * ) DIV - COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1028
SELECT 12 * - COUNT ( * ) / - COUNT ( * ) FROM tab2
----
12

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

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

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

query I rowsort
SELECT + 82 * - - 12 FROM tab1
----
984
984
984

query II rowsort
SELECT 2 * - col2 * + col0 AS col0, col2 * 24 FROM tab0
----
-1410
1128
-1740
240
-19206
2376

query I rowsort
SELECT - ( - + col1 ) FROM tab2 WHERE NOT - 12 - - 99 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 83 * 44 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
3652

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

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

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

skipif mysql # not compatible
query I rowsort label-1036
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 35 IS NULL
----
-3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL <= - ( CAST( NULL AS SIGNED ) ) + - - 15
----

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL <= - ( CAST ( NULL AS INTEGER ) ) + - - 15
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 * + 8 col0 FROM tab2
----
23
184
40
320
58
464

query I rowsort
SELECT DISTINCT 9 + 69 AS col0 FROM tab1
----
78

query I rowsort
SELECT col1 - - 33 FROM tab2
----
100
110
84

query I rowsort
SELECT DISTINCT + col1 + 34 AS col0 FROM tab2
----
101
111
85

query I rowsort
SELECT ALL + 37 + - 72 AS col1 FROM tab2
----
-35
-35
-35

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

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

query I rowsort
SELECT - 22 + col0 AS col0 FROM tab1
----
29
63
69

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

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL SUM ( - col2 ) - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-153

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

query II rowsort
SELECT + col2 AS col0, col1 + + col2 FROM tab0 AS cor0
----
10
31
47
128
99
100

query I rowsort
SELECT ALL - ( - col2 ) * - col1 * col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT ALL 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1055
SELECT + col2 col0, col1 * + + col2 - - + col0 + - 26 DIV + + 95 AS col2 FROM tab2 AS cor0
----
23
1219
40
3144
58
3961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1055
SELECT + col2 col0, col1 * + + col2 - - + col0 + - 26 / + + 95 AS col2 FROM tab2 AS cor0
----
23
1219
40
3144
58
3961

query I rowsort
SELECT - 18 * - col0 AS col2 FROM tab0 cor0
----
1566
1746
270

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

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

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

query II rowsort
SELECT DISTINCT - col1 * + col2, - 83 AS col1 FROM tab1
----
-1344
-83
-295
-83
-3196
-83

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1061
SELECT DISTINCT 93 DIV col0 AS col1, 43 AS col1 FROM tab2
----
1
43
2
43

skipif mysql # not compatible
query II rowsort label-1061
SELECT DISTINCT 93 / col0 AS col1, 43 AS col1 FROM tab2
----
1
43
2
43

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

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

query I rowsort
SELECT + - col1 * col0 + - - 81 AS col1 FROM tab0 AS cor0
----
-1134
-16
-1746

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

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

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE - col1 NOT IN ( col0, + 55, + col2, + col2 * 4 + + - col2 + + + col0 / + col2, - col0 )
----
-10
-47
-99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 27 col0, + 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to fa28861ce902fb1b3f1e58d75fc01035

query III rowsort
SELECT * FROM tab0 WHERE + + 32 <= col0 + col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 - + col1 * col2 col2 FROM tab1
----
-1328
-279
-3180

query I rowsort
SELECT ALL - + col0 + + 66 * - + 43 FROM tab1 AS cor0
----
-2889
-2923
-2929

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1072
SELECT ALL * FROM tab0 AS cor0 WHERE col0 = + CAST( NULL AS DECIMAL ) + - - col0 - col0 * - col0 * CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1072
SELECT ALL * FROM tab0 AS cor0 WHERE col0 = + CAST ( NULL AS REAL ) + - - col0 - col0 * - col0 * CAST ( col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1073
SELECT + col1 DIV 18 + + col0 AS col2, col0 FROM tab1 AS cor0
----
51
51
85
85
93
91

skipif mysql # not compatible
query II rowsort label-1073
SELECT + col1 / 18 + + col0 AS col2, col0 FROM tab1 AS cor0
----
51
51
85
85
93
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT MIN( - + 10 ) + + 56 col1 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1074
SELECT MIN ( - + 10 ) + + 56 col1 FROM tab0 AS cor0
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT COUNT( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - ( - col1 ) ) NOT BETWEEN + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col1 * + col1 IN ( - + col1 )
----
10
47
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT DISTINCT + MAX( + 87 ) + 36 * - + MIN( DISTINCT - CAST( - - col1 AS SIGNED ) ) AS col2 FROM tab0
----
3003

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + MAX ( + 87 ) + 36 * - + MIN ( DISTINCT - CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab0
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT - + col1 + - 96 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1082
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + col1 + - 96 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT col2 AS col1 FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) + - + 96 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1083
SELECT col2 AS col1 FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) + - + 96 IS NOT NULL
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT ALL COUNT( * ) * - 46 AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL COUNT ( * ) * - 46 AS col1 FROM tab0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT - 3 * - COUNT( * ) FROM tab2 AS cor0 INNER JOIN tab2 cor1 ON NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 3 * - COUNT ( * ) FROM tab2 AS cor0 INNER JOIN tab2 cor1 ON NULL IS NOT NULL
----
0

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

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

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

query I rowsort
SELECT + - 31 * + 59 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-1829
-1829
-1829

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

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

query I rowsort
SELECT DISTINCT + col2 + - - col1 FROM tab1
----
110
115
64

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

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

query I rowsort
SELECT DISTINCT col1 * col1 + + - col2 + - + 82 AS col2 FROM tab1
----
-116
18
2059

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

query I rowsort
SELECT + + col0 * col1 + + + col0 FROM tab0 WHERE NULL IS NULL
----
1230
1914
194

query I rowsort
SELECT ALL - col0 + + + 77 AS col1 FROM tab2
----
13
2
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT - + COUNT( * ) col1 FROM tab0 WHERE col0 - 50 IS NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT IN ( + 80, col2 - - 67 - - - col0 * + + 32 * + 3 * 60 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT ALL COUNT( * ), - COUNT( * ) col0 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1101
SELECT ALL COUNT ( * ), - COUNT ( * ) col0 FROM tab1
----
3
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1103
SELECT ALL - + 37 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - + 37 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - 88 * + col0 col2 FROM tab1 AS cor0
----
430848
441320
544544

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL - MIN( - + col0 ) * - + COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL - MIN ( - + col0 ) * - + COUNT ( * ) FROM tab0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL - COUNT( * ) + 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL - COUNT ( * ) + 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18

query II rowsort
SELECT - col0 + - col1 AS col1, + col2 FROM tab1
----
-138
68
-65
96
-90
59

query II rowsort
SELECT ALL + col2 + - 19, + col2 - - col2 AS col1 FROM tab0
----
-9
20
28
94
80
198

query I rowsort
SELECT DISTINCT ( - - 3 ) * - 2 AS col0 FROM tab1 AS cor0
----
-6

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

query II rowsort
SELECT - + 3, col2 * - - 57 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + col2 - - + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 2 - 10 - - 4 IS NOT NULL AND NOT + col0 < NULL
----

query II rowsort
SELECT + 60 / - 57 * - - 51, + 58 AS col2 FROM tab0 WHERE col2 * - 54 + + - col2 IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 66 col2 FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT 23 * + - ( + ( 34 ) ) AS col2 FROM tab0
----
-782
-782
-782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT - CAST( - col1 AS SIGNED ) * + 61 * - col2 * - 87 FROM tab0
----
1114470
20203749
525393

skipif mysql # not compatible
query I rowsort label-1119
SELECT - CAST ( - col1 AS INTEGER ) * + 61 * - col2 * - 87 FROM tab0
----
1114470
20203749
525393

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - col2 >= - col1 / + - col0 + + col2 - + 90
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT DISTINCT col1 + + col0 DIV - 71 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT col1 + + col0 / - 71 FROM tab1
----
14
4
46

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( 31 * - col1 )
----

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

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

query I rowsort
SELECT + col1 + - 8 AS col0 FROM tab2
----
43
59
69

query I rowsort
SELECT - 28 * - 10 + - col1 * 75 AS col1 FROM tab0
----
-1295
-5795
205

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

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

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

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

query I rowsort
SELECT ALL col2 + - col1 FROM tab1 WHERE NOT NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT + CAST( + 87 AS SIGNED ) AS col1 FROM tab0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-1133
SELECT + CAST ( + 87 AS INTEGER ) AS col1 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT DISTINCT MIN( + 53 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT MIN ( + 53 ) FROM tab0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1135
SELECT DISTINCT col1 - + CAST( + 14 + 79 AS DECIMAL ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND 47
----

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT col1 - + CAST ( + 14 + 79 AS REAL ) AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT COUNT( * ) col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 56 / + col0
----
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 44 ) NOT IN ( col2 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT col0 DIV col1 + - col1 AS col0 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-1138
SELECT col0 / col1 + - col1 AS col0 FROM tab2
----
-51
-66
-77

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 71 * - col0 ) < col1 * col2 + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT ALL + SUM( + col2 ) DIV + COUNT( * ) + + 79 AS col2 FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + SUM ( + col2 ) / + COUNT ( * ) + + 79 AS col2 FROM tab0
----
131

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

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

query I rowsort
SELECT ALL col0 * - 85 AS col2 FROM tab1
----
-4335
-7225
-7735

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1146
SELECT + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) + + col0 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-1146
SELECT + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) + + col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE - col0 IN ( - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE - col0 IN ( - col0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT col1 col2 FROM tab0 WHERE ( + CAST( - 37 AS SIGNED ) ) IN ( + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1148
SELECT col1 col2 FROM tab0 WHERE ( + CAST ( - 37 AS INTEGER ) ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - COUNT( * ) * 39 + SUM( 12 ) FROM tab1 WHERE NOT col2 NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT - COUNT ( * ) * 39 + SUM ( 12 ) FROM tab1 WHERE NOT col2 NOT IN ( col1 )
----
NULL

query I rowsort
SELECT - 87 + - 26 FROM tab1
----
-113
-113
-113

query I rowsort
SELECT col0 + 25 * + col0 FROM tab2 WHERE NOT + 7 NOT BETWEEN NULL AND + 42
----

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

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

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

skipif mysql # not compatible
query III rowsort label-1153
SELECT * FROM tab1 WHERE NOT NULL IN ( - CAST ( NULL AS REAL ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT DISTINCT - col2 FROM tab1 WHERE NULL BETWEEN ( + ( col0 ) * + ( + col0 + - ( CAST( NULL AS SIGNED ) ) ) + + 57 * col0 ) AND + 54
----

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - col2 FROM tab1 WHERE NULL BETWEEN ( + ( col0 ) * + ( + col0 + - ( CAST ( NULL AS INTEGER ) ) ) + + 57 * col0 ) AND + 54
----

query I rowsort
SELECT col2 + 27 AS col2 FROM tab0
----
126
37
74

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

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - ( col1 ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 30 * - col0 AS col2 FROM tab2 AS cor0
----
-1380
-1920
-2250

query I rowsort
SELECT DISTINCT + 32 / - col2 FROM tab1 AS cor0 WHERE NOT NULL <> + ( + 29 ) * 74
----

query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab2 cor0 WHERE NOT 59 * 86 NOT IN ( + col0 + - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 79 <> - 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + 69 * + col2 AS col0 FROM tab1 AS cor0
----
4076
4739
6638

query I rowsort
SELECT col0 * - col2 + 22 FROM tab2 AS cor0 WHERE + col0 * ( col1 * 2 ) + 25 = col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN ( 98 ) AND + 86 * col0
----

query I rowsort
SELECT DISTINCT col0 * + col1 - col1 * - 73 AS col0 FROM tab1 AS cor0
----
1736
7708
790

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT - 75 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 75 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT 49 - 25 FROM tab1 AS cor0
----
24

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( col0 ) AND 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT ( - COUNT( DISTINCT - col0 ) ) * COUNT( - col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT ( - COUNT ( DISTINCT - col0 ) ) * COUNT ( - col0 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT ALL - 92 * COUNT( * ) FROM tab0 AS cor0 WHERE 40 = col1
----
0

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - 92 * COUNT ( * ) FROM tab0 AS cor0 WHERE 40 = col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( 83 ) ) BETWEEN + col1 AND 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1173
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - COUNT( * ) * COUNT( + col0 * - 53 ) AS col0 FROM tab2 WHERE NOT 46 * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1174
SELECT - COUNT ( * ) * COUNT ( + col0 * - 53 ) AS col0 FROM tab2 WHERE NOT 46 * col1 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1176
SELECT + CAST( + 24 AS SIGNED ) + + MAX( col0 ) AS col1 FROM tab2 WHERE NOT + 43 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT + CAST ( + 24 AS INTEGER ) + + MAX ( col0 ) AS col1 FROM tab2 WHERE NOT + 43 <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL COUNT( ALL col1 ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL COUNT ( ALL col1 ) * - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1178
SELECT col1 FROM tab0 WHERE NOT NULL >= - ( 93 ) + - CAST( col1 - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1178
SELECT col1 FROM tab0 WHERE NOT NULL >= - ( 93 ) + - CAST ( col1 - col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL MIN( + col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1179
SELECT ALL MIN ( + col2 ) col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT DISTINCT + + SUM( DISTINCT 66 ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT + + SUM ( DISTINCT 66 ) AS col0 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL + COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL + COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT - 48 DIV + 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1182
SELECT - 48 / + 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - + MAX ( DISTINCT col2 ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-102

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

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

query I rowsort
SELECT - - col2 + - col2 FROM tab0 cor0
----
0
0
0

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 26 / col2 ) IN ( + ( col2 ) * col2 + + col0 )
----

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

query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab0 cor0
----
-57

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 17 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col1 * - col1 + 52 AS col2 FROM tab1 AS cor0
----
-144
-2157
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - SUM( ALL 6 ) AS col2 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-1192
SELECT - SUM ( ALL 6 ) AS col2 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT DISTINCT - 27 + - SUM( ALL + - 6 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - 27 + - SUM ( ALL + - 6 ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT ALL + col2 + + col0 * - col2 AS col1 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE - col0 + col1 * - 25 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT SUM( - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1197
SELECT SUM ( - col1 ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + 0 + - + col2 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL IN ( col0 * 68 * col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT col1 FROM tab1 cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1202
SELECT col1 FROM tab1 cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT - col0 + + - CAST( - - col0 AS SIGNED ) FROM tab1
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-1203
SELECT - col0 + + - CAST ( - - col0 AS INTEGER ) FROM tab1
----
-102
-170
-182

query I rowsort
SELECT ALL + 56 + - 95 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query III rowsort
SELECT + col0 AS col0, col1 * col1 AS col1, - col1 AS col0 FROM tab0
----
9 values hashing to 2464d67b365b32f4fdf350914e99eb8c

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

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

query III rowsort
SELECT * FROM tab0 WHERE 44 = ( NULL )
----

query I rowsort
SELECT ALL - 22 + + col1 FROM tab2
----
29
45
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col0 - + col2 * - col2 AS col2 FROM tab2
----
1587
4160
7714

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col0 - + col2 * - col2 AS col2 FROM tab2
----
1587
4160
7714

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

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

query I rowsort
SELECT ALL - - col2 * - - 65 + col0 + + 16 AS col0 FROM tab0 AS cor0
----
3086
6548
753

query I rowsort
SELECT ALL 90 FROM tab1 AS cor0 WHERE - col0 * - + col1 * + + col0 + + col0 + col0 < + 86
----

query I rowsort
SELECT DISTINCT - 94 * col1 FROM tab0
----
-1974
-7614
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL - SUM( DISTINCT + 85 ) AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL - SUM ( DISTINCT + 85 ) AS col2 FROM tab0
----
-85

query I rowsort
SELECT DISTINCT 90 * col2 FROM tab2
----
2070
3600
5220

query I rowsort
SELECT ALL col0 * - 11 * + - col2 FROM tab2
----
11638
28160
47850

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1220
SELECT DISTINCT + COUNT( * ) DIV - ( 75 ) * - 51 AS col0, + MAX( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1220
SELECT DISTINCT + COUNT ( * ) / - ( 75 ) * - 51 AS col0, + MAX ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
0
NULL

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT IN ( + + 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT DISTINCT COUNT( * ) * ( 42 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT COUNT ( * ) * ( 42 ) FROM tab0
----
126

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

query I rowsort
SELECT ALL + 29 FROM tab2 WHERE ( NULL ) IS NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT + 68 * - - SUM( DISTINCT + + 46 ) + 44 + - + ( 87 ) FROM tab2 cor0
----
3085

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT + 68 * - - SUM ( DISTINCT + + 46 ) + 44 + - + ( 87 ) FROM tab2 cor0
----
3085

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1227
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2, ( - col1 ) AS col1 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2, ( - col1 ) AS col1 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL + 15 * - COUNT( ALL - - 43 ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + 15 * - COUNT ( ALL - - 43 ) AS col0 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT - 69 * - 99 * - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab2
----
-20490

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - 69 * - 99 * - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab2
----
-20490

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT ALL col1 * - CAST( 88 AS SIGNED ) + - 7 FROM tab1
----
-1239
-4143
-447

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL col1 * - CAST ( 88 AS INTEGER ) + - 7 FROM tab1
----
-1239
-4143
-447

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 44 <= - 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * - 70 + 75 * - 35 / + col1 IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL + SUM( ALL + ( - 91 ) ) AS col1 FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + SUM ( ALL + ( - 91 ) ) AS col1 FROM tab2 cor0
----
-273

query I rowsort
SELECT - 15 + + col0 * col0 FROM tab0 cor0
----
210
7554
9394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1241
SELECT + + col1 + + col2, CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
110
NULL
115
NULL
64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1241
SELECT + + col1 + + col2, CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
110
NULL
115
NULL
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1242
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / + CAST( - 12 AS SIGNED ) * + 37 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1242
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / + CAST ( - 12 AS INTEGER ) * + 37 IS NOT NULL
----

query I rowsort
SELECT + col0 * col2 + + - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col1 * - - col0 * - col0 * - col0 + - 84 - - 66 * - col1 )
----

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE ( NOT + col0 * - col1 = - 85 )
----
-23
-40
-58

query I rowsort
SELECT 55 + col1 + col2 * + + col0 * - + 75 AS col2 FROM tab1
----
-367131
-376065
-463998

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + SUM( - 24 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + SUM ( - 24 ) AS col0 FROM tab2
----
-72

query I rowsort
SELECT ALL 81 + - col0 AS col2 FROM tab1
----
-10
-4
30

query I rowsort
SELECT ( - 12 ) + col2 FROM tab1
----
47
56
84

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

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

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL 26 + + - COUNT ( * ) FROM tab0
----
23

query I rowsort
SELECT + 16 FROM tab0 WHERE - col2 > - col1
----
16
16

query I rowsort
SELECT col2 / + col2 + col0 + + - 88 * + col1 AS col2 FROM tab1 WHERE 64 * - 71 IS NULL
----

query I rowsort
SELECT ALL col2 + + - col2 * 5 - + col1 - col2 AS col2 FROM tab2
----
-166
-277
-357

query I rowsort
SELECT DISTINCT - col1 * + 43 + + col0 + + 30 FROM tab2
----
-2117
-2776
-3217

query I rowsort
SELECT + 40 FROM tab0 AS cor0 WHERE 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT - - COUNT( * ) AS col1, 67 AS col2 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-1257
SELECT - - COUNT ( * ) AS col1, 67 AS col2 FROM tab0 AS cor0
----
3
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT - COUNT( * ) * - 34 AS col1 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1258
SELECT - COUNT ( * ) * - 34 AS col1 FROM tab2 AS cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT DISTINCT CAST( + ( - + ( + col2 ) ) AS SIGNED ) + col2 * col2 AS col0 FROM tab2 cor0 WHERE NOT - - ( col1 ) IS NULL AND NULL IS NULL
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT CAST ( + ( - + ( + col2 ) ) AS INTEGER ) + col2 * col2 AS col0 FROM tab2 cor0 WHERE NOT - - ( col1 ) IS NULL AND NULL IS NULL
----
1560
3306
506

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1260
SELECT ALL - ( - + 40 ) * - CAST( + col0 AS SIGNED ), ( - col2 ) * - col0 * col1 AS col2 FROM tab0 AS cor0
----
-3480
18270
-3880
9603
-600
57105

skipif mysql # not compatible
query II rowsort label-1260
SELECT ALL - ( - + 40 ) * - CAST ( + col0 AS INTEGER ), ( - col2 ) * - col0 * col1 AS col2 FROM tab0 AS cor0
----
-3480
18270
-3880
9603
-600
57105

query I rowsort
SELECT + + 67 - - col2 AS col2 FROM tab0 AS cor0
----
114
166
77

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + ( - ( + 1 ) ) + - 27 * - + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT - CAST( - AVG ( ALL - + col1 ) AS SIGNED ) AS col1 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-1263
SELECT - CAST ( - AVG ( ALL - + col1 ) AS INTEGER ) AS col1 FROM tab1
----
-22

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1265
SELECT 52 DIV - col2 AS col1, - col0 col2 FROM tab0 AS cor0
----
-1
-15
-5
-87
0
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1265
SELECT 52 / - col2 AS col1, - col0 col2 FROM tab0 AS cor0
----
-1
-15
-5
-87
0
-97

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1268
SELECT MAX ( ALL 28 ) col0 FROM tab1 AS cor0
----
28

query II rowsort
SELECT DISTINCT ( - 0 ), col2 AS col1 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT DISTINCT - 32 * + col1 AS col2 FROM tab1 AS cor0
----
-1504
-160
-448

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

query I rowsort
SELECT DISTINCT + col1 * ( - 39 ) * - - col0 AS col0 FROM tab1 AS cor0
----
-16575
-166803
-27846

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL 72 * - ( - COUNT( * ) ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL 72 * - ( - COUNT ( * ) ) FROM tab1
----
216

query I rowsort
SELECT DISTINCT + 40 * + + col1 FROM tab1
----
1880
200
560

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

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

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

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

query I rowsort
SELECT ALL - - 67 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
67
67
67

query I rowsort
SELECT DISTINCT + 38 * col1 AS col2 FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT MIN( ALL col1 ) * - COUNT( * ) AS col1, 35 AS col2 FROM tab2 AS cor0
----
-153
35

skipif mysql # not compatible
query II rowsort label-1279
SELECT MIN ( ALL col1 ) * - COUNT ( * ) AS col1, 35 AS col2 FROM tab2 AS cor0
----
-153
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT COUNT( * ) * + 52 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND - 66
----
156

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT COUNT ( * ) * + 52 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND - 66
----
156

query I rowsort
SELECT ALL AVG ( - + 37 ) FROM tab0 WHERE NULL > + 31
----
NULL

query I rowsort
SELECT 48 + 63 AS col1 FROM tab2
----
111
111
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL MAX( + col2 ) FROM tab1 cor0 WHERE NOT + col2 BETWEEN ( - col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL MAX ( + col2 ) FROM tab1 cor0 WHERE NOT + col2 BETWEEN ( - col1 ) AND NULL
----
NULL

query I rowsort
SELECT + - 31 AS col2 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1285
SELECT DISTINCT + + col0 AS col0, + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1285
SELECT DISTINCT + + col0 AS col0, + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL col1 * + - col0 FROM tab2 cor0
----
-2346
-4928
-5025

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - - col1 AS col1, - 67 col1 FROM tab0
----
210
-67
3807
-67
99
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + ( COUNT( + 19 ) ) - - 25 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-1290
SELECT + ( COUNT ( + 19 ) ) - - 25 FROM tab0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1291
SELECT ALL 9 DIV COUNT( * ), + COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL 9 / COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2
----
3
3

query I rowsort
SELECT ALL col2 * + col0 - + 93 + - 22 * + + col1 AS col0 FROM tab0
----
-1170
315
9488

query I rowsort
SELECT - col2 * - col2 + + 91 * + - col0 AS col2 FROM tab1
----
-3657
-4254
4575

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

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

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

query I rowsort
SELECT + 47 + + col1 AS col0 FROM tab2 AS cor0
----
114
124
98

query I rowsort
SELECT DISTINCT - 49 - + col0 + col1 AS col0 FROM tab0 AS cor0
----
-115
-145
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT ALL + - CAST( - + MIN( + + col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL + - CAST ( - + MIN ( + + col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59

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

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

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

query I rowsort
SELECT col2 * - col2 * 62 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT SUM( + ( - col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1302
SELECT SUM ( + ( - col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT col2 * col2 FROM tab2 AS cor0 WHERE NOT NULL <= - col2 + + 15
----

query II rowsort
SELECT + col0 AS col1, col0 * - col2 + - - col0 FROM tab2 cor0
----
46
-1012
64
-2496
75
-4275

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT + MAX( + 5 ) * - COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1308
SELECT + MAX ( + 5 ) * - COUNT ( * ) FROM tab1
----
-15

query I rowsort
SELECT - col0 * - 74 FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + + col2 + - 31 FROM tab2 AS cor0
----
-8
27
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL 74 * + - MAX( DISTINCT - - 46 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3404

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL 74 * + - MAX ( DISTINCT - - 46 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3404

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT DISTINCT - 95 + + + CAST( 43 AS SIGNED ) AS col0 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT - 95 + + + CAST ( 43 AS INTEGER ) AS col0 FROM tab0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT col1 DIV - 21 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1314
SELECT col1 / - 21 FROM tab0
----
-1
-3
0

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

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

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

query I rowsort
SELECT ALL col0 * + - 47 FROM tab2 AS cor0
----
-2162
-3008
-3525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1318
SELECT ALL 71 * - CAST( NULL AS SIGNED ) / - 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL 71 * - CAST ( NULL AS INTEGER ) / - 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - 47 FROM tab1 cor0
----
-33
-42
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1320
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1320
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT - col1 + 10 AS col0 FROM tab2 AS cor0
----
-41
-57
-67

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 36 * + col2 NOT BETWEEN + 2 AND col2
----

query I rowsort
SELECT ALL - 71 * + col0 AS col2 FROM tab2
----
-3266
-4544
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1328
SELECT DISTINCT CAST( + - col1 AS SIGNED ) * - + ( + - col1 ) + 70 + - + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-2071
-30
104

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) * - + ( + - col1 ) + 70 + - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-2071
-30
104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + - col0 ) + + col1 / + 80 col2, - col2 AS col2 FROM tab0 WHERE NULL IN ( col2 * + col1 * - col1, + col0 + 6 )
----

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

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

query I rowsort
SELECT DISTINCT col0 + + 96 + + - col2 FROM tab2
----
113
119
120

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1332
SELECT + CAST ( + col1 AS INTEGER ) col2 FROM tab1
----
14
47
5

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

query II rowsort
SELECT + 11 AS col1, ( - 10 ) FROM tab1
----
11
-10
11
-10
11
-10

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col2 / col0 - + - col2
----

query I rowsort
SELECT 98 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 - + - col1 )
----

query I rowsort
SELECT ALL + 86 - 90 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - ( - MIN( + 63 ) ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1338
SELECT - ( - MIN ( + 63 ) ) AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT + + col1 * - col2 * - col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT DISTINCT + COUNT( * ), - 4 * + 31 AS col0 FROM tab0 AS cor0
----
3
-124

skipif mysql # not compatible
query II rowsort label-1340
SELECT DISTINCT + COUNT ( * ), - 4 * + 31 AS col0 FROM tab0 AS cor0
----
3
-124

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + col1 NOT BETWEEN NULL AND - - 7 - - - 96
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 = 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col1 > col2
----
-10
-47

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

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

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

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

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

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

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

query II rowsort
SELECT + col0, col2 + + + 29 AS col1 FROM tab0
----
15
76
87
39
97
128

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + - ( - col0 ) col0 FROM tab2
----
138
156
167

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT + col0, - 97 * - CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1355
SELECT + col0, - 97 * - CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT + COUNT( * ) * - - 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-1358
SELECT + COUNT ( * ) * - - 85 FROM tab0
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL - 33 + + COUNT( * ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL - 33 + + COUNT ( * ) AS col1 FROM tab0
----
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE + 2 BETWEEN + col2 AND + - 33
----

query I rowsort
SELECT DISTINCT + 63 - - ( - - col2 ) - col2 AS col1 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT COUNT( * ) + - ( + 15 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> col2
----
-15

skipif mysql # not compatible
query I rowsort label-1362
SELECT COUNT ( * ) + - ( + 15 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> col2
----
-15

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1365
SELECT - 34 - + + 42 DIV - + MAX( ALL + + col0 ) AS col0, 61 AS col2 FROM tab0 AS cor0
----
-34
61

skipif mysql # not compatible
query II rowsort label-1365
SELECT - 34 - + + 42 / - + MAX ( ALL + + col0 ) AS col0, 61 AS col2 FROM tab0 AS cor0
----
-34
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1366
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - CAST( CAST( - 95 AS SIGNED ) AS SIGNED ) + - col1 AND + col1 * - 37 * + col0 * + 75 + - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1366
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - CAST ( CAST ( - 95 AS INTEGER ) AS INTEGER ) + - col1 AND + col1 * - 37 * + col0 * + 75 + - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT 3 DIV col2 - 77 * + - col0 AS col2 FROM tab2
----
3542
4928
5775

skipif mysql # not compatible
query I rowsort label-1368
SELECT 3 / col2 - 77 * + - col0 AS col2 FROM tab2
----
3542
4928
5775

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 74 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 40 * + col0 + col2 FROM tab1
----
-1944
-3341
-3572

query I rowsort
SELECT - col2 + + - col0 + + col0 AS col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE + 88 * - ( - 9 ) / - col0 * - 15 + + - col2 + + 49 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT + 64 DIV - 77 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1373
SELECT + 64 / - 77 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
query II rowsort label-1374
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 9 FROM tab2
----
NULL
9
NULL
9
NULL
9

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1377
SELECT DISTINCT - ( - + 16 ) FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) >= + - col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - ( - + 16 ) FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) >= + - col1 + + col1
----

query I rowsort
SELECT 46 * col0 + + - 78 AS col2 FROM tab2 AS cor0
----
2038
2866
3372

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

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

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

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

query I rowsort
SELECT 22 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT DISTINCT - MIN( DISTINCT + 56 ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT - MIN ( DISTINCT + 56 ) FROM tab2 cor0
----
-56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + ( + - MIN( ALL + + 74 ) ) col1 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1387
SELECT + ( + - MIN ( ALL + + 74 ) ) col1 FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1388
SELECT - CAST( - - col1 AS SIGNED ) AS col2, ( - col0 ) col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1388
SELECT - CAST ( - - col1 AS INTEGER ) AS col2, ( - col0 ) col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT DISTINCT COUNT( * ) + ( - 39 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT COUNT ( * ) + ( - 39 ) FROM tab0
----
-36

query I rowsort
SELECT col2 + + col1 * - - 7 AS col2 FROM tab1
----
194
397
94

query I rowsort
SELECT + col1 * + 92 + + 56 + + + 63 FROM tab1 AS cor0
----
1407
4443
579

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

query II rowsort
SELECT 55 * - - col2, col1 FROM tab1 AS cor0
----
3245
5
3740
47
5280
14

query I rowsort
SELECT - 99 * + col0 - - 73 + 41 FROM tab1 AS cor0
----
-4935
-8301
-8895

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

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

query I rowsort
SELECT ALL - + col1 + - - col2 * 42 AS col1 FROM tab2 AS cor0
----
1603
2369
915

query I rowsort
SELECT + col0 + - 68 AS col0 FROM tab0
----
-53
19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + 31 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-1400
SELECT + 31 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT ALL col1 DIV + col1 + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL col1 / + col1 + col2 AS col0 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT 79 + + col2 AS col2 FROM tab2 AS cor0
----
102
119
137

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 94 + - - 21 + + - col2 / + col1 * + 27 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT DISTINCT - 68 + COUNT( * ) + ( + CAST( - + MIN( ALL + 18 ) AS SIGNED ) ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT - 68 + COUNT ( * ) + ( + CAST ( - + MIN ( ALL + 18 ) AS INTEGER ) ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - + col0 * 57 - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-5133
-5723
-885

query I rowsort
SELECT ALL - 63 * 83 FROM tab2
----
-5229
-5229
-5229

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 = - col1 * - 4 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1414
SELECT - AVG ( ALL - + CAST( NULL AS SIGNED ) ) * - 81 + 86 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * - 81 + 86 FROM tab2
----
NULL

query I rowsort
SELECT 49 + - + col2 FROM tab1
----
-10
-19
-47

query I rowsort
SELECT - ( + + 42 ) + - - 40 AS col1 FROM tab0
----
-2
-2
-2

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 36 * + COUNT ( * ) FROM tab0 cor0
----
-108

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 IS NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1421
SELECT col2, + 12 / - col1 + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - CAST( + 41 AS SIGNED ) col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1421
SELECT col2, + 12 / - col1 + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - CAST ( + 41 AS INTEGER ) col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

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

query I rowsort
SELECT DISTINCT + 66 + + col1 + col1 + + col0 * - - col2 FROM tab1
----
4990
5091
6348

query I rowsort
SELECT DISTINCT + 61 + + + 86 FROM tab0
----
147

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT ALL + ( - ( + 92 ) ) DIV + 83 + - col1 * + col1 - + ( - - 88 ) FROM tab2 cor0
----
-2690
-4578
-6018

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL + ( - ( + 92 ) ) / + 83 + - col1 * + col1 - + ( - - 88 ) FROM tab2 cor0
----
-2690
-4578
-6018

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1427
SELECT DISTINCT + col1 AS col2, + CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1427
SELECT DISTINCT + col1 AS col2, + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1428
SELECT ALL + CAST( col0 AS SIGNED ) - - col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + CAST ( col0 AS INTEGER ) - - col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL - col2 + + 15 FROM tab0 cor0
----
-32
-84
5

query II rowsort
SELECT + - col0 + col2 + col2 * - + 61, + 14 AS col0 FROM tab2 AS cor0
----
-1426
14
-2464
14
-3555
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT DISTINCT - col1 DIV - + 23 + + col2 + + col2 - + + col0 * - col0 AS col1 FROM tab0
----
322
7589
9607

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT - col1 / - + 23 + + col2 + + col2 - + + col0 * - col0 AS col1 FROM tab0
----
322
7589
9607

query I rowsort
SELECT ALL + col1 * - - col1 + + - 48 FROM tab2
----
2553
4441
5881

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1435
SELECT CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0 WHERE 34 * 90 - + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0 WHERE 34 * 90 - + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1436
SELECT ALL - + col0 - + 55 AS col0, CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-106
14
-140
5
-146
47

skipif mysql # not compatible
query II rowsort label-1436
SELECT ALL - + col0 - + 55 AS col0, CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-106
14
-140
5
-146
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT ALL MAX( - - col1 ) - CAST( - 51 AS SIGNED ) AS col1 FROM tab1 cor0
----
98

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL MAX ( - - col1 ) - CAST ( - 51 AS INTEGER ) AS col1 FROM tab1 cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT DISTINCT - ( - - MAX( - - col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT - ( - - MAX ( - - col0 ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT + + COUNT( DISTINCT - - 41 ) * COUNT( * ) + 59 AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1439
SELECT + + COUNT ( DISTINCT - - 41 ) * COUNT ( * ) + 59 AS col1 FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL ( + + 3 ) AS col2 FROM tab2
----
3
3
3

query I rowsort
SELECT DISTINCT + col2 * - col0 * - 51 FROM tab1
----
249696
255765
315588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT - CAST( + 64 AS SIGNED ) * + 94 FROM tab0
----
-6016
-6016
-6016

skipif mysql # not compatible
query I rowsort label-1442
SELECT - CAST ( + 64 AS INTEGER ) * + 94 FROM tab0
----
-6016
-6016
-6016

query II rowsort
SELECT 5, + 10 AS col1 FROM tab0
----
5
10
5
10
5
10

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

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

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

query I rowsort
SELECT ALL ( - + ( - col1 ) ) FROM tab0
----
1
21
81

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

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

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

query I rowsort
SELECT 30 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ( + + 24 ) FROM tab1
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 82 + + - col1 / + col0 <> NULL
----

query I rowsort
SELECT DISTINCT - 21 FROM tab2 cor0
----
-21

query I rowsort
SELECT - + col1 * - 14 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT ALL - col2 * + 52 AS col2 FROM tab0 AS cor0
----
-2444
-5148
-520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT + col0 + + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-1457
SELECT + col0 + + col2 / - col2 AS col1 FROM tab1 AS cor0
----
50
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1458
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( - col1 NOT IN ( CAST( - - col0 AS SIGNED ) * + col0 + - + col1, 43 / col0 * + 2 + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-1458
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND ( - col1 NOT IN ( CAST ( - - col0 AS INTEGER ) * + col0 + - + col1, 43 / col0 * + 2 + col2 ) )
----

query I rowsort
SELECT col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col1 * - ( - 33 ) * - 47 * col0 col2 FROM tab0 AS cor0
----
150546
1884512
2833687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + 39 col2 FROM tab0
----
133

query I rowsort
SELECT ALL 97 * - - ( + col2 ) * + 33 AS col2 FROM tab0
----
150447
316899
32010

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

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

query I rowsort
SELECT DISTINCT + 44 + - col0 FROM tab2
----
-2
-20
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1465
SELECT DISTINCT col1 + - 31 DIV col0 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT col1 + - 31 / col0 AS col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1466
SELECT * FROM tab1 WHERE col0 * + col2 * col1 - - 19 + - - CAST( + col2 AS DECIMAL ) * - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1466
SELECT * FROM tab1 WHERE col0 * + col2 * col1 - - 19 + - - CAST ( + col2 AS REAL ) * - - col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL COUNT( * ) + 5 * + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL COUNT ( * ) + 5 * + COUNT ( * ) FROM tab1
----
18

query I rowsort
SELECT + 55 * col2 FROM tab1 AS cor0
----
3245
3740
5280

query I rowsort
SELECT ALL + 76 * - - col1 + + col1 + + 63 AS col0 FROM tab2 AS cor0
----
3990
5222
5992

query I rowsort
SELECT - col2 * - - 6 FROM tab1 AS cor0
----
-354
-408
-576

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

query I rowsort
SELECT DISTINCT + + ( 58 ) - - 24 AS col0 FROM tab1 AS cor0
----
82

query I rowsort
SELECT - + 2 FROM tab0 cor0 WHERE NULL BETWEEN + col0 AND - 20
----

query I rowsort
SELECT + + col2 - col0 AS col0 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT col0 * col2 + - - col2 + col0 - col1 FROM tab2 AS cor0
----
1076
2587
4416

query I rowsort
SELECT - ( - - 83 ) - - col0 FROM tab1
----
-32
2
8

query I rowsort
SELECT DISTINCT + - 57 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-57

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 88 AS col0, col0 * col2 AS col0 FROM tab1 AS cor0
----
-88
4896
-88
5015
-88
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( + 66 ) col0 FROM tab2 AS cor0
----
3036
4224
4950

query I rowsort
SELECT DISTINCT - + 69 AS col0 FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT DISTINCT 27 + + - col1 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) * + 1 * + 21 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT 27 + + - col1 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * + 1 * + 21 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT DISTINCT 79 DIV - + 98 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT 79 / - + 98 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1492
SELECT DISTINCT * FROM tab2 WHERE NOT + 7 IS NULL OR NOT + col2 + - + CAST( NULL AS DECIMAL ) + col0 / - + 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1492
SELECT DISTINCT * FROM tab2 WHERE NOT + 7 IS NULL OR NOT + col2 + - + CAST ( NULL AS REAL ) + col0 / - + 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 23 AS col1 FROM tab2 WHERE NOT + col2 * 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT + 34 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1494
SELECT + 34 / + col0 AS col1 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - 1 * + + 78 AS col1 FROM tab2
----
-78
-78
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / - 69 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1498
SELECT CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

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

query I rowsort
SELECT DISTINCT - 37 * - 94 * 81 FROM tab1 AS cor0
----
281718

onlyif mysql # DIV for integer division: 
query II rowsort label-1501
SELECT col1 DIV 86 + col0 AS col1, col1 + + 7 AS col1 FROM tab1 cor0
----
51
21
85
12
91
54

skipif mysql # not compatible
query II rowsort label-1501
SELECT col1 / 86 + col0 AS col1, col1 + + 7 AS col1 FROM tab1 cor0
----
51
21
85
12
91
54

query II rowsort
SELECT col1 * col1 * - 38, col1 AS col1 FROM tab0 AS cor0
----
-16758
21
-249318
81
-38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL 71 * - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL 71 * - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-216

query I rowsort
SELECT DISTINCT - col1 * + col2 * + + col0 * ( 91 ) FROM tab2 AS cor0
----
-17937920
-26521950
-4910178

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL ( + - MAX( - - 27 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL ( + - MAX ( - - 27 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + ( 97 ) - - + col1 + - 8 + + 84 * col2 * + 82, - col1, - col1, - col1 )
----

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

query I rowsort
SELECT ALL + col0 + 60 * 68 AS col0 FROM tab0
----
4095
4167
4177

query I rowsort
SELECT col2 - + - 41 AS col2 FROM tab2
----
64
81
99

query I rowsort
SELECT + 39 - - col0 FROM tab2
----
103
114
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT + COUNT( - 85 ) + 71 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-1511
SELECT + COUNT ( - 85 ) + 71 FROM tab2
----
74

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

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

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

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

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

query I rowsort
SELECT 71 * - + 42 FROM tab1
----
-2982
-2982
-2982

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT ALL - 5 DIV col0 * - + col0 + - 57 AS col1 FROM tab0 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - 5 / col0 * - + col0 + - 57 AS col1 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT col2 * - 43 FROM tab2 cor0
----
-1720
-2494
-989

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT DISTINCT - - col1 DIV + 21 AS col2 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT - - col1 / + 21 AS col2 FROM tab2 AS cor0
----
2
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1521
SELECT ALL COUNT ( * ) / - COUNT ( ALL col0 ) col2 FROM tab1
----
-1

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT + COUNT( * ) * MAX( col1 ) - - 65 FROM tab0 WHERE NULL IS NULL
----
308

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + COUNT ( * ) * MAX ( col1 ) - - 65 FROM tab0 WHERE NULL IS NULL
----
308

query I rowsort
SELECT - ( - 70 ) * - + 17 FROM tab1
----
-1190
-1190
-1190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT - CAST( + - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1525
SELECT - CAST ( + - col1 AS INTEGER ) FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 15 FROM tab1
----
59
-15
68
-15
96
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col0 <= 9
----

skipif mysql # not compatible
query I rowsort label-1527
SELECT + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 <= 9
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT DISTINCT + + 4 AS col1, - 59 * - COUNT( * ) FROM tab1 AS cor0
----
4
177

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT + + 4 AS col1, - 59 * - COUNT ( * ) FROM tab1 AS cor0
----
4
177

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

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

query I rowsort
SELECT ALL - - 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

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

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

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

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

query II rowsort
SELECT - - col1 + + - col0, col0 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1537
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST( NULL AS SIGNED ), col2 * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-1537
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ), col2 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col0 )
----

query II rowsort
SELECT DISTINCT + col1, 77 FROM tab0
----
1
77
21
77
81
77

query I rowsort
SELECT ALL + col1 + - col1 * - col0 * + ( + - col1 ) AS col1 FROM tab1
----
-200972
-2120
-9982

query I rowsort
SELECT ALL col2 + + 28 * col0 - + 98 * + col0 FROM tab0
----
-1003
-6080
-6691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 74 col0 FROM tab1
----
-125
-159
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT MIN( ALL 14 ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1542
SELECT MIN ( ALL 14 ) AS col0 FROM tab2
----
14

query I rowsort
SELECT ALL col0 + + col1 * + - col0 + + col2 AS col1 FROM tab0
----
-1153
-1730
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT MAX( DISTINCT + 89 ) AS col2 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-1544
SELECT MAX ( DISTINCT + 89 ) AS col2 FROM tab2 AS cor0
----
89

query I rowsort
SELECT DISTINCT + 52 - - + col1 FROM tab0 AS cor0
----
133
53
73

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

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

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

query I rowsort
SELECT + 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

query I rowsort
SELECT + 79 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT DISTINCT + 82 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT + 82 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
8

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

skipif mysql # not compatible
query I rowsort label-1553
SELECT - COUNT ( * ) * - + MIN ( ALL - 51 ) AS col1 FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT DISTINCT - MIN( - - 7 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - MIN ( - - 7 ) FROM tab2
----
-7

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

query I rowsort
SELECT ( - col0 ) AS col1 FROM tab0 WHERE NOT - col0 * - + ( - 28 ) * 36 + + 62 + col0 > - col1
----
-15
-87
-97

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT ALL 62 DIV - col0 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL 62 / - col0 AS col2 FROM tab2
----
-1
0
0

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

query I rowsort
SELECT - ( col2 ) * col2 AS col1 FROM tab2
----
-1600
-3364
-529

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

query I rowsort
SELECT ALL - col1 + - col1 + - + 6 FROM tab2
----
-108
-140
-160

query I rowsort
SELECT - 13 + - col0 + 78 AS col2 FROM tab1
----
-20
-26
14

query II rowsort
SELECT DISTINCT 28 + - 68 AS col2, 51 AS col0 FROM tab1
----
-40
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1567
SELECT ALL + CAST( NULL AS SIGNED ), + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1567
SELECT ALL + CAST ( NULL AS INTEGER ), + col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT - + 39 * COUNT( col1 ) * + 94 col2 FROM tab2 AS cor0 WHERE + 37 IS NOT NULL
----
-10998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1568
SELECT - + 39 * COUNT ( col1 ) * + 94 col2 FROM tab2 AS cor0 WHERE + 37 IS NOT NULL
----
-10998

query I rowsort
SELECT ALL + col1 - - 8 FROM tab1 AS cor0
----
13
22
55

query I rowsort
SELECT 41 + + col0 * ( - 87 ) FROM tab1 AS cor0 WHERE 70 * col2 > + col1
----
-4396
-7354
-7876

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 * - + col2 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT col0 - + col2 DIV - col2 + + col2 AS col2 FROM tab0
----
197
63
98

skipif mysql # not compatible
query I rowsort label-1573
SELECT col0 - + col2 / - col2 + + col2 AS col2 FROM tab0
----
197
63
98

query II rowsort
SELECT + col0 - + + col0, col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT col2 - + + col2 + 13 FROM tab0
----
13
13
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT CAST( - COUNT( * ) AS SIGNED ) + - - 63 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1576
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - - 63 FROM tab1
----
60

query I rowsort
SELECT DISTINCT 53 - + - col0 FROM tab1
----
104
138
144

query I rowsort
SELECT 48 + + col0 + - 55 FROM tab2
----
39
57
68

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

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

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

query I rowsort
SELECT ALL 24 * + col0 FROM tab1 AS cor0
----
1224
2040
2184

onlyif mysql # DIV for integer division: 
query II rowsort label-1583
SELECT DISTINCT - col0 + + + 57 DIV - + 70, - ( - 17 ) + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-15
-30
-87
7
-97
-82

skipif mysql # not compatible
query II rowsort label-1583
SELECT DISTINCT - col0 + + + 57 / - + 70, - ( - 17 ) + + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-15
-30
-87
7
-97
-82

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

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

query II rowsort
SELECT DISTINCT - col0 * - - 91 AS col2, 57 FROM tab0
----
-1365
57
-7917
57
-8827
57

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col2 ) col2, 92 FROM tab0
----
10
92
47
92
99
92

query I rowsort
SELECT DISTINCT + col2 * 62 AS col2 FROM tab2
----
1426
2480
3596

query I rowsort
SELECT 21 + + - col1 * col2 FROM tab1
----
-1323
-274
-3175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - 82, + col2 + ( + ( ( + col0 ) ) ) col0 FROM tab2
----
-15
133
-31
69
-5
104

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1593
SELECT 28, col2 DIV + 28 AS col1 FROM tab1
----
28
2
28
2
28
3

skipif mysql # not compatible
query II rowsort label-1593
SELECT 28, col2 / + 28 AS col1 FROM tab1
----
28
2
28
2
28
3

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1595
SELECT ALL - 82 DIV + CAST( 10 AS SIGNED ) + col0 AS col1 FROM tab2
----
38
56
67

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - 82 / + CAST ( 10 AS INTEGER ) + col0 AS col1 FROM tab2
----
38
56
67

query I rowsort
SELECT ALL - 63 + - - 44 - + + 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

query I rowsort
SELECT - 4 + - + col1 FROM tab0 AS cor0
----
-25
-5
-85

query I rowsort
SELECT + - col0 + - - col0 * col0 * + - 4 AS col2 FROM tab0 AS cor0
----
-30363
-37733
-915

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT ALL + col2 + - 88 - ( col2 ) DIV + col0 FROM tab0 AS cor0
----
-44
-78
10

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + col2 + - 88 - ( col2 ) / + col0 FROM tab0 AS cor0
----
-44
-78
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 99 - - col2 + + col0 - + col0 + col1 - + - col0 * col2 * + 68 col0 FROM tab2 AS cor0
----
166574
289292
66969

query I rowsort
SELECT ALL - col1 - - 67 FROM tab1 AS cor0
----
20
53
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1603
SELECT - + col0 col2, col2 / 74 / CAST( + col1 AS SIGNED ) FROM tab1 cor0 WHERE col1 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1603
SELECT - + col0 col2, col2 / 74 / CAST ( + col1 AS INTEGER ) FROM tab1 cor0 WHERE col1 >= NULL
----

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

query I rowsort
SELECT - 25 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col1 * col1 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1606
SELECT DISTINCT + 73 + - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-12
-18
22

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT + 73 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-12
-18
22

query I rowsort
SELECT DISTINCT - ( 62 ) AS col2 FROM tab1
----
-62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 56 BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL 71 AS col2, 5 * + col2 * 12 * col1 AS col0 FROM tab1
----
71
17700
71
191760
71
80640

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

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

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

query II rowsort
SELECT + + col0, col1 * - col2 AS col2 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

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

query I rowsort
SELECT DISTINCT - + 17 AS col0 FROM tab0 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT + 64 * COUNT( * ) FROM tab1
----
192

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1618
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT + 90 NOT IN ( - - 70 - col2 * + col2, 77 * - - col0, + - 72, col2 + col1 / + ( col1 ), + col1, col2, CAST( NULL AS SIGNED ), ( + 9 ) + + 38 )
----

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT + 90 NOT IN ( - - 70 - col2 * + col2, 77 * - - col0, + - 72, col2 + col1 / + ( col1 ), + col1, col2, CAST ( NULL AS INTEGER ), ( + 9 ) + + 38 )
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT SUM( ALL - 15 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1623
SELECT SUM ( ALL - 15 ) FROM tab0 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT DISTINCT col0 * + col1 * + CAST( - - col0 AS SIGNED ) FROM tab1
----
36125
36414
389207

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT col0 * + col1 * + CAST ( - - col0 AS INTEGER ) FROM tab1
----
36125
36414
389207

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col1 NOT BETWEEN col2 - col1 - - - ( + 48 ) * + 30 AND - col2
----
-14
-47
-5

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

query I rowsort
SELECT col2 * - 22 AS col1 FROM tab1
----
-1298
-1496
-2112

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

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

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

query II rowsort
SELECT - col1 AS col1, + ( + - 92 ) * + ( col2 ) * - ( + + 99 ) * - - col1 FROM tab2
----
-51
10683684
-67
35393688
-77
28052640

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT - MAX( 22 ) * + 38 col1, + 84 FROM tab2
----
-836
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1631
SELECT - MAX ( 22 ) * + 38 col1, + 84 FROM tab2
----
-836
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 57 ) * col1 * - col1 col2 FROM tab0
----
-25137
-373977
-57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 69 / - col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT DISTINCT + col2 DIV + 68 - + 97 + - col0 FROM tab0 cor0
----
-112
-184
-193

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT + col2 / + 68 - + 97 + - col0 FROM tab0 cor0
----
-112
-184
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT 55 * + SUM( ( + col2 ) * col1 ) FROM tab0
----
226380

skipif mysql # not compatible
query I rowsort label-1635
SELECT 55 * + SUM ( ( + col2 ) * col1 ) FROM tab0
----
226380

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT MAX( + 0 ) * 80 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1637
SELECT MAX ( + 0 ) * 80 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 47
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 44 + - 75 IS NOT NULL
----

query I rowsort
SELECT + 72 FROM tab0 WHERE ( + col0 ) <> ( - col1 ) + 84 * - col1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT DISTINCT 73 * - ( - COUNT( * ) ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT 73 * - ( - COUNT ( * ) ) FROM tab1
----
219

query I rowsort
SELECT col0 FROM tab2 WHERE NULL BETWEEN + 8 AND NULL
----

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

query I rowsort
SELECT - col0 + - 90 * col2 AS col0 FROM tab0
----
-4245
-9007
-987

query I rowsort
SELECT + ( + 93 ) + col2 AS col2 FROM tab1
----
152
161
189

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT ALL COUNT( * ) DIV MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL COUNT ( * ) / MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT ALL + 28 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + 28 / col2 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 WHERE 72 IS NOT NULL
----
-10
-47
-99

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

skipif mysql # not compatible
query III rowsort label-1651
SELECT * FROM tab1 WHERE - CAST ( - ( + col0 ) AS REAL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT 96 DIV + col2 col1 FROM tab0
----
0
2
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1652
SELECT 96 / + col2 col1 FROM tab0
----
0
2
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL + MIN( DISTINCT - col0 ) AS col0 FROM tab2 WHERE ( col0 + col0 * + col0 ) IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 WHERE ( col0 + col0 * + col0 ) IS NOT NULL
----
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT col2 DIV - ( + 23 ) FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-1655
SELECT col2 / - ( + 23 ) FROM tab0
----
-2
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT COUNT( - col0 ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1656
SELECT COUNT ( - col0 ) + COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT ALL CAST( - MAX( ALL col0 ) AS SIGNED ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL CAST ( - MAX ( ALL col0 ) AS INTEGER ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL <= NULL
----
0

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

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

query I rowsort
SELECT + col0 * - ( + 67 * col0 ) + col2 AS col1 FROM tab2
----
-141749
-274392
-376817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT COUNT( * ) DIV ( 25 ) FROM tab2 WHERE NULL <> ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT COUNT ( * ) / ( 25 ) FROM tab2 WHERE NULL <> ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + MAX( + col1 ) * 68 + + 56 AS col0 FROM tab1
----
3252

skipif mysql # not compatible
query I rowsort label-1664
SELECT + MAX ( + col1 ) * 68 + + 56 AS col0 FROM tab1
----
3252

query I rowsort
SELECT ALL 47 + 55 AS col2 FROM tab1
----
102
102
102

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT IN ( ( col1 ) / col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 87 - col1 col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1806
6966
86

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

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

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

query I rowsort
SELECT DISTINCT + 97 * - col2 FROM tab2
----
-2231
-3880
-5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab1
----
40
40
40

query I rowsort
SELECT ALL + col1 * - 18 AS col1 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + 36 AS col1 FROM tab1 WHERE NOT ( - col2 / col1 ) >= 95
----
41
50
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN col1 + col2 AND 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL COUNT( 51 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL COUNT ( 51 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 / 34 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col0 ) IN ( col2 + - 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col2 ) * 8 AS col0 FROM tab1 AS cor0
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT ( COUNT( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE - 89 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT ( COUNT ( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE - 89 IS NULL
----
0

query I rowsort
SELECT DISTINCT + - col1 * - 76 + 39 * col1 FROM tab0 AS cor0
----
115
2415
9315

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT 58 * - 32 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 76 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + 34 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1686
SELECT + 34 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
37

query I rowsort
SELECT DISTINCT - ( ( - ( - 32 ) ) ) * col2 FROM tab2 cor0 WHERE NULL IN ( + col2 * + 73 - col0 )
----

query I rowsort
SELECT - 25 + + 61 + + 93 AS col2 FROM tab1
----
129
129
129

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 25 + - col0 AS col1 FROM tab1
----
-110
-116
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT - col0 DIV 97 + col1 * col1 AS col2 FROM tab0
----
0
441
6561

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - col0 / 97 + col1 * col1 AS col2 FROM tab0
----
0
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL col0 * CAST( 12 AS SIGNED ) FROM tab0 WHERE col0 >= col2 / col2
----
1044
1164
180

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL col0 * CAST ( 12 AS INTEGER ) FROM tab0 WHERE col0 >= col2 / col2
----
1044
1164
180

query I rowsort
SELECT ALL - col2 + 22 AS col2 FROM tab0
----
-25
-77
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT - 86 * + COUNT( * ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - 86 * + COUNT ( * ) FROM tab2
----
-258

query I rowsort
SELECT ALL 98 * - 43 + col2 FROM tab2
----
-4156
-4174
-4191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT ALL CAST( NULL AS SIGNED ) - + + col0 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL CAST ( NULL AS INTEGER ) - + + col0 + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT + COUNT( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + COUNT ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - 71 + col0 AS col0 FROM tab1 cor0
----
122
156
162

query I rowsort
SELECT ALL - ( - - 61 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT + 14 * 49 * + col2 AS col1 FROM tab1 AS cor0
----
40474
46648
65856

query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

query I rowsort
SELECT - col2 + + - 86 AS col0 FROM tab2
----
-109
-126
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1703
SELECT 1 + - COUNT( * ) + + + 22 + 96 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT 1 + - COUNT ( * ) + + + 22 + 96 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT ALL + SUM( + + 48 ) DIV + 26 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + SUM ( + + 48 ) / + 26 AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 5 + col0 ) IS NOT NULL OR NOT - col0 NOT BETWEEN + col1 * 8 AND col0 + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT + 74 + - + COUNT( - col2 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1706
SELECT + 74 + - + COUNT ( - col2 ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + col0 + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 40 * - - col1 * 73 NOT IN ( + col1 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 AS col1, + ( + + 25 ) FROM tab1 AS cor0
----
-51
25
-85
25
-91
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - MIN( ALL + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1711
SELECT - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 88 col0, + ( + - col2 ) FROM tab0 AS cor0
----
88
-10
88
-47
88
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 WHERE NOT + - 58 IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + 99 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col2 * + 99 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL + MAX( DISTINCT - ( 91 ) ) AS col2 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL + MAX ( DISTINCT - ( 91 ) ) AS col2 FROM tab0
----
-91

query I rowsort
SELECT - 88 * col1 FROM tab1
----
-1232
-4136
-440

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 55 ) = 94 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT COUNT( ALL + 96 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1719
SELECT COUNT ( ALL + 96 ) FROM tab0
----
3

query I rowsort
SELECT - ( + col2 ) FROM tab2 WHERE NOT NULL = + 42
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL IN ( + ( 34 ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT + 41 / ( - 77 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT SUM( col2 ) + - ( + 47 ) AS col2 FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-1725
SELECT SUM ( col2 ) + - ( + 47 ) AS col2 FROM tab0
----
109

query I rowsort
SELECT 54 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT - 75 + + + COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1727
SELECT - 75 + + + COUNT ( * ) FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT - + ( + COUNT( - col1 ) ) * ( - 7 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 21 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT - + ( + COUNT ( - col1 ) ) * ( - 7 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 21 > NULL
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-1729
SELECT - 65 col1, SUM( ALL - + 14 ), + COUNT( * ) AS col1 FROM tab0 cor0
----
-65
-42
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1729
SELECT - 65 col1, SUM ( ALL - + 14 ), + COUNT ( * ) AS col1 FROM tab0 cor0
----
-65
-42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT 17 * - SUM( - ( + - col1 ) ) FROM tab0 AS cor0
----
-1751

skipif mysql # not compatible
query I rowsort label-1730
SELECT 17 * - SUM ( - ( + - col1 ) ) FROM tab0 AS cor0
----
-1751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1731
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / 78 IN ( - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1733
SELECT ALL + CAST( NULL AS DECIMAL ) * - MAX( ALL 69 ) / + 40 + ( - 44 ) col2 FROM tab1 AS cor0 WHERE NOT col2 > col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1733
SELECT ALL + CAST ( NULL AS REAL ) * - MAX ( ALL 69 ) / + 40 + ( - 44 ) col2 FROM tab1 AS cor0 WHERE NOT col2 > col1
----
NULL

query I rowsort
SELECT ALL + + 9 + + col2 AS col0 FROM tab1 AS cor0
----
105
68
77

query I rowsort
SELECT - + 81 AS col0 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab0 WHERE NULL BETWEEN ( 28 ) AND - 86
----
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL BETWEEN ( 28 ) AND - 86
----
0

query I rowsort
SELECT + ( - - 14 ) FROM tab1
----
14
14
14

query I rowsort
SELECT + 76 / + col1 + col2 AS col1 FROM tab0 WHERE ( NOT ( NOT ( NOT ( NULL ) NOT IN ( col2 ) ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE + 27 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT - 25 + + MAX( ALL - col2 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT - 25 + + MAX ( ALL - col2 ) FROM tab2
----
-48

query I rowsort
SELECT ALL col2 + - col2 - col0 AS col1 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT col2, col1 * 44 AS col2 FROM tab0
----
10
924
47
3564
99
44

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - 1 + + + col2 + + 74 AS col0 FROM tab0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT - - SUM( ALL - 14 ) col1 FROM tab1 cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1745
SELECT DISTINCT - - SUM ( ALL - 14 ) col1 FROM tab1 cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col1 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col1 AND col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1747
SELECT * FROM tab2 WHERE ( - - 53 ) BETWEEN ( CAST( col1 AS SIGNED ) * 14 * + + 38 ) AND col2 - 52 / col0
----

skipif mysql # not compatible
query III rowsort label-1747
SELECT * FROM tab2 WHERE ( - - 53 ) BETWEEN ( CAST ( col1 AS INTEGER ) * 14 * + + 38 ) AND col2 - 52 / col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( - - 13 ) + + 6 ) = ( + col0 / 23 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT ALL + ( + 75 ) AS col2, COUNT( col0 ) + - + 87 FROM tab1 AS cor0
----
75
-84

skipif mysql # not compatible
query II rowsort label-1749
SELECT ALL + ( + 75 ) AS col2, COUNT ( col0 ) + - + 87 FROM tab1 AS cor0
----
75
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1750
SELECT ALL + - MAX( DISTINCT - 83 ) AS col0, MIN( - + 93 ) AS col0 FROM tab1 AS cor0
----
83
-93

skipif mysql # not compatible
query II rowsort label-1750
SELECT ALL + - MAX ( DISTINCT - 83 ) AS col0, MIN ( - + 93 ) AS col0 FROM tab1 AS cor0
----
83
-93

query I rowsort
SELECT DISTINCT ( - col1 ) + + + 27 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - + SUM( 52 ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1752
SELECT - + SUM ( 52 ) FROM tab1 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND 17
----

query I rowsort
SELECT ALL 99 * - + col2 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT + col2 * 89 AS col1 FROM tab0
----
4183
8811
890

query I rowsort
SELECT DISTINCT - 25 * + col2 FROM tab1
----
-1475
-1700
-2400

query II rowsort
SELECT DISTINCT col2 * + ( + 5 ), + 87 + 83 AS col2 FROM tab1
----
295
170
340
170
480
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT + 46 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-1758
SELECT + 46 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
138

query I rowsort
SELECT ALL + col1 + + 98 AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
119
179
99

query I rowsort
SELECT DISTINCT - col0 * + col2 * 56 AS col2 FROM tab2
----
-143360
-243600
-59248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT + - MAX( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1763
SELECT + - MAX ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT + - MIN( - col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1764
SELECT + - MIN ( - col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + - MIN( col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1765
SELECT + - MIN ( col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - - 51 * + 59 * + 39 FROM tab1 WHERE NULL IS NULL
----
117351
117351
117351

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1767
SELECT + + ( + MIN( DISTINCT - col1 ) ) * + CAST( NULL AS DECIMAL ) / + 60 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT + + ( + MIN ( DISTINCT - col1 ) ) * + CAST ( NULL AS REAL ) / + 60 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 86 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL - - ( + 17 ) FROM tab0 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1770
SELECT - CAST( NULL AS SIGNED ) + + col2 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-1770
SELECT - CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 * - - col1 + + col0 AS col0 FROM tab0 AS cor0
----
131
2769
801

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT + 51 + + + MIN( DISTINCT - 26 ) AS col0, COUNT( * ) + 13 AS col0 FROM tab2
----
25
16

skipif mysql # not compatible
query II rowsort label-1772
SELECT + 51 + + + MIN ( DISTINCT - 26 ) AS col0, COUNT ( * ) + 13 AS col0 FROM tab2
----
25
16

query I rowsort
SELECT DISTINCT + col2 * 89 + + col1 * col1 FROM tab1
----
5276
8261
8740

query I rowsort
SELECT DISTINCT + col0 * - 70 FROM tab1
----
-3570
-5950
-6370

query I rowsort
SELECT ALL 70 + + col1 * + col0 AS col1 FROM tab0
----
1285
167
1897

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col0 / - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 91 + - - 55 AS col2 FROM tab1
----
146

query I rowsort
SELECT 46 * + col2 + - 8 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND col2
----
452

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + - 6 ) * - - 50 )
----

query I rowsort
SELECT - - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT col2 * + + col0 * ( + - 73 ) - - 86 + + col2 DIV col0 DIV + col0 - + col2 FROM tab2 AS cor0
----
-186834
-317522
-77171

skipif mysql # not compatible
query I rowsort label-1781
SELECT col2 * + + col0 * ( + - 73 ) - - 86 + + col2 / col0 / + col0 - + col2 FROM tab2 AS cor0
----
-186834
-317522
-77171

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT + COUNT( * ) - + - MAX( - - col1 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1782
SELECT + COUNT ( * ) - + - MAX ( - - col1 ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT - 0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
0

query II rowsort
SELECT DISTINCT col2 * + 28, col2 AS col0 FROM tab1
----
1652
59
1904
68
2688
96

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT - col0 + - 34 / col1 < + col2
----

query I rowsort
SELECT ALL 91 * - col1 AS col1 FROM tab1
----
-1274
-4277
-455

query I rowsort
SELECT + col1 + - - col0 AS col2 FROM tab2 WHERE NOT ( col0 * + col1 ) IS NULL
----
141
142
97

query II rowsort
SELECT ALL 53 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
53
51
53
67
53
77

query II rowsort
SELECT + col2, ( + + col1 ) * + col0 + + - col1 FROM tab2 AS cor0
----
23
2295
40
4851
58
4958

query I rowsort
SELECT + - ( - 95 ) AS col1 FROM tab2 cor0
----
95
95
95

query I rowsort
SELECT - ( - - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT DISTINCT + CAST( - + 56 AS SIGNED ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT + CAST ( - + 56 AS INTEGER ) FROM tab1 AS cor0
----
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL
----

query II rowsort
SELECT + - col2, + col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1795
SELECT DISTINCT CAST( - 66 AS SIGNED ) AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-66
3

skipif mysql # not compatible
query II rowsort label-1795
SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-66
3

query I rowsort
SELECT DISTINCT - ( - ( - 5 ) ) AS col1 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= ( col2 + col2 * + 16 * ( + + col2 ) - - - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - + col0, - 94, + 78 + - 24 + + - 62 + col0 )
----

query II rowsort
SELECT ALL 62 * + + 94 AS col2, col2 FROM tab0
----
5828
10
5828
47
5828
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL MAX( + - 70 ) * + COUNT( * ) FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL MAX ( + - 70 ) * + COUNT ( * ) FROM tab2
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT ALL - col1 * CAST( NULL AS SIGNED ) * ( - col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) * ( - col0 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT 61 * COUNT( * ) col1 FROM tab2
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1802
SELECT 61 * COUNT ( * ) col1 FROM tab2
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT + col0 DIV + + col2 col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1803
SELECT + col0 / + + col2 col2 FROM tab0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col0 FROM tab2 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT - - CAST( + col0 AS SIGNED ) * 60 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
2760
3840
4500

skipif mysql # not compatible
query I rowsort label-1805
SELECT - - CAST ( + col0 AS INTEGER ) * 60 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
2760
3840
4500

query I rowsort
SELECT ALL - ( + ( - ( ( + + col1 ) ) ) ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT MIN( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 >= - col1
----
-99

skipif mysql # not compatible
query I rowsort label-1808
SELECT MIN ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - col2 >= - col1
----
-99

query II rowsort
SELECT DISTINCT - 19 * - col1 * + + 96, - col1 + - col0 - + col1 + - 8 * + col2 AS col0 FROM tab2
----
122208
-673
140448
-538
93024
-332

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + MAX( DISTINCT + 25 ) * + 37 + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
934

skipif mysql # not compatible
query I rowsort label-1810
SELECT + MAX ( DISTINCT + 25 ) * + 37 + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + + col1 col1 FROM tab2
----
-14
-30
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - COUNT( * ) + 88 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-1812
SELECT - COUNT ( * ) + 88 FROM tab0
----
85

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 9 ) <> NULL
----

query I rowsort
SELECT ALL + col1 * - 6 AS col0 FROM tab0 cor0
----
-126
-486
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT - + 79 * COUNT( * ) AS col2 FROM tab2 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-1815
SELECT - + 79 * COUNT ( * ) AS col2 FROM tab2 cor0
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 39 * + + col2 * - 58 col2 FROM tab2 AS cor0
----
131196
52026
90480

query I rowsort
SELECT ALL - 81 + 3 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL + - COUNT( ALL - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + - COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - COUNT( ALL - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1819
SELECT - COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT ( + col0 ) - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT ( + col0 ) - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1821
SELECT DISTINCT - CAST( col0 AS SIGNED ) + col2 + + col2 * + - col1 FROM tab1
----
-1299
-321
-3219

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + col2 + + col2 * + - col1 FROM tab1
----
-1299
-321
-3219

query I rowsort
SELECT col1 + - 34 FROM tab0
----
-13
-33
47

query I rowsort
SELECT col0 * + + col1 * - 75 * 35 + - col2 FROM tab2
----
-12936040
-13190683
-6158273

query I rowsort
SELECT + 18 + ( + - 1 ) FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT + - 30 FROM tab1 cor0 WHERE NULL <= col2 * + col0
----

query I rowsort
SELECT DISTINCT - - col0 + col0 - + col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT DISTINCT MAX( DISTINCT ( + + 6 ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT MAX ( DISTINCT ( + + 6 ) ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - ( 42 ) FROM tab1
----
-42

query I rowsort
SELECT col2 * col0 * col1 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL 92 * - + 39 FROM tab1
----
-3588
-3588
-3588

query I rowsort
SELECT DISTINCT col0 * col0 * + + col1 * 49 FROM tab1
----
1770125
1784286
19071143

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT SUM( DISTINCT 95 ) AS col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-1833
SELECT SUM ( DISTINCT 95 ) AS col1 FROM tab0
----
95

query II rowsort
SELECT + col2 AS col0, - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT 12 + + col0 + + col0 AS col0 FROM tab0
----
186
206
42

query I rowsort
SELECT 72 AS col1 FROM tab0 WHERE NOT NULL IS NULL AND NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 WHERE NOT + 39 + - - col2 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1838
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 NOT BETWEEN + - col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1838
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 NOT BETWEEN + - col2 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + SUM( ALL 21 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1839
SELECT + SUM ( ALL 21 ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT ALL + 54 + - COUNT( * ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL + 54 + - COUNT ( * ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 * - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 9 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT col2 + + col0 + + 2 DIV col0 col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1843
SELECT col2 + + col0 + + 2 / col0 col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT CAST( col0 AS SIGNED ) + - 14 + 56 AS col2 FROM tab0 AS cor0
----
129
139
57

skipif mysql # not compatible
query I rowsort label-1844
SELECT CAST ( col0 AS INTEGER ) + - 14 + 56 AS col2 FROM tab0 AS cor0
----
129
139
57

query I rowsort
SELECT - col0 + - + col2 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + COUNT( * ) + COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1846
SELECT + COUNT ( * ) + COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 + + col2 BETWEEN - col2 * + + col1 * + + col2 / - - col2 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL - COUNT( + 12 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - COUNT ( + 12 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT + MAX( col1 ) - + + 72 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + MAX ( col1 ) - + + 72 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1850
SELECT DISTINCT ( - CAST( - - CAST( NULL AS DECIMAL ) AS DECIMAL ) ) * + + col1 * + CAST( NULL AS DECIMAL ), 90 AS col0 FROM tab2 AS cor0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-1850
SELECT DISTINCT ( - CAST ( - - CAST ( NULL AS REAL ) AS REAL ) ) * + + col1 * + CAST ( NULL AS REAL ), 90 AS col0 FROM tab2 AS cor0
----
NULL
90

query II rowsort
SELECT + col0 * - + col0, + col2 AS col2 FROM tab0 AS cor0 WHERE + col0 BETWEEN ( + col2 ) AND 1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT + MAX( - 8 ) * + COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT + MAX ( - 8 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 86 ) + + col0 + - - col0 * + col2 col0 FROM tab1 AS cor0
----
4861
5014
6193

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT - MIN( - + 18 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - MIN ( - + 18 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( 38 )
----
NULL

query I rowsort
SELECT DISTINCT col0 + + - col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT + - col1 * + 74 AS col1 FROM tab0 AS cor0 WHERE col2 * col1 + + col2 IS NOT NULL
----
-1554
-5994
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-1857
SELECT ALL - col1 DIV + - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - col1 / + - col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - + 97 * + col1 FROM tab0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL COUNT( + 89 ) + + + SUM( + col0 ) AS col0 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL COUNT ( + 89 ) + + + SUM ( + col0 ) AS col0 FROM tab1
----
230

query II rowsort
SELECT + col1 AS col1, - 74 + col0 AS col2 FROM tab2
----
51
-28
67
1
77
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-1861
SELECT ALL col0 DIV - 69 + col1, col0 FROM tab1 AS cor0
----
14
51
4
85
46
91

skipif mysql # not compatible
query II rowsort label-1861
SELECT ALL col0 / - 69 + col1, col0 FROM tab1 AS cor0
----
14
51
4
85
46
91

query II rowsort
SELECT + - ( col2 ) * - + col1, col1 AS col1 FROM tab0 AS cor0
----
210
21
3807
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT + SUM( ALL + + 59 ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + SUM ( ALL + + 59 ) FROM tab0 AS cor0
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1864
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1864
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT DISTINCT + COUNT( * ) DIV + + 97 * - 4 AS col2 FROM tab1 WHERE NOT + - col1 BETWEEN ( + col0 * - ( - 61 ) ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT + COUNT ( * ) / + + 97 * - 4 AS col2 FROM tab1 WHERE NOT + - col1 BETWEEN ( + col0 * - ( - 61 ) ) AND ( NULL )
----
0

query I rowsort
SELECT - col2 * ( + 70 ) FROM tab1
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1868
SELECT 5 DIV - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1868
SELECT 5 / - COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) <= + - col0 * - - col2 * + ( + - ( - - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT ALL - ( + MAX( DISTINCT 80 ) ) AS col2 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - ( + MAX ( DISTINCT 80 ) ) AS col2 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( + col1 IS NULL )
----
51
85
91

query I rowsort
SELECT DISTINCT col2 + - 8 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT col2 * col0 < - col2 * - 93 + col0 - + 66 + + - col2 * - - col0 * + col2 )
----

query I rowsort
SELECT col0 * ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1875
SELECT - CAST( - 43 AS SIGNED ) AS col0, - CAST( + col1 AS SIGNED ) + col1 col1 FROM tab0 AS cor0
----
43
0
43
0
43
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1875
SELECT - CAST ( - 43 AS INTEGER ) AS col0, - CAST ( + col1 AS INTEGER ) + col1 col1 FROM tab0 AS cor0
----
43
0
43
0
43
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1876
SELECT ALL + + col1 * - 10 + - - 98 * - + CAST( + - col2 AS DECIMAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL + + col1 * - 10 + - - 98 * - + CAST ( + - col2 AS REAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 / - AVG ( DISTINCT - col2 ) col1 FROM tab1 WHERE NOT - 27 * col1 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 28 AS col2, - 14 AS col0 FROM tab0
----
28
-14

query I rowsort
SELECT DISTINCT + 51 + - col2 FROM tab1
----
-17
-45
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL - MAX( - - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - MAX ( - - col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT col1 * 62 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL 70 * + + COUNT( * ) + + 41 FROM tab0
----
251

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL 70 * + + COUNT ( * ) + + 41 FROM tab0
----
251

query I rowsort
SELECT DISTINCT + 64 + + 95 AS col0 FROM tab2
----
159

query II rowsort
SELECT + col2, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT ALL + col1 DIV + 82 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1885
SELECT ALL + col1 / + 82 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL 44 - 62 * COUNT( * ) + 76 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL 44 - 62 * COUNT ( * ) + 76 FROM tab2 cor0
----
-66

query I rowsort
SELECT 33 - - col1 AS col2 FROM tab2 AS cor0
----
100
110
84

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab0 AS cor0 WHERE NULL <= 51 * + col1 + - col1 * - 1 * + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE col1 / - - ( 77 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1889
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 / - - ( 77 ) IS NOT NULL
----
3

query I rowsort
SELECT + 34 - - - col1 AS col2 FROM tab1 AS cor0
----
-13
20
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT ALL + 84 DIV + - COUNT( * ) + COUNT( * ) + + - MIN( DISTINCT - col1 ) DIV 5 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + 84 / + - COUNT ( * ) + COUNT ( * ) + + - MIN ( DISTINCT - col1 ) / 5 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10

query II rowsort
SELECT ALL col2 + 77 AS col1, ( - col2 ) FROM tab1
----
136
-59
145
-68
173
-96

query I rowsort
SELECT - 88 - - col1 FROM tab1
----
-41
-74
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT col0 DIV - + col2 + - + col0 AS col1 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-1894
SELECT col0 / - + col2 + - + col0 AS col1 FROM tab2
----
-48
-65
-76

query I rowsort
SELECT ALL col2 * 77 FROM tab2
----
1771
3080
4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * col0, + col1 * + + col2 - col2 col1 FROM tab2
----
2116
1150
4096
3040
5625
3828

query I rowsort
SELECT ALL - 85 * + - 54 AS col1 FROM tab2
----
4590
4590
4590

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT + 54 DIV - COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-1899
SELECT + 54 / - COUNT ( * ) FROM tab0
----
-18

query I rowsort
SELECT DISTINCT + col1 * + col2 * + col0 FROM tab1 cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT - col2 * - 36 + - col2 AS col2 FROM tab1 AS cor0
----
2065
2380
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT + + 46 * - COUNT( * ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT + + 46 * - COUNT ( * ) FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL SUM( ( col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL SUM ( ( col2 ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT + col1 * - 77 * 88 AS col0 FROM tab0 cor0 WHERE NOT ( - col2 ) IS NULL
----
-142296
-548856
-6776

query II rowsort
SELECT DISTINCT + 5, col2 AS col1 FROM tab0
----
5
10
5
47
5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT + 60 * - MIN( DISTINCT + + col1 ) FROM tab1
----
-300

skipif mysql # not compatible
query I rowsort label-1906
SELECT + 60 * - MIN ( DISTINCT + + col1 ) FROM tab1
----
-300

query I rowsort
SELECT ALL - ( + + 72 ) AS col2 FROM tab2
----
-72
-72
-72

query I rowsort
SELECT ALL + 75 * 63 FROM tab1
----
4725
4725
4725

query III rowsort
SELECT * FROM tab1 WHERE NOT 49 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab0 AS cor0
----
58
58
58

query II rowsort
SELECT ALL + col2 AS col0, - 96 FROM tab1 cor0
----
59
-96
68
-96
96
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 47 IN ( + col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 97 FROM tab1 cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - MAX( + 59 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1914
SELECT - MAX ( + 59 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1915
SELECT + CAST( NULL AS SIGNED ) AS col2, 70 AS col1 FROM tab0 AS cor0
----
NULL
70
NULL
70
NULL
70

skipif mysql # not compatible
query II rowsort label-1915
SELECT + CAST ( NULL AS INTEGER ) AS col2, 70 AS col1 FROM tab0 AS cor0
----
NULL
70
NULL
70
NULL
70

query I rowsort
SELECT DISTINCT + - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - - 25 AS col0 FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT ALL - + 18 + - 79 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - + 18 + - 79 + col0 / col0 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + col0 * + col0 + + + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( * ) + - 77 + - 24 col0 FROM tab1
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1920
SELECT COUNT ( * ) + - 77 + - 24 col0 FROM tab1
----
-98

query I rowsort
SELECT DISTINCT 12 + + col1 FROM tab2
----
63
79
89

query I rowsort
SELECT + 60 + - col2 FROM tab2
----
2
20
37

query I rowsort
SELECT ALL + 85 + col1 AS col1 FROM tab2
----
136
152
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 7 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL MAX( col2 ) + + COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL MAX ( col2 ) + + COUNT ( * ) FROM tab2
----
61

query I rowsort
SELECT ALL + + col1 + + 23 FROM tab1 WHERE + 76 IS NOT NULL
----
28
37
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - + MAX( ALL 71 ) col0 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1928
SELECT - + MAX ( ALL 71 ) col0 FROM tab0 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - 66 * COUNT( * ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1929
SELECT - 66 * COUNT ( * ) FROM tab1 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT - COUNT( * ) * ( 16 ) AS col0 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT - COUNT ( * ) * ( 16 ) AS col0 FROM tab1 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 68 ) col0 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + COUNT( ALL + - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1932
SELECT + COUNT ( ALL + - col1 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col2 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1935
SELECT COUNT( DISTINCT + 70 ) + - - CAST( NULL AS DECIMAL ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1935
SELECT COUNT ( DISTINCT + 70 ) + - - CAST ( NULL AS REAL ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1936
SELECT DISTINCT - - SUM( + col2 ) * COUNT( * ) - + 3 * COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT - - SUM ( + col2 ) * COUNT ( * ) - + 3 * COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
669

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1937
SELECT - col1 + + CAST( - ( + 9 ) AS SIGNED ) - 25 DIV - + col1 FROM tab2 cor0
----
-60
-76
-86

skipif mysql # not compatible
query I rowsort label-1937
SELECT - col1 + + CAST ( - ( + 9 ) AS INTEGER ) - 25 / - + col1 FROM tab2 cor0
----
-60
-76
-86

query I rowsort
SELECT - + col0 + + 16 FROM tab1 cor0
----
-35
-69
-75

query I rowsort
SELECT - col0 + + 65 + - + 10 * - - col0 * - ( - 10 ) * + + ( col2 ) AS col0 FROM tab2 AS cor0
----
-105781
-255999
-435010

query I rowsort
SELECT + ( - + col0 ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col1 + - col1 + + + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1942
SELECT DISTINCT - 2 AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2
3

skipif mysql # not compatible
query II rowsort label-1942
SELECT DISTINCT - 2 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2
3

query I rowsort
SELECT - ( - 24 ) + - 13 AS col1 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - ( + - MAX( - - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1945
SELECT - ( + - MAX ( - - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL - + col2 * + - 8 AS col0 FROM tab0 AS cor0
----
376
792
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT ALL + 29 AS col1, - COUNT( * ) FROM tab0
----
29
-3

skipif mysql # not compatible
query II rowsort label-1947
SELECT ALL + 29 AS col1, - COUNT ( * ) FROM tab0
----
29
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 98 col2, 98 col1 FROM tab1
----
98
98
98
98
98
98

query I rowsort
SELECT ALL + 52 * + 70 AS col0 FROM tab1
----
3640
3640
3640

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1952
SELECT col2, - col1 DIV + - 21 col1 FROM tab1
----
59
0
68
2
96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1952
SELECT col2, - col1 / + - 21 col1 FROM tab1
----
59
0
68
2
96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - 6 col0 FROM tab0
----
126
486
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 / - - col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * + 37 FROM tab2
----
-1702
-2368
-2775

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( ( - col0 ) ) <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * - - col0 * - ( + 25 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1958
SELECT ALL + ( - COUNT( * ) ) DIV - MIN( - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + ( - COUNT ( * ) ) / - MIN ( - col0 ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, col2 * col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
3807
87
210
97
99

query II rowsort
SELECT ALL col1 AS col1, + col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT - col1 * + CAST( + - col0 AS SIGNED ) + - + col0 AS col1 FROM tab0
----
0
1200
1740

skipif mysql # not compatible
query I rowsort label-1961
SELECT - col1 * + CAST ( + - col0 AS INTEGER ) + - + col0 AS col1 FROM tab0
----
0
1200
1740

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1962
SELECT ALL col0 DIV - CAST( - col1 AS SIGNED ), col1 AS col1 FROM tab0
----
0
81
4
21
97
1

skipif mysql # not compatible
query II rowsort label-1962
SELECT ALL col0 / - CAST ( - col1 AS INTEGER ), col1 AS col1 FROM tab0
----
0
81
4
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 * + col0, col0 + - ( ( col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - MIN( DISTINCT - 85 ) AS col1 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1965
SELECT - MIN ( DISTINCT - 85 ) AS col1 FROM tab1 AS cor0
----
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 63 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - + SUM( + + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1967
SELECT - + SUM ( + + col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + ( - col1 ) * - 44 AS col1 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT DISTINCT - col0 / + CAST( NULL AS SIGNED ) + col2 + 0 - - + col1 + CAST( NULL AS SIGNED ) * 24 - + + 33 * - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT - col0 / + CAST ( NULL AS INTEGER ) + col2 + 0 - - + col1 + CAST ( NULL AS INTEGER ) * 24 - + + 33 * - col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( + col2 ) + - 17 FROM tab0
----
-7
30
82

query III rowsort
SELECT * FROM tab0 WHERE 89 > + + col0
----
15
81
47
87
21
10

query I rowsort
SELECT col0 * + col2 + + 80 FROM tab0
----
785
950
9683

query I rowsort
SELECT ALL 63 + 69 * - ( + col1 ) FROM tab2
----
-3456
-4560
-5250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1974
SELECT - col2 + + + 4 * + CAST( + col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
161
216
242

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1974
SELECT - col2 + + + 4 * + CAST ( + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
161
216
242

query III rowsort
SELECT * FROM tab1 cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 * + 51 FROM tab2
----
-2323
-3224
-3767

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 92 * + col0 * - col1 < NULL
----

query I rowsort
SELECT ALL - 46 - 66 + - + col0 FROM tab2 AS cor0
----
-158
-176
-187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 79 col0 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT + + col0 * - 45 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 42 IS NULL
----

query II rowsort
SELECT col0 * col2 AS col2, col2 FROM tab1 cor0
----
4896
96
5015
59
6188
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL ( - ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL ( - ( COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 * 21 AS col1 FROM tab2
----
1218
483
840

query III rowsort
SELECT * FROM tab0 WHERE NOT - 31 * + col2 > + col0 + - - col2 - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + col0 * col2 AS col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT MIN( - col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1989
SELECT MIN ( - col1 ) col0 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + - 54 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + - 54 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT - ( - col1 ) + + 22 DIV col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1992
SELECT - ( - col1 ) + + 22 / col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query II rowsort
SELECT - 26 AS col1, + 32 AS col0 FROM tab2 cor0
----
-26
32
-26
32
-26
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT ALL col2 DIV col2 * col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL col2 / col2 * col0 FROM tab1
----
51
85
91

query I rowsort
SELECT 69 * + 50 FROM tab2
----
3450
3450
3450

query I rowsort
SELECT ( 87 ) * col2 FROM tab2
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( NULL ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1997
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( NULL ) IS NULL )
----

query II rowsort
SELECT ALL + + col1, 52 AS col0 FROM tab0 AS cor0
----
1
52
21
52
81
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT DISTINCT - + COUNT( DISTINCT col2 ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1999
SELECT DISTINCT - + COUNT ( DISTINCT col2 ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT - 90 + - 36 + col1 - + col0 FROM tab1 AS cor0
----
-163
-170
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT + COUNT( * ) + - MAX( + + 8 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2001
SELECT + COUNT ( * ) + - MAX ( + + 8 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT + - COUNT( * ) + + COUNT( * ) + - MIN( ALL + 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2002
SELECT + - COUNT ( * ) + + COUNT ( * ) + - MIN ( ALL + 8 ) FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - COUNT( * ) + + - MIN( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2003
SELECT - COUNT ( * ) + + - MIN ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL + - ( + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - + col1 + 73 AS col1 FROM tab0 cor0
----
-8
52
72

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 52 > col0
----

query I rowsort
SELECT - col2 + + 7 * + - 96 + - - 76 FROM tab0
----
-606
-643
-695

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2008
SELECT DISTINCT 20 + + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2008
SELECT DISTINCT 20 + + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT DISTINCT col2 * - + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT col2 * - + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT - - 39 DIV col1 + + 3 + col1 FROM tab2 AS cor0
----
54
70
80

skipif mysql # not compatible
query I rowsort label-2011
SELECT - - 39 / col1 + + 3 + col1 FROM tab2 AS cor0
----
54
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT - MAX( DISTINCT - col1 ) - + 80 AS col1 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2012
SELECT - MAX ( DISTINCT - col1 ) - + 80 AS col1 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT DISTINCT + + ( 90 ) col1, - MAX( ALL + ( + + col1 ) ) AS col2 FROM tab2 AS cor0
----
90
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2013
SELECT DISTINCT + + ( 90 ) col1, - MAX ( ALL + ( + + col1 ) ) AS col2 FROM tab2 AS cor0
----
90
-77

query I rowsort
SELECT ALL + 44 AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2015
SELECT CAST( + COUNT( * ) AS SIGNED ) - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2016
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL + CAST( - - 99 AS SIGNED ) AS col1 FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + CAST ( - - 99 AS INTEGER ) AS col1 FROM tab1
----
99
99
99

query I rowsort
SELECT ALL + 47 + - col1 - - col1 AS col0 FROM tab2
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT SUM( - - 6 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT SUM ( - - 6 ) FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT - - COUNT( * ) * - 78 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + ( - 73 ) AND - 40 + + col0 * col1 / + col1
----
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT - - COUNT ( * ) * - 78 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + ( - 73 ) AND - 40 + + col0 * col1 / + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT COUNT( DISTINCT + col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2021
SELECT COUNT ( DISTINCT + col0 ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( 60 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT 91 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT 91 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 50 FROM tab2 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT + col1 * + + 55 AS col0, + 85 FROM tab2 AS cor0
----
2805
85
3685
85
4235
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 AS cor0 WHERE NOT + col0 IN ( + 16 )
----
-14
-47
-5

query I rowsort
SELECT ALL col2 + - col2 * - col2 FROM tab1
----
3540
4692
9312

query II rowsort
SELECT + col2 AS col0, 45 FROM tab2 cor0
----
23
45
40
45
58
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT - 52 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2030
SELECT - 52 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 + col1 * - col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT COUNT( * ) * - SUM( - 20 ) AS col2 FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-2032
SELECT COUNT ( * ) * - SUM ( - 20 ) AS col2 FROM tab1
----
180

query I rowsort
SELECT DISTINCT - col2 * + 50 AS col2 FROM tab1
----
-2950
-3400
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * - + 19 - + col1 - col2 FROM tab1
----
-1008
-159
-376

query I rowsort
SELECT ALL col0 * + 36 - col0 AS col0 FROM tab1
----
1785
2975
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT - + col0 - + col0 * 42 AS col2 FROM tab0 cor0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL 89 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL 89 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2040
SELECT DISTINCT col0 * ( CAST( NULL AS DECIMAL ) ) * - 53 + + + ( + CAST( NULL AS SIGNED ) ) * 19 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT col0 * ( CAST ( NULL AS REAL ) ) * - 53 + + + ( + CAST ( NULL AS INTEGER ) ) * 19 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL + COUNT( * ) * + 61 * 1 AS col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + COUNT ( * ) * + 61 * 1 AS col2 FROM tab0 AS cor0
----
183

query I rowsort
SELECT + col0 * + col2 + - 4 FROM tab0 AS cor0
----
701
866
9599

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2043
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT + MIN( 27 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT + MIN ( 27 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL MIN( DISTINCT 84 ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL MIN ( DISTINCT 84 ) AS col1 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT - MAX( ALL - - 30 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT - MAX ( ALL - - 30 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE + + col2 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( + col1 * - 24 - + col0 * col2, col0 + + col2, - 26 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) <> - col0
----

query I rowsort
SELECT DISTINCT + - col1 * - col0 + + + col1 + col2 FROM tab2 AS cor0
----
2420
5045
5150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - + MIN( DISTINCT + col2 ) FROM tab2 WHERE + 36 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2053
SELECT - + MIN ( DISTINCT + col2 ) FROM tab2 WHERE + 36 IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT - + COUNT( - col2 ) * - 91 col1 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2054
SELECT DISTINCT - + COUNT ( - col2 ) * - 91 col1 FROM tab0 AS cor0
----
273

query I rowsort
SELECT DISTINCT - 94 * - + 56 FROM tab2 AS cor0
----
5264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT col1 + - col1 * - - CAST( NULL AS SIGNED ) + - 19 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT col1 + - col1 * - - CAST ( NULL AS INTEGER ) + - 19 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT ALL + ( - + 22 ) AS col0 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2059
SELECT DISTINCT COUNT( - 77 ) DIV + MAX( ALL col1 ) DIV + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT COUNT ( - 77 ) / + MAX ( ALL col1 ) / + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col2 * - 6 FROM tab0
----
-282
-594
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 + + 52 * - + col1 BETWEEN NULL AND - - col2
----

query II rowsort
SELECT - 21 AS col1, col0 * 8 FROM tab0
----
-21
120
-21
696
-21
776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT ALL - col1 * - col1 + col2 + CAST( NULL AS SIGNED ) * + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - col1 * - col1 + col2 + CAST ( NULL AS INTEGER ) * + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT DISTINCT col1 * + + CAST( + col1 AS SIGNED ) + - + 92 AS col0 FROM tab0
----
-91
349
6469

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT col1 * + + CAST ( + col1 AS INTEGER ) + - + 92 AS col0 FROM tab0
----
-91
349
6469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT - CAST( - col0 AS SIGNED ) - 75 AS col0 FROM tab0 AS cor0
----
-60
12
22

skipif mysql # not compatible
query I rowsort label-2065
SELECT - CAST ( - col0 AS INTEGER ) - 75 AS col0 FROM tab0 AS cor0
----
-60
12
22

query I rowsort
SELECT + col1 + ( col2 ) * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-624
-849
-9602

query I rowsort
SELECT - 8 FROM tab0 AS cor0 WHERE NOT - 81 IS NULL
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2068
SELECT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2069
SELECT ALL + + COUNT( * ) DIV + SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + + COUNT ( * ) / + SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2070
SELECT ALL col0 AS col0, + col2 DIV + + col1 FROM tab0 AS cor0
----
15
0
87
0
97
99

skipif mysql # not compatible
query II rowsort label-2070
SELECT ALL col0 AS col0, + col2 / + + col1 FROM tab0 AS cor0
----
15
0
87
0
97
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 / + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + MAX( ALL - - 3 ) + + COUNT( ( + 49 ) ) AS col1 FROM tab0, tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2073
SELECT + MAX ( ALL - - 3 ) + + COUNT ( ( + 49 ) ) AS col1 FROM tab0, tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT 84 + - - ( col0 ) AS col1 FROM tab0
----
171
181
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2076
SELECT DISTINCT 71 DIV col0 col1, 28 FROM tab1
----
0
28
1
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2076
SELECT DISTINCT 71 / col0 col1, 28 FROM tab1
----
0
28
1
28

query I rowsort
SELECT 15 * - 9 AS col0 FROM tab0
----
-135
-135
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT MIN( DISTINCT + col1 ), - 25 AS col0 FROM tab2 AS cor0
----
51
-25

skipif mysql # not compatible
query II rowsort label-2078
SELECT MIN ( DISTINCT + col1 ), - 25 AS col0 FROM tab2 AS cor0
----
51
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL MIN( col2 ) AS col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL MIN ( col2 ) AS col1 FROM tab0 cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT ALL - + 89 + 64 DIV + 64 AS col0 FROM tab2 cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL - + 89 + 64 / + 64 AS col0 FROM tab2 cor0
----
-88
-88
-88

query I rowsort
SELECT 23 + - 23 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 83 + + - col1 FROM tab0
----
2
62
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col0 FROM tab0 cor0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL - 38 - MAX( col1 ) * 28 AS col1 FROM tab0 AS cor0
----
-2306

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL - 38 - MAX ( col1 ) * 28 AS col1 FROM tab0 AS cor0
----
-2306

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL + 17, + MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
17
23

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL + 17, + MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
17
23

query I rowsort
SELECT DISTINCT - 65 FROM tab1 AS cor0 WHERE NOT + 50 + - col1 IS NULL
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL - + MAX( ALL + 4 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL - + MAX ( ALL + 4 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
NULL

query I rowsort
SELECT - 3 - col0 * col0 + - - 58 FROM tab1 AS cor0
----
-2546
-7170
-8226

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2090
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1, - col0 * CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2090
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - col0 * CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT + 12 DIV + col0 + col0 DIV - col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT + 12 / + col0 + col0 / - col2 AS col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT - CAST( NULL AS SIGNED ) + - 14 * col1 * + 24 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT - CAST ( NULL AS INTEGER ) + - 14 * col1 * + 24 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 * + - 15 AS col2 FROM tab2 WHERE NOT col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 23 + col2 + - col0 FROM tab2
----
-1
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2096
SELECT * FROM tab2 WHERE + col2 / - 95 + CAST( - col0 AS SIGNED ) / + col2 * - col2 * + + 74 * col0 <= + - 50
----

skipif mysql # not compatible
query III rowsort label-2096
SELECT * FROM tab2 WHERE + col2 / - 95 + CAST ( - col0 AS INTEGER ) / + col2 * - col2 * + + 74 * col0 <= + - 50
----

query I rowsort
SELECT ALL - 4 - col2 AS col2 FROM tab0
----
-103
-14
-51

query II rowsort
SELECT DISTINCT + ( - 39 ) AS col1, 70 + + - col1 AS col2 FROM tab2
----
-39
-7
-39
19
-39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT 60 * + COUNT( * ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-2099
SELECT 60 * + COUNT ( * ) FROM tab2
----
180

query II rowsort
SELECT DISTINCT col2 * ( 36 ) AS col0, 69 + + - col2 FROM tab0
----
1692
22
3564
-30
360
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL COUNT( - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL COUNT ( - col1 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2104
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 87 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 87 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2105
SELECT + col1 AS col2, 78 DIV col1 AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-2105
SELECT + col1 AS col2, 78 / col1 AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - - col2 AS col1, ( - col0 ) col1, - - col1 * + col0 FROM tab1 AS cor0
----
9 values hashing to 270ee25b9f217164976e262fc49f7304

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2108
SELECT + ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL MAX( - + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL MAX ( - + col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT - col2 + CAST( col0 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2110
SELECT - col2 + CAST ( col0 AS INTEGER ) FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NULL AND NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / + col1 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2113
SELECT ALL - col0 + - CAST( col2 AS SIGNED ) DIV - + col0 - + + col0 AS col2 FROM tab1
----
-101
-170
-182

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - col0 + - CAST ( col2 AS INTEGER ) / - + col0 - + + col0 AS col2 FROM tab1
----
-101
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2114
SELECT ALL - col2 + ( + - CAST( + 47 AS SIGNED ) ) AS col0, col1 FROM tab0
----
-146
1
-57
21
-94
81

skipif mysql # not compatible
query II rowsort label-2114
SELECT ALL - col2 + ( + - CAST ( + 47 AS INTEGER ) ) AS col0, col1 FROM tab0
----
-146
1
-57
21
-94
81

query I rowsort
SELECT - col1 * - + 65 - - col0 + + 55 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT 55 * + ( + - MIN( - 42 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT 55 * + ( + - MIN ( - 42 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - 26 * + - COUNT( * ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2117
SELECT - 26 * + - COUNT ( * ) FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - 49 col1 FROM tab2 AS cor0
----
1127
1960
2842

query I rowsort
SELECT col1 * + - 76 AS col0 FROM tab2 AS cor0
----
-3876
-5092
-5852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT - CAST( AVG ( ALL 71 ) AS SIGNED ) FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - CAST ( AVG ( ALL 71 ) AS INTEGER ) FROM tab2 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - 49 * + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
441

skipif mysql # not compatible
query I rowsort label-2121
SELECT - 49 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
441

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL col2 - + + col1 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - col2 + - col1 + - 58 * - + col1 FROM tab0
----
-42
1187
4570

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 27 + + col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * - col0 + + + col1 AS col0 FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <> col1 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 + + 55 FROM tab1 AS cor0
----
41
50
8

query III rowsort
SELECT ALL 77 - - - col2 - + col2 AS col2, 46 * - - col2 AS col0, - + col1 + - - ( + col0 ) AS col2 FROM tab2 AS cor0
----
9 values hashing to a40be6a9872bfee6f35093cfdb5fb3d2

query I rowsort
SELECT + + col0 + col1 - + + 69 FROM tab2 AS cor0
----
28
72
73

query I rowsort
SELECT - col1 * + - col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT + MIN( DISTINCT + + ( + + col0 ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2133
SELECT + MIN ( DISTINCT + + ( + + col0 ) ) FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col2 + - col0 + col2 + ( col0 ) col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2135
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 <> ( + - CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2135
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 <> ( + - CAST ( + + col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 38
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT + SUM( DISTINCT - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2138
SELECT + SUM ( DISTINCT - col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - col0 - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2139
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - col0 - - col1 IS NOT NULL
----

query II rowsort
SELECT ALL 71 AS col1, - ( col2 ) FROM tab2
----
71
-23
71
-40
71
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + - 67 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT + CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2142
SELECT + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <> + 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - ( - col0 ) ) col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT ALL + + col0, - ( + col0 ) FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab1 WHERE + 17 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT DISTINCT - 80 - + 73 * + ( 59 - 28 * 58 ) AS col1 FROM tab0
----
114165

query III rowsort
SELECT * FROM tab1 WHERE + 84 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab2 WHERE col1 = - col1 + + col2
----

query I rowsort
SELECT ALL + ( - col2 ) - + col0 AS col0 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - MAX( 59 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - MAX ( 59 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - ( COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2154
SELECT - ( COUNT ( * ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 * + col1 - 64 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT ( + col2 ) >= ( col2 - col2 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2157
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col1 / col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) BETWEEN - col1 AND - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL COUNT( * ) * + MAX( col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL COUNT ( * ) * + MAX ( col2 ) FROM tab0
----
297

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - col2 * - col1 = ( + col1 + 57 / + 7 )
----

query I rowsort
SELECT + ( 84 ) AS col2 FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT + col2 * - 53 FROM tab2
----
-1219
-2120
-3074

query I rowsort
SELECT DISTINCT - col0 * 70 AS col1 FROM tab1
----
-3570
-5950
-6370

query III rowsort
SELECT * FROM tab2 WHERE 39 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * 39 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL CAST( 24 AS SIGNED ) FROM tab1 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 44 / + 51 > ( + col2 / col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 62 - 70 NOT BETWEEN col2 * + col0 AND 62
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2170
SELECT col0 FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN col0 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2170
SELECT col0 FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN col0 AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT 79 + + col0 * col0 FROM tab0
----
304
7648
9488

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - MAX( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2173
SELECT - MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE 18 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT - 70 DIV col0 - - 6 * + col0 FROM tab2 AS cor0
----
275
383
450

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 70 / col0 - - 6 * + col0 FROM tab2 AS cor0
----
275
383
450

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= ( + 34 * - col0 - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= ( + 34 * - col0 - col0 )
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE 44 * - 99 + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT DISTINCT - + ( - col2 ) DIV col1 - col0 * col0 FROM tab2 cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - + ( - col2 ) / col1 - col0 * col0 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT + - col0 - + col1 * - 54 AS col1 FROM tab0 AS cor0
----
-43
1047
4359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT CAST( + + 55 AS SIGNED ) FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2181
SELECT CAST ( + + 55 AS INTEGER ) FROM tab1
----
55
55
55

query I rowsort
SELECT col0 * + + 72 AS col1 FROM tab2
----
3312
4608
5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 - 45 col1 FROM tab1 WHERE NOT col1 <> 27 + col2
----

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab0 WHERE NOT ( - 19 ) IN ( + col1 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL COUNT( DISTINCT col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT + col1 + - col2 / - col2 > col0
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT COUNT( * ) * + - 66 col2 FROM tab0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2188
SELECT COUNT ( * ) * + - 66 col2 FROM tab0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT + ( - + ( COUNT( DISTINCT col1 ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2189
SELECT + ( - + ( COUNT ( DISTINCT col1 ) ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL + MAX( - + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + MAX ( - + col2 ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL - MAX( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL - MAX ( DISTINCT - - col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT MAX( DISTINCT + col1 ) * + COUNT( * ) AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-2193
SELECT MAX ( DISTINCT + col1 ) * + COUNT ( * ) AS col2 FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL MIN( + + 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL MIN ( + + 56 ) FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2195
SELECT * FROM tab2 WHERE NOT - col2 / CAST( NULL AS SIGNED ) + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2195
SELECT * FROM tab2 WHERE NOT - col2 / CAST ( NULL AS INTEGER ) + + col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 74 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL - - COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2197
SELECT ALL - - COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT ALL - col1, + col2 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL 70 * + col2 - - col0 FROM tab2 cor0
----
1656
2864
4135

query I rowsort
SELECT + 37 * + - 38 + - + col1 FROM tab1 AS cor0
----
-1411
-1420
-1453

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - col1 + 91
----

query II rowsort
SELECT + 41 AS col1, 37 + + 82 + + col0 * + col0 AS col1 FROM tab2 cor0
----
41
2235
41
4215
41
5744

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + - col2 * 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( ( - - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + - MIN( DISTINCT - - 90 ) + + COUNT( * ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2206
SELECT + - MIN ( DISTINCT - - 90 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-87

query I rowsort
SELECT ALL 26 + + 79 AS col2 FROM tab0 AS cor0
----
105
105
105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 75 - - col1 )
----

query I rowsort
SELECT DISTINCT - 55 * + + 97 FROM tab0 AS cor0
----
-5335

query I rowsort
SELECT - - col0 + - + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ( - MIN( DISTINCT 78 ) ) + 82 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2211
SELECT ( - MIN ( DISTINCT 78 ) ) + 82 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL 73 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * col2 * - - 60 + 18 AS col0 FROM tab2
----
-201822
-31722
-95982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT + SUM( DISTINCT + - col0 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT + SUM ( DISTINCT + - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2215
SELECT DISTINCT - 83 DIV - + COUNT( * ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - 83 / - + COUNT ( * ) AS col0 FROM tab1
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2216
SELECT DISTINCT * FROM tab1 WHERE + CAST( - 35 AS DECIMAL ) + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2216
SELECT DISTINCT * FROM tab1 WHERE + CAST ( - 35 AS REAL ) + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL 47 * - COUNT( * ) + + 31 FROM tab1
----
-110

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 47 * - COUNT ( * ) + + 31 FROM tab1
----
-110

query I rowsort
SELECT ALL + 44 + - 50 + - col0 FROM tab0
----
-103
-21
-93

query III rowsort
SELECT * FROM tab2 WHERE col2 / col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) BETWEEN ( + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 15 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > + col1 + + col0
----

query I rowsort
SELECT ALL + col1 * - + 60 AS col1 FROM tab1
----
-2820
-300
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT DISTINCT ( ( col2 ) ) * col2 + + CAST( + ( col2 ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT col1 <> - + 77
----

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT ( ( col2 ) ) * col2 + + CAST ( + ( col2 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT col1 <> - + 77
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 42 * + + ( 94 ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 ) NOT BETWEEN NULL AND ( + ( col2 ) * + ( col2 * col0 ) + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL + MIN( ALL + col2 ) * - + COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL + MIN ( ALL + col2 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT DISTINCT + ( - col1 ) * col0 * col0 DIV col1 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2228
SELECT DISTINCT + ( - col1 ) * col0 * col0 / col1 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL + - 47 * - - col2 AS col1 FROM tab2 AS cor0
----
-1081
-1880
-2726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT ALL - COUNT( * ) DIV - COUNT( + - 14 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - COUNT ( * ) / - COUNT ( + - 14 ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT CAST( - COUNT( * ) AS SIGNED ) - + - COUNT( DISTINCT - 32 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2231
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - + - COUNT ( DISTINCT - 32 ) FROM tab2 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 - - 9 * col0 + - col2 * col0 col0 FROM tab2 AS cor0
----
-1920
-3611
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ALL - MIN( - ( + col1 ) ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2233
SELECT ALL - MIN ( - ( + col1 ) ) col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + 72 - - col0 FROM tab2
----
118
136
147

query I rowsort
SELECT ALL col2 - 0 * + col2 AS col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT 46 + + col1 AS col1 FROM tab0 AS cor0
----
127
47
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col1 * - 80 + - 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT DISTINCT + ( - + col1 ) * + 10 + - col1 + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT + ( - + col1 ) * + 10 + - col1 + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT ALL + 1 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + 1 / col1 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 51, 8 col1 FROM tab2 AS cor0
----
51
8
51
8
51
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + - SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2241
SELECT + - SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + MAX( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + col1 )
----
58

skipif mysql # not compatible
query I rowsort label-2242
SELECT + MAX ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + col1 )
----
58

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT ( - + 70 ) * 11 FROM tab2
----
-770
-770
-770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2245
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - - CAST( NULL AS SIGNED ) / + + col2 AND + 72
----

skipif mysql # not compatible
query III rowsort label-2245
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - - CAST ( NULL AS INTEGER ) / + + col2 AND + 72
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT - COUNT( * ) col0, SUM( ALL ( - 77 ) ) AS col2 FROM tab1 AS cor0
----
-3
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2246
SELECT - COUNT ( * ) col0, SUM ( ALL ( - 77 ) ) AS col2 FROM tab1 AS cor0
----
-3
-231

query II rowsort
SELECT DISTINCT - ( + + col1 ) AS col1, col0 + + + col1 FROM tab2 AS cor0
----
-51
97
-67
142
-77
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2248
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <= ( col0 * - 99 / + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <= ( col0 * - 99 / + + col1 )
----
0

query I rowsort
SELECT ALL + 8 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL OR ( - col0 + + + col1 ) IS NOT NULL
----
8
8
8

query II rowsort
SELECT ALL + col0, + 61 AS col2 FROM tab0 AS cor0
----
15
61
87
61
97
61

query I rowsort
SELECT DISTINCT + col1 + + ( + col0 ) AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL - ( - SUM( - 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-2252
SELECT ALL - ( - SUM ( - CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT SUM( DISTINCT + col2 ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT SUM ( DISTINCT + col2 ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 56 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT DISTINCT - MIN( - - col2 ) + - 77 FROM tab1 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT - MIN ( - - col2 ) + - 77 FROM tab1 AS cor0
----
-136

query I rowsort
SELECT - 9 * - - col1 AS col0 FROM tab1 AS cor0
----
-126
-423
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( + col1 ) BETWEEN NULL AND col0 ) )
----

query I rowsort
SELECT + ( + 42 ) * + col1 + col0 FROM tab1 AS cor0
----
2065
295
639

query I rowsort
SELECT 12 * + - col1 - 28 AS col1 FROM tab2 AS cor0
----
-640
-832
-952

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2260
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col1 * + - 56 * + col0, + CAST( NULL AS SIGNED ) + + 31 )
----

skipif mysql # not compatible
query III rowsort label-2260
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col1 * + - 56 * + col0, + CAST ( NULL AS INTEGER ) + + 31 )
----

query II rowsort
SELECT ALL 0 + + col0, + 12 + 58 AS col1 FROM tab0 AS cor0
----
15
70
87
70
97
70

query I rowsort
SELECT ALL 25 FROM tab0 AS cor0 WHERE NOT ( 75 ) IS NOT NULL
----

query I rowsort
SELECT - 89 AS col2 FROM tab2 WHERE NULL IS NULL
----
-89
-89
-89

query I rowsort
SELECT ALL ( - 87 ) + - - col1 * + col1 AS col1 FROM tab1
----
-62
109
2122

query I rowsort
SELECT ALL - 15 + + - ( + 96 ) AS col0 FROM tab1
----
-111
-111
-111

query I rowsort
SELECT - 31 + - col0 AS col0 FROM tab2
----
-106
-77
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2267
SELECT DISTINCT + col0 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2267
SELECT DISTINCT + col0 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT ALL + col0 DIV + - col1 - - - col0 col1 FROM tab0 AS cor0
----
-15
-194
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2268
SELECT ALL + col0 / + - col1 - - - col0 col1 FROM tab0 AS cor0
----
-15
-194
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT + 38 + - - COUNT( ALL - col1 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + 38 + - - COUNT ( ALL - col1 ) FROM tab0
----
41

query II rowsort
SELECT - ( - col2 ), col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT ALL - ( 71 ) DIV 93 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - ( 71 ) / 93 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2272
SELECT DISTINCT + ( - + col0 ), col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-2272
SELECT DISTINCT + ( - + col0 ), col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT ALL - - 95 AS col0 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + - SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2274
SELECT + - SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab2
----
6

query I rowsort
SELECT ALL - 71 + - ( + + col2 ) FROM tab0 WHERE NOT - col2 + + col0 IS NULL
----
-118
-170
-81

query I rowsort
SELECT 58 * + col1 FROM tab1
----
2726
290
812

query I rowsort
SELECT + ( col0 ) * col2 * + 40 FROM tab2
----
102400
174000
42320

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT ( + col2 ) DIV 91 * + col0 col1 FROM tab1
----
0
0
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2279
SELECT ( + col2 ) / 91 * + col0 col1 FROM tab1
----
0
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT DISTINCT MIN( DISTINCT + - 84 ) * COUNT( * ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT MIN ( DISTINCT + - 84 ) * COUNT ( * ) FROM tab0
----
-252

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - + col1 * + col0
----

query II rowsort
SELECT ALL + col1, 90 AS col0 FROM tab1
----
14
90
47
90
5
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL <= col2 + + 1 * - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT ALL - CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
68
96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 22 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT ALL col1 + - col1 DIV + col0 + - + 73 FROM tab2 cor0
----
-23
-6
3

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL col1 + - col1 / + col0 + - + 73 FROM tab2 cor0
----
-23
-6
3

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL > + col0 - - - 36 - + 35 * - 2 AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT + 38 * - col2 * + + col0 * - col0 * - - col0 + + col2 FROM tab2 AS cor0
----
398458920
85071687
929812558

query I rowsort
SELECT + 86 + + - 97 AS col2 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT DISTINCT - 64 AS col2, SUM( - 49 ) AS col1 FROM tab2 AS cor0
----
-64
-147

skipif mysql # not compatible
query II rowsort label-2291
SELECT DISTINCT - 64 AS col2, SUM ( - 49 ) AS col1 FROM tab2 AS cor0
----
-64
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col2, 65 col0 FROM tab2 AS cor0
----
46
65
64
65
75
65

query I rowsort
SELECT col0 * + col2 + + - 10 - - col1 * + col1 FROM tab0 AS cor0
----
1301
7256
9594

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT - COUNT( * ) + - SUM( 48 ) col0 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2294
SELECT - COUNT ( * ) + - SUM ( 48 ) col0 FROM tab0 AS cor0
----
-147

query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT 35 col0 FROM tab0 WHERE NULL = - ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2296
SELECT 35 col0 FROM tab0 WHERE NULL = - ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2297
SELECT * FROM tab1 WHERE - 65 + + col1 * + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2297
SELECT * FROM tab1 WHERE - 65 + + col1 * + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT DISTINCT ( + 20 ) AS col1, + ( + - col2 ) FROM tab2 AS cor0
----
20
-23
20
-40
20
-58

query I rowsort
SELECT - col1 * - 38 + - - col2 - 26 AS col0 FROM tab1 AS cor0
----
1828
223
602

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 37 - - col0 AS col2 FROM tab1 AS cor0
----
14
48
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT 1 * - + COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT 1 * - + COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) + + + COUNT( DISTINCT - col0 ) col0 FROM tab1 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2304
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + + + COUNT ( DISTINCT - col0 ) col0 FROM tab1 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT COUNT( ALL - col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2305
SELECT COUNT ( ALL - col2 ) col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT 22 DIV - + col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2306
SELECT 22 / - + col2 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2308
SELECT - CAST( + MAX( ALL - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2308
SELECT - CAST ( + MAX ( ALL - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2309
SELECT ALL CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2309
SELECT ALL CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT + + 46 / - - CAST( NULL AS SIGNED ) + - col0 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-2310
SELECT + + 46 / - - CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 57 * - col2 * - col2 * col1 FROM tab2 AS cor0
----
-12847116
-1537803
-7022400

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT ALL + + 59, COUNT( * ) AS col0 FROM tab2 AS cor0
----
59
3

skipif mysql # not compatible
query II rowsort label-2312
SELECT ALL + + 59, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + + MAX( - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2313
SELECT + + MAX ( - - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT DISTINCT col1 / col1 / - + col2 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL < + col2
----

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT col1 / col1 / - + col2 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL < + col2
----

query I rowsort
SELECT + 3 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND + - 25
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL - 54 * COUNT( * ) AS col0 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - 54 * COUNT ( * ) AS col0 FROM tab0
----
-162

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( ( + col2 ) * - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT - COUNT( ALL col0 ) FROM tab1 WHERE NOT + ( col2 ) * - + col0 + + col1 + + 25 > + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - COUNT ( ALL col0 ) FROM tab1 WHERE NOT + ( col2 ) * - + col0 + + col1 + + 25 > + - col1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2319
SELECT ALL col2 DIV col2, col1 AS col1 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-2319
SELECT ALL col2 / col2, col1 AS col1 FROM tab0
----
1
1
1
21
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT + MAX( + - col0 ) * - + 46 AS col1 FROM tab0
----
690

skipif mysql # not compatible
query I rowsort label-2320
SELECT + MAX ( + - col0 ) * - + 46 AS col1 FROM tab0
----
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2321
SELECT ALL + MIN( - col2 ) DIV COUNT( * ) * - 68 * + 95 AS col0 FROM tab0
----
213180

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL + MIN ( - col2 ) / COUNT ( * ) * - 68 * + 95 AS col0 FROM tab0
----
213180

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + + SUM( - 24 ) AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2322
SELECT + + SUM ( - 24 ) AS col2 FROM tab0 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + col1, col0 col0 FROM tab1 cor0
----
10
85
28
51
94
91

query I rowsort
SELECT DISTINCT - 11 + + - col2 AS col2 FROM tab1
----
-107
-70
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT COUNT( * ) + + + COUNT( - col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2325
SELECT COUNT ( * ) + + + COUNT ( - col1 ) FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT DISTINCT CAST( - - MIN( + + col1 ) AS SIGNED ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT CAST ( - - MIN ( + + col1 ) AS INTEGER ) AS col0 FROM tab0
----
1

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT ALL - col0 * - ( + col0 ) - + + col1 FROM tab2 AS cor0
----
2065
4019
5558

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + col1 / + + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 3, col1 AS col1 FROM tab1 cor0
----
3
14
3
47
3
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2331
SELECT ALL + - 73 * + CAST( - 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
5329
5329
5329

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + - 73 * + CAST ( - 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
5329
5329
5329

query I rowsort
SELECT DISTINCT - + col2 * - 60 FROM tab0 AS cor0
----
2820
5940
600

query I rowsort
SELECT ALL col2 * + + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT DISTINCT col1, col1 * + - col2 + - ( - col1 ) + - + 67 FROM tab0
----
1
-165
21
-256
81
-3793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT CAST( - + col2 AS SIGNED ) + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT CAST ( - + col2 AS INTEGER ) + + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + 39 + - - COUNT( + + col1 ) col0 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2336
SELECT + 39 + - - COUNT ( + + col1 ) col0 FROM tab1
----
42

query I rowsort
SELECT ALL - 70 + 27 + + col0 AS col2 FROM tab2
----
21
3
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - + 48 - + col2 col2 FROM tab0
----
-2288
-403
-4754

query I rowsort
SELECT - - 42 + - + col2 + 76 * + 53 AS col0 FROM tab1 AS cor0
----
3974
4002
4011

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL - SUM( + - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - SUM ( + - col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - 97 * 30 + + - col1 / + - ( + col1 ) * - col1 AS col0 FROM tab1 WHERE NOT 24 * - 58 IS NOT NULL
----

query I rowsort
SELECT ALL - + 71 AS col2 FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - col1 * + + 42 FROM tab1 AS cor0 WHERE col1 * + col2 * - 31 BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT ALL - + 27 AS col0 FROM tab0 AS cor0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + 57 < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) + CAST( ( AVG ( ALL + col2 ) ) AS SIGNED ) AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) + CAST ( ( AVG ( ALL + col2 ) ) AS INTEGER ) AS col1 FROM tab1
----
83

query I rowsort
SELECT DISTINCT ( - + 24 ) FROM tab0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT ALL + 11 * + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL + 11 * + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL - MIN( - + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - MIN ( - + col1 ) AS col0 FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT - + col1 DIV + col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT - + col1 / + col0 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT col0 * col2 * - - col0 + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT + 81 * - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + 81 * - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-729

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 57 ) / + col0 - col1 + - + ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + - - col2 AS col0 FROM tab0 cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT - col2 + + ( - 18 ) DIV 7 FROM tab2 AS cor0
----
-25
-42
-60

skipif mysql # not compatible
query I rowsort label-2355
SELECT - col2 + + ( - 18 ) / 7 FROM tab2 AS cor0
----
-25
-42
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT ALL 55 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 55 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT + 23 + + - col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
22
22
23

skipif mysql # not compatible
query I rowsort label-2357
SELECT + 23 + + - col0 / + col2 AS col2 FROM tab1 AS cor0
----
22
22
23

query I rowsort
SELECT DISTINCT - + col2 * - col0 * - col2 * + - col2 + 90 + - - 10 + - 49 AS col2 FROM tab2 AS cor0
----
14633451
4096051
559733

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT - SUM( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2359
SELECT - SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT + 35 DIV 73 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT + 35 / 73 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT SUM( ALL col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2361
SELECT DISTINCT SUM ( ALL col2 ) col2 FROM tab0
----
156

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL 64, - 25 AS col2 FROM tab0
----
64
-25
64
-25
64
-25

query I rowsort
SELECT DISTINCT col2 + + - ( + col2 ) + col2 + - 60 - - col1 * - + ( - + col1 ) FROM tab2
----
2564
4487
5909

query II rowsort
SELECT + col1 AS col1, col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 9 + - - 44 + col0 * col2 + col2 + col1 + + col1 * - - col2 AS col0 FROM tab1
----
5409
6385
9534

query II rowsort
SELECT col1, 20 AS col1 FROM tab2 AS cor0
----
51
20
67
20
77
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL - + MIN( ALL - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - + MIN ( ALL - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT + 73 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
73
73
73

query I rowsort
SELECT ALL + + 99 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query II rowsort
SELECT ALL - 55 AS col0, - col0 AS col1 FROM tab2
----
-55
-46
-55
-64
-55
-75

query I rowsort
SELECT col0 * + col2 * + + col0 AS col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT 31 * - + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2373
SELECT 31 * - + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0 WHERE + col1 + 53 * col2 * - - col1 <= NULL
----

query I rowsort
SELECT + col2 * + - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT DISTINCT MAX( - - CAST( + + col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT MAX ( - - CAST ( + + col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT - 22 DIV - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2377
SELECT - 22 / - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL - ( + ( + + COUNT( * ) ) ) col0 FROM tab2 AS cor0 WHERE - ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2378
SELECT ALL - ( + ( + + COUNT ( * ) ) ) col0 FROM tab2 AS cor0 WHERE - ( - col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT + - 19, + COUNT( * ) + 39 AS col0 FROM tab1 AS cor0
----
-19
42

skipif mysql # not compatible
query II rowsort label-2379
SELECT + - 19, + COUNT ( * ) + 39 AS col0 FROM tab1 AS cor0
----
-19
42

query I rowsort
SELECT ALL col0 * + 29 AS col2 FROM tab0 AS cor0
----
2523
2813
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT ALL - col2 * + + 63 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - col2 * + + 63 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT DISTINCT - 76 + + - COUNT( * ) AS col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT - 76 + + - COUNT ( * ) AS col1 FROM tab0
----
-79

query I rowsort
SELECT DISTINCT col2 + - 71 FROM tab0
----
-24
-61
28

query I rowsort
SELECT 91 * + ( + col1 ) FROM tab0
----
1911
7371
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT CAST( - col1 AS SIGNED ) * - col0 + - - col0 AS col0 FROM tab0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-2385
SELECT CAST ( - col1 AS INTEGER ) * - col0 + - - col0 AS col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + 63 * SUM( - - col2 ) AS col1 FROM tab2 cor0 WHERE NULL <> ( + col1 + - + ( + 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT + 63 * SUM ( - - col2 ) AS col1 FROM tab2 cor0 WHERE NULL <> ( + col1 + - + ( + 34 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT - MAX( DISTINCT + + col0 ) FROM tab0 cor0 WHERE NOT ( NOT NULL NOT IN ( - 48, col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - MAX ( DISTINCT + + col0 ) FROM tab0 cor0 WHERE NOT ( NOT NULL NOT IN ( - 48, col0 ) )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT - ( + - col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT - ( + - col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT DISTINCT col0 DIV - col0 - - col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT col0 / - col0 - - col1 FROM tab2
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - COUNT( * ) * COUNT( * ) + MAX( ALL col1 ) FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - COUNT ( * ) * COUNT ( * ) + MAX ( ALL col1 ) FROM tab2 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 21 ) + + 96 col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
117
117
117

query I rowsort
SELECT + - col0 - 22 FROM tab1 AS cor0
----
-107
-113
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL MIN( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL MIN ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT + COUNT( * ) + + - 50 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + COUNT ( * ) + + - 50 FROM tab1
----
-47

query I rowsort
SELECT - 52 * + + col1 * + col1 FROM tab0
----
-22932
-341172
-52

query I rowsort
SELECT - 0 * + + 36 * + col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT ALL ( - CAST( + col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL ( - CAST ( + col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT + CAST( + - MAX( + col2 ) AS SIGNED ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2399
SELECT + CAST ( + - MAX ( + col2 ) AS INTEGER ) AS col1 FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 8 BETWEEN NULL AND - 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT ALL 12 DIV 6 * - col0 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL 12 / 6 * - col0 FROM tab0
----
-174
-194
-30

query II rowsort
SELECT - + 21 * + 85, - col1 AS col2 FROM tab1 cor0
----
-1785
-14
-1785
-47
-1785
-5

query II rowsort
SELECT - ( ( - + col1 ) ), + col0 * - 23 AS col0 FROM tab0
----
1
-2231
21
-2001
81
-345

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - - 51 * + col2 AND + + 73
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <= - 46
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL - ( - + CAST( - 51 AS SIGNED ) ) FROM tab0 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - ( - + CAST ( - 51 AS INTEGER ) ) FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT DISTINCT 40, + MAX( - - col1 ) AS col2 FROM tab1
----
40
47

skipif mysql # not compatible
query II rowsort label-2407
SELECT DISTINCT 40, + MAX ( - - col1 ) AS col2 FROM tab1
----
40
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2408
SELECT col0 + 40 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
125
NULL
131
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2408
SELECT col0 + 40 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
125
NULL
131
NULL
91
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT col1 + - + 74 + 72 + + + ( + col0 ) * 88 * col0 AS col0 FROM tab1
----
228900
635803
728773

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT ALL + col0 + + - col0 + + ( col2 ) DIV col1 * - col0 AS col0 FROM tab1
----
-306
-91
-935

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL + col0 + + - col0 + + ( col2 ) / col1 * - col0 AS col0 FROM tab1
----
-306
-91
-935

query I rowsort
SELECT + col2 * + + 19 * ( + + 82 ) FROM tab1 AS cor0
----
105944
149568
91922

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + COUNT( * ) * + MAX( + + col2 ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2414
SELECT + COUNT ( * ) * + MAX ( + + col2 ) FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2415
SELECT ALL - SUM( ALL - 86 ) * + + CAST( - + COUNT( * ) AS SIGNED ) + + 75 AS col0 FROM tab2, tab0 cor0
----
-6891

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - SUM ( ALL - 86 ) * + + CAST ( - + COUNT ( * ) AS INTEGER ) + + 75 AS col0 FROM tab2, tab0 cor0
----
-6891

query I rowsort
SELECT ALL - col2 - - - col2 + - 30 + - + col1 + - - col0 AS col2 FROM tab0 AS cor0
----
-132
-190
16

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT DISTINCT - 3 DIV 76 - - + col1 * col0 * - col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT - 3 / 76 - - + col1 * col0 * - col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT + CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT + CAST ( NULL AS INTEGER ) * - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT ALL - - MIN( ALL - col2 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-96

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - - MIN ( ALL - col2 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-96

query II rowsort
SELECT ALL col2 * + col1, - col2 AS col2 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT - col1 * - col0 * CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-107916
-315392
-376875

skipif mysql # not compatible
query I rowsort label-2422
SELECT - col1 * - col0 * CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-107916
-315392
-376875

query I rowsort
SELECT + 72 * 49 FROM tab0 AS cor0
----
3528
3528
3528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, 7 col2 FROM tab2
----
51
7
67
7
77
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * 83 AS col1 FROM tab0
----
3901
8217
830

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT ALL + col1 DIV col1 col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2427
SELECT ALL + col1 / col1 col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2428
SELECT col1 DIV - 74 col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2428
SELECT col1 / - 74 col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL COUNT( col0 ) / - - COUNT( * ) * - + SUM( DISTINCT - ( col1 ) ) + 13 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-2429
SELECT ALL COUNT ( col0 ) / - - COUNT ( * ) * - + SUM ( DISTINCT - ( col1 ) ) + 13 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT DISTINCT - COUNT( * ) DIV - MAX( DISTINCT col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - COUNT ( * ) / - MAX ( DISTINCT col1 ) AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL 52 DIV - col2 col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT ALL 52 / - col2 col1 FROM tab2 AS cor0
----
-1
-2
0

query II rowsort
SELECT + col0 AS col2, - col0 FROM tab0 cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL >= + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ( - - 21 ) DIV - - col2 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2434
SELECT ( - - 21 ) / - - col2 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2438
SELECT + COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + 49 + + - col1 FROM tab1
----
2
35
44

query I rowsort
SELECT 49 + - + col2 * + col0 AS col1 FROM tab2
----
-1009
-2511
-4301

query I rowsort
SELECT DISTINCT + col1 + 9 FROM tab0
----
10
30
90

query I rowsort
SELECT DISTINCT col0 - 28 AS col1 FROM tab2
----
18
36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL MAX( col2 ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2443
SELECT ALL MAX ( col2 ) col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT DISTINCT 24 AS col1, + COUNT( * ) col1 FROM tab2 AS cor0
----
24
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2444
SELECT DISTINCT 24 AS col1, + COUNT ( * ) col1 FROM tab2 AS cor0
----
24
3

query I rowsort
SELECT DISTINCT - + 34 AS col2 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT 61 + - + COUNT( * ) * COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-2447
SELECT 61 + - + COUNT ( * ) * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL BETWEEN - 20 + 95 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL BETWEEN - 20 + 95 AND NULL
----

query I rowsort
SELECT ALL + col2 * col0 + 85 AS col2 FROM tab2
----
1143
2645
4435

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0 * - ( - - 78 ) + - - col0
----

query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT ALL 75, col1 FROM tab2 AS cor0
----
75
51
75
67
75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ( - COUNT( DISTINCT + + 89 ) ) * COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2453
SELECT ( - COUNT ( DISTINCT + + 89 ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2454
SELECT + col2 DIV - + col1, col2 AS col2 FROM tab0
----
-99
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-2454
SELECT + col2 / - + col1, col2 AS col2 FROM tab0
----
-99
99
0
10
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT 23 * - + 31 * - + SUM( col1 ) AS col2 FROM tab1
----
47058

skipif mysql # not compatible
query I rowsort label-2455
SELECT 23 * - + 31 * - + SUM ( col1 ) AS col2 FROM tab1
----
47058

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL 19 * COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL 19 * COUNT ( * ) FROM tab2
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 * + - 78 col1 FROM tab2
----
199680
339300
82524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2458
SELECT ALL CAST( NULL AS SIGNED ) + 33 FROM tab0 WHERE ( - col0 + + - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL CAST ( NULL AS INTEGER ) + 33 FROM tab0 WHERE ( - col0 + + - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 * 83 FROM tab0 AS cor0
----
-1245
-7221
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2460
SELECT + + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + col0, + col2 AS col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT - - 82 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - 84 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT COUNT( * ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT COUNT ( * ) FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT 9 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL 80 + + 46 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( + 34 ) * - - col1 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT - ( CAST( NULL AS SIGNED ) ) + + ( + - 28 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT - ( CAST ( NULL AS INTEGER ) ) + + ( + - 28 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2469
SELECT DISTINCT CAST( + - 59 AS SIGNED ) * 76 * COUNT( * ), 92 AS col0 FROM tab0 AS cor0
----
-13452
92

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT CAST ( + - 59 AS INTEGER ) * 76 * COUNT ( * ), 92 AS col0 FROM tab0 AS cor0
----
-13452
92

query I rowsort
SELECT col1 + + - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2471
SELECT + 90 + - ( CAST( - + COUNT( + col1 ) AS SIGNED ) ) AS col0, 60 FROM tab0
----
93
60

skipif mysql # not compatible
query II rowsort label-2471
SELECT + 90 + - ( CAST ( - + COUNT ( + col1 ) AS INTEGER ) ) AS col0, 60 FROM tab0
----
93
60

query I rowsort
SELECT 21 + col0 + + 91 AS col2 FROM tab2
----
158
176
187

query I rowsort
SELECT DISTINCT 10 + - - col2 FROM tab2
----
33
50
68

query I rowsort
SELECT ALL + 32 - col1 + + ( - col2 ) AS col2 FROM tab2
----
-42
-85
-93

query I rowsort
SELECT - col1 * - + 31 FROM tab0
----
2511
31
651

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 96 * + 5 * - 54 + + 72 col0 FROM tab1 AS cor0
----
25901
25907
25941

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT DISTINCT SUM( DISTINCT col1 ), - COUNT( * ) + + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
66
0

skipif mysql # not compatible
query II rowsort label-2478
SELECT DISTINCT SUM ( DISTINCT col1 ), - COUNT ( * ) + + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
66
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT - col0 + + + 31 DIV + col2 FROM tab0 AS cor0
----
-15
-84
-97

skipif mysql # not compatible
query I rowsort label-2479
SELECT - col0 + + + 31 / + col2 FROM tab0 AS cor0
----
-15
-84
-97

query I rowsort
SELECT + + 94 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 38 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL + SUM( - - ( col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + SUM ( - - ( col2 ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT - 99 * + - col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - 63 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT CAST( + - 68 AS SIGNED ) FROM tab0 cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-2486
SELECT CAST ( + - 68 AS INTEGER ) FROM tab0 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL + MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL + - COUNT( * ) col0 FROM tab0 AS cor0 WHERE 96 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2488
SELECT ALL + - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE 96 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2489
SELECT SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

query II rowsort
SELECT DISTINCT + - col0 AS col0, + col1 FROM tab2 cor0 WHERE - 83 * col2 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2492
SELECT - 17 DIV + COUNT( * ) FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2492
SELECT - 17 / + COUNT ( * ) FROM tab2 cor0
----
-5

query I rowsort
SELECT ALL + 18 * col0 AS col2 FROM tab2 AS cor0
----
1152
1350
828

query I rowsort
SELECT + 74 * + + ( - col1 ) FROM tab0 AS cor0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > ( + col0 * - - col1 * - 74 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT + 90 * - 13 * - CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab0
----
3513

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 90 * - 13 * - CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab0
----
3513

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + 95 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 + + col1 AS col1, + 41 + + - col2 AS col0 FROM tab1
----
10
-18
28
-55
94
-27

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 56 > + 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT ALL col2 + - + 17 + col2 + + + col2 + + col2 * col2 DIV - + 22 + - + col1 + + col2 * + 27 + col0 AS col1 FROM tab2 AS cor0
----
1098
1579
644

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL col2 + - + 17 + col2 + + + col2 + + col2 * col2 / - + 22 + - + col1 + + col2 * + 27 + col0 AS col1 FROM tab2 AS cor0
----
1098
1579
644

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL - ( COUNT( - col0 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - ( COUNT ( - col0 ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 94
----
0

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 94
----
0

query I rowsort
SELECT 1 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT - 35 * SUM( - col1 ) FROM tab2 AS cor0
----
6825

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT - 35 * SUM ( - col1 ) FROM tab2 AS cor0
----
6825

query I rowsort
SELECT DISTINCT - col2 * - + col0 + + col0 AS col1 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT + col1 * ( - + col2 ) + + 76 FROM tab2 WHERE 35 IS NOT NULL
----
-1097
-3004
-3810

query I rowsort
SELECT DISTINCT 74 + - col0 FROM tab0
----
-13
-23
59

query I rowsort
SELECT + col1 - col2 * + - col0 AS col1 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT - COUNT( * ) + + 75 AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - COUNT ( * ) + + 75 AS col0 FROM tab0
----
72

query I rowsort
SELECT ( + ( - - col0 ) ) * col1 + + ( - - col2 ) FROM tab0
----
1262
1837
196

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT + col2 DIV - 86 + + 20 * - - 87 col2 FROM tab1
----
1739
1740

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2513
SELECT DISTINCT + col2 / - 86 + + 20 * - - 87 col2 FROM tab1
----
1739
1740

query I rowsort
SELECT ALL + + 1 - col1 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT DISTINCT CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) * - - ( - col0 ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) * - - ( - col0 ) AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT + col2, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2517
SELECT 16, - CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0 WHERE NOT + 18 > NULL
----

skipif mysql # not compatible
query II rowsort label-2517
SELECT 16, - CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0 WHERE NOT + 18 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT 26 DIV + - col1 col0 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2518
SELECT 26 / + - col1 col0 FROM tab1
----
-1
-5
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = + 48 * - col1
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT + 72 >= - col1 + col1 * - + col1
----

query I rowsort
SELECT ALL 84 FROM tab2 cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 77 BETWEEN NULL AND col0 / + col1 * + 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT ALL - 55 * + + col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL OR + + col2 IS NULL
----
-2585
-275
-770

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - 55 * + + col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL OR + + col2 IS NULL
----
-2585
-275
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col2 ) AS col2, col0 col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2525
SELECT + ( - CAST( - - 68 AS SIGNED ) ) AS col0, 7 AS col1 FROM tab1
----
-68
7
-68
7
-68
7

skipif mysql # not compatible
query II rowsort label-2525
SELECT + ( - CAST ( - - 68 AS INTEGER ) ) AS col0, 7 AS col1 FROM tab1
----
-68
7
-68
7
-68
7

query I rowsort
SELECT - col2 * + - ( + + col2 ) AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL + SUM( DISTINCT + - 75 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + SUM ( DISTINCT + - 75 ) FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + MIN( DISTINCT - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2528
SELECT + MIN ( DISTINCT - - col1 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT + MIN( ALL 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT + MIN ( ALL 70 ) FROM tab0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2530
SELECT DISTINCT - ( + CAST( col0 AS SIGNED ) ), + ( + - 52 ) AS col0 FROM tab2
----
-46
-52
-64
-52
-75
-52

skipif mysql # not compatible
query II rowsort label-2530
SELECT DISTINCT - ( + CAST ( col0 AS INTEGER ) ), + ( + - 52 ) AS col0 FROM tab2
----
-46
-52
-64
-52
-75
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT + col2 DIV col1 * + 6 AS col2 FROM tab0 AS cor0
----
0
0
594

skipif mysql # not compatible
query I rowsort label-2531
SELECT + col2 / col1 * + 6 AS col2 FROM tab0 AS cor0
----
0
0
594

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - SUM( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - SUM ( + + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - COUNT( * ) * - COUNT( * ) + + + SUM( col0 ) AS col1 FROM tab2 cor0
----
194

skipif mysql # not compatible
query I rowsort label-2533
SELECT - COUNT ( * ) * - COUNT ( * ) + + + SUM ( col0 ) AS col1 FROM tab2 cor0
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT - 48 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT - 48 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + 31 FROM tab1
----
1829
2108
2976

query I rowsort
SELECT - col2 * - 43 + col1 AS col0 FROM tab1
----
2542
2971
4142

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 = - + col2 - - - 89 + col0
----

query I rowsort
SELECT ALL + + col0 * + col1 + - col0 AS col0 FROM tab2 cor0
----
2300
4864
4950

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col1 ) * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - 53 FROM tab1 AS cor0
----
15
43
6

query I rowsort
SELECT - col2 * col1 - + 41 + + + 96 FROM tab2 AS cor0
----
-1118
-3025
-3831

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 68 < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2543
SELECT ALL 2 DIV - + col1 AS col2 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL 2 / - + col1 AS col2 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT ALL + - CAST( NULL AS SIGNED ) + - + col1 + - - 46 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + - CAST ( NULL AS INTEGER ) + - + col1 + - - 46 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2545
SELECT + COUNT( * ) DIV + 73 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2545
SELECT + COUNT ( * ) / + 73 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2546
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-2546
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab2
----
24
24
24

query III rowsort
SELECT * FROM tab0 WHERE ( + 77 + + 35 - col0 * + 24 ) NOT BETWEEN col2 * + col2 AND 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 56 + - - col1 - - col1 FROM tab2
----
158
190
210

query I rowsort
SELECT 46 / 28 FROM tab1 WHERE - + 49 >= - col1
----

query II rowsort
SELECT ALL col1 AS col0, col0 FROM tab2
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 52 + + 52 col2 FROM tab2 AS cor0
----
1248
2132
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT MAX( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2553
SELECT MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = + col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - - COUNT( - 30 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2555
SELECT - - COUNT ( - 30 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( 62 ) AS col1 FROM tab0 AS cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2557
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 9 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2557
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 9 * - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL COUNT( ALL - - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL COUNT ( ALL - - col1 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * + col0 col0 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT - col2 * - + col2 + + - col2 AS col0 FROM tab2
----
1560
3306
506

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT DISTINCT ( + ( - col1 ) ) DIV col0 + - - col2 FROM tab2
----
22
39
58

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT ( + ( - col1 ) ) / col0 + - - col2 FROM tab2
----
22
39
58

query III rowsort
SELECT * FROM tab0 WHERE NOT 13 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL MAX( DISTINCT - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL MAX ( DISTINCT - col0 ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 - + + col2 / + col0 * - ( 60 ) FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + ( - MIN( col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2568
SELECT + ( - MIN ( col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT ALL MAX( + col2 ), 60 AS col1 FROM tab2 AS cor0
----
58
60

skipif mysql # not compatible
query II rowsort label-2569
SELECT ALL MAX ( + col2 ), 60 AS col1 FROM tab2 AS cor0
----
58
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 22 * - - 65 / + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - - ( - + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2571
SELECT - - ( - + COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - SUM( - - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2572
SELECT - SUM ( - - col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT - + col1 - - col2 AS col2 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT + col1 * - ( - col2 ) - - col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT ALL 41 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT col0 + + col2 DIV + + col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-2576
SELECT col0 + + col2 / + + col1 FROM tab1
----
57
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + 1 + + COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2577
SELECT + 1 + + COUNT ( * ) FROM tab1
----
4

query III rowsort
SELECT * FROM tab0 WHERE 93 >= NULL
----

query I rowsort
SELECT col2 + + + 21 FROM tab0
----
120
31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT SUM( col2 ) + - 4 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-2580
SELECT SUM ( col2 ) + - 4 FROM tab1
----
219

query I rowsort
SELECT ALL + col1 * - + 50 + + col0 FROM tab1
----
-165
-2259
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL - ( - 64 ) + + COUNT( * ) col1 FROM tab1
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2582
SELECT ALL - ( - 64 ) + + COUNT ( * ) col1 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL + 29 - COUNT( DISTINCT - + 54 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + 29 - COUNT ( DISTINCT - + 54 ) FROM tab0
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-2584
SELECT col1 AS col0, - col0 + - - 41 DIV - col2 * - col0 DIV - col0 AS col1 FROM tab2
----
51
-47
67
-75
77
-65

skipif mysql # not compatible
query II rowsort label-2584
SELECT col1 AS col0, - col0 + - - 41 / - col2 * - col0 / - col0 AS col1 FROM tab2
----
51
-47
67
-75
77
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT DISTINCT - + 54 AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-54
-3

skipif mysql # not compatible
query II rowsort label-2585
SELECT DISTINCT - + 54 AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-54
-3

query I rowsort
SELECT ALL col2 * + + 75 AS col0 FROM tab2 AS cor0
----
1725
3000
4350

query I rowsort
SELECT 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL - COUNT( * ) * + 95 * + + 94 FROM tab2
----
-26790

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - COUNT ( * ) * + 95 * + + 94 FROM tab2
----
-26790

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 87 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2591
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 95 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2591
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 95 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT + + 1 * - + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - col0 * - col0 + col1 AS col0 FROM tab2 cor0
----
2167
4173
5692

query I rowsort
SELECT 56 * - 89 + - col2 FROM tab1
----
-5043
-5052
-5080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, 8 - - - col2 + - - col1 * + 12 FROM tab2
----
46
597
64
892
75
754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT ALL + MIN( + CAST( + col0 AS SIGNED ) ) + + MIN( + - col1 ) col0 FROM tab2
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2596
SELECT ALL + MIN ( + CAST ( + col0 AS INTEGER ) ) + + MIN ( + - col1 ) col0 FROM tab2
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2597
SELECT + col2 DIV CAST( - 73 AS SIGNED ) + + col1 - - col0 + col1 AS col2, - col2 FROM tab2 AS cor0
----
148
-23
209
-58
218
-40

skipif mysql # not compatible
query II rowsort label-2597
SELECT + col2 / CAST ( - 73 AS INTEGER ) + + col1 - - col0 + col1 AS col2, - col2 FROM tab2 AS cor0
----
148
-23
209
-58
218
-40

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab2 AS cor0 WHERE NOT + 45 <> - col2 + col0
----

query I rowsort
SELECT - ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL + COUNT( * ) + - 48 AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + COUNT ( * ) + - 48 AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT col2 * - 12 AS col0 FROM tab1
----
-1152
-708
-816

query I rowsort
SELECT - 5 * - col1 + - col0 * + col1 FROM tab0
----
-1722
-810
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT 40 * + SUM( col2 ) FROM tab1
----
8920

skipif mysql # not compatible
query I rowsort label-2603
SELECT 40 * + SUM ( col2 ) FROM tab1
----
8920

query I rowsort
SELECT ALL col1 - + ( - col1 ) AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col1 * - 20 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT DISTINCT - COUNT( * ) * + 68 AS col1 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - COUNT ( * ) * + 68 AS col1 FROM tab1
----
-204

query I rowsort
SELECT col2 * + col1 FROM tab0 WHERE ( NULL ) NOT IN ( - col0 / 31 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * + col2 < NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 84 FROM tab2
----
-3864
-5376
-6300

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col0 ) + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT - 88 DIV - 17 + + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
10
19
52

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 88 / - 17 + + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
10
19
52

query I rowsort
SELECT + 52 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + COUNT( * ) * - COUNT( * ) + + 24 AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2614
SELECT + COUNT ( * ) * - COUNT ( * ) + + 24 AS col1 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN 10 AND ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 49 )
----

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 AS col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE NOT col2 / + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab2 WHERE + col1 + 51 > 95 * + col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab1 WHERE NULL IS NULL
----
138
65
90

query III rowsort
SELECT * FROM tab1 WHERE NOT 40 <= + col0 * + 18 + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT - COUNT( ALL - 6 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2623
SELECT - COUNT ( ALL - 6 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT COUNT( * ) AS col2 FROM tab2 WHERE - col1 - - col2 NOT BETWEEN col1 AND + col1 * - 3
----
3

skipif mysql # not compatible
query I rowsort label-2624
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE - col1 - - col2 NOT BETWEEN col1 AND + col1 * - 3
----
3

query I rowsort
SELECT - 19 AS col2 FROM tab1 AS cor0 WHERE NOT + 34 IS NULL
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - col2 * 80 FROM tab0 AS cor0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT col1 * + 45 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
2115
225
630

query I rowsort
SELECT ALL + ( ( 74 ) ) FROM tab2
----
74
74
74

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( + ( + col0 ) ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + 69 * - COUNT( * ) col1 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2631
SELECT + 69 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - 72 * COUNT( * ) col2 FROM tab1 cor0
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2632
SELECT - 72 * COUNT ( * ) col2 FROM tab1 cor0
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT - + ( - col2 ) DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2633
SELECT - + ( - col2 ) / - col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2634
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2634
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + col0 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL + MIN( + col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT ALL + MIN ( + col0 ) col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab2 AS cor0 WHERE NOT 70 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - col2 * col2 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3422
-4556
-9120

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - col2 * col2 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3422
-4556
-9120

query I rowsort
SELECT + 13 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE ( NULL ) = - col2 / col1
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE ( NULL ) = - col2 / col1
----
0

query I rowsort
SELECT 6 FROM tab2 WHERE ( 59 ) IS NOT NULL
----
6
6
6

query I rowsort
SELECT 43 + - col0 FROM tab0 WHERE col2 * - col1 - col0 BETWEEN NULL AND ( - col1 + + 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + SUM( ALL - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + SUM ( ALL - + col1 ) FROM tab1
----
-66

query I rowsort
SELECT - 83 + - - col0 FROM tab0
----
-68
14
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2645
SELECT 47 DIV - - 91 + MIN( DISTINCT - col1 + + col1 * - col2 ) DIV 39 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-2645
SELECT 47 / - - 91 + MIN ( DISTINCT - col1 + + col1 * - col2 ) / 39 FROM tab1
----
-83

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT + ( - + col2 ) * - col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT + ( - + col2 ) * - col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT 91 + MAX( ( 20 ) ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-2648
SELECT 91 + MAX ( ( 20 ) ) FROM tab0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT col0 DIV 32 + col0 AS col2 FROM tab1 AS cor0
----
52
87
93

skipif mysql # not compatible
query I rowsort label-2649
SELECT col0 / 32 + col0 AS col2 FROM tab1 AS cor0
----
52
87
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - + col0 col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL - MAX( - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - MAX ( - col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT ALL col2 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + + ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT ALL - col1 + - ( + ( - col1 ) ) + col0 * + col1 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT 34 + - - col1 + + + 76 * - col0 * col2 FROM tab1
----
-372048
-381101
-470207

query I rowsort
SELECT ALL + 47 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL + 63 - COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + 63 - COUNT ( * ) FROM tab1
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2657
SELECT ALL - CAST( NULL AS DECIMAL ) * 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - CAST ( NULL AS REAL ) * 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2658
SELECT - COUNT( * ) DIV - SUM( DISTINCT + 79 ) - COUNT( * ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2658
SELECT - COUNT ( * ) / - SUM ( DISTINCT + 79 ) - COUNT ( * ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT - COUNT( * ) * - 14 - + ( + MIN( ALL + col2 ) ) - COUNT( * ) col2 FROM tab0 cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2659
SELECT - COUNT ( * ) * - 14 - + ( + MIN ( ALL + col2 ) ) - COUNT ( * ) col2 FROM tab0 cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT - col0 + CAST( NULL AS SIGNED ) * ( col0 + 3 ) FROM tab2 AS cor0 WHERE ( NULL ) > + col0
----

skipif mysql # not compatible
query I rowsort label-2660
SELECT - col0 + CAST ( NULL AS INTEGER ) * ( col0 + 3 ) FROM tab2 AS cor0 WHERE ( NULL ) > + col0
----

query I rowsort
SELECT ALL - col0 - + 51 FROM tab2 AS cor0
----
-115
-126
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN + 66 AND ( col1 + + 67 )
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2663
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( - col0 * - - CAST( NULL AS SIGNED ) - col0 )
----

skipif mysql # not compatible
query III rowsort label-2663
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( - col0 * - - CAST ( NULL AS INTEGER ) - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT DISTINCT + COUNT( * ) col1, + 2 FROM tab1 cor0
----
3
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2664
SELECT DISTINCT + COUNT ( * ) col1, + 2 FROM tab1 cor0
----
3
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT MAX( DISTINCT - 19 ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2665
SELECT MAX ( DISTINCT - 19 ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT + col2 - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 58 NOT IN ( col2 )
----

query I rowsort
SELECT 26 * col1 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 24 IS NULL
----
1269
135
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT - CAST( NULL AS SIGNED ) / col0 FROM tab0 WHERE NOT - + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT - CAST ( NULL AS INTEGER ) / col0 FROM tab0 WHERE NOT - + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT ALL CAST( - 69 AS SIGNED ) AS col2 FROM tab0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL CAST ( - 69 AS INTEGER ) AS col2 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT ALL col2 * + 28 FROM tab1
----
1652
1904
2688

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2671
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT + col1 + col0 + + col0 NOT IN ( 71 * 6 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + col1 + col0 + + col0 NOT IN ( 71 * 6 + + col1 )
----

query I rowsort
SELECT - 21 * + - col2 AS col2 FROM tab1
----
1239
1428
2016

query I rowsort
SELECT + col2 * + col0 * - col1 AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col2 FROM tab0 WHERE NOT ( ( - 81 ) + + 6 / - 38 ) >= col0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT - col2 * CAST( - + 44 AS SIGNED ) FROM tab1
----
2596
2992
4224

skipif mysql # not compatible
query I rowsort label-2675
SELECT - col2 * CAST ( - + 44 AS INTEGER ) FROM tab1
----
2596
2992
4224

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT DISTINCT + SUM( - 87 ) AS col2 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT + SUM ( - 87 ) AS col2 FROM tab0
----
-261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= 28 * - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL + MAX( col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL + MAX ( col0 ) FROM tab1 cor0
----
91

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE ( - + col1 ) + 61 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2681
SELECT ALL - ( COUNT( * ) ) DIV + 95 AS col0 FROM tab1 AS cor0 WHERE ( NOT - + 44 - 60 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - ( COUNT ( * ) ) / + 95 AS col0 FROM tab1 AS cor0 WHERE ( NOT - + 44 - 60 IS NOT NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 + - 9 col2 FROM tab0 WHERE NOT + 2 + + 32 IN ( col2 )
----
36

query I rowsort
SELECT ALL + 35 + + + col0 FROM tab1
----
120
126
86

query I rowsort
SELECT 0 + col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL col0 * - col2 + + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-752
-880
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT - ( + 63 ) + CAST( NULL AS SIGNED ) * - col0 * + 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT - ( + 63 ) + CAST ( NULL AS INTEGER ) * - col0 * + 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + 23 + - COUNT( * ) + + MIN( col1 ) FROM tab1 AS cor0 WHERE NULL IN ( 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT + 23 + - COUNT ( * ) + + MIN ( col1 ) FROM tab1 AS cor0 WHERE NULL IN ( 95 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT col0 + + 98 DIV col1 AS col0 FROM tab1 AS cor0
----
104
58
93

skipif mysql # not compatible
query I rowsort label-2689
SELECT col0 + + 98 / col1 AS col0 FROM tab1 AS cor0
----
104
58
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT ALL + 28 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + 28 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT DISTINCT + ( + 93 ) * - COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + ( + 93 ) * - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + 41 * col1 * col2 AS col2 FROM tab2
----
126280
159326
48093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT - 24 + - CAST( - - col2 AS SIGNED ) * + - col1 AS col1 FROM tab2
----
1149
3056
3862

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 24 + - CAST ( - - col2 AS INTEGER ) * + - col1 AS col1 FROM tab2
----
1149
3056
3862

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT - - COUNT( DISTINCT + 30 ) * - COUNT( * ) - - SUM( DISTINCT col2 ) col2 FROM tab2 WHERE NULL IS NULL
----
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2694
SELECT - - COUNT ( DISTINCT + 30 ) * - COUNT ( * ) - - SUM ( DISTINCT col2 ) col2 FROM tab2 WHERE NULL IS NULL
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT ALL + col1 + + + CAST( + + col1 AS SIGNED ) + + ( 3 ) FROM tab2
----
105
137
157

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL + col1 + + + CAST ( + + col1 AS INTEGER ) + + ( 3 ) FROM tab2
----
105
137
157

query I rowsort
SELECT ALL + 1 * + col2 AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + - col1
----

query I rowsort
SELECT ALL col2 + col0 * - col1 * col2 FROM tab1
----
-25016
-290768
-68448

onlyif mysql # aggregate syntax: 
query II rowsort label-2699
SELECT + COUNT( * ), COUNT( * ) col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2699
SELECT + COUNT ( * ), COUNT ( * ) col0 FROM tab1
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - - 33
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - 45
----

query I rowsort
SELECT DISTINCT + + col2 * + 92 AS col0 FROM tab1 AS cor0
----
5428
6256
8832

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 * 55 * - - col2 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT DISTINCT - col2 * + + CAST( + + col0 AS SIGNED ) + 28 + - ( 89 ) * + + 11 col0 FROM tab2 AS cor0
----
-2009
-3511
-5301

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2706
SELECT DISTINCT - col2 * + + CAST ( + + col0 AS INTEGER ) + 28 + - ( 89 ) * + + 11 col0 FROM tab2 AS cor0
----
-2009
-3511
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 46 * col0, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( 46 * col0, + col2 )
----
0

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE - col1 - col2 = 91
----

query II rowsort
SELECT 41, - ( + col2 ) AS col1 FROM tab1
----
41
-59
41
-68
41
-96

query I rowsort
SELECT ALL + - 27 FROM tab0 WHERE NOT col1 * - - col0 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT DISTINCT 99 DIV + col2 col0 FROM tab0
----
1
2
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2711
SELECT DISTINCT 99 / + col2 col0 FROM tab0
----
1
2
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 81 * - col2 IS NOT NULL
----

query I rowsort
SELECT + + 15 * + + col1 * + col0 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2714
SELECT + COUNT( * ) * - - COUNT( * ) + CAST( NULL AS SIGNED ) * + 50 AS col1 FROM tab0 WHERE NOT col0 * + col2 < + col0 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2714
SELECT + COUNT ( * ) * - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 50 AS col1 FROM tab0 WHERE NOT col0 * + col2 < + col0 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT + SUM( ALL - + ( col1 ) ) * - + 0, + MIN( - + col0 ) AS col1 FROM tab2
----
0
-75

skipif mysql # not compatible
query II rowsort label-2715
SELECT + SUM ( ALL - + ( col1 ) ) * - + 0, + MIN ( - + col0 ) AS col1 FROM tab2
----
0
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-2716
SELECT DISTINCT COUNT( * ) AS col2, - 31 FROM tab0
----
3
-31

skipif mysql # not compatible
query II rowsort label-2716
SELECT DISTINCT COUNT ( * ) AS col2, - 31 FROM tab0
----
3
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT + COUNT( - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2717
SELECT + COUNT ( - + col1 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 col2, - 79 * col1 - col2 + 55 AS col2 FROM tab2 AS cor0
----
40
-3997
40
-5296
40
-6068

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) >= + 62 + + col2 * + - col0 * 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 58 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + COUNT( * ) + + 47 col0 FROM tab2, tab2 cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2721
SELECT ALL + COUNT ( * ) + + 47 col0 FROM tab2, tab2 cor0
----
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 88 <> + 27 + ( - 85 ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT col2 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT col2 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + col0 ) * - - col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + col0 * 21 AND ( col2 )
----

query I rowsort
SELECT + col0 * col0 * 30 AS col1 FROM tab0 AS cor0
----
227070
282270
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT ALL + - SUM( - col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + - SUM ( - col2 ) AS col0 FROM tab1 cor0
----
223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * 56 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2729
SELECT DISTINCT - COUNT( * ) + - 21 AS col2, + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT - COUNT ( * ) + - 21 AS col2, + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 44 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 44 IS NULL
----
0

query I rowsort
SELECT ALL - col0 * col0 FROM tab1 AS cor0 WHERE NOT + ( 6 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 20 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL - SUM( ALL - ( - + col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - SUM ( ALL - ( - + col2 ) ) AS col0 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT ALL + col2 + CAST( + col0 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + col2 + CAST ( + col0 AS INTEGER ) FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT DISTINCT + 73 + + 28 DIV col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT + 73 + + 28 / col0 FROM tab1
----
73

query I rowsort
SELECT ALL - 40 + + col1 FROM tab0
----
-19
-39
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - 90 - + - COUNT( * ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - 90 - + - COUNT ( * ) FROM tab2
----
-87

query I rowsort
SELECT ALL + col2 + - 92 FROM tab0
----
-45
-82
7

query I rowsort
SELECT DISTINCT col2 * - + ( - ( - col2 ) ) * col0 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT - 46 + 84 DIV col0 AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT - 46 + 84 / col0 AS col0 FROM tab2
----
-45

query I rowsort
SELECT ALL - col2 - - ( + - 58 ) AS col0 FROM tab1 AS cor0
----
-117
-126
-154

query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> - col0
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL - 27 + - + 35 + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - 27 + - + 35 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND - ( - + 77 ) * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT - 63 + + COUNT( * ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT - 63 + + COUNT ( * ) FROM tab0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - col2 col2 FROM tab2
----
-160
-232
-92

query III rowsort
SELECT * FROM tab0 WHERE - 48 + - 13 < NULL
----

query I rowsort
SELECT ALL - col2 * + + 41 AS col2 FROM tab2
----
-1640
-2378
-943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 16 col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( 28 / + - col2 + - col1, 44 * + col0, ( - + 15 ) )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE 18 = + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT + - MIN( + ( 61 ) ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + - MIN ( + ( 61 ) ) FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2755
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT DISTINCT + 29, COUNT( * ) AS col2 FROM tab2 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-2756
SELECT DISTINCT + 29, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
29
3

query I rowsort
SELECT DISTINCT + - ( - col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT + CAST( NULL AS SIGNED ) * - col0 * + ( - + 77 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT + CAST ( NULL AS INTEGER ) * - col0 * + ( - + 77 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = col1 * - 65 + + 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - col1 <> + - col2
----

query I rowsort
SELECT 46 * - 75 AS col2 FROM tab1
----
-3450
-3450
-3450

query I rowsort
SELECT - col1 * + col0 + + + col0 FROM tab2 AS cor0 WHERE NOT 51 IS NULL
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col0 * + 10 ) NOT IN ( col2 / + - ( col2 ) - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col0 * + 10 ) NOT IN ( col2 / + - ( col2 ) - 88 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 83 + col2 AS col1, 88 col0 FROM tab2 AS cor0
----
-25
88
-43
88
-60
88

query I rowsort
SELECT - - ( + 67 ) FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT - SUM( DISTINCT + col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2767
SELECT - SUM ( DISTINCT + col0 ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT ( - 88 ) AS col2 FROM tab2
----
-88

query I rowsort
SELECT DISTINCT col0 + + 73 * + ( - col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
-3654
-4758
-5517

query I rowsort
SELECT - + 93 + 43 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - col2 + - - 24 FROM tab0 AS cor0
----
-23
-75
14

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL < - col1 / + 9 * - col0 * col2
----

query I rowsort
SELECT DISTINCT col1 + - col1 * 4 FROM tab0
----
-243
-3
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT DISTINCT col1 - - col0 DIV + col1 AS col0 FROM tab0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT col1 - - col0 / + col1 AS col0 FROM tab0
----
25
81
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT ALL 90 + + MIN( - col2 ) + + 56, 51 AS col2 FROM tab0
----
47
51

skipif mysql # not compatible
query II rowsort label-2775
SELECT ALL 90 + + MIN ( - col2 ) + + 56, 51 AS col2 FROM tab0
----
47
51

query I rowsort
SELECT ALL - col0 - col0 - + col1 AS col2 FROM tab0 AS cor0
----
-111
-195
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT + 9 + - + COUNT( ALL + - col0 ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2777
SELECT + 9 + - + COUNT ( ALL + - col0 ) FROM tab2 cor0
----
6

query I rowsort
SELECT + col2 + col0 * - + col2 * + 51 FROM tab2 AS cor0
----
-130520
-221792
-53935

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT DISTINCT - - MIN( + + col2 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-2779
SELECT DISTINCT - - MIN ( + + col2 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
23
3

query I rowsort
SELECT col2 * - - 2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT COUNT( 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2781
SELECT COUNT ( 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT col0 DIV - + 21 AS col2 FROM tab1 AS cor0
----
-2
-4

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT col0 / - + 21 AS col2 FROM tab1 AS cor0
----
-2
-4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 61 * - col1 + - - col1 * 62 < col0
----
75
67
58

query I rowsort
SELECT ALL + - 85 * - + col1 FROM tab0 AS cor0
----
1785
6885
85

query II rowsort
SELECT ALL - col0 AS col2, col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2786
SELECT DISTINCT + 46 * - CAST( NULL AS DECIMAL ) + + ( 89 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + 46 * - CAST ( NULL AS REAL ) + + ( 89 ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + 91
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL COUNT( * ) * - 55 AS col1 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL COUNT ( * ) * - 55 AS col1 FROM tab1
----
-165

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2790
SELECT ALL CAST( col1 AS SIGNED ) DIV 87 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL CAST ( col1 AS INTEGER ) / 87 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( + ( - ( - col2 ) ), - 89 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2792
SELECT * FROM tab1 WHERE NOT + - col0 * + ( CAST( + col2 AS DECIMAL ) ) BETWEEN + col0 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2792
SELECT * FROM tab1 WHERE NOT + - col0 * + ( CAST ( + col2 AS REAL ) ) BETWEEN + col0 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 66 AS col0, ( - + 15 ) * + col1 * - - col2 + col0 + - col2 * - + col2 AS col2 FROM tab0
----
66
-2963
66
-54881
66
8413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT CAST( + - 60 AS SIGNED ) * COUNT( * ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-2794
SELECT CAST ( + - 60 AS INTEGER ) * COUNT ( * ) FROM tab1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT 15 * + COUNT( + - col0 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2795
SELECT 15 * + COUNT ( + - col0 ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT SUM( - + col2 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-2796
SELECT SUM ( - + col2 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-226

query I rowsort
SELECT ALL 62 FROM tab1 AS cor0 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT + COUNT( * ) + + 48 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2798
SELECT + COUNT ( * ) + + 48 FROM tab1
----
51

query II rowsort
SELECT ALL - - 30 * - - col1 + - + col0 AS col2, + col1 + col2 FROM tab1 AS cor0
----
1319
115
369
110
65
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2800
SELECT - COUNT( * ) * - + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2800
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2801
SELECT + + col0 * CAST( NULL AS SIGNED ) AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2801
SELECT + + col0 * CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT 40 + + col2 + - 31 FROM tab0
----
108
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT + 62 + - SUM( DISTINCT col1 ) AS col2 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2803
SELECT + 62 + - SUM ( DISTINCT col1 ) AS col2 FROM tab0
----
-41

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 15 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT MAX( DISTINCT + 90 ) + - 99 + + 22 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-2805
SELECT MAX ( DISTINCT + 90 ) + - 99 + + 22 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT 14 + - - COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-2806
SELECT 14 + - - COUNT ( * ) FROM tab0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - ( col2 ) * + + 63 col1 FROM tab1 AS cor0
----
-3802
-4375
-6099

query II rowsort
SELECT ALL 85 AS col0, col1 AS col2 FROM tab0 AS cor0
----
85
1
85
21
85
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + MIN( - col2 ) * + 69 AS col0 FROM tab1
----
-6624

skipif mysql # not compatible
query I rowsort label-2809
SELECT + MIN ( - col2 ) * + 69 AS col0 FROM tab1
----
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT MAX( ALL - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2810
SELECT MAX ( ALL - col1 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 90 >= NULL
----

query I rowsort
SELECT - - 71 FROM tab2 cor0
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT ALL - 9 AS col1 FROM tab2 AS cor0 WHERE - col2 <= - - col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - 9 AS col1 FROM tab2 AS cor0 WHERE - col2 <= - - col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL MAX( - + col1 ) * - 64 FROM tab2 cor0
----
3264

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL MAX ( - + col1 ) * - 64 FROM tab2 cor0
----
3264

query I rowsort
SELECT DISTINCT + col0 * - 86 FROM tab1 AS cor0
----
-4386
-7310
-7826

query I rowsort
SELECT col2 + - + ( + 41 ) - 78 AS col0 FROM tab1
----
-23
-51
-60

query I rowsort
SELECT + col2 + + 92 AS col0 FROM tab1
----
151
160
188

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT ALL - 45 DIV + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - 45 / + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4
0
0

query I rowsort
SELECT ALL col0 + + 80 FROM tab1
----
131
165
171

query II rowsort
SELECT ALL + col0 AS col1, - col1 * + 70 + - col0 FROM tab0
----
15
-5685
87
-1557
97
-167

query I rowsort
SELECT + col1 * + - col0 + col2 AS col1 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT COUNT( - col0 ) col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2823
SELECT DISTINCT COUNT ( - col0 ) col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT CAST( NULL AS SIGNED ) * + 28 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT CAST ( NULL AS INTEGER ) * + 28 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 71 + - col1 AS col2 FROM tab0 cor0
----
-10
50
70

query I rowsort
SELECT ALL 48 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
48
48
48

query I rowsort
SELECT 86 + - col2 AS col2 FROM tab2 AS cor0
----
28
46
63

query I rowsort
SELECT ALL - 24 * + col0 FROM tab2 AS cor0
----
-1104
-1536
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT - col1 * - 5 + CAST( NULL AS SIGNED ) * - col2 * + - col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT - col1 * - 5 + CAST ( NULL AS INTEGER ) * - col2 * + - col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 72, + col1 FROM tab0 AS cor0
----
72
1
72
21
72
81

query I rowsort
SELECT col2 * 23 * col1 * + 99 FROM tab2
----
2670921
7013160
8848422

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT DISTINCT MAX( - + col1 ) + - COUNT( * ) col2, MAX( DISTINCT - col0 ) FROM tab2
----
-54
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2833
SELECT DISTINCT MAX ( - + col1 ) + - COUNT ( * ) col2, MAX ( DISTINCT - col0 ) FROM tab2
----
-54
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT + 67 DIV - SUM( DISTINCT - col1 ) * + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + 67 / - SUM ( DISTINCT - col1 ) * + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col2 * - - col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT + - COUNT( * ) * - 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + - COUNT ( * ) * - 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
108

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( 29 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 44 * + + col0 AS col1 FROM tab2
----
2024
2816
3300

query II rowsort
SELECT + - col2 AS col0, - col1 + col2 + + - col2 + + 42 FROM tab0 AS cor0
----
-10
21
-47
-39
-99
41

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 56 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT ALL - COUNT( * ) AS col2, 43 FROM tab2 AS cor0
----
-3
43

skipif mysql # not compatible
query II rowsort label-2841
SELECT ALL - COUNT ( * ) AS col2, 43 FROM tab2 AS cor0
----
-3
43

query I rowsort
SELECT ALL + 60 * - col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 + - col0 col1 FROM tab2 AS cor0
----
-67
-85
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * col0 NOT IN ( + - 22, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL - - COUNT( * ) + + 59 FROM tab2 cor0
----
62

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - - COUNT ( * ) + + 59 FROM tab2 cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT - 5 DIV - col0 + 9 AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - 5 / - col0 + 9 AS col0 FROM tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE 16 IS NULL
----

query I rowsort
SELECT ALL col2 + + - ( + col0 ) AS col2 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab1 WHERE ( col1 BETWEEN + + 97 AND NULL )
----

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 + + col1 AS col0, col0 FROM tab2
----
28
46
37
64
9
75

query II rowsort
SELECT ALL 30 * - col0 AS col1, - col0 FROM tab1
----
-1530
-51
-2550
-85
-2730
-91

query I rowsort
SELECT - ( col0 ) + + 66 FROM tab2
----
-9
2
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT DISTINCT - col1 DIV - + 77 + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT - col1 / - + 77 + col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + 40 * col0 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 97 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT ALL col2 + + ( + - 4 ) * col0 * - col1 + ( - col0 ) * col2 DIV - col0 AS col2 FROM tab2
----
19792
20216
9430

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL col2 + + ( + - 4 ) * col0 * - col1 + ( - col0 ) * col2 / - col0 AS col2 FROM tab2
----
19792
20216
9430

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT 56 - - col2 + + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
2680
4603
6025

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT + SUM( ALL + - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-223

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + SUM ( ALL + - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-223

query I rowsort
SELECT 27 - - + col2 FROM tab2 AS cor0
----
50
67
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT ALL + col0 DIV - + 39 AS col1 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL + col0 / - + 39 AS col1 FROM tab0 AS cor0
----
-2
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2865
SELECT ALL + 47 DIV + MIN( ALL - 53 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL + 47 / + MIN ( ALL - 53 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL SUM( col2 ) * + + 13 FROM tab2 cor0
----
1573

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL SUM ( col2 ) * + + 13 FROM tab2 cor0
----
1573

query II rowsort
SELECT ALL 38 AS col1, col1 + + - col1 - + col1 * + col2 AS col2 FROM tab0
----
38
-210
38
-3807
38
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col1, + ( - + 69 ), - col0 * 40 )
----

query II rowsort
SELECT + 99 AS col1, col2 FROM tab0
----
99
10
99
47
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2871
SELECT + 71 DIV + COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2871
SELECT + 71 / + COUNT ( * ) FROM tab2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL + MIN( - + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + MIN ( - + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT + COUNT( * ) AS col1, + 46 AS col2 FROM tab0
----
3
46

skipif mysql # not compatible
query II rowsort label-2873
SELECT + COUNT ( * ) AS col1, + 46 AS col2 FROM tab0
----
3
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2874
SELECT ALL col2 AS col1, - CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL col2 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT - col1 AS col0, col0 + + - 63 AS col0 FROM tab2
----
-51
-17
-67
12
-77
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT DISTINCT col0 DIV - - col2 AS col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT col0 / - - col2 AS col0 FROM tab1 cor0
----
0
1

query I rowsort
SELECT ALL - 48 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT DISTINCT - - CAST( ( - + 1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT - - CAST ( ( - + 1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-1

query I rowsort
SELECT DISTINCT 78 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NOT NULL
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT COUNT( * ) * - + COUNT( DISTINCT - - 92 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2880
SELECT COUNT ( * ) * - + COUNT ( DISTINCT - - 92 ) AS col1 FROM tab1
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 80 > NULL
----

query II rowsort
SELECT col2 * + col1 AS col2, - 10 - - - col0 AS col2 FROM tab1
----
1344
-61
295
-95
3196
-101

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 80
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 65 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 * + 98 AS col2, + 95 FROM tab2 AS cor0
----
-4998
95
-6566
95
-7546
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 16 IS NULL
----

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col1 ) + - 6 + - col2 * + - col2 col1 FROM tab1
----
3480
4665
9224

query I rowsort
SELECT DISTINCT + col0 + - 69 FROM tab0
----
-54
18
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT col2 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + col2 * 75 * - col2 * + + 21 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT col2 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + col2 * 75 * - col2 * + + 21 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 46 col2, 10 FROM tab0
----
46
10
46
10
46
10

query I rowsort
SELECT ALL - col2 * + 39 - + 50 + - + 71 AS col0 FROM tab1 AS cor0
----
-2422
-2773
-3865

query I rowsort
SELECT col1 - + 72 * - 33 FROM tab2 AS cor0
----
2427
2443
2453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 + - + col1 + + - 54 col0 FROM tab2
----
-107
-117
-91

query I rowsort
SELECT ALL - - col1 * - + 62 + + col0 + + - ( - 13 ) * col1 AS col2 FROM tab0 AS cor0
----
-3954
-942
48

query I rowsort
SELECT + col0 * - - col0 * - - 91 FROM tab0 AS cor0
----
20475
688779
856219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 10 - - + col0 col1 FROM tab2 AS cor0
----
36
54
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT + + 80 * 9 * + CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2899
SELECT + + 80 * 9 * + CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 + + + ( - + col1 ) IS NOT NULL
----

query I rowsort
SELECT - ( + ( + ( - - 94 ) ) ) * ( - - ( + col2 ) ) FROM tab2 cor0 WHERE NOT col1 * 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT - + 26 * - COUNT( * ) + 91 AS col0 FROM tab1 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-2902
SELECT - + 26 * - COUNT ( * ) + 91 AS col0 FROM tab1 AS cor0
----
169

query I rowsort
SELECT ALL - 60 AS col0 FROM tab2
----
-60
-60
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT DISTINCT COUNT( * ) * CAST( + + 14 AS SIGNED ) AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT COUNT ( * ) * CAST ( + + 14 AS INTEGER ) AS col2 FROM tab1
----
42

query I rowsort
SELECT DISTINCT col2 * + + 57 AS col0 FROM tab0
----
2679
5643
570

query I rowsort
SELECT ALL ( - col2 ) * + col0 AS col1 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 16 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT MAX( col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2908
SELECT MAX ( col1 ) AS col0 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2909
SELECT CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2910
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 * - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2910
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 * - CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 33 AS col2 FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - 62 * col0 AS col2 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT COUNT( * ) + + + 13 col1 FROM tab0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2913
SELECT COUNT ( * ) + + + 13 col1 FROM tab0
----
16

query I rowsort
SELECT + ( + + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + col0 = - col0 - - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT + col0 = - col0 - - 52 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT - + col1 DIV + 22 AS col0 FROM tab2 cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-2916
SELECT - + col1 / + 22 AS col0 FROM tab2 cor0
----
-2
-3
-3

query II rowsort
SELECT - col1, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT + 83 DIV 98 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT + 83 / 98 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT - - 91 DIV - 61 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2920
SELECT - - 91 / - 61 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab0 cor0
----
29

query II rowsort
SELECT ALL 57 AS col1, + col2 FROM tab2 cor0
----
57
23
57
40
57
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 23 NOT IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + col1 ) + + - 58 FROM tab2
----
-7
19
9

query II rowsort
SELECT - 77 + + col2 AS col1, + col1 AS col2 FROM tab2
----
-19
67
-37
77
-54
51

query I rowsort
SELECT ALL - col1 + 33 FROM tab2
----
-18
-34
-44

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * - + col2 * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT COUNT( ALL - col1 ) AS col0, - 96 FROM tab0 AS cor0
----
3
-96

skipif mysql # not compatible
query II rowsort label-2928
SELECT COUNT ( ALL - col1 ) AS col0, - 96 FROM tab0 AS cor0
----
3
-96

query II rowsort
SELECT + 21 AS col0, + col1 - col1 FROM tab0
----
21
0
21
0
21
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 = + + col2
----

query I rowsort
SELECT - col0 * - 21 - + col0 AS col0 FROM tab0
----
1740
1940
300

query I rowsort
SELECT 43 - + col2 AS col1 FROM tab1
----
-16
-25
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + ( COUNT( * ) ) - 70 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-2933
SELECT + ( COUNT ( * ) ) - 70 FROM tab0
----
-67

query I rowsort
SELECT ALL ( + - col2 ) * + - col2 AS col1 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL MIN( - col1 ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT ALL MIN ( - col1 ) col2 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col0 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 * 21 AS col2 FROM tab2 AS cor0
----
23
-483
40
-840
58
-1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT ALL + - ( + + 2 ) * + CAST( - ( + + 34 ) AS SIGNED ) FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + - ( + + 2 ) * + CAST ( - ( + + 34 ) AS INTEGER ) FROM tab0 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2940
SELECT * FROM tab1 WHERE NOT 63 / - col2 >= - col2 / - + 89 + + - col0 * CAST( - ( + + 27 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2940
SELECT * FROM tab1 WHERE NOT 63 / - col2 >= - col2 / - + 89 + + - col0 * CAST ( - ( + + 27 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 WHERE ( NULL ) = - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT COUNT( * ) * - 69 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT COUNT ( * ) * - 69 FROM tab2
----
-207

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT - + col2 * col1 / 80 * col0 + col2 + - col2 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 69 * + + 42 AS col1 FROM tab0
----
2898

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 47 IS NULL
----

query I rowsort
SELECT - 44 + 35 AS col2 FROM tab1 AS cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 = col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col1 ) BETWEEN ( + 42 ) AND + col0 * + - col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT 95 + - col0 + - - col2 / CAST( NULL AS SIGNED ) * col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT 95 + - col0 + - - col2 / CAST ( NULL AS INTEGER ) * col2 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT + 25 DIV - - col2 + - 51 FROM tab2
----
-50
-51

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT + 25 / - - col2 + - 51 FROM tab2
----
-50
-51

query II rowsort
SELECT col0 AS col2, 78 FROM tab2
----
46
78
64
78
75
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 + col2 * - + 1 * + col1 * 23 col2 FROM tab2
----
-26910
-70736
-89245

query I rowsort
SELECT DISTINCT col1 + - 59 + - - col0 AS col1 FROM tab1
----
31
6
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL COUNT( * ) + COUNT( * ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2954
SELECT ALL COUNT ( * ) + COUNT ( * ) col0 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2955
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2955
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 * + + col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - + 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + MIN( col2 ) - + COUNT( * ) col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT ALL + MIN ( col2 ) - + COUNT ( * ) col0 FROM tab1 AS cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 48 - + - col2 col0 FROM tab1 AS cor0
----
107
116
144

query I rowsort
SELECT 15 - - col2 FROM tab2 AS cor0
----
38
55
73

query I rowsort
SELECT 16 - + - col1 + - 29 + col0 * - col1 * col2 FROM tab1 AS cor0
----
-25083
-290802
-68543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT CAST( NULL AS SIGNED ) * - col0 - - + ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT CAST ( NULL AS INTEGER ) * - col0 - - + ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - - ( + - col0 ) + - + 36 AS col1 FROM tab1 AS cor0
----
-2637
-7261
-8317

query I rowsort
SELECT col1 + - - col0 + + 27 * + col1 FROM tab2
----
1474
1951
2220

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 34 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2968
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2968
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > CAST ( + col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT DISTINCT - COUNT( ALL - col2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT DISTINCT - COUNT ( ALL - col2 ) col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - - 25 * - col2, col0 AS col2 FROM tab0 AS cor0
----
-1175
15
-2475
97
-250
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + - SUM( ALL - col2 ) * - MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
-1560

skipif mysql # not compatible
query I rowsort label-2971
SELECT + - SUM ( ALL - col2 ) * - MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
-1560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2972
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST( + 42 AS SIGNED ) + - - ( - 17 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2972
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST ( + 42 AS INTEGER ) + - - ( - 17 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 92 * col2 AS col2 FROM tab1
----
5428
6256
8832

query II rowsort
SELECT ALL 86 AS col1, - col2 AS col2 FROM tab1
----
86
-59
86
-68
86
-96

query I rowsort
SELECT ALL - - 73 + + 4 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
77
77
77

query II rowsort
SELECT ALL col2, + 3 + 8 - - + ( + ( - col2 ) ) * + 65 FROM tab1
----
59
-3824
68
-4409
96
-6229

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 * - col0 AS col1 FROM tab0 AS cor0
----
-15
-225
-87
-7569
-97
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT ALL - + COUNT( * ) * + 61 AS col2 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL - + COUNT ( * ) * + 61 AS col2 FROM tab2 AS cor0
----
-183

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - 43 BETWEEN - 11 AND + col2 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2980
SELECT ALL - ( + + CAST( + - ( - + MAX( ALL + + ( - 16 ) ) ) AS SIGNED ) ) AS col1, - 57 FROM tab1 AS cor0
----
16
-57

skipif mysql # not compatible
query II rowsort label-2980
SELECT ALL - ( + + CAST ( + - ( - + MAX ( ALL + + ( - 16 ) ) ) AS INTEGER ) ) AS col1, - 57 FROM tab1 AS cor0
----
16
-57

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + - col1 * + + 42 AS col2 FROM tab1 AS cor0
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2983
SELECT MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT + - 66 * + - MIN( ALL - - 88 ) AS col1 FROM tab0 AS cor0
----
5808

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + - 66 * + - MIN ( ALL - - 88 ) AS col1 FROM tab0 AS cor0
----
5808

query I rowsort
SELECT ALL + 16 * + - col2 FROM tab2 AS cor0
----
-368
-640
-928

query III rowsort
SELECT * FROM tab1 cor0 WHERE 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 * - col1 * + col1 AND col2 * + 15
----

query I rowsort
SELECT 18 * 58 + - + col1 FROM tab1
----
1030
1039
997

query I rowsort
SELECT + col1 + - - 24 FROM tab1
----
29
38
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT 0 + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2990
SELECT 0 + + COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT ALL - col2 + - 4 * + col0 FROM tab2
----
-207
-296
-358

query I rowsort
SELECT ALL 45 - - 59 AS col1 FROM tab2
----
104
104
104

query I rowsort
SELECT ALL 84 + + + col0 AS col0 FROM tab0
----
171
181
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2994
SELECT ALL - 27 * CAST( NULL AS SIGNED ) - 67 AS col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL - 27 * CAST ( NULL AS INTEGER ) - 67 AS col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + 29 FROM tab2 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL 66 - COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL 66 - COUNT ( * ) FROM tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT ALL - 83 DIV col1 * col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - 83 / col1 * col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT + COUNT( DISTINCT - + 10 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2998
SELECT + COUNT ( DISTINCT - + 10 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 29
----

query I rowsort
SELECT col2 * + 37 * + 18 + col1 * col0 AS col2 FROM tab1 cor0
----
39719
49565
64650

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + COUNT( 87 ) FROM tab0 cor0 WHERE NOT + 20 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3001
SELECT + COUNT ( 87 ) FROM tab0 cor0 WHERE NOT + 20 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL - + COUNT( * ) * - 6 AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - + COUNT ( * ) * - 6 AS col0 FROM tab1 AS cor0
----
18

query II rowsort
SELECT DISTINCT - + col1 AS col1, + col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT - col1 AS col2, ( - - ( - - col2 ) ) * + + col1 * + col0 FROM tab1 cor0
----
-14
68544
-47
290836
-5
25075

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT NULL > ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL SUM( - 64 ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL SUM ( - 64 ) FROM tab1
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 + ( + col1 ) * + col0 col1 FROM tab1
----
335
4139
649

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT col1 DIV ( - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3008
SELECT col1 / ( - col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 2 * 52 FROM tab1
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT + - COUNT( * ) * - 20 AS col2, MAX( - 30 ) FROM tab1 AS cor0
----
60
-30

skipif mysql # not compatible
query II rowsort label-3010
SELECT + - COUNT ( * ) * - 20 AS col2, MAX ( - 30 ) FROM tab1 AS cor0
----
60
-30

query I rowsort
SELECT DISTINCT + ( - 48 ) * col1 FROM tab1
----
-2256
-240
-672

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col0 NOT BETWEEN + col1 AND - col0 AND ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 88 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 37 + + col1 * 60 FROM tab2
----
3097
4057
4657

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT + col1 DIV - - col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + col1 / - - col0 FROM tab0 AS cor0
----
0
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT ALL - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3017
SELECT ALL 77 AS col2, + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
77
-1
77
-1
77
-1

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL 77 AS col2, + col2 / - col2 AS col2 FROM tab0 AS cor0
----
77
-1
77
-1
77
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT + 93 DIV - + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 93 / - + col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3019
SELECT DISTINCT + 90 DIV 32 + + 93 AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-3019
SELECT DISTINCT + 90 / 32 + + 93 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + COUNT( * ) * - 14 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3020
SELECT + COUNT ( * ) * - 14 FROM tab1 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - + 91
----

query I rowsort
SELECT ALL - - 69 AS col2 FROM tab2 AS cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 87 / - - col0 <= + col0 * col0 * - 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL 76 * + COUNT( * ) col1 FROM tab2
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3024
SELECT ALL 76 * + COUNT ( * ) col1 FROM tab2
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 col2 FROM tab1
----
-13

query I rowsort
SELECT ALL - col0 + + + ( + + col2 ) AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - col1 * col1 + + 13 AS col2 FROM tab1
----
-12
-183
-2196

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 = - + 71
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT - + CAST( NULL AS SIGNED ) * + - MIN( col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT - + CAST ( NULL AS INTEGER ) * + - MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + 39 FROM tab0 WHERE - col1 * - col2 IS NOT NULL
----
-60
-8
29

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT 38 DIV - - 1 FROM tab2
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3034
SELECT 38 / - - 1 FROM tab2
----
38
38
38

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 87 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3037
SELECT - 90 AS col1, 51 * CAST( NULL AS SIGNED ) + MIN( + CAST( - + 18 AS SIGNED ) ) - + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-3037
SELECT - 90 AS col1, 51 * CAST ( NULL AS INTEGER ) + MIN ( + CAST ( - + 18 AS INTEGER ) ) - + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-90
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL MAX( ALL - - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL MAX ( ALL - - col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT + - COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3040
SELECT + - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT col2 * + + col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT DISTINCT + - COUNT( * ) DIV 15 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + - COUNT ( * ) / 15 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT ALL + 27 AS col2, COUNT( * ) AS col2 FROM tab0
----
27
3

skipif mysql # not compatible
query II rowsort label-3043
SELECT ALL + 27 AS col2, COUNT ( * ) AS col2 FROM tab0
----
27
3

query I rowsort
SELECT DISTINCT - col1 * - col0 + - 18 AS col2 FROM tab0
----
1197
1809
79

query I rowsort
SELECT ( ( - - col1 ) ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT NULL > + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT + col2 DIV - + col1 AS col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT + col2 / - + col1 AS col0 FROM tab0
----
-99
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT ( + + COUNT( - 55 ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3049
SELECT DISTINCT ( + + COUNT ( - 55 ) ) col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col2 FROM tab1 AS cor0 WHERE NULL >= 58 + + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + - + col1 col1 FROM tab1 AS cor0
----
-18
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + + COUNT( * ) * - ( + MAX( DISTINCT + 84 ) ) FROM tab2 cor0 WHERE col2 + - ( + col2 ) IS NOT NULL
----
-252

skipif mysql # not compatible
query I rowsort label-3052
SELECT + + COUNT ( * ) * - ( + MAX ( DISTINCT + 84 ) ) FROM tab2 cor0 WHERE col2 + - ( + col2 ) IS NOT NULL
----
-252

query I rowsort
SELECT - - 7 + - col2 * + col2 + + 67 AS col1 FROM tab1 AS cor0
----
-3407
-4550
-9142

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 >= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + - + 15 col2 FROM tab2 AS cor0
----
2101
4081
5610

query I rowsort
SELECT ALL 76 * - col0 + + 31 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 >= + col1 * col0
----
-1109
-6581
-7341

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 9 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT DISTINCT 36 DIV + + col1 - col2 col2 FROM tab1
----
-52
-68
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3058
SELECT DISTINCT 36 / + + col1 - col2 col2 FROM tab1
----
-52
-68
-94

query I rowsort
SELECT ALL + col2 + + 68 + - col0 FROM tab1 AS cor0
----
113
42
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT COUNT( * ) - - ( 45 ) + 87 AS col1 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-3060
SELECT COUNT ( * ) - - ( 45 ) + 87 AS col1 FROM tab2 AS cor0
----
135

query I rowsort
SELECT DISTINCT + + ( - 70 ) AS col0 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + ( SUM( ALL - col2 ) ) + + + COUNT( * ) AS col0 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-3062
SELECT + ( SUM ( ALL - col2 ) ) + + + COUNT ( * ) AS col0 FROM tab0
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3063
SELECT ALL COUNT( * ) + - CAST( - 27 AS SIGNED ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL COUNT ( * ) + - CAST ( - 27 AS INTEGER ) AS col0 FROM tab1
----
30

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 NOT BETWEEN 54 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT - 36 * - ( - + COUNT( - col0 ) ) + - COUNT( * ) FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT - 36 * - ( - + COUNT ( - col0 ) ) + - COUNT ( * ) FROM tab1
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT - 91 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT - 91 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT COUNT( * ) + 32 col0 FROM tab1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3067
SELECT COUNT ( * ) + 32 col0 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT MIN( 31 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3068
SELECT MIN ( 31 ) FROM tab2
----
31

query II rowsort
SELECT col1 AS col2, - 73 FROM tab2
----
51
-73
67
-73
77
-73

query I rowsort
SELECT ALL + + 16 AS col0 FROM tab1 AS cor0
----
16
16
16

query II rowsort
SELECT + - col1 AS col1, + col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col0 ) ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 11 / 56 FROM tab2 WHERE NOT NULL IN ( 76 / - col2 )
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT col2 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT - MIN( ALL - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT - MIN ( ALL - col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL COUNT( 85 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL COUNT ( 85 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - 64 < ( col2 )
----

query I rowsort
SELECT col1 + + 67 FROM tab0
----
148
68
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3080
SELECT + col2 + ( CAST( NULL AS DECIMAL ) + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT + col2 + ( CAST ( NULL AS REAL ) + col0 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT + COUNT( * ) * 88 col1 FROM tab1
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3081
SELECT + COUNT ( * ) * 88 col1 FROM tab1
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT COUNT( * ) * + 63 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-3082
SELECT COUNT ( * ) * + 63 FROM tab2
----
189

query I rowsort
SELECT ALL - col0 + + 76 AS col2 FROM tab2
----
1
12
30

query III rowsort
SELECT * FROM tab2 WHERE + 96 / + 16 NOT IN ( 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - - 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 + 58 * 54 FROM tab0
----
3147
3219
3229

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab0 WHERE ( - col1 / + ( + 79 ) + + col1 ) NOT BETWEEN col0 AND + 39
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - MAX( ALL + 51 ) col0 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3088
SELECT - MAX ( ALL + 51 ) col0 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT col1 + - 77 DIV - col2 FROM tab2
----
54
68
78

skipif mysql # not compatible
query I rowsort label-3089
SELECT col1 + - 77 / - col2 FROM tab2
----
54
68
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 70 col0 FROM tab0
----
-3290
-6930
-700

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col1 ) * 98 BETWEEN ( col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT IN ( - 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 36 ) + - 90 FROM tab1
----
-54
-54
-54

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 43 + 21 ) IN ( + 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT DISTINCT - col2 DIV 7 + col0 col0 FROM tab2
----
43
59
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3095
SELECT DISTINCT - col2 / 7 + col0 col0 FROM tab2
----
43
59
67

query I rowsort
SELECT ALL + 44 * + col2 FROM tab2
----
1012
1760
2552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3097
SELECT ALL * FROM tab1 WHERE NOT ( CAST( 96 AS SIGNED ) / + 54 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3097
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( 96 AS INTEGER ) / + 54 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT 67 * + MAX( - col1 ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3098
SELECT 67 * + MAX ( - col1 ) FROM tab0 AS cor0
----
-67

query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 37 * - col2 ) <= 83 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT col1 DIV col1 - 1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3100
SELECT col1 / col1 - 1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT ALL + col0 + col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + col0 + col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 78 FROM tab2
----
-1
-11
-27

query I rowsort
SELECT DISTINCT - col1 - - 39 * - col1 AS col2 FROM tab2
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + COUNT( * ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3105
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - 68 + - COUNT( * ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3106
SELECT - 68 + - COUNT ( * ) FROM tab0 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT DISTINCT - CAST( 58 AS SIGNED ) * col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3422
-3944
-5568

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT - CAST ( 58 AS INTEGER ) * col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3422
-3944
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - 11 + col1 col0 FROM tab0 AS cor0 WHERE NOT ( col0 + - 65 ) <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT + - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3109
SELECT + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 BETWEEN 72 AND ( NULL )
----

query I rowsort
SELECT - - ( 36 ) AS col0 FROM tab2 cor0
----
36
36
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 = ( NULL )
----

query I rowsort
SELECT ALL - 81 - 42 FROM tab2 AS cor0
----
-123
-123
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL - MAX( - 27 ) col2 FROM tab1 AS cor0 WHERE NOT ( col0 + - 61 ) >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3114
SELECT ALL - MAX ( - 27 ) col2 FROM tab1 AS cor0 WHERE NOT ( col0 + - 61 ) >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT ALL - CAST( + col0 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - CAST ( + col0 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL <= ( - 96 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT + - 17 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT + - 17 / - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - MIN( ALL - + col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - MIN ( ALL - + col2 ) col2 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + 82 IN ( - col1 + - ( + 67 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT DISTINCT - 26 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - 26 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 19 <= col2
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 / - 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + col2 AS col0 FROM tab0 WHERE NOT NULL IN ( + ( + 23 ) * col0 )
----

query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
102
170
182

query I rowsort
SELECT 33 * - col2 * - col2 FROM tab1
----
114873
152592
304128

query I rowsort
SELECT ALL col0 * - + 97 FROM tab1
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - COUNT( DISTINCT - + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3128
SELECT - COUNT ( DISTINCT - + col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT - SUM( ALL + - col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3129
SELECT - SUM ( ALL + - col2 ) FROM tab0 cor0
----
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <= ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 43 ) AS col2 FROM tab2 AS cor0
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 > NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL COUNT( ALL - - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL COUNT ( ALL - - col1 ) AS col2 FROM tab2
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 75 >= NULL
----

query I rowsort
SELECT + 40 * + 57 FROM tab0
----
2280
2280
2280

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - 37 <> + ( + col1 ) + col0
----

skipif mysql # not compatible
query III rowsort label-3138
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - 37 <> + ( + col1 ) + col0
----

query I rowsort
SELECT + 35 * ( 3 ) FROM tab1 cor0
----
105
105
105

query I rowsort
SELECT - col2 * - 40 FROM tab2 cor0
----
1600
2320
920

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 93 AND NULL
----

query I rowsort
SELECT + - 66 * + - col0 FROM tab2 AS cor0
----
3036
4224
4950

query II rowsort
SELECT - 62, col0 AS col1 FROM tab0 AS cor0
----
-62
15
-62
87
-62
97

query I rowsort
SELECT DISTINCT + col2 * + col0 + + + col2 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE 63 > ( - 30 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 ) AND ( col1 )
----

query I rowsort
SELECT 24 + - ( + col1 ) - + 10 * + 76 FROM tab1
----
-741
-750
-783

query I rowsort
SELECT ALL - 25 + - - ( - + 44 ) AS col0 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT ALL col0 + - col0 + + 12 * + 45 AS col2 FROM tab0
----
540
540
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 + + 9 * + - col2 col1 FROM tab2
----
-238
-391
-553

query I rowsort
SELECT - col1 * - col2 * - ( + col1 ) + 62 + col0 * - 53 FROM tab0 AS cor0
----
-309100
-5178
-8959

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL - MAX( ALL - + col1 ) + + 80 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - MAX ( ALL - + col1 ) + + 80 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) + col2 <> NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL + - col0 + + + 56 FROM tab0 cor0
----
-31
-41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT 8 * - COUNT( * ) - + 82 * - COUNT( * ) FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3158
SELECT 8 * - COUNT ( * ) - + 82 * - COUNT ( * ) FROM tab2 AS cor0
----
222

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( col0 * - col1 - - col2 ) NOT BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL <= - col1 + 55 * CAST( + + 84 AS SIGNED ) + ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL <= - col1 + 55 * CAST ( + + 84 AS INTEGER ) + ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT 68 + + COUNT( * ) col2 FROM tab0 WHERE NOT - CAST( - 96 AS SIGNED ) >= ( + 48 * + - 53 * CAST( col1 AS SIGNED ) - - col1 * - col2 )
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3163
SELECT 68 + + COUNT ( * ) col2 FROM tab0 WHERE NOT - CAST ( - 96 AS INTEGER ) >= ( + 48 * + - 53 * CAST ( col1 AS INTEGER ) - - col1 * - col2 )
----
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( + + ( 6 ) ) * col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT - MIN( + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - MIN ( + col0 ) AS col1 FROM tab1
----
-51

query II rowsort
SELECT ALL 22, 49 AS col1 FROM tab0
----
22
49
22
49
22
49

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3170
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN - CAST( - CAST( ( + col2 ) AS SIGNED ) AS SIGNED ) - col2 AND + col0 * col0
----

skipif mysql # not compatible
query III rowsort label-3170
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN - CAST ( - CAST ( ( + col2 ) AS INTEGER ) AS INTEGER ) - col2 AND + col0 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> - col2 + - col0 * - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * + col1 col0 FROM tab0
----
1491
5751
71

query II rowsort
SELECT DISTINCT col2 AS col0, col1 * + - col2 + - col2 FROM tab0 cor0
----
10
-220
47
-3854
99
-198

query I rowsort
SELECT DISTINCT + col1 * + - 82 AS col0 FROM tab0 AS cor0
----
-1722
-6642
-82

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 0 + + - 29 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3176
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT col0 >= + 82
----
96

query I rowsort
SELECT - col1 - col0 AS col0 FROM tab1 cor0 WHERE - 31 > + col2 - + ( 12 ) * - - 66
----
-138
-65
-90

query I rowsort
SELECT + col0 + + col1 * + 10 FROM tab2 cor0
----
556
745
834

query I rowsort
SELECT ALL - + 22 FROM tab1 cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3181
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + col1 < col2
----

skipif mysql # not compatible
query III rowsort label-3181
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + col1 < col2
----

query I rowsort
SELECT - - ( col2 ) + + - col1 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT col2 + + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT col0 * + ( - + col2 ) AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 57 * + ( + + col0 ) * + col1 * - + col1 + + - col1 + col0 AS col2 FROM tab0
----
-2186853
-5433
-5609721

query III rowsort
SELECT * FROM tab2 WHERE - - 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT DISTINCT + MIN( DISTINCT + + ( + + 60 ) ) * - + 29 col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3187
SELECT DISTINCT + MIN ( DISTINCT + + ( + + 60 ) ) * - + 29 col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT ALL + 97 + + - CAST( + + col2 AS SIGNED ) AS col0 FROM tab0
----
-2
50
87

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + 97 + + - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
-2
50
87

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + ( 92 ) + - col2 - - col1 * col0 * + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - MIN( ALL + 39 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-3190
SELECT - MIN ( ALL + 39 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT DISTINCT 17 * + CAST( + col1 AS SIGNED ) FROM tab0
----
1377
17
357

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT 17 * + CAST ( + col1 AS INTEGER ) FROM tab0
----
1377
17
357

query I rowsort
SELECT DISTINCT + 37 + + col2 * + ( - - ( + + 30 ) ) FROM tab1
----
1807
2077
2917

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> + - col2 * + col1
----

query I rowsort
SELECT DISTINCT + + 39 * + col2 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3195
SELECT - + 46 - - col1 * + CAST( NULL AS SIGNED ) AS col2, - col2 + + col2 + col1 * + 40 + + - 37 * + col2 FROM tab0 cor0
----
NULL
-3623
NULL
1501
NULL
470

skipif mysql # not compatible
query II rowsort label-3195
SELECT - + 46 - - col1 * + CAST ( NULL AS INTEGER ) AS col2, - col2 + + col2 + col1 * + 40 + + - 37 * + col2 FROM tab0 cor0
----
NULL
-3623
NULL
1501
NULL
470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3197
SELECT DISTINCT + col1 + + col0 AS col1, + CAST( + 60 AS SIGNED ) * col1 + - col2 AS col2 FROM tab1
----
138
2752
65
744
90
241

skipif mysql # not compatible
query II rowsort label-3197
SELECT DISTINCT + col1 + + col0 AS col1, + CAST ( + 60 AS INTEGER ) * col1 + - col2 AS col2 FROM tab1
----
138
2752
65
744
90
241

query I rowsort
SELECT col1 * + - 0 * - + ( - 52 ) + - + col2 AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT ALL - 39 DIV col1 FROM tab2 WHERE NOT col0 DIV - 41 = - col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL - 39 / col1 FROM tab2 WHERE NOT col0 / - 41 = - col0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3201
SELECT - COUNT( - 63 ) AS col1, + MIN( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-3201
SELECT - COUNT ( - 63 ) AS col1, + MIN ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-3
1

query I rowsort
SELECT - 99 FROM tab2 cor0 WHERE NOT - 61 * - 2 IS NULL
----
-99
-99
-99

query I rowsort
SELECT ALL - 51 * + 54 AS col1 FROM tab1 cor0 WHERE - col1 NOT BETWEEN - col0 AND - col0 + + col1
----
-2754
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + - MAX( DISTINCT - ( col2 ) ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3204
SELECT + - MAX ( DISTINCT - ( col2 ) ) AS col0 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL + MAX( ALL 58 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3205
SELECT ALL + MAX ( ALL 58 ) col1 FROM tab2
----
58

query II rowsort
SELECT DISTINCT col2, + 23 FROM tab1
----
59
23
68
23
96
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11, col2 col0 FROM tab0
----
11
10
11
47
11
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - 29 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + col2 * - 25 AS col2 FROM tab0 AS cor0
----
-1175
-2475
-250

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * + 90 NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL + + 35 AS col0, + 3 + + - ( col1 ) FROM tab0 AS cor0
----
35
-18
35
-78
35
2

query II rowsort
SELECT - col2 AS col1, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT - - 18 + + col1 FROM tab1 AS cor0
----
23
32
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT DISTINCT 25 * col2 DIV + 69 col1 FROM tab1 AS cor0
----
21
24
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3214
SELECT DISTINCT 25 * col2 / + 69 col1 FROM tab1 AS cor0
----
21
24
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col1 * ( - - col0 ) * - 59 + + col1 FROM tab1
----
-25070
-252296
-42112

query I rowsort
SELECT col0 * - + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT DISTINCT + + 98 + + MAX( ALL + col1 ) FROM tab0 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + + 98 + + MAX ( ALL + col1 ) FROM tab0 AS cor0
----
179

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3219
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 89 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT CAST ( NULL AS REAL ) * 89 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * 17 AS col2 FROM tab2 AS cor0
----
-1139
-1309
-867

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 * + 45 IS NULL
----

query I rowsort
SELECT 54 * col1 FROM tab1 AS cor0
----
2538
270
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL + CAST( + ( - col1 ) AS SIGNED ) col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3223
SELECT ALL + CAST ( + ( - col1 ) AS INTEGER ) col1 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col2 col0, 81 AS col0 FROM tab2 AS cor0
----
116
81
46
81
80
81

query I rowsort
SELECT DISTINCT - 31 + - col1 + + col1 FROM tab1
----
-31

query I rowsort
SELECT ALL - 98 + + col0 AS col2 FROM tab1
----
-13
-47
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT ALL - col1 + + - col1 DIV col0 * + - col2 AS col2 FROM tab0
----
-1
-21
154

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - col1 + + - col1 / col0 * + - col2 AS col2 FROM tab0
----
-1
-21
154

query I rowsort
SELECT ALL col0 + - - 48 FROM tab2
----
112
123
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - COUNT( + 40 ) + + 76 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3231
SELECT - COUNT ( + 40 ) + + 76 FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3232
SELECT * FROM tab2 WHERE ( + col2 + - col1 + + col1 * - - CAST( NULL AS DECIMAL ) / 38 * CAST( - col2 AS SIGNED ) ) BETWEEN ( + 21 + CAST( col1 AS SIGNED ) ) AND + col1 + + col0
----

skipif mysql # not compatible
query III rowsort label-3232
SELECT * FROM tab2 WHERE ( + col2 + - col1 + + col1 * - - CAST ( NULL AS REAL ) / 38 * CAST ( - col2 AS INTEGER ) ) BETWEEN ( + 21 + CAST ( col1 AS INTEGER ) ) AND + col1 + + col0
----

query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1
-17
-27

query I rowsort
SELECT DISTINCT - col2 * + + 35 FROM tab0 AS cor0
----
-1645
-3465
-350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3237
SELECT DISTINCT + - CAST( - 60 AS SIGNED ) DIV + col1 FROM tab1 cor0
----
1
12
4

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT + - CAST ( - 60 AS INTEGER ) / + col1 FROM tab1 cor0
----
1
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT 55 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64

skipif mysql # not compatible
query I rowsort label-3238
SELECT 55 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-3239
SELECT 61, + col2 DIV + + col1 AS col2 FROM tab2
----
61
0
61
0
61
0

skipif mysql # not compatible
query II rowsort label-3239
SELECT 61, + col2 / + + col1 AS col2 FROM tab2
----
61
0
61
0
61
0

query II rowsort
SELECT 4 AS col2, - col1 FROM tab1
----
4
-14
4
-47
4
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3241
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * + CAST( NULL AS SIGNED ) + + 88 * - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3241
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * + CAST ( NULL AS INTEGER ) + + 88 * - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( + ( - 98 ) ) AS col0 FROM tab1 cor0
----
-98

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + COUNT( * ) * - - 64 + + 75 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-3244
SELECT + COUNT ( * ) * - - 64 + + 75 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 80 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT DISTINCT ( + - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT ( + - COUNT ( * ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - col0 * + + 47 AS col1 FROM tab2
----
-2162
-3008
-3525

query II rowsort
SELECT - 3 * - 31, col1 AS col2 FROM tab2
----
93
51
93
67
93
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - - COUNT( * ) AS col0 FROM tab0 WHERE NOT - - 10 <= + col2 + 31 * - - 7 * col1
----
0

skipif mysql # not compatible
query I rowsort label-3249
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - 10 <= + col2 + 31 * - - 7 * col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT - 47 DIV - col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT - 47 / - col2 FROM tab0
----
0
1
4

query I rowsort
SELECT DISTINCT 91 * col1 AS col1 FROM tab1
----
1274
4277
455

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT ALL - col0 DIV ( - 35 ) col2 FROM tab0
----
0
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3252
SELECT ALL - col0 / ( - 35 ) col2 FROM tab0
----
0
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT ( - ( - SUM( + + col1 ) ) ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT ( - ( - SUM ( + + col1 ) ) ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - 25 + + - col2 + + 41 * - + col0 AS col0 FROM tab2
----
-1934
-2689
-3158

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL - COUNT( * ) + + + 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL - COUNT ( * ) + + + 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT DISTINCT - CAST( col1 AS SIGNED ) * + col0 + + ( + 89 ) + col0 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-1111
-1651
89

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * + col0 + + ( + 89 ) + col0 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
-1111
-1651
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT + COUNT( - 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + COUNT ( - 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + 98 + + col1 FROM tab0
----
119
179
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + COUNT( * ) + + COUNT( * ) * + + 67 + COUNT( * ) AS col2 FROM tab1 cor0
----
207

skipif mysql # not compatible
query I rowsort label-3260
SELECT + COUNT ( * ) + + COUNT ( * ) * + + 67 + COUNT ( * ) AS col2 FROM tab1 cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL - - CAST( ( - ( col1 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - - CAST ( ( - ( col1 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT ALL + col1, + 33 * + 76 FROM tab0 AS cor0
----
1
2508
21
2508
81
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL SUM( + 3 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL SUM ( + 3 ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT - col2 * + col0 + + - col2, - col0 AS col1 FROM tab0 AS cor0
----
-752
-15
-880
-87
-9702
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 col2 FROM tab0 AS cor0
----
-53
-53
-53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 43 * - col2 IS NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - col1 * - + col1 + - + col0 + + col0 * + - col1 + col0 FROM tab0 cor0
----
0
36540
97200

query I rowsort
SELECT DISTINCT - ( - col0 ) + + col0 * + - 91 + ( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL < + 95
----

query I rowsort
SELECT ALL + 88 + + col1 AS col2 FROM tab2
----
139
155
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - MAX( ALL + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3270
SELECT - MAX ( ALL + col2 ) FROM tab2
----
-58

query II rowsort
SELECT ALL - col0 + col1 AS col2, + 38 AS col1 FROM tab2
----
-8
38
13
38
5
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3272
SELECT 55 AS col0, CAST( - + col0 AS SIGNED ) col0 FROM tab0
----
55
-15
55
-87
55
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3272
SELECT 55 AS col0, CAST ( - + col0 AS INTEGER ) col0 FROM tab0
----
55
-15
55
-87
55
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE 89 + col1 IS NULL
----

query I rowsort
SELECT + col0 - + 25 AS col0 FROM tab0
----
-10
62
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - 83 * COUNT( * ) - + COUNT( * ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-3275
SELECT - 83 * COUNT ( * ) - + COUNT ( * ) FROM tab2
----
-252

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3276
SELECT ALL - CAST( NULL AS DECIMAL ) + + - col1, CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL - CAST ( NULL AS REAL ) + + - col1, CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT + - COUNT( DISTINCT + ( - + 75 ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + - COUNT ( DISTINCT + ( - + 75 ) ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN col1 AND + - col1 * + col2 + + 31 )
----

query I rowsort
SELECT - ( col1 ) * + 70 * 74 AS col1 FROM tab2 AS cor0
----
-264180
-347060
-398860

query I rowsort
SELECT - + 25 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT - + 51 * - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT - + 51 * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL > + col0
----
0

query I rowsort
SELECT ALL - 85 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-85
-85
-85

query I rowsort
SELECT - col1 * - - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3284
SELECT + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3285
SELECT DISTINCT 22 DIV - col1 AS col0, + 77 + - - col2 FROM tab2 AS cor0
----
0
100
0
117
0
135

skipif mysql # not compatible
query II rowsort label-3285
SELECT DISTINCT 22 / - col1 AS col0, + 77 + - - col2 FROM tab2 AS cor0
----
0
100
0
117
0
135

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * + - 52 * + col0 / - 52 + + 64 IN ( col1 )
----

query I rowsort
SELECT ALL - + col1 * - - col1 + - - col2 AS col2 FROM tab2 WHERE NOT ( NOT + 64 * - - ( - col0 ) IS NOT NULL )
----
-2578
-4431
-5889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT DISTINCT + col2 * col1 col0 FROM tab1 WHERE + - col1 <= 88 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3289
SELECT DISTINCT + col2 * col1 col0 FROM tab1 WHERE + - col1 <= 88 / CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN NULL AND + ( + 32 ) )
----

query I rowsort
SELECT + col0 * + 39 FROM tab2
----
1794
2496
2925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 6 AS col2 FROM tab2 WHERE NOT - 21 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 6 AS col2 FROM tab2 WHERE NOT - 21 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT - CAST( col1 AS SIGNED ) * - - col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3293
SELECT - CAST ( col1 AS INTEGER ) * - - col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3294
SELECT DISTINCT - SUM( + CAST( NULL AS SIGNED ) ) / - MAX( + - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - SUM ( + CAST ( NULL AS INTEGER ) ) / - MAX ( + - col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT DISTINCT + MIN( + 99 ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT + MIN ( + 99 ) AS col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT - 95 + col2 FROM tab2 AS cor0
----
-37
-55
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 67 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT col2 * + col0 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT col2 * + col0 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 26 + + col1 IS NULL
----

query I rowsort
SELECT ALL + 25 + + ( - col0 ) AS col0 FROM tab0
----
-62
-72
10

onlyif mysql # DIV for integer division: 
query II rowsort label-3301
SELECT DISTINCT 73 + - 58 DIV 47 - col1 AS col1, - col0 FROM tab2
----
-5
-64
21
-46
5
-75

skipif mysql # not compatible
query II rowsort label-3301
SELECT DISTINCT 73 + - 58 / 47 - col1 AS col1, - col0 FROM tab2
----
-5
-64
21
-46
5
-75

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col1, + col2 + + 60 )
----

query I rowsort
SELECT + col2 * + + col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT 41 * + + 95 FROM tab2 AS cor0
----
3895
3895
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT + - COUNT( + col2 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3305
SELECT DISTINCT + - COUNT ( + col2 ) col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - col0 + + + col1 * - - col1 * + col1 * - col1 + - - col2 * + 34 = - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + 16 FROM tab2
----
-35
-51
-61

query I rowsort
SELECT ALL - 53 + col1 FROM tab2
----
-2
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + COUNT( * ) + + - 80 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3309
SELECT + COUNT ( * ) + + - 80 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT COUNT( * ) + COUNT( ( + + col2 ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT COUNT ( * ) + COUNT ( ( + + col2 ) ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT - SUM( ALL - col2 ) + - COUNT( * ) AS col2 FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - SUM ( ALL - col2 ) + - COUNT ( * ) AS col2 FROM tab1
----
220

query I rowsort
SELECT ALL - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 45 AS col0 FROM tab2 cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 46 >= - col1
----

query I rowsort
SELECT col2 * - + col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col0 + + col0 AS col1 FROM tab2
----
46
92
64
128
75
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL + MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + MAX ( col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT - col2 * - + col2 * - + 56 + - col0 + 55 + + col1 AS col1 FROM tab0 AS cor0 WHERE ( col0 + 3 ) NOT BETWEEN - CAST( + + col1 AS SIGNED ) AND - col1
----
-123583
-548897
-5611

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - col2 * - + col2 * - + 56 + - col0 + 55 + + col1 AS col1 FROM tab0 AS cor0 WHERE ( col0 + 3 ) NOT BETWEEN - CAST ( + + col1 AS INTEGER ) AND - col1
----
-123583
-548897
-5611

query II rowsort
SELECT ALL + 99 AS col1, - 4 FROM tab2 AS cor0 WHERE ( 62 ) IN ( - col2 * + - 80 * - col1 + + col0, ( - 72 ), col0 ) OR NOT - col1 * 59 IN ( 11 - - col0 )
----
99
-4
99
-4
99
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - 1 * + COUNT( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - 1 * + COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col1 + - + col0 AS col1 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT ALL col2 + - 39 FROM tab0
----
-29
60
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT ALL - + col0 DIV - col1 FROM tab0 WHERE 15 > col2 + - col1
----
0
4

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - + col0 / - col1 FROM tab0 WHERE 15 > col2 + - col1
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 * + 83 AS col2 FROM tab2
----
4233
5561
6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3327
SELECT 76 * + CAST( + 78 AS SIGNED ) * - - col2 AS col0 FROM tab2
----
136344
237120
343824

skipif mysql # not compatible
query I rowsort label-3327
SELECT 76 * + CAST ( + 78 AS INTEGER ) * - - col2 AS col0 FROM tab2
----
136344
237120
343824

query I rowsort
SELECT DISTINCT + ( 31 ) * col1 * - + col1 * + + col2 AS col1 FROM tab2 AS cor0
----
-1854513
-7351960
-8071222

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT 25 + - ( + MIN( - 60 ) ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3329
SELECT 25 + - ( + MIN ( - 60 ) ) FROM tab2 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + 4 - - 77 col0, col1 col0 FROM tab1
----
140
5
149
47
177
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT 96 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

skipif mysql # not compatible
query I rowsort label-3331
SELECT 96 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-864

query III rowsort
SELECT * FROM tab2 WHERE - col2 - 45 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT SUM( - 34 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT SUM ( - 34 ) FROM tab0
----
-102

query I rowsort
SELECT ALL - 14 * - col2 AS col2 FROM tab0
----
1386
140
658

query I rowsort
SELECT ALL + col1 - - - col2 - + col1 + 56 AS col0 FROM tab0 AS cor0
----
-43
46
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3336
SELECT - - CAST( - col2 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-3336
SELECT - - CAST ( - col2 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - SUM( ALL - + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3337
SELECT - SUM ( ALL - + col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - - 22
----

query II rowsort
SELECT ALL 82 AS col1, col0 AS col2 FROM tab1 AS cor0
----
82
51
82
85
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3340
SELECT - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + ( - + COUNT( * ) ) * COUNT( 36 ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3341
SELECT + ( - + COUNT ( * ) ) * COUNT ( 36 ) FROM tab2 cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3345
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( NULL NOT IN ( + col1 * + col0 * col0, - col2 ) )
----

query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab2 WHERE + col0 + + col2 * - - 43 >= + col1
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + - 5 + + + col2 IS NULL OR NOT NULL NOT BETWEEN + col0 * col2 + - col1 AND NULL
----

query I rowsort
SELECT - ( + col0 ) * + - 65 FROM tab2 AS cor0
----
2990
4160
4875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN 35 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT DISTINCT - - col2, 94 * + - col0 * + col2 + - 97 + + + col0 + + ( + 24 ) * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) / + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - - 99 AS col0 FROM tab0 AS cor0
----
-2079
-8019
-99

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - - 99 AS col0 FROM tab0 AS cor0
----
-2079
-8019
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( - ( 16 ) / col2 )
----

query I rowsort
SELECT DISTINCT - + 97 * + - 51 FROM tab0 AS cor0
----
4947

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * + ( - 2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL + + COUNT( ALL - 78 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + + COUNT ( ALL - 78 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col1 + - col1 AND NULL
----

query I rowsort
SELECT ALL + 59 + + - col2 AS col2 FROM tab0
----
-40
12
49

query III rowsort
SELECT * FROM tab2 WHERE + 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT 22 * + ( + COUNT( * ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT 22 * + ( + COUNT ( * ) ) AS col2 FROM tab1
----
66

query I rowsort
SELECT ALL 61 + col2 AS col1 FROM tab2
----
101
119
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT 2 * CAST( NULL AS SIGNED ) * col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3363
SELECT 2 * CAST ( NULL AS INTEGER ) * col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 46 * + col2 + + + col1 AS col1 FROM tab2 AS cor0
----
-1007
-1763
-2601

query I rowsort
SELECT ALL col0 + 62 AS col0 FROM tab2 AS cor0
----
108
126
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT DISTINCT col1 DIV + 32 + + col1 AS col1 FROM tab2 AS cor0
----
52
69
79

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT col1 / + 32 + + col1 AS col1 FROM tab2 AS cor0
----
52
69
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 16 + - col2 col2 FROM tab1 AS cor0
----
128
21
684

query I rowsort
SELECT ALL - ( col2 ) - - col1 + + col2 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT ALL - + col1 DIV ( col0 ) FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL - + col1 / ( col0 ) FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + + MIN( ALL + - col0 ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3370
SELECT + + MIN ( ALL + - col0 ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL 83 - + - 39 + + COUNT( * ) AS col2 FROM tab0 cor0
----
125

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL 83 - + - 39 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
125

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + col2 DIV - col1 - + CAST( col2 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-705
-870
-9702

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + col2 / - col1 - + CAST ( col2 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-705
-870
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 - - col1 + + - col2 FROM tab2 AS cor0
----
-3
-49
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 + - col1 BETWEEN - + col1 * - - 28 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - 67 * - COUNT( * ) * + MIN( ALL 69 ) AS col1 FROM tab1
----
13869

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 67 * - COUNT ( * ) * + MIN ( ALL 69 ) AS col1 FROM tab1
----
13869

query I rowsort
SELECT + - 2 + - col0 + + col2 + - + col2 * + col0 * + col1 * - col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + 33 * COUNT( DISTINCT + 3 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3378
SELECT + 33 * COUNT ( DISTINCT + 3 ) FROM tab1
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT + 61, COUNT( * ) AS col1 FROM tab1
----
61
3

skipif mysql # not compatible
query II rowsort label-3380
SELECT + 61, COUNT ( * ) AS col1 FROM tab1
----
61
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - 0 * + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3381
SELECT - 0 * + - COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3382
SELECT col2 DIV - 9 col1 FROM tab1 AS cor0
----
-10
-6
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3382
SELECT col2 / - 9 col1 FROM tab1 AS cor0
----
-10
-6
-7

query II rowsort
SELECT ALL col0, + ( + col2 ) FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT DISTINCT ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3384
SELECT DISTINCT ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 14 AS col2 FROM tab2 cor0 WHERE NOT 6 NOT BETWEEN 12 + + col1 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT DISTINCT - - ( - 41 ), 25 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41
75

skipif mysql # not compatible
query II rowsort label-3387
SELECT DISTINCT - - ( - 41 ), 25 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT - 78 DIV - ( - - COUNT( * ) ) + + MAX( ALL col1 ) + + 80 DIV - 61 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3388
SELECT - 78 / - ( - - COUNT ( * ) ) + + MAX ( ALL col1 ) + + 80 / - 61 FROM tab2 AS cor0
----
102

query I rowsort
SELECT col2 + + 45 AS col2 FROM tab0 AS cor0
----
144
55
92

query I rowsort
SELECT ALL - + col0 - 90 * col2 FROM tab1 WHERE - + 62 / + 68 / - + ( + col1 ) + + col0 + 74 IS NOT NULL
----
-5395
-6211
-8691

query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) AS col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab2
----
-53

query I rowsort
SELECT ALL 6 + + 80 AS col1 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
-210
-3807
-99

query II rowsort
SELECT ALL + col2, + col1 FROM tab0 cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col0, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 / - + 36 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT - + col2 - - col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT 76 FROM tab2 cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3401
SELECT 68 col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
68
NULL
68
NULL
68
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3401
SELECT 68 col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
68
NULL
68
NULL
68
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT DISTINCT + COUNT( * ) * + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + COUNT ( * ) * + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + SUM( - 26 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3403
SELECT + SUM ( - 26 ) FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT + ( + SUM( DISTINCT + + 30 ) ) * 87 AS col1 FROM tab2 AS cor0
----
2610

skipif mysql # not compatible
query I rowsort label-3404
SELECT + ( + SUM ( DISTINCT + + 30 ) ) * 87 AS col1 FROM tab2 AS cor0
----
2610

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 42 * - col2 NOT IN ( col2 + 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - ( + 73 ) * COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 95 + col1 IS NULL
----
-216

skipif mysql # not compatible
query I rowsort label-3406
SELECT - ( + 73 ) * COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 95 + col1 IS NULL
----
-216

query I rowsort
SELECT ( - - ( - ( + col0 ) ) ) * + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL SUM( - + ( 14 ) ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL SUM ( - + ( 14 ) ) FROM tab0 AS cor0
----
-42

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + SUM( DISTINCT - col0 ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3410
SELECT + SUM ( DISTINCT - col0 ) col0 FROM tab1
----
-227

query I rowsort
SELECT ALL 63 * + col2 AS col2 FROM tab2
----
1449
2520
3654

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT DISTINCT - col1 DIV col1 DIV - - 39 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT - col1 / col1 / - - 39 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3413
SELECT - col0 DIV col1 AS col1, col2 FROM tab2
----
-1
58
0
23
0
40

skipif mysql # not compatible
query II rowsort label-3413
SELECT - col0 / col1 AS col1, col2 FROM tab2
----
-1
58
0
23
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL - COUNT( ALL - ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - COUNT ( ALL - ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT - SUM( + 45 ) + - - ( COUNT( col2 ) ) AS col1 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - SUM ( + 45 ) + - - ( COUNT ( col2 ) ) AS col1 FROM tab1
----
-132

query II rowsort
SELECT ALL col0, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT - 71 * - 35 + - 22 AS col2 FROM tab0 AS cor0
----
2463
2463
2463

query III rowsort
SELECT * FROM tab1 cor0 WHERE 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT - + CAST( col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3420
SELECT - + CAST ( col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-3421
SELECT - 24, COUNT( * ) col1 FROM tab2 AS cor0
----
-24
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3421
SELECT - 24, COUNT ( * ) col1 FROM tab2 AS cor0
----
-24
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col2 FROM tab0 cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL - - SUM( - col0 ) AS col2 FROM tab2 AS cor0 WHERE 58 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - - SUM ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE 58 IS NULL
----
NULL

query I rowsort
SELECT ALL - + 6 + - col2 FROM tab1 AS cor0
----
-102
-65
-74

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL AND NOT NULL >= 42
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3426
SELECT 56 + - - COUNT( * ), MAX( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3426
SELECT 56 + - - COUNT ( * ), MAX ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
59
NULL

query I rowsort
SELECT DISTINCT col0 * - 48 + - col0 AS col0 FROM tab0
----
-4263
-4753
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT DISTINCT CAST( + + col0 AS SIGNED ) + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT col0 + col1 * + 51 AS col0 FROM tab1
----
2488
340
765

query I rowsort
SELECT - - 29 * - + 84 + col2 FROM tab1 AS cor0
----
-2340
-2368
-2377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT ALL - - CAST( + 33 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - - CAST ( + 33 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT ALL CAST( - + col1 AS SIGNED ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT 13 * + SUM( - 4 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3433
SELECT 13 * + SUM ( - 4 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT + 4 * + col2 AS col2 FROM tab0 AS cor0
----
188
396
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3435
SELECT DISTINCT 20 * col1 DIV - 14 FROM tab0
----
-1
-115
-30

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT 20 * col1 / - 14 FROM tab0
----
-1
-115
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT + col2 DIV - - col0 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3436
SELECT + col2 / - - col0 AS col1 FROM tab0
----
0
1
3

query I rowsort
SELECT col2 * col1 * 93 FROM tab1
----
124992
27435
297228

onlyif mysql # aggregate syntax: 
query II rowsort label-3438
SELECT SUM( + - col0 ) AS col1, COUNT( * ) col0 FROM tab0
----
-199
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3438
SELECT SUM ( + - col0 ) AS col1, COUNT ( * ) col0 FROM tab0
----
-199
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - col2 * 17, 30, - - col0 * 27 + 39 + - col0 + - col2 - - col2 * 87 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT 37 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT ALL + CAST( col2 AS SIGNED ) + + 9 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
32
49
67

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + CAST ( col2 AS INTEGER ) + + 9 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
32
49
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT + ( 93 ) DIV - + col1 AS col0 FROM tab1 AS cor0
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-3442
SELECT + ( 93 ) / - + col1 AS col0 FROM tab1 AS cor0
----
-1
-18
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3443
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV + col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / + col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL + col2 * - 17 + + - 61 AS col2 FROM tab0 cor0
----
-1744
-231
-860

query I rowsort
SELECT DISTINCT + 0 - ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = + - col0 / + col2
----

query I rowsort
SELECT - col2 * 31 AS col2 FROM tab0
----
-1457
-3069
-310

query I rowsort
SELECT AVG ( ALL 60 ) FROM tab2 cor0 WHERE - 0 IS NULL
----
NULL

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE 63 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 56 IS NULL )
----

query II rowsort
SELECT DISTINCT + ( col1 ) AS col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL + MAX( + ( - col2 ) ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + MAX ( + ( - col2 ) ) FROM tab1 cor0
----
-59

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col2
----
21

query I rowsort
SELECT + + col0 * - + col2 + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( NOT col1 > 21 ) )
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT SUM( DISTINCT - - 21 ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3455
SELECT SUM ( DISTINCT - - 21 ) AS col2 FROM tab1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT 86 DIV - + 15 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3456
SELECT 86 / - + 15 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT + col2 * - + col0 * - + 35 FROM tab1
----
171360
175525
216580

query I rowsort
SELECT ALL AVG ( ALL + col2 ) AS col0 FROM tab2 WHERE NULL IN ( + ( - - col1 ), + col2 )
----
NULL

query I rowsort
SELECT DISTINCT 14 * + 28 + + col0 * - col2 AS col0 FROM tab2
----
-2168
-3958
-666

query II rowsort
SELECT ALL + + col2 AS col1, col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ( - COUNT( * ) ) FROM tab1 WHERE + + 18 * + col1 + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT ( - COUNT ( * ) ) FROM tab1 WHERE + + 18 * + col1 + + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3462
SELECT ALL 25, - COUNT( * ) AS col1 FROM tab1
----
25
-3

skipif mysql # not compatible
query II rowsort label-3462
SELECT ALL 25, - COUNT ( * ) AS col1 FROM tab1
----
25
-3

query I rowsort
SELECT DISTINCT 61 - col1 AS col2 FROM tab0 AS cor0
----
-20
40
60

query I rowsort
SELECT - col0 * - + col1 - + - 4 + - 77 FROM tab0 AS cor0
----
1142
1754
24

query I rowsort
SELECT 96 + + + col2 FROM tab1 cor0
----
155
164
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT + - COUNT( * ) + + ( 47 ) AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3466
SELECT + - COUNT ( * ) + + ( 47 ) AS col0 FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT COUNT( * ) * - - 52 + - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
477

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT COUNT ( * ) * - - 52 + - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
477

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT 63 DIV col1 * + + 42 FROM tab2
----
0
0
42

skipif mysql # not compatible
query I rowsort label-3468
SELECT 63 / col1 * + + 42 FROM tab2
----
0
0
42

query I rowsort
SELECT - 95 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT + + 62 <> - 23 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT DISTINCT - ( + COUNT( * ) ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3471
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 25 + col2 <= + col0 * + + 61 - col0 * - - col2 + col2 + col0
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT + - ( + col2 ) * - col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT ALL 1 * + 51 * - col1 + + col2 FROM tab1 AS cor0
----
-196
-2329
-618

query I rowsort
SELECT DISTINCT 85 * - + col0 FROM tab2
----
-3910
-5440
-6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3476
SELECT COUNT( * ) DIV - + 20 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3476
SELECT COUNT ( * ) / - + 20 FROM tab2
----
0

query I rowsort
SELECT + ( col0 ) + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1 * - col0 + ( + col2 ) * - + col0 AS col0, + 58 FROM tab0 AS cor0
----
-9506
58
510
58
957
58

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - 65 FROM tab2
----
51
-65
67
-65
77
-65

query I rowsort
SELECT DISTINCT + 76 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3483
SELECT + + COUNT( * ), + COUNT( * ) AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-3483
SELECT + + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + col1 IS NOT NULL
----

query I rowsort
SELECT + ( - 6 ) AS col1 FROM tab1
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - ( - 92 ) col0 FROM tab2 AS cor0
----
-46
92
-64
92
-75
92

query I rowsort
SELECT ALL - - col0 * - + col2 + + 3 AS col1 FROM tab0 AS cor0
----
-702
-867
-9600

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8 + + - 24 AS col0, + 67 * + col2 + 35 col1 FROM tab0
----
-16
3184
-16
6668
-16
705

query I rowsort
SELECT 40 + + col0 - + col2 * 9 AS col1 FROM tab1
----
-406
-481
-773

query I rowsort
SELECT col2 * 99 + + - col0 FROM tab2
----
2231
3896
5667

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT 89 + COUNT( * ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3493
SELECT 89 + COUNT ( * ) AS col2 FROM tab2
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + col2 col1 FROM tab1
----
101
110
138

query I rowsort
SELECT ALL 91 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 92 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3498
SELECT * FROM tab2 WHERE NOT CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3498
SELECT * FROM tab2 WHERE NOT CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 AS col0, + 62 * - col0 FROM tab0
----
10
-5394
47
-930
99
-6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 2 col1 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - SUM( - - 43 ) AS col2 FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3501
SELECT - SUM ( - - 43 ) AS col2 FROM tab2 AS cor0
----
-129

query I rowsort
SELECT col2 * - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT - + SUM( - - 43 ) FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT - + SUM ( - - 43 ) FROM tab2 AS cor0
----
-129

query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT 14, COUNT( * ) AS col2 FROM tab2 AS cor0
----
14
3

skipif mysql # not compatible
query II rowsort label-3505
SELECT 14, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
14
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT MAX( + 52 ) FROM tab0 cor0
----
52

skipif mysql # not compatible
query I rowsort label-3506
SELECT MAX ( + 52 ) FROM tab0 cor0
----
52

query I rowsort
SELECT + 11 FROM tab2 cor0 WHERE NOT col2 - col0 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT - + col1 * col0 * + 57 * + + col0 AS col0 FROM tab0 AS cor0
----
-1038825
-536313
-9060093

query II rowsort
SELECT DISTINCT ( + ( - col1 ) ) AS col1, - 58 FROM tab2 AS cor0
----
-51
-58
-67
-58
-77
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3510
SELECT CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + 48 * - ( + 41 ) * 52 - - col2 AS col0 FROM tab0
----
-102237
-102289
-102326

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - 46 AND NULL
----

query I rowsort
SELECT 46 * - col1 AS col2 FROM tab1
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - ( - MAX( ALL col1 ) ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT - ( - MAX ( ALL col1 ) ) col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + 67 + + - 89 - + + COUNT( * ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + 67 + + - 89 - + + COUNT ( * ) FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT + SUM( ALL + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + SUM ( ALL + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT ALL - 23 AS col2 FROM tab1 cor0
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT col1 DIV - + 24 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT col1 / - + 24 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT ALL + CAST( + 97 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL <> - 86
----

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + CAST ( + 97 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL <> - 86
----

query I rowsort
SELECT ALL - + col2 * + 88 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT + 25 * - COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT + 25 * - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - - 61 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 / col1 NOT BETWEEN NULL AND + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + col2 ) * - 22 FROM tab1 AS cor0
----
1298
1496
2112

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE col0 * + col1 - col0 BETWEEN NULL AND 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT - + ( + COUNT( ALL col1 ) ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3527
SELECT DISTINCT - + ( + COUNT ( ALL col1 ) ) col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT + col0 * col2 FROM tab1 AS cor0 WHERE 73 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + col0 ) * + + col1 + - + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 15 + 17 col0 FROM tab0
----
113
33
53

query I rowsort
SELECT col1 FROM tab0 WHERE - col1 + + - col0 / 66 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 31 + + col2 FROM tab0
----
130
41
78

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 * - 95 AS col0 FROM tab0
----
-1
-9215
-21
-8265
-81
-1425

query I rowsort
SELECT col1 - + + ( - col0 ) AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT - col1 + - ( - 38 ) AS col1 FROM tab1
----
-9
24
33

query I rowsort
SELECT ALL + + 12 * + 24 AS col2 FROM tab0 AS cor0
----
288
288
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT + MAX( + col2 ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT + MAX ( + col2 ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + MIN( DISTINCT - - col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3539
SELECT + MIN ( DISTINCT - - col1 ) FROM tab0 cor0
----
1

query II rowsort
SELECT ALL + + col1 AS col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL - - 94 * - - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3541
SELECT ALL - - 94 * - - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT + MAX( DISTINCT + col1 ) * + COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-3542
SELECT + MAX ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT + 23 * + - COUNT( * ) AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-3543
SELECT + 23 * + - COUNT ( * ) AS col2 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + COUNT( + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3544
SELECT + COUNT ( + col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3545
SELECT * FROM tab2 AS cor0 WHERE NOT - 12 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3545
SELECT * FROM tab2 AS cor0 WHERE NOT - 12 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 15 / - - 67 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3547
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + + CAST( NULL AS SIGNED ) - + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3547
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + + CAST ( NULL AS INTEGER ) - + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 94 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 94 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT DISTINCT 4 + CAST( NULL AS SIGNED ) * + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT 4 + CAST ( NULL AS INTEGER ) * + - col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL col1 AS col0, ( 87 ) FROM tab0
----
1
87
21
87
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3551
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT ALL 77 + - + col0 AS col0 FROM tab1
----
-14
-8
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT COUNT( * ) + - 87 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-3553
SELECT COUNT ( * ) + - 87 FROM tab0
----
-84

query I rowsort
SELECT + - col1 + + - col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL + + MIN( ALL - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + + MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3556
SELECT - CAST( NULL AS DECIMAL ) + + col1 / 74 + + col1 * - - col0 * + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT - CAST ( NULL AS REAL ) + + col1 / 74 + + col1 * - - col0 * + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT ALL col1 / - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1 WHERE NOT - col1 * CAST( NULL AS SIGNED ) BETWEEN NULL AND ( - 71 )
----

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( - 71 )
----

query I rowsort
SELECT DISTINCT col2 * 60 FROM tab0
----
2820
5940
600

query I rowsort
SELECT ALL - col2 * + 68 AS col1 FROM tab0
----
-3196
-6732
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT MAX( ALL col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3560
SELECT MAX ( ALL col1 ) AS col1 FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 6 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 * col2 ) <= 22 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT ALL COUNT( * ) DIV - 42 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL COUNT ( * ) / - 42 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT ALL ( COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL ( COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 63 - 35 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 78 <> col2 * - 37 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 * + 31 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT col1 * + col2 + col1 DIV col1 col0 FROM tab0
----
100
211
3808

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3569
SELECT col1 * + col2 + col1 / col1 col0 FROM tab0
----
100
211
3808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3570
SELECT CAST( MAX( + col2 ) AS SIGNED ) * + COUNT( * ) + SUM( 9 ) DIV + 43 AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3570
SELECT CAST ( MAX ( + col2 ) AS INTEGER ) * + COUNT ( * ) + SUM ( 9 ) / + 43 AS col2 FROM tab2
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + 45 IS NOT NULL
----
14
47
5

query I rowsort
SELECT - col2 * - 47 AS col1 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT DISTINCT 81 FROM tab0 WHERE col0 / - col0 <> ( + 5 )
----
81

query I rowsort
SELECT DISTINCT + 25 * - col0 FROM tab2
----
-1150
-1600
-1875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * + col2 col1 FROM tab0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + COUNT( * ) + + ( 34 + + ( MAX( - col2 ) ) ) * + COUNT( * ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3577
SELECT + COUNT ( * ) + + ( 34 + + ( MAX ( - col2 ) ) ) * + COUNT ( * ) AS col0 FROM tab2
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + col1 * ( col1 * + col1 ) BETWEEN + col1 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 54 * col0 FROM tab2
----
-2484
-3456
-4050

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + 70 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL ( SUM( + col2 ) ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL ( SUM ( + col2 ) ) AS col1 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT - 24 + col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT DISTINCT + COUNT( DISTINCT - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 76 + + 35 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT COUNT( * ) + + COUNT( DISTINCT - col2 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3585
SELECT COUNT ( * ) + + COUNT ( DISTINCT - col2 ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT - CAST( col1 AS SIGNED ) FROM tab2 cor0 WHERE NOT - col0 + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3586
SELECT - CAST ( col1 AS INTEGER ) FROM tab2 cor0 WHERE NOT - col0 + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 + - 42 IN ( 50 )
----

query I rowsort
SELECT col2 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * - col0 NOT BETWEEN ( col0 ) AND 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - SUM( ALL + col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3589
SELECT - SUM ( ALL + col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT ALL + col0 DIV 45 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + col0 / 45 FROM tab1
----
1
1
2

query I rowsort
SELECT ALL - 65 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL MIN( + 83 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
83

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL MIN ( + 83 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
83

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL - 90 AS col0 FROM tab1 AS cor0 WHERE 70 * - col0 <= - CAST( 91 AS SIGNED )
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - 90 AS col0 FROM tab1 AS cor0 WHERE 70 * - col0 <= - CAST ( 91 AS INTEGER )
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT ALL - 26 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - 26 / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 22 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT + + col2 DIV col1 + col1 col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT + + col2 / col1 + col1 col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) IN ( - col1 )
----

query I rowsort
SELECT + 38 + 53 * col1 AS col1 FROM tab1 AS cor0
----
2529
303
780

onlyif mysql # DIV for integer division: 
query I rowsort label-3602
SELECT - - col0 DIV + 89 + col0 DIV 30 AS col1 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3602
SELECT - - col0 / + 89 + col0 / 30 AS col1 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT + col1 * col2 * col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT + col1 * col2 * col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab0 WHERE col0 NOT IN ( - 62 / 90 )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3606
SELECT ALL col0 DIV - - 36 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL col0 / - - 36 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT - 49 + + col1 * col0 AS col1 FROM tab2
----
2297
4879
4976

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3608
SELECT * FROM tab2 WHERE col2 IN ( - col2 * + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3608
SELECT * FROM tab2 WHERE col2 IN ( - col2 * + CAST ( - col1 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE 40 BETWEEN + col2 * - col2 AND ( NULL )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE col1 NOT IN ( + ( col0 ) / col1 )
----
51
67
77

query I rowsort
SELECT DISTINCT + 22 + 28 FROM tab1
----
50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 15 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col0 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT - col0 * + col2 + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - col0 * + col2 + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT col1 DIV col1 + + 4 FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3615
SELECT col1 / col1 + + 4 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3616
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + COUNT( * ) * COUNT( DISTINCT 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) * COUNT ( DISTINCT 69 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT DISTINCT - 79 FROM tab0 WHERE ( - col1 IN ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - 79 FROM tab0 WHERE ( - col1 IN ( - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT - 62 + - COUNT( * ) AS col1 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT - 62 + - COUNT ( * ) AS col1 FROM tab0
----
-65

query I rowsort
SELECT - 95 + 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + 33 AS col0 FROM tab2 WHERE NULL IS NULL
----
33
33
33

query III rowsort
SELECT * FROM tab1 cor0 WHERE 85 / 55 + 88 IS NULL
----

query II rowsort
SELECT ALL col1 AS col1, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + 13 - COUNT( * ) * - 80 * COUNT( * ) + 63 FROM tab0 AS cor0
----
796

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + 13 - COUNT ( * ) * - 80 * COUNT ( * ) + 63 FROM tab0 AS cor0
----
796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT - - CAST( NULL AS SIGNED ) * - 44 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT - - CAST ( NULL AS INTEGER ) * - 44 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, + col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT DISTINCT - 69 * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + 36 > - col2 * col0 + + 64
----
-1587
-2760
-4002

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT - 69 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + 36 > - col2 * col0 + + 64
----
-1587
-2760
-4002

query II rowsort
SELECT - + col2, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT ALL - - col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT + - col0, 91 AS col0 FROM tab2 AS cor0
----
-46
91
-64
91
-75
91

query I rowsort
SELECT + - col2 * + ( ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 78 * + col1 * - col2 col1 FROM tab0 AS cor0
----
16380
296946
7722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3633
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 / CAST( NULL AS SIGNED ) - 3 NOT BETWEEN 33 AND + 75
----

skipif mysql # not compatible
query III rowsort label-3633
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 / CAST ( NULL AS INTEGER ) - 3 NOT BETWEEN 33 AND + 75
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3634
SELECT CAST( - col0 AS SIGNED ) DIV col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3634
SELECT CAST ( - col0 AS INTEGER ) / col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT COUNT( ALL col0 ) FROM tab1 WHERE NOT 60 / col1 + - 88 BETWEEN ( NULL ) AND - col0
----
2

skipif mysql # not compatible
query I rowsort label-3635
SELECT COUNT ( ALL col0 ) FROM tab1 WHERE NOT 60 / col1 + - 88 BETWEEN ( NULL ) AND - col0
----
2

query I rowsort
SELECT ALL + 22 * + 25 FROM tab1
----
550
550
550

query I rowsort
SELECT ( 21 ) * - col1 * - col2 + col1 FROM tab2
----
24684
64757
81673

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT ( - - COUNT( * ) ) * - COUNT( * ) * 45 FROM tab2
----
-405

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT ( - - COUNT ( * ) ) * - COUNT ( * ) * 45 FROM tab2
----
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT DISTINCT - 6 DIV col2 * - - col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT - 6 / col2 * - - col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL 99 * - 99 AS col0 FROM tab1
----
-9801
-9801
-9801

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > col2 + - col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT - - COUNT( * ) col1 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-3642
SELECT - - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT ALL - 45 DIV + - 65 + - 59 DIV - col2 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3643
SELECT ALL - 45 / + - 65 + - 59 / - col2 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT 50 * + col1 + col2 + - 43 + + col2 * - CAST( NULL AS SIGNED ) * ( col0 * col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT 50 * + col1 + col2 + - 43 + + col2 * - CAST ( NULL AS INTEGER ) * ( col0 * col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) > + - 52 + + + col0 + - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT DISTINCT ( - - 84 ) - - COUNT( * ) AS col1 FROM tab2 WHERE - col0 >= ( NULL )
----
84

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT ( - - 84 ) - - COUNT ( * ) AS col1 FROM tab2 WHERE - col0 >= ( NULL )
----
84

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab1 WHERE + 18 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 + - col0 > - - col2
----

query I rowsort
SELECT - 84 + + - 40 AS col2 FROM tab2
----
-124
-124
-124

query I rowsort
SELECT 8 + - + col2 AS col2 FROM tab1
----
-51
-60
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT 68 + COUNT( * ) AS col0 FROM tab0, tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3652
SELECT 68 + COUNT ( * ) AS col0 FROM tab0, tab0 cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3653
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-3653
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT + col1 + col2 + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT + col1 + col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 56 + 18 * + + col1 AS col0 FROM tab2
----
1262
1442
974

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + - ( + ( 10 ) ) BETWEEN ( - 42 + - col0 * + 46 ) AND - col2 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 / - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * - 72 * + + col0 AS col0 FROM tab2 AS cor0
----
-152352
-294912
-405000

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + COUNT( ALL - col1 ) - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + COUNT ( ALL - col1 ) - COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT MAX( - + 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT MAX ( - + 59 ) FROM tab2 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 WHERE + 92 + - col1 + col1 + + col2 <> - 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - - + 40 - - - 62 FROM tab2
----
24
42
53

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL >= col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 >= - col1 * col1 / + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE NOT - 19 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT - COUNT( * ) AS col1, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3668
SELECT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
-3
3

query I rowsort
SELECT - col0 * - + col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + ( - + 89 ) * - col1 + - 67 + - + col2 IN ( col0 * - 47 + + 58 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT + SUM( + + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3671
SELECT + SUM ( + + col0 ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - MAX( - - ( ( + + 96 ) ) ) * 34 FROM tab1
----
-3264

skipif mysql # not compatible
query I rowsort label-3672
SELECT - MAX ( - - ( ( + + 96 ) ) ) * 34 FROM tab1
----
-3264

query I rowsort
SELECT ALL - 28 * - 70 AS col0 FROM tab2
----
1960
1960
1960

query I rowsort
SELECT - col0 * 80 FROM tab1
----
-4080
-6800
-7280

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col2 + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col0 - + 1
----

query I rowsort
SELECT 83 * col1 FROM tab0
----
1743
6723
83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3678
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) * - + col1 AS col2, 24 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-3678
SELECT ALL + col2 * CAST ( NULL AS REAL ) * - + col1 AS col2, 24 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT ALL + COUNT( * ) * + COUNT( * ) * 84 AS col2 FROM tab0 cor0
----
756

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * 84 AS col2 FROM tab0 cor0
----
756

query III rowsort
SELECT * FROM tab2 cor0 WHERE 76 / + 52 + + col0 BETWEEN - + 23 AND NULL
----

query I rowsort
SELECT DISTINCT - 55 * - col2 FROM tab1
----
3245
3740
5280

query I rowsort
SELECT col2 + - 91 FROM tab2 WHERE ( ( + + col0 ) * - col2 + col1 * - ( + + col2 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT - col0 DIV - 85 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT - col0 / - 85 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT - 39 col2, - MIN( DISTINCT col1 ) FROM tab0
----
-39
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3684
SELECT - 39 col2, - MIN ( DISTINCT col1 ) FROM tab0
----
-39
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT COUNT( ALL 32 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3685
SELECT COUNT ( ALL 32 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + 28 + - - SUM( - 31 ) * 48 FROM tab2
----
-4436

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + 28 + - - SUM ( - 31 ) * 48 FROM tab2
----
-4436

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT ALL - col1 DIV + col1 - + ( 55 ) col0 FROM tab1
----
-56
-56
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3687
SELECT ALL - col1 / + col1 - + ( 55 ) col0 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - 95 + col2 AS col2 FROM tab1
----
-27
-36
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 65 * - 2 ) < - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - - 64 AS col0 FROM tab2 AS cor0
----
115
131
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - + + ( + col0 ) col0, 6 FROM tab1 AS cor0
----
-144
6
-147
6
-159
6

query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 * - - 46 AS col2 FROM tab1 cor0
----
13570
147016
61824

query I rowsort
SELECT + - col0 + + 35 AS col1 FROM tab0 AS cor0
----
-52
-62
20

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - + COUNT( ALL + + 66 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - + COUNT ( ALL + + 66 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3696
SELECT ALL + COUNT( * ), COUNT( * ) col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3696
SELECT ALL + COUNT ( * ), COUNT ( * ) col0 FROM tab1
----
3
3

query II rowsort
SELECT DISTINCT col2 AS col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * - col1 col0 FROM tab2 AS cor0
----
3774
4958
5698

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col1, - 85 + col0 FROM tab1 AS cor0
----
59
0
68
6
96
-34

query I rowsort
SELECT ALL - + 66 AS col2 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT - 72, SUM( + - col1 ) col2 FROM tab0 AS cor0
----
-72
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3702
SELECT - 72, SUM ( + - col1 ) col2 FROM tab0 AS cor0
----
-72
-103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * 99 / ( - + col2 ) * - - 0 + + col0 + + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3706
SELECT DISTINCT ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL SUM( DISTINCT - - 53 ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL SUM ( DISTINCT - - 53 ) AS col1 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL + MAX( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + MAX ( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT - col0 + + 84 FROM tab2 AS cor0
----
20
38
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT DISTINCT col0 + + - CAST( - 29 AS SIGNED ) AS col0 FROM tab0
----
116
126
44

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT col0 + + - CAST ( - 29 AS INTEGER ) AS col0 FROM tab0
----
116
126
44

query I rowsort
SELECT - 71 * - 55 FROM tab1
----
3905
3905
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3713
SELECT + CAST( NULL AS SIGNED ), col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3713
SELECT + CAST ( NULL AS INTEGER ), col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL 91 * 13 AS col2 FROM tab2
----
1183
1183
1183

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - MIN( DISTINCT + col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3715
SELECT - MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col2 ) AND ( + ( - + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 / - col2 col0 FROM tab2 AS cor0 WHERE NOT + col2 + + + col1 NOT BETWEEN 40 * - col2 + + 13 - col2 + 19 * ( - 63 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 + + + 30 - + col2 FROM tab1 cor0 WHERE NOT - col2 = col1
----
-114
-117
-129

query II rowsort
SELECT DISTINCT + 43 AS col0, col2 * 92 - 52 + + col1 + - col0 * col0 FROM tab1 AS cor0
----
43
-1844
43
-2030
43
6193

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT - 26 - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-29

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - 26 - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-29

query II rowsort
SELECT ALL - col2, col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col1
----

query I rowsort
SELECT DISTINCT + col0 * + 1 AS col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE + 1 * 29 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 3 + - + 50 AS col0 FROM tab1
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT 41 AS col0 FROM tab0 WHERE ( - 27 + - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT 41 AS col0 FROM tab0 WHERE ( - 27 + - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + col1 + - + col2 + + 66 AS col0 FROM tab2
----
17
63
71

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * col0 * - 98 - + + col2 + 30 NOT IN ( + col0, - col0 * - 13 * - ( + 61 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT - COUNT( * ) * + ( - COUNT( * ) ) - MAX( - - col1 ) FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT - COUNT ( * ) * + ( - COUNT ( * ) ) - MAX ( - - col1 ) FROM tab1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT DISTINCT - 82 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
16
5

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT - 82 / - col1 AS col2 FROM tab1 AS cor0
----
1
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL + MIN( DISTINCT - 31 ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL + MIN ( DISTINCT - 31 ) AS col1 FROM tab1
----
-31

query I rowsort
SELECT + 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - 84 * col1 AS col2 FROM tab1
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT + ( + + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3734
SELECT + ( + + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + - col0 > - ( + ( + 65 ) )
----
15
81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) * + col0 * - col0 BETWEEN NULL AND - col2 + - + col1
----

query I rowsort
SELECT - 35 * + ( + 40 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT ALL - + 89 DIV - 68 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - + 89 / - 68 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - COUNT( DISTINCT - + 80 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3739
SELECT - COUNT ( DISTINCT - + 80 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + SUM( - col1 ) / - 59 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT + SUM ( - col1 ) / - 59 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + 6 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
6
51
6
85
6
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3742
SELECT + col0 AS col0, col0 DIV + col2 AS col1 FROM tab1
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-3742
SELECT + col0 AS col0, col0 / + col2 AS col1 FROM tab1
----
51
0
85
1
91
1

query II rowsort
SELECT DISTINCT 60, + 24 AS col2 FROM tab0
----
60
24

query II rowsort
SELECT - col2 AS col1, - col1 AS col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3745
SELECT - COUNT( * ), + COUNT( * ) AS col2 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-3745
SELECT - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT 83 * - - col2 FROM tab2
----
1909
3320
4814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT MIN( - + col1 ) * 97 + CAST( NULL AS SIGNED ) + - + COUNT( * ) + - - 22 * + 91 AS col2 FROM tab1 WHERE NOT 57 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT MIN ( - + col1 ) * 97 + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - - 22 * + 91 AS col2 FROM tab1 WHERE NOT 57 <= ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT - CAST( - + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3749
SELECT - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + 3 + - - col2 FROM tab2 AS cor0
----
26
43
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT ALL + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE - col1 >= - col1
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE - col1 >= - col1
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT 67 + MIN( + + col1 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT 67 + MIN ( + + col1 ) FROM tab0
----
68

query I rowsort
SELECT + col1 + col1 + + col2 FROM tab0
----
101
209
52

query III rowsort
SELECT * FROM tab1 WHERE + 19 BETWEEN col2 AND - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT + COUNT( * ) / + + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT + COUNT ( * ) / + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL COUNT( * ) * + 11 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL COUNT ( * ) * + 11 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 27 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 = 5 * + + col1
----
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + ( + COUNT( * ) ) col2 FROM tab1 WHERE ( NOT - col1 + + col2 > ( NULL ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3760
SELECT + ( + COUNT ( * ) ) col2 FROM tab1 WHERE ( NOT - col1 + + col2 > ( NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT MIN( + 79 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT MIN ( + 79 ) FROM tab2
----
79

query II rowsort
SELECT 59, - col1 AS col1 FROM tab1
----
59
-14
59
-47
59
-5

query III rowsort
SELECT * FROM tab2 WHERE - 28 + col1 / col0 BETWEEN - - col1 - - col0 AND + 8
----

query I rowsort
SELECT ( ( - col2 ) ) - col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT - - col2 + col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) * col2 AND - col1
----

skipif mysql # not compatible
query I rowsort label-3765
SELECT - - col2 + col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + COUNT( - col2 ) * - + 10 + - 38 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3766
SELECT + COUNT ( - col2 ) * - + 10 + - 38 FROM tab2 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT - MAX( ALL + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT - MAX ( ALL + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT - col2 * + col2 DIV 63 DIV - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT - col2 * + col2 / 63 / - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT DISTINCT + 40 DIV - 93 * - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + 40 / - 93 * - col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NULL IN ( col2 + col2, 10 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT DISTINCT CAST( + + 83 AS SIGNED ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT CAST ( + + 83 AS INTEGER ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 - col0 - - + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE + col1 NOT IN ( - + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 NOT IN ( - + col2 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL - COUNT( + - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL - COUNT ( + - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 <= 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL ( + COUNT( ALL + - col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL ( + COUNT ( ALL + - col0 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 52 + - 48
----

query I rowsort
SELECT ALL - col1 * + col1 * - 79 AS col1 FROM tab1
----
15484
174511
1975

query I rowsort
SELECT ALL 38 + - col1 AS col0 FROM tab1
----
-9
24
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3780
SELECT ALL 92 DIV + + COUNT( + + ( + col2 ) ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL 92 / + + COUNT ( + + ( + col2 ) ) AS col1 FROM tab2
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 76 col1 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT DISTINCT + + 33 FROM tab1 WHERE NOT NULL IS NOT NULL
----
33

query I rowsort
SELECT - col0 + - col2 + - + 7 AS col2 FROM tab1
----
-151
-154
-166

query II rowsort
SELECT - 11 * col0 * + - 19 + + + col1 * + 90, col2 FROM tab1 cor0
----
11919
96
18215
59
23249
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT - SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 * col0 + + - 92 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT ALL - + 77 AS col1, COUNT( * ) * + 90 FROM tab1 AS cor0
----
-77
270

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL - + 77 AS col1, COUNT ( * ) * + 90 FROM tab1 AS cor0
----
-77
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3788
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( + col2 AS SIGNED ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3788
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( + col2 AS INTEGER ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 40 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL = 34
----

query I rowsort
SELECT + - 85 AS col1 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - + 8 AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT 81 * col1 - + - col0 AS col0 FROM tab2 AS cor0
----
4177
5502
6301

query I rowsort
SELECT ALL + + 36 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + 34 AND col1
----
36
36
36

query I rowsort
SELECT + - col0 * - col1 - col2 AS col0 FROM tab0 cor0
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - COUNT( * ) + - COUNT( * ) * - - 39 FROM tab1 cor0 WHERE col1 < col1 * 3 + - + col1 + + col0
----
-120

skipif mysql # not compatible
query I rowsort label-3796
SELECT - COUNT ( * ) + - COUNT ( * ) * - - 39 FROM tab1 cor0 WHERE col1 < col1 * 3 + - + col1 + + col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT COUNT( * ) + - + 47 * 39 FROM tab0
----
-1830

skipif mysql # not compatible
query I rowsort label-3797
SELECT COUNT ( * ) + - + 47 * 39 FROM tab0
----
-1830

query I rowsort
SELECT DISTINCT - col1 + - ( - - ( + col1 ) ) AS col1 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT col2 + col2 * - col0 * + 54 FROM tab1
----
-264288
-270751
-334084

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + SUM( ALL + + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3800
SELECT + SUM ( ALL + + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT - 10 * + + col2 AS col1 FROM tab2
----
-230
-400
-580

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT col0 DIV col1 * + col1 FROM tab2
----
0
0
67

skipif mysql # not compatible
query I rowsort label-3802
SELECT col0 / col1 * + col1 FROM tab2
----
0
0
67

query II rowsort
SELECT DISTINCT - - col1, col2 * + col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col0 * col2 + - - 86 AS col0, col2 + + 89 + + 98 * - col0 AS col1 FROM tab2 AS cor0
----
-2474
-6143
-4264
-7203
-972
-4396

query II rowsort
SELECT DISTINCT col1, + 88 AS col1 FROM tab2 AS cor0
----
51
88
67
88
77
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - ( - - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - ( - - col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT + - MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + - MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT 0 + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL col0 + + 19, + col2 FROM tab1
----
104
59
110
68
70
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT DISTINCT + 86 DIV + + 89 * 1 + - - 46 AS col0 FROM tab0, tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT + 86 / + + 89 * 1 + - - 46 AS col0 FROM tab0, tab1 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL - 18 * - - CAST( NULL AS SIGNED ) - + + 54 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3811
SELECT ALL - 18 * - - CAST ( NULL AS INTEGER ) - + + 54 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 46 * - 47 FROM tab2 AS cor0
----
-2162

query I rowsort
SELECT - 24 + - col1 + col0 FROM tab2 AS cor0
----
-16
-29
-37

query I rowsort
SELECT - - 10 + + col0 + - 78 + col0 AS col2 FROM tab2 AS cor0
----
24
60
82

query I rowsort
SELECT 80 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3816
SELECT - COUNT( ( + CAST( col0 AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3816
SELECT - COUNT ( ( + CAST ( col0 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( + 97 ) * + + 55 - - - col1 AS col0 FROM tab2 AS cor0
----
-5386
-5402
-5412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col2 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT 10 * + col0 AS col2 FROM tab1 AS cor0
----
510
850
910

query I rowsort
SELECT - 58 * + 79 FROM tab2 AS cor0
----
-4582
-4582
-4582

query I rowsort
SELECT 79 * 90 * + ( + col1 ) AS col0 FROM tab0 cor0
----
149310
575910
7110

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT + ( - - MAX( ALL + 76 ) ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + ( - - MAX ( ALL + 76 ) ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 cor0 WHERE NOT - ( - + col0 ) + + col1 < NULL
----

query I rowsort
SELECT col0 * - col2 - - - 14 AS col1 FROM tab2
----
-1072
-2574
-4364

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT ALL col2 + col1 + 82 + + ( - 80 ) DIV - + col2 AS col2 FROM tab1
----
147
192
198

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL col2 + col1 + 82 + + ( - 80 ) / - + col2 AS col2 FROM tab1
----
147
192
198

query II rowsort
SELECT DISTINCT + col2 AS col2, - 28 FROM tab0 AS cor0
----
10
-28
47
-28
99
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT - - 32 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
32
-3

skipif mysql # not compatible
query II rowsort label-3827
SELECT - - 32 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
32
-3

query II rowsort
SELECT + - 33 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-33
1
-33
21
-33
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3829
SELECT ALL - + CAST( NULL AS SIGNED ) col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3829
SELECT ALL - + CAST ( NULL AS INTEGER ) col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT 16 * + col2 FROM tab0 AS cor0
----
1584
160
752

query II rowsort
SELECT - col0 AS col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 AS cor0 WHERE col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL + + 53 * + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-2491
-265
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT - 74 + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> 16
----
-74

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 74 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> 16
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - - MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3836
SELECT - - MIN ( - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3837
SELECT - - COUNT( * ) DIV - 47 + - 50 AS col0 FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3837
SELECT - - COUNT ( * ) / - 47 + - 50 AS col0 FROM tab2 cor0
----
-50

query I rowsort
SELECT DISTINCT + ( 98 ) FROM tab0 AS cor0
----
98

query II rowsort
SELECT ALL - - ( + col1 ) AS col2, + col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * - col1 * - col0 * + - 2 AND NULL
----

query I rowsort
SELECT 80 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - + col1 ) * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - col0 + ( + 54 ) FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 99 * + col0 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT - + 36 FROM tab2 WHERE NULL IS NULL
----
-36
-36
-36

query II rowsort
SELECT ALL 30, col0 AS col1 FROM tab2
----
30
46
30
64
30
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3846
SELECT * FROM tab0 WHERE - + 6 * CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3846
SELECT * FROM tab0 WHERE - + 6 * CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT DISTINCT + MAX( + col1 ) + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + MAX ( + col1 ) + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3848
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3848
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 + col0 col0 FROM tab0 cor0
----
109
119
37

query I rowsort
SELECT + + ( col1 ) + - 59 AS col2 FROM tab2 AS cor0
----
-8
18
8

query I rowsort
SELECT - - 1 + 55 FROM tab2 AS cor0
----
56
56
56

query II rowsort
SELECT DISTINCT - col2 * col2 + - - col2 AS col1, col1 * + col0 FROM tab1 AS cor0
----
-3422
425
-4556
4277
-9120
714

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3854
SELECT - COUNT( * ) * - COUNT( * ) AS col1, + 18 * - 7 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3854
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1, + 18 * - 7 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - 32 - - COUNT( * ) * + 77 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3855
SELECT - 32 - - COUNT ( * ) * + 77 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3856
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 71 + - col0 AND - 62 / - col0 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3856
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 71 + - col0 AND - 62 / - col0 - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 73 - col2 FROM tab0 AS cor0
----
-26
26
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) - + + col1 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) - + + col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + ( ( - COUNT( * ) ) ) AS col1 FROM tab2 cor0 WHERE NOT - 3 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3859
SELECT + ( ( - COUNT ( * ) ) ) AS col1 FROM tab2 cor0 WHERE NOT - 3 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3860
SELECT ALL ( - col1 ) DIV + - col1 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL ( - col1 ) / + - col1 AS col1 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 31, 40 - 12, - 15 )
----

query I rowsort
SELECT 69 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL SUM( + 95 ) FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL SUM ( + 95 ) FROM tab0
----
285

query III rowsort
SELECT * FROM tab2 WHERE NOT + 58 < - 44 + + ( - - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT - col0 DIV - + col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3865
SELECT - col0 / - + col2 FROM tab0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col2 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT + SUM( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT MAX( + - 51 ) AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT MAX ( + - 51 ) AS col0 FROM tab0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 68 / - col0 * - + col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT + 73 + MAX( + 16 ) col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT + 73 + MAX ( + 16 ) col0 FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3872
SELECT DISTINCT + COUNT( * ) AS col2, 86 col2 FROM tab1 AS cor0
----
3
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3872
SELECT DISTINCT + COUNT ( * ) AS col2, 86 col2 FROM tab1 AS cor0
----
3
86

query I rowsort
SELECT - 35 + + col1 AS col0 FROM tab1 AS cor0
----
-21
-30
12

query I rowsort
SELECT 51 + + - col1 * - - col2 * + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
237211
260413
59874

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT col0 + 82 + 65 DIV + - col1 + col2 AS col0 FROM tab1
----
213
225
240

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT col0 + 82 + 65 / + - col1 + col2 AS col0 FROM tab1
----
213
225
240

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3876
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1, col2, ( - + col1 ) col1 FROM tab0
----
9 values hashing to 4cc901afca68f43b1f19aa7c09ac896a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3876
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1, col2, ( - + col1 ) col1 FROM tab0
----
9 values hashing to 4cc901afca68f43b1f19aa7c09ac896a

query I rowsort
SELECT DISTINCT col2 + + 95 FROM tab0
----
105
142
194

query II rowsort
SELECT ALL + col2 + + col2, + col1 AS col0 FROM tab0
----
198
1
20
21
94
81

query I rowsort
SELECT ALL col2 + 68 FROM tab0
----
115
167
78

query I rowsort
SELECT DISTINCT - ( 94 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 75 * - 55 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3882
SELECT + col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3882
SELECT + col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3883
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * CAST( NULL AS SIGNED ) AND + - ( - col0 ) * - col1 + col0
----

skipif mysql # not compatible
query III rowsort label-3883
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * CAST ( NULL AS INTEGER ) AND + - ( - col0 ) * - col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col1, col2 FROM tab0 cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3887
SELECT DISTINCT + 10 DIV MAX( - CAST( + 80 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT + 10 / MAX ( - CAST ( + 80 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3888
SELECT + + CAST( NULL AS DECIMAL ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3888
SELECT + + CAST ( NULL AS REAL ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT 83 * + + ( + COUNT( * ) ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
249
-3

skipif mysql # not compatible
query II rowsort label-3889
SELECT 83 * + + ( + COUNT ( * ) ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
249
-3

query I rowsort
SELECT + + col0 * + 64 AS col2 FROM tab1 AS cor0
----
3264
5440
5824

onlyif mysql # DIV for integer division: 
query II rowsort label-3891
SELECT - col1, col1 DIV + + col0 AS col1 FROM tab2 AS cor0
----
-51
1
-67
0
-77
1

skipif mysql # not compatible
query II rowsort label-3891
SELECT - col1, col1 / + + col0 AS col1 FROM tab2 AS cor0
----
-51
1
-67
0
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT - MIN( DISTINCT col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - MIN ( DISTINCT col2 ) FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 42 - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + - ( + + col1 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT col2 DIV 24 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3895
SELECT col2 / 24 FROM tab0
----
0
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT + 21 DIV - + col1 AS col2 FROM tab0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT + 21 / - + col1 AS col2 FROM tab0
----
-1
-21
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT col1 / - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT col1 / - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col1 FROM tab1 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3899
SELECT + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3899
SELECT + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3900
SELECT DISTINCT - COUNT( * ) DIV - + 29 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - COUNT ( * ) / - + 29 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 33 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT 27 * ( - ( + col2 ) ) AS col2 FROM tab1
----
-1593
-1836
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL - SUM( DISTINCT + 23 ) AS col1 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - SUM ( DISTINCT + 23 ) AS col1 FROM tab0 AS cor0
----
-23

query II rowsort
SELECT - col1 AS col1, + col1 AS col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - COUNT( col2 ) * - 61 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3905
SELECT - COUNT ( col2 ) * - 61 FROM tab2 AS cor0
----
183

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3906
SELECT - + col1 AS col1, - ( + - CAST( NULL AS DECIMAL ) ) - col1 AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-3906
SELECT - + col1 AS col1, - ( + - CAST ( NULL AS REAL ) ) - col1 AS col2 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT - 81 * - col2 + + col0 AS col2 FROM tab1
----
4864
5599
7827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3908
SELECT - ( CAST( - - COUNT( * ) AS SIGNED ) ) DIV 16 AS col0 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT - ( CAST ( - - COUNT ( * ) AS INTEGER ) ) / 16 AS col0 FROM tab2, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT - ( + 94 ) + COUNT( * ) AS col2 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-3909
SELECT - ( + 94 ) + COUNT ( * ) AS col2 FROM tab0
----
-91

query I rowsort
SELECT ALL + 85 + ( 35 ) AS col0 FROM tab0
----
120
120
120

query I rowsort
SELECT ALL ( + 51 ) * - 95 * - 86 AS col0 FROM tab2
----
416670
416670
416670

query I rowsort
SELECT - col0 + 70 AS col1 FROM tab1 AS cor0
----
-15
-21
19

query I rowsort
SELECT ALL + col2 - + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 < + col0 * + 4 + + + col1 * + + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - + MAX( - - 55 ) FROM tab0 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3916
SELECT - + MAX ( - - 55 ) FROM tab0 cor0
----
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 27 + + col1 + col1 / + + 18 = NULL
----

query I rowsort
SELECT ALL + + 59 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT - 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT COUNT( * ) * COUNT( * ) * - - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3920
SELECT COUNT ( * ) * COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3921
SELECT * FROM tab0 WHERE NOT + - CAST( col0 AS SIGNED ) BETWEEN 25 * - 6 AND + ( - 4 )
----

skipif mysql # not compatible
query III rowsort label-3921
SELECT * FROM tab0 WHERE NOT + - CAST ( col0 AS INTEGER ) BETWEEN 25 * - 6 AND + ( - 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 40 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL - + MIN( - + 25 ) FROM tab1 WHERE NOT NULL < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - + MIN ( - + 25 ) FROM tab1 WHERE NOT NULL < col2
----
NULL

query I rowsort
SELECT ALL 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL + 72 * - col0 + - col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - 53 ) NOT BETWEEN NULL AND + col1
----
46
51
23

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT - 48 = col1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3929
SELECT DISTINCT col0, CAST( NULL AS DECIMAL ) * + col0 + col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3929
SELECT DISTINCT col0, CAST ( NULL AS REAL ) * + col0 + col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL MAX( ALL + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL MAX ( ALL + - col0 ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + col1 * + + 9 AS col1 FROM tab0
----
189
729
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT DISTINCT CAST( NULL AS SIGNED ) * 50 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 50 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT ALL + 52 DIV + ( - + 91 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL + 52 / + ( - + 91 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + - 60 * + + col1 FROM tab1 AS cor0
----
-2820
-300
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT + SUM( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + SUM ( - - col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + col1 / - + col0 + + ( - col2 ) AS col1 FROM tab1 WHERE NOT + + col1 < + col2 + - - 42
----

query I rowsort
SELECT ALL - 68 + 99 FROM tab0
----
31
31
31

query I rowsort
SELECT - 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3939
SELECT + col2 FROM tab2 WHERE + col1 BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3939
SELECT + col2 FROM tab2 WHERE + col1 BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT + 80 NOT IN ( 87 * - - 0, 2 )
----

query I rowsort
SELECT col0 + - - col0 FROM tab1 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT ALL + 67 FROM tab2 WHERE NOT NULL IS NOT NULL
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT 88 DIV - - col2 + + col0 - + - col0 * 12 * - 94 FROM tab1 AS cor0
----
-102556
-57477
-95794

skipif mysql # not compatible
query I rowsort label-3943
SELECT 88 / - - col2 + + col0 - + - col0 * 12 * - 94 FROM tab1 AS cor0
----
-102556
-57477
-95794

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3944
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3946
SELECT - col2 * - col0 + + 88 * + 63 + + CAST( - col2 AS DECIMAL ) + + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - col2 * - col0 + + 88 * + 63 + + CAST ( - col2 AS REAL ) + + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT - COUNT( ( - col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - COUNT ( ( - col2 ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 >= NULL
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 85 * col1 AS col2 FROM tab2 AS cor0
----
4335
5695
6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 24 + + 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 4 + + - col0 FROM tab2 AS cor0
----
-42
-60
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + COUNT( * ) + + ( 97 ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + COUNT ( * ) + + ( 97 ) AS col1 FROM tab0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT SUM( - - 22 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3956
SELECT SUM ( - - 22 ) FROM tab2
----
66

query I rowsort
SELECT ALL + col2 * col0 * + 73 - - 18 + + + col1 FROM tab1
----
357440
366118
451789

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL - ( + + 95 ) - - COUNT( * ) * COUNT( * ) col2 FROM tab1
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3958
SELECT ALL - ( + + 95 ) - - COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - - 21 col1 FROM tab1
----
-117
-80
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - COUNT( * ) - + - 88 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - COUNT ( * ) - + - 88 FROM tab2 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 5 + + col2 - - col2 col0, - col2 * + col0 * + + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
121
291450
51
53958
85
197120

query II rowsort
SELECT DISTINCT - + col1 - - col1 + - + col0, + col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT 3 * - + 98 FROM tab1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT - - COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 + + col1 + 67 BETWEEN - + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 + + col1 + 67 BETWEEN - + col1 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT - col0 DIV + - col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3965
SELECT - col0 / + - col1 FROM tab1
----
1
17
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3967
SELECT ALL CAST( - + 34 AS SIGNED ) AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-34
46
-34
64
-34
75

skipif mysql # not compatible
query II rowsort label-3967
SELECT ALL CAST ( - + 34 AS INTEGER ) AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-34
46
-34
64
-34
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3968
SELECT ALL + col2, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-3968
SELECT ALL + col2, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT + + SUM( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT + + SUM ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - ( 44 ) AS col1 FROM tab0 AS cor0
----
-44
-44
-44

query II rowsort
SELECT + col0 AS col1, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT - 91 * col1 + - - ( col0 ) * - 24 * - col1 * + + col0 AS col2, + col0 * - col0 FROM tab0 AS cor0
----
225725
-9409
3812865
-7569
430029
-225

query II rowsort
SELECT ALL col1 AS col0, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT COUNT( + ( col1 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT COUNT ( + ( col1 ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT 96 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT 96 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT - col2, + col0 AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT 13 col1, + ( - MIN( DISTINCT - 82 ) ) FROM tab2, tab2 cor0
----
13
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3978
SELECT 13 col1, + ( - MIN ( DISTINCT - 82 ) ) FROM tab2, tab2 cor0
----
13
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT - + 34 * - COUNT( * ) + 22 FROM tab2 WHERE NOT NULL BETWEEN - CAST( ( + 25 ) AS SIGNED ) AND NULL
----
22

skipif mysql # not compatible
query I rowsort label-3979
SELECT - + 34 * - COUNT ( * ) + 22 FROM tab2 WHERE NOT NULL BETWEEN - CAST ( ( + 25 ) AS INTEGER ) AND NULL
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-3980
SELECT ALL 95 DIV col0 AS col2, + 11 FROM tab1
----
1
11
1
11
1
11

skipif mysql # not compatible
query II rowsort label-3980
SELECT ALL 95 / col0 AS col2, + 11 FROM tab1
----
1
11
1
11
1
11

onlyif mysql # DIV for integer division: 
query II rowsort label-3981
SELECT + col1 DIV + col1 col0, - col0 AS col0 FROM tab0
----
1
-15
1
-87
1
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3981
SELECT + col1 / + col1 col0, - col0 AS col0 FROM tab0
----
1
-15
1
-87
1
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT + + CAST( + 44 AS SIGNED ) * AVG ( - col0 ) FROM tab0 WHERE NOT NULL IN ( 7, col0 / + col0, + col0 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT + + CAST ( + 44 AS INTEGER ) * AVG ( - col0 ) FROM tab0 WHERE NOT NULL IN ( 7, col0 / + col0, + col0 + - col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT 81 DIV + 61 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3984
SELECT 81 / + 61 AS col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - ( - + ( + MAX( - 91 ) ) ) + - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3985
SELECT - ( - + ( + MAX ( - 91 ) ) ) + - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - 4 * + 12 FROM tab0 AS cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT DISTINCT - col1 DIV - col2 + + col0 + + col0 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT - col1 / - col2 + + col0 + + col0 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL 95 - - col1 FROM tab1
----
100
109
142

query II rowsort
SELECT + + 7 AS col1, - col1 AS col0 FROM tab2 cor0
----
7
-51
7
-67
7
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 - + - col2
----

query I rowsort
SELECT ALL + - 71 * - 37 * ( col0 ) AS col2 FROM tab0 cor0
----
228549
254819
39405

onlyif mysql # DIV for integer division: 
query II rowsort label-3992
SELECT ALL col2 + - col1 - + - col2 DIV + + col2 AS col2, col1 col1 FROM tab2
----
-27
51
-36
77
-8
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3992
SELECT ALL col2 + - col1 - + - col2 / + + col2 AS col2, col1 col1 FROM tab2
----
-27
51
-36
77
-8
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT COUNT( * ) + MIN( DISTINCT col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3993
SELECT COUNT ( * ) + MIN ( DISTINCT col1 ) FROM tab2
----
54

query I rowsort
SELECT ALL col2 + 27 AS col1 FROM tab1
----
123
86
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT + 37 * + CAST( NULL AS SIGNED ) * + 6 + - 76 + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT + 37 * + CAST ( NULL AS INTEGER ) * + 6 + - 76 + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col2 * + 3 FROM tab0
----
222
298
51

query I rowsort
SELECT ALL - 58 + 93 * - - col1 + col2 AS col0 FROM tab1
----
1340
4381
466

query I rowsort
SELECT ALL col2 + + + col0 + 9 AS col1 FROM tab2
----
113
142
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + 19 * 8 * + + ( + MAX( - col1 ) ) * COUNT( * ) AS col0 FROM tab1 cor0
----
-2280

skipif mysql # not compatible
query I rowsort label-3999
SELECT + 19 * 8 * + + ( + MAX ( - col1 ) ) * COUNT ( * ) AS col0 FROM tab1 cor0
----
-2280

query I rowsort
SELECT ALL - - 14 * col1 - + + col1 - 84 * - - 32 + + + col1 FROM tab0 AS cor0
----
-1554
-2394
-2674

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT + 51 DIV + col2 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 51 / + col2 AS col0 FROM tab2
----
0
1
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> - - col2
----

query I rowsort
SELECT 30 - - AVG ( + 2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 81 + + 70 + + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - - 59 ) FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + - 64 AS col1 FROM tab0 cor0
----
-64

query I rowsort
SELECT DISTINCT - col0 + col0 + + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT 46 * + 50 FROM tab2
----
2300
2300
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + COUNT( * ) col2 FROM tab1 WHERE NOT + + 24 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT + COUNT ( * ) col2 FROM tab1 WHERE NOT + + 24 IS NULL
----
3

query II rowsort
SELECT - 17 AS col2, - col0 FROM tab2
----
-17
-46
-17
-64
-17
-75

query I rowsort
SELECT - ( - 35 ) FROM tab2
----
35
35
35

query II rowsort
SELECT ALL + col1 AS col2, col2 - - col2 FROM tab1
----
14
192
47
136
5
118

query II rowsort
SELECT + col2 * + - col0, col2 + + + col1 AS col1 FROM tab0
----
-705
128
-870
31
-9603
100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + ( + col2 ) ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 24 * - - 37 col0 FROM tab2 AS cor0 WHERE ( + 21 IS NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 35 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + + col0 AS col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT 77 * - col0 AS col0 FROM tab2
----
-3542
-4928
-5775

query I rowsort
SELECT + ( col1 ) + 19 AS col0 FROM tab0 AS cor0
----
100
20
40

query I rowsort
SELECT ALL + - col2 - + 4 AS col1 FROM tab0 AS cor0
----
-103
-14
-51

query I rowsort
SELECT DISTINCT + 10 * + + col2 AS col0 FROM tab0 AS cor0
----
100
470
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT - COUNT( - 19 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - COUNT ( - 19 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4025
SELECT ALL - - 88 DIV + col1 + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-46
-8
12

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - - 88 / + col1 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-46
-8
12

query I rowsort
SELECT ALL - col2 * - 30 AS col2 FROM tab2 AS cor0
----
1200
1740
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT DISTINCT 37 DIV + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT 37 / + COUNT ( * ) FROM tab1 AS cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT 62 DIV + COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT 62 / + COUNT ( * ) FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT ALL + MAX( - + 22 ) + + + 82 AS col2, - 57 AS col1 FROM tab0
----
60
-57

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL + MAX ( - + 22 ) + + + 82 AS col2, - 57 AS col1 FROM tab0
----
60
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4031
SELECT * FROM tab2 WHERE 20 * - CAST( NULL AS SIGNED ) - + 73 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4031
SELECT * FROM tab2 WHERE 20 * - CAST ( NULL AS INTEGER ) - + 73 IS NOT NULL
----

query II rowsort
SELECT ALL col2, col1 * + col1 * 90 FROM tab1
----
59
2250
68
198810
96
17640

query II rowsort
SELECT - 6 AS col2, + col0 * - + col0 * + - 32 FROM tab0 AS cor0
----
-6
242208
-6
301088
-6
7200

query II rowsort
SELECT - 41 AS col1, col2 + + col2 AS col1 FROM tab0 cor0
----
-41
198
-41
20
-41
94

query III rowsort
SELECT ALL 31 + 7, - 95 + col2 AS col1, + col2 AS col0 FROM tab1 AS cor0 WHERE NULL < 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT CAST( - - col1 AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4036
SELECT CAST ( - - col1 AS INTEGER ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + + col1 * 97 FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4038
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) / - + col1 * - CAST( NULL AS SIGNED ) + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4038
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) / - + col1 * - CAST ( NULL AS INTEGER ) + CAST ( col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NULL >= 88 + - 35
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NULL >= 88 + - 35
----
0

query I rowsort
SELECT col1 FROM tab0 WHERE ( - col1 / col1 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 - + 94 FROM tab2
----
-36
-54
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 57 ) col0 FROM tab2
----
57
57
57

query I rowsort
SELECT col1 + - 51 AS col2 FROM tab2
----
0
16
26

query III rowsort
SELECT ALL * FROM tab1 WHERE - 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - - col0 FROM tab0 WHERE NULL IS NULL
----
196
62
97

query I rowsort
SELECT DISTINCT - col2 + - 6 FROM tab0
----
-105
-16
-53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4047
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) < + ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-4047
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) < + ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT DISTINCT - 77 + col2 DIV - ( col2 ) AS col2 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - 77 + col2 / - ( col2 ) AS col2 FROM tab1
----
-78

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT 54 + - 62 FROM tab2 WHERE NOT ( col2 ) * col0 NOT IN ( col2 )
----

query I rowsort
SELECT ( col0 ) * - col1 + + col2 AS col2 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT ALL + CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL + CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT COUNT( * ) FROM tab2 WHERE NOT - 74 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4055
SELECT COUNT ( * ) FROM tab2 WHERE NOT - 74 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 99 ) IS NOT NULL
----

query I rowsort
SELECT + ( - col2 ) + - col2 AS col1 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT ALL + col1 + + col1 * col0 AS col1 FROM tab1
----
430
4324
728

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT DISTINCT - col2 - col2 DIV col0 col0 FROM tab1
----
-59
-68
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4059
SELECT DISTINCT - col2 - col2 / col0 col0 FROM tab1
----
-59
-68
-97

query I rowsort
SELECT DISTINCT col2 * 31 AS col0 FROM tab0
----
1457
3069
310

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT COUNT( * ) FROM tab1 WHERE - 70 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4062
SELECT COUNT ( * ) FROM tab1 WHERE - 70 IS NOT NULL
----
3

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( col2 ) BETWEEN + col0 AND + col0 * + col0
----
-59
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT 56 * col1 + + CAST( 32 AS SIGNED ) AS col1 FROM tab2
----
2888
3784
4344

skipif mysql # not compatible
query I rowsort label-4064
SELECT 56 * col1 + + CAST ( 32 AS INTEGER ) AS col1 FROM tab2
----
2888
3784
4344

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT col0 DIV - col1 + + 8 AS col2 FROM tab2
----
7
8
8

skipif mysql # not compatible
query I rowsort label-4065
SELECT col0 / - col1 + + 8 AS col2 FROM tab2
----
7
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT + SUM( ALL + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + SUM ( ALL + col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT MIN( DISTINCT - col2 ) + 28 col0 FROM tab2 cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4067
SELECT MIN ( DISTINCT - col2 ) + 28 col0 FROM tab2 cor0
----
-30

query I rowsort
SELECT 75 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL COUNT( * ) * - 31 + - COUNT( * ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL COUNT ( * ) * - 31 + - COUNT ( * ) AS col1 FROM tab0
----
-96

query I rowsort
SELECT - 33 - 41 AS col1 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT - col2 - - 57 * - col1 FROM tab0 AS cor0
----
-1207
-156
-4664

query I rowsort
SELECT ALL + 62 - + col2 FROM tab2 AS cor0
----
22
39
4

query I rowsort
SELECT + 14 + + 60 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT COUNT( * ) col2 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-4074
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ( 19 ) FROM tab2 cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + 19 + SUM( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
218

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4076
SELECT + 19 + SUM ( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL 91 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col1 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4079
SELECT * FROM tab1 AS cor0 WHERE CAST( col2 AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4079
SELECT * FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT - ( col1 ) AS col0 FROM tab0 WHERE 78 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 + 33 * - 12 FROM tab0 WHERE NULL IS NULL
----
-297
-349
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + COUNT( * ) * ( ( 71 ) ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-4083
SELECT + COUNT ( * ) * ( ( 71 ) ) FROM tab0
----
213

query I rowsort
SELECT + col1 * - col2 * + 51 AS col2 FROM tab2
----
-157080
-198186
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT 5 * COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT 5 * COUNT ( * ) FROM tab2
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( col2 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4087
SELECT ALL + 8 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + 8 / col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT DISTINCT - 75 DIV + - 30 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT - 75 / + - 30 FROM tab0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT ALL col0 DIV - 88 + 44 FROM tab1 AS cor0
----
43
44
44

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL col0 / - 88 + 44 FROM tab1 AS cor0
----
43
44
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 18 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( - col0 ) AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + 98 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT ALL - - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4095
SELECT ALL MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - - 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT ALL - - col1 DIV - col0 * + + col2 + - 16 * 16 FROM tab1 AS cor0
----
-256
-256
-256

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - - col1 / - col0 * + + col2 + - 16 * 16 FROM tab1 AS cor0
----
-256
-256
-256

query II rowsort
SELECT DISTINCT + - 10, - 10 + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-100
-10
-148
-10
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4100
SELECT + COUNT( * ) + COUNT( - col0 ) * 1 col2 FROM tab1 AS cor0 WHERE NOT ( col0 - + + col0 - - col0 ) IN ( CAST( NULL AS SIGNED ) + 39 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4100
SELECT + COUNT ( * ) + COUNT ( - col0 ) * 1 col2 FROM tab1 AS cor0 WHERE NOT ( col0 - + + col0 - - col0 ) IN ( CAST ( NULL AS INTEGER ) + 39 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col2 ) NOT IN ( col2 - 4 * + 51 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 29 + - col1 AS col2 FROM tab1 AS cor0
----
-34
-43
-76

query I rowsort
SELECT + 1 + + col1 + + col2 + col0 * - 9 AS col2 FROM tab2 AS cor0
----
-339
-458
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4104
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL >= col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 28 ) + + - col2 col2 FROM tab0
----
-19
-71
18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( 50 + col2 ) AND ( col1 * - col2 - 30 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT CAST( ( - col1 ) AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4107
SELECT CAST ( ( - col1 ) AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col1 * + 28 * + col0 + 97 AS col1 FROM tab2
----
-137887
-140603
-65591

query III rowsort
SELECT * FROM tab0 WHERE 2 NOT BETWEEN NULL AND - col0 * + col0 + - 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col2 > - ( + 60 ) * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT DISTINCT ( - + col2 ) * + CAST( NULL AS SIGNED ) * + col0 + col2 / col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT ( - + col2 ) * + CAST ( NULL AS INTEGER ) * + col0 + col2 / col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT DISTINCT + ( 73 ) AS col1, + SUM( ALL + col1 ) col1 FROM tab2 AS cor0
----
73
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4113
SELECT DISTINCT + ( 73 ) AS col1, + SUM ( ALL + col1 ) col1 FROM tab2 AS cor0
----
73
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4115
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - + 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4115
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - + 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL col2 * + col1 * col2 + - - col0 * - + 72 + col0 * col2 FROM tab1
----
130248
16300
216964

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= + 59
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + - 31 - COUNT( * ) AS col1 FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + - 31 - COUNT ( * ) AS col1 FROM tab0 cor0
----
-34

query I rowsort
SELECT ALL + + 83 FROM tab2 AS cor0
----
83
83
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) IN ( 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - COUNT( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4123
SELECT - COUNT ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 60 + - 40 + - 54 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1262
2180
3152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT ALL - ( - 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-4125
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 68 AS col0 FROM tab0 AS cor0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT ALL + + col1, - 1 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
1
-9604
21
-871
81
-706

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4129
SELECT + - col0 DIV - + 24 + + CAST( - col0 AS SIGNED ) * col1 + + 60 AS col1 FROM tab0 AS cor0
----
-1155
-1764
-33

skipif mysql # not compatible
query I rowsort label-4129
SELECT + - col0 / - + 24 + + CAST ( - col0 AS INTEGER ) * col1 + + 60 AS col1 FROM tab0 AS cor0
----
-1155
-1764
-33

query I rowsort
SELECT + col0 * - 76 FROM tab0 WHERE NOT NULL < + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + COUNT( * ) col1 FROM tab2 WHERE NOT ( NOT + col0 + - col0 IS NOT NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4131
SELECT + COUNT ( * ) col1 FROM tab2 WHERE NOT ( NOT + col0 + - col0 IS NOT NULL )
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( + col0 ) + - + 21 NOT IN ( - 4 * 38 )
----

query I rowsort
SELECT ALL + 90 AS col1 FROM tab2
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL - 41 * + - COUNT( * ) AS col2 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - 41 * + - COUNT ( * ) AS col2 FROM tab1
----
123

query I rowsort
SELECT DISTINCT - 47 * col0 AS col2 FROM tab0
----
-4089
-4559
-705

query II rowsort
SELECT DISTINCT - 98 AS col0, - ( + ( col2 ) ) AS col1 FROM tab2
----
-98
-23
-98
-40
-98
-58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 66 / + 92 = - 78 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 46 = - 74
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 22 FROM tab0 AS cor0 WHERE NOT ( NULL NOT IN ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT + + col1 * 74 * + col0 - - col2 + CAST( NULL AS SIGNED ) / + 12 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT + + col1 * 74 * + col0 - - col2 + CAST ( NULL AS INTEGER ) / + 12 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - ( - - col2 ), + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT + - col2 * col1 + - CAST( NULL AS SIGNED ) + - col2 + + + ( - col2 ) * + + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT + - col2 * col1 + - CAST ( NULL AS INTEGER ) + - col2 + + + ( - col2 ) * + + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 col0 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT - + 49 AS col2 FROM tab0 cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( - 93 ) + + col1 <= ( 81 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( - 93 ) + + col1 <= ( 81 + col0 )
----
0

query I rowsort
SELECT DISTINCT + col1 * + - 25 - + ( + + col2 ) + + + 75 AS col1 FROM tab2 AS cor0
----
-1223
-1658
-1890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 89 + + - 45 + + col0 col2, + 12 col2 FROM tab2 AS cor0
----
108
12
119
12
90
12

query I rowsort
SELECT DISTINCT + 46 * - col0 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT + 41 + + SUM( DISTINCT + + 38 ) + - 96 AS col0 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT + 41 + + SUM ( DISTINCT + + 38 ) + - 96 AS col0 FROM tab1
----
-17

query I rowsort
SELECT ALL - 8 + + col0 AS col2 FROM tab0
----
7
79
89

query I rowsort
SELECT 20 * + ( - - col0 ) + + col0 FROM tab2
----
1344
1575
966

query I rowsort
SELECT DISTINCT - 14 + col1 AS col2 FROM tab2
----
37
53
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 48 col1 FROM tab0
----
147
58
95

query II rowsort
SELECT ALL col1 AS col0, + 17 AS col0 FROM tab1
----
14
17
47
17
5
17

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT 7 + - col0 * + ( 81 ) FROM tab2
----
-3719
-5177
-6068

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - COUNT( * ) * COUNT( * ) + - + MIN( - col0 ) col0 FROM tab1
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4158
SELECT - COUNT ( * ) * COUNT ( * ) + - + MIN ( - col0 ) col0 FROM tab1
----
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0, + col1, - col0 / ( 92 ) )
----

query I rowsort
SELECT 54 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4161
SELECT DISTINCT col2, CAST( NULL AS SIGNED ) / 13 + - + col2 / col0 AS col1 FROM tab0 WHERE NULL IN ( - 66 )
----

skipif mysql # not compatible
query II rowsort label-4161
SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) / 13 + - + col2 / col0 AS col1 FROM tab0 WHERE NULL IN ( - 66 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT DISTINCT MAX( 67 ) col0, 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
67
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4162
SELECT DISTINCT MAX ( 67 ) col0, 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
67
51

query I rowsort
SELECT DISTINCT + - 79 AS col1 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE - 20 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT DISTINCT col1 * - 36 * CAST( + 89 AS SIGNED ) AS col0 FROM tab0
----
-259524
-3204
-67284

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT col1 * - 36 * CAST ( + 89 AS INTEGER ) AS col0 FROM tab0
----
-259524
-3204
-67284

query I rowsort
SELECT ALL ( + 2 ) * - 54 FROM tab0
----
-108
-108
-108

query I rowsort
SELECT DISTINCT 66 * - ( + + col1 ) FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL >= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT SUM( ALL - 72 ) * + 75 FROM tab2
----
-16200

skipif mysql # not compatible
query I rowsort label-4169
SELECT SUM ( ALL - 72 ) * + 75 FROM tab2
----
-16200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 94 col0 FROM tab1
----
4794
7990
8554

query I rowsort
SELECT + 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT DISTINCT + CAST( - 75 AS SIGNED ) AS col0 FROM tab1 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) AS col0 FROM tab1 cor0
----
-75

query I rowsort
SELECT DISTINCT + col1 * + col2 - - + 62 + - + col1 AS col0 FROM tab0 cor0
----
160
251
3788

query I rowsort
SELECT - col2 + - + col2 * - - col2 * col0 + - col0 FROM tab2 AS cor0
----
-102504
-24403
-252433

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL + SUM( - col0 ) * - ( + 98 ) AS col0 FROM tab2 AS cor0
----
18130

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL + SUM ( - col0 ) * - ( + 98 ) AS col0 FROM tab2 AS cor0
----
18130

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - + 91 + - - 33 + COUNT( * ) FROM tab1 AS cor0 WHERE 75 < 94
----
-55

skipif mysql # not compatible
query I rowsort label-4176
SELECT - + 91 + - - 33 + COUNT ( * ) FROM tab1 AS cor0 WHERE 75 < 94
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MAX( ALL + col0 ) + - 92 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4177
SELECT MAX ( ALL + col0 ) + - 92 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT ALL + COUNT( ALL + ( - - col0 ) ) + - 30 AS col2 FROM tab1 AS cor0 WHERE NULL > ( + ( 51 ) ) * - + col2
----
-30

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL + COUNT ( ALL + ( - - col0 ) ) + - 30 AS col2 FROM tab1 AS cor0 WHERE NULL > ( + ( 51 ) ) * - + col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT ALL - SUM( ALL - col2 ) * MIN( 27 ) AS col1 FROM tab2 AS cor0
----
3267

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - SUM ( ALL - col2 ) * MIN ( 27 ) AS col1 FROM tab2 AS cor0
----
3267

query I rowsort
SELECT ALL + 21 + - 86 + col1 AS col1 FROM tab0 AS cor0
----
-44
-64
16

query II rowsort
SELECT - col0 AS col2, 96 AS col0 FROM tab2 cor0
----
-46
96
-64
96
-75
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4182
SELECT - col2 * 34 - CAST( NULL AS DECIMAL ) + + 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - col2 * 34 - CAST ( NULL AS REAL ) + + 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 85 ) FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL - col1 + - 33 AS col1 FROM tab0 AS cor0
----
-114
-34
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - SUM( ALL 91 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-4185
SELECT - SUM ( ALL 91 ) FROM tab1
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 + - col1 col2 FROM tab2
----
-149
-165
-175

query I rowsort
SELECT DISTINCT 20 * - ( col1 ) * + 69 * + col0 * - + col2 + - col1 * + ( 17 ) * - 55 AS col2 FROM tab2
----
272097595
402263645
74509725

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4188
SELECT ALL CAST( NULL AS DECIMAL ) + col1 - col1 * + 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL CAST ( NULL AS REAL ) + col1 - col1 * + 38 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 + + + 43 AS col0, + col1 AS col1 FROM tab1
----
102
5
111
47
139
14

query I rowsort
SELECT 44 - - 31 FROM tab2, tab1 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - AVG ( - - 58 ) AS col0 FROM tab1 WHERE NOT NULL IN ( ( + col2 ) + col2 )
----
NULL

query I rowsort
SELECT DISTINCT 22 - - col2 + col0 FROM tab2 AS cor0
----
126
155
91

query I rowsort
SELECT DISTINCT - ( - 59 ) FROM tab0 AS cor0 WHERE col2 / + + 55 * - col1 * col2 + col2 IS NOT NULL
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT ALL + - COUNT( * ) * - 39, 88 AS col1 FROM tab2 AS cor0
----
117
88

skipif mysql # not compatible
query II rowsort label-4194
SELECT ALL + - COUNT ( * ) * - 39, 88 AS col1 FROM tab2 AS cor0
----
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT MAX( ALL - + col0 ) + - - MAX( + col1 ) AS col0 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT MAX ( ALL - + col0 ) + - - MAX ( + col1 ) AS col0 FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT - COUNT( * ) FROM tab0 WHERE NOT - 13 * - col2 NOT IN ( + - 69 + + 3 * 94 )
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - 13 * - col2 NOT IN ( + - 69 + + 3 * 94 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col2 * + col0 / + col1 * - 99 NOT IN ( col2 / + col1 + - col2 * + + 65 + + - 89 + 48 * 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - MIN( DISTINCT + col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4198
SELECT ALL - MIN ( DISTINCT + col0 ) col1 FROM tab1
----
-51

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 AS col0 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT + + col0 * + + col2 AS col2 FROM tab0 cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT - 72 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
3
72

skipif mysql # not compatible
query I rowsort label-4201
SELECT - 72 / - col1 AS col0 FROM tab0 AS cor0
----
0
3
72

query II rowsort
SELECT 8 AS col0, + col0 * 62 FROM tab0 AS cor0
----
8
5394
8
6014
8
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT DISTINCT COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4203
SELECT DISTINCT COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
9

query II rowsort
SELECT - 25, + 46 AS col0 FROM tab2 AS cor0
----
-25
46
-25
46
-25
46

query I rowsort
SELECT - ( 43 ) AS col0 FROM tab0 cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4206
SELECT - 21 AS col0 FROM tab1 AS cor0 WHERE NOT 88 BETWEEN ( - CAST( + - 91 AS DECIMAL ) ) AND NULL
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-4206
SELECT - 21 AS col0 FROM tab1 AS cor0 WHERE NOT 88 BETWEEN ( - CAST ( + - 91 AS REAL ) ) AND NULL
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT - 39, + ( col2 ) FROM tab1 AS cor0
----
-39
59
-39
68
-39
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT DISTINCT + - CAST( - SUM( ALL + col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + - CAST ( - SUM ( ALL + col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT + SUM( ALL 96 ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT + SUM ( ALL 96 ) FROM tab2 AS cor0
----
288

query I rowsort
SELECT DISTINCT + 77 FROM tab0 cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col0 col1, + col2 - + col2 + + col1 FROM tab1
----
2601
14
7225
5
8281
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT DISTINCT CAST( 70 AS SIGNED ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT CAST ( 70 AS INTEGER ) AS col0 FROM tab1
----
70

query I rowsort
SELECT + + col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT + COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT + COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT - MAX( DISTINCT - col0 ) + 64 AS col2 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-4216
SELECT - MAX ( DISTINCT - col0 ) + 64 AS col2 FROM tab2 AS cor0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL ( - - 18 ) * COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
486

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL ( - - 18 ) * COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 + + + 38 AS col1 FROM tab0 AS cor0
----
121
121
121

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 96 IS NULL
----

query I rowsort
SELECT 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL COUNT( * ) + - + COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL COUNT ( * ) + - + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT DISTINCT - col2 + + col0 DIV - + col0 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - col2 + + col0 / - + col0 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + 87 ) AND - 34 * ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + 87 ) AND - 34 * ( col2 )
----
0

query I rowsort
SELECT + col1 * + col1 + - col0 AS col0 FROM tab2 cor0
----
2555
4414
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT - 3 * - MAX( DISTINCT - - col1 ) FROM tab0 cor0
----
243

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT - 3 * - MAX ( DISTINCT - - col1 ) FROM tab0 cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT DISTINCT 33 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT 33 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4228
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - + 28 * + COUNT( * ) * - SUM( col0 ) FROM tab2 AS cor0 WHERE - 13 BETWEEN + - col0 + + 91 AND + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT - + 28 * + COUNT ( * ) * - SUM ( col0 ) FROM tab2 AS cor0 WHERE - 13 BETWEEN + - col0 + + 91 AND + + col2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4232
SELECT + 15 DIV + MAX( DISTINCT + col2 ) * + 54 + 26 AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 15 / + MAX ( DISTINCT + col2 ) * + 54 + 26 AS col1 FROM tab1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT + ( - - 55 ) + + ( col1 ) + - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4233
SELECT + ( - - 55 ) + + ( col1 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - 36 - COUNT( * ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - 36 - COUNT ( * ) FROM tab0
----
-39

query I rowsort
SELECT ALL - + col1 * col0 + - 79 FROM tab0 AS cor0
----
-1294
-176
-1906

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IN ( + col1, 85 * col2, - 70 + + + 88 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT - 1 * + COUNT( * ) - - MAX( - - 10 ) * + COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT - 1 * + COUNT ( * ) - - MAX ( - - 10 ) * + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 7 AND - 17
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - col1 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT ALL - col2 DIV - col1 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - col2 / - col1 FROM tab0 cor0
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT - 14 DIV 12 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4241
SELECT - 14 / 12 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4242
SELECT DISTINCT + 99 DIV + + COUNT( * ), 90 AS col0 FROM tab0 AS cor0
----
33
90

skipif mysql # not compatible
query II rowsort label-4242
SELECT DISTINCT + 99 / + + COUNT ( * ), 90 AS col0 FROM tab0 AS cor0
----
33
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT ALL + COUNT( DISTINCT 42 ) AS col1, + 3 FROM tab0 cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-4243
SELECT ALL + COUNT ( DISTINCT 42 ) AS col1, + 3 FROM tab0 cor0
----
1
3

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 82 + - col0, - 79 * col2 + col1 * + + ( col2 ), col1 )
----

query I rowsort
SELECT - 87 * - col0 FROM tab1
----
4437
7395
7917

query I rowsort
SELECT + col1 * + 25 AS col0 FROM tab2
----
1275
1675
1925

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 + - + ( + col0 ) NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT + MAX( DISTINCT ( - col0 ) ) * - COUNT( 38 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4248
SELECT + MAX ( DISTINCT ( - col0 ) ) * - COUNT ( 38 ) FROM tab0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + 95 col0 FROM tab2
----
4370
6080
7125

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN col0 + + col2 AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT - 51 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4253
SELECT DISTINCT + col1 DIV + 50 + + col0 AS col2, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-4253
SELECT DISTINCT + col1 / + 50 + + col0 AS col2, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4254
SELECT - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col1 - + + ( + 4 ) * + col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT - COUNT( * ) + - COUNT( * ) AS col0, 90 + ( - ( + 80 ) ) + - - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
79

skipif mysql # not compatible
query II rowsort label-4256
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0, 90 + ( - ( + 80 ) ) + - - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18
79

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + 93 + col0 * + + col0 * - 73 + - 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + + 47 ) - + col0 AS col0 FROM tab0 AS cor0
----
-40
-50
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL - CAST( col0 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - CAST ( col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT ALL + + ( - col2 ) AS col2, + CAST( NULL AS SIGNED ) + + 20 + + 35 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-4260
SELECT ALL + + ( - col2 ) AS col2, + CAST ( NULL AS INTEGER ) + + 20 + + 35 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 46 + 44 > + 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - MIN( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4262
SELECT - MIN ( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - MIN( + col2 ) * COUNT( * ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4263
SELECT - MIN ( + col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT - MAX( DISTINCT + col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - MAX ( DISTINCT + col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ( - 75 ) * + ( COUNT( * ) ) FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-4265
SELECT ( - 75 ) * + ( COUNT ( * ) ) FROM tab1
----
-225

query I rowsort
SELECT + col1 - + + col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT + col1 + 57 * - - 80 + - + 28 AS col1 FROM tab1
----
4537
4546
4579

query I rowsort
SELECT DISTINCT + col0 * - 29 + col0 FROM tab0
----
-2436
-2716
-420

onlyif mysql # DIV for integer division: 
query II rowsort label-4269
SELECT DISTINCT - col0 - col0 DIV col0 * col0 * - - 30, + col1 AS col1 FROM tab2
----
-1426
51
-1984
77
-2325
67

skipif mysql # not compatible
query II rowsort label-4269
SELECT DISTINCT - col0 - col0 / col0 * col0 * - - 30, + col1 AS col1 FROM tab2
----
-1426
51
-1984
77
-2325
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4270
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT + col1 * 12 AS col0 FROM tab0 AS cor0
----
12
252
972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT - + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4272
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 82 AS col0 FROM tab0 WHERE NOT + 69 IS NULL
----
82

query I rowsort
SELECT - 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL - COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT 37 FROM tab2 WHERE ( NOT col0 IS NULL )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT ALL - 81 * - - CAST( NULL AS SIGNED ) + - + col0 * - col1 + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - 81 * - - CAST ( NULL AS INTEGER ) + - + col0 * - col1 + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4279
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + 94 AS col1 FROM tab1 AS cor0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-4279
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 94 AS col1 FROM tab1 AS cor0
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 91 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4280
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 91 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT + 12 DIV + + ( + - col1 ) FROM tab0 AS cor0
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT + 12 / + + ( + - col1 ) FROM tab0 AS cor0
----
-12
0
0

query II rowsort
SELECT + 76, col1 FROM tab2 cor0
----
76
51
76
67
76
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - COUNT( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4285
SELECT DISTINCT + - 6, ( col2 ) DIV - + col1 - col0 AS col1 FROM tab2 AS cor0
----
-6
-46
-6
-64
-6
-75

skipif mysql # not compatible
query II rowsort label-4285
SELECT DISTINCT + - 6, ( col2 ) / - + col1 - col0 AS col1 FROM tab2 AS cor0
----
-6
-46
-6
-64
-6
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT + COUNT( * ) + ( - COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + COUNT ( * ) + ( - COUNT ( * ) ) FROM tab1
----
0

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT 43 NOT BETWEEN NULL AND - - 15
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT ALL MIN( ALL + col1 ) AS col1, COUNT( * ) FROM tab1
----
5
3

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL MIN ( ALL + col1 ) AS col1, COUNT ( * ) FROM tab1
----
5
3

query I rowsort
SELECT DISTINCT 17 + col1 AS col1 FROM tab2
----
68
84
94

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 86 * - 11 * + + col1, + col1 + - col1, - col0, - 16 )
----

query II rowsort
SELECT - col2 + - - 22 AS col0, + col1 FROM tab0
----
-25
81
-77
1
12
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4292
SELECT - - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT 63 + + ( CAST( col2 AS SIGNED ) ) * 65 FROM tab0 AS cor0
----
3118
6498
713

skipif mysql # not compatible
query I rowsort label-4293
SELECT 63 + + ( CAST ( col2 AS INTEGER ) ) * 65 FROM tab0 AS cor0
----
3118
6498
713

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL + 22 * + + COUNT( * ) FROM tab0 WHERE - - col0 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + 22 * + + COUNT ( * ) FROM tab0 WHERE - - col0 IS NOT NULL
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT ALL 21 AS col1, COUNT( * ) FROM tab1
----
21
3

skipif mysql # not compatible
query II rowsort label-4295
SELECT ALL 21 AS col1, COUNT ( * ) FROM tab1
----
21
3

query II rowsort
SELECT + col2 + - - 57 + + col0 * ( - col1 ) + - col1 + - 50 * col0 AS col1, col1 FROM tab2 AS cor0
----
-4617
51
-8108
77
-8727
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4297
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT + 8 + - col2 AS col2 FROM tab2
----
-15
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + COUNT( * ) + - + 58 * - COUNT( * ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-4299
SELECT + COUNT ( * ) + - + 58 * - COUNT ( * ) FROM tab0
----
177

onlyif mysql # DIV for integer division: 
query II rowsort label-4300
SELECT col2 * col1, + col2 DIV + 17 AS col0 FROM tab2
----
1173
1
3080
2
3886
3

skipif mysql # not compatible
query II rowsort label-4300
SELECT col2 * col1, + col2 / + 17 AS col0 FROM tab2
----
1173
1
3080
2
3886
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT SUM( ALL - 20 ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-4301
SELECT SUM ( ALL - 20 ) FROM tab0
----
-60

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT + 23 + col2 IS NOT NULL
----

query I rowsort
SELECT ( - - 50 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL - COUNT( * ) - + + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE + 95 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - COUNT ( * ) - + + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE + 95 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 58 <= - 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 25 * col2 AS col2 FROM tab1 AS cor0
----
1475
1700
2400

query I rowsort
SELECT 83 * - - col1 AS col2 FROM tab1
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT 31 * - + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-4308
SELECT 31 * - + COUNT ( * ) FROM tab0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT ALL 9 DIV - 65 * + COUNT( DISTINCT + 18 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL 9 / - 65 * + COUNT ( DISTINCT + 18 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, - 71 AS col0 FROM tab2 AS cor0
----
23
-71
40
-71
58
-71

query I rowsort
SELECT - - col2 * + col2 + - col1 * col0 - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-1737
947
9605

query I rowsort
SELECT DISTINCT - + 70 AS col1 FROM tab1 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL - SUM( 14 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - SUM ( 14 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 26 ) * + col2 + + + col2 + - 12 col2 FROM tab1
----
1581
1824
2580

query II rowsort
SELECT col1, - ( col2 ) FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT - col1 + + col0 - - col2 AS col2 FROM tab1
----
112
133
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT COUNT( * ) * - ( + 82 ) AS col0 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-4317
SELECT COUNT ( * ) * - ( + 82 ) AS col0 FROM tab1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ( + - MIN( DISTINCT col1 ) ) * + - 88 AS col0 FROM tab2
----
4488

skipif mysql # not compatible
query I rowsort label-4318
SELECT ( + - MIN ( DISTINCT col1 ) ) * + - 88 AS col0 FROM tab2
----
4488

query II rowsort
SELECT ALL + col1, col2 + + col1 FROM tab0
----
1
100
21
31
81
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT 69 * MAX( + - 28 ) * - - COUNT( 42 ) FROM tab0
----
-5796

skipif mysql # not compatible
query I rowsort label-4320
SELECT 69 * MAX ( + - 28 ) * - - COUNT ( 42 ) FROM tab0
----
-5796

query I rowsort
SELECT ALL - 20 * - + ( - col0 ) FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT + col1 DIV 56 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4322
SELECT + col1 / 56 AS col0 FROM tab0 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT + col1, col0 * col0 AS col2 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL - COUNT( * ) * + 12 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - COUNT ( * ) * + 12 FROM tab0
----
-36

query II rowsort
SELECT DISTINCT + 67 - 68 AS col0, col1 FROM tab1 cor0
----
-1
14
-1
47
-1
5

query I rowsort
SELECT - ( - - col1 ) - - 43 AS col0 FROM tab1 cor0
----
-4
29
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 27 + + col2 BETWEEN + - 84 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT - + col2 - - CAST( NULL AS SIGNED ) * - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT - + col2 - - CAST ( NULL AS INTEGER ) * - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - 5 AS col0 FROM tab2 AS cor0
----
-41
-59
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST( - + col0 AS SIGNED ) <> - 68
----

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( - + col0 AS INTEGER ) <> - 68
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 AS col1 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT ALL - COUNT( * ) col0, 74 FROM tab1
----
-3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4332
SELECT ALL - COUNT ( * ) col0, 74 FROM tab1
----
-3
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, + 0 AS col2 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query II rowsort
SELECT DISTINCT + col1 * - - col1 AS col0, col2 + - 99 FROM tab1
----
196
-3
2209
-31
25
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col2 FROM tab1
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + COUNT( + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4336
SELECT + COUNT ( + col0 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT - + col0 DIV + col2 + + col2 * - col1 * - - 85 col0 FROM tab0 cor0
----
-17858
-323595
-8415

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4337
SELECT - + col0 / + col2 + + col2 * - col1 * - - 85 col0 FROM tab0 cor0
----
-17858
-323595
-8415

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - COUNT( DISTINCT col2 ) + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - COUNT ( DISTINCT col2 ) + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4340
SELECT col2 * - 66 AS col0, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-1518
NULL
-2640
NULL
-3828
NULL

skipif mysql # not compatible
query II rowsort label-4340
SELECT col2 * - 66 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-1518
NULL
-2640
NULL
-3828
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 22 * + col0 BETWEEN - col0 / - ( - 43 ) * col1 * + - col0 + - col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT + ( - + CAST( - 48 AS SIGNED ) ) + - col1 AS col2 FROM tab1 WHERE - 11 IS NOT NULL
----
1
34
43

skipif mysql # not compatible
query I rowsort label-4343
SELECT + ( - + CAST ( - 48 AS INTEGER ) ) + - col1 AS col2 FROM tab1 WHERE - 11 IS NOT NULL
----
1
34
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT col0 / CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT col0 / CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 FROM tab1 WHERE ( NULL <= ( NULL ) )
----

query I rowsort
SELECT ALL + 6 * + - ( + col0 ) * + col1 - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-14150
-29685
-30275

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col0 ) < 56 * col1 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + - MAX( col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4348
SELECT + - MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col2 * - 13 FROM tab1 AS cor0
----
-1248
-767
-884

query I rowsort
SELECT ALL - ( 15 ) * - col2 FROM tab0 AS cor0
----
1485
150
705

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND - col2 * - + 49 * ( col0 ) + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT ALL col2 / + 28 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL col2 / + 28 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 76 - - 45 AS col2 FROM tab2
----
-3451
-4819
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT - SUM( - - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - SUM ( - - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - - COUNT( DISTINCT + col2 ) + - + SUM( DISTINCT + 97 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4355
SELECT - - COUNT ( DISTINCT + col2 ) + - + SUM ( DISTINCT + 97 ) FROM tab2 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query III rowsort label-4356
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 DIV - 85 NOT IN ( - 93, col0, + - col2, + 92 - - + col2, - col1, - - col1 - col1 )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-4356
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - 85 NOT IN ( - 93, col0, + - col2, + 92 - - + col2, - col1, - - col1 - col1 )
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT 46 AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4357
SELECT 46 AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT + 28 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4358
SELECT + 28 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 * - - 22 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT MIN( + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4360
SELECT MIN ( + + col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - + COUNT( * ) * + 88 FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-4361
SELECT - + COUNT ( * ) * + 88 FROM tab2 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL COUNT( ALL 70 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL COUNT ( ALL 70 ) FROM tab2
----
3

query I rowsort
SELECT ALL + col2 * + col2 + 41 + + 86 - + + col0 + - col2 * + col2 AS col1 FROM tab1
----
36
42
76

query I rowsort
SELECT + 82 FROM tab0 AS cor0 WHERE NULL IS NULL
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab2
----
45
45
45

query I rowsort
SELECT ALL - col1 * + 37 AS col2 FROM tab1
----
-1739
-185
-518

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + - ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT + - 4 * - SUM( DISTINCT + col2 ) FROM tab0 cor0
----
624

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT + - 4 * - SUM ( DISTINCT + col2 ) FROM tab0 cor0
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT + MAX( ALL - col0 ) + - 58 col1 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4369
SELECT + MAX ( ALL - col0 ) + - 58 col1 FROM tab2 AS cor0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT + MIN( - 61 ) AS col2 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + MIN ( - 61 ) AS col2 FROM tab1 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL + COUNT( col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + COUNT ( col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4372
SELECT ALL col2 + + 45 + + + col1 * + + CAST( NULL AS SIGNED ) * - - col0, + 2 DIV 43 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-4372
SELECT ALL col2 + + 45 + + + col1 * + + CAST ( NULL AS INTEGER ) * - - col0, + 2 / 43 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT col0 + + + col2 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / col2 = + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 97 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + col1 * + - 20 AS col2 FROM tab1 AS cor0
----
-100
-280
-940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4377
SELECT ALL 21 DIV SUM( col1 ) * 65 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL 21 / SUM ( col1 ) * 65 FROM tab0 cor0
----
0

query I rowsort
SELECT + col1 * + col1 + + col0 * + col0 FROM tab1 AS cor0
----
10490
2797
7250

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) + - - 23 / + 39 AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT DISTINCT + SUM( ALL col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + SUM ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 33 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <= - col2 + + 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT COUNT( ALL + col0 ) + + 89 FROM tab0 WHERE NOT col1 < - 16 * + col1 - + col1
----
92

skipif mysql # not compatible
query I rowsort label-4384
SELECT COUNT ( ALL + col0 ) + + 89 FROM tab0 WHERE NOT col1 < - 16 * + col1 - + col1
----
92

query II rowsort
SELECT col0, + ( + 22 ) AS col0 FROM tab1
----
51
22
85
22
91
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT + ( + MAX( + col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + ( + MAX ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 20 = 90
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 + 65 + + - ( + col1 ) col0 FROM tab2 cor0
----
1187
3068
3884

onlyif mysql # DIV for integer division: 
query II rowsort label-4389
SELECT DISTINCT + col2 AS col2, col2 + 8 DIV + + col1 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
107

skipif mysql # not compatible
query II rowsort label-4389
SELECT DISTINCT + col2 AS col2, col2 + 8 / + + col1 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
107

query II rowsort
SELECT + - 20 AS col2, ( - col1 ) FROM tab1 AS cor0
----
-20
-14
-20
-47
-20
-5

query I rowsort
SELECT DISTINCT + ( - - ( 69 ) ) FROM tab0
----
69

query I rowsort
SELECT - + col2 * - - 43 + - col1 AS col2 FROM tab0 AS cor0
----
-2102
-4258
-451

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 99 + - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - + 21 * + - 21 + - col1 AS col1 FROM tab2 AS cor0
----
20235
28147
33008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT CAST( + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT COUNT( * ) + + - 12 * - 85 + + - ( + 99 ) FROM tab2
----
924

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT COUNT ( * ) + + - 12 * - 85 + + - ( + 99 ) FROM tab2
----
924

query I rowsort
SELECT col2 * - 37 + - col2 + - col0 AS col1 FROM tab1
----
-2327
-2675
-3699

query I rowsort
SELECT DISTINCT - 43 + - 43 AS col0 FROM tab1
----
-86

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + 35 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ( ( - col0 ) ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4402
SELECT ( 46 ) DIV col0 * - col2 FROM tab0
----
-141
0
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT ( 46 ) / col0 * - col2 FROM tab0
----
-141
0
0

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( NULL <> col0 )
----

query I rowsort
SELECT ALL + 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + - 90 * - + MIN( DISTINCT + col1 ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4590

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4405
SELECT + - 90 * - + MIN ( DISTINCT + col1 ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT DISTINCT - - ( + COUNT( * ) ) DIV + + 55 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT - - ( + COUNT ( * ) ) / + + 55 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < - - 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col1 col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 4 * 24 * 42 FROM tab1
----
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL MIN( DISTINCT + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL MIN ( DISTINCT + col0 ) FROM tab1
----
51

query I rowsort
SELECT col2 * + col2 * + - ( - col2 ) FROM tab1
----
205379
314432
884736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT col0 * 4 / - ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4413
SELECT DISTINCT col0 * 4 / - ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT + 0 * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + 0 * + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT + ( col0 ) DIV - - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4416
SELECT + ( col0 ) / - - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( + 25 ) AS col2 FROM tab0 AS cor0
----
25

query II rowsort
SELECT - col2 AS col1, col1 + ( - col1 ) + + col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ( + ( + col2 ) ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT 75 + - col0 - col2 AS col1 FROM tab2
----
-29
-58
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 31 + + - ( col1 ) FROM tab0
----
-50
10
30

query I rowsort
SELECT DISTINCT col0 + + 33 AS col0 FROM tab0
----
120
130
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL + MIN( col1 ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + MIN ( col1 ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 * + - col2 IS NULL
----

query II rowsort
SELECT ALL col1, col2 * + - col2 * - 33 AS col1 FROM tab0 cor0
----
1
323433
21
3300
81
72897

query II rowsort
SELECT ALL + 77 + + + col1 + - - col0 * + + col2 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
1186
23
2714
40
4494
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col2, + 4 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT MIN( - 92 ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-4430
SELECT MIN ( - 92 ) FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL + MIN( ALL - col2 ) FROM tab2 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + MIN ( ALL - col2 ) FROM tab2 WHERE NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL MIN( - - 45 ) + - - 28 + - - COUNT( * ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL MIN ( - - 45 ) + - - 28 + - - COUNT ( * ) FROM tab0
----
76

query II rowsort
SELECT ALL + col1 + col1, col0 AS col0 FROM tab2
----
102
46
134
75
154
64

query I rowsort
SELECT + col2 - - ( - col1 ) AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT - - col0 AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) - + ( - col0 ) + + 7 BETWEEN + col0 - + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4435
SELECT - - col0 AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - + ( - col0 ) + + 7 BETWEEN + col0 - + col0 AND NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT - COUNT( * ) + 56 AS col2 FROM tab0 cor0
----
53

skipif mysql # not compatible
query I rowsort label-4437
SELECT - COUNT ( * ) + 56 AS col2 FROM tab0 cor0
----
53

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + - 67 < NULL
----

query I rowsort
SELECT - + col0 * 20 + + col1 AS col0 FROM tab2 AS cor0
----
-1203
-1433
-869

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT - MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4441
SELECT - MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT + COUNT( * ) AS col1, + 39 FROM tab0 AS cor0
----
3
39

skipif mysql # not compatible
query II rowsort label-4442
SELECT + COUNT ( * ) AS col1, + 39 FROM tab0 AS cor0
----
3
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 6, 10 + - - col2 - + col0 col1 FROM tab2 AS cor0
----
6
-13
6
-14
6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + - COUNT( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4444
SELECT + - COUNT ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + + COUNT( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4445
SELECT + + COUNT ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 * - 88 AS col1 FROM tab1 cor0
----
5192
5984
8448

query II rowsort
SELECT - col1 AS col2, col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - + col0 * - - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - COUNT( * ) * - 36 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - COUNT ( * ) * - 36 FROM tab0 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT ( 97 ) * + COUNT( - col2 ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT ( 97 ) * + COUNT ( - col2 ) FROM tab2
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT ALL 86 DIV + - 4 AS col0 FROM tab2
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL 86 / + - 4 AS col0 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT ALL - col2 + + - col1 + - col2 AS col1 FROM tab2
----
-157
-183
-97

query I rowsort
SELECT DISTINCT 84 * col2 FROM tab0
----
3948
8316
840

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT col1 DIV + col2 + col2 FROM tab2
----
25
41
59

skipif mysql # not compatible
query I rowsort label-4454
SELECT col1 / + col2 + col2 FROM tab2
----
25
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4455
SELECT col0 * + col2 + - col0 DIV - col0 FROM tab0 AS cor0
----
706
871
9604

skipif mysql # not compatible
query I rowsort label-4455
SELECT col0 * + col2 + - col0 / - col0 FROM tab0 AS cor0
----
706
871
9604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT + + COUNT( - + col0 ) - + 9 + - - SUM( DISTINCT + col1 ) DIV - 53 FROM tab0 AS cor0 WHERE - 4 <= - - col2 DIV - 1 - - col1
----
-8

skipif mysql # not compatible
query I rowsort label-4456
SELECT + + COUNT ( - + col0 ) - + 9 + - - SUM ( DISTINCT + col1 ) / - 53 FROM tab0 AS cor0 WHERE - 4 <= - - col2 / - 1 - - col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - MIN( ALL col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4457
SELECT - MIN ( ALL col2 ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - + col0 - - col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4459
SELECT + 50 + + ( COUNT( * ) ) * + 76 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT + 50 + + ( COUNT ( * ) ) * + 76 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT SUM( ALL + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT SUM ( ALL + + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 91 col2 FROM tab2 AS cor0
----
137
155
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + - + 12 col2 FROM tab1 AS cor0
----
413
4265
702

query I rowsort
SELECT - + 2 * + - 63 + - + ( - 80 ) AS col2 FROM tab0 AS cor0
----
206
206
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT - 80 AS col2 FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS SIGNED ) * - + col1
----

skipif mysql # not compatible
query I rowsort label-4464
SELECT - 80 AS col2 FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER ) * - + col1
----

query II rowsort
SELECT ALL - col1 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT 15 + + col0 AS col0, - col2 * 82 FROM tab0
----
102
-820
112
-8118
30
-3854

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT - COUNT( * ), 44 AS col0 FROM tab0
----
-3
44

skipif mysql # not compatible
query II rowsort label-4467
SELECT - COUNT ( * ), 44 AS col0 FROM tab0
----
-3
44

query II rowsort
SELECT - col0 AS col0, - 7 FROM tab2
----
-46
-7
-64
-7
-75
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT DISTINCT col1 / + col1 + - col2 / + + CAST( NULL AS SIGNED ) * + - col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT col1 / + col1 + - col2 / + + CAST ( NULL AS INTEGER ) * + - col0 col0 FROM tab2
----
NULL

query II rowsort
SELECT - col1, - col2 AS col1 FROM tab2
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT ALL ( + 35 ) + + + col1 - - 18 FROM tab1
----
100
58
67

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 + - col1 + ( + + col2 ) <> - + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT + MAX( - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + MAX ( - col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT + col2 * 83 DIV + col1 col0 FROM tab1
----
120
569
979

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4474
SELECT + col2 * 83 / + col1 col0 FROM tab1
----
120
569
979

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL MIN( 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL MIN ( 57 ) FROM tab1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 90 * 65 col1, col0 * col2 col1 FROM tab2 AS cor0
----
5850
1058
5850
2560
5850
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 / - + col1 >= - col2
----

query I rowsort
SELECT - - col1 + col1 FROM tab0 cor0 WHERE NOT - col1 = + col2 / - 15
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4479
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - - col2 AND CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4479
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN - - col2 AND CAST ( - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT + + CAST( - + 58 AS SIGNED ) FROM tab0 cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-4480
SELECT + + CAST ( - + 58 AS INTEGER ) FROM tab0 cor0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col2 NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL COUNT( * ) + - COUNT( + - col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL COUNT ( * ) + - COUNT ( + - col1 ) AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 AS col0, + col1 * - col2 col0 FROM tab1
----
95
-1344
95
-295
95
-3196

query I rowsort
SELECT - col2 * 43 AS col1 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT + ( + + col1 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + - col0 - + - 70 * + col1 FROM tab2
----
3478
4540
5262

query I rowsort
SELECT ALL 45 FROM tab2 cor0
----
45
45
45

query I rowsort
SELECT - 80 AS col1 FROM tab2 cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT - - CAST( + + 47 AS SIGNED ) + + - col1 * col2 FROM tab0 AS cor0
----
-163
-3760
-52

skipif mysql # not compatible
query I rowsort label-4490
SELECT - - CAST ( + + 47 AS INTEGER ) + + - col1 * col2 FROM tab0 AS cor0
----
-163
-3760
-52

query I rowsort
SELECT DISTINCT col0 - col2 FROM tab1 WHERE NULL NOT BETWEEN 95 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 75 col1 FROM tab2
----
-3450
-4800
-5625

query I rowsort
SELECT col0 - 43 * - col0 FROM tab0
----
3828
4268
660

query I rowsort
SELECT col2 + col2 FROM tab1 WHERE + 80 <> ( - 38 )
----
118
136
192

query I rowsort
SELECT ALL + col0 * 42 FROM tab0
----
3654
4074
630

query III rowsort
SELECT * FROM tab0 WHERE + col2 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 47 * col1 + + 59 FROM tab1
----
2268
294
717

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT - COUNT( * ) + + ( + 37 - - 68 ) AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4498
SELECT - COUNT ( * ) + + ( + 37 - - 68 ) AS col2 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT - 40 * + COUNT( * ) AS col2 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-4499
SELECT - 40 * + COUNT ( * ) AS col2 FROM tab2
----
-120

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT + col2 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT COUNT( DISTINCT - 25 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4501
SELECT COUNT ( DISTINCT - 25 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 - 25 ) NOT BETWEEN ( NULL ) AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT - 36 FROM tab0 WHERE ( 6 * 20 ) IN ( - CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query I rowsort label-4504
SELECT - 36 FROM tab0 WHERE ( 6 * 20 ) IN ( - CAST ( NULL AS INTEGER ) + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + SUM( ALL - col0 ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + SUM ( ALL - col0 ) AS col2 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 19 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 34 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 83 - 91 FROM tab0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT col2 + - 13 FROM tab2
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT COUNT( * ) col1 FROM tab2 WHERE NOT col2 * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4510
SELECT COUNT ( * ) col1 FROM tab2 WHERE NOT col2 * - col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT + ( - 32 ) DIV + 3 AS col0 FROM tab0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4511
SELECT + ( - 32 ) / + 3 AS col0 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + 0 + - col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - ( + 39 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 16 ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) <> ( + 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT COUNT( * ) + - 91 col0 FROM tab2
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4516
SELECT COUNT ( * ) + - 91 col0 FROM tab2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT - CAST( 99 AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4517
SELECT - CAST ( 99 AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0
----
-96

query I rowsort
SELECT ALL + ( - 81 ) * + col2 AS col0 FROM tab0 AS cor0
----
-3807
-8019
-810

query I rowsort
SELECT 81 * col2 AS col0 FROM tab0 AS cor0
----
3807
8019
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT DISTINCT SUM( DISTINCT + 51 ) DIV 28 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT SUM ( DISTINCT + 51 ) / 28 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 33 * 78 FROM tab0 AS cor0
----
2574
2574
2574

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 76 + 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 91 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 88 + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - 59 FROM tab1
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) = col1 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 72 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 * - 96 FROM tab2 AS cor0
----
-4416
-6144
-7200

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4531
SELECT + 20 DIV + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT + 20 / + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - 23 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4532
SELECT - 23 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL + SUM( 26 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL + SUM ( 26 ) FROM tab0 AS cor0
----
78

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE 86 * + 1 NOT BETWEEN ( NULL ) AND ( + 55 )
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 5 ) col2 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT ( - 43 ) FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col1 + - 15
----

query I rowsort
SELECT ALL - col1 * 33 FROM tab0 AS cor0
----
-2673
-33
-693

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 94 - - col1 * col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( col1 ) IS NULL
----
0

query I rowsort
SELECT - col2 * - 26 FROM tab1 WHERE NOT col0 + + col2 * + col0 IS NULL
----
1534
1768
2496

query I rowsort
SELECT + col1 * - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT - col1 * + 51 AS col0 FROM tab1 WHERE NULL = + col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT CAST( NULL AS SIGNED ) + - ( - 71 ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT CAST ( NULL AS INTEGER ) + - ( - 71 ) / col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT - 13 DIV 67 + - col1 + col1 * + 80 FROM tab0 AS cor0
----
1659
6399
79

skipif mysql # not compatible
query I rowsort label-4545
SELECT - 13 / 67 + - col1 + col1 * + 80 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT - col0 * col2 - col2 AS col0 FROM tab2 AS cor0 WHERE col2 BETWEEN 52 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 49 * - - col1 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4550
SELECT DISTINCT COUNT( ALL CAST( NULL AS SIGNED ) ) col1 FROM tab0, tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4550
SELECT DISTINCT COUNT ( ALL CAST ( NULL AS INTEGER ) ) col1 FROM tab0, tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( + - col0 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - + 86 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT + COUNT( ALL - 29 ) + - 20 AS col1 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4553
SELECT + COUNT ( ALL - 29 ) + - 20 AS col1 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT + - 24 + - col1 FROM tab0 AS cor0
----
-105
-25
-45

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( - col1 - col0 * 50 )
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT 88 + ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT 88 + ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 3 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT MAX( DISTINCT + + 43 ) DIV + 84 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT MAX ( DISTINCT + + 43 ) / + 84 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT col2 FROM tab1 AS cor0 WHERE + CAST( - - col0 AS SIGNED ) + 31 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4560
SELECT col2 FROM tab1 AS cor0 WHERE + CAST ( - - col0 AS INTEGER ) + 31 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 90 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + + col2 col2 FROM tab0 AS cor0 WHERE - 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4564
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT - col1 * - + 58 + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT 54 * + - ( COUNT( * ) ) * - SUM( DISTINCT + col2 ) * - 62 - 48 AS col1 FROM tab0
----
-1566912

skipif mysql # not compatible
query I rowsort label-4566
SELECT 54 * + - ( COUNT ( * ) ) * - SUM ( DISTINCT + col2 ) * - 62 - 48 AS col1 FROM tab0
----
-1566912

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT 81 > col1 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT 81 > col1 * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT 72 * - COUNT( * ) AS col2 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-4568
SELECT 72 * - COUNT ( * ) AS col2 FROM tab1
----
-216

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 > NULL
----

query I rowsort
SELECT DISTINCT 97 * - - col1 FROM tab2
----
4947
6499
7469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT 95 DIV + + COUNT( + col2 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4571
SELECT 95 / + + COUNT ( + col2 ) FROM tab2
----
31

query I rowsort
SELECT DISTINCT 71 + col1 FROM tab0 WHERE NOT ( + col1 - 68 + col2 * 36 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - - ( + - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT DISTINCT + 33 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + 33 / + col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT + col1 * - + 90 * ( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT + col1 * - + 90 * ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4576
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col1 AND ( + col1 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4576
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - col1 AND ( + col1 - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4577
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 WHERE + col0 <= ( - CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 WHERE + col0 <= ( - CAST ( NULL AS INTEGER ) + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 31 col2 FROM tab0 AS cor0
----
1457
3069
310

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 30
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL >= ( + col0 + - - 71 )
----

query I rowsort
SELECT DISTINCT ( - - col0 ) + - col0 FROM tab1 WHERE col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT - 13 * + CAST( - 72 AS SIGNED ) + 33 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
969

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4582
SELECT DISTINCT - 13 * + CAST ( - 72 AS INTEGER ) + 33 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT 40 + - MIN( - + 67 ) AS col0 FROM tab1
----
107

skipif mysql # not compatible
query I rowsort label-4583
SELECT 40 + - MIN ( - + 67 ) AS col0 FROM tab1
----
107

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 * + 87 * - ( + 16 ) ) <> 72 / + 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - SUM( ALL col1 ) * 69 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT - SUM ( ALL col1 ) * 69 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT ALL MAX( ALL + + ( + col1 ) ) DIV + - COUNT( * ) - + SUM( ALL + 6 ) AS col0 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL MAX ( ALL + + ( + col1 ) ) / + - COUNT ( * ) - + SUM ( ALL + 6 ) AS col0 FROM tab2 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT - SUM( + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - SUM ( + col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 37 * - col0
----

query I rowsort
SELECT DISTINCT + - 76 AS col2 FROM tab1 cor0
----
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 * + 29 - + col0 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 65 + - col2 * + + col2 FROM tab0
----
-165
-2274
-9866

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT - 32 + - COUNT( * ) + ( - SUM( DISTINCT + + col0 ) ) FROM tab2
----
-220

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT - 32 + - COUNT ( * ) + ( - SUM ( DISTINCT + + col0 ) ) FROM tab2
----
-220

query II rowsort
SELECT + col0 AS col0, 50 * col1 FROM tab2
----
46
2550
64
3850
75
3350

query II rowsort
SELECT 93, col0 AS col2 FROM tab0
----
93
15
93
87
93
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT 62, + COUNT( * ) AS col1 FROM tab1
----
62
3

skipif mysql # not compatible
query II rowsort label-4595
SELECT 62, + COUNT ( * ) AS col1 FROM tab1
----
62
3

query I rowsort
SELECT DISTINCT - 70 + + - col0 * - - 78 FROM tab0
----
-1240
-6856
-7636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4597
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST( + col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( + col0 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4598
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-4598
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
-5

query I rowsort
SELECT - 27 + col1 FROM tab2 AS cor0
----
24
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4600
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4602
SELECT * FROM tab2 AS cor0 WHERE - CAST( + - 59 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4602
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + - 59 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col0 - + 49 + 16 * - - ( 17 ) * col0 IN ( - 20 / col1 + col1 )
----

query I rowsort
SELECT DISTINCT + + col2 * - 17 - + - col2 AS col1 FROM tab2 AS cor0
----
-368
-640
-928

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 25 NOT IN ( - + col0, ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT DISTINCT - COUNT( * ) AS col0, 57 AS col1 FROM tab0
----
-3
57

skipif mysql # not compatible
query II rowsort label-4606
SELECT DISTINCT - COUNT ( * ) AS col0, 57 AS col1 FROM tab0
----
-3
57

query I rowsort
SELECT DISTINCT - 99 * + col0 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT - 22 * + - col0 AS col0 FROM tab2
----
1012
1408
1650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 col2 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT ALL col1 * + - 50 * - 13 AS col1 FROM tab1
----
30550
3250
9100

query II rowsort
SELECT + - col2 + - - col2 AS col0, + 49 + - 37 / - col0 FROM tab1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT + col2 * + ( - col0 ), + 13 AS col2 FROM tab0
----
-705
13
-870
13
-9603
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * + col0 col0 FROM tab1
----
255
425
455

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) <= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT ALL + 72 DIV + SUM( - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL + 72 / + SUM ( - col2 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 37 * - col2 AS col1 FROM tab2
----
1480
2146
851

query I rowsort
SELECT ALL - 4 * 4 * + + col1 * + 5 AS col1 FROM tab2
----
-4080
-5360
-6160

query II rowsort
SELECT ALL + col1 AS col1, - ( + - col1 ) FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + - MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4619
SELECT + - MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT ALL - col2, 49 AS col2 FROM tab2 AS cor0
----
-23
49
-40
49
-58
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - - COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4622
SELECT - - COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 42 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4624
SELECT - + ( + CAST( NULL AS SIGNED ) ) AS col1, ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4624
SELECT - + ( + CAST ( NULL AS INTEGER ) ) AS col1, ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT + col0 * - ( + 36 ) AS col2 FROM tab2 AS cor0
----
-1656
-2304
-2700

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT ( + col1 ) IS NULL
----
59
68
96

query I rowsort
SELECT 92 * + col2 AS col0 FROM tab0 AS cor0
----
4324
9108
920

query I rowsort
SELECT + 91 AS col2 FROM tab1 AS cor0 WHERE + 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT + - MAX( 54 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4629
SELECT + - MAX ( 54 ) FROM tab0 AS cor0
----
-54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 81 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 73 + + 1, - 69 * - col2 * col0 + + col1 - - 35 AS col1 FROM tab2 AS cor0
----
74
176752
74
300252
74
73088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT col1 * col2 + CAST( NULL AS SIGNED ) * - 50 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT col1 * col2 + CAST ( NULL AS INTEGER ) * - 50 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT DISTINCT + MAX( ALL - + col0 ) DIV + COUNT( * ) - + - 97 + + COUNT( * ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT + MAX ( ALL - + col0 ) / + COUNT ( * ) - + - 97 + + COUNT ( * ) FROM tab1
----
83

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col1 BETWEEN col1 + - - col2 AND - 43
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT DISTINCT COUNT( * ) DIV + 91 + + 36 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT COUNT ( * ) / + 91 + + 36 FROM tab2
----
36

query I rowsort
SELECT 55 + + col0 FROM tab2
----
101
119
130

query I rowsort
SELECT ALL - 4 + - col2 AS col2 FROM tab1
----
-100
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + + COUNT( + 21 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4638
SELECT + + COUNT ( + 21 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 * + 22 + ( - col2 ) FROM tab0 AS cor0
----
-77
1735
452

query I rowsort
SELECT ALL 14 - col2 AS col0 FROM tab2 AS cor0
----
-26
-44
-9

query II rowsort
SELECT ALL col1 AS col0, 74 - + - col2 AS col1 FROM tab2
----
51
97
67
132
77
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT 16 + COUNT( * ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT 16 + COUNT ( * ) AS col0 FROM tab1
----
19

query I rowsort
SELECT col2 - - 11 AS col0 FROM tab2
----
34
51
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL COUNT( * ) AS col2 FROM tab0 cor0 WHERE - col1 * 8 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - col1 * 8 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE + col1 * + + col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + - 66 AS col0 FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT - 18 AS col1 FROM tab2 AS cor0 WHERE NOT ( 39 ) = ( NULL )
----

query II rowsort
SELECT ALL - 2, + 92 AS col1 FROM tab1 AS cor0
----
-2
92
-2
92
-2
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col1 FROM tab1
----
59
68
96

query I rowsort
SELECT + 70 * - - col1 * + col1 FROM tab1
----
13720
154630
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT + COUNT( * ) * 96 * - 55 FROM tab0
----
-15840

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT + COUNT ( * ) * 96 * - 55 FROM tab0
----
-15840

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL - MAX( col1 ) FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-77

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - MAX ( col1 ) FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-77

query I rowsort
SELECT + col2 + col2 * - + col0 * 38 AS col0 FROM tab0 WHERE NOT - + col0 <= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT + ( - - col1 ) DIV - + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT + ( - - col1 ) / - + col0 FROM tab2
----
-1
-1
0

query II rowsort
SELECT DISTINCT + 43 * + col0, + col1 FROM tab1
----
2193
14
3655
5
3913
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT - 4 * ( CAST( + 25 AS SIGNED ) ) FROM tab1
----
-100
-100
-100

skipif mysql # not compatible
query I rowsort label-4657
SELECT - 4 * ( CAST ( + 25 AS INTEGER ) ) FROM tab1
----
-100
-100
-100

query I rowsort
SELECT ALL - 92 AS col2 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT ALL + col1 * + col1 + + - col0 AS col0 FROM tab2 cor0
----
2555
4414
5865

query I rowsort
SELECT col0 - - - 9 - - 60 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT COUNT( * ), + COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4662
SELECT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0
----
3
3

query I rowsort
SELECT + col2 * - + col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - MAX( DISTINCT + col0 ) + SUM( + - 62 ) col0 FROM tab0
----
-283

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4664
SELECT ALL - MAX ( DISTINCT + col0 ) + SUM ( + - 62 ) col0 FROM tab0
----
-283

query I rowsort
SELECT DISTINCT - col1 * + col1 * - ( + + col1 ) AS col1 FROM tab1
----
103823
125
2744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4666
SELECT DISTINCT + - col0 AS col0, - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4666
SELECT DISTINCT + - col0 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4667
SELECT ALL - col2 AS col0, + col1 DIV 10 FROM tab0 cor0
----
-10
2
-47
8
-99
0

skipif mysql # not compatible
query II rowsort label-4667
SELECT ALL - col2 AS col0, + col1 / 10 FROM tab0 cor0
----
-10
2
-47
8
-99
0

query I rowsort
SELECT ALL col0 + 74 AS col1 FROM tab1 AS cor0
----
125
159
165

query I rowsort
SELECT + 38 * - col2 AS col2 FROM tab2 AS cor0
----
-1520
-2204
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT - + 54 + - MAX( ALL 51 ) AS col1 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT - + 54 + - MAX ( ALL 51 ) AS col1 FROM tab0 AS cor0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 37 + col2 AS col1, + col0 * + 24 col1 FROM tab2
----
-14
1104
21
1800
3
1536

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 70 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ( COUNT( + 62 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4673
SELECT ( COUNT ( + 62 ) ) FROM tab2
----
3

query I rowsort
SELECT - col2 - - 40 FROM tab2
----
-18
0
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 IS NULL AND NOT + 66 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4677
SELECT ( - 70 ) * COUNT( * ) + 46 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ( - 70 ) * COUNT ( * ) + 46 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + 56, - col1 AS col0 FROM tab2 cor0
----
56
-51
56
-67
56
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( - col2 ) AND 30
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT COUNT( DISTINCT + CAST( 84 AS SIGNED ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4680
SELECT COUNT ( DISTINCT + CAST ( 84 AS INTEGER ) ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4681
SELECT DISTINCT - 56 * 27 + 58 + - + MIN( + col0 ) + + + COUNT( - - ( + - ( - col2 ) ) ) AS col0 FROM tab1 AS cor0 WHERE - CAST( - 38 AS DECIMAL ) * - col2 + + + col2 + - col1 IS NOT NULL
----
-1502

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - 56 * 27 + 58 + - + MIN ( + col0 ) + + + COUNT ( - - ( + - ( - col2 ) ) ) AS col0 FROM tab1 AS cor0 WHERE - CAST ( - 38 AS REAL ) * - col2 + + + col2 + - col1 IS NOT NULL
----
-1502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 10 * - col2 * + + col0 col2, col2 * + col2 FROM tab2 AS cor0
----
10580
529
25600
1600
43500
3364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4683
SELECT DISTINCT + 40 AS col2, + COUNT( * ) - - CAST( NULL AS SIGNED ) + + + AVG ( ALL col1 ) + - 4 * + + 81 FROM tab0 AS cor0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-4683
SELECT DISTINCT + 40 AS col2, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) + + + AVG ( ALL col1 ) + - 4 * + + 81 FROM tab0 AS cor0
----
40
NULL

query I rowsort
SELECT + + 90 + + 36 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * col0 IS NULL
----

query I rowsort
SELECT + ( - + col0 ) AS col0 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT ALL + col1 AS col2, - ( - 23 ) FROM tab0
----
1
23
21
23
81
23

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 64 IS NOT NULL
----

query I rowsort
SELECT col2 * - ( - col1 ) AS col0 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 56 * + + col0 AS col1 FROM tab2
----
2576
3584
4200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 19 + + - col0 col0 FROM tab2 AS cor0
----
-65
-83
-94

query II rowsort
SELECT + + 79 + + 42, ( - - 49 ) AS col2 FROM tab2 AS cor0
----
121
49
121
49
121
49

query II rowsort
SELECT ALL + - col1 AS col0, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - + col0 col0 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT + col1 + col1 + + col0 + + - col1 * + - 2 AS col1 FROM tab0 AS cor0
----
101
171
339

query I rowsort
SELECT DISTINCT - col0 * - 30 AS col1 FROM tab0 AS cor0
----
2610
2910
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT DISTINCT - 66 * - 4 * - - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
13464
22440
24024

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT - 66 * - 4 * - - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
13464
22440
24024

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT ALL + - col2 * - 85 + + col0 DIV + col1 FROM tab0 AS cor0
----
3995
8512
854

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + - col2 * - 85 + + col0 / + col1 FROM tab0 AS cor0
----
3995
8512
854

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT + - 1 + - MAX( - - col0 ) + - + SUM( DISTINCT + - col2 ) + 99 * - 36 FROM tab1 AS cor0
----
-3433

skipif mysql # not compatible
query I rowsort label-4700
SELECT + - 1 + - MAX ( - - col0 ) + - + SUM ( DISTINCT + - col2 ) + 99 * - 36 FROM tab1 AS cor0
----
-3433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + - col0 col2, - col1 * + + col0 * - 5 FROM tab1 cor0
----
-144
2125
-147
3570
-159
21385

query I rowsort
SELECT ALL + - col1 / - col2 FROM tab2 WHERE ( + col0 ) < ( NULL )
----

query I rowsort
SELECT - 60 + - col2 FROM tab1
----
-119
-128
-156

query I rowsort
SELECT DISTINCT - col0 - - + col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4705
SELECT ALL + COUNT( ALL - + col2 ) - - - COUNT( * ) AS col0, 20 FROM tab0
----
0
20

skipif mysql # not compatible
query II rowsort label-4705
SELECT ALL + COUNT ( ALL - + col2 ) - - - COUNT ( * ) AS col0, 20 FROM tab0
----
0
20

query I rowsort
SELECT DISTINCT 5 + + ( + col2 ) AS col2 FROM tab1
----
101
64
73

query III rowsort
SELECT * FROM tab1 WHERE - col2 = NULL
----

query I rowsort
SELECT ALL + col1 - + + col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - COUNT( - - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4709
SELECT - COUNT ( - - col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT DISTINCT - ( + + col2 ) DIV col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - ( + + col2 ) / col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT MAX( + + 81 ) AS col1 FROM tab2 AS cor0 WHERE NOT 30 IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-4711
SELECT MAX ( + + 81 ) AS col1 FROM tab2 AS cor0 WHERE NOT 30 IS NULL
----
81

query I rowsort
SELECT col2 * - + col1 * - col0 * col0 FROM tab0
----
1589490
856575
931491

query I rowsort
SELECT ALL 22 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL - 65 * + - col2 FROM tab2
----
1495
2600
3770

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 64 )
----

query I rowsort
SELECT - ( 28 ) AS col2 FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT + - MIN( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 97 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-4717
SELECT + - MIN ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 97 IS NULL
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 4 col0 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - ( + 73 ) - - 15 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT + MIN( DISTINCT 24 ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT + MIN ( DISTINCT 24 ) AS col0 FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + col2 col1 FROM tab1
----
4956
5712
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col1 FROM tab1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT DISTINCT col0 DIV + 75 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT col0 / + 75 AS col2 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT ALL - + COUNT( * ) col0, - COUNT( * ) FROM tab1 cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4723
SELECT ALL - + COUNT ( * ) col0, - COUNT ( * ) FROM tab1 cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT ALL + + CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4724
SELECT ALL + + CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT 52 + 93 FROM tab2 cor0
----
145
145
145

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT DISTINCT CAST( 47 AS SIGNED ) + col1 + - + 68 + + - ( + col2 ) * - - col2 FROM tab1
----
-3497
-4598
-9223

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT CAST ( 47 AS INTEGER ) + col1 + - + 68 + + - ( + col2 ) * - - col2 FROM tab1
----
-3497
-4598
-9223

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4728
SELECT + 25 / + 42 - + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE + 92 NOT BETWEEN NULL AND col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT + 25 / + 42 - + - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE + 92 NOT BETWEEN NULL AND col1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query II rowsort
SELECT - col0 * + col1, col1 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT DISTINCT - + col1 + - 82 FROM tab0 cor0
----
-103
-163
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT - ( + SUM( - col1 ) ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4732
SELECT - ( + SUM ( - col1 ) ) AS col1 FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT - COUNT( * ) DIV - SUM( - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT - COUNT ( * ) / - SUM ( - col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4734
SELECT DISTINCT + COUNT( ALL - CAST( NULL AS SIGNED ) ) + - + COUNT( 82 ) - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + - + COUNT ( 82 ) - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ( col0 ) * col1 * + - 4 + + 69 * + 51 - + col0 + - col1 FROM tab0
----
-1437
-3897
3033

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT - col2 DIV + col2 - + + ( 88 ) FROM tab2
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-4736
SELECT - col2 / + col2 - + + ( 88 ) FROM tab2
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - + 36 FROM tab2 AS cor0 WHERE 6 > + 18
----

query II rowsort
SELECT 68 * col1 * - - ( + col2 ), 9 * - + 33 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT col2 DIV + col1 + + 13 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT col2 / + col1 + + 13 FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT + - CAST( + 25 AS SIGNED ) * + 41 + + 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0041b9d75ee7cdf68153b36d64c39a4f

skipif mysql # not compatible
query I rowsort label-4740
SELECT + - CAST ( + 25 AS INTEGER ) * + 41 + + 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0041b9d75ee7cdf68153b36d64c39a4f

onlyif mysql # DIV for integer division: 
query II rowsort label-4741
SELECT ALL - col2 * + col0 DIV col0 AS col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

skipif mysql # not compatible
query II rowsort label-4741
SELECT ALL - col2 * + col0 / col0 AS col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT CAST( - - col2 AS SIGNED ) col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4742
SELECT CAST ( - - col2 AS INTEGER ) col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + + SUM( DISTINCT - - col2 ) / - 52 + + 62 AS col2 FROM tab1 AS cor0 WHERE NOT 62 * + 14 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT + + SUM ( DISTINCT - - col2 ) / - 52 + + 62 AS col2 FROM tab1 AS cor0 WHERE NOT 62 * + 14 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( + 50 ) FROM tab2 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4745
SELECT + ( + 9 ) DIV MAX( + CAST( - 78 AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4745
SELECT + ( + 9 ) / MAX ( + CAST ( - 78 AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-3

query II rowsort
SELECT ALL - ( col1 ) + + - col1 AS col2, + col1 * col1 FROM tab1 AS cor0
----
-10
25
-28
196
-94
2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT + col0 * + col1 + - 71 + - - col0 FROM tab1 WHERE NOT - - col0 + CAST( + col1 AS SIGNED ) > - - 39
----

skipif mysql # not compatible
query I rowsort label-4747
SELECT + col0 * + col1 + - 71 + - - col0 FROM tab1 WHERE NOT - - col0 + CAST ( + col1 AS INTEGER ) > - - 39
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + 11 AND NULL
----

query I rowsort
SELECT + col0 + - + col2 + + col2 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL >= - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4751
SELECT CAST( + + ( + 25 ) AS SIGNED ) + 11 AS col2, col2 AS col0 FROM tab1
----
36
59
36
68
36
96

skipif mysql # not compatible
query II rowsort label-4751
SELECT CAST ( + + ( + 25 ) AS INTEGER ) + 11 AS col2, col2 AS col0 FROM tab1
----
36
59
36
68
36
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ALL col2 DIV - + 6 FROM tab0
----
-1
-16
-7

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL col2 / - + 6 FROM tab0
----
-1
-16
-7

query II rowsort
SELECT + col1 + col2 AS col1, + ( + + col1 ) AS col1 FROM tab0 AS cor0
----
100
1
128
81
31
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 * col2, + col2 * col0 )
----

query I rowsort
SELECT DISTINCT + 37 + + 34 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ( + 78 ) AS col1 FROM tab2
----
78
78
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT - COUNT( DISTINCT - ( + 94 ) ) - + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT - COUNT ( DISTINCT - ( + 94 ) ) - + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ( - col2 ) - + - col0 * - col0 AS col2 FROM tab2
----
-2139
-4136
-5683

query I rowsort
SELECT + col1 + - 51 AS col2 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT ALL col0 + 43 FROM tab1 AS cor0
----
128
134
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT - - MIN( DISTINCT - + ( + col1 ) ) + COUNT( * ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4761
SELECT - - MIN ( DISTINCT - + ( + col1 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 * + ( + col0 ) + - col0 + col2 * - 37 + + 1 - + 80 * - - 67 + col2 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + 60 + COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 60 + COUNT ( * ) FROM tab1 AS cor0
----
63

query I rowsort
SELECT DISTINCT - ( + 64 ) FROM tab1 AS cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 99 <= NULL
----

query I rowsort
SELECT + - col2 FROM tab1 WHERE NULL > - - col0
----

query I rowsort
SELECT DISTINCT + col0 + 61 AS col1 FROM tab2
----
107
125
136

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL COUNT( DISTINCT + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL COUNT ( DISTINCT + col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 * + col2 FROM tab1 WHERE NOT 62 <= - col2 + - col0
----
1344
295
3196

query I rowsort
SELECT 77 * 65 AS col0 FROM tab2
----
5005
5005
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + ( + MIN( - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4772
SELECT + ( + MIN ( - col1 ) ) FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - col1 * + - col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT 31 DIV COUNT( * ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4774
SELECT 31 / COUNT ( * ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT MIN( - col0 ) + - + 87 FROM tab1 AS cor0
----
-178

skipif mysql # not compatible
query I rowsort label-4775
SELECT MIN ( - col0 ) + - + 87 FROM tab1 AS cor0
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT - 57, + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
-57
0

skipif mysql # not compatible
query II rowsort label-4776
SELECT - 57, + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
-57
0

query I rowsort
SELECT 12 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 >= + + col2 + + col0 + - col2
----
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT - + CAST( + - col0 AS SIGNED ) * - col0 * - - 65 FROM tab2 AS cor0
----
-137540
-266240
-365625

skipif mysql # not compatible
query I rowsort label-4778
SELECT - + CAST ( + - col0 AS INTEGER ) * - col0 * - - 65 FROM tab2 AS cor0
----
-137540
-266240
-365625

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT - COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - col0 * - - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4781
SELECT ALL + col0 * - ( - 67 ) * + + ( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + col0 * - ( - 67 ) * + + ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4782
SELECT 21 AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
21
NULL
21
NULL
21
NULL

skipif mysql # not compatible
query II rowsort label-4782
SELECT 21 AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
21
NULL
21
NULL
21
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4783
SELECT DISTINCT 4 + - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT 4 + - - CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT CAST( + - col2 AS SIGNED ) col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT CAST ( + - col2 AS INTEGER ) col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT + CAST( - col0 AS SIGNED ) * + - col1 AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-4785
SELECT + CAST ( - col0 AS INTEGER ) * + - col1 AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col1 ) <= + + 69
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - COUNT( * ) * - 26 AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4787
SELECT - COUNT ( * ) * - 26 AS col2 FROM tab1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + - - col2 col1 FROM tab0
----
117
169
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT MAX( ALL col1 ) + - - 50 + - 98 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT MAX ( ALL col1 ) + - - 50 + - 98 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT DISTINCT + SUM( - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + SUM ( - col2 ) AS col2 FROM tab1
----
-223

query II rowsort
SELECT DISTINCT + col0 AS col2, + 79 FROM tab0 AS cor0
----
15
79
87
79
97
79

query III rowsort
SELECT * FROM tab2 WHERE - 22 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT DISTINCT - + 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - MIN( DISTINCT + - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - MIN ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - 16 ) BETWEEN - 58 AND + col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 94 ) - col1 col1 FROM tab0 AS cor0
----
-115
-175
-95

query I rowsort
SELECT DISTINCT + + col0 * + col2 - - col2 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT + + COUNT( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col2 < col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT DISTINCT - ( - 74 ) FROM tab2
----
74

query III rowsort
SELECT ALL * FROM tab1 WHERE - 71 IN ( + col0 + - col0 + - + col0, col0 + + ( 73 ), + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4804
SELECT ALL col1 AS col0, col0 * - col1 + + 18 + - 69 DIV 52 FROM tab1
----
14
-697
47
-4260
5
-408

skipif mysql # not compatible
query II rowsort label-4804
SELECT ALL col1 AS col0, col0 * - col1 + + 18 + - 69 / 52 FROM tab1
----
14
-697
47
-4260
5
-408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col0 * - 71 col1 FROM tab2 AS cor0
----
181760
308850
75118

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 NOT BETWEEN - - col2 AND col0
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4807
SELECT * FROM tab2 WHERE NOT CAST( + col1 AS SIGNED ) + + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4807
SELECT * FROM tab2 WHERE NOT CAST ( + col1 AS INTEGER ) + + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 37, col0 AS col1 FROM tab0 AS cor0
----
-37
15
-37
87
-37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT MAX( + + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4810
SELECT MAX ( + + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + 76 * - COUNT( * ) * + - 69 AS col2 FROM tab2 cor0
----
15732

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + 76 * - COUNT ( * ) * + - 69 AS col2 FROM tab2 cor0
----
15732

query II rowsort
SELECT - col0, + col2 * - col2 + + + col2 AS col0 FROM tab2 AS cor0
----
-46
-506
-64
-1560
-75
-3306

query I rowsort
SELECT ALL - col0 * + - 76 FROM tab1 AS cor0
----
3876
6460
6916

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT - + ( col0 ) DIV - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT - + ( col0 ) / - col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - ( - 10 ) FROM tab2 WHERE NULL IS NULL
----
10
10
10

query I rowsort
SELECT DISTINCT 68 + col2 * - + col1 + + - col1 * + col2 * + 57 FROM tab2
----
-178572
-225320
-67966

query I rowsort
SELECT + 38 * + 89 + - 39 AS col2 FROM tab2
----
3343
3343
3343

query I rowsort
SELECT ALL col0 * - col2 + - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT - 67 + + 99 AS col2 FROM tab1
----
32
32
32

query I rowsort
SELECT ALL - - 47 AS col2 FROM tab0 WHERE + 53 <= - - 49
----

query II rowsort
SELECT ALL + 95 + col1, + col0 AS col2 FROM tab0
----
116
87
176
15
96
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL CAST( NULL AS SIGNED ) * - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL CAST ( NULL AS INTEGER ) * - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 84 * 46 + + col0 FROM tab1
----
3915
3949
3955

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - col0 > - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT col2 * + col2 / - 81 - - col1 - - col2 + col2 * - - CAST( NULL AS SIGNED ) * - + col2 + - 87 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT col2 * + col2 / - 81 - - col1 - - col2 + col2 * - - CAST ( NULL AS INTEGER ) * - + col2 + - 87 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL - COUNT( * ) + - + COUNT( * ) * - 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
279

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) * - 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
279

query I rowsort
SELECT - - 61 + + + col2 AS col0 FROM tab1 AS cor0
----
120
129
157

query I rowsort
SELECT ALL + col2 - + + 31 AS col2 FROM tab0 AS cor0
----
-21
16
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + MIN( DISTINCT - 61 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4830
SELECT + MIN ( DISTINCT - 61 ) FROM tab2 AS cor0
----
-61

query II rowsort
SELECT DISTINCT + col2 AS col0, - ( 75 ) AS col0 FROM tab2 cor0
----
23
-75
40
-75
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - MIN( ALL - - col2 ) * + 27 * + + SUM( - col1 ) AS col1 FROM tab0 cor0
----
27810

skipif mysql # not compatible
query I rowsort label-4832
SELECT - MIN ( ALL - - col2 ) * + 27 * + + SUM ( - col1 ) AS col1 FROM tab0 cor0
----
27810

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL + SUM( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL + SUM ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4834
SELECT - col1, col0 FROM tab2 AS cor0 WHERE NOT NULL <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-4834
SELECT - col1, col0 FROM tab2 AS cor0 WHERE NOT NULL <> CAST ( NULL AS REAL )
----

query II rowsort
SELECT DISTINCT 41, col0 + col2 AS col1 FROM tab0 AS cor0
----
41
196
41
62
41
97

query I rowsort
SELECT ALL - col2 * - + col1 + - col2 FROM tab0 cor0
----
0
200
3760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT DISTINCT 11 DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4837
SELECT DISTINCT 11 / + COUNT ( * ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 + - + col0 FROM tab2 WHERE NOT col0 / - 4 IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col1 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL ( - ( - COUNT( * ) ) ) * - 71 + + - 6 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL ( - ( - COUNT ( * ) ) ) * - 71 + + - 6 FROM tab1 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT DISTINCT - MIN( - 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - MIN ( - 1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4842
SELECT DISTINCT + 16, COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-4842
SELECT DISTINCT + 16, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
16
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - ( + - col1 ) col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4844
SELECT MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT - SUM( ALL col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT - 75 + COUNT( * ) FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - 75 + COUNT ( * ) FROM tab1 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT + - MAX( - 73 ) AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + - MAX ( - 73 ) AS col1 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT + COUNT( * ) + + 51 * - COUNT( * ) FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT + COUNT ( * ) + + 51 * - COUNT ( * ) FROM tab1
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT + MIN( DISTINCT + 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-4849
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query II rowsort
SELECT - col0 AS col0, + col1 AS col1 FROM tab0
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - 5 + 25 col0 FROM tab2
----
105
76
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT DISTINCT 92 + col1 + + col2 DIV + col1 * 27 FROM tab2
----
143
159
169

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT 92 + col1 + + col2 / + col1 * 27 FROM tab2
----
143
159
169

query I rowsort
SELECT DISTINCT + 29 - + + col2 * + 29 AS col1 FROM tab1
----
-1682
-1943
-2755

query I rowsort
SELECT ALL + col2 * ( - col1 ) * col0 + + + col1 AS col1 FROM tab1
----
-25070
-290789
-68530

query I rowsort
SELECT ALL - col2 * - 58 AS col0 FROM tab0
----
2726
5742
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT - MAX( - + 73 ) - + - ( - CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT - MAX ( - + 73 ) - + - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
70

query I rowsort
SELECT - 73 + - col1 AS col1 FROM tab0 AS cor0
----
-154
-74
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT - 86 + + COUNT( * ) * 73 - - + COUNT( * ) AS col1 FROM tab2 cor0
----
136

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT - 86 + + COUNT ( * ) * 73 - - + COUNT ( * ) AS col1 FROM tab2 cor0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE - - col1 IS NULL
----
0

query I rowsort
SELECT ALL col2 + 80 * + ( 58 ) FROM tab1
----
4699
4708
4736

query II rowsort
SELECT + - col0 * - col1, col2 AS col0 FROM tab2 AS cor0
----
2346
23
4928
40
5025
58

query I rowsort
SELECT - col0 * + 95 + col0 + - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 82
----

query I rowsort
SELECT 54 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54
54
54

query I rowsort
SELECT - col0 * + 91 * - - col1 FROM tab1 AS cor0
----
-38675
-389207
-64974

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT - + SUM( + 4 ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4865
SELECT - + SUM ( + 4 ) AS col1 FROM tab2 AS cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4866
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4866
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - CAST ( col0 AS INTEGER )
----

query II rowsort
SELECT ALL 68 AS col2, 71 AS col2 FROM tab0
----
68
71
68
71
68
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT CAST( NULL AS SIGNED ) / + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT CAST ( NULL AS INTEGER ) / + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + - 33 AS col1 FROM tab2
----
-1320
-1914
-759

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT 46 DIV + + 9 AS col1 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4870
SELECT 46 / + + 9 AS col1 FROM tab1
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col0 * - 21 AS col0 FROM tab2 AS cor0
----
-51
-966
-67
-1575
-77
-1344

query II rowsort
SELECT + col0 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT + 42 * + - 30 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1251

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + 42 * + - 30 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1251

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 73 + COUNT( * ) FROM tab1, tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 73 + COUNT ( * ) FROM tab1, tab1 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4875
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 57 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 57 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + col0 * + 79 FROM tab0 AS cor0
----
1200
6960
7760

query I rowsort
SELECT ALL - - 94 AS col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT 87 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-2259
-4841
-4938

query I rowsort
SELECT DISTINCT + col1 + + + 88 FROM tab1
----
102
135
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4880
SELECT MAX( ALL 93 ) + - + COUNT( * ) AS col1, - 90 + - - SUM( ALL + + 66 ) FROM tab2
----
90
108

skipif mysql # not compatible
query II rowsort label-4880
SELECT MAX ( ALL 93 ) + - + COUNT ( * ) AS col1, - 90 + - - SUM ( ALL + + 66 ) FROM tab2
----
90
108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT + MIN( - 42 ) - - - COUNT( * ) AS col1 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT + MIN ( - 42 ) - - - COUNT ( * ) AS col1 FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT MAX( - 59 ) AS col2 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-4883
SELECT MAX ( - 59 ) AS col2 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT col1 * - col1 * col1 + col2 FROM tab2
----
-132628
-300705
-456493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col1 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4886
SELECT DISTINCT + CAST( + - 79 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + CAST ( + - 79 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT COUNT( * ) AS col0, ( + - 34 ) FROM tab2
----
3
-34

skipif mysql # not compatible
query II rowsort label-4887
SELECT COUNT ( * ) AS col0, ( + - 34 ) FROM tab2
----
3
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4888
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + - 97 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, - 56 - + col2 col1 FROM tab1
----
59
-115
68
-124
96
-152

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4891
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 NOT IN ( + + CAST( col0 AS SIGNED ) * ( 39 ) + + - col2, 11 * + col2, - col0, col2 * + 79 + - 25, + col1 * + col2 / - - col0, - 47 + + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4891
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 NOT IN ( + + CAST ( col0 AS INTEGER ) * ( 39 ) + + - col2, 11 * + col2, - col0, col2 * + 79 + - 25, + col1 * + col2 / - - col0, - 47 + + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT + col2 DIV + - 84 * 29 * + - col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + col2 / + - 84 * 29 * + - col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * ( - col2 ) - + col2 FROM tab2 AS cor0 WHERE + col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - + MIN( - + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - + MIN ( - + col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * - - col2
----

query II rowsort
SELECT - + 31, col0 AS col2 FROM tab2 AS cor0
----
-31
46
-31
64
-31
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT - 43 * + + COUNT( * ) + - MAX( ALL col1 ) FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - 43 * + + COUNT ( * ) + - MAX ( ALL col1 ) FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
NULL

query II rowsort
SELECT ALL + 62 * + - 39 AS col2, - col0 FROM tab1
----
-2418
-51
-2418
-85
-2418
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT DISTINCT 27 * + + COUNT( * ) AS col0, 31 AS col1 FROM tab0
----
81
31

skipif mysql # not compatible
query II rowsort label-4901
SELECT DISTINCT 27 * + + COUNT ( * ) AS col0, 31 AS col1 FROM tab0
----
81
31

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4903
SELECT 26 DIV - COUNT( * ) AS col1 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-4903
SELECT 26 / - COUNT ( * ) AS col1 FROM tab2
----
-8

query II rowsort
SELECT ALL 12 * col2 AS col0, 28 FROM tab2
----
276
28
480
28
696
28

query I rowsort
SELECT DISTINCT + 66 * + - ( - + 46 ) AS col2 FROM tab1
----
3036

onlyif mysql # DIV for integer division: 
query II rowsort label-4906
SELECT DISTINCT - 53 DIV col1 AS col0, col1 AS col2 FROM tab0 AS cor0
----
-2
21
-53
1
0
81

skipif mysql # not compatible
query II rowsort label-4906
SELECT DISTINCT - 53 / col1 AS col0, col1 AS col2 FROM tab0 AS cor0
----
-2
21
-53
1
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT SUM( DISTINCT + - col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT SUM ( DISTINCT + - col2 ) FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT + MAX( ALL - ( + col1 ) ) + - 18 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + MAX ( ALL - ( + col1 ) ) + - 18 FROM tab0 AS cor0
----
-19

query II rowsort
SELECT - 94 AS col0, ( + 59 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 7ccafd7a445745365701abf07e3bc5ec

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4910
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL - - COUNT( * ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4911
SELECT ALL - - COUNT ( * ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT + + COUNT( - 40 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4912
SELECT + + COUNT ( - 40 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4913
SELECT * FROM tab0 cor0 WHERE col1 <> col0 + - - col2 + + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4913
SELECT * FROM tab0 cor0 WHERE col1 <> col0 + - - col2 + + - CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT + 44 DIV - col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT + 44 / - col0 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL + MAX( DISTINCT 41 ) + + - 62 AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + MAX ( DISTINCT 41 ) + + - 62 AS col2 FROM tab2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT MAX( - CAST( NULL AS SIGNED ) ) - - + SUM( DISTINCT - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) - - + SUM ( DISTINCT - col2 ) FROM tab0
----
NULL

query I rowsort
SELECT - 97 - - - col0 - + col2 AS col2 FROM tab0
----
-159
-194
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT - COUNT( * ) - + 25 AS col0 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-4918
SELECT - COUNT ( * ) - + 25 AS col0 FROM tab0
----
-28

query I rowsort
SELECT ALL - - ( + + col2 ) FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT + CAST( COUNT( + col1 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4921
SELECT + CAST ( COUNT ( + col1 ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT COUNT( DISTINCT - col0 ) * 41 AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT COUNT ( DISTINCT - col0 ) * 41 AS col0 FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT + CAST( - + 70 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-4923
SELECT + CAST ( - + 70 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col1 * + 35 + + - 16 IS NULL
----

query II rowsort
SELECT + 11, - col0 AS col2 FROM tab2 AS cor0
----
11
-46
11
-64
11
-75

query I rowsort
SELECT DISTINCT 31 * - col2 * 53 AS col2 FROM tab1 AS cor0
----
-111724
-157728
-96937

query I rowsort
SELECT DISTINCT 38 * - col1 AS col2 FROM tab0 AS cor0
----
-3078
-38
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + COUNT( * ) * + SUM( ALL - + col2 ) * - COUNT( * ) + + 41 col0 FROM tab0 AS cor0
----
1445

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4928
SELECT + COUNT ( * ) * + SUM ( ALL - + col2 ) * - COUNT ( * ) + + 41 col0 FROM tab0 AS cor0
----
1445

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT ALL - 67 * - + col0 DIV + + col0 AS col2 FROM tab0 cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 67 * - + col0 / + + col0 AS col2 FROM tab0 cor0
----
67
67
67

query II rowsort
SELECT - 83 AS col1, - col1 + 9 AS col1 FROM tab1
----
-83
-38
-83
-5
-83
4

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT ALL 76 * + col1 FROM tab1
----
1064
3572
380

query I rowsort
SELECT DISTINCT col2 * 88 AS col0 FROM tab0
----
4136
8712
880

query II rowsort
SELECT DISTINCT - col0 AS col0, - ( col1 ) AS col1 FROM tab2 cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT - 37 DIV + MIN( - col1 ) + + 43 FROM tab0 cor0
----
43

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 37 / + MIN ( - col1 ) + + 43 FROM tab0 cor0
----
43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * - + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - SUM( col0 ) * - COUNT( * ) + - ( + 86 ) + - - 52 FROM tab0
----
563

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - SUM ( col0 ) * - COUNT ( * ) + - ( + 86 ) + - - 52 FROM tab0
----
563

query II rowsort
SELECT - 42 + + col2 AS col0, col1 FROM tab1 AS cor0
----
17
5
26
47
54
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col2 FROM tab2 AS cor0
----
-29
-29
-29

query II rowsort
SELECT 74 + + + 20 AS col1, col1 AS col0 FROM tab0 cor0
----
94
1
94
21
94
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 <> 49 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4942
SELECT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + 86 + - col0 * + col2 AND + + col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT ALL 39 * + + 6 * - + 59 + + + 14 - + - COUNT( + 50 ), + COUNT( * ) AS col1 FROM tab1
----
-13789
3

skipif mysql # not compatible
query II rowsort label-4945
SELECT ALL 39 * + + 6 * - + 59 + + + 14 - + - COUNT ( + 50 ), + COUNT ( * ) AS col1 FROM tab1
----
-13789
3

query I rowsort
SELECT + + col2 FROM tab0 WHERE - col2 - + col0 IS NOT NULL
----
10
47
99

query II rowsort
SELECT + 30, 47 * col1 AS col1 FROM tab0
----
30
3807
30
47
30
987

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - COUNT( + + 38 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4948
SELECT - COUNT ( + + 38 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE + 62 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + 73 + - - 4 AS col2 FROM tab0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT col2 / - - col1 - + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT col2 / - - col1 - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 23 + - 43 AS col2 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT ALL + 18 - - col0 AS col2 FROM tab0
----
105
115
33

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0 WHERE NOT 22 + - col0 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT + 42 AS col2, COUNT( * ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
42
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4955
SELECT + 42 AS col2, COUNT ( * ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
42
0

query II rowsort
SELECT + + col1, + 29 FROM tab2 AS cor0
----
51
29
67
29
77
29

query II rowsort
SELECT ALL - 65, col1 FROM tab0 AS cor0
----
-65
1
-65
21
-65
81

query I rowsort
SELECT DISTINCT + - 61 AS col0 FROM tab0 cor0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT 91 col0, COUNT( + - col1 ) AS col2 FROM tab0 AS cor0
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4959
SELECT 91 col0, COUNT ( + - col1 ) AS col2 FROM tab0 AS cor0
----
91
3

query I rowsort
SELECT DISTINCT + 63 * + 91 + + 4 * - 50 AS col1 FROM tab1
----
5533

query I rowsort
SELECT DISTINCT - 25 * - col0 FROM tab1 WHERE NOT - col1 / col2 + 61 * + col2 IS NULL
----
1275
2125
2275

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 94 - + col2 * - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + + 93 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT - col2 + 50 AS col2 FROM tab0
----
-49
3
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT col1 * col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT col1 * col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT DISTINCT MAX( ALL col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT MAX ( ALL col1 ) FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE - 61 * - 70 + + col0 IS NULL
----

query I rowsort
SELECT ( + col2 ) + - col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 88 + + col2 FROM tab1
----
147
156
184

query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND + col1 * 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4974
SELECT * FROM tab1 WHERE ( - CAST( - 96 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4974
SELECT * FROM tab1 WHERE ( - CAST ( - 96 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4975
SELECT - col2 DIV + 92 + col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-4975
SELECT - col2 / + 92 + col0 FROM tab1
----
50
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT 28 DIV col1 AS col2 FROM tab1 WHERE NOT col1 >= ( col2 + + 95 )
----
0
2
5

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT 28 / col1 AS col2 FROM tab1 WHERE NOT col1 >= ( col2 + + 95 )
----
0
2
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT + 76 + COUNT( * ) DIV + ( + CAST( COUNT( * ) AS SIGNED ) ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4977
SELECT DISTINCT + 76 + COUNT ( * ) / + ( + CAST ( COUNT ( * ) AS INTEGER ) ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
77

query I rowsort
SELECT ALL + col2 * 27 AS col1 FROM tab1
----
1593
1836
2592

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4979
SELECT MIN( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT MIN ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN 43 * + col1 AND ( - 38 * - 10 + ( col1 + - col2 * 42 ) * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 68 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col0 FROM tab0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT + 66 * col0 AS col2 FROM tab0 AS cor0
----
5742
6402
990

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT ( - 15 ) AS col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT - 56 + - 67 * - col0 FROM tab2 AS cor0
----
3026
4232
4969

query I rowsort
SELECT 56 + 84 * - col0 FROM tab2 AS cor0
----
-3808
-5320
-6244

query I rowsort
SELECT col1 + 37 * 20 AS col2 FROM tab2
----
791
807
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT - ( CAST( NULL AS SIGNED ) ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT - ( CAST ( NULL AS INTEGER ) ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + + 19 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 16 * - col1 - + 46 FROM tab0 AS cor0
----
-1342
-382
-62

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) = + col1 * 36
----

query I rowsort
SELECT DISTINCT - 15 * 13 FROM tab0 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT - - 48 * COUNT( * ) - + 44 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT - - 48 * COUNT ( * ) - + 44 FROM tab2 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - - 81 - - 42 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-4997
SELECT - - 81 - - 42 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT - CAST( NULL AS SIGNED ) - 65 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT - CAST ( NULL AS INTEGER ) - 65 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT - ( + col1 ) - 35 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT - ( + col1 ) - 35 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 * 50 - + col0 FROM tab1 AS cor0
----
-1801
-1835
-1841

query I rowsort
SELECT 0 - col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + - 42 - col0 FROM tab0 AS cor0
----
-129
-139
-57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT + COUNT( ALL col2 ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5005
SELECT + COUNT ( ALL col2 ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 76 * - col1 - col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1206
-2703
-2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + 83 col2 FROM tab2
----
-19
-37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - 92 - - 76 + - ( COUNT( * ) ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 92 - - 76 + - ( COUNT ( * ) ) FROM tab0
----
-19

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT - 52 * - col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * - - 49 AS col0 FROM tab2
----
1127
1960
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT - MIN( ALL + 8 ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT - MIN ( ALL + 8 ) FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT + AVG ( ALL + col1 ) + - COUNT( * ) AS col0 FROM tab1 WHERE ( + col1 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT + AVG ( ALL + col1 ) + - COUNT ( * ) AS col0 FROM tab1 WHERE ( + col1 ) <= NULL
----
NULL

query I rowsort
SELECT ( - 52 ) AS col0 FROM tab2 AS cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 40 col2 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL + COUNT( - + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + COUNT ( - + col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 64 * - 69 FROM tab1
----
-4416
-4416
-4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5017
SELECT COUNT( * ) * 92 DIV 38 AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-5017
SELECT COUNT ( * ) * 92 / 38 AS col2 FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT ALL + ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + + ( + col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT - MIN( - 37 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - MIN ( - 37 ) FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL - COUNT( DISTINCT col2 ) * + + MAX( - 35 ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - COUNT ( DISTINCT col2 ) * + + MAX ( - 35 ) FROM tab1 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT + 22 + + - COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + 22 + + - COUNT ( * ) FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT MAX( DISTINCT - + 64 ) AS col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5023
SELECT MAX ( DISTINCT - + 64 ) AS col2 FROM tab1 AS cor0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT - + SUM( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL + - COUNT( * ) * - ( + MAX( col0 ) ) + 99 AS col0 FROM tab2 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + - COUNT ( * ) * - ( + MAX ( col0 ) ) + 99 AS col0 FROM tab2 AS cor0
----
324

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 96 * + col2 )
----

query II rowsort
SELECT ALL col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT + MIN( col1 ) + 5 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT + MIN ( col1 ) + 5 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT MIN( ALL - ( - 46 ) ) FROM tab2 WHERE ( + col1 ) + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT MIN ( ALL - ( - 46 ) ) FROM tab2 WHERE ( + col1 ) + col2 IS NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 91 * - 86 AS col2 FROM tab1
----
7826

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT + 35 + + COUNT( * ) AS col2 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5032
SELECT + 35 + + COUNT ( * ) AS col2 FROM tab2
----
38

query I rowsort
SELECT 79 + col0 + + col0 AS col0 FROM tab1
----
181
249
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) = ( + - col2 )
----

skipif mysql # not compatible
query I rowsort label-5034
SELECT col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = ( + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5035
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 77 * col0 FROM tab0 AS cor0
----
1155
6699
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT CAST( + ( col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5037
SELECT CAST ( + ( col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 23 + - - col1 NOT IN ( - col0 + - col2 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 36 AS col2 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT ALL - - 48 * - 34 FROM tab1 AS cor0
----
-1632
-1632
-1632

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + + col1 AND - 65
----

query I rowsort
SELECT ALL + col0 + 4 FROM tab1
----
55
89
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL COUNT( * ) - 84 AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL COUNT ( * ) - 84 AS col1 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT ALL ( - 0 ) + - CAST( + 21 AS SIGNED ) AS col1 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL ( - 0 ) + - CAST ( + 21 AS INTEGER ) AS col1 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT + 68 + - 89 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT col2 * + - col2 - - + col1 FROM tab2
----
-1523
-3297
-478

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5048
SELECT 87 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT 87 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 59 BETWEEN NULL AND - ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT DISTINCT + - col1 DIV + col0 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5050
SELECT DISTINCT + - col1 / + col0 col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 * + col1 + - col0 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL - + 41 * + COUNT( + col1 / col1 ) + - 11 * COUNT( col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 9 / + col2 AND - 76
----
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - + 41 * + COUNT ( + col1 / col1 ) + - 11 * COUNT ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 9 / + col2 AND - 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT ALL + CAST( NULL AS SIGNED ) * 73 AS col2 FROM tab0 WHERE NOT ( col2 / + col1 + - 71 + + + 50 ) >= 72
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + CAST ( NULL AS INTEGER ) * 73 AS col2 FROM tab0 WHERE NOT ( col2 / + col1 + - 71 + + + 50 ) >= 72
----
NULL
NULL

query II rowsort
SELECT DISTINCT - 12 AS col1, + col0 * - + col1 FROM tab0
----
-12
-1215
-12
-1827
-12
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col1 * col2 col1 FROM tab2
----
-123200
-225388
-26979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col2 FROM tab2
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5057
SELECT 23 AS col2, + MAX( + + col2 ) AS col1 FROM tab1
----
23
96

skipif mysql # not compatible
query II rowsort label-5057
SELECT 23 AS col2, + MAX ( + + col2 ) AS col1 FROM tab1
----
23
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col0 col2 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT col0, - ( - + col1 ) AS col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL col0 * + - col1 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT DISTINCT + 28 * col0 DIV + col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + 28 * col0 / + col0 FROM tab1
----
28

query I rowsort
SELECT ALL - - ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT DISTINCT col2 * + 90 AS col1, - 32 FROM tab2 AS cor0
----
2070
-32
3600
-32
5220
-32

query II rowsort
SELECT - - col2 AS col2, + col2 * col0 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT ALL - CAST( NULL AS SIGNED ) * + + 80 * - - col0 / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 80 * - - col0 / + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL - MAX( + + col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5066
SELECT ALL - MAX ( + + col1 ) col0 FROM tab1
----
-47

query I rowsort
SELECT - col0 * - 35 FROM tab2
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT + COUNT( * ) + - COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-5068
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 AS col1 FROM tab2 cor0 WHERE NOT ( ( NOT + col1 = NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 76 * - - 25 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 99 <> CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 99 <> CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5075
SELECT DISTINCT - + AVG ( DISTINCT - - col1 ) + + COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - + AVG ( DISTINCT - - col1 ) + + COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col1 + - 75 * col2 - - col0 + + 27 + - 52 * + 40 * 4 AS col2 FROM tab0 AS cor0
----
-11722
-15620
-8935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5077
SELECT DISTINCT 98 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) - - - CAST( col2 AS SIGNED ) / + - col1 + - col1 * col0 * 61 )
----

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT 98 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) - - - CAST ( col2 AS INTEGER ) / + - col1 + - col1 * col0 * 61 )
----

query II rowsort
SELECT col2 AS col0, 66 * + + col1 + - 91 AS col1 FROM tab1
----
59
239
68
3011
96
833

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col0, - col0 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL COUNT( + - 24 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL COUNT ( + - 24 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5082
SELECT DISTINCT - + col1 AS col2, col1 DIV + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-5082
SELECT DISTINCT - + col1 AS col2, col1 / + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

query I rowsort
SELECT - + col2 + 98 * - col1 + + - col0 FROM tab0 AS cor0
----
-2155
-294
-8000

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5084
SELECT - - CAST( NULL AS SIGNED ) + - 79 + + CAST( + + 96 AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT - - CAST ( NULL AS INTEGER ) + - 79 + + CAST ( + + 96 AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5085
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL + + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + col2 * col2 + - - col1 - col0 AS col2, col0 FROM tab1
----
3401
85
4580
91
9179
51

query I rowsort
SELECT col2 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND col2
----

query II rowsort
SELECT 27 + + 12 + 5 AS col1, col0 + col2 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 57, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + 17 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + 17 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + 69 ) FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT DISTINCT + ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - ( 87 ) AS col1 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT ( col0 ) * - + col2 * - 88 FROM tab2
----
225280
382800
93104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT CAST( NULL AS SIGNED ) * - - MAX( + col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT CAST ( NULL AS INTEGER ) * - - MAX ( + col1 ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col1, + ( + ( + + col1 ) ) AS col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5097
SELECT + SUM( + col2 ) DIV + - SUM( DISTINCT + 75 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5097
SELECT + SUM ( + col2 ) / + - SUM ( DISTINCT + 75 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT col2 * - 97 AS col1 FROM tab0
----
-4559
-9603
-970

query II rowsort
SELECT - 23 * + ( - col0 ) AS col2, + col2 FROM tab1 WHERE NOT NULL IN ( + col2 + 90 * - col2 )
----

query I rowsort
SELECT ALL + 62 * - - col0 FROM tab2
----
2852
3968
4650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + - COUNT( ALL + - col2 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5102
SELECT + - COUNT ( ALL + - col2 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 29 + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-34
-43
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT + 6 * - COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5104
SELECT + 6 * - COUNT ( * ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - + col0 + 88 FROM tab2 AS cor0 WHERE NOT - col1 * + + 63 IS NULL
----
13
24
42

query I rowsort
SELECT 89 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
89
89
89

query II rowsort
SELECT DISTINCT 31 AS col2, col1 * + - col2 FROM tab2 AS cor0
----
31
-1173
31
-3080
31
-3886

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ( - col2 ) * 98 FROM tab2 AS cor0
----
-2254
-3920
-5684

query II rowsort
SELECT - col2 AS col0, col0 * + 70 * + col0 AS col2 FROM tab0 AS cor0
----
-10
529830
-47
15750
-99
658630

query I rowsort
SELECT + ( + 85 ) FROM tab1 AS cor0
----
85
85
85

query II rowsort
SELECT - - col2, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query I rowsort
SELECT - col2 * - - ( 42 ) + - 96 FROM tab0 AS cor0
----
-2070
-4254
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT COUNT( * ) + + 96 * + - 24 + 6 FROM tab1 AS cor0
----
-2295

skipif mysql # not compatible
query I rowsort label-5115
SELECT COUNT ( * ) + + 96 * + - 24 + 6 FROM tab1 AS cor0
----
-2295

query I rowsort
SELECT DISTINCT - col0 + 65 FROM tab1 cor0
----
-20
-26
14

query II rowsort
SELECT ALL col0 + 22, + col0 FROM tab0
----
109
87
119
97
37
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL + 61 * - COUNT( + + col1 ) AS col1 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + 61 * - COUNT ( + + col1 ) AS col1 FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL - SUM( ALL + col1 ) FROM tab2 WHERE ( - 72 - col0 + - col0 + + col1 / + - 34 * - col1 * - 49 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL - SUM ( ALL + col1 ) FROM tab2 WHERE ( - 72 - col0 + - col0 + + col1 / + - 34 * - col1 * - 49 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 22 + - + col0 AS col2 FROM tab2
----
-24
-42
-53

query I rowsort
SELECT ALL 90 + - col1 * col0 + - col0 FROM tab2
----
-2302
-4902
-5010

onlyif mysql # DIV for integer division: 
query II rowsort label-5122
SELECT - col2, col2 + - col2 DIV + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
22
-40
39
-58
57

skipif mysql # not compatible
query II rowsort label-5122
SELECT - col2, col2 + - col2 / + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
22
-40
39
-58
57

query I rowsort
SELECT DISTINCT + - col2 + col0 FROM tab1 WHERE + col1 = col0 * - ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5124
SELECT CAST( col1 AS SIGNED ) + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5124
SELECT CAST ( col1 AS INTEGER ) + - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - - col1 * - ( col0 ) - - - col2 - - + 16 + 38 + - col2 - col2 col1 FROM tab2 AS cor0 WHERE + ( + + col0 ) * - + 90 IS NULL
----

query I rowsort
SELECT + 5 * - col0 FROM tab1 AS cor0
----
-255
-425
-455

query I rowsort
SELECT - ( + - col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( - 91 ) NOT BETWEEN - col0 + + col2 + + - col0 AND - + ( - - col0 ) - + + col1
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col1 + - 81 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT + - MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5130
SELECT + - MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 53 * col2 = - - ( + col1 ) * - 5 + col0 + + + 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - - ( + + 32 ) ) AS col1 FROM tab0
----
32

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE NOT - col1 NOT IN ( col2 * - - ( col2 ), col2 + 41 * - 30 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( NULL ) = ( - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / 9 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + - col1 ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT - col2 * - 56 FROM tab0
----
2632
5544
560

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT - 1 * - + ( - - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - 1 * - + ( - - COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5139
SELECT ( + CAST( - + col0 AS SIGNED ) ) * - col0, 78 * col0 * 5 * - col0 AS col1 FROM tab2
----
2116
-825240
4096
-1597440
5625
-2193750

skipif mysql # not compatible
query II rowsort label-5139
SELECT ( + CAST ( - + col0 AS INTEGER ) ) * - col0, 78 * col0 * 5 * - col0 AS col1 FROM tab2
----
2116
-825240
4096
-1597440
5625
-2193750

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT 50 * - - MIN( - + col1 ) FROM tab0
----
-4050

skipif mysql # not compatible
query I rowsort label-5140
SELECT 50 * - - MIN ( - + col1 ) FROM tab0
----
-4050

query I rowsort
SELECT ALL - + 92 AS col1 FROM tab1 AS cor0
----
-92
-92
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 <> - - col0 + 65
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT + 82 * + ( + COUNT( * ) ) AS col0 FROM tab1, tab0 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-5144
SELECT + 82 * + ( + COUNT ( * ) ) AS col0 FROM tab1, tab0 AS cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT COUNT( * ) + + + 10 AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5145
SELECT COUNT ( * ) + + + 10 AS col1 FROM tab2
----
13

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * - - col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= 78
----

query I rowsort
SELECT DISTINCT + - 12 * + col2 * + 13 FROM tab1 AS cor0
----
-10608
-14976
-9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 + - - 89 col1 FROM tab0 AS cor0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT DISTINCT + col0 + - 36 + + col0 DIV + 16 AS col1 FROM tab2 AS cor0
----
12
32
43

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + col0 + - 36 + + col0 / + 16 AS col1 FROM tab2 AS cor0
----
12
32
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 + 45 * + col0 col2 FROM tab2 cor0 WHERE NOT + ( + ( + col0 ) ) IS NULL
----
2027
2837
3332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5153
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT ALL col1 + - 12 AS col1 FROM tab1
----
-7
2
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT + COUNT( * ) + + 20 col0 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5155
SELECT DISTINCT + COUNT ( * ) + + 20 col0 FROM tab1
----
23

query I rowsort
SELECT DISTINCT col0 * + 54 AS col2 FROM tab2
----
2484
3456
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT MIN( - col2 ) - - 32 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-5157
SELECT MIN ( - col2 ) - - 32 FROM tab2
----
-26

query I rowsort
SELECT ALL + col0 + + 76 FROM tab1
----
127
161
167

query I rowsort
SELECT col1 - + 44 AS col0 FROM tab0
----
-23
-43
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT - COUNT( * ) - 52 * + 53 FROM tab1
----
-2759

skipif mysql # not compatible
query I rowsort label-5160
SELECT - COUNT ( * ) - 52 * + 53 FROM tab1
----
-2759

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 / - col2
----

query I rowsort
SELECT - + 16 + + - 94 + 73 + - + 53 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + - col0 + - 51 * - 83 + - col2 AS col2 FROM tab1 AS cor0
----
4074
4086
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT ( + - COUNT( * ) ) * + 64 FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT ( + - COUNT ( * ) ) * + 64 FROM tab2 cor0
----
-192

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + 43 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 * - - col2 * col2 * - col2 FROM tab1 AS cor0
----
-17457300
-28613403
-45121587

onlyif mysql # aggregate syntax: 
query II rowsort label-5167
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5167
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - + ( - MAX( - 88 ) ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5168
SELECT - + ( - MAX ( - 88 ) ) FROM tab2 AS cor0
----
-88

query I rowsort
SELECT + - ( - col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL - SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 * - + col2 - 88 > NULL
----

query II rowsort
SELECT + - ( + + col1 ) * 21 - - - ( + 62 ), col2 FROM tab0 cor0
----
-1763
47
-503
10
-83
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2
----
3
-3

query I rowsort
SELECT + 38 * + col0 AS col0 FROM tab0
----
3306
3686
570

query II rowsort
SELECT ALL - 91, 56 AS col0 FROM tab2
----
-91
56
-91
56
-91
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + 45 * COUNT( * ) * COUNT( * ) FROM tab0
----
405

skipif mysql # not compatible
query I rowsort label-5177
SELECT + 45 * COUNT ( * ) * COUNT ( * ) FROM tab0
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL SUM( ALL + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL SUM ( ALL + col0 ) AS col0 FROM tab0
----
199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 72 <> + col0
----

query II rowsort
SELECT + col1 AS col0, - 34 * - + col1 AS col2 FROM tab1 AS cor0
----
14
476
47
1598
5
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT DISTINCT col0 - - col0 AS col1 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) - + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT col0 - - col0 AS col1 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + MIN( DISTINCT - + 31 ) AS col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5182
SELECT + MIN ( DISTINCT - + 31 ) AS col1 FROM tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT DISTINCT + COUNT( * ) * MIN( col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT + COUNT ( * ) * MIN ( col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT + + col0 DIV - col0 + - col2 AS col1 FROM tab1 WHERE - 35 IS NOT NULL
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-5184
SELECT + + col0 / - col0 + - col2 AS col1 FROM tab1 WHERE - 35 IS NOT NULL
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5185
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-729

query I rowsort
SELECT - 11 + + - 60 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT + - ( + + COUNT( * ) ) - + SUM( - + 60 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT + - ( + + COUNT ( * ) ) - + SUM ( - + 60 ) FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL col1 * - col1 - + + 89 FROM tab0 AS cor0
----
-530
-6650
-90

query I rowsort
SELECT 30 + + col1 FROM tab2 AS cor0
----
107
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + MIN( DISTINCT + + col2 ) + - + 15 AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5190
SELECT + MIN ( DISTINCT + + col2 ) + - + 15 AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + - col2 * + - col1 * - + col2 AS col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + col1 * + ( + col0 ) FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + 15 * - 24 / + + MIN( - - 80 ) * + 74 + - MAX( ALL - - 9 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + 15 * - 24 / + + MIN ( - - 80 ) * + 74 + - MAX ( ALL - - 9 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5194
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( NULL NOT BETWEEN + + ( + CAST( + + 81 AS SIGNED ) ) AND col0 ) ) )
----

skipif mysql # not compatible
query III rowsort label-5194
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( NULL NOT BETWEEN + + ( + CAST ( + + 81 AS INTEGER ) ) AND col0 ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + ( col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 73 BETWEEN + - col1 + + col0 AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * col1 IS NULL
----

query II rowsort
SELECT + + 88 AS col1, + AVG ( ALL + col2 ) FROM tab2 WHERE - + col0 - + - 46 IS NULL
----
88
NULL

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> - 38
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5201
SELECT - 16 DIV ( + COUNT( * ) ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5201
SELECT - 16 / ( + COUNT ( * ) ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
87

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL = col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL - + 8 AS col2 FROM tab2 AS cor0 WHERE col2 <= CAST( - 34 AS SIGNED ) * + 25
----

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - + 8 AS col2 FROM tab2 AS cor0 WHERE col2 <= CAST ( - 34 AS INTEGER ) * + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5205
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT + + MIN( + - 73 ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5206
SELECT + + MIN ( + - 73 ) FROM tab0 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 27 ) col2 FROM tab0
----
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + MIN( + 48 ) * + + 6 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-5209
SELECT + MIN ( + 48 ) * + + 6 FROM tab2
----
288

query I rowsort
SELECT + 36 * + + col0 AS col1 FROM tab2
----
1656
2304
2700

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 36 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT DISTINCT COUNT( - - 40 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT COUNT ( - - 40 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT MAX( ALL - + col2 ) FROM tab2 WHERE NOT NULL <= 38 + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT MAX ( ALL - + col2 ) FROM tab2 WHERE NOT NULL <= 38 + 67
----
NULL

query I rowsort
SELECT ALL + col1 * + - col2 * 56 FROM tab1 AS cor0
----
-16520
-178976
-75264

query I rowsort
SELECT ALL + + 28 AS col2 FROM tab1 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 - - - col1 col0 FROM tab2 AS cor0 WHERE + 58 >= + 58
----
-16
-6
10

query I rowsort
SELECT DISTINCT + col0 + + - col1 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT DISTINCT ( + MIN( ALL + - col1 ) ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT ( + MIN ( ALL + - col1 ) ) AS col1 FROM tab1 cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL + COUNT( * ) - - 5 AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + COUNT ( * ) - - 5 AS col1 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + - COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5220
SELECT + - COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + 2 IS NULL
----

query I rowsort
SELECT ALL 64 * - + 34 * - 67 + + col0 FROM tab0 cor0
----
145807
145879
145889

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT + COUNT( + + 9 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5223
SELECT + COUNT ( + + 9 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL + CAST( - COUNT( - col1 ) AS SIGNED ) + + MIN( DISTINCT - - col2 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + CAST ( - COUNT ( - col1 ) AS INTEGER ) + + MIN ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5225
SELECT DISTINCT + col1 * + - col2, col0 col1 FROM tab1 AS cor0 WHERE NOT 3 / + - col1 = + CAST( NULL AS SIGNED ) AND NULL <= - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5225
SELECT DISTINCT + col1 * + - col2, col0 col1 FROM tab1 AS cor0 WHERE NOT 3 / + - col1 = + CAST ( NULL AS INTEGER ) AND NULL <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT + 59 - CAST( - ( - 40 ) AS SIGNED ) + col1 FROM tab1
----
24
33
66

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 59 - CAST ( - ( - 40 ) AS INTEGER ) + col1 FROM tab1
----
24
33
66

query II rowsort
SELECT - 46 AS col2, col2 AS col2 FROM tab2 WHERE ( NULL NOT BETWEEN - col0 * col1 * - + col0 * + col2 AND ( + + col0 ) )
----

query II rowsort
SELECT - 19 * + ( - col1 ) - - - 58, + 8 + 89 AS col2 FROM tab0
----
-39
97
1481
97
341
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5229
SELECT * FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) + + - col2 * + col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-5229
SELECT * FROM tab0 WHERE + - CAST ( NULL AS REAL ) + + - col2 * + col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - ( - col0 ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * + 57 FROM tab2 AS cor0
----
1311
2280
3306

query I rowsort
SELECT 29 FROM tab1 AS cor0 WHERE NOT - 25 BETWEEN col1 AND ( 87 )
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT ALL 40 DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 40 / - - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 73 * + - col2 * + + ( - - col0 ) FROM tab1 AS cor0
----
-357408
-366095
-451724

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col2 * + col1 * col0 - + col2 * - 0 * + col0 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col0 + col2 col0 FROM tab1 cor0
----
4345
484
810

query I rowsort
SELECT 0 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - + COUNT( + - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5238
SELECT - + COUNT ( + - col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - col0 NOT BETWEEN ( NULL ) AND col0 + + + col0
----

query II rowsort
SELECT + 72 AS col2, col2 + - + col2 * col2 FROM tab2 AS cor0
----
72
-1560
72
-3306
72
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * + + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * + + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT DISTINCT 0, COUNT( + 77 ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-5243
SELECT DISTINCT 0, COUNT ( + 77 ) AS col1 FROM tab0
----
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT ALL 83 DIV - - col1 AS col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL 83 / - - col1 AS col1 FROM tab1
----
1
16
5

query I rowsort
SELECT col1 + + 57 - - 65 AS col1 FROM tab0
----
123
143
203

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT col1 * col2 * 60 DIV - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3540
-4080
-5760

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT col1 * col2 * 60 / - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3540
-4080
-5760

query III rowsort
SELECT * FROM tab1 WHERE + col0 = - + col0
----

query II rowsort
SELECT DISTINCT col0, col0 + - col0 AS col0 FROM tab0
----
15
0
87
0
97
0

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE col1 - - 91 IS NULL
----

query I rowsort
SELECT + + ( 99 ) * - + 38 AS col1 FROM tab1 AS cor0
----
-3762
-3762
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT DISTINCT + - 79 * - COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + - 79 * - COUNT ( * ) FROM tab1 AS cor0
----
237

query I rowsort
SELECT DISTINCT + - col0 + 24 + + col0 * + ( - col0 ) * + col1 * + col1 FROM tab0 AS cor0
----
-1476216
-3337992
-9482

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - + COUNT( ALL + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5253
SELECT - + COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + col2 + + col2 * col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - - col1 AND + col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - 31 + - + ( + col1 ) + col0 + 80 * + col2 - 66 - - 58 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL - SUM( 1 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - SUM ( 1 ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + COUNT( * ) + + COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-5257
SELECT + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
12

query I rowsort
SELECT DISTINCT - col1 - + col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - col1 + 20 * - 87 FROM tab2 AS cor0
----
-1791
-1807
-1817

query I rowsort
SELECT ( 6 ) AS col1 FROM tab2
----
6
6
6

query II rowsort
SELECT ALL col0 AS col1, + 81 AS col2 FROM tab1
----
51
81
85
81
91
81

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 30 col2 FROM tab2
----
51
30
67
30
77
30

query I rowsort
SELECT DISTINCT - 90 - + col1 FROM tab2 WHERE - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + MAX( DISTINCT - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5265
SELECT + MAX ( DISTINCT - col2 ) FROM tab0
----
-10

query II rowsort
SELECT DISTINCT - 76 AS col2, - 92 * col0 AS col0 FROM tab1 AS cor0
----
-76
-4692
-76
-7820
-76
-8372

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT 1 DIV 50 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5267
SELECT DISTINCT 1 / 50 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 47 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT DISTINCT - 59, COUNT( * ) AS col2 FROM tab2 cor0
----
-59
3

skipif mysql # not compatible
query II rowsort label-5269
SELECT DISTINCT - 59, COUNT ( * ) AS col2 FROM tab2 cor0
----
-59
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT 7 * - MIN( - - 2 ) AS col1 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-5270
SELECT 7 * - MIN ( - - 2 ) AS col1 FROM tab2
----
-14

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + 63 ) AS col0 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT ALL ( + + col2 ) FROM tab1 cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 AS cor0 WHERE - col0 * + 60 * col0 IS NULL
----

query I rowsort
SELECT ALL - 17 AS col2 FROM tab0 cor0
----
-17
-17
-17

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= + col0 + - - 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 52 + + col2 - - col1 + - col2 + + col1 + + + col2 AS col1 FROM tab2 AS cor0
----
177
244
246

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + SUM( + - 76 ) AS col1 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-5278
SELECT + SUM ( + - 76 ) AS col1 FROM tab2
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * - col1 col2 FROM tab0
----
1262
1837
196

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT + 32 DIV - + col0 + col0 AS col2 FROM tab0
----
13
87
97

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + 32 / - + col0 + col0 AS col2 FROM tab0
----
13
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL MAX( + - 27 ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL MAX ( + - 27 ) AS col1 FROM tab2
----
-27

query I rowsort
SELECT ALL 80 + - - 56 AS col1 FROM tab2
----
136
136
136

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - col1 + + 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT col2 * - 17 + col0 DIV - - col0 col1 FROM tab0 AS cor0
----
-1682
-169
-798

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5284
SELECT col2 * - 17 + col0 / - - col0 col1 FROM tab0 AS cor0
----
-1682
-169
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT ( + CAST( NULL AS SIGNED ) ) + + + 81 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5285
SELECT ( + CAST ( NULL AS INTEGER ) ) + + + 81 col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1, - 60 AS col1 FROM tab1 WHERE - 3 NOT IN ( 27, - col2 )
----
-14
-60
-47
-60
-5
-60

query III rowsort
SELECT * FROM tab2 WHERE - 77 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL 81 + 7 + - CAST( NULL AS SIGNED ) * 58 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL 81 + 7 + - CAST ( NULL AS INTEGER ) * 58 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 83 * - - col2 AS col0 FROM tab1 AS cor0
----
-4897
-5644
-7968

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT col0 * 94 DIV col1 col0 FROM tab0 AS cor0
----
17
389
9118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5290
SELECT col0 * 94 / col1 col0 FROM tab0 AS cor0
----
17
389
9118

query II rowsort
SELECT + col2 AS col0, 66 AS col0 FROM tab1 AS cor0
----
59
66
68
66
96
66

query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

query I rowsort
SELECT - - ( - 74 ) FROM tab2 cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT col2 + - + 30 + - 69 * - 38 + - + 47 FROM tab0 AS cor0 WHERE NOT + 87 - ( col0 ) NOT BETWEEN - + 52 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT + - CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5296
SELECT + - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab2 AS cor0
----
-60
-60
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 89 > + 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5299
SELECT col1 DIV 33 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5299
SELECT col1 / 33 AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + 84 + + col0 AS col0 FROM tab1 AS cor0
----
135
169
175

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 <= - + 39
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5302
SELECT ( 64 ) + + col2 AS col1, col2 + col0 - - + col2 DIV - + col2 AS col1 FROM tab2 cor0
----
104
103
122
132
87
68

skipif mysql # not compatible
query II rowsort label-5302
SELECT ( 64 ) + + col2 AS col1, col2 + col0 - - + col2 / - + col2 AS col1 FROM tab2 cor0
----
104
103
122
132
87
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT - col1 + + col1 DIV - - col0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5303
SELECT - col1 + + col1 / - - col0 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT - - COUNT( * ) FROM tab2 WHERE + 50 > - col1
----
3

skipif mysql # not compatible
query I rowsort label-5304
SELECT - - COUNT ( * ) FROM tab2 WHERE + 50 > - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE 38 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5305
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE 38 + col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * - 76 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * - 76 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col0 * + + col2 - col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT ALL - COUNT( - 56 ) + + CAST( NULL AS SIGNED ) - 21 * MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - COUNT ( - 56 ) + + CAST ( NULL AS INTEGER ) - 21 * MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 89 + 0 col1 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT ALL 62 + - + col2 AS col1 FROM tab0 cor0
----
-37
15
52

query I rowsort
SELECT + 12 - + col1 FROM tab0
----
-69
-9
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5312
SELECT DISTINCT 91 * - + CAST( NULL AS DECIMAL ) * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT 91 * - + CAST ( NULL AS REAL ) * col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE - + 17 <= NULL
----

query II rowsort
SELECT - + 46, col2 AS col1 FROM tab2 AS cor0
----
-46
23
-46
40
-46
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col2 col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT - + col0 * + 60 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + CAST( NULL AS SIGNED ) / + 20 AND - col0
----

skipif mysql # not compatible
query I rowsort label-5316
SELECT - + col0 * + 60 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + CAST ( NULL AS INTEGER ) / + 20 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL + SUM( ALL + - col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + SUM ( ALL + - col0 ) FROM tab0 cor0
----
-199

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - - col0, ( ( + col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5319
SELECT COUNT( * ) AS col1, - MIN( - col2 ) FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-5319
SELECT COUNT ( * ) AS col1, - MIN ( - col2 ) FROM tab0
----
3
99

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + - col2 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - + col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT - MAX( - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5323
SELECT - MAX ( - col2 ) AS col1 FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 / + col1 = + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 68, col2 FROM tab2 cor0
----
-68
23
-68
40
-68
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col1 + + - CAST( + col0 AS SIGNED ) * + 14
----

skipif mysql # not compatible
query I rowsort label-5326
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col1 + + - CAST ( + col0 AS INTEGER ) * + 14
----

query I rowsort
SELECT ALL - 11 * 61 AS col1 FROM tab1 cor0
----
-671
-671
-671

query I rowsort
SELECT DISTINCT - - 55 + - + col2 * + + col2 FROM tab0 AS cor0
----
-2154
-45
-9746

query I rowsort
SELECT + + 4 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT - COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5330
SELECT - COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5331
SELECT + CAST( NULL AS SIGNED ) * + MAX( DISTINCT + - 7 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + - 7 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5332
SELECT + ( - + ( - - CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT + ( - + ( - - CAST ( NULL AS REAL ) ) ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 19 * col0 * - col1 AS col2 FROM tab1
----
-13566
-8075
-81263

query II rowsort
SELECT + col1 AS col1, - 18 AS col1 FROM tab1
----
14
-18
47
-18
5
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT COUNT( ALL col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5335
SELECT COUNT ( ALL col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT - COUNT( * ) * - 25 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5336
SELECT - COUNT ( * ) * - 25 FROM tab2
----
75

query I rowsort
SELECT DISTINCT - 87 + 70 FROM tab1
----
-17

query I rowsort
SELECT ALL col0 + 37 AS col1 FROM tab1
----
122
128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT - COUNT( * ) * - - 35 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT - COUNT ( * ) * - - 35 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT ALL - - 95 * col0 * col0 + + + 90 FROM tab2 cor0
----
201110
389210
534465

query I rowsort
SELECT ALL - col1 * 54 + + col1 FROM tab1 AS cor0
----
-2491
-265
-742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col1 * + 26 FROM tab0 AS cor0 WHERE NOT + 59 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col1 * + 26 FROM tab0 AS cor0 WHERE NOT + 59 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL - 8 * + ( ( - - CAST( COUNT( * ) AS SIGNED ) ) ) AS col2 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - 8 * + ( ( - - CAST ( COUNT ( * ) AS INTEGER ) ) ) AS col2 FROM tab2
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( - + col1 + + col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT DISTINCT 93 DIV col1 + - + 6 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT 93 / col1 + - + 6 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT col0 * - col2 + - - col2 FROM tab1 cor0
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5347
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) + + col1 * + 17, - 27 AS col2 FROM tab1 AS cor0
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-5347
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + + col1 * + 17, - 27 AS col2 FROM tab1 AS cor0
----
NULL
-27

query I rowsort
SELECT col0 * - col0 + + + 82 + col1 FROM tab1 cor0
----
-2505
-7138
-8152

query I rowsort
SELECT + + 6 AS col1 FROM tab0 AS cor0
----
6
6
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 33 + - 53 BETWEEN + + 77 AND + - col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT CAST( NULL AS SIGNED ) * - - 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT CAST ( NULL AS INTEGER ) * - - 15 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, col1 * col2 AS col0 FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT ALL 7 * 74 FROM tab1
----
518
518
518

query II rowsort
SELECT ALL - col2, 6 AS col0 FROM tab2
----
-23
6
-40
6
-58
6

query II rowsort
SELECT col0 AS col0, + col0 * + col0 FROM tab1 AS cor0
----
51
2601
85
7225
91
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + + MIN( ALL + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5356
SELECT + + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + - 93 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( 1 ) BETWEEN col0 AND - + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5359
SELECT DISTINCT - 33 DIV ( + 83 ) + + 61 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT - 33 / ( + 83 ) + + 61 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5360
SELECT DISTINCT - 50 AS col1, + MIN( col2 ) + - 92 FROM tab0
----
-50
-82

skipif mysql # not compatible
query II rowsort label-5360
SELECT DISTINCT - 50 AS col1, + MIN ( col2 ) + - 92 FROM tab0
----
-50
-82

query II rowsort
SELECT ALL + + col0 AS col1, + 17 AS col2 FROM tab2 AS cor0
----
46
17
64
17
75
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT - ( - ( - col2 ) ) * + col1 DIV - col1 - col2 + - - 27 + + ( - col1 ) col1 FROM tab0 AS cor0
----
-54
26
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5362
SELECT - ( - ( - col2 ) ) * + col1 / - col1 - col2 + - - 27 + + ( - col1 ) col1 FROM tab0 AS cor0
----
-54
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT + - SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + - SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT - COUNT( * ) + ( COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5364
SELECT - COUNT ( * ) + ( COUNT ( * ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 27 + + 64 AS col2 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 42 + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-2
-38
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5368
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5368
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5369
SELECT ALL col2 - + 2 - col2 DIV - col2 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL col2 - + 2 - col2 / - col2 FROM tab0
----
46
9
98

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 59 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - 39 + + 60 FROM tab2
----
-1929
-2553
-2943

query I rowsort
SELECT ALL - col0 * - 85 FROM tab1
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT COUNT( - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5373
SELECT COUNT ( - - col1 ) FROM tab0
----
3

query I rowsort
SELECT 37 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
37
37
37

query I rowsort
SELECT 30 AS col0 FROM tab1 cor0
----
30
30
30

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + MIN( + 2 ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-5377
SELECT + MIN ( + 2 ) FROM tab2 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT + - MAX( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5378
SELECT + - MAX ( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 37 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5379
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 37 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT + COUNT( * ) * - 77 * - + 26 FROM tab1
----
6006

skipif mysql # not compatible
query I rowsort label-5380
SELECT + COUNT ( * ) * - 77 * - + 26 FROM tab1
----
6006

query I rowsort
SELECT ALL - + AVG ( + + col2 ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT - 22 - COUNT( * ) * + 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-445

skipif mysql # not compatible
query I rowsort label-5383
SELECT - 22 - COUNT ( * ) * + 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-445

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT + col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN - col1 * - col1 * col0 AND + col1
----

skipif mysql # not compatible
query I rowsort label-5386
SELECT + col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 * - col1 * col0 AND + col1
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5388
SELECT - COUNT( * ) DIV - 33 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5388
SELECT - COUNT ( * ) / - 33 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - col0, - 13 FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT + 14 - col1 AS col1 FROM tab1 AS cor0
----
-33
0
9

query I rowsort
SELECT ALL ( - ( - col0 ) ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 - 87 FROM tab1
----
-2
-36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + 36 - + + COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 36 - + + COUNT ( * ) FROM tab0
----
33

query I rowsort
SELECT ALL 80 * - col1 + - 20 * - + col2 FROM tab1
----
-2400
780
800

query I rowsort
SELECT 98 + col2 FROM tab1
----
157
166
194

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 76 IS NOT NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 1 * + col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT ALL col2 + + col0 + 90 DIV 82 * + col1 * col2 AS col2 FROM tab0
----
295
307
3869

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL col2 + + col0 + 90 / 82 * + col1 * col2 AS col2 FROM tab0
----
295
307
3869

query II rowsort
SELECT - - col1 AS col1, 26 AS col1 FROM tab0 AS cor0
----
1
26
21
26
81
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT - 89 DIV + SUM( DISTINCT - 34 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5400
SELECT - 89 / + SUM ( DISTINCT - 34 ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT + 81 * - 55 FROM tab2
----
-4455

query I rowsort
SELECT + 76 * + 20 * - col0 AS col2 FROM tab0
----
-132240
-147440
-22800

query I rowsort
SELECT DISTINCT + ( + - col2 ) * + col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT - - ( + - SUM( ALL - col1 ) ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-5405
SELECT - - ( + - SUM ( ALL - col1 ) ) FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - + ( COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5406
SELECT - + ( COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - col2 * col2 * col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5408
SELECT ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col2 ) col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 * - - col0 * 30 FROM tab2
----
-147840
-150750
-70380

query I rowsort
SELECT ALL col2 + - - col2 + - 28 + + 69 FROM tab1
----
159
177
233

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT DISTINCT col2 DIV + + 46 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT col2 / + + 46 AS col0 FROM tab0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( col2 ) >= + col2 - - 44 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 97 + - 97 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 + - col1 * + ( - + 67 ) AS col2 FROM tab0 AS cor0
----
1417
166
5474

query I rowsort
SELECT ( - - col2 ) * + 51 - - col2 FROM tab0 cor0
----
2444
5148
520

query I rowsort
SELECT ( - 22 ) AS col0 FROM tab0 AS cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 - ( + col0 ) col2 FROM tab2
----
20
31
49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + - 61 NOT BETWEEN + col1 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5420
SELECT DISTINCT - ( + CAST( 84 AS SIGNED ) ) DIV col0 FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - ( + CAST ( 84 AS INTEGER ) ) / col0 FROM tab0
----
-5
0

query I rowsort
SELECT ALL + col1 - 23 FROM tab1
----
-18
-9
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE 63 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5422
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE 63 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( + 87 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( + 87 * col2 )
----
0

query I rowsort
SELECT - col2 * - 62 FROM tab2
----
1426
2480
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT + COUNT( * ) * - 27 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5425
SELECT + COUNT ( * ) * - 27 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL + COUNT( DISTINCT col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + COUNT ( DISTINCT col1 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5429
SELECT ALL 32 + + CAST( - 50 AS SIGNED ) DIV + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL 32 + + CAST ( - 50 AS INTEGER ) / + COUNT ( * ) FROM tab1
----
16

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - col2 ) BETWEEN ( 5 ) AND 65
----
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT - 59 / - 28 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT - 59 / - 28 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 98 * + 23 + + col1 FROM tab0
----
2255
2275
2335

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT COUNT( - 99 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT COUNT ( - 99 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 83 * col0 FROM tab1
----
4233
7055
7553

query I rowsort
SELECT col2 * 32 + 84 AS col0 FROM tab1
----
1972
2260
3156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 32 < NULL
----

query I rowsort
SELECT ALL + 44 * 88 AS col2 FROM tab1
----
3872
3872
3872

query I rowsort
SELECT ALL col0 / + col1 FROM tab0 WHERE NOT + col1 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + 75 col0 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5440
SELECT ALL COUNT( * ) DIV 46 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL COUNT ( * ) / 46 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 BETWEEN col2 + - col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5442
SELECT ALL + CAST( + col0 AS SIGNED ) DIV col1 AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL + CAST ( + col0 AS INTEGER ) / col1 AS col2 FROM tab1
----
1
17
3

query I rowsort
SELECT + col0 + 22 FROM tab2
----
68
86
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT - 44 DIV + col2 + col0 AS col1 FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-5444
SELECT - 44 / + col2 + col0 AS col1 FROM tab2
----
45
63
75

query III rowsort
SELECT * FROM tab1 WHERE + col0 > + col0
----

query I rowsort
SELECT ALL col1 + 94 AS col1 FROM tab1
----
108
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL COUNT( * ) - 44 AS col1 FROM tab0 WHERE NULL < 30
----
-44

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL COUNT ( * ) - 44 AS col1 FROM tab0 WHERE NULL < 30
----
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 67 / - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5450
SELECT ALL 6 col1 FROM tab2 AS cor0 WHERE NOT + 49 / + CAST( - col0 AS DECIMAL ) + ( col1 ) >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5450
SELECT ALL 6 col1 FROM tab2 AS cor0 WHERE NOT + 49 / + CAST ( - col0 AS REAL ) + ( col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT + 54 * + 22 FROM tab2 AS cor0
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT DISTINCT + SUM( 27 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT + SUM ( 27 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT DISTINCT + ( col1 ) / CAST( col1 AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( - col0 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT + ( col1 ) / CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( - col0 ) <= NULL
----

query I rowsort
SELECT 64 * - 47 FROM tab2
----
-3008
-3008
-3008

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ( COUNT( * ) ) * 64 AS col0 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5455
SELECT ( COUNT ( * ) ) * 64 AS col0 FROM tab2
----
192

query I rowsort
SELECT + + 97 AS col2 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT + 13 * - col0 AS col1 FROM tab2 AS cor0
----
-598
-832
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL - MIN( 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - MIN ( 45 ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT col1 * 68 FROM tab2 AS cor0
----
3468
4556
5236

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 28 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + 4
----

query I rowsort
SELECT ALL + 60 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 9 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + col1 + + 44 FROM tab2
----
-2557
-4445
-5885

query I rowsort
SELECT + col1 * + ( 34 ) * col1 AS col2 FROM tab1
----
6664
75106
850

query I rowsort
SELECT + col2 + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

query I rowsort
SELECT DISTINCT col0 + - - col2 + col1 FROM tab2
----
120
181
200

query I rowsort
SELECT + col2 * + 51 FROM tab1
----
3009
3468
4896

query I rowsort
SELECT + col1 * + ( col1 ) AS col1 FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 45 * col2 <> + 4
----

query I rowsort
SELECT DISTINCT - + 72 AS col1 FROM tab1 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT ALL + CAST( NULL AS SIGNED ) * + 95 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + CAST ( NULL AS INTEGER ) * + 95 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT + - COUNT( * ) + - COUNT( * ) + - 63 * + ( ( - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT + - COUNT ( * ) + - COUNT ( * ) + - 63 * + ( ( - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col1 + - 84 * - col2 FROM tab2 AS cor0
----
1983
3437
4939

query I rowsort
SELECT DISTINCT ( 29 ) + + 43 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
72

query I rowsort
SELECT ALL + col1 * - - col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5477
SELECT ALL CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL CAST ( NULL AS REAL ) - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 41 - + 87 * ( 69 ) col2 FROM tab2 cor0
----
-5962

query I rowsort
SELECT DISTINCT - 73 * - ( - - col0 ) AS col0 FROM tab1 AS cor0
----
3723
6205
6643

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / 49 + + col0 > + col0 * 42 + col2 * col2
----

query I rowsort
SELECT ALL + col0 - col2 + 90 + - 94 FROM tab2 AS cor0
----
13
19
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 - col1 * col1 col0 FROM tab1 AS cor0
----
-101
-2114
70

query I rowsort
SELECT ALL col2 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + 45 AND - 12
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + 45 AND - 12
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5486
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 < ( + CAST( NULL AS SIGNED ) / ( - 29 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5486
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 < ( + CAST ( NULL AS INTEGER ) / ( - 29 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5487
SELECT ALL + MIN( + col0 ) DIV + - COUNT( * ) AS col2 FROM tab0 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + MIN ( + col0 ) / + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-5

query I rowsort
SELECT ALL col0 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - COUNT( * ) - - - 51 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5489
SELECT - COUNT ( * ) - - - 51 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT - - col1 - - col0 + + ( + 61 ) FROM tab1 AS cor0
----
126
151
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT + CAST( 71 AS SIGNED ) * - col2 * - col1 AS col1 FROM tab0
----
14910
270297
7029

skipif mysql # not compatible
query I rowsort label-5491
SELECT + CAST ( 71 AS INTEGER ) * - col2 * - col1 AS col1 FROM tab0
----
14910
270297
7029

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 32 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab2 WHERE 1 + + ( 0 ) + col2 >= ( + 63 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 88 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT + ( - MAX( col0 ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * CAST( NULL AS SIGNED ) AND + col1 - - col1 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + ( - MAX ( col0 ) ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * CAST ( NULL AS INTEGER ) AND + col1 - - col1 * col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = - 64 / col2 + col0 - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / col1 * col2 + + col2 <> ( + ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL ( + col0 ) + col2 DIV col1 FROM tab0 AS cor0 WHERE - col2 * col2 IS NOT NULL
----
15
196
87

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL ( + col0 ) + col2 / col1 FROM tab0 AS cor0 WHERE - col2 * col2 IS NOT NULL
----
15
196
87

query II rowsort
SELECT DISTINCT col1 AS col1, 54 FROM tab2
----
51
54
67
54
77
54

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( col2 * - ( - 56 ) - 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT ( + MAX( - col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT ( + MAX ( - col2 ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - col1 * - 53 AS col0 FROM tab1 AS cor0
----
2491
265
742

query I rowsort
SELECT + - col2 * 60 AS col1 FROM tab2 AS cor0
----
-1380
-2400
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL + COUNT( * ) * - 36 AS col1 FROM tab1 AS cor0 WHERE - 92 NOT IN ( + + 64 + + col0 * - 39 )
----
-108

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + COUNT ( * ) * - 36 AS col1 FROM tab1 AS cor0 WHERE - 92 NOT IN ( + + 64 + + col0 * - 39 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT 51 * - + COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5505
SELECT 51 * - + COUNT ( * ) FROM tab0 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT col0 DIV ( 55 ) AS col2 FROM tab1 AS cor0 WHERE NOT 37 * + col0 IN ( + col0 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5506
SELECT col0 / ( 55 ) AS col2 FROM tab1 AS cor0 WHERE NOT 37 * + col0 IN ( + col0 )
----
0
1
1

query II rowsort
SELECT col2, 53 + - col0 AS col1 FROM tab2 AS cor0
----
23
7
40
-11
58
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT + 92 DIV + - 79 col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5508
SELECT + 92 / + - 79 col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5509
SELECT ALL col1 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL col1 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT - - col2 + 51 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
803
931
9753

query I rowsort
SELECT - ( - col1 ) + 13 AS col0 FROM tab2 AS cor0
----
64
80
90

query I rowsort
SELECT DISTINCT ( - 90 ) + + - 7 * + - col1 + + + col1 AS col1 FROM tab1
----
-50
22
286

query I rowsort
SELECT DISTINCT - col2 * 70 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col2 AND + col2 - - col0 * + 3 * col1
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT col1 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-5515
SELECT col1 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
162
2
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 28 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 39 * - 15 * + col1 AS col2 FROM tab0 AS cor0
----
12285
47385
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT + SUM( ALL ( - 15 ) ) AS col1 FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND - col2
----
-45

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + SUM ( ALL ( - 15 ) ) AS col1 FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND - col2
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5519
SELECT - col1 * + + col2 * + ( - CAST( NULL AS DECIMAL ) ) - - col0 AS col1, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5519
SELECT - col1 * + + col2 * + ( - CAST ( NULL AS REAL ) ) - - col0 AS col1, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT + ( - col0 ) + 10 FROM tab2
----
-36
-54
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT + CAST( NULL AS SIGNED ) + MIN( + col1 ) * MIN( col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT + CAST ( NULL AS INTEGER ) + MIN ( + col1 ) * MIN ( col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL - ( + - COUNT( * ) ) - ( SUM( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - ( + - COUNT ( * ) ) - ( SUM ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT MIN( DISTINCT col0 ) + + 49 AS col1 FROM tab1 cor0
----
100

skipif mysql # not compatible
query I rowsort label-5523
SELECT MIN ( DISTINCT col0 ) + + 49 AS col1 FROM tab1 cor0
----
100

query I rowsort
SELECT - - col1 + - 6 FROM tab0 AS cor0
----
-5
15
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( ( - - col0 - col1 ) <> col0 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 44 AS col1 FROM tab2 cor0 WHERE NOT ( NOT ( ( ( NOT 1 IN ( - 14 * col2 + col2 ) ) ) ) )
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( col1 + col0 * - + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + AVG ( - col1 ) FROM tab0 WHERE NOT - - col0 > ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + AVG ( - col1 ) FROM tab0 WHERE NOT - - col0 > ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT col1 * - - 57 AS col2 FROM tab0
----
1197
4617
57

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + ( - col0 ) > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT DISTINCT COUNT( * ) AS col2, COUNT( + col0 ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5532
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( + col0 ) AS col0 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - SUM( DISTINCT 53 ) AS col0 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-5533
SELECT - SUM ( DISTINCT 53 ) AS col0 FROM tab2
----
-53

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT ( + 70 ) * col0 FROM tab0
----
1050
6090
6790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5537
SELECT 59 DIV + + ( + + 53 ), COUNT( * ) AS col1 FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-5537
SELECT 59 / + + ( + + 53 ), COUNT ( * ) AS col1 FROM tab1
----
1
3

query I rowsort
SELECT + col0 + - col1 / - + col1 + - col0 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IN ( + 55, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT SUM( ALL + 90 ) AS col2 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT SUM ( ALL + 90 ) AS col2 FROM tab1 AS cor0
----
270

query II rowsort
SELECT - col0 AS col0, col2 * + 81 FROM tab1 AS cor0
----
-51
7776
-85
4779
-91
5508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * - col1 col2 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT col2 + ( + - 8 ) FROM tab1
----
51
60
88

query I rowsort
SELECT DISTINCT + col2 * - - ( + col0 ) FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * + 6 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 30 FROM tab1 cor0
----
-1530
-2550
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL COUNT( * ) + 18 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL COUNT ( * ) + 18 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL 63 AS col1 FROM tab2 WHERE ( + - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 + col2 col0 FROM tab1
----
13
22
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 31 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + + - col1 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5551
SELECT DISTINCT 70 + CAST( NULL AS SIGNED ) + + MAX( + + col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 70 + CAST ( NULL AS INTEGER ) + + MAX ( + + col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT ALL - 58 AS col1, SUM( + 79 ) AS col0 FROM tab0
----
-58
237

skipif mysql # not compatible
query II rowsort label-5552
SELECT ALL - 58 AS col1, SUM ( + 79 ) AS col0 FROM tab0
----
-58
237

query I rowsort
SELECT ALL - 20 + - + 85 AS col0 FROM tab0
----
-105
-105
-105

query III rowsort
SELECT * FROM tab0 WHERE - - col0 NOT BETWEEN NULL AND col2
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col2 FROM tab2
----
-99

query I rowsort
SELECT ALL - col1 + + - col2 AS col0 FROM tab2
----
-117
-125
-74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 3 * - col0 AS col0 FROM tab0 AS cor0
----
-261
-291
-45

query II rowsort
SELECT DISTINCT + col0, col2 + col2 * col0 FROM tab1 AS cor0
----
51
4992
85
5074
91
6256

query I rowsort
SELECT 69 + + 60 AS col1 FROM tab0 AS cor0
----
129
129
129

query I rowsort
SELECT ALL - 28 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 20 IS NOT NULL AND NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 20 IS NOT NULL AND NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + + 95 * 9 - 97 AS col2 FROM tab1 AS cor0
----
758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col2 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT + col0 AS col1, - col2 * + 95 AS col1 FROM tab2 AS cor0
----
46
-2185
64
-3800
75
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - + SUM( + col1 ) AS col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5566
SELECT - + SUM ( + col1 ) AS col2 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL SUM( col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT - + SUM( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5568
SELECT - + SUM ( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - col2 * + - col2 * - + col0 * + - col2 FROM tab1
----
17457215
28613312
45121536

query I rowsort
SELECT ALL - 13 * - 67 AS col2 FROM tab0
----
871
871
871

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - + ( + - col1 ) * - col2 + - ( + 38 ) + 59 * - col1 + - col2
----

query I rowsort
SELECT ALL 9 * + - col2 FROM tab0
----
-423
-891
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - 20 * + MAX( ALL col0 ) col1 FROM tab2
----
-1500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5573
SELECT ALL - 20 * + MAX ( ALL col0 ) col1 FROM tab2
----
-1500

query II rowsort
SELECT + col0 * + 34 AS col1, + col2 AS col1 FROM tab1 AS cor0
----
1734
96
2890
59
3094
68

query I rowsort
SELECT DISTINCT + 16 + + + col2 FROM tab2 AS cor0
----
39
56
74

query I rowsort
SELECT DISTINCT + col1 * - 59 FROM tab2
----
-3009
-3953
-4543

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT ALL + 8 DIV - col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL + 8 / - col2 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + 65 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE + col2 * + col0 IN ( col0, - col2, - col1 + + 91, + 46 )
----

query I rowsort
SELECT - + 22 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5582
SELECT - ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5583
SELECT + col1 * - col1 DIV col1 AS col1, col2 * - - 44 FROM tab2 AS cor0
----
-51
1012
-67
2552
-77
1760

skipif mysql # not compatible
query II rowsort label-5583
SELECT + col1 * - col1 / col1 AS col1, col2 * - - 44 FROM tab2 AS cor0
----
-51
1012
-67
2552
-77
1760

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT BETWEEN col2 + - col1 AND 65
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5585
SELECT ALL col1 + - + CAST( + col1 AS DECIMAL ) * - ( + col1 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL col1 + - + CAST ( + col1 AS REAL ) * - ( + col1 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * 43 + + col1 FROM tab0 cor0
----
-3720
-4170
-564

query I rowsort
SELECT DISTINCT col1 * + col0 + + col2 FROM tab2
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL - 5 FROM tab2 WHERE NULL = - col2 - col0 + CAST( + ( - col2 ) AS SIGNED ) + - 29 + + col0 + - + col1 * - ( - 1 ) * 9
----

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - 5 FROM tab2 WHERE NULL = - col2 - col0 + CAST ( + ( - col2 ) AS INTEGER ) + - 29 + + col0 + - + col1 * - ( - 1 ) * 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - MAX( DISTINCT - col0 ) + 76 AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - MAX ( DISTINCT - col0 ) + 76 AS col0 FROM tab0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5590
SELECT DISTINCT 67 + - + col0 * - 52 + + col0 AS col1, CAST( NULL AS SIGNED ) / - - col0 FROM tab2
----
2505
NULL
3459
NULL
4042
NULL

skipif mysql # not compatible
query II rowsort label-5590
SELECT DISTINCT 67 + - + col0 * - 52 + + col0 AS col1, CAST ( NULL AS INTEGER ) / - - col0 FROM tab2
----
2505
NULL
3459
NULL
4042
NULL

query III rowsort
SELECT * FROM tab0 WHERE - ( - col2 ) IN ( col0 * 28 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5592
SELECT CAST( + 1 AS SIGNED ), + COUNT( * ) AS col2 FROM tab0
----
1
3

skipif mysql # not compatible
query II rowsort label-5592
SELECT CAST ( + 1 AS INTEGER ), + COUNT ( * ) AS col2 FROM tab0
----
1
3

query I rowsort
SELECT 65 FROM tab1, tab1 AS cor0 WHERE - 79 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT + 66 DIV - col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-5594
SELECT + 66 / - col1 FROM tab1
----
-1
-13
-4

query I rowsort
SELECT DISTINCT + 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5596
SELECT DISTINCT col2, col2 AS col0 FROM tab1 WHERE ( + col0 / + CAST( + + col0 AS SIGNED ) * + col2 - + col1 * - col2 * + CAST( - + col0 AS SIGNED ) ) IS NOT NULL
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-5596
SELECT DISTINCT col2, col2 AS col0 FROM tab1 WHERE ( + col0 / + CAST ( + + col0 AS INTEGER ) * + col2 - + col1 * - col2 * + CAST ( - + col0 AS INTEGER ) ) IS NOT NULL
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL - col2 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - col2 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT + ( + + COUNT( col2 ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5598
SELECT + ( + + COUNT ( col2 ) ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT + 34 AS col2, + ( 77 ) FROM tab0 AS cor0
----
34
77
34
77
34
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT - MAX( DISTINCT col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - MAX ( DISTINCT col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT DISTINCT - 3 AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT + + COUNT( ALL - 48 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + + COUNT ( ALL - 48 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL - MAX( DISTINCT - col1 ) * 83 AS col0 FROM tab2
----
4233

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - MAX ( DISTINCT - col1 ) * 83 AS col0 FROM tab2
----
4233

query I rowsort
SELECT - ( - + col0 ) * + 30 * + 57 AS col0 FROM tab0
----
148770
165870
25650

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT - SUM( col2 ), - COUNT( * ) col2 FROM tab0 WHERE NOT NULL <= NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5605
SELECT - SUM ( col2 ), - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL <= NULL
----
NULL
0

query I rowsort
SELECT 11 * col2 FROM tab1
----
1056
649
748

query I rowsort
SELECT + 6 * - + col1 AS col2 FROM tab0
----
-126
-486
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - + 16 + col2 + + + ( + - col0 ) * + ( 49 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5609
SELECT * FROM tab0 WHERE NOT - + 73 + + - CAST( NULL AS SIGNED ) * - col0 * - col1 - - col1 NOT BETWEEN NULL AND + 17
----

skipif mysql # not compatible
query III rowsort label-5609
SELECT * FROM tab0 WHERE NOT - + 73 + + - CAST ( NULL AS INTEGER ) * - col0 * - col1 - - col1 NOT BETWEEN NULL AND + 17
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5610
SELECT DISTINCT 85 DIV - SUM( + 2 ) AS col0 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT 85 / - SUM ( + 2 ) AS col0 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + ( 27 ) * - COUNT( ALL col0 ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5611
SELECT + ( 27 ) * - COUNT ( ALL col0 ) AS col1 FROM tab1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT + col0 DIV + 32 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5612
SELECT + col0 / + 32 FROM tab2
----
1
2
2

query II rowsort
SELECT ALL col1 AS col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT DISTINCT CAST( + MAX( ALL + col1 ) AS SIGNED ) * - COUNT( * ) AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT CAST ( + MAX ( ALL + col1 ) AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab2
----
-231

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 * col0 * col2 AND - + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT DISTINCT - - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT DISTINCT - 63, 32 AS col2 FROM tab1 AS cor0
----
-63
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 50 - 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - ( + + MAX( + - 24 ) ) + + 83 - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-5619
SELECT - ( + + MAX ( + - 24 ) ) + + 83 - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
104

query I rowsort
SELECT ALL - col0 * - col1 + - 10 FROM tab0
----
1205
1817
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT + MIN( + 90 ) * - 49 + + COUNT( col1 ) FROM tab2
----
-4407

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT + MIN ( + 90 ) * - 49 + + COUNT ( col1 ) FROM tab2
----
-4407

query III rowsort
SELECT * FROM tab0 WHERE col2 + + + 12 - + col0 * + 3 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * + - 25 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - 92 + - + 58
----

query I rowsort
SELECT + - ( + + col2 ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT + 10 * + - 56 FROM tab2 AS cor0
----
-560
-560
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT MAX( ALL + 31 ) AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-5628
SELECT MAX ( ALL + 31 ) AS col2 FROM tab0
----
31

query I rowsort
SELECT ALL - col1 + + - col0 + + 22 FROM tab1
----
-116
-43
-68

query III rowsort
SELECT ALL