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 * FROM tab0 WHERE NULL NOT IN ( - col1 + col0 + col2, + 42 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 24 + + col1 + 23 + - col2, 32 + + - 66 col2 FROM tab0
----
-51
-34
58
-34
81
-34

query I rowsort
SELECT ALL + col0 * + 56 * + col0 - - col2 FROM tab0 AS cor0
----
12647
423874
527003

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5637
SELECT ALL 10 DIV 80 DIV + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL 10 / 80 / + - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT 86 * - - col1 FROM tab1
----
1204
4042
430

query I rowsort
SELECT + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT SUM( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT SUM ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + 81 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5643
SELECT + 81 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - SUM( + col0 ) FROM tab0 WHERE NOT - + col2 + - - col1 IS NULL
----
-199

skipif mysql # not compatible
query I rowsort label-5644
SELECT - SUM ( + col0 ) FROM tab0 WHERE NOT - + col2 + - - col1 IS NULL
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 - 63 * + 0 <= + + col0
----
2

skipif mysql # not compatible
query I rowsort label-5645
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 - 63 * + 0 <= + + col0
----
2

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT DISTINCT - + col2 DIV - - 25 + col2 FROM tab2 AS cor0
----
23
39
56

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT - + col2 / - - 25 + col2 FROM tab2 AS cor0
----
23
39
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT 23 * + COUNT( * ) col1 FROM tab0 AS cor0
----
69

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

query I rowsort
SELECT ALL - 52 * + ( + 63 ) + col0 AS col0 FROM tab1
----
-3185
-3191
-3225

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

skipif mysql # not compatible
query I rowsort label-5651
SELECT SUM ( - CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - 83 + + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5652
SELECT - 83 + + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-80

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5653
SELECT ALL + col1 AS col0, - CAST ( 22 AS INTEGER ) col1 FROM tab2 AS cor0
----
51
-22
67
-22
77
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5654
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - 68 * col0 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5654
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - 68 * col0 * + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col2 + - 52, - col0 + + col0 + - col1 * + col1 * + 70 AS col0 FROM tab1 AS cor0
----
-111
-1750
-120
-154630
-148
-13720

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab0 WHERE NOT NULL <= + - 17 + + 67 + col1 / - col2 + - col1
----

query I rowsort
SELECT DISTINCT 86 + 62 FROM tab0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - 88 - COUNT( * ) AS col0 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-5662
SELECT - 88 - COUNT ( * ) AS col0 FROM tab2
----
-91

query I rowsort
SELECT ALL - - 34 FROM tab0 cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 70
----
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 70
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT ALL 30, MIN( + + 53 ) AS col0 FROM tab0
----
30
53

skipif mysql # not compatible
query II rowsort label-5667
SELECT ALL 30, MIN ( + + 53 ) AS col0 FROM tab0
----
30
53

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

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

skipif mysql # not compatible
query I rowsort label-5669
SELECT + COUNT ( + col0 ) FROM tab1
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 15 ) col2 FROM tab2
----
15
15
15

query I rowsort
SELECT ALL + col0 * + ( - + col1 ) * - + 71 AS col1 FROM tab2 AS cor0
----
166566
349888
356775

query I rowsort
SELECT ALL col0 * + 65 FROM tab2 AS cor0
----
2990
4160
4875

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT - 78 DIV - col1 FROM tab0 AS cor0
----
0
3
78

skipif mysql # not compatible
query I rowsort label-5674
SELECT - 78 / - col1 FROM tab0 AS cor0
----
0
3
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 - + - col1 + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5675
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 - + - col1 + CAST ( NULL AS INTEGER ) ) AND NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5678
SELECT ALL - CAST( - MIN( DISTINCT + + 28 ) AS SIGNED ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
28
-3

skipif mysql # not compatible
query II rowsort label-5678
SELECT ALL - CAST ( - MIN ( DISTINCT + + 28 ) AS INTEGER ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
28
-3

query I rowsort
SELECT DISTINCT - col2 * + ( 97 ) * + - 27 AS col1 FROM tab2 AS cor0
----
104760
151902
60237

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT DISTINCT col0 * - 75 AS col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) BETWEEN - CAST( col1 AS SIGNED ) / + col1 + + + col2 + + + 24 + - 10 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT col0 * - 75 AS col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - CAST ( col1 AS INTEGER ) / + col1 + + + col2 + + + 24 + - 10 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT COUNT( * ) * - + 68 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-5683
SELECT COUNT ( * ) * - + 68 FROM tab1
----
-204

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

query I rowsort
SELECT - ( + - 52 ) * col0 * - col0 FROM tab2 AS cor0
----
-110032
-212992
-292500

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * col0 AS col0, ( - + 63 ) col0 FROM tab2 AS cor0
----
1058
-63
2560
-63
4350
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + COUNT( * ) + + + SUM( col0 ) + + + COUNT( * ) FROM tab0
----
205

skipif mysql # not compatible
query I rowsort label-5689
SELECT + COUNT ( * ) + + + SUM ( col0 ) + + + COUNT ( * ) FROM tab0
----
205

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

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

query II rowsort
SELECT col2 AS col2, + col1 FROM tab2 AS cor0 WHERE + col1 < NULL
----

query I rowsort
SELECT DISTINCT + 49 * - ( col1 ) FROM tab0 cor0
----
-1029
-3969
-49

query I rowsort
SELECT ALL - - ( - col0 ) * 66 AS col0 FROM tab0 AS cor0
----
-5742
-6402
-990

query II rowsort
SELECT ALL - + 32, 43 AS col1 FROM tab2 AS cor0
----
-32
43
-32
43
-32
43

query I rowsort
SELECT + col2 - + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

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

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

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL col2 / + - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 44 + 91 IS NOT NULL
----

query I rowsort
SELECT - 31 - - col0 FROM tab1
----
20
54
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - COUNT( * ) * 5 + + - COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5700
SELECT - COUNT ( * ) * 5 + + - COUNT ( * ) FROM tab1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5701
SELECT ALL + + MAX( ALL - col2 ) / 95 col2 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) >= col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5701
SELECT ALL + + MAX ( ALL - col2 ) / 95 col2 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) >= col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5702
SELECT 99 + 76 + - COUNT( * ) + 56 DIV COUNT( * ) * 51 * + + 57 * - COUNT( * ) * + 97 * 23 FROM tab1
----
-350217746

skipif mysql # not compatible
query I rowsort label-5702
SELECT 99 + 76 + - COUNT ( * ) + 56 / COUNT ( * ) * 51 * + + 57 * - COUNT ( * ) * + 97 * 23 FROM tab1
----
-350217746

query I rowsort
SELECT ALL - col2 * - 10 FROM tab0
----
100
470
990

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT ALL - 65 * col2 DIV - col1 FROM tab1 AS cor0
----
445
767
94

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - 65 * col2 / - col1 FROM tab1 AS cor0
----
445
767
94

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5706
SELECT ALL + - MIN ( + + ( - - col1 ) ) col1 FROM tab0 AS cor0
----
-1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col0, ( col1 ) FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-5709
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0, ( col1 ) FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT DISTINCT - COUNT( + - col0 ) FROM tab1 WHERE NOT + 24 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT - COUNT ( + - col0 ) FROM tab1 WHERE NOT + 24 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5711
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5711
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT - COUNT( ALL + 85 ) AS col2, + ( - 23 ) col0 FROM tab2 AS cor0
----
-3
-23

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

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

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

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

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

query I rowsort
SELECT ALL + 82 + - - 58 + - col0 FROM tab0 AS cor0
----
125
43
53

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

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

query II rowsort
SELECT - col2 * + 51 + 97, - col2 AS col0 FROM tab2
----
-1076
-23
-1943
-40
-2861
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-5718
SELECT ALL + col2, col2 - col1 DIV + - col2 col2 FROM tab1
----
59
59
68
68
96
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5718
SELECT ALL + col2, col2 - col1 / + - col2 col2 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + + 5 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5722
SELECT DISTINCT + + 2 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5722
SELECT DISTINCT + + 2 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2
NULL

query II rowsort
SELECT ALL - col0, - 69 * - 48 + + - col1 AS col2 FROM tab1 AS cor0
----
-51
3298
-85
3307
-91
3265

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE col2 > NULL
----

query I rowsort
SELECT ALL - - col0 * - ( - col0 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
2601
7225
8281

query I rowsort
SELECT - col0 + + 97 * + col1 * col1 AS col2 FROM tab0
----
0
42690
636402

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL - COUNT( - 53 ) + - 98 FROM tab0 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL - COUNT ( - 53 ) + - 98 FROM tab0 AS cor0
----
-101

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

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

query I rowsort
SELECT ALL + ( col2 ) / + col1 * - 72 FROM tab0 AS cor0 WHERE + ( + col2 ) * - + ( + 65 ) BETWEEN NULL AND col0 AND NOT NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5730
SELECT ALL - 31 - - CAST( NULL AS SIGNED ), 86 * + - 41 col2 FROM tab2 AS cor0
----
NULL
-3526
NULL
-3526
NULL
-3526

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5730
SELECT ALL - 31 - - CAST ( NULL AS INTEGER ), 86 * + - 41 col2 FROM tab2 AS cor0
----
NULL
-3526
NULL
-3526
NULL
-3526

query I rowsort
SELECT - 49 FROM tab2 AS cor0 WHERE 2 IS NOT NULL
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT ALL - col1 * + CAST( - 25 AS SIGNED ) + - col0 col1 FROM tab2 cor0 WHERE col2 * col2 NOT BETWEEN NULL AND + 62 / - col2
----
1229
1600
1861

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5732
SELECT ALL - col1 * + CAST ( - 25 AS INTEGER ) + - col0 col1 FROM tab2 cor0 WHERE col2 * col2 NOT BETWEEN NULL AND + 62 / - col2
----
1229
1600
1861

query I rowsort
SELECT + + 32 + col2 + col2 FROM tab1 AS cor0
----
150
168
224

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT - + SUM( DISTINCT + 58 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5734
SELECT - + SUM ( DISTINCT + 58 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5735
SELECT * FROM tab1 WHERE NOT col1 / - CAST( NULL AS SIGNED ) < + 46
----

skipif mysql # not compatible
query III rowsort label-5735
SELECT * FROM tab1 WHERE NOT col1 / - CAST ( NULL AS INTEGER ) < + 46
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 / - 79 * + + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 27 AS col1, col0 - + + col2 FROM tab1
----
27
-45
27
23
27
26

query I rowsort
SELECT ALL - col1 * - 50 AS col0 FROM tab2
----
2550
3350
3850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT - - ( - COUNT( * ) ) DIV - 36 col0 FROM tab2 WHERE NOT + 3 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5739
SELECT DISTINCT - - ( - COUNT ( * ) ) / - 36 col0 FROM tab2 WHERE NOT + 3 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT DISTINCT - 72 DIV - - col1 col1 FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5740
SELECT DISTINCT - 72 / - - col1 col1 FROM tab1
----
-1
-14
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT ALL + COUNT( * ) * 65 * COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL + COUNT ( * ) * 65 * COUNT ( * ) FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT COUNT( - 35 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5742
SELECT COUNT ( - 35 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + col0 + + - col1 - + - 73 + - col0 * col2 * + - 24 AS col0, 87 col1 FROM tab0 WHERE - col1 IS NULL
----

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

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
83

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

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

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

skipif mysql # not compatible
query I rowsort label-5748
SELECT - COUNT ( * ) + + COUNT ( * ) / 5 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - - 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT - col2 DIV + + col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-5750
SELECT - col2 / + + col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
10
44
98

query I rowsort
SELECT DISTINCT + - 83 * - 81 + - + col0 AS col0 FROM tab2 AS cor0
----
6648
6659
6677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT DISTINCT col0 * + + CAST( + col2 AS SIGNED ) + + 9 AS col2 FROM tab1 AS cor0
----
4905
5024
6197

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT col0 * + + CAST ( + col2 AS INTEGER ) + + 9 AS col2 FROM tab1 AS cor0
----
4905
5024
6197

query I rowsort
SELECT - ( col2 ) * + + 19 AS col1 FROM tab2 AS cor0
----
-1102
-437
-760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT - SUM( + col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5755
SELECT - SUM ( + col2 ) col1 FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 <= - + col1 + + + col2
----
85
5
59
91
47
68

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5759
SELECT ALL * FROM tab0 WHERE NOT col2 <= CAST( - - 41 AS DECIMAL )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-5759
SELECT ALL * FROM tab0 WHERE NOT col2 <= CAST ( - - 41 AS REAL )
----
15
81
47
97
1
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT + - col0 DIV + - col1 + + 0 + + + col2 AS col2 FROM tab2 AS cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-5761
SELECT + - col0 / + - col1 + + 0 + + + col2 AS col2 FROM tab2 AS cor0
----
23
40
59

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

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

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

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

query I rowsort
SELECT ALL col1 - + col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT - 74 - COUNT( * ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT - 74 - COUNT ( * ) FROM tab0 AS cor0
----
-77

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

query I rowsort
SELECT 55 * 71 FROM tab0 cor0
----
3905
3905
3905

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 - col0 <> - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 11 * - + col2 AS col2, + 23 FROM tab1
----
-1056
23
-649
23
-748
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5778
SELECT - 62 DIV - col1 AS col0 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-5778
SELECT - 62 / - col1 AS col0 FROM tab1
----
1
12
4

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 28
----

query I rowsort
SELECT ALL col2 * col0 * col1 - - + col2 + col0 FROM tab2 AS cor0
----
197224
291583
54027

query I rowsort
SELECT DISTINCT - + AVG ( - - col1 ) AS col1 FROM tab0 WHERE 42 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT - ( 40 ) + 99 + MIN( DISTINCT ( 4 ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
63

skipif mysql # not compatible
query I rowsort label-5782
SELECT - ( 40 ) + 99 + MIN ( DISTINCT ( 4 ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT - - col0 DIV - - col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-5783
SELECT - - col0 / - - col1 FROM tab1 AS cor0
----
1
17
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + - 37 col0 FROM tab2 AS cor0
----
-60
-77
-95

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 34 IS NULL AND NOT NULL BETWEEN NULL AND - 92
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL - SUM( 22 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - SUM ( 22 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT + 17 * + - 18 + ( - COUNT( * ) ) col0 FROM tab2 AS cor0
----
-309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5790
SELECT DISTINCT + 17 * + - 18 + ( - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-309

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT + - 83 DIV ( col0 ) - + - 2 + + col0 + + 48 FROM tab0 AS cor0
----
137
147
60

skipif mysql # not compatible
query I rowsort label-5791
SELECT + - 83 / ( col0 ) - + - 2 + + col0 + + 48 FROM tab0 AS cor0
----
137
147
60

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

query I rowsort
SELECT - 34 FROM tab1 AS cor0 WHERE + 12 IS NULL
----

query II rowsort
SELECT + 51, 63 AS col0 FROM tab1 AS cor0
----
51
63
51
63
51
63

query II rowsort
SELECT - 34 * + + 76, + col1 FROM tab2 AS cor0
----
-2584
51
-2584
67
-2584
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5796
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5799
SELECT ALL 8 AS col1, CAST( NULL AS SIGNED ) * ( + + 5 ) AS col2 FROM tab0
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-5799
SELECT ALL 8 AS col1, CAST ( NULL AS INTEGER ) * ( + + 5 ) AS col2 FROM tab0
----
8
NULL
8
NULL
8
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5800
SELECT + 63, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-5800
SELECT + 63, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
63
NULL
63
NULL
63
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 WHERE 53 * - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT col2 * 94 * col0 DIV + + col0 AS col1 FROM tab1
----
5546
6392
9024

skipif mysql # not compatible
query I rowsort label-5802
SELECT col2 * 94 * col0 / + + col0 AS col1 FROM tab1
----
5546
6392
9024

query I rowsort
SELECT ALL + + 9 * + col1 * + - ( - 66 ) * 20 AS col1 FROM tab1 AS cor0
----
166320
558360
59400

query I rowsort
SELECT DISTINCT - col2 * - ( - 84 ) FROM tab1 AS cor0 WHERE + 6 >= - 46
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT 73 + + - 19 + 72 FROM tab2
----
126

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

query I rowsort
SELECT ALL + 73 * 27 + - + 56 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 439920656e1fb212578416e291efab93

query I rowsort
SELECT - col0 + - - 49 AS col1 FROM tab0
----
-38
-48
34

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 47 ) col2 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5813
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col0 ) / - col1 IN ( col1 / + 23 - + 77 * - CAST( + col2 AS SIGNED ), + 6 * - col1, - col0 / 4, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5813
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col0 ) / - col1 IN ( col1 / + 23 - + 77 * - CAST ( + col2 AS INTEGER ), + 6 * - col1, - col0 / 4, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5814
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) * + 54 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5814
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * + 54 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT col1 * + ( - 71 ) AS col1 FROM tab2 AS cor0
----
-3621
-4757
-5467

query I rowsort
SELECT - col2 * - 77 + + - col2 FROM tab0 AS cor0
----
3572
7524
760

query I rowsort
SELECT ALL - col2 + 77 * + - 36 AS col2 FROM tab0 AS cor0
----
-2782
-2819
-2871

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE 46 IS NULL
----

query I rowsort
SELECT ALL ( - ( - + 51 ) ) + col2 + - col1 FROM tab0
----
149
17
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5822
SELECT + 45 DIV + col2 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5822
SELECT + 45 / + col2 AS col1 FROM tab0
----
0
0
4

query I rowsort
SELECT DISTINCT 94 + + 74 FROM tab2
----
168

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

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

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

query I rowsort
SELECT ALL - col2 + 20 * - col1 AS col2 FROM tab2
----
-1043
-1398
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT DISTINCT - COUNT( * ) + + 72 AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT - COUNT ( * ) + + 72 AS col0 FROM tab2
----
69

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5829
SELECT 29 * - CAST( NULL AS DECIMAL ) + + + 59 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT 29 * - CAST ( NULL AS REAL ) + + + 59 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 73 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col0 * 71 * - + 31 col2 FROM tab1 cor0
----
15902225
18226481
5724801

query I rowsort
SELECT ALL 15 - + + col0 AS col0 FROM tab0 AS cor0
----
-72
-82
0

query I rowsort
SELECT + + 41 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT + + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + + col2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + 81 * COUNT( * ) * - SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
25029

skipif mysql # not compatible
query I rowsort label-5835
SELECT + 81 * COUNT ( * ) * - SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
25029

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL + 32 + + - SUM( - + col2 ) col1 FROM tab2 AS cor0 WHERE + 79 >= - col0 + - 95
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5838
SELECT ALL + 32 + + - SUM ( - + col2 ) col1 FROM tab2 AS cor0 WHERE + 79 >= - col0 + - 95
----
153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT SUM( ALL - - 42 ) AS col0 FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5840
SELECT SUM ( ALL - - 42 ) AS col0 FROM tab0 AS cor0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col2 col1 FROM tab1 AS cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NOT - col2 * + 57 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT ALL + SUM( DISTINCT col2 ), - 96 col2 FROM tab2
----
121
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5845
SELECT ALL + SUM ( DISTINCT col2 ), - 96 col2 FROM tab2
----
121
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 67 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - COUNT( * ) * + ( + - 46 ) FROM tab2 cor0 WHERE NOT + col1 * col1 IS NULL
----
138

skipif mysql # not compatible
query I rowsort label-5847
SELECT - COUNT ( * ) * + ( + - 46 ) FROM tab2 cor0 WHERE NOT + col1 * col1 IS NULL
----
138

query I rowsort
SELECT ( + 63 ) FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT ALL 63 AS col2, + 12 + + COUNT( * ) * - + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
63
39

skipif mysql # not compatible
query II rowsort label-5849
SELECT ALL 63 AS col2, + 12 + + COUNT ( * ) * - + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
63
39

query I rowsort
SELECT DISTINCT + - 83 + col0 AS col0 FROM tab2 cor0
----
-19
-37
-8

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

query I rowsort
SELECT DISTINCT + col0 * - 84 FROM tab1 AS cor0
----
-4284
-7140
-7644

query I rowsort
SELECT ALL 62 * + + 60 FROM tab0 AS cor0
----
3720
3720
3720

query I rowsort
SELECT DISTINCT + col0 * - 73 FROM tab2 AS cor0
----
-3358
-4672
-5475

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

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

query I rowsort
SELECT DISTINCT col0 * - + 49 + + col2 AS col1 FROM tab0
----
-4253
-4654
-688

query I rowsort
SELECT DISTINCT + 83 + + - 38 FROM tab2
----
45

query I rowsort
SELECT col0 * ( - + col1 ) FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT 76 - - - COUNT( * ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT 76 - - - COUNT ( * ) FROM tab1
----
73

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) * - col0 + 12 - + + col1 * 49 = NULL
----

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

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

query I rowsort
SELECT + - col2 - + - col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

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

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

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

query I rowsort
SELECT ALL + 5 * + col0 FROM tab1
----
255
425
455

query I rowsort
SELECT + col0 * col1 * - col2 * col1 AS col1 FROM tab2
----
-15178240
-19527150
-2751858

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col1 ) * 64 / + - col1 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT ALL MAX( - 15 ) DIV - COUNT( * ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL MAX ( - 15 ) / - COUNT ( * ) AS col1 FROM tab1
----
5

query I rowsort
SELECT 39 * - + 88 AS col2 FROM tab2 AS cor0
----
-3432
-3432
-3432

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT + - MIN( ALL + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5876
SELECT + - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - 76 * 60 AS col0 FROM tab0
----
-4560

query I rowsort
SELECT DISTINCT 95 + - col1 AS col2 FROM tab0
----
14
74
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT ALL - 93, + COUNT( * ) AS col1 FROM tab2
----
-93
3

skipif mysql # not compatible
query II rowsort label-5879
SELECT ALL - 93, + COUNT ( * ) AS col1 FROM tab2
----
-93
3

query II rowsort
SELECT + col2 AS col2, 28 * col2 AS col2 FROM tab1
----
59
1652
68
1904
96
2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * - - col0 * - 97 * + + col2 col2 FROM tab0
----
-5128875
-6329250
-69861825

query II rowsort
SELECT 30, col2 * - + col1 AS col1 FROM tab1
----
30
-1344
30
-295
30
-3196

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 = col1 / 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + 60 * + + COUNT( * ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 60 * + + COUNT ( * ) FROM tab0
----
180

query I rowsort
SELECT ALL + col2 + col2 - + + col0 AS col1 FROM tab2 cor0
----
0
16
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5887
SELECT DISTINCT - MAX( ALL - CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT - MAX ( ALL - CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 26 + 8 FROM tab1 AS cor0
----
-18
-18
-18

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IS NULL AND col2 IS NULL
----

query II rowsort
SELECT 94 * + col0 - + + 72, + 21 AS col0 FROM tab0
----
1338
21
8106
21
9046
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 33 col1 FROM tab1
----
118
124
84

query I rowsort
SELECT DISTINCT 13 + - col0 AS col1 FROM tab1
----
-38
-72
-78

query I rowsort
SELECT 82 + + col1 FROM tab2
----
133
149
159

query I rowsort
SELECT DISTINCT col0 - 97 FROM tab0
----
-10
-82
0

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - + 59 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - 75
----

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

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

query I rowsort
SELECT ALL - col0 * col1 + - ( col0 ) AS col2 FROM tab1 WHERE 28 NOT IN ( 50 * col0 - col2 * + 0 )
----
-4368
-510
-765

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5908
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE ( NULL ) <> ( - 85 )
----

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + ( - CAST ( NULL AS REAL ) ) FROM tab2 WHERE ( NULL ) <> ( - 85 )
----

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

query I rowsort
SELECT ALL + ( - 49 ) AS col1 FROM tab1
----
-49
-49
-49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 92 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + 85 * 24 FROM tab1
----
2045
2054
2087

query I rowsort
SELECT DISTINCT - col1 + - 84 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1
----

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

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( 29 )
----

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

query I rowsort
SELECT col0 + + 7 FROM tab2
----
53
71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + ( MIN( 75 ) ) * - 5 + ( - MIN( col1 ) ) FROM tab1 WHERE - 82 NOT BETWEEN NULL AND col1 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT + ( MIN ( 75 ) ) * - 5 + ( - MIN ( col1 ) ) FROM tab1 WHERE - 82 NOT BETWEEN NULL AND col1 * + col0
----
NULL

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

query I rowsort
SELECT 27 * - 28 FROM tab0
----
-756
-756
-756

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

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

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + col2 / col1 + 60 AS col1 FROM tab2
----
60
60
60

query I rowsort
SELECT DISTINCT 34 - + col0 AS col1 FROM tab0
----
-53
-63
19

query I rowsort
SELECT 4 * col2 + col2 FROM tab2
----
115
200
290

query I rowsort
SELECT ( - col0 ) + + 40 FROM tab2
----
-24
-35
-6

query I rowsort
SELECT + 23 + 75 FROM tab1
----
98
98
98

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

query I rowsort
SELECT DISTINCT + 70 + col0 FROM tab1
----
121
155
161

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5933
SELECT + ( + 89 ) DIV + MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT + ( + 89 ) / + MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 17 FROM tab2 WHERE NOT NULL IN ( - 41 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT ALL - col0 DIV + col2 + col1 col2 FROM tab1
----
14
4
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5935
SELECT ALL - col0 / + col2 + col1 col2 FROM tab1
----
14
4
46

query I rowsort
SELECT DISTINCT - col0 + col1 * + 86 FROM tab1
----
1153
345
3951

query I rowsort
SELECT + col1 * col2 FROM tab2 WHERE 68 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 39 BETWEEN col0 AND ( + ( col0 ) * - 20 )
----

query I rowsort
SELECT DISTINCT 61 - + col2 AS col0 FROM tab0 cor0 WHERE NOT ( + 64 ) IS NULL
----
-38
14
51

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5941
SELECT + - col2 + - 61 DIV CAST( + col2 + + col1 * col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5941
SELECT + - col2 + - 61 / CAST ( + col2 + + col1 * col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - + 87 - col2 FROM tab1 AS cor0
----
-146
-155
-183

query I rowsort
SELECT ALL - 53 * - col1 AS col1 FROM tab0 AS cor0
----
1113
4293
53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT + 94 DIV col1 + + ( 77 ) AS col1 FROM tab1 AS cor0
----
79
83
95

skipif mysql # not compatible
query I rowsort label-5945
SELECT + 94 / col1 + + ( 77 ) AS col1 FROM tab1 AS cor0
----
79
83
95

query I rowsort
SELECT ALL 34 AS col2 FROM tab2 cor0
----
34
34
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5947
SELECT ALL ( + ( 22 ) ) * + col2 FROM tab2 AS cor0 WHERE NOT - col0 - - CAST( + 25 - 48 * - col1 AS DECIMAL ) / 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL ( + ( 22 ) ) * + col2 FROM tab2 AS cor0 WHERE NOT - col0 - - CAST ( + 25 - 48 * - col1 AS REAL ) / 70 IS NOT NULL
----

query I rowsort
SELECT - 82 * 43 AS col2 FROM tab0 AS cor0
----
-3526
-3526
-3526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT DISTINCT - 8 DIV - COUNT( * ) AS col1 FROM tab0 WHERE col1 NOT IN ( col2 * - col0 )
----
2

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - 8 / - COUNT ( * ) AS col1 FROM tab0 WHERE col1 NOT IN ( col2 * - col0 )
----
2

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( - col1 ) AND 95
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT - COUNT( ALL 63 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT - COUNT ( ALL 63 ) FROM tab0
----
-3

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - 50 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab0 WHERE ( NULL ) <= ( NULL )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col1 + CAST( NULL AS SIGNED ) * 33 NOT IN ( - 58 )
----

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col1 + CAST ( NULL AS INTEGER ) * 33 NOT IN ( - 58 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT - COUNT( * ) * - - 36 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-5962
SELECT - COUNT ( * ) * - - 36 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT 89 * + + SUM( - - ( 12 ) ) FROM tab2
----
3204

skipif mysql # not compatible
query I rowsort label-5963
SELECT 89 * + + SUM ( - - ( 12 ) ) FROM tab2
----
3204

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 42 - col0 ) BETWEEN ( - 92 * col1 ) AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0, 15 - + - 12 AS col1 FROM tab1 AS cor0
----
-51
27
-85
27
-91
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 1 < - col0
----
3

skipif mysql # not compatible
query I rowsort label-5967
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 1 < - col0
----
3

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT 69, MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
69
-23

skipif mysql # not compatible
query II rowsort label-5969
SELECT 69, MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
69
-23

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT col2 * + col2 + col1 NOT IN ( 58 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT + MAX( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT - ( CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 + 35 * + col2 FROM tab2
----
1464
2105
851

query I rowsort
SELECT ( - - 39 ) AS col1 FROM tab0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT DISTINCT col2 + - - 72 - + col0 DIV - col0 AS col1 FROM tab2
----
113
131
96

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT col2 + - - 72 - + col0 / - col0 AS col1 FROM tab2
----
113
131
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT ALL CAST( + ( - 62 ) AS SIGNED ) + - 77 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL CAST ( + ( - 62 ) AS INTEGER ) + - 77 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL 15 + + col1 * + col2 AS col2 FROM tab1
----
1359
310
3211

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5977
SELECT DISTINCT + CAST( ( + SUM( ALL - ( col2 ) ) ) AS DECIMAL ) AS col1 FROM tab0 WHERE NOT + - col1 <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + CAST ( ( + SUM ( ALL - ( col2 ) ) ) AS REAL ) AS col1 FROM tab0 WHERE NOT + - col1 <> - col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5978
SELECT 65 * + COUNT ( * ) FROM tab0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT + 30 + - - COUNT( * ) * - - 77 * + COUNT( * ) FROM tab1 cor0
----
723

skipif mysql # not compatible
query I rowsort label-5979
SELECT + 30 + - - COUNT ( * ) * - - 77 * + COUNT ( * ) FROM tab1 cor0
----
723

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + - col2 + - + 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT COUNT( * ) * 71 AS col1 FROM tab1 WHERE + 64 NOT IN ( - col2 )
----
213

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT COUNT ( * ) * 71 AS col1 FROM tab1 WHERE + 64 NOT IN ( - col2 )
----
213

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

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

query I rowsort
SELECT DISTINCT - + col0 - - + ( col1 ) FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT + col2 - 41 - - col2 AS col2 FROM tab0 cor0
----
-21
157
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 56
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( * ) * - - 88 - + 97 * + + 27 FROM tab0 AS cor0
----
3
-2883

skipif mysql # not compatible
query II rowsort label-5986
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( * ) * - - 88 - + 97 * + + 27 FROM tab0 AS cor0
----
3
-2883

query I rowsort
SELECT + 46 * + 19 * ( + col1 ) FROM tab2 AS cor0
----
44574
58558
67298

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5989
SELECT DISTINCT + COUNT( * ), + 48 col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
3
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5989
SELECT DISTINCT + COUNT ( * ), + 48 col0 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
3
48

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 30 col0 FROM tab1 WHERE - col1 IN ( + 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5992
SELECT DISTINCT + 79 AS col0, - CAST( NULL AS SIGNED ) + 71 AS col0 FROM tab2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-5992
SELECT DISTINCT + 79 AS col0, - CAST ( NULL AS INTEGER ) + 71 AS col0 FROM tab2
----
79
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5993
SELECT + 57, col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
57
-1
57
-2
57
0

skipif mysql # not compatible
query II rowsort label-5993
SELECT + 57, col1 / - col2 AS col0 FROM tab0 AS cor0
----
57
-1
57
-2
57
0

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - 32 * - - col1 FROM tab0 AS cor0
----
-15
-2592
-87
-672
-97
-32

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5998
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
10
47
99

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

query I rowsort
SELECT col2 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT + - SUM( - col1 ) * 21 - - 88 AS col0 FROM tab2 AS cor0
----
4183

skipif mysql # not compatible
query I rowsort label-6002
SELECT + - SUM ( - col1 ) * 21 - - 88 AS col0 FROM tab2 AS cor0
----
4183

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT - MIN( 65 ) FROM tab0 cor0 WHERE NOT col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - MIN ( 65 ) FROM tab0 cor0 WHERE NOT col1 > NULL
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + col0 AS col2 FROM tab0 WHERE + + 67 NOT BETWEEN - col1 * - - 84 AND - - 98 + - col1 + 58
----

query I rowsort
SELECT col1 + - 6 FROM tab0
----
-5
15
75

query II rowsort
SELECT ALL + col2 AS col1, + col1 AS col0 FROM tab2 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * - + 24 + + + ( 62 ) + - + col0 * - col0 col1 FROM tab2
----
2682
4662
6191

query I rowsort
SELECT ALL 51 * + col0 FROM tab0
----
4437
4947
765

query I rowsort
SELECT ALL + col1 * 64 * - col0 AS col0 FROM tab0
----
-116928
-6208
-77760

query I rowsort
SELECT ALL + col1 * - + col1 AS col2 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 99 - - 6 FROM tab2 AS cor0
----
105
105
105

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

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

query II rowsort
SELECT ALL + col1 * ( - col2 ) AS col2, col1 * 58 AS col1 FROM tab1 AS cor0
----
-1344
812
-295
290
-3196
2726

query I rowsort
SELECT col0 * + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 92 + 50 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
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-6018
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-9

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6020
SELECT CAST( ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6020
SELECT CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6022
SELECT * FROM tab2 WHERE ( + col1 ) BETWEEN ( - CAST( - 48 AS SIGNED ) ) AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-6022
SELECT * FROM tab2 WHERE ( + col1 ) BETWEEN ( - CAST ( - 48 AS INTEGER ) ) AND ( col2 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL - - CAST ( NULL AS REAL ) - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6025
SELECT ALL - col0 DIV col1 * - ( col1 ) FROM tab2 AS cor0
----
0
0
67

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL - col0 / col1 * - ( col1 ) FROM tab2 AS cor0
----
0
0
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT DISTINCT - + 36 / - + 15 * + - CAST( NULL AS SIGNED ) * - - 5 - + 30 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - + 36 / - + 15 * + - CAST ( NULL AS INTEGER ) * - - 5 - + 30 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT ALL ( + 27 ) DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL ( + 27 ) / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT + + col2 DIV + ( - - 67 ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6028
SELECT + + col2 / + ( - - 67 ) FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT DISTINCT - 29 DIV + col0 * + + col1 * col1 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6029
SELECT DISTINCT - 29 / + col0 * + + col1 * col1 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 76 AS col0 FROM tab2 cor0
----
76
76
76

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

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

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

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

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

query I rowsort
SELECT 19 AS col2 FROM tab2 cor0 WHERE NOT - col0 + + col1 NOT IN ( - 29 / + col1 )
----

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

query I rowsort
SELECT DISTINCT + 38 FROM tab2 AS cor0 WHERE ( NOT + - col0 + + + 53 * - + col2 + - + 35 + - - col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col2 col2 FROM tab0
----
752
880
9702

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

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

query I rowsort
SELECT ALL col1 * 88 FROM tab1 cor0
----
1232
4136
440

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

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

query I rowsort
SELECT ALL - 85 + + ( + 80 ) AS col1 FROM tab1 AS cor0
----
-5
-5
-5

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 55 * 35 IS NULL
----

query I rowsort
SELECT ALL - + col1 + + + 66 * - col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT ALL + COUNT( * ) * 54 * COUNT( DISTINCT - 44 ) + + - 67 AS col1, - 51 FROM tab2
----
95
-51

skipif mysql # not compatible
query II rowsort label-6050
SELECT ALL + COUNT ( * ) * 54 * COUNT ( DISTINCT - 44 ) + + - 67 AS col1, - 51 FROM tab2
----
95
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT - ( - COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6051
SELECT - ( - COUNT ( * ) ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 + + - col2 * + + col0 * - col1 AS col2 FROM tab1
----
25160
290927
68595

query I rowsort
SELECT - 43 * - 28 FROM tab1, tab0 AS cor0
----
9 values hashing to f84d8b054bddc079e79e2117befc84f0

query I rowsort
SELECT col0 FROM tab2 WHERE + col2 <= NULL
----

query I rowsort
SELECT ALL col2 * + + 73 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT DISTINCT + col2 + - + 29 + col1 AS col0 FROM tab2
----
45
88
96

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

query I rowsort
SELECT 39 + - 37 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT DISTINCT + col1 - - col2 * + col2 DIV col2 * + col2 FROM tab0 AS cor0
----
121
2290
9802

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + col1 - - col2 * + col2 / col2 * + col2 FROM tab0 AS cor0
----
121
2290
9802

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

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

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

query I rowsort
SELECT - col1 * + col1 + - - 82 + col1 * - col0 AS col0 FROM tab0 cor0
----
-16
-2186
-7694

query I rowsort
SELECT - 13 * - col0 FROM tab1
----
1105
1183
663

query II rowsort
SELECT ALL - 62 AS col0, 76 AS col0 FROM tab2
----
-62
76
-62
76
-62
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6065
SELECT ALL + MIN( ALL 52 ) * + COUNT( * ) - + + COUNT( * ) col1, + 74 FROM tab2 AS cor0
----
153
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6065
SELECT ALL + MIN ( ALL 52 ) * + COUNT ( * ) - + + COUNT ( * ) col1, + 74 FROM tab2 AS cor0
----
153
74

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

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL - col2 / - - col2 AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - 58 * + col0 * col2 AS col1 FROM tab1 cor0
----
283968
290870
358904

query I rowsort
SELECT - 40 FROM tab0 cor0 WHERE NOT NULL IN ( col0 * + - col0, ( col2 ), - col1 / + col2 * + + col0 + 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT DISTINCT ( - col2 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT ( - col2 ) / - col1 AS col1 FROM tab0 AS cor0
----
0
99

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

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

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

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT - 28 = - + col1
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 28 * - + col0 * 52 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + col2 * - col0 FROM tab2
----
163840
326250
48668

query II rowsort
SELECT DISTINCT 85 * - col2, col1 FROM tab0
----
-3995
81
-8415
1
-850
21

query I rowsort
SELECT col2 * 53 AS col2 FROM tab2
----
1219
2120
3074

query II rowsort
SELECT ALL + col2 * col2, + col0 AS col0 FROM tab2
----
1600
64
3364
75
529
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT COUNT( * ) FROM tab2 WHERE NOT + 69 <> + - 52 + + ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6078
SELECT COUNT ( * ) FROM tab2 WHERE NOT + 69 <> + - 52 + + ( - col0 )
----
0

query II rowsort
SELECT DISTINCT col0 * col1 AS col2, col2 * col2 AS col2 FROM tab0
----
1215
2209
1827
100
97
9801

query I rowsort
SELECT + + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT DISTINCT MIN( 51 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT MIN ( 51 ) FROM tab1 AS cor0
----
51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6084
SELECT DISTINCT - 3 DIV + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT - 3 / + COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 + + + 97 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * + col1 * - - col0 IS NULL
----
16
76
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT DISTINCT 92 + + col0 - CAST( - 81 AS SIGNED ) FROM tab0
----
188
260
270

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT 92 + + col0 - CAST ( - 81 AS INTEGER ) FROM tab0
----
188
260
270

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

query III rowsort
SELECT * FROM tab1 WHERE + - 54 / 5 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 76 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 54, col0 * col2 AS col2 FROM tab1
----
54
4896
54
5015
54
6188

query I rowsort
SELECT ALL - 43 - + + 17 * - 27 AS col2 FROM tab0
----
416
416
416

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ALL col2 - + col1 DIV + + col2 FROM tab0
----
46
8
99

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL col2 - + col1 / + + col2 FROM tab0
----
46
8
99

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

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

query I rowsort
SELECT - + col1 - + + 54 FROM tab0 AS cor0
----
-135
-55
-75

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

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

query I rowsort
SELECT ALL 10 * - + 3 FROM tab1
----
-30
-30
-30

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT - 96 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * - - col1 <> NULL
----

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

query I rowsort
SELECT col1 * + + 69 FROM tab1
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT - 96 * + SUM( + col1 ) FROM tab0
----
-9888

skipif mysql # not compatible
query I rowsort label-6105
SELECT - 96 * + SUM ( + col1 ) FROM tab0
----
-9888

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT COUNT( ALL - 58 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT COUNT ( ALL - 58 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * - 63 col1 FROM tab0
----
-3906
-3906
-3906

query I rowsort
SELECT DISTINCT - + 49 * + col0 - - col2 - 55 AS col1 FROM tab1 cor0
----
-2458
-4161
-4446

onlyif mysql # DIV for integer division: 
query I rowsort label-6109
SELECT 45 + - + col1 DIV col0 AS col0 FROM tab0
----
40
45
45

skipif mysql # not compatible
query I rowsort label-6109
SELECT 45 + - + col1 / col0 AS col0 FROM tab0
----
40
45
45

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

skipif mysql # not compatible
query I rowsort label-6110
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-6111
SELECT - col1 DIV + + col2 + - + col2 FROM tab1 AS cor0 WHERE col2 - + col0 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6111
SELECT - col1 / + + col2 + - + col2 FROM tab1 AS cor0 WHERE col2 - + col0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT + + 51 + + - 2 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 73 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6113
SELECT + + 51 + + - 2 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 73 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT 61 * - - col2 + col0, - col2 AS col0 FROM tab1
----
3684
-59
4239
-68
5907
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - 1 - MAX( col1 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-6116
SELECT - 1 - MAX ( col1 ) FROM tab2
----
-78

query II rowsort
SELECT - + col1 AS col1, - col0 / col2 FROM tab1 WHERE NULL NOT IN ( + - 3 / - ( - col1 ), + col1 * + + 35 )
----

query II rowsort
SELECT ALL 10 * col2 + - 12 AS col0, + col1 * + + col0 AS col0 FROM tab0
----
458
1215
88
1827
978
97

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 < - + col0
----

query I rowsort
SELECT + col1 + 80 FROM tab2
----
131
147
157

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

query I rowsort
SELECT DISTINCT + - 41 * + col1 - + - col1 FROM tab0 cor0
----
-3240
-40
-840

query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT - col0 - + 17 FROM tab2 AS cor0
----
-63
-81
-92

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT COUNT( * ) * - - 40 col1 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6128
SELECT COUNT ( * ) * - - 40 col1 FROM tab0 AS cor0
----
120

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6130
SELECT - + MIN( ALL + 0 ) col1, 85 + + 40 * - COUNT( * ) + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0
-266

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6130
SELECT - + MIN ( ALL + 0 ) col1, 85 + + 40 * - COUNT ( * ) + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0
-266

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + - SUM( DISTINCT - ( 12 ) ) * 72 / + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 25 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT + - SUM ( DISTINCT - ( 12 ) ) * 72 / + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 25 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT + MAX( ALL - 65 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-65

skipif mysql # not compatible
query I rowsort label-6133
SELECT + MAX ( ALL - 65 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT ALL - - col2 * + - CAST( + ( - 29 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1711
1972
2784

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - - col2 * + - CAST ( + ( - 29 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1711
1972
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 * - col1 col2 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT DISTINCT + col0 * + 47 AS col1 FROM tab2
----
2162
3008
3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 * + - col1, - 67 col0 FROM tab1
----
266
-67
893
-67
95
-67

query I rowsort
SELECT DISTINCT col2 * + - 92 AS col2 FROM tab0
----
-4324
-9108
-920

query I rowsort
SELECT - col0 + 60 * - 35 FROM tab1
----
-2151
-2185
-2191

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6143
SELECT - SUM ( DISTINCT - col1 ) col0 FROM tab2
----
195

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

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - SUM ( DISTINCT 23 ) FROM tab1 AS cor0
----
-23

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

skipif mysql # not compatible
query I rowsort label-6145
SELECT + col1 / + ( + + col1 ) AS col2 FROM tab2 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - 74 ) AS col2, 79 + + col1 * + 69 + + 94 col2 FROM tab2 AS cor0
----
-74
3692
-74
4796
-74
5486

query I rowsort
SELECT + col0 + + col2 - + col2 + + + col0 AS col0 FROM tab1 AS cor0 WHERE + ( + + 37 ) * - + col0 * + - col2 + - col1 * - + 96 NOT IN ( + col2 * - col0 + - + 33, + col2 + 17 )
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL 38 + 5 * - COUNT( * ) * - COUNT( * ) * - 45 AS col0 FROM tab0
----
-1987

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL 38 + 5 * - COUNT ( * ) * - COUNT ( * ) * - 45 AS col0 FROM tab0
----
-1987

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + COUNT( * ) + + - 55 AS col1 FROM tab1 WHERE NULL IS NULL
----
-52

skipif mysql # not compatible
query I rowsort label-6150
SELECT + COUNT ( * ) + + - 55 AS col1 FROM tab1 WHERE NULL IS NULL
----
-52

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT 30 * - ( ( - CAST( NULL AS SIGNED ) ) ) + + + 24 - + - col1 + - col0 * - 57 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT 30 * - ( ( - CAST ( NULL AS INTEGER ) ) ) + + + 24 - + - col1 + - col0 * - 57 AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT - - col2 + + + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT col0 * - - col0 * 41 - col1 * - col1 AS col1 FROM tab1 AS cor0
----
106837
296250
341730

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT 73 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT 73 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
70

query I rowsort
SELECT ALL - col0 + - col0 / + 58 * - ( - col1 ) FROM tab0 AS cor0 WHERE NOT col1 + + + 51 + + col0 * + + col1 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 61 * - 27 NOT BETWEEN - col2 AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT ALL + CAST( NULL AS SIGNED ) / + AVG ( DISTINCT - 29 ) AS col0 FROM tab1 WHERE ( - col0 * - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL + CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT - 29 ) AS col0 FROM tab1 WHERE ( - col0 * - col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - 54 - + 21 FROM tab2
----
2463
3435
4029

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT ALL 4 DIV + 52 - + - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL 4 / + 52 - + - col1 FROM tab2
----
51
67
77

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

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

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab2
----
-5

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

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + 38 * + col0 IS NOT NULL
----
1
21
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL + + CAST( - + 64 AS SIGNED ) * + col1 AS col2 FROM tab2 cor0
----
-3264
-4288
-4928

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL + + CAST ( - + 64 AS INTEGER ) * + col1 AS col2 FROM tab2 cor0
----
-3264
-4288
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL - + 14 + ( + + COUNT( DISTINCT - 0 ) ) FROM tab1 WHERE + + col2 * - 10 IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - + 14 + ( + + COUNT ( DISTINCT - 0 ) ) FROM tab1 WHERE + + col2 * - 10 IS NOT NULL
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + MIN( ALL - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6173
SELECT + MIN ( ALL - col0 ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT col1 + + 9 FROM tab1
----
14
23
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6175
SELECT DISTINCT col1 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6175
SELECT DISTINCT col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT - 46, ( + + COUNT( * ) ) + - 95 AS col1 FROM tab0
----
-46
-92

skipif mysql # not compatible
query II rowsort label-6176
SELECT - 46, ( + + COUNT ( * ) ) + - 95 AS col1 FROM tab0
----
-46
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70 col2, + 73 * + - 98 - + + col2 FROM tab1
----
-70
-7213
-70
-7222
-70
-7250

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

query II rowsort
SELECT ALL 15 AS col2, 21 - - 95 + - 42 * + col0 + - col0 FROM tab1
----
15
-2077
15
-3539
15
-3797

query I rowsort
SELECT ALL + col2 * col0 * + col2 AS col0 FROM tab0
----
33135
8700
950697

query II rowsort
SELECT DISTINCT col2, col2 + + col2 FROM tab0
----
10
20
47
94
99
198

query I rowsort
SELECT ALL - - 84 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - + 54 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query II rowsort
SELECT DISTINCT col0 + + 22 * + col1 AS col0, - col1 * + col1 FROM tab1
----
1125
-2209
195
-25
359
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT + MAX( + 11 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT + MAX ( + 11 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
11

query I rowsort
SELECT ALL - col1 * - 10 + - col0 - + col0 FROM tab1 AS cor0
----
-120
288
38

query I rowsort
SELECT ALL + col0 - + col2 + 64 AS col2 FROM tab0 cor0
----
141
32
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6188
SELECT ALL + + COUNT( * ) DIV - COUNT( * ), 72 AS col1 FROM tab2 cor0
----
-1
72

skipif mysql # not compatible
query II rowsort label-6188
SELECT ALL + + COUNT ( * ) / - COUNT ( * ), 72 AS col1 FROM tab2 cor0
----
-1
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT ALL - 72 DIV + - 72 - 75 FROM tab2 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL - 72 / + - 72 - 75 FROM tab2 AS cor0
----
-74
-74
-74

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

query I rowsort
SELECT ALL + col0 * + col1 * - - col1 + col1 AS col2 FROM tab2
----
119697
336742
379533

query I rowsort
SELECT - 92 * - 69 FROM tab2 AS cor0
----
6348
6348
6348

query II rowsort
SELECT ALL + + ( - ( + - 67 ) ) AS col2, + col0 * col0 FROM tab0 AS cor0 WHERE + col1 NOT IN ( + col1, + col1, + + 14 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6195
SELECT * FROM tab2 WHERE NOT - col0 * - col2 + + ( + CAST( NULL AS DECIMAL ) ) >= + 94 * + col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-6195
SELECT * FROM tab2 WHERE NOT - col0 * - col2 + + ( + CAST ( NULL AS REAL ) ) >= + 94 * + col1 * + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + SUM( ALL + - 70 ) AS col1 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-6197
SELECT + SUM ( ALL + - 70 ) AS col1 FROM tab0 AS cor0
----
-210

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT + - col1 + col1 + + - ( - col1 ) FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6200
SELECT DISTINCT - 53 * + + col0 * + col1 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT - 53 * + + col0 * + col1 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 26 FROM tab0
----
113
123
41

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

query I rowsort
SELECT col0 * + + col1 * - + 72 FROM tab1
----
-30600
-307944
-51408

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6205
SELECT * FROM tab1 cor0 WHERE 68 NOT IN ( col1, + 29, - - CAST( - + 92 AS DECIMAL ) * 7, col2 )
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-6205
SELECT * FROM tab1 cor0 WHERE 68 NOT IN ( col1, + 29, - - CAST ( - + 92 AS REAL ) * 7, col2 )
----
51
14
96
85
5
59

query I rowsort
SELECT ALL col2 * 87 + - + col0 * - col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - 36 AS col0 FROM tab0 cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + COUNT( * ) + ( 64 ) * - 9 * + + COUNT( * ) - - 48 * + + 92 * - + 74 AS col0 FROM tab0 AS cor0
----
-328509

skipif mysql # not compatible
query I rowsort label-6208
SELECT + COUNT ( * ) + ( 64 ) * - 9 * + + COUNT ( * ) - - 48 * + + 92 * - + 74 AS col0 FROM tab0 AS cor0
----
-328509

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - - SUM( 38 ) + 91 AS col2 FROM tab1 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-6209
SELECT - - SUM ( 38 ) + 91 AS col2 FROM tab1 AS cor0
----
205

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

query I rowsort
SELECT ALL 21 - + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30
-64
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 63 / - 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 63 / - 28 IS NULL
----
0

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

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

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

query I rowsort
SELECT ALL 0 * - + 10 * - + col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 55 + - + ( 54 ) <= + 59 + - - col0 - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 28 / - col2 + - 86 NOT BETWEEN + col0 AND ( - col1 )
----

query I rowsort
SELECT - 85 * - 57 * + col0 AS col0 FROM tab0
----
421515
469965
72675

onlyif mysql # DIV for integer division: 
query II rowsort label-6219
SELECT + col2 * col1 DIV col2, - 77 AS col2 FROM tab0 AS cor0
----
1
-77
21
-77
81
-77

skipif mysql # not compatible
query II rowsort label-6219
SELECT + col2 * col1 / col2, - 77 AS col2 FROM tab0 AS cor0
----
1
-77
21
-77
81
-77

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 53 IN ( + col0 + + + col0 * - col1, 43, + 89 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6223
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS SIGNED ) BETWEEN - 27 AND + 38 + - + 44
----

skipif mysql # not compatible
query IIIIII rowsort label-6223
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS INTEGER ) BETWEEN - 27 AND + 38 + - + 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT col2 + + col0 DIV - col1 + + - 89 AS col2 FROM tab1
----
-22
-47
4

skipif mysql # not compatible
query I rowsort label-6224
SELECT col2 + + col0 / - col1 + + - 89 AS col2 FROM tab1
----
-22
-47
4

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

query I rowsort
SELECT col2 * + col1 - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1330
290
3149

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

query II rowsort
SELECT DISTINCT - - col0 AS col0, col1 - - col1 * col2 + + col2 FROM tab2 AS cor0
----
46
1247
64
3197
75
4011

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT DISTINCT - ( MAX( ALL col2 ) ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT - ( MAX ( ALL col2 ) ) AS col2 FROM tab1
----
-96

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

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

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

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

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2, col2 )
----

query I rowsort
SELECT + + 86 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT + col0 DIV - 16 FROM tab0
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT + col0 / - 16 FROM tab0
----
-5
-6
0

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

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

query I rowsort
SELECT + 97 * + col2 AS col0 FROM tab2 AS cor0
----
2231
3880
5626

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

query I rowsort
SELECT DISTINCT - + col2 * + ( - 77 ) / col1 FROM tab1 AS cor0 WHERE + 0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6240
SELECT * FROM tab2 cor0 WHERE NOT - col1 <> - CAST( + col2 AS SIGNED ) * + col0 + - + col1 + - 31 + - 43 * + 97
----

skipif mysql # not compatible
query III rowsort label-6240
SELECT * FROM tab2 cor0 WHERE NOT - col1 <> - CAST ( + col2 AS INTEGER ) * + col0 + - + col1 + - 31 + - 43 * + 97
----

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

skipif mysql # not compatible
query I rowsort label-6241
SELECT + col0 / - + 41 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

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

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

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

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

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

query II rowsort
SELECT 84, 46 AS col2 FROM tab2
----
84
46
84
46
84
46

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6246
SELECT ALL CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT 47 DIV + + 50 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6247
SELECT 47 / + + 50 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT - 32 + - 46 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query II rowsort
SELECT 37 AS col0, col1 + + col2 AS col2 FROM tab0 cor0
----
37
100
37
128
37
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> + 0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6252
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <> + 0
----
0

query I rowsort
SELECT + 71 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT - 8 * + 18 + 46 + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6255
SELECT - 8 * + 18 + 46 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT - col0 DIV col0 + col2 + + + 78 FROM tab0 AS cor0
----
124
176
87

skipif mysql # not compatible
query I rowsort label-6256
SELECT - col0 / col0 + col2 + + + 78 FROM tab0 AS cor0
----
124
176
87

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

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

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

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

query I rowsort
SELECT ALL col0 + + 73 AS col0 FROM tab2
----
119
137
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT ALL + COUNT( * ) DIV + + 89 + - + 23 AS col2 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + COUNT ( * ) / + + 89 + - + 23 AS col2 FROM tab0
----
-23

query I rowsort
SELECT + + col2 FROM tab0 WHERE - 55 + + 81 IS NULL
----

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

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

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

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

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

query I rowsort
SELECT + - 60 - + - col0 FROM tab1 cor0
----
-9
25
31

query III rowsort
SELECT * FROM tab2 WHERE + + ( - col2 ) NOT IN ( + - col2, - 93 )
----

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

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

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

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

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

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

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

query II rowsort
SELECT ALL 79 AS col2, ( col2 ) FROM tab0
----
79
10
79
47
79
99

query I rowsort
SELECT - 81 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6274
SELECT + 45 DIV 32 * - - CAST( + - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6274
SELECT + 45 / 32 * - - CAST ( + - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT - 12 DIV - col1 col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6276
SELECT - 12 / - col1 col1 FROM tab1
----
0
0
2

query I rowsort
SELECT DISTINCT - 45 * - - 34 FROM tab2 AS cor0
----
-1530

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

query I rowsort
SELECT DISTINCT + + 10 FROM tab2 AS cor0
----
10

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - 8 / + + ( 81 ) / + 26 + - - col2 IS NOT NULL
----

query I rowsort
SELECT col0 - - col0 + col0 AS col1 FROM tab0
----
261
291
45

query I rowsort
SELECT ALL + 37 * - col1 + - 66 - col2 FROM tab1
----
-1873
-310
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL + 7 + - MAX( + + 11 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL + 7 + - MAX ( + + 11 ) FROM tab1
----
-4

query I rowsort
SELECT DISTINCT - ( 76 ) + + 41 FROM tab1
----
-35

query I rowsort
SELECT - col1 * + 88 + col2 AS col0 FROM tab2
----
-4465
-5838
-6736

query I rowsort
SELECT DISTINCT col0 - - + ( - + col0 ) FROM tab2
----
0

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

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

query I rowsort
SELECT ALL - col0 * - + 41 + 75 AS col1 FROM tab0 AS cor0
----
3642
4052
690

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT DISTINCT 88 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT 88 / - col1 AS col2 FROM tab2 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT - 23 * - COUNT( * ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - 23 * - COUNT ( * ) AS col1 FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6295
SELECT ALL - - 52 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
52
NULL
52
NULL
52
NULL

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL - - 52 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
52
NULL
52
NULL
52
NULL

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab2 cor0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL MIN( + - 18 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL MIN ( + - 18 ) FROM tab0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT ALL CAST( + ( - 15 ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT + - 55 IS NULL
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL CAST ( + ( - 15 ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT + - 55 IS NULL
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT - col2 DIV - 59 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT - col2 / - 59 FROM tab2
----
0
0
0

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

query I rowsort
SELECT DISTINCT 7 + - 86 FROM tab2
----
-79

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

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

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

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

query I rowsort
SELECT ALL - 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + + col1 * - - col1 col0, 5 - - 80 FROM tab1 AS cor0
----
-201019
85
-2125
85
-9996
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + MAX( ALL + col0 ) + + COUNT( * ) AS col1 FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-6309
SELECT + MAX ( ALL + col0 ) + + COUNT ( * ) AS col1 FROM tab2 cor0
----
78

query I rowsort
SELECT - - col2 + - col2 * 6 AS col1 FROM tab1 AS cor0
----
-295
-340
-480

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

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

query I rowsort
SELECT - - col2 * + 98 + - - col0 * col1 AS col2 FROM tab1 cor0
----
10122
10941
6207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6314
SELECT ALL + CAST( 84 AS SIGNED ) + + col0, + col2 AS col1 FROM tab1 cor0
----
135
96
169
59
175
68

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL + CAST ( 84 AS INTEGER ) + + col0, + col2 AS col1 FROM tab1 cor0
----
135
96
169
59
175
68

query I rowsort
SELECT DISTINCT + col2 + 58 FROM tab0
----
105
157
68

query I rowsort
SELECT DISTINCT + 41 + 69 AS col2 FROM tab2
----
110

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

query III rowsort
SELECT * FROM tab2 WHERE col2 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT ALL CAST( - + 47 AS SIGNED ) - - + 64 FROM tab0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL CAST ( - + 47 AS INTEGER ) - - + 64 FROM tab0
----
17
17
17

query I rowsort
SELECT 68 - col0 * col0 FROM tab2
----
-2048
-4028
-5557

query I rowsort
SELECT + col1 - + + 12 FROM tab0 AS cor0
----
-11
69
9

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

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

query II rowsort
SELECT DISTINCT - 76 AS col1, + 55 FROM tab0 AS cor0
----
-76
55

query I rowsort
SELECT ALL - 62 * - col0 AS col2 FROM tab0
----
5394
6014
930

query I rowsort
SELECT DISTINCT - 68 * 62 FROM tab2
----
-4216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6327
SELECT ALL * FROM tab0 cor0 WHERE col2 * - CAST( col1 AS SIGNED ) + - CAST( 61 AS SIGNED ) - - + col2 IN ( - - col0 + + col2 * + col2 + - - col0 )
----

skipif mysql # not compatible
query III rowsort label-6327
SELECT ALL * FROM tab0 cor0 WHERE col2 * - CAST ( col1 AS INTEGER ) + - CAST ( 61 AS INTEGER ) - - + col2 IN ( - - col0 + + col2 * + col2 + - - col0 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6330
SELECT DISTINCT + col2 DIV + - 27 col0, - ( + + col1 ) FROM tab1 cor0
----
-2
-47
-2
-5
-3
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6330
SELECT DISTINCT + col2 / + - 27 col0, - ( + + col1 ) FROM tab1 cor0
----
-2
-47
-2
-5
-3
-14

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

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

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

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT - - 30 * 45 * + ( + - col0 ) + + 98 / col2 + - col1 + - + 29 + + col1 - - 72 * - + 93 - col2 IS NULL
----
51
85
91

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

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

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

skipif mysql # not compatible
query I rowsort label-6335
SELECT CAST ( 77 AS INTEGER ) AS col2 FROM tab2
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT ( + col1 ) DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT ( + col1 ) / col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 * - 87 FROM tab0
----
-1827
-7047
-87

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

query I rowsort
SELECT 39 * 82 AS col1 FROM tab2
----
3198
3198
3198

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

skipif mysql # not compatible
query I rowsort label-6340
SELECT 82 / - + COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT DISTINCT + col0 * - col1 * - 8 AS col2 FROM tab2
----
18768
39424
40200

query I rowsort
SELECT col0 * + col1 * 61 FROM tab2 cor0
----
143106
300608
306525

query I rowsort
SELECT DISTINCT col2 * + + col1 + + + col0 AS col2 FROM tab2 cor0
----
1219
3144
3961

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 8 - 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab0 WHERE 39 < ( - col0 )
----

query I rowsort
SELECT + 86 FROM tab2 WHERE ( 43 ) <> NULL
----

query I rowsort
SELECT ALL + col0 + 16 FROM tab0
----
103
113
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT DISTINCT 88 DIV col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT 88 / col2 FROM tab0
----
0
1
8

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6353
SELECT DISTINCT + 51 DIV SUM( DISTINCT 15 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT + 51 / SUM ( DISTINCT 15 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT DISTINCT col1 DIV - 26 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT col1 / - 26 FROM tab0
----
-3
0

query I rowsort
SELECT DISTINCT ( 82 ) * col2 + - col1 * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3059
6360
8642

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - MAX( DISTINCT col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6356
SELECT - MAX ( DISTINCT col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT COUNT( * ) + 26 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-6357
SELECT COUNT ( * ) + 26 FROM tab0
----
29

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 20 * - 18 + col0 * col0 >= ( - col1 )
----

query I rowsort
SELECT 15 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
15
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL - SUM( ALL + 37 ) * 45 FROM tab2
----
-4995

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - SUM ( ALL + 37 ) * 45 FROM tab2
----
-4995

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT COUNT( * ) * + 98 AS col1 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-6362
SELECT COUNT ( * ) * + 98 AS col1 FROM tab1
----
294

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - ( + 57 ) ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 = + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT - MIN( 90 ) + 59 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT - MIN ( 90 ) + 59 FROM tab1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT COUNT( * ) * 10 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT COUNT ( * ) * 10 FROM tab1
----
30

query III rowsort
SELECT * FROM tab2 WHERE NOT + 65 > - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT MAX( ALL ( col2 ) ) * + COUNT( * ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-6368
SELECT MAX ( ALL ( col2 ) ) * + COUNT ( * ) AS col2 FROM tab1
----
288

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

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT + 55 / col0 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT 12 * - col1 FROM tab0
----
-12
-252
-972

query I rowsort
SELECT 81 + col2 FROM tab1
----
140
149
177

query I rowsort
SELECT 18 + ( - col2 - + col2 * col2 ) AS col2 FROM tab2
----
-1622
-3404
-534

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT MIN( 36 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6374
SELECT MIN ( 36 ) FROM tab0 AS cor0
----
36

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

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT ALL + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( col0 ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( col0 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT - 96 * col1 FROM tab1
----
-1344
-4512
-480

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

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT + 69 / COUNT ( * ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + 55 ) ) BETWEEN - col0 + 97 * + col1 AND col2 * - 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - 57 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6
28
34

query I rowsort
SELECT + - 36 AS col1 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT ALL 88 * + 56 AS col0 FROM tab1 cor0
----
4928
4928
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT - col2 - + CAST( 20 + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-114
-218
-40

skipif mysql # not compatible
query I rowsort label-6384
SELECT - col2 - + CAST ( 20 + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-114
-218
-40

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 >= col2
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 = - 63
----

query I rowsort
SELECT + + col0 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
2392
4992
5100

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( + 10 )
----

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

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

query I rowsort
SELECT DISTINCT + 78 + col1 FROM tab0
----
159
79
99

query III rowsort
SELECT * FROM tab2 WHERE 31 NOT BETWEEN ( + col1 + ( + 7 + + 91 ) ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 5 FROM tab2 AS cor0 WHERE NULL IS NULL
----
5
5
5

query I rowsort
SELECT col1 * - 73 AS col2 FROM tab0 cor0
----
-1533
-5913
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT MAX( - 46 ) AS col1 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-6400
SELECT MAX ( - 46 ) AS col1 FROM tab0
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ALL + COUNT( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( 64 * - 35 ) IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6402
SELECT ALL + COUNT ( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( 64 * - 35 ) IS NOT NULL
----
9

query I rowsort
SELECT col1 + 76 / - col1 AS col1 FROM tab1 WHERE + col2 BETWEEN ( + col1 ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT 62 + - col1 DIV - 6 FROM tab0 AS cor0
----
62
65
75

skipif mysql # not compatible
query I rowsort label-6404
SELECT 62 + - col1 / - 6 FROM tab0 AS cor0
----
62
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT - MIN( 1 ) FROM tab2 AS cor0 WHERE 88 / - 41 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6405
SELECT - MIN ( 1 ) FROM tab2 AS cor0 WHERE 88 / - 41 IS NOT NULL
----
-1

query I rowsort
SELECT + + col2 * - 54 * + 32 + + col2 * col2 FROM tab1 AS cor0
----
-112880
-156672
-98471

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT 13 * COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6408
SELECT 13 * COUNT ( * ) FROM tab1 AS cor0
----
39

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

query III rowsort
SELECT * FROM tab0 WHERE ( + - 25 ) <= ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab0 WHERE + col1 + - - 97 - + 98 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 BETWEEN ( + 13 * - col0 + - 2 ) AND - 30
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL + COUNT( * ) * + 63 AS col0 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + COUNT ( * ) * + 63 AS col0 FROM tab0
----
189

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-210
-3807
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL COUNT( DISTINCT - + 12 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL COUNT ( DISTINCT - + 12 ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 99 / col0 <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 99 / col0 <> - col1
----
0

query I rowsort
SELECT col2 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
100
2209
9801

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

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

query I rowsort
SELECT - 85 * - - col1 AS col2 FROM tab0 AS cor0
----
-1785
-6885
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL 80 + COUNT( * ) + + - 0 * - 28 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 80 + COUNT ( * ) + + - 0 * - 28 FROM tab2
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-6427
SELECT 45, col2 DIV 36 + - col0 + - col0 * - + col2 + - col1 * + ( + col2 ) AS col2 FROM tab0
----
45
-3116
45
573
45
9409

skipif mysql # not compatible
query II rowsort label-6427
SELECT 45, col2 / 36 + - col0 + - col0 * - + col2 + - col1 * + ( + col2 ) AS col2 FROM tab0
----
45
-3116
45
573
45
9409

query I rowsort
SELECT ALL 55 * col1 + + 16 FROM tab0
----
1171
4471
71

query I rowsort
SELECT ALL 91 + + + 22 FROM tab0
----
113
113
113

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT DISTINCT SUM( ALL col0 ) * - + 71 * + 10 AS col1, + COUNT( * ) col1 FROM tab1
----
-161170
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6432
SELECT DISTINCT SUM ( ALL col0 ) * - + 71 * + 10 AS col1, + COUNT ( * ) col1 FROM tab1
----
-161170
3

query I rowsort
SELECT + col2 + ( + - col1 ) AS col0 FROM tab1
----
21
54
82

query II rowsort
SELECT ALL col0 AS col0, + 73 AS col2 FROM tab1
----
51
73
85
73
91
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 30 IS NULL
----

query I rowsort
SELECT - - 82 + - 7 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6437
SELECT ALL - - COUNT( * ), 56 AS col2 FROM tab2 AS cor0
----
3
56

skipif mysql # not compatible
query II rowsort label-6437
SELECT ALL - - COUNT ( * ), 56 AS col2 FROM tab2 AS cor0
----
3
56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 88 IN ( + col2 + + col2 + + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + - col0 - + 77 AS col1 FROM tab2 cor0
----
-100
-101
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT - + COUNT( ALL - col0 ) * + ( COUNT( * ) ) + - COUNT( * ) + 18 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT - + COUNT ( ALL - col0 ) * + ( COUNT ( * ) ) + - COUNT ( * ) + 18 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL 64 * COUNT( * ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL 64 * COUNT ( * ) FROM tab1
----
192

query I rowsort
SELECT - 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT 98 + col1 + col2 * col2 FROM tab1
----
3584
4769
9328

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-6444
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL + 99 AS col0 FROM tab2 WHERE NOT col2 NOT IN ( - col2 / - CAST( NULL AS SIGNED ) ) AND NOT col0 < ( + 43 * col2 + + 91 * col0 )
----

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + 99 AS col0 FROM tab2 WHERE NOT col2 NOT IN ( - col2 / - CAST ( NULL AS INTEGER ) ) AND NOT col0 < ( + 43 * col2 + + 91 * col0 )
----

query I rowsort
SELECT - col1 - - col0 AS col1 FROM tab0 cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( + 95 + - 72 + col0 + - + col1 + col1 * - + 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT ALL + - CAST( NULL AS SIGNED ) / + col0 FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + - CAST ( NULL AS INTEGER ) / + col0 FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----

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

query I rowsort
SELECT - - 74 - - ( - + ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
120
138
149

onlyif mysql # DIV for integer division: 
query II rowsort label-6451
SELECT col2 DIV + col0 AS col1, - col1 * 67 * col2 FROM tab1 AS cor0
----
0
-19765
0
-214132
1
-90048

skipif mysql # not compatible
query II rowsort label-6451
SELECT col2 / + col0 AS col1, - col1 * 67 * col2 FROM tab1 AS cor0
----
0
-19765
0
-214132
1
-90048

query I rowsort
SELECT DISTINCT + 21 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND - col1 + + - 68 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT 14 + + - col0 < col2
----
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT 14 + + - col0 < col2
----
0

query I rowsort
SELECT DISTINCT col2 * col0 * + 39 * col1 FROM tab2 AS cor0
----
11366550
2104362
7687680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - 25 * - 58 col0 FROM tab2 AS cor0
----
108750
66700
92800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6457
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - COUNT( 84 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - COUNT ( 84 ) FROM tab1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - col1 NOT IN ( + - col2 * - + col1 + - 7 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col1 / - col2
----

query I rowsort
SELECT DISTINCT - 11 - ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6464
SELECT - CAST( - + MIN( DISTINCT - col1 ) AS SIGNED ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6464
SELECT - CAST ( - + MIN ( DISTINCT - col1 ) AS INTEGER ) col1 FROM tab1
----
-47

query I rowsort
SELECT ALL - 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 41 IS NULL
----

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

query I rowsort
SELECT - + col1 + - - 12 AS col2 FROM tab0 AS cor0
----
-69
-9
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT - col2 + CAST( 46 AS SIGNED ) * - 54 * + col0 AS col0 FROM tab1 AS cor0
----
-126780
-211199
-226112

skipif mysql # not compatible
query I rowsort label-6469
SELECT - col2 + CAST ( 46 AS INTEGER ) * - 54 * + col0 AS col0 FROM tab1 AS cor0
----
-126780
-211199
-226112

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

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

query I rowsort
SELECT + 36 + - - 25 AS col0 FROM tab0
----
61
61
61

query I rowsort
SELECT DISTINCT col2 * - 23 + + col2 * + 76 * - col1 * - 40 AS col1 FROM tab2
----
11812106
3565391
9362280

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT ALL - COUNT( * ) + - COUNT( ALL + ( col2 ) ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - COUNT ( * ) + - COUNT ( ALL + ( col2 ) ) AS col0 FROM tab2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT ALL + MAX( ALL 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-6476
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query I rowsort
SELECT + + col0 + + col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col1 * 69 + - + 29 * + 46 + - col1 AS col1, - col1 * col0 AS col0 FROM tab1
----
-382
-714
-994
-425
1862
-4277

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT ALL 45 - + + col2 DIV 69 DIV - + 77 FROM tab0 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL 45 - + + col2 / 69 / - + 77 FROM tab0 AS cor0
----
45
45
45

query II rowsort
SELECT - + col0, col0 * col0 - - + 50 AS col1 FROM tab2 AS cor0
----
-46
2166
-64
4146
-75
5675

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - col1 / + - col1 AS col2 FROM tab0 cor0
----
1

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

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

skipif mysql # not compatible
query I rowsort label-6489
SELECT - COUNT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( - - col0 ) IS NOT NULL
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6491
SELECT DISTINCT col0 DIV 91, + col2 * + col1 AS col2 FROM tab0
----
0
210
0
3807
1
99

skipif mysql # not compatible
query II rowsort label-6491
SELECT DISTINCT col0 / 91, + col2 * + col1 AS col2 FROM tab0
----
0
210
0
3807
1
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL + + 81 + - + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 + + - col1 IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + + 81 + - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 + + - col1 IS NULL
----
78

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

query II rowsort
SELECT col2 * - - 64 AS col1, col2 AS col2 FROM tab0
----
3008
47
6336
99
640
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - col1 NOT BETWEEN + 7 AND + col0 * - col0 * + col1 * + + 30 + - col2 - - col1 / col0 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - col1 NOT BETWEEN + 7 AND + col0 * - col0 * + col1 * + + 30 + - col2 - - col1 / col0 * - 63
----
0

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

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

query I rowsort
SELECT AVG ( + col1 ) AS col1 FROM tab2 WHERE NOT NULL = + - col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT MAX( ALL 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-6500
SELECT MAX ( ALL 34 ) FROM tab1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6501
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - CAST( - - col0 AS SIGNED ) * - - 10 BETWEEN - col1 * - col1 + - col1 * - col1 - + 95 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - CAST ( - - col0 AS INTEGER ) * - - 10 BETWEEN - col1 * - col1 + - col1 * - col1 - + 95 AND NULL
----
0

query I rowsort
SELECT col1 * - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-196
-2209
-25

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

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

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

skipif mysql # not compatible
query I rowsort label-6505
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - col1 * + col2 + + col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT ALL + col0 * + - 60 FROM tab2 AS cor0
----
-2760
-3840
-4500

query II rowsort
SELECT DISTINCT 65, ( + col2 ) * + 89 * + col0 * + col1 + - ( - 37 ) AS col2 FROM tab2 AS cor0
----
65
17543717
65
25939087
65
4802299

query I rowsort
SELECT + col0 * + 49 FROM tab0 AS cor0
----
4263
4753
735

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

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

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

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

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

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

query I rowsort
SELECT 41 * - - 79 - - 71 FROM tab1
----
3310
3310
3310

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

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

query I rowsort
SELECT ALL col2 * - + 26 FROM tab2
----
-1040
-1508
-598

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT + col2 DIV + col1 + - col2 * - col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6517
SELECT + col2 / + col1 + - col2 * - col0 FROM tab2
----
1058
2560
4350

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

query II rowsort
SELECT - 84 + - col0, col0 AS col2 FROM tab0
----
-171
87
-181
97
-99
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6520
SELECT - col0 DIV + col1 + - + col1 AS col2 FROM tab1
----
-17
-22
-48

skipif mysql # not compatible
query I rowsort label-6520
SELECT - col0 / + col1 + - + col1 AS col2 FROM tab1
----
-17
-22
-48

query I rowsort
SELECT DISTINCT + col2 + 38 FROM tab1
----
106
134
97

query II rowsort
SELECT DISTINCT - col0 * col0 AS col1, 47 AS col0 FROM tab2 AS cor0
----
-2116
47
-4096
47
-5625
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT 71 - COUNT( * ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT 71 - COUNT ( * ) FROM tab0
----
68

query I rowsort
SELECT - + 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 23 col2 FROM tab2
----
-1334
-529
-920

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

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

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

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

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

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

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

query I rowsort
SELECT + - col0 * - col0 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1857114
-3070625
-35417837

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

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

query I rowsort
SELECT col1 + + 25 - 18 - col0 FROM tab1 AS cor0 WHERE NOT + col1 + + - col0 IS NULL
----
-30
-37
-73

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

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

query I rowsort
SELECT DISTINCT ( - - 49 ) * - - col1 AS col0 FROM tab0
----
1029
3969
49

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

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

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

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

query I rowsort
SELECT 96 * - + col2 AS col2 FROM tab1
----
-5664
-6528
-9216

query I rowsort
SELECT DISTINCT + 34 * - 15 FROM tab1
----
-510

query II rowsort
SELECT ALL - col0 AS col0, - col0 + - - 91 FROM tab2
----
-46
45
-64
27
-75
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT ALL - 1 * + col0 DIV - 25 AS col0 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL - 1 * + col0 / - 25 AS col0 FROM tab0
----
0
3
3

query I rowsort
SELECT DISTINCT ( - col0 ) * - - col1 AS col2 FROM tab1
----
-425
-4277
-714

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

query I rowsort
SELECT ALL + col1 * - + col1 AS col2 FROM tab0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query II rowsort label-6547
SELECT + + col0, col0 * - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-6547
SELECT + + col0, col0 * - col1 / + col1 AS col1 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - ( - 72 ) + + - SUM( DISTINCT col1 ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-6551
SELECT - ( - 72 ) + + - SUM ( DISTINCT col1 ) FROM tab0
----
-31

query I rowsort
SELECT ALL + col0 + - + col0 + + - col1 + - + 30 * ( - + col2 ) + col1 + + 16 * - 39 * - + 96 * - 36 + - 58 - col2 * + - col1 FROM tab1 AS cor0
----
-2151366
-2152378
-2154537

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT + col0 DIV + col2 + - - col2 AS col2 FROM tab0 AS cor0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-6553
SELECT + col0 / + col2 + - - col2 AS col2 FROM tab0 AS cor0
----
18
47
99

query I rowsort
SELECT DISTINCT + 7 + - col2 AS col0 FROM tab1
----
-52
-61
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * ( - col1 ) - - 50 * - col2 col1 FROM tab0
----
-2755
-4955
-605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6556
SELECT + + COUNT( * ) DIV - 7 FROM tab0 WHERE - col0 DIV + + 26 < + col2 - ( 37 )
----
0

skipif mysql # not compatible
query I rowsort label-6556
SELECT + + COUNT ( * ) / - 7 FROM tab0 WHERE - col0 / + + 26 < + col2 - ( 37 )
----
0

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

query I rowsort
SELECT ALL 29 * - col0 FROM tab1
----
-1479
-2465
-2639

query I rowsort
SELECT ALL col0 - + col1 * + - 31 FROM tab1 AS cor0
----
1548
240
485

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

query I rowsort
SELECT 26 - + + 99 FROM tab1 AS cor0
----
-73
-73
-73

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 6 * + col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + MIN( + 80 ) col2 FROM tab2
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT ALL + MIN ( + 80 ) col2 FROM tab2
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col2 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) * - - col2 col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + - 83 FROM tab1 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL + col1 * + 9 FROM tab0 AS cor0 WHERE NULL < ( col1 * col0 )
----

query I rowsort
SELECT DISTINCT - 52 FROM tab1 cor0
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( col2 ) < col2
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( col2 ) < col2
----
0

query I rowsort
SELECT 24 * + + col2 AS col0 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT col2 * - + 7 FROM tab1
----
-413
-476
-672

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT + COUNT( * ) * 97 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-6575
SELECT + COUNT ( * ) * 97 FROM tab0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 1 * col1 * col0 col1 FROM tab2
----
-107916
-315392
-376875

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - col1 ) * col0 * - col1 < - col0 * + col1 / - col0
----

query I rowsort
SELECT - 90 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - 75 * + col0 + - 34 AS col1 FROM tab0
----
-1159
-6559
-7309

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

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

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 61 * - - col1 > - + col2
----
51
85
91

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - ( + 53 ) IN ( - col0, - 60, + col1, col0 )
----

query I rowsort
SELECT - 68 * col0 * + - col2 AS col2 FROM tab2 AS cor0
----
174080
295800
71944

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + + 80 - + - COUNT( * ) * 42 FROM tab2 AS cor0
----
206

skipif mysql # not compatible
query I rowsort label-6585
SELECT + + 80 - + - COUNT ( * ) * 42 FROM tab2 AS cor0
----
206

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

query I rowsort
SELECT 28 - + + 91 * - + 34 AS col0 FROM tab1 AS cor0
----
3122
3122
3122

query I rowsort
SELECT ALL + 85 + - - col0 AS col0 FROM tab2
----
131
149
160

query I rowsort
SELECT DISTINCT col0 * - col0 + 22 AS col2 FROM tab0
----
-203
-7547
-9387

query I rowsort
SELECT col2 + ( + col2 ) * - col2 AS col0 FROM tab2
----
-1560
-3306
-506

query I rowsort
SELECT - col1 + + + col0 AS col1 FROM tab0
----
-66
66
96

query II rowsort
SELECT col1 + ( - - col1 ) AS col2, - 59 + - col2 AS col1 FROM tab1
----
10
-118
28
-155
94
-127

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT DISTINCT - col2 + CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT - col2 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-144
-147
-159

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + - MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6598
SELECT + - MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6599
SELECT MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - + col1 * + col1 * - - col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

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

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

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

query I rowsort
SELECT col2 + + 62 * - col1 FROM tab0
----
-1292
-4975
37

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + col0 + + col2 * - 29 * col0 col2 FROM tab2
----
-126020
-30581
-74121

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT DISTINCT - 31 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT - 31 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-93

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6614
SELECT ALL + - COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-9
-9

skipif mysql # not compatible
query II rowsort label-6614
SELECT ALL + - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT + - 71 + - + col2 DIV + 43 + + col1 AS col2 FROM tab2 AS cor0
----
-20
-5
6

skipif mysql # not compatible
query I rowsort label-6615
SELECT + - 71 + - + col2 / + 43 + + col1 AS col2 FROM tab2 AS cor0
----
-20
-5
6

query I rowsort
SELECT - 40 * + + 56 - + col1 FROM tab1 cor0
----
-2245
-2254
-2287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL - col0 - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - col0 - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + col2 - + + ( col0 ) FROM tab1
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col2 ) col1 FROM tab0
----
10
47
99

query II rowsort
SELECT + col0, - 24 * - - 23 FROM tab0
----
15
-552
87
-552
97
-552

query I rowsort
SELECT ALL - 65 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL COUNT( * ) + COUNT( * ) * 26 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6623
SELECT ALL COUNT ( * ) + COUNT ( * ) * 26 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT COUNT( * ) * - COUNT( * ), - COUNT( * ) col1 FROM tab1
----
-9
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - 8 * - col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = - col0 * col0 + - col0
----

query II rowsort
SELECT ALL - 35 AS col1, col0 * + + col0 AS col2 FROM tab2
----
-35
2116
-35
4096
-35
5625

query I rowsort
SELECT DISTINCT - 37 + ( col0 ) + col0 * + col0 * - - 62 + 40 * + - col0 + - + col1 FROM tab0
----
13247
465827
579537

query I rowsort
SELECT ALL + col2 - + col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-77
2
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT - COUNT( * ) AS col2, - ( + - MAX( - - col1 ) ) col1 FROM tab2
----
-3
77

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

query I rowsort
SELECT ALL - col0 + - - 94 FROM tab2
----
19
30
48

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

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

query I rowsort
SELECT + col1 * - 63 AS col0 FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT + 74 + + - 46 FROM tab0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL 66 + - COUNT( * ) FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL 66 + - COUNT ( * ) FROM tab2 cor0
----
63

query I rowsort
SELECT - col0 + + 74 AS col1 FROM tab0 AS cor0
----
-13
-23
59

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

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

query I rowsort
SELECT ALL + 31 + col1 AS col2 FROM tab2
----
108
82
98

query I rowsort
SELECT col2 * + ( - + col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL - col0 - - col1 FROM tab0 cor0
----
-66
-96
66

query II rowsort
SELECT ALL - 80 * + + 23, + col2 AS col1 FROM tab1 AS cor0
----
-1840
59
-1840
68
-1840
96

query I rowsort
SELECT col2 + + + col1 + + + col0 FROM tab1 cor0
----
149
161
206

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 9 / - + 94 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT ALL col0 DIV + ( 78 ) FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL col0 / + ( 78 ) FROM tab0
----
0
1
1

query II rowsort
SELECT ALL - 49 AS col1, - 88 FROM tab1
----
-49
-88
-49
-88
-49
-88

query I rowsort
SELECT DISTINCT - ( + 3 ) * - col1 + + + col2 AS col2 FROM tab1
----
138
209
74

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

skipif mysql # not compatible
query I rowsort label-6649
SELECT + col1 / ( col2 ) AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98 col2, 14 + + 41 * col1 AS col2 FROM tab0
----
-98
3335
-98
55
-98
875

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL COUNT( * ) - + 73 FROM tab0, tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL COUNT ( * ) - + 73 FROM tab0, tab1 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + ( - col1 ), - col0 col2 FROM tab2
----
-1173
-46
-3080
-64
-3886
-75

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 + + + col0 < col1
----

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

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

query I rowsort
SELECT + - col0 * - + ( 17 ) FROM tab0 AS cor0
----
1479
1649
255

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT DISTINCT 68 DIV - - col2 + + col1 + + 82 DIV - - col0 AS col0 FROM tab2 AS cor0
----
54
69
79

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT 68 / - - col2 + + col1 + + 82 / - - col0 AS col0 FROM tab2 AS cor0
----
54
69
79

query I rowsort
SELECT DISTINCT + + col0 + col0 - col2 FROM tab0 AS cor0
----
-17
164
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6662
SELECT ALL * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - - 7
----

skipif mysql # not compatible
query III rowsort label-6662
SELECT ALL * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - - 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - ( - - col0 ) col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + col2 + + - col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col0 + + 32 AS col2 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT - 84 + col1 AS col2 FROM tab1 AS cor0
----
-37
-70
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + ( + + 70 ) + COUNT( DISTINCT - - 2 ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-6667
SELECT + ( + + 70 ) + COUNT ( DISTINCT - - 2 ) AS col0 FROM tab2
----
71

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 37 - - col1 * - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 3 + - col2 = - + 18 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6671
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + 10 NOT BETWEEN + - col1 AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6671
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + 10 NOT BETWEEN + - col1 AND CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT - col1 - - - 99 AS col1 FROM tab0 cor0
----
-100
-120
-180

query III rowsort
SELECT * FROM tab1 WHERE NULL = + + ( col0 )
----

query I rowsort
SELECT 31 + + col0 FROM tab0
----
118
128
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT + CAST( + + col0 AS SIGNED ) FROM tab0 WHERE + col0 < col2
----
15
97

skipif mysql # not compatible
query I rowsort label-6675
SELECT + CAST ( + + col0 AS INTEGER ) FROM tab0 WHERE + col0 < col2
----
15
97

query I rowsort
SELECT ALL - + 88 - - - col1 FROM tab1 AS cor0
----
-102
-135
-93

query I rowsort
SELECT DISTINCT + col0 - 37 AS col0 FROM tab1 AS cor0
----
14
48
54

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

query II rowsort
SELECT + + col2, col0 * + + col2 FROM tab2 AS cor0
----
23
1058
40
2560
58
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT - col2 / + col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE - col1 IS NULL
----

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

query II rowsort
SELECT ALL - 86 * + 98, col1 AS col1 FROM tab0
----
-8428
1
-8428
21
-8428
81

query II rowsort
SELECT ALL 83 * + + 56 AS col2, + col0 AS col1 FROM tab1
----
4648
51
4648
85
4648
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT DISTINCT + MIN( DISTINCT - 99 ) * + CAST( + - 64 AS SIGNED ) AS col1 FROM tab1
----
6336

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT + MIN ( DISTINCT - 99 ) * + CAST ( + - 64 AS INTEGER ) AS col1 FROM tab1
----
6336

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6689
SELECT - MAX( DISTINCT - col1 ) DIV - - 71 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6689
SELECT - MAX ( DISTINCT - col1 ) / - - 71 FROM tab1 AS cor0
----
0

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 35 IN ( col0 * - + ( ( col1 ) ) * 10, 77 * - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT 1 + 41 + - COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT 1 + 41 + - COUNT ( * ) FROM tab2
----
39

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

query II rowsort
SELECT ALL + col0 * - col1 + + col0 + 32 + - ( - col1 ), col0 AS col2 FROM tab2
----
-2217
46
-4755
64
-4851
75

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

skipif mysql # not compatible
query I rowsort label-6698
SELECT - CAST ( NULL AS REAL ) + - 72 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + col0 * + 32 * col0 * + col1 FROM tab2
----
10092584
12060058
3453335

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6701
SELECT ALL + col0 AS col0, ( - col2 ) + col0 DIV - CAST( + 90 AS SIGNED ) col1 FROM tab2
----
46
-23
64
-40
75
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6701
SELECT ALL + col0 AS col0, ( - col2 ) + col0 / - CAST ( + 90 AS INTEGER ) col1 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT col1 + - 91 * - col2 * - col2 + - col1 + + 90 DIV col0 * 96 * ( - 38 ) + - col1 + 56 FROM tab1 WHERE - + col0 IS NOT NULL
----
-320368
-420775
-842262

skipif mysql # not compatible
query I rowsort label-6702
SELECT col1 + - 91 * - col2 * - col2 + - col1 + + 90 / col0 * 96 * ( - 38 ) + - col1 + 56 FROM tab1 WHERE - + col0 IS NOT NULL
----
-320368
-420775
-842262

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6703
SELECT 52 / - CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-6703
SELECT 52 / - CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT ( - + col2 ), - 89 AS col0 FROM tab0
----
-10
-89
-47
-89
-99
-89

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 82 + col0 IS NULL
----

query I rowsort
SELECT 0 - + + ( - - col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL - 4 + col1 * - - 23 + + - 5 AS col2 FROM tab2
----
1164
1532
1762

query I rowsort
SELECT - 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT + ( - col2 ), - 71 * - col2 AS col0 FROM tab1 AS cor0
----
-59
4189
-68
4828
-96
6816

query I rowsort
SELECT + ( - col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT - + 82 AS col1 FROM tab0 AS cor0
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT - 46 BETWEEN 91 AND + - 84 * + + col2
----
3

skipif mysql # not compatible
query I rowsort label-6713
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - 46 BETWEEN 91 AND + - 84 * + + col2
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6715
SELECT 87 DIV + - 44 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6715
SELECT 87 / + - 44 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT DISTINCT + col2 DIV + ( col1 ) AS col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + col2 / + ( col1 ) AS col1 FROM tab1 cor0
----
1
11
6

query I rowsort
SELECT + - 1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT COUNT( * ) * - + 42 col0 FROM tab1
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6719
SELECT COUNT ( * ) * - + 42 col0 FROM tab1
----
-126

query I rowsort
SELECT col2 * - col2 * + 64 FROM tab2
----
-102400
-215296
-33856

onlyif mysql # DIV for integer division: 
query II rowsort label-6721
SELECT DISTINCT + col0 DIV - col1, - 81 AS col2 FROM tab1
----
-1
-81
-17
-81
-3
-81

skipif mysql # not compatible
query II rowsort label-6721
SELECT DISTINCT + col0 / - col1, - 81 AS col2 FROM tab1
----
-1
-81
-17
-81
-3
-81

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / + 11 IS NULL
----

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

query I rowsort
SELECT ALL col2 * + col0 + + 81 FROM tab0 AS cor0
----
786
951
9684

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT - 69 + + COUNT( * ) + + - MIN( - 61 ) AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6726
SELECT - 69 + + COUNT ( * ) + + - MIN ( - 61 ) AS col0 FROM tab0 AS cor0
----
-5

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 ) > - col0
----
75
67
58

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

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT col0 * + col2 * + 43 + - CAST ( NULL AS INTEGER ) * + 30 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT + COUNT( ALL - - 73 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + COUNT ( ALL - - 73 ) FROM tab2
----
3

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

query I rowsort
SELECT DISTINCT - 92 - - col1 AS col1 FROM tab2
----
-15
-25
-41

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 60 ) col0 FROM tab0 AS cor0
----
60

query I rowsort
SELECT DISTINCT 73 * + col0 + - col1 AS col1 FROM tab2
----
3307
4595
5408

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - COUNT( * ) * COUNT( * ) * - - 58 FROM tab1
----
-522

skipif mysql # not compatible
query I rowsort label-6738
SELECT - COUNT ( * ) * COUNT ( * ) * - - 58 FROM tab1
----
-522

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

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

query I rowsort
SELECT ALL - + 51 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6741
SELECT ALL + col0 AS col2, col2 + - CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
32
87
-77
97
2

skipif mysql # not compatible
query II rowsort label-6741
SELECT ALL + col0 AS col2, col2 + - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
32
87
-77
97
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 30 col1 FROM tab2 AS cor0
----
1380
1920
2250

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

query II rowsort
SELECT DISTINCT + col0, col2 - - 91 * col2 FROM tab2 AS cor0
----
46
2116
64
3680
75
5336

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

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

query I rowsort
SELECT - ( - - 86 ) AS col0 FROM tab1
----
-86
-86
-86

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6749
SELECT + 2 DIV - + col0, ( + col0 ) FROM tab0 AS cor0
----
0
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-6749
SELECT + 2 / - + col0, ( + col0 ) FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT - + 29 + + MIN( ALL - + col2 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6750
SELECT - + 29 + + MIN ( ALL - + col2 ) FROM tab2 AS cor0
----
-87

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

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

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

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

query I rowsort
SELECT DISTINCT + 88 + - 89 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT + 56 + 88 * + COUNT( * ) FROM tab0
----
320

skipif mysql # not compatible
query I rowsort label-6754
SELECT + 56 + 88 * + COUNT ( * ) FROM tab0
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) + - col1 AS col2 FROM tab0 WHERE NOT ( - - 30 ) <> - col1
----

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) + - col1 AS col2 FROM tab0 WHERE NOT ( - - 30 ) <> - col1
----

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

query II rowsort
SELECT ALL + col1 AS col0, col2 * + col0 AS col2 FROM tab0 AS cor0
----
1
9603
21
870
81
705

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT ALL 19 * MIN( + 82 ) - - + 23 AS col1 FROM tab2 AS cor0
----
1581

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL 19 * MIN ( + 82 ) - - + 23 AS col1 FROM tab2 AS cor0
----
1581

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL - COUNT( * ) * COUNT( DISTINCT - col0 ) + 29 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT - col0 ) + 29 FROM tab2 cor0
----
20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT DISTINCT - 65 + + - 67 DIV + - col0 FROM tab2
----
-64
-65

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - 65 + + - 67 / + - col0 FROM tab2
----
-64
-65

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( - col2 ) col0 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6769
SELECT ALL - 26 - - - col1 + + col0 * - col2, + col0 - - col2 DIV + 54 + col2 + + - col1 + + CAST( 31 AS SIGNED ) AS col0 FROM tab0
----
-812
12
-917
107
-9630
227

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL - 26 - - - col1 + + col0 * - col2, + col0 - - col2 / + 54 + col2 + + - col1 + + CAST ( 31 AS INTEGER ) AS col0 FROM tab0
----
-812
12
-917
107
-9630
227

query I rowsort
SELECT col1 + - ( + 25 ) FROM tab0
----
-24
-4
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT - col1 FROM tab0 WHERE 27 < + col1 + - col2 OR NOT + - CAST( + 48 AS SIGNED ) + - col0 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6771
SELECT - col1 FROM tab0 WHERE 27 < + col1 + - col2 OR NOT + - CAST ( + 48 AS INTEGER ) + - col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT col0 * - + col0 + - - col2 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT ALL - col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 34 + + 7 - + + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL - col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 34 + + 7 - + + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6774
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + 55 + - CAST( NULL AS DECIMAL ) + + col0 - + 63 * - + col2
----

skipif mysql # not compatible
query III rowsort label-6774
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + 55 + - CAST ( NULL AS REAL ) + + col0 - + 63 * - + col2
----

query I rowsort
SELECT + + ( ( - + 26 ) ) FROM tab2 cor0
----
-26
-26
-26

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 46 * + col0 * - 58 * + col0 >= 85 * - 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 76 * col2 * + col1 + + + col1 - 19 FROM tab1 AS cor0
----
102139
22406
242924

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

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT - 86 / col1 * col0 FROM tab2 AS cor0
----
-46
-64
-75

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

query I rowsort
SELECT - + col1 * - - 14 FROM tab1 AS cor0
----
-196
-658
-70

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

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

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

query II rowsort
SELECT - col0 * 1 AS col0, col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT - 66 * + + COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-6786
SELECT - 66 * + + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT - COUNT( * ) * 54 AS col2 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6788
SELECT - COUNT ( * ) * 54 AS col2 FROM tab0 AS cor0
----
-162

query I rowsort
SELECT - 44 * - + 52 + + ( - col2 ) * - col0 AS col2 FROM tab1 AS cor0 WHERE col1 * col1 + - col2 + 14 * + + col2 + 15 IS NULL
----

query I rowsort
SELECT DISTINCT - + 14 * + 12 + + col1 FROM tab0 AS cor0
----
-147
-167
-87

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

query I rowsort
SELECT DISTINCT 30 + - col2 - - col1 + col2 * + 30 FROM tab2
----
1267
1779
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6793
SELECT DISTINCT ( - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) ) * + 55 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT ( - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) * + 55 FROM tab1
----
NULL

query I rowsort
SELECT - col1 + 15 FROM tab2 cor0
----
-36
-52
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-6795
SELECT + col1 + + - col1 + - + 54 - + col0 DIV - + col0 AS col0, + col0 * + + col0 + + ( + col0 ) - - - col1 * + col0 - - 82 AS col0 FROM tab2 AS cor0
----
-53
-102
-53
-686
-53
757

skipif mysql # not compatible
query II rowsort label-6795
SELECT + col1 + + - col1 + - + 54 - + col0 / - + col0 AS col0, + col0 * + + col0 + + ( + col0 ) - - - col1 * + col0 - - 82 AS col0 FROM tab2 AS cor0
----
-53
-102
-53
-686
-53
757

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - COUNT( ALL + col0 ) + - + 77 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6796
SELECT - COUNT ( ALL + col0 ) + - + 77 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT col0 + 19 * + + col1 FROM tab1 AS cor0
----
180
317
984

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

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

skipif mysql # not compatible
query II rowsort label-6799
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col0 + + 18 * + 93 * + col1, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

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

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

query I rowsort
SELECT ALL 81 * + 58 FROM tab1 AS cor0
----
4698
4698
4698

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 90 / - 1 * + - ( + - ( - - col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - COUNT( * ) + - 88 + 49 + - COUNT( * ) AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - COUNT ( * ) + - 88 + 49 + - COUNT ( * ) AS col0 FROM tab2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL - COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 30 + + col2 FROM tab1
----
126
89
98

query I rowsort
SELECT DISTINCT col2 - - 96 AS col2 FROM tab0
----
106
143
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL COUNT( * ) * + COUNT( * ) + COUNT( * ) + + MAX( ALL - + col1 ) AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) + + MAX ( ALL - + col1 ) AS col0 FROM tab1
----
7

query I rowsort
SELECT + col1 - + 82 FROM tab0
----
-1
-61
-81

query III rowsort
SELECT * FROM tab2 WHERE col0 * + 99 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - 39 NOT IN ( 78 * - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6811
SELECT + MIN ( col2 ) FROM tab1
----
59

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT DISTINCT + ( - ( MAX( ALL col2 ) ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT + ( - ( MAX ( ALL col2 ) ) ) FROM tab2
----
-58

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE + col2 IN ( 1 * col2 + + col1 )
----

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

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

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

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

query I rowsort
SELECT ALL col0 * col1 - - col0 AS col2 FROM tab0 WHERE col2 + - 85 >= 18
----

query I rowsort
SELECT - 72 + + 85 FROM tab2
----
13
13
13

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

query I rowsort
SELECT DISTINCT + col1 * + 62 AS col0 FROM tab2
----
3162
4154
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT + 46 + + COUNT( * ) FROM tab2 WHERE NOT + 86 / 83 + - col0 BETWEEN ( + 14 ) AND - col1
----
49

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + 46 + + COUNT ( * ) FROM tab2 WHERE NOT + 86 / 83 + - col0 BETWEEN ( + 14 ) AND - col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - MAX( DISTINCT col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6823
SELECT - MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
-75

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6826
SELECT MIN ( DISTINCT col1 ) FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT + COUNT( ALL 27 ) * 53 + MAX( ALL col0 ) FROM tab1
----
250

skipif mysql # not compatible
query I rowsort label-6827
SELECT + COUNT ( ALL 27 ) * 53 + MAX ( ALL col0 ) FROM tab1
----
250

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT MAX( DISTINCT 98 ) * MIN( ALL col2 ) + - 9 AS col0 FROM tab0
----
971

skipif mysql # not compatible
query I rowsort label-6829
SELECT MAX ( DISTINCT 98 ) * MIN ( ALL col2 ) + - 9 AS col0 FROM tab0
----
971

query I rowsort
SELECT ALL 45 + - ( 56 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 95 * col0 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-51
2457
3060

query I rowsort
SELECT DISTINCT col2 + 18 FROM tab1
----
114
77
86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE - col0 + - col0 * + 59 < - 58 / 4
----
59
68
96

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

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

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

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

query I rowsort
SELECT ALL + + 93 AS col2 FROM tab1 cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT ALL col1 + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL col1 + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6841
SELECT * FROM tab2 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6841
SELECT * FROM tab2 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6842
SELECT * FROM tab0 AS cor0 WHERE - 5 * CAST( NULL AS SIGNED ) IN ( 60 * 10 )
----

skipif mysql # not compatible
query III rowsort label-6842
SELECT * FROM tab0 AS cor0 WHERE - 5 * CAST ( NULL AS INTEGER ) IN ( 60 * 10 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT - - col0 * col2 - col2 DIV 27 AS col1 FROM tab0 AS cor0
----
704
870
9600

skipif mysql # not compatible
query I rowsort label-6844
SELECT - - col0 * col2 - col2 / 27 AS col1 FROM tab0 AS cor0
----
704
870
9600

query I rowsort
SELECT DISTINCT + 23 * col1 + ( + col0 ) FROM tab1 AS cor0
----
1172
200
373

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

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

query I rowsort
SELECT + col2 * + 40 + + 42 FROM tab0
----
1922
4002
442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6849
SELECT DISTINCT + MIN( ALL + + col2 ) DIV 8 + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT + MIN ( ALL + + col2 ) / 8 + COUNT ( * ) FROM tab1
----
10

query I rowsort
SELECT 50 + col1 FROM tab0
----
131
51
71

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6853
SELECT DISTINCT col2 * - - ( col0 ) + CAST( col0 + col1 * + col1 AS SIGNED ) * 33 AS col0 FROM tab2
----
154962
200329
88409

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT col2 * - - ( col0 ) + CAST ( col0 + col1 * + col1 AS INTEGER ) * 33 AS col0 FROM tab2
----
154962
200329
88409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6854
SELECT DISTINCT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6854
SELECT DISTINCT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col0 ) + col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT - ( 76 ) AS col2 FROM tab1 WHERE - 72 IS NULL
----

query I rowsort
SELECT DISTINCT - 81 * + 26 FROM tab1
----
-2106

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE col0 + col0 NOT BETWEEN NULL AND - col2
----
51
85
91

query I rowsort
SELECT DISTINCT 15 * + col1 FROM tab1
----
210
705
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 5 ) NOT IN ( - ( - 43 ) )
----

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

query I rowsort
SELECT ALL ( - col2 ) * 7 FROM tab0 AS cor0
----
-329
-693
-70

query I rowsort
SELECT - 20 * + - col2 FROM tab0 AS cor0
----
1980
200
940

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

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

query I rowsort
SELECT - 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6866
SELECT CAST( - col1 AS SIGNED ) * col2 * - 4 col0 FROM tab2
----
12320
15544
4692

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6866
SELECT CAST ( - col1 AS INTEGER ) * col2 * - 4 col0 FROM tab2
----
12320
15544
4692

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

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

query I rowsort
SELECT ALL - col2 * - - 18 AS col1 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6869
SELECT ALL 84 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL 84 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
84
NULL
84
NULL
84
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT ALL + + 63 DIV - col0 col2 FROM tab1 AS cor0
----
-1
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 cor0 WHERE NOT - col0 IN ( - 98 )
----
14
47
5

query I rowsort
SELECT 50 * + ( 23 ) FROM tab0 AS cor0
----
1150
1150
1150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT 65 + - MAX( - col2 ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
95

skipif mysql # not compatible
query I rowsort label-6876
SELECT 65 + - MAX ( - col2 ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
95

query I rowsort
SELECT - - ( - + col1 ) + col2 - - col1 * 89 FROM tab0 AS cor0
----
1858
187
7175

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

query I rowsort
SELECT - col0 + - - 35 AS col1 FROM tab0
----
-52
-62
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( 33 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( 33 ) FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT + COUNT( * ) + 41 FROM tab2 WHERE ( + + col2 ) IS NOT NULL
----
44

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT + COUNT ( * ) + 41 FROM tab2 WHERE ( + + col2 ) IS NOT NULL
----
44

query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab1 WHERE NOT + - col1 / - 53 NOT IN ( 86 * + col1 - - col1 )
----

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

query I rowsort
SELECT 83 * - col2 * + + col0 FROM tab2 AS cor0
----
-212480
-361050
-87814

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

query I rowsort
SELECT + 20 * + - 80 FROM tab0 cor0
----
-1600
-1600
-1600

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

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

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE 95 / 8 * - col1 * + ( col0 ) + - 66 NOT IN ( + col1 / col1 + 68 )
----
51
67
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT - MIN( col0 ) AS col0 FROM tab1 WHERE NOT + + col0 IN ( + - ( - col1 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT - MIN ( col0 ) AS col0 FROM tab1 WHERE NOT + + col0 IN ( + - ( - col1 ) )
----
-51

query I rowsort
SELECT ALL 46 + + col1 FROM tab0 AS cor0 WHERE NOT 64 IN ( + col1 * + col1 )
----
127
47
67

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

query I rowsort
SELECT DISTINCT + ( + 65 ) AS col1 FROM tab2 AS cor0
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT 62 - COUNT( * ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT 62 - COUNT ( * ) FROM tab2 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT - ( - - 18 ) * + CAST( - col2 AS SIGNED ) + + + col0 AS col1 FROM tab2 AS cor0
----
1119
460
784

skipif mysql # not compatible
query I rowsort label-6897
SELECT - ( - - 18 ) * + CAST ( - col2 AS INTEGER ) + + + col0 AS col1 FROM tab2 AS cor0
----
1119
460
784

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT - + 11 AS col0, COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL > ( NULL )
----
-11
0

skipif mysql # not compatible
query II rowsort label-6900
SELECT - + 11 AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL > ( NULL )
----
-11
0

query I rowsort
SELECT - 24 * - col2 AS col0 FROM tab0
----
1128
2376
240

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

query II rowsort
SELECT col1, - 81 FROM tab1
----
14
-81
47
-81
5
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT DISTINCT + COUNT( * ) * - - MIN( - col2 ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT + COUNT ( * ) * - - MIN ( - col2 ) FROM tab2
----
-174

query I rowsort
SELECT + 35 * - col1 FROM tab2 cor0
----
-1785
-2345
-2695

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT col1 / 79 * + CAST( NULL AS SIGNED ) * - col2 * - - ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6908
SELECT col1 / 79 * + CAST ( NULL AS INTEGER ) * - col2 * - - ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 42 <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6911
SELECT DISTINCT + col0 * + - 93 * + col1 AS col2, col2 / + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-112995
NULL
-169911
NULL
-9021
NULL

skipif mysql # not compatible
query II rowsort label-6911
SELECT DISTINCT + col0 * + - 93 * + col1 AS col2, col2 / + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-112995
NULL
-169911
NULL
-9021
NULL

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 - - 87 * + col1 col0 FROM tab2 AS cor0 WHERE NOT + 78 * - 70 NOT BETWEEN 36 + + 29 * 11 AND ( + col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT DISTINCT + 91 + + - CAST( + ( - col0 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
137
155
166

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT + 91 + + - CAST ( + ( - col0 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
137
155
166

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL - MIN( + col1 ) * - 96 FROM tab1 AS cor0
----
480

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - MIN ( + col1 ) * - 96 FROM tab1 AS cor0
----
480

query I rowsort
SELECT ALL 17 + + - 38 FROM tab1
----
-21
-21
-21

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 26 * - 53 + + - 20 IS NULL
----

query I rowsort
SELECT + ( - col2 ) * - 26 + 56 FROM tab2
----
1096
1564
654

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6928
SELECT DISTINCT + ( + SUM ( DISTINCT + col1 ) ) col2 FROM tab2
----
195

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 96 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + ( col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6934
SELECT + CAST( - col2 AS SIGNED ) - - + CAST( + - col1 AS SIGNED ) * + + col2 * + + 32 AS col1 FROM tab1
----
-102340
-43104
-9499

skipif mysql # not compatible
query I rowsort label-6934
SELECT + CAST ( - col2 AS INTEGER ) - - + CAST ( + - col1 AS INTEGER ) * + + col2 * + + 32 AS col1 FROM tab1
----
-102340
-43104
-9499

query I rowsort
SELECT ALL - + 28 * - col2 - + - col0 FROM tab2 AS cor0
----
1184
1699
690

query II rowsort
SELECT ALL 37 * + col1 AS col0, col1 + col0 - + 81 * + + col1 AS col0 FROM tab0 AS cor0
----
2997
-6465
37
17
777
-1593

query I rowsort
SELECT - - 97 * col2 + - col2 FROM tab0 AS cor0
----
4512
9504
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 6, - col0 col0 FROM tab2
----
6
-46
6
-64
6
-75

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

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

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

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

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + COUNT ( ALL 70 ) FROM tab1
----
3

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

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

skipif mysql # not compatible
query I rowsort label-6943
SELECT + MIN ( DISTINCT + - 12 ) FROM tab2 AS cor0
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( - 87 + + + 15 / - CAST( col2 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( - 87 + + + 15 / - CAST ( col2 AS INTEGER ) ) = NULL
----

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

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

query I rowsort
SELECT ALL + col1 + + 84 * - col1 AS col2 FROM tab1 AS cor0
----
-1162
-3901
-415

query I rowsort
SELECT - 73 * col0 + col0 AS col1 FROM tab0 cor0
----
-1080
-6264
-6984

query I rowsort
SELECT - 39 + - + 63 AS col0 FROM tab0 AS cor0
----
-102
-102
-102

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( - col0 ) + + + 52 IN ( ( col1 ) + col0 / - 39 + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - 43 + + + MAX( + 87 ) AS col2 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6952
SELECT - 43 + + + MAX ( + 87 ) AS col2 FROM tab2 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL + COUNT( * ) * - 56 * + 65 FROM tab1 AS cor0
----
-10920

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + COUNT ( * ) * - 56 * + 65 FROM tab1 AS cor0
----
-10920

query I rowsort
SELECT ALL + 99 * col0 + - + col0 + - + col1 - + 68 * + col1 * + col0 FROM tab0 AS cor0
----
-115731
-81231
2909

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT COUNT( + + col1 ) + + - 45 AS col2 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT COUNT ( + + col1 ) + + - 45 AS col2 FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT COUNT( * ) * 98 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT COUNT ( * ) * 98 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL - MIN( - + col1 ) * 23 AS col2 FROM tab0 WHERE col0 + + CAST( NULL AS SIGNED ) * + col2 + + ( - + col0 ) IN ( - 85 * - col1 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - MIN ( - + col1 ) * 23 AS col2 FROM tab0 WHERE col0 + + CAST ( NULL AS INTEGER ) * + col2 + + ( - + col0 ) IN ( - 85 * - col1 * + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6960
SELECT * FROM tab2 WHERE NULL = + col2 / CAST( + + col2 AS SIGNED ) + - col2 + + col1 * 32
----

skipif mysql # not compatible
query III rowsort label-6960
SELECT * FROM tab2 WHERE NULL = + col2 / CAST ( + + col2 AS INTEGER ) + - col2 + + col1 * 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT 62 * + - CAST( - 50 AS SIGNED ) / 79 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + 56 / + 94 NOT IN ( + col0 * col0 - - col2 )
----

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT 62 * + - CAST ( - 50 AS INTEGER ) / 79 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * + 56 / + 94 NOT IN ( + col0 * col0 - - col2 )
----

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

query I rowsort
SELECT ALL + col1 * + ( 42 ) + + + col0 + + col1 * + col1 FROM tab0 AS cor0
----
140
1410
9978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL - - CAST( ( + + 14 ) AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
196
658
70

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - - CAST ( ( + + 14 ) AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 - + 19 AS col2 FROM tab0 AS cor0
----
2190
81
9782

query I rowsort
SELECT + - col0 * + 17 * col0 - - 52 AS col1 FROM tab2 AS cor0
----
-35920
-69580
-95573

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - 65 + + SUM( 13 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6967
SELECT - 65 + + SUM ( 13 ) FROM tab2 AS cor0
----
-26

query II rowsort
SELECT col2, 34 * - col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - col2 + + - 43 * + col0 AS col0 FROM tab1
----
-2193
-3655
-3913

query I rowsort
SELECT - col0 + - 2 AS col0 FROM tab1 WHERE - col2 = col1
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 5
----

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

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

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

query I rowsort
SELECT DISTINCT + 18 * + 79 FROM tab1 AS cor0
----
1422

query II rowsort
SELECT DISTINCT col2 * - col1 * col1, col2 / + col0 FROM tab2 AS cor0 WHERE col2 * - - col1 > NULL
----

query I rowsort
SELECT ALL - 69 * - col0 * + col1 FROM tab2 AS cor0
----
161874
340032
346725

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

skipif mysql # not compatible
query I rowsort label-6978
SELECT + MAX ( + + 30 ) FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT + 1 * - - COUNT( * ) + - 34 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6979
SELECT + 1 * - - COUNT ( * ) + - 34 FROM tab1 AS cor0
----
-31

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

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

query I rowsort
SELECT + ( - col1 ) * - 66 FROM tab2 AS cor0
----
3366
4422
5082

onlyif mysql # DIV for integer division: 
query I rowsort label-6983
SELECT ALL - col1 DIV + 30 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - col1 / + 30 FROM tab0 AS cor0
----
-2
0
0

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

query I rowsort
SELECT 42 * - col2 AS col2 FROM tab2
----
-1680
-2436
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 1 col0 FROM tab2
----
51
67
77

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

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

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

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

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

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

query I rowsort
SELECT col1 * + + col2 * 29 FROM tab2
----
112694
34017
89320

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT DISTINCT 98 * - col2 DIV - col2 + + col0 + - col2 * - col2 FROM tab0 AS cor0
----
2322
285
9996

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT 98 * - col2 / - col2 + + col0 + - col2 * - col2 FROM tab0 AS cor0
----
2322
285
9996

query I rowsort
SELECT ALL + col2 + - col0 + + + col2 FROM tab0 AS cor0
----
-67
101
79

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - col2 - - 9 + - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT - SUM( - col2 ) AS col2 FROM tab2 cor0 WHERE + col2 NOT BETWEEN col1 AND - col1
----
121

skipif mysql # not compatible
query I rowsort label-6998
SELECT - SUM ( - col2 ) AS col2 FROM tab2 cor0 WHERE + col2 NOT BETWEEN col1 AND - col1
----
121

query I rowsort
SELECT 94 AS col2 FROM tab1 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT DISTINCT + - SUM( ALL + + 56 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT + - SUM ( ALL + + 56 ) FROM tab1 AS cor0
----
-168

query I rowsort
SELECT + AVG ( col1 ) FROM tab1 cor0 WHERE 33 / - - ( - col1 ) + + col2 + + 26 * + col2 * + ( - col2 ) * + col1 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 92 BETWEEN - col0 AND col1 * + col0 / + + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT col1 * 29 * - 57 * 8 + ( + 20 ) DIV - col2 + + 19 FROM tab0
----
-1071125
-13205
-277687

skipif mysql # not compatible
query I rowsort label-7004
SELECT col1 * 29 * - 57 * 8 + ( + 20 ) / - col2 + + 19 FROM tab0
----
-1071125
-13205
-277687

query I rowsort
SELECT DISTINCT 96 + ( + - 66 ) AS col1 FROM tab1
----
30

query I rowsort
SELECT DISTINCT col0 + - 70 FROM tab0
----
-55
17
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7007
SELECT ALL - 25 + + + col2 + + CAST( NULL AS SIGNED ) * + - ( + col0 ) + - + col2 AS col2, + 86 FROM tab2
----
NULL
86
NULL
86
NULL
86

skipif mysql # not compatible
query II rowsort label-7007
SELECT ALL - 25 + + + col2 + + CAST ( NULL AS INTEGER ) * + - ( + col0 ) + - + col2 AS col2, + 86 FROM tab2
----
NULL
86
NULL
86
NULL
86

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + + + col0 + - - 57 * + + col1 AS col2 FROM tab1
----
2679
285
798

query I rowsort
SELECT DISTINCT + - col1 * - 25 - 0 AS col0 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT DISTINCT 38 - + - 96 * - col0 AS col0 FROM tab0 AS cor0
----
-1402
-8314
-9274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7013
SELECT + ( + CAST( 86 AS SIGNED ) ) * + MAX( ALL - col0 ) FROM tab1 AS cor0
----
-4386

skipif mysql # not compatible
query I rowsort label-7013
SELECT + ( + CAST ( 86 AS INTEGER ) ) * + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-4386

query I rowsort
SELECT ALL + col0 * - col0 * 18 * - col1 * - - col1 - - - 82 AS col1 FROM tab0 AS cor0
----
169280
26571968
60082640

query II rowsort
SELECT + 15 * + col0, - 98 AS col1 FROM tab0
----
1305
-98
1455
-98
225
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT DISTINCT COUNT( ALL - col1 ) + + COUNT( DISTINCT col2 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT COUNT ( ALL - col1 ) + + COUNT ( DISTINCT col2 ) AS col0 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT - col2 - col2 - + 41 DIV - ( - + col2 ) AS col0 FROM tab0
----
-198
-24
-94

skipif mysql # not compatible
query I rowsort label-7017
SELECT - col2 - col2 - + 41 / - ( - + col2 ) AS col0 FROM tab0
----
-198
-24
-94

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - + 29 col1 FROM tab0 AS cor0
----
2349
29
609

query II rowsort
SELECT col0 * - col2 AS col0, col0 AS col2 FROM tab2 cor0
----
-1058
46
-2560
64
-4350
75

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

query I rowsort
SELECT 62 * 75 FROM tab0
----
4650
4650
4650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * - col1 col1 FROM tab1
----
-1269
-135
-378

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT + SUM( ALL - - 17 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + SUM ( ALL - - 17 ) AS col2 FROM tab1 cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - 73 <> NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 25 / + col2 * - + col1 + + + 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 * + 31 FROM tab1 AS cor0
----
1581
2635
2821

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7031
SELECT CAST( - + 5 AS SIGNED ) col1, - col1 FROM tab2
----
-5
-51
-5
-67
-5
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7031
SELECT CAST ( - + 5 AS INTEGER ) col1, - col1 FROM tab2
----
-5
-51
-5
-67
-5
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT DISTINCT MAX( col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7032
SELECT DISTINCT MAX ( col0 ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL MAX( 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-7033
SELECT ALL MAX ( DISTINCT - ( - + col1 ) ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - ( - col0 ) + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NULL >= - + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT SUM( DISTINCT 63 ) col0 FROM tab2
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7036
SELECT SUM ( DISTINCT 63 ) col0 FROM tab2
----
63

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

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

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL <> 96
----

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

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

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

query I rowsort
SELECT ALL + - col2 - + - 38 * + ( - 13 ) AS col0 FROM tab0 AS cor0
----
-504
-541
-593

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT SUM( - col2 ) DIV COUNT( * ) AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-7043
SELECT SUM ( - col2 ) / COUNT ( * ) AS col1 FROM tab2
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT + MAX( 26 ) col0 FROM tab2
----
26

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

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

query II rowsort
SELECT + ( 41 ), col0 FROM tab0 AS cor0
----
41
15
41
87
41
97

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

query I rowsort
SELECT ALL col2 * + - 29 AS col1 FROM tab2 AS cor0
----
-1160
-1682
-667

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

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

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

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

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

query I rowsort
SELECT DISTINCT 24 + + col1 FROM tab0
----
105
25
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7055
SELECT DISTINCT col2 DIV 13 FROM tab1
----
4
5
7

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT col2 / 13 FROM tab1
----
4
5
7

query I rowsort
SELECT + 30 * - + col2 AS col1 FROM tab2
----
-1200
-1740
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-7057
SELECT ALL 78 DIV + 57 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL 78 / + 57 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7058
SELECT ALL + - CAST( NULL AS SIGNED ) + + 39 col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7058
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 39 col2, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT ALL 83 DIV - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL 83 / - COUNT ( * ) FROM tab0
----
-27

query I rowsort
SELECT 25 * - 2 AS col2 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT - 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 36 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT COUNT( * ) * + 70 AS col0 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-7062
SELECT COUNT ( * ) * + 70 AS col0 FROM tab0
----
210

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL - - col0 * - + col2 DIV col2 AS col1 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - - col0 * - + col2 / col2 AS col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL - COUNT( * ) + - ( + 36 ) + - 23 AS col1 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL - COUNT ( * ) + - ( + 36 ) + - 23 AS col1 FROM tab0 AS cor0
----
-62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT + col1 + 58 + ( + - col0 ) DIV + col1 FROM tab0
----
-38
139
75

skipif mysql # not compatible
query I rowsort label-7068
SELECT + col1 + 58 + ( + - col0 ) / + col1 FROM tab0
----
-38
139
75

query I rowsort
SELECT - ( 12 ) + - col1 FROM tab1
----
-17
-26
-59

query I rowsort
SELECT DISTINCT + - col2 - - 63 + - 32 FROM tab1 WHERE ( NULL NOT BETWEEN + col2 AND + col0 )
----

query I rowsort
SELECT col2 * + + 1 + + 23 FROM tab0
----
122
33
70

query I rowsort
SELECT DISTINCT + 62 + - col1 AS col2 FROM tab0
----
-19
41
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - 66 * + MIN( ALL + 44 ) FROM tab0 AS cor0
----
-2904

skipif mysql # not compatible
query I rowsort label-7074
SELECT - 66 * + MIN ( ALL + 44 ) FROM tab0 AS cor0
----
-2904

query I rowsort
SELECT 19 AS col2 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - ( + col1 ) * col2 < col1 - 67 / + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT DISTINCT - 38 * - col0 AS col2 FROM tab1 AS cor0
----
1938
3230
3458

onlyif mysql # aggregate syntax: 
query II rowsort label-7080
SELECT + SUM( - ( + col0 ) ) AS col0, + 13 FROM tab2 AS cor0
----
-185
13

skipif mysql # not compatible
query II rowsort label-7080
SELECT + SUM ( - ( + col0 ) ) AS col0, + 13 FROM tab2 AS cor0
----
-185
13

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT DISTINCT + col0 DIV + col2 AS col0 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + col0 / + col2 AS col0 FROM tab0
----
0
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT ALL COUNT( ALL - - CAST( NULL AS SIGNED ) ) + - 30 col2 FROM tab1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7089
SELECT ALL COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) + - 30 col2 FROM tab1
----
-30

query II rowsort
SELECT ALL + col1, 1 FROM tab2
----
51
1
67
1
77
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7091
SELECT col0 col1, CAST( 73 AS SIGNED ) FROM tab2
----
46
73
64
73
75
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7091
SELECT col0 col1, CAST ( 73 AS INTEGER ) FROM tab2
----
46
73
64
73
75
73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7093
SELECT + + MAX( - col0 ) col2, - COUNT( * ) FROM tab2 cor0
----
-46
-3

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

query II rowsort
SELECT DISTINCT - - col1, - 11 * + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
14
101376
47
50864
5
38291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7095
SELECT ALL 97, - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
97
NULL

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

query I rowsort
SELECT - + col1 AS col1 FROM tab0 AS cor0 WHERE + col2 > 16 * - 15
----
-1
-21
-81

query I rowsort
SELECT ALL 9 * col2 + + - col2 FROM tab2
----
184
320
464

query I rowsort
SELECT col2 + - - col1 * - col0 FROM tab0
----
-1168
-1817
2

query I rowsort
SELECT + col1 + 7 * + col1 AS col0 FROM tab0 AS cor0
----
168
648
8

onlyif mysql # DIV for integer division: 
query II rowsort label-7100
SELECT - col1 * - 40 AS col2, + col1 + + 75 DIV + col0 AS col2 FROM tab1 AS cor0
----
1880
47
200
5
560
15

skipif mysql # not compatible
query II rowsort label-7100
SELECT - col1 * - 40 AS col2, + col1 + + 75 / + col0 AS col2 FROM tab1 AS cor0
----
1880
47
200
5
560
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT DISTINCT + - 15 * 12 DIV 72 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + - 15 * 12 / 72 / col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT - COUNT( * ) * ( - - 48 ) AS col0 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - COUNT ( * ) * ( - - 48 ) AS col0 FROM tab2 AS cor0
----
-144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - - 31 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT ALL - 60 * COUNT( - col2 ) * - CAST( + - 9 AS SIGNED ) FROM tab0 AS cor0
----
-1620

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - 60 * COUNT ( - col2 ) * - CAST ( + - 9 AS INTEGER ) FROM tab0 AS cor0
----
-1620

query I rowsort
SELECT DISTINCT - 71 + - 83 FROM tab1 cor0
----
-154

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

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

query I rowsort
SELECT DISTINCT 79 + - - ( - + 97 ) AS col1 FROM tab1
----
-18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT - 65 DIV col1 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-7111
SELECT - 65 / col1 FROM tab1
----
-1
-13
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT - COUNT( * ), COUNT( * ) + - - ( + 97 ) AS col0 FROM tab2
----
-3
100

skipif mysql # not compatible
query II rowsort label-7112
SELECT - COUNT ( * ), COUNT ( * ) + - - ( + 97 ) AS col0 FROM tab2
----
-3
100

query I rowsort
SELECT ( + 42 ) * + ( + + col0 ) FROM tab0
----
3654
4074
630

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

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

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

query I rowsort
SELECT col1 * + 17 * - col1 AS col0 FROM tab1 cor0
----
-3332
-37553
-425

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

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

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE + 42 > - col1
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( + + col1 ) AS col0, col2 col2 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT ALL + col2 + + - col2 DIV - + col1 + - - col1 + + + ( + 19 ) * col0 * - col2 FROM tab0 AS cor0
----
-13267
-16499
-182258

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL + col2 + + - col2 / - + col1 + - - col1 + + + ( + 19 ) * col0 * - col2 FROM tab0 AS cor0
----
-13267
-16499
-182258

query I rowsort
SELECT ALL + col1 + - col1 - + col0 AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT CAST( 75 AS SIGNED ) FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7122
SELECT CAST ( 75 AS INTEGER ) FROM tab1
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT ALL - col2 + + 74 DIV + col0 AS col1 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - col2 + + 74 / + col0 AS col1 FROM tab1
----
-59
-68
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT COUNT( * ) + + COUNT( * ) * - + 93 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7124
SELECT COUNT ( * ) + + COUNT ( * ) * - + 93 FROM tab1
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT col0 * + - col2 + + CAST( + col0 AS SIGNED ) FROM tab0
----
-690
-783
-9506

skipif mysql # not compatible
query I rowsort label-7125
SELECT col0 * + - col2 + + CAST ( + col0 AS INTEGER ) FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NOT NULL <= + 98
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 7 > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7129
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7129
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT ALL 17 + - - MIN( DISTINCT - col0 ) + 53 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL 17 + - - MIN ( DISTINCT - col0 ) + 53 FROM tab1
----
-21

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 * 3 + + + 23 + ( + col2 ) - + + 65 NOT BETWEEN - 98 AND col1 )
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col0 + - 18 col0 FROM tab2 cor0
----
1040
2542
4332

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

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

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

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

query I rowsort
SELECT ALL - + col1 + - + 6 FROM tab2 cor0
----
-57
-73
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7141
SELECT ALL COUNT( DISTINCT + - 66 ) DIV + 5 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL COUNT ( DISTINCT + - 66 ) / + 5 AS col2 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT ALL COUNT( + 37 ) AS col0, 0 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-7144
SELECT ALL COUNT ( + 37 ) AS col0, 0 FROM tab0
----
3
0

query I rowsort
SELECT 16 * + 39 FROM tab2 AS cor0 WHERE NOT col1 = + + 60 * + col0
----
624
624
624

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab2 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT - + ( + - 11 ) * SUM( - col1 ) FROM tab0 AS cor0
----
-1133

skipif mysql # not compatible
query I rowsort label-7147
SELECT - + ( + - 11 ) * SUM ( - col1 ) FROM tab0 AS cor0
----
-1133

query I rowsort
SELECT ALL 41 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL 81 * - COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
-729

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL 81 * - COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
-729

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 78 + 40 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 91 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7154
SELECT + col0, col2 * + col1 * + + 78 * + + CAST( - 21 AS SIGNED ) * + - col0 FROM tab1 AS cor0
----
51
112275072
85
41072850
91
476389368

skipif mysql # not compatible
query II rowsort label-7154
SELECT + col0, col2 * + col1 * + + 78 * + + CAST ( - 21 AS INTEGER ) * + - col0 FROM tab1 AS cor0
----
51
112275072
85
41072850
91
476389368

query I rowsort
SELECT - 91 + + 91 + + col0 + col2 * 54 * - - col0 AS col0 FROM tab0 cor0
----
38085
47067
518659

query I rowsort
SELECT + - ( + col0 ) + + + 65 * + - 33 FROM tab0 AS cor0
----
-2160
-2232
-2242

query I rowsort
SELECT - + 44 + + - col0 AS col2 FROM tab0 AS cor0
----
-131
-141
-59

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT - MIN( - - 45 ) AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-45

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT - MIN ( - - 45 ) AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL SUM( DISTINCT col0 ) + + + 31 FROM tab0
----
230

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL SUM ( DISTINCT col0 ) + + + 31 FROM tab0
----
230

query II rowsort
SELECT col2 * 38 AS col1, 32 AS col2 FROM tab1
----
2242
32
2584
32
3648
32

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

query I rowsort
SELECT DISTINCT col0 + - + col2 FROM tab1
----
-45
23
26

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT + COUNT( ALL - col2 ) - - SUM( ALL - - 69 ) DIV - - 69 FROM tab0 AS cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-7168
SELECT + COUNT ( ALL - col2 ) - - SUM ( ALL - - 69 ) / - - 69 FROM tab0 AS cor0 WHERE NULL IS NULL
----
6

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

skipif mysql # not compatible
query I rowsort label-7169
SELECT - MIN ( - + col2 ) FROM tab0 AS cor0
----
99

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

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL SUM ( DISTINCT CAST ( + 52 AS INTEGER ) ) FROM tab2 AS cor0
----
52

query I rowsort
SELECT ALL + col2 + - + col0 + - 12 AS col0 FROM tab0 AS cor0
----
-10
-89
20

query I rowsort
SELECT + 21 + col2 AS col2 FROM tab2
----
44
61
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7173
SELECT ALL * FROM tab1 WHERE NOT - col2 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7173
SELECT ALL * FROM tab1 WHERE NOT - col2 < CAST ( NULL AS INTEGER )
----

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

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

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

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

query II rowsort
SELECT + col1 * + - 91 * col0 AS col0, - 89 FROM tab1 AS cor0
----
-38675
-89
-389207
-89
-64974
-89

query I rowsort
SELECT col2 * - 83 + - col1 + col1 * + + ( + 25 ) FROM tab2 AS cor0
----
-1472
-3206
-685

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 91 <> - col1
----

query I rowsort
SELECT - - col0 AS col0 FROM tab2 WHERE NOT ( 25 IS NULL )
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT col0 DIV ( - 71 ) * + 13 FROM tab1
----
-13
-13
0

skipif mysql # not compatible
query I rowsort label-7180
SELECT col0 / ( - 71 ) * + 13 FROM tab1
----
-13
-13
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT DISTINCT + col0 DIV + + 32 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT + col0 / + + 32 FROM tab0
----
0
2
3

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

skipif mysql # not compatible
query II rowsort label-7182
SELECT DISTINCT + - 37 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-37
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col1, - col2 * - 91 col1 FROM tab0 AS cor0
----
-15
4277
-87
910
-97
9009

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

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

query I rowsort
SELECT ALL - col2 + - - 77 * 53 + col2 FROM tab1
----
4081
4081
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT SUM( - col1 ) * - - MAX( ALL - col0 ) AS col0 FROM tab0
----
1545

skipif mysql # not compatible
query I rowsort label-7186
SELECT SUM ( - col1 ) * - - MAX ( ALL - col0 ) AS col0 FROM tab0
----
1545

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

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL ( - col1 ) / col2 * - - col1 FROM tab1
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT DISTINCT - CAST( 98 AS SIGNED ) + + 79 FROM tab0 AS cor0 WHERE col2 + + col2 - - + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT - CAST ( 98 AS INTEGER ) + + 79 FROM tab0 AS cor0 WHERE col2 + + col2 - - + col2 > NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL + MAX( - col2 ) AS col1 FROM tab2 WHERE + 10 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + MAX ( - col2 ) AS col1 FROM tab2 WHERE + 10 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = - col0 + + 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7196
SELECT DISTINCT - ( + col2 ) + + ( col1 ) - col1 DIV 90 + + 22 FROM tab2
----
31
50
59

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT - ( + col2 ) + + ( col1 ) - col1 / 90 + + 22 FROM tab2
----
31
50
59

query I rowsort
SELECT 75 + - col1 AS col2 FROM tab0
----
-6
54
74

query II rowsort
SELECT DISTINCT + col0, 20 FROM tab0
----
15
20
87
20
97
20

onlyif mysql # DIV for integer division: 
query II rowsort label-7199
SELECT col1 + - + col0 + - + col2 * - col1 + col1 DIV - 61 - - + col0 * col1 AS col0, col0 AS col0 FROM tab1
----
2021
51
640
85
7429
91

skipif mysql # not compatible
query II rowsort label-7199
SELECT col1 + - + col0 + - + col2 * - col1 + col1 / - 61 - - + col0 * col1 AS col0, col0 AS col0 FROM tab1
----
2021
51
640
85
7429
91

query II rowsort
SELECT col0 + 15 + - col2 AS col1, col0 + + col2 AS col1 FROM tab0
----
-17
62
13
196
92
97

query I rowsort
SELECT col1 + + col0 + + - col0 + - 85 - + col0 AS col0 FROM tab2
----
-72
-80
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT + 58 + - COUNT( * ) AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 58 + - COUNT ( * ) AS col1 FROM tab0
----
55

query I rowsort
SELECT 23 + - 85 FROM tab1
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT + COUNT( * ) + + MIN( col0 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7204
SELECT + COUNT ( * ) + + MIN ( col0 ) AS col1 FROM tab0
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7205
SELECT + COUNT( ALL ( + 10 ) ) + - SUM( CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT + COUNT ( ALL ( + 10 ) ) + - SUM ( CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 58 AS col2 FROM tab0 cor0 WHERE ( 27 ) IS NOT NULL
----
58
58
58

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 81 > col1
----

query I rowsort
SELECT col2 * col2 * - - ( + col2 ) * 79 + - - col1 + + col0 FROM tab0 AS cor0
----
76653719
79108
8202113

query II rowsort
SELECT DISTINCT + 47 / - col2 AS col2, - col0 + + - 36 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > + 88
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT - COUNT( * ) * - MIN( + col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7216
SELECT - COUNT ( * ) * - MIN ( + col2 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT col0 * + - col2 * + col0 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT col1 * 58 FROM tab1
----
2726
290
812

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT MIN( ALL 82 ) AS col1 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-7219
SELECT MIN ( ALL 82 ) AS col1 FROM tab2
----
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT DISTINCT 30 * MIN( 66 ) AS col1 FROM tab1
----
1980

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT 30 * MIN ( 66 ) AS col1 FROM tab1
----
1980

query I rowsort
SELECT ALL + 84 * - col0 AS col2 FROM tab0
----
-1260
-7308
-8148

query II rowsort
SELECT 39, - 67 AS col0 FROM tab0
----
39
-67
39
-67
39
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT - CAST( NULL AS SIGNED ) * 12 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 90 * + 15 AS col0 FROM tab2
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT + col2 + - col2 DIV + + ( - 55 ) FROM tab2 WHERE NOT 34 IS NULL
----
23
40
59

skipif mysql # not compatible
query I rowsort label-7226
SELECT + col2 + - col2 / + + ( - 55 ) FROM tab2 WHERE NOT 34 IS NULL
----
23
40
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7227
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / 68 * + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7227
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / 68 * + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 73 * 80 + - col1 + + col0 AS col1 FROM tab0 AS cor0
----
5774
5906
5936

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

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

query I rowsort
SELECT col1 + col2 + - 81 * + col1 FROM tab2 WHERE NOT + 65 BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7232
SELECT ALL + COUNT( * ) DIV CAST( 74 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + COUNT ( * ) / CAST ( 74 AS INTEGER ) FROM tab2
----
0

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

query II rowsort
SELECT DISTINCT col1, col1 * - + col1 FROM tab1 AS cor0
----
14
-196
47
-2209
5
-25

query II rowsort
SELECT ALL col2 AS col1, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT - ( + + SUM( col0 ) ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - ( + + SUM ( col0 ) ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + 36 + + SUM( + 47 ) AS col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7238
SELECT + 36 + + SUM ( + 47 ) AS col2 FROM tab0 AS cor0
----
177

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

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

query I rowsort
SELECT ALL - col0 - + - 40 FROM tab1
----
-11
-45
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7242
SELECT ALL * FROM tab2 WHERE ( CAST( + + CAST( - col2 AS SIGNED ) AS SIGNED ) / col0 > NULL )
----

skipif mysql # not compatible
query III rowsort label-7242
SELECT ALL * FROM tab2 WHERE ( CAST ( + + CAST ( - col2 AS INTEGER ) AS INTEGER ) / col0 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT ALL - 43 DIV + col1 + - - ( - 17 ) + + + col0 * - col1 - - col1 * + col2 * - 18 FROM tab1
----
-24926
-5760
-61822

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL - 43 / + col1 + - - ( - 17 ) + + + col0 * - col1 - - col1 * + col2 * - 18 FROM tab1
----
-24926
-5760
-61822

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT BETWEEN - col2 + + col2 AND col1 * col1 - 26 * - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - + col2 - + 16 FROM tab2 AS cor0
----
-39
-56
-74

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

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

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

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

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

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

query I rowsort
SELECT col2 * + - col1 - - col0 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT + CAST( + ( col1 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7253
SELECT + CAST ( + ( col1 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
1
21
81

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7257
SELECT + - COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT col2 IS NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7261
SELECT col2 * - CAST( NULL AS SIGNED ) AS col0, + 23 FROM tab2
----
NULL
23
NULL
23
NULL
23

skipif mysql # not compatible
query II rowsort label-7261
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col0, + 23 FROM tab2
----
NULL
23
NULL
23
NULL
23

query I rowsort
SELECT DISTINCT - 23 + + col1 FROM tab0 WHERE NOT col2 IS NULL
----
-2
-22
58

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

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

query I rowsort
SELECT DISTINCT - + 71 * + col0 FROM tab2 AS cor0
----
-3266
-4544
-5325

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

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

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

query I rowsort
SELECT 52 * + 51 FROM tab1
----
2652
2652
2652

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

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT - MAX ( - + col0 ) AS col1 FROM tab0
----
15

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

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

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

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

query I rowsort
SELECT ALL - 53 * col2 AS col2 FROM tab0 AS cor0
----
-2491
-5247
-530

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 45 + - 34 col1 FROM tab2 AS cor0
----
-1069
-1834
-2644

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT ALL + col2 * col1 + col2 DIV col1 FROM tab0 cor0
----
198
210
3807

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + col2 * col1 + col2 / col1 FROM tab0 cor0
----
198
210
3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 * ( + 40 ) col2 FROM tab2
----
920

query I rowsort
SELECT ( - 83 ) + + ( - col1 ) FROM tab2
----
-134
-150
-160

onlyif mysql # DIV for integer division: 
query II rowsort label-7277
SELECT + 18 + + - col0 + + - 97 DIV + + 37 AS col1, col2 FROM tab0
----
-71
10
-81
99
1
47

skipif mysql # not compatible
query II rowsort label-7277
SELECT + 18 + + - col0 + + - 97 / + + 37 AS col1, col2 FROM tab0
----
-71
10
-81
99
1
47

query I rowsort
SELECT DISTINCT col1 * col0 + 61 FROM tab0
----
1276
158
1888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - 28 * + col0 col1 FROM tab2
----
1242
1728
2025

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT ALL + col2 * - 30 + + + col0 - + + 64 DIV - col1 FROM tab2
----
-1136
-1665
-643

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + col2 * - 30 + + + col0 - + + 64 / - col1 FROM tab2
----
-1136
-1665
-643

query I rowsort
SELECT - col0 + 15 * col2 AS col2 FROM tab2
----
299
536
795

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

query I rowsort
SELECT ( 81 ) + 60 FROM tab0
----
141
141
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT DISTINCT - col2 - + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - col2 - + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col2 * - 29 + - 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7286
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - CAST( - 0 AS SIGNED ) - + 13 + - 49 AS col2 FROM tab2 AS cor0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-7286
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - CAST ( - 0 AS INTEGER ) - + 13 + - 49 AS col2 FROM tab2 AS cor0
----
NULL
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 <> col1
----

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
51
67
77

query I rowsort
SELECT + col1 * 74 FROM tab1
----
1036
3478
370

onlyif mysql # DIV for integer division: 
query I rowsort label-7291
SELECT col2 * 62 DIV col1 FROM tab0
----
29
35
6138

skipif mysql # not compatible
query I rowsort label-7291
SELECT col2 * 62 / col1 FROM tab0
----
29
35
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT SUM( DISTINCT col0 ) * + + COUNT( * ) * + COUNT( * ) FROM tab0
----
1791

skipif mysql # not compatible
query I rowsort label-7292
SELECT SUM ( DISTINCT col0 ) * + + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
1791

query III rowsort
SELECT * FROM tab1 WHERE NOT - 68 = NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT - SUM( - 47 ) * 11 + - 40 FROM tab2 AS cor0
----
1511

skipif mysql # not compatible
query I rowsort label-7297
SELECT - SUM ( - 47 ) * 11 + - 40 FROM tab2 AS cor0
----
1511

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE 72 * - 3 * + col0 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT - MIN( ALL - 21 ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - MIN ( ALL - 21 ) FROM tab0 AS cor0
----
21

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 + + col0 col0 FROM tab0
----
109
119
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7304
SELECT DISTINCT - COUNT( * ), SUM( DISTINCT + col2 ) - 14 + - COUNT( * ) AS col0 FROM tab0
----
-3
139

skipif mysql # not compatible
query II rowsort label-7304
SELECT DISTINCT - COUNT ( * ), SUM ( DISTINCT + col2 ) - 14 + - COUNT ( * ) AS col0 FROM tab0
----
-3
139

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 65 + - col0 + + col1 AS col0, 53 * + 79 AS col2 FROM tab2 AS cor0
----
57
4187
70
4187
78
4187

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 85 col0 FROM tab2
----
4335
5695
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT MIN( 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7311
SELECT MIN ( 11 ) FROM tab1
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT - COUNT( * ) * 27 AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7315
SELECT - COUNT ( * ) * 27 AS col0 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL 38 - + 26 * COUNT( * ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL 38 - + 26 * COUNT ( * ) FROM tab0
----
-40

query I rowsort
SELECT - col2 * + 48 FROM tab0
----
-2256
-4752
-480

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + MIN( + 18 ) AS col1 FROM tab1 WHERE NOT col0 * col2 + - 11 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT + MIN ( + 18 ) AS col1 FROM tab1 WHERE NOT col0 * col2 + - 11 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - 65 ) * 24 AS col2 FROM tab2
----
-1560
-1560
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT DISTINCT + MAX( + 29 ) AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT + MAX ( + 29 ) AS col1 FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT 6 * MIN( col0 * - col1 ) AS col1 FROM tab0
----
-10962

skipif mysql # not compatible
query I rowsort label-7322
SELECT 6 * MIN ( col0 * - col1 ) AS col1 FROM tab0
----
-10962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT ALL ( CAST( + col1 AS SIGNED ) ) FROM tab0 WHERE NOT + 61 * col1 + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL ( CAST ( + col1 AS INTEGER ) ) FROM tab0 WHERE NOT + 61 * col1 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 56 AS col1 FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT col0 * - 68 FROM tab1
----
-3468
-5780
-6188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( col1 * 42 + - col2 )
----

query I rowsort
SELECT - col1 + + 88 FROM tab0
----
67
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col0 col1 FROM tab1
----
-60
145
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT COUNT( + 21 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7329
SELECT COUNT ( + 21 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7330
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( col0 AS SIGNED ) = ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7330
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( col0 AS INTEGER ) = ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT ALL - col0 DIV + col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - col0 / + col0 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * ( 22 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 <> - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT + 39 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7334
SELECT + 39 / col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > ( + col2 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 - 49 col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT ALL COUNT( * ) + + 57 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL COUNT ( * ) + + 57 FROM tab0
----
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 92 IN ( + 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT 53 + ( COUNT( * ) ) * MIN( 91 ) FROM tab2
----
326

skipif mysql # not compatible
query I rowsort label-7339
SELECT 53 + ( COUNT ( * ) ) * MIN ( 91 ) FROM tab2
----
326

query I rowsort
SELECT DISTINCT + col2 * 22 AS col0 FROM tab0 AS cor0
----
1034
2178
220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7341
SELECT ALL 95 DIV MAX( ALL + 43 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL 95 / MAX ( ALL + 43 ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT col2 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT ALL 85 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT + 35 DIV 99 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT + 35 / 99 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL + 83 * + COUNT( * ) AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL + 83 * + COUNT ( * ) AS col1 FROM tab1
----
249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7347
SELECT 2 DIV + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
query I rowsort label-7347
SELECT 2 / + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE - 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7349
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + 31 )
----

skipif mysql # not compatible
query I rowsort label-7349
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + 31 )
----

query I rowsort
SELECT + col0 * 23 AS col1 FROM tab0 AS cor0
----
2001
2231
345

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) IN ( 89 - 34 )
----

query I rowsort
SELECT 64 * - 86 + + col0 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 16 IS NULL
----
-15107
-6209
-6374

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + col1 IN ( - ( 93 ) - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7354
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - 14 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 - col2 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / + 83 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 5 * col2 FROM tab2 WHERE NOT ( - 61 * + 37 ) BETWEEN ( ( - 32 ) ) AND - col2
----
115
200
290

query I rowsort
SELECT + col2 * + + col2 * col0 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT 14 * + + col2 FROM tab1
----
1344
826
952

query I rowsort
SELECT ALL + 90 * ( - col1 * + col1 ) FROM tab2 WHERE NOT NULL BETWEEN ( 90 ) + - col2 AND ( - col1 + 59 * + ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7362
SELECT col1 + col0 DIV col0 AS col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-7362
SELECT col1 + col0 / col0 AS col2 FROM tab0
----
2
22
82

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT col1 / col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + COUNT( * ) + + + 23 - 71 AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7364
SELECT + COUNT ( * ) + + + 23 - 71 AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL + - 39 FROM tab2 cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT - + SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT - + SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT MIN( 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-7368
SELECT MIN ( 20 ) FROM tab0
----
20

query I rowsort
SELECT 63 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - col0 * + - col1 * ( - ( col2 ) ) FROM tab1 AS cor0
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( + col0 * col2 )
----

query I rowsort
SELECT + 26 * + col1 - + 70 + - col2 * + col1 FROM tab1 cor0
----
-1050
-2044
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 82 <> col1
----
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 82 <> col1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + 32 IN ( - col2 + + col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7375
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7376
SELECT DISTINCT - COUNT( DISTINCT + + CAST( NULL AS DECIMAL ) ) + 87 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( NULL AS REAL ) ) + 87 FROM tab1 AS cor0
----
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col0 * + - col0 / col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 25 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + - 57 AS col0 FROM tab2
----
-17
-34
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 8 + 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - ( - col2 ) AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - 18 * + ( + col0 ) AS col2 FROM tab1
----
-1530
-1638
-918

query I rowsort
SELECT + 0 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + 28 * - 20 FROM tab0 WHERE NOT NULL NOT IN ( - col2 + - col2 * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 < ( NULL )
----

query I rowsort
SELECT + 69 AS col1 FROM tab2 AS cor0 WHERE NOT 80 * - col1 IN ( + + col0 )
----
69
69
69

query I rowsort
SELECT ALL + - 69 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT + col1 * 98 + - 53 + 43 FROM tab1 AS cor0
----
1362
4596
480

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 + - 64 < ( NULL )
----

query I rowsort
SELECT 10 + - col2 FROM tab0 AS cor0
----
-37
-89
0

query I rowsort
SELECT ALL + AVG ( ALL + ( 90 ) ) AS col0 FROM tab1 cor0 WHERE + col2 + col0 = ( - 65 * - + col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * - - col2 * + - col0 + - 47 col1 FROM tab2 AS cor0
----
197150
291470
53962

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * 36 + + col1 + col0 * col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT - COUNT( * ) + - 78 * + - 83 FROM tab2
----
6471

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - COUNT ( * ) + - 78 * + - 83 FROM tab2
----
6471

query III rowsort
SELECT * FROM tab1 WHERE - - col0 >= + 80
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT ALL 96 DIV - + 22 AS col1 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL 96 / - + 22 AS col1 FROM tab2
----
-4
-4
-4

query II rowsort
SELECT ALL + col0, 66 AS col1 FROM tab1 AS cor0
----
51
66
85
66
91
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT - CAST( NULL AS SIGNED ) - + - AVG ( ALL - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT - CAST ( NULL AS INTEGER ) - + - AVG ( ALL - col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT DISTINCT - col0 + 10 - CAST( NULL AS SIGNED ) + + - col1 * - ( 95 ) / CAST( NULL AS SIGNED ) * - col2 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7401
SELECT DISTINCT - col0 + 10 - CAST ( NULL AS INTEGER ) + + - col1 * - ( 95 ) / CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + col2 * - + col1 AS col0 FROM tab2
----
-1150
-3040
-3828

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 20 + - col0, - 41 + - + 63 - + - col1 )
----

query I rowsort
SELECT - ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + - 36 AS col1 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT + - 51 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> + col2
----

query II rowsort
SELECT ALL - ( + 41 ), col0 AS col1 FROM tab1 cor0
----
-41
51
-41
85
-41
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 70, col1 )
----

query I rowsort
SELECT ( + + 98 ) * 97 FROM tab1
----
9506
9506
9506

query III rowsort
SELECT * FROM tab2 WHERE NOT 89 < + - col2 + + ( 28 ) - + 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + ( + 8 ) FROM tab2
----
184
320
464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - 84 FROM tab2
----
51
-84
67
-84
77
-84

query III rowsort
SELECT ALL * FROM tab2 WHERE 43 - + col0 - - + 15 IS NULL
----

query II rowsort
SELECT DISTINCT + 70 + - ( col1 ) * + col1, + 98 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + + col1, 85 + + - col2 AS col0 FROM tab1 cor0
----
14
-11
47
17
5
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7417
SELECT - - 43 AS col1, SUM( DISTINCT + col1 ) + + 53 - - MIN( ALL - + ( - 48 ) ) + + - 66 AS col0 FROM tab0 AS cor0
----
43
138

skipif mysql # not compatible
query II rowsort label-7417
SELECT - - 43 AS col1, SUM ( DISTINCT + col1 ) + + 53 - - MIN ( ALL - + ( - 48 ) ) + + - 66 AS col0 FROM tab0 AS cor0
----
43
138

query I rowsort
SELECT DISTINCT + col1 * + col1 * + col2 * - + 32 AS col0 FROM tab2 AS cor0 WHERE + col0 / col1 * 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7419
SELECT + + COUNT( * ) AS col2, 77 + COUNT( DISTINCT 84 ) * 75 FROM tab2 AS cor0
----
3
152

skipif mysql # not compatible
query II rowsort label-7419
SELECT + + COUNT ( * ) AS col2, 77 + COUNT ( DISTINCT 84 ) * 75 FROM tab2 AS cor0
----
3
152

query I rowsort
SELECT DISTINCT - ( 13 ) AS col1 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL - + col1 + col0 * col2 * - - 70 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
342706
351045
433113

query I rowsort
SELECT DISTINCT 67 * + col2 * + - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-233232
-309855
-617486

query I rowsort
SELECT ALL - 0 * - ( col0 ) AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - col1 AS col2, 85 FROM tab1 WHERE NOT 80 NOT BETWEEN - - 43 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL + + MIN( DISTINCT + col0 ) FROM tab2 WHERE - 15 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + + MIN ( DISTINCT + col0 ) FROM tab2 WHERE - 15 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7426
SELECT ALL - CAST( COUNT( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - CAST ( COUNT ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 * + col1 * + 57 NOT BETWEEN NULL AND - - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ALL - + MAX( DISTINCT col1 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL - + MAX ( DISTINCT col1 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - 14 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT + col1 + col1 * ( col2 ) FROM tab1
----
1358
300
3243

query I rowsort
SELECT 24 * + + 27 + + col1 FROM tab0
----
649
669
729

query I rowsort
SELECT ALL col0 * ( + - col2 ) + - - 95 FROM tab1
----
-4801
-4920
-6093

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE 51 IN ( - col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL - SUM( DISTINCT ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL - SUM ( DISTINCT ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + 16 AS col2 FROM tab1 AS cor0 WHERE NOT 82 BETWEEN col2 AND NULL
----
16

query II rowsort
SELECT DISTINCT - col0, - 76 AS col0 FROM tab1 AS cor0
----
-51
-76
-85
-76
-91
-76

query I rowsort
SELECT - col0 * - - col1 * - 81 AS col0 FROM tab0
----
147987
7857
98415

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT - MAX( col0 ) AS col1, + 4 AS col1 FROM tab2
----
-75
4

skipif mysql # not compatible
query II rowsort label-7441
SELECT - MAX ( col0 ) AS col1, + 4 AS col1 FROM tab2
----
-75
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT DISTINCT - COUNT( * ) * CAST( - + 17 AS SIGNED ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT - COUNT ( * ) * CAST ( - + 17 AS INTEGER ) AS col0 FROM tab2
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - - col2, - col0 * 50 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + COUNT( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7445
SELECT + COUNT ( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 66 AS col1 FROM tab2 AS cor0
----
-66
-66
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 7 / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL + COUNT( + ( + + col2 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL + COUNT ( + ( + + col2 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * + col0 * + + ( + col2 ) col0 FROM tab0 AS cor0
----
48645
60030
662607

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT - 39 * - - COUNT( * ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - 39 * - - COUNT ( * ) FROM tab0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL - COUNT( * ) * + COUNT( * ) * - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT 4 DIV - col1 + 7 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
-328
-385
-621

skipif mysql # not compatible
query I rowsort label-7453
SELECT 4 / - col1 + 7 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
-328
-385
-621

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab0 cor0
----
-84

query I rowsort
SELECT DISTINCT 21 + - col2 FROM tab2 AS cor0
----
-19
-2
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + SUM( ALL - col0 ) + + COUNT( * ) + + SUM( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-377

skipif mysql # not compatible
query I rowsort label-7456
SELECT + SUM ( ALL - col0 ) + + COUNT ( * ) + + SUM ( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-377

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) > + + col2
----

query I rowsort
SELECT ALL - col2 * - ( ( - 99 ) ) FROM tab1 AS cor0
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL + COUNT( * ) + - + COUNT( - 52 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + COUNT ( * ) + - + COUNT ( - 52 ) AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 * col1 * + - col1 + + col0 * + col1 col1 FROM tab0 AS cor0
----
-19341
-313713
49

query I rowsort
SELECT - + col1 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 95 + + - 87 FROM tab2
----
-107
-118
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + - col1 col2, - ( col0 ) FROM tab1
----
37
-51
44
-91
80
-85

query III rowsort
SELECT * FROM tab2 WHERE col0 - + 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col2 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + 16 + + col2 FROM tab1
----
112
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT - + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7467
SELECT - + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT ( 68 ) FROM tab2
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 83 col2 FROM tab0
----
3901
8217
830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7470
SELECT DISTINCT COUNT( * ) * - ( 80 ) - + CAST( + + 56 AS SIGNED ) AS col0, - 26 AS col0 FROM tab2
----
-296
-26

skipif mysql # not compatible
query II rowsort label-7470
SELECT DISTINCT COUNT ( * ) * - ( 80 ) - + CAST ( + + 56 AS INTEGER ) AS col0, - 26 AS col0 FROM tab2
----
-296
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT DISTINCT + + COUNT( * ) * - - ( + 42 ) FROM tab0 cor0
----
126

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT + + COUNT ( * ) * - - ( + 42 ) FROM tab0 cor0
----
126

query I rowsort
SELECT col0 - 95 AS col2 FROM tab0 cor0
----
-8
-80
2

query I rowsort
SELECT col2 + + col0 - - - col1 FROM tab2 AS cor0
----
18
27
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT - 52 * 83 * - MAX( + col1 ) FROM tab1 AS cor0
----
202852

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - 52 * 83 * - MAX ( + col1 ) FROM tab1 AS cor0
----
202852

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / + - col2 / - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 3 AS col1 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7477
SELECT DISTINCT - + col2 * - - CAST( NULL AS DECIMAL ) * 81 + col1 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7477
SELECT DISTINCT - + col2 * - - CAST ( NULL AS REAL ) * 81 + col1 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT ALL - 41 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - 41 / - - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 >= + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - - col0 * + CAST( NULL AS SIGNED ) AND - - ( - col2 ) / - + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7480
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - - col0 * + CAST ( NULL AS INTEGER ) AND - - ( - col2 ) / - + col2
----

query I rowsort
SELECT 61 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 81 * - col1 AS col0 FROM tab1
----
1134
3807
405

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * 80 IS NOT NULL
----

query I rowsort
SELECT + col1 * - 48 AS col0 FROM tab1
----
-2256
-240
-672

query I rowsort
SELECT DISTINCT ( + - ( - 97 ) ) AS col2 FROM tab2
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) = - col2
----

query II rowsort
SELECT ALL col0 AS col2, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + ( + 3 ) AS col2 FROM tab1
----
3
3
3

query I rowsort
SELECT 36 FROM tab2 WHERE NOT - - 58 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - 41 * - COUNT( * ) AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-7490
SELECT - 41 * - COUNT ( * ) AS col2 FROM tab2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7491
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7491
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7492
SELECT + CAST( col0 AS SIGNED ) + + col1 + col0 * + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7492
SELECT + CAST ( col0 AS INTEGER ) + + col1 + col0 * + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7493
SELECT 94 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT 94 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + ( + - 36 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT + ( + col2 ) * - - col2 * - CAST( 67 AS SIGNED ) + + + col0 FROM tab2
----
-107136
-225313
-35397

skipif mysql # not compatible
query I rowsort label-7495
SELECT + ( + col2 ) * - - col2 * - CAST ( 67 AS INTEGER ) + + + col0 FROM tab2
----
-107136
-225313
-35397

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 53 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL - - ( - - COUNT( - 45 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - - ( - - COUNT ( - 45 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + + + 62 * + col2 col0 FROM tab2 cor0
----
-754
-80
368

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL + - SUM( ALL + col2 ) * + 60 FROM tab2 cor0
----
-7260

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + - SUM ( ALL + col2 ) * + 60 FROM tab2 cor0
----
-7260

query I rowsort
SELECT ALL + col0 + 27 AS col2 FROM tab0 AS cor0
----
114
124
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 + - 57 col2 FROM tab0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7502
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( col0, col2, col1, + CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-7502
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( col0, col2, col1, + CAST ( NULL AS INTEGER ) + col0 )
----

query II rowsort
SELECT ALL - ( + 48 ) * + 90 + - 22 AS col2, - col0 AS col1 FROM tab2
----
-4342
-46
-4342
-64
-4342
-75

query I rowsort
SELECT DISTINCT col2 * - 12 AS col1 FROM tab0
----
-1188
-120
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT - 87 + + COUNT( * ) AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7505
SELECT - 87 + + COUNT ( * ) AS col0 FROM tab1
----
-84

query I rowsort
SELECT ( + - 40 ) FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT - MIN( ALL - 68 ) + + - MAX( - col0 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-7507
SELECT - MIN ( ALL - 68 ) + + - MAX ( - col0 ) FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL - COUNT( ALL - col1 ) * - COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - COUNT ( ALL - col1 ) * - COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - 19 * - 76 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - 19 * - 76 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 60 * - + 50 FROM tab2, tab1 AS cor0 WHERE NULL IN ( + 15 )
----

query I rowsort
SELECT ALL - 73 * - col2 * col1 + + + 90 * - 73 FROM tab2 cor0
----
218270
277108
79059

query I rowsort
SELECT + col1 - - ( col2 ) + + 39 AS col1 FROM tab1 AS cor0
----
103
149
154

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT DISTINCT - ( + col0 ) * - + 54 + + - col2 DIV + - 46 + + 89 col2 FROM tab1 AS cor0
----
2845
4680
5004

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7514
SELECT DISTINCT - ( + col0 ) * - + 54 + + - col2 / + - 46 + + 89 col2 FROM tab1 AS cor0
----
2845
4680
5004

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2, - col0, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col0 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT - + 1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL + MIN( ALL + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL + MIN ( ALL + - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT + CAST( + ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7519
SELECT + CAST ( + ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 54 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 83 AS col0 FROM tab1
----
-4233
-7055
-7553

query I rowsort
SELECT - col0 * - - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT ALL col0, 98 + col1 FROM tab2
----
46
149
64
175
75
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * + + col2 col0 FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL - 17 * + COUNT( * ) * - ( - COUNT( * ) ) FROM tab2 WHERE NULL IS NULL
----
-153

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL - 17 * + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab2 WHERE NULL IS NULL
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT DISTINCT + + ( - COUNT( * ) ) DIV + MAX( ALL + - col0 ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT + + ( - COUNT ( * ) ) / + MAX ( ALL + - col0 ) AS col2 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 col1 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT - - 24 AS col0 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * + col0 * + col0 + ( + - col0 ) col1 FROM tab2 AS cor0
----
-107962
-315456
-376950

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) FROM tab0 WHERE + 59 > - 95
----
3

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) FROM tab0 WHERE + 59 > - 95
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT + COUNT( - + 14 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7531
SELECT + COUNT ( - + 14 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 21 + - - ( - - 54 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 56 col0, col1 FROM tab1 cor0
----
-56
14
-56
47
-56
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL + COUNT( * ) + + COUNT( * ) * - 41 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * - 41 FROM tab0 AS cor0
----
-120

query I rowsort
SELECT DISTINCT + col2 * + col0 + - ( + col1 ) + + col2 + + + col1 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT - - ( + SUM( DISTINCT col0 ) ) + + - 79 FROM tab1 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-7536
SELECT - - ( + SUM ( DISTINCT col0 ) ) + + - 79 FROM tab1 AS cor0
----
148

query II rowsort
SELECT ALL - - col0 AS col0, - ( + col0 ) FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT - 71 * + 0 + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - - MIN( col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7539
SELECT - - MIN ( col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7540
SELECT - 94 + - MIN( 22 ) AS col1, 24 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7540
SELECT - 94 + - MIN ( 22 ) AS col1, 24 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT - ( - MAX( ALL + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7541
SELECT - ( - MAX ( ALL + col2 ) ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT MIN( - - col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT DISTINCT MIN ( - - col2 ) col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL 72 FROM tab1 WHERE - + col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col2 * + col1 + col1 FROM tab0
----
-308286
-4389
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 >= ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + ( ( col2 ) ) AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT ALL - 64 FROM tab2 WHERE + 86 IS NOT NULL
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + col1 * - - col0 * 11 + col1 AS col2 FROM tab2
----
25857
54285
55342

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT 60 - + COUNT( * ) * - + MAX( + - 54 ) AS col1 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-7549
SELECT 60 - + COUNT ( * ) * - + MAX ( + - 54 ) AS col1 FROM tab0
----
-102

query I rowsort
SELECT + - col1 + + 86 FROM tab2 AS cor0
----
19
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ALL + MIN( 51 ) - - COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL + MIN ( 51 ) - - COUNT ( * ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT + col1 + col1 * - + ( - + 93 ) - - col2 FROM tab1 AS cor0
----
1412
4486
529

query I rowsort
SELECT + ( + + 98 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT ALL col1 DIV - + col1 + - col0 + - 64 + + col0 AS col1 FROM tab1 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL col1 / - + col1 + - col0 + - 64 + + col0 AS col1 FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT - - COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7555
SELECT - - COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 + + col1 * + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab2 cor0
----
63

query I rowsort
SELECT ALL ( + 49 ) + + 63 - 7 FROM tab1 AS cor0 WHERE NOT + col1 = + ( col0 )
----
105
105
105

query I rowsort
SELECT ALL col2 * + 91 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT col2 * + - col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 * + + 82 FROM tab2
----
-3772
-5248
-6150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 13 col0 FROM tab1
----
1105
1183
663

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT + COUNT( * ) * - 95 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + COUNT ( * ) * - 95 FROM tab0
----
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7565
SELECT ALL - - 94 DIV + - SUM( - col0 ) - + 39 col0, - 37 AS col1 FROM tab0 AS cor0
----
-39
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7565
SELECT ALL - - 94 / + - SUM ( - col0 ) - + 39 col0, - 37 AS col1 FROM tab0 AS cor0
----
-39
-37

query II rowsort
SELECT col1, col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT COUNT( * ) * + COUNT( * ) + + - 41, - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
40
-9

skipif mysql # not compatible
query II rowsort label-7568
SELECT COUNT ( * ) * + COUNT ( * ) + + - 41, - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
40
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT SUM( ALL - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7569
SELECT SUM ( ALL - col1 ) AS col1 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL col2 * col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT 29 * + - ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT 29 * + - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + 11 + - + 15 - col1 * - col1 AS col1 FROM tab2 AS cor0
----
2597
4485
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + 42 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7576
SELECT ALL 34, + MIN( - col1 ) AS col0 FROM tab0
----
34
-81

skipif mysql # not compatible
query II rowsort label-7576
SELECT ALL 34, + MIN ( - col1 ) AS col0 FROM tab0
----
34
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL - MAX( DISTINCT + - col0 ) + + 11 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - MAX ( DISTINCT + - col0 ) + + 11 FROM tab2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT COUNT( * ) * - MIN( + - col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT COUNT ( * ) * - MIN ( + - col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT + col1 + 69 AS col1, + col1 AS col1 FROM tab0
----
150
81
70
1
90
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT ALL + 13 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + 13 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - 91 AS col1 FROM tab2
----
33
51
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col2 * + + col2 + + 69 col2 FROM tab2
----
-1491
-3237
-437

query I rowsort
SELECT DISTINCT col0 + - - col1 + - 62 * + col1 + 77 AS col1 FROM tab0
----
-1117
-4849
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + SUM( ALL - - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7584
SELECT + SUM ( ALL - - col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT ALL + col0 - + - col0 FROM tab2
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 31, + 61 * - col0 * col1 col2 FROM tab0
----
-31
-111447
-31
-5917
-31
-74115

query II rowsort
SELECT 72 AS col1, ( ( + 21 ) ) FROM tab1 AS cor0
----
72
21
72
21
72
21

query I rowsort
SELECT col2 * - col0 + - - col1 FROM tab1 AS cor0 WHERE NOT col2 * - + col2 / + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + - MAX( - 35 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7589
SELECT + - MAX ( - 35 ) FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT ALL + + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 65 * + col2 AS col0 FROM tab1 AS cor0
----
3835
4420
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT DISTINCT + col1 DIV + + col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + col1 / + + col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col1 FROM tab1 AS cor0
----
-83
-83
-83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - 11 * - col0 - + 94 / + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 35 AS col1 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND + col1 * ( - 3 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT - 12 + + 21, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
9
-3

skipif mysql # not compatible
query II rowsort label-7597
SELECT - 12 + + 21, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9
-3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE col2 * col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 7 * + 42 + - - col2 FROM tab1 AS cor0
----
353
362
390

query I rowsort
SELECT - - 27 + - + 72 + + - col0 AS col0 FROM tab0 AS cor0
----
-132
-142
-60

query II rowsort
SELECT 58 AS col1, col2 - col0 AS col2 FROM tab1
----
58
-23
58
-26
58
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT MIN( DISTINCT - ( - col2 ) ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7602
SELECT MIN ( DISTINCT - ( - col2 ) ) AS col1 FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - 95 * ( col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 51 < - ( - col0 )
----
15
81
47

query I rowsort
SELECT col1 * + 1 AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + col0 * - col1 * + 27 + + col0 - 0 - col2 AS col0 FROM tab0
----
-2621
-32837
-49252

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7607
SELECT * FROM tab1 WHERE CAST( - 82 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7607
SELECT * FROM tab1 WHERE CAST ( - 82 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + + 84 ) FROM tab2
----
84
84
84

query I rowsort
SELECT DISTINCT - col0 + - col2 + + 1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT ALL col2 / CAST( NULL AS SIGNED ) / - - col1 / + col0 / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL col2 / CAST ( NULL AS INTEGER ) / - - col1 / + col0 / col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 AS col1, ( + + col0 ) AS col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT + + 55 DIV + 93 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT + + 55 / + 93 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - MAX( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7613
SELECT - MAX ( ALL + + col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT 64 + - col0 FROM tab1 AS cor0 WHERE NULL <> 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col0 FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT MIN( + ( - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7616
SELECT MIN ( + ( - col1 ) ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - 97 + - 73 AS col2 FROM tab1
----
-170
-170
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-7619
SELECT + col2 DIV - + col2 + + col2 FROM tab2 cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7619
SELECT + col2 / - + col2 + + col2 FROM tab2 cor0
----
22
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7620
SELECT * FROM tab2 AS cor0 WHERE CAST( 8 AS SIGNED ) * + + col2 - + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7620
SELECT * FROM tab2 AS cor0 WHERE CAST ( 8 AS INTEGER ) * + + col2 - + 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * + - 43 AS col2 FROM tab0 AS cor0
----
3483
43
903

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 96 + + col2 * + 38 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7624
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - SUM( ALL 54 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT CAST ( NULL AS REAL ) * - SUM ( ALL 54 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT - 57 DIV COUNT( * ) AS col0 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7626
SELECT - 57 / COUNT ( * ) AS col0 FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT DISTINCT + MIN( DISTINCT - 79 ) AS col1 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + MIN ( DISTINCT - 79 ) AS col1 FROM tab2
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 16 col0, col2 * - 42 * + - 80 AS col2 FROM tab0
----
16
157920
16
332640
16
33600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 64 col2 FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 56 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT ALL - col1 + CAST( NULL AS SIGNED ) + + 40 FROM tab0 WHERE NOT + 54 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - col1 + CAST ( NULL AS INTEGER ) + + 40 FROM tab0 WHERE NOT + 54 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - + ( 82 ) ) AS col0 FROM tab1 WHERE NOT ( NULL ) > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT MAX( DISTINCT - + 71 ) AS col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7633
SELECT MAX ( DISTINCT - + 71 ) AS col2 FROM tab2 AS cor0
----
-71

query II rowsort
SELECT col2 AS col2, 2 AS col0 FROM tab0 AS cor0
----
10
2
47
2
99
2

query II rowsort
SELECT ALL col0, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - ( + 65 )
----

query II rowsort
SELECT - 57, col1 * col0 AS col0 FROM tab2 AS cor0
----
-57
2346
-57
4928
-57
5025

query II rowsort
SELECT col0, 22 AS col0 FROM tab2 AS cor0
----
46
22
64
22
75
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1, - col2 - + col1 col2 FROM tab1 cor0
----
14
-110
47
-115
5
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + 13 * - col1 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL + + col1 + 21 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + + col1 + 21 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 - + col1 - - - col2 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - 95 * + + COUNT( * ) AS col2 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-7644
SELECT - 95 * + + COUNT ( * ) AS col2 FROM tab0
----
-285

query I rowsort
SELECT - - 16 * + - 10 FROM tab1 WHERE + col2 + + col2 IS NOT NULL
----
-160
-160
-160

query I rowsort
SELECT - col2 + - col1 * + col1 * - - col2 AS col0 FROM tab1
----
-150280
-1534
-18912

query I rowsort
SELECT - ( - 86 ) + - ( + col0 ) AS col1 FROM tab1
----
-5
1
35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 + + + ( + - col2 ) col2 FROM tab2
----
-105
-70
-87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7650
SELECT 54 - + 91 DIV + - 30 - - + col1 AS col0, CAST( - col0 AS SIGNED ) + - + 42 col2 FROM tab2 AS cor0
----
108
-88
124
-117
134
-106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7650
SELECT 54 - + 91 / + - 30 - - + col1 AS col0, CAST ( - col0 AS INTEGER ) + - + 42 col2 FROM tab2 AS cor0
----
108
-88
124
-117
134
-106

query I rowsort
SELECT DISTINCT + col1 * - - ( col2 ) - + + 98 FROM tab2 AS cor0
----
1075
2982
3788

query I rowsort
SELECT ALL col1 * - - col2 AS col0 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 12 - - + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT ALL + col2 * - + col2 + + + col0 - - - 82 DIV - 98 FROM tab1 cor0
----
-3396
-4533
-9165

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + col2 * - + col2 + + + col0 - - - 82 / - 98 FROM tab1 cor0
----
-3396
-4533
-9165

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 / col0 <> + - 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT - 69 DIV - 88 AS col0 FROM tab2 AS cor0 WHERE NOT + 37 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT - 69 / - 88 AS col0 FROM tab2 AS cor0 WHERE NOT + 37 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT ALL SUM( + - col0 ) col2, COUNT( * ) col0 FROM tab1
----
-227
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7657
SELECT ALL SUM ( + - col0 ) col2, COUNT ( * ) col0 FROM tab1
----
-227
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT - col2 DIV - - 59 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7658
SELECT - col2 / - - 59 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - MAX( ALL - 45 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7659
SELECT - MAX ( ALL - 45 ) AS col0 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL ( + MIN( ALL + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL ( + MIN ( ALL + col2 ) ) FROM tab1
----
59

query II rowsort
SELECT ALL - 91 * - + 64, - col2 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
5824
28
5824
37
5824
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7662
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT - COUNT( * ) * SUM( 60 ) * - + 10 FROM tab0
----
5400

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT - COUNT ( * ) * SUM ( 60 ) * - + 10 FROM tab0
----
5400

onlyif mysql # DIV for integer division: 
query II rowsort label-7665
SELECT DISTINCT col1 AS col0, - col2 DIV - + 48 FROM tab0
----
1
2
21
0
81
0

skipif mysql # not compatible
query II rowsort label-7665
SELECT DISTINCT col1 AS col0, - col2 / - + 48 FROM tab0
----
1
2
21
0
81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col0 col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL + MAX( DISTINCT - 34 ) AS col1 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + MAX ( DISTINCT - 34 ) AS col1 FROM tab1 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7668
SELECT + - CAST( col1 AS SIGNED ) + col1 DIV - col1 AS col2 FROM tab2 cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-7668
SELECT + - CAST ( col1 AS INTEGER ) + col1 / - col1 AS col2 FROM tab2 cor0
----
-52
-68
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 92 * - - 83 col0 FROM tab2 AS cor0
----
-7682
-7700
-7711

query I rowsort
SELECT - ( col1 ) + - 67 FROM tab2 AS cor0
----
-118
-134
-144

query I rowsort
SELECT - 48 + col0 + - col1 * col2 + + 10 FROM tab0 AS cor0
----
-161
-3830
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + 51 + - COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7672
SELECT + 51 + - COUNT ( * ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT 73 + + - 98 AS col0 FROM tab1
----
-25

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT + SUM( - + 4 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7675
SELECT + SUM ( - + 4 ) FROM tab1
----
-12

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + - col2 + + col2 < - col1 + + + 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab2 WHERE + + 26 * col2 + + - col0 BETWEEN + col2 * - col0 * + 41 / col1 * col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT - COUNT( + col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7678
SELECT - COUNT ( + col1 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + 17, ( col0 ) )
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT - 55 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col2 * + - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT - MAX( + - col2 ) - - + MAX( ALL - - col0 ), + 96 AS col1 FROM tab0 AS cor0
----
107
96

skipif mysql # not compatible
query II rowsort label-7683
SELECT - MAX ( + - col2 ) - - + MAX ( ALL - - col0 ), + 96 AS col1 FROM tab0 AS cor0
----
107
96

query I rowsort
SELECT DISTINCT - 47 * col1 FROM tab1 AS cor0
----
-2209
-235
-658

query I rowsort
SELECT + 22 + ( - col1 ) FROM tab0 AS cor0
----
-59
1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL - - ( + - ( + 20 ) ) * - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL - - ( + - ( + 20 ) ) * - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - 29 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7688
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 4 + + col2, 56 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7688
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 4 + + col2, 56 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT COUNT( * ) * + 66 AS col0 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7689
SELECT COUNT ( * ) * + 66 AS col0 FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT ALL + COUNT( * ) DIV + 99 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + COUNT ( * ) / + 99 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + ( col1 ) * + - 49 AS col2 FROM tab0 AS cor0
----
-1029
-3969
-49

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7693
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7693
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = + col1 / + 99 - - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT col0 DIV - - col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7695
SELECT col0 / - - col1 AS col0 FROM tab0
----
0
4
97

query I rowsort
SELECT col0 * - + 29 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT ALL - - ( - 63 ) * COUNT( * ) AS col1, - 71 AS col1 FROM tab2 AS cor0
----
-189
-71

skipif mysql # not compatible
query II rowsort label-7697
SELECT ALL - - ( - 63 ) * COUNT ( * ) AS col1, - 71 AS col1 FROM tab2 AS cor0
----
-189
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT ALL - + col0 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL - + col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7699
SELECT DISTINCT + col0, 64 * - + col1 * + CAST( NULL AS SIGNED ) + 29 - - col0 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7699
SELECT DISTINCT + col0, 64 * - + col1 * + CAST ( NULL AS INTEGER ) + 29 - - col0 AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT ALL + + col0 * + - col1 + 76, ( + col0 ) FROM tab1 AS cor0
----
-349
85
-4201
91
-638
51

query II rowsort
SELECT 95 * + col1 AS col1, col1 AS col0 FROM tab1
----
1330
14
4465
47
475
5

query I rowsort
SELECT - 19 * col2 + - 66 - + col2 * 99 AS col0 FROM tab2 WHERE NOT + col2 - - + col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 90 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT DISTINCT 35 DIV 67 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT 35 / 67 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 70 * - col0 * - 20 + - + col1 FROM tab0 AS cor0
----
121779
135799
20919

query I rowsort
SELECT ALL - + 40 FROM tab1 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - + COUNT( - - 92 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7707
SELECT - + COUNT ( - - 92 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) * 37 + + - CAST( NULL AS SIGNED ) + - 44 * - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL > - 77
----

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) * 37 + + - CAST ( NULL AS INTEGER ) + - 44 * - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL > - 77
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL AND NOT NULL <= NULL
----

query I rowsort
SELECT 15 + - 36 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT ALL - ( + 87 ) AS col2 FROM tab0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + 36 + + 37 + + + MAX( ALL - 53 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7712
SELECT + 36 + + 37 + + + MAX ( ALL - 53 ) FROM tab2
----
20

query I rowsort
SELECT 30 + - col1 AS col2 FROM tab2
----
-21
-37
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL ( ( MIN( DISTINCT - + col0 ) ) ) + + 26 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL ( ( MIN ( DISTINCT - + col0 ) ) ) + + 26 FROM tab0
----
-71

query I rowsort
SELECT + 63 + - - col1 * - col2 * - - 79 FROM tab0
----
-16527
-300690
-7758

query I rowsort
SELECT DISTINCT 3 * + - 48 AS col0 FROM tab2
----
-144

query I rowsort
SELECT ALL - 48 + 15 FROM tab0
----
-33
-33
-33

query I rowsort
SELECT col0 + - 12 AS col0 FROM tab1
----
39
73
79

query II rowsort
SELECT - col1 * + - col0 + col1, + 99 AS col0 FROM tab2 cor0
----
2397
99
5005
99
5092
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 64 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7721
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) + - col1 <= + CAST( NULL AS SIGNED ) + + - col1 * + col0 + + + col1
----

skipif mysql # not compatible
query III rowsort label-7721
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) + - col1 <= + CAST ( NULL AS INTEGER ) + + - col1 * + col0 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + 51 AS col2, - col2 col0 FROM tab2
----
2346
-23
3264
-40
3825
-58

query I rowsort
SELECT - ( - 57 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - + 35 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT DISTINCT + 47 AS col2, COUNT( * ) * + + 34 AS col1 FROM tab2 AS cor0
----
47
102

skipif mysql # not compatible
query II rowsort label-7725
SELECT DISTINCT + 47 AS col2, COUNT ( * ) * + + 34 AS col1 FROM tab2 AS cor0
----
47
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL ( CAST( - - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL ( CAST ( - - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT DISTINCT - 0 DIV + col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - 0 / + col0 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7728
SELECT col2, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7728
SELECT col2, - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col2, - ( - col0 ) + + 32 AS col2 FROM tab2 AS cor0
----
-46
78
-64
96
-75
107

onlyif mysql # aggregate syntax: 
query II rowsort label-7731
SELECT ALL + 42 * 97 col1, + COUNT( * ) FROM tab0
----
4074
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7731
SELECT ALL + 42 * 97 col1, + COUNT ( * ) FROM tab0
----
4074
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7732
SELECT col2 DIV - - col2, col1 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-7732
SELECT col2 / - - col2, col1 FROM tab1
----
1
14
1
47
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL COUNT( * ) * - ( - - 2 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL COUNT ( * ) * - ( - - 2 ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-7734
SELECT 62 DIV + - col2, + col0 FROM tab2
----
-1
64
-1
75
-2
46

skipif mysql # not compatible
query II rowsort label-7734
SELECT 62 / + - col2, + col0 FROM tab2
----
-1
64
-1
75
-2
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 4 * + 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT ALL - ( + col0 ) DIV 77 * - 27 AS col1 FROM tab0 AS cor0
----
0
27
27

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - ( + col0 ) / 77 * - 27 AS col1 FROM tab0 AS cor0
----
0
27
27

query I rowsort
SELECT - col1 - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 88 * + - col0 < - col2 * + col0 * + col0 + + - 37
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL - COUNT( * ) + - ( + 93 ) col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7738
SELECT ALL - COUNT ( * ) + - ( + 93 ) col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col0 * + - col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 44 > ( col1 )
----
91
47
68

query I rowsort
SELECT + + 19 + + + 55 + + + 13 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <> - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 62 FROM tab1 AS cor0 WHERE ( NOT col0 + + col0 > + col1 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) + - + 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) + - + 37 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 59 + + + col1 + - col0 * + 92 col0 FROM tab0 AS cor0
----
-15
-1240
-87
-7924
-97
-8864

query I rowsort
SELECT ALL - 80 + - col2 + - + col0 / - + col1 * col2 FROM tab1 cor0 WHERE NOT + 91 + - 35 + + + col0 - + col1 / + col0 + + 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT COUNT( + 34 ) * - - 89 AS col0 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-7748
SELECT COUNT ( + 34 ) * - - 89 AS col0 FROM tab1 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - SUM( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7749
SELECT - SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT + - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE - - 90 BETWEEN col1 AND - col1 * - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7750
SELECT + - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE - - 90 BETWEEN col1 AND - col1 * - col0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ALL MIN( - - 56 ) + - - 90 FROM tab2
----
146

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL MIN ( - - 56 ) + - - 90 FROM tab2
----
146

query III rowsort
SELECT * FROM tab2 WHERE - - 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT DISTINCT - 43 DIV - col1 + - 18 DIV + 67 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - 43 / - col1 + - 18 / + 67 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
0

query I rowsort
SELECT - + 88 + 35 FROM tab2 AS cor0
----
-53
-53
-53

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 26 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL 97 * - - 84 AS col0 FROM tab2
----
8148
8148
8148

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - 99 * + + 16 * - - COUNT( * ) * 25 FROM tab0 AS cor0
----
-118800

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 99 * + + 16 * - - COUNT ( * ) * 25 FROM tab0 AS cor0
----
-118800

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT DISTINCT + 41 AS col2, 16 + + MIN( DISTINCT 29 ) FROM tab0 AS cor0
----
41
45

skipif mysql # not compatible
query II rowsort label-7762
SELECT DISTINCT + 41 AS col2, 16 + + MIN ( DISTINCT 29 ) FROM tab0 AS cor0
----
41
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT 31 * - + MAX( + - col0 ) FROM tab1
----
1581

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT 31 * - + MAX ( + - col0 ) FROM tab1
----
1581

query I rowsort
SELECT + ( + col1 ) + 97 FROM tab0 WHERE NOT ( + col2 * - col2 ) BETWEEN NULL AND 30 * + - col0 + + col1
----
118

query I rowsort
SELECT - - col0 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT 90 DIV - COUNT( + col1 ) AS col1 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-7766
SELECT 90 / - COUNT ( + col1 ) AS col1 FROM tab2
----
-30

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 85 AND ( - ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7768
SELECT DISTINCT - COUNT( * ), 22 AS col1 FROM tab2
----
-3
22

skipif mysql # not compatible
query II rowsort label-7768
SELECT DISTINCT - COUNT ( * ), 22 AS col1 FROM tab2
----
-3
22

query I rowsort
SELECT ALL col2 * - 90 AS col2 FROM tab0
----
-4230
-8910
-900

query II rowsort
SELECT ALL - col0 AS col0, 41 FROM tab2
----
-46
41
-64
41
-75
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT + COUNT( * ) * 53 AS col1 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-7771
SELECT + COUNT ( * ) * 53 AS col1 FROM tab1
----
159

onlyif mysql # DIV for integer division: 
query II rowsort label-7772
SELECT + col2 AS col0, + col2 + + + ( + col2 ) - 41 DIV - 51 FROM tab2
----
23
46
40
80
58
116

skipif mysql # not compatible
query II rowsort label-7772
SELECT + col2 AS col0, + col2 + + + ( + col2 ) - 41 / - 51 FROM tab2
----
23
46
40
80
58
116

query I rowsort
SELECT + col2 + - col2 * + col2 * + col2 + - col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

query I rowsort
SELECT ALL - 2 + - 93 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT - - col0 AS col2 FROM tab2 WHERE - 14 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT + COUNT( * ) + + ( 40 ) AS col1 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT + COUNT ( * ) + + ( 40 ) AS col1 FROM tab2
----
43

query I rowsort
SELECT ALL + 52 + col1 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT CAST( + 54 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT CAST ( + 54 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + COUNT( * ) * - + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-549

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + COUNT ( * ) * - + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-549

query II rowsort
SELECT ALL - col1 + + + col0 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
-66
-47
66
-10
96
-99

query I rowsort
SELECT - ( 38 ) FROM tab1 AS cor0 WHERE - col0 >= + col1
----

query I rowsort
SELECT col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 * - + col0 col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 47, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT ( - 33 ) DIV + - 36 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7785
SELECT ( - 33 ) / + - 36 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col1 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + 60 AS col0 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab0
----
-11
-34
98

query II rowsort
SELECT ALL + 79 + - 57 + 56 AS col1, col0 * + col2 AS col2 FROM tab0
----
78
705
78
870
78
9603

query I rowsort
SELECT ALL + col2 - col0 AS col1 FROM tab2
----
-17
-23
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + col0 col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + ( COUNT( * ) ) + + - 47 FROM tab0 WHERE col0 + col1 IS NOT NULL
----
-44

skipif mysql # not compatible
query I rowsort label-7792
SELECT + ( COUNT ( * ) ) + + - 47 FROM tab0 WHERE col0 + col1 IS NOT NULL
----
-44

query I rowsort
SELECT ALL col0 - - - col2 + + 80 AS col1 FROM tab1
----
103
106
35

query II rowsort
SELECT - 14, - col0 AS col0 FROM tab1
----
-14
-51
-14
-85
-14
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 37 + + 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( col2 ) - ( 94 + col2 ) AS col0 FROM tab2
----
-140
-174
-210

query I rowsort
SELECT DISTINCT - 9 FROM tab1 WHERE NULL NOT BETWEEN col2 / 8 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT - MIN( ALL 53 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7798
SELECT - MIN ( ALL 53 ) FROM tab0
----
-53

query I rowsort
SELECT + 60 * - col1 - col0 FROM tab1
----
-2911
-385
-891

query III rowsort
SELECT * FROM tab1 WHERE - col1 <= ( NULL )
----

query I rowsort
SELECT - col0 + 90 AS col1 FROM tab2
----
15
26
44

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL MAX( col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL MAX ( col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT 79 + col1 AS col0 FROM tab1 WHERE NOT ( col2 + 45 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT 92 + COUNT( * ) AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-7805
SELECT 92 + COUNT ( * ) AS col0 FROM tab1
----
95

query I rowsort
SELECT ALL - 15 * + 13 - + col0 AS col1 FROM tab1
----
-246
-280
-286

query I rowsort
SELECT ALL + col2 * col1 - - col2 AS col2 FROM tab0
----
198
220
3854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + - SUM( 25 ) * + 83 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - SUM ( 25 ) * + 83 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT DISTINCT 28 * COUNT( * ) + - 28 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT 28 * COUNT ( * ) + - 28 FROM tab0
----
56

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( + 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT + ( - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7811
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT - ( + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7812
SELECT - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - col2 + - 95 AS col0 FROM tab1
----
-154
-163
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT + CAST( - 41 AS SIGNED ) AS col2 FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-7814
SELECT + CAST ( - 41 AS INTEGER ) AS col2 FROM tab0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT 71 + - COUNT( * ) * COUNT( * ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7816
SELECT 71 + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT 39 + MAX( DISTINCT - col2 + col2 * + 86 ) * + 66 AS col1 FROM tab0
----
555429

skipif mysql # not compatible
query I rowsort label-7817
SELECT 39 + MAX ( DISTINCT - col2 + col2 * + 86 ) * + 66 AS col1 FROM tab0
----
555429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) < 45 * - col0 + col0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 63 AND NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE ( + 19 ) IN ( + col0 * - 46 )
----

query I rowsort
SELECT DISTINCT + col1 * - col2 FROM tab1 WHERE + col0 * + 75 IN ( 32 )
----

query I rowsort
SELECT 35 * col0 + + 12 FROM tab0
----
3057
3407
537

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + 17 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + 17 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - - col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - - col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col0 * ( col0 * 52 - ( 93 ) * col0 ) AS col1 FROM tab0 AS cor0
----
-310329
-385769
-9225

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - COUNT( * ) * - 26 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7826
SELECT - COUNT ( * ) * - 26 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7827
SELECT * FROM tab2 AS cor0 WHERE col0 + 31 >= CAST( 29 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7827
SELECT * FROM tab2 AS cor0 WHERE col0 + 31 >= CAST ( 29 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT + col2 DIV 60 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7828
SELECT + col2 / 60 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - COUNT( * ) * 56 AS col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - COUNT ( * ) * 56 AS col1 FROM tab1 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL + COUNT( * ) * - 49 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + COUNT ( * ) * - 49 FROM tab1 AS cor0
----
-147

query I rowsort
SELECT ALL + + col2 + 18 * - col2 FROM tab2 AS cor0
----
-391
-680
-986

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT 91 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT 91 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT DISTINCT + MIN( DISTINCT col1 ) + 60 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + MIN ( DISTINCT col1 ) + 60 FROM tab1
----
65

query I rowsort
SELECT - col0 FROM tab2 WHERE - ( + col2 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - 30 - - col2 FROM tab0
----
-20
17
69

query I rowsort
SELECT - col2 * col0 AS col0 FROM tab0 WHERE col1 <> ( col2 + + col0 )
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT - CAST( - col1 AS SIGNED ) - col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-7838
SELECT - CAST ( - col1 AS INTEGER ) - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + ( ( - col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 98 * col0 FROM tab2 WHERE col1 < - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL MAX( ALL + ( col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL MAX ( ALL + ( col2 ) ) FROM tab1
----
96

query I rowsort
SELECT - 17 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT + COUNT( DISTINCT 93 ) DIV COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT + COUNT ( DISTINCT 93 ) / COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT DISTINCT + col2 DIV - col2 + col0 AS col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT + col2 / - col2 + col0 AS col0 FROM tab1 AS cor0
----
50
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + SUM( ALL + col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-7845
SELECT + SUM ( ALL + col0 ) FROM tab2 cor0
----
185

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + + 92
----

query I rowsort
SELECT ALL + 8 * + col2 FROM tab0
----
376
792
80

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7849
SELECT + col2, ( + ( - 32 ) ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7849
SELECT + col2, ( + ( - 32 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + 11 * + col1
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT - 79 FROM tab1 AS cor0 WHERE NOT - col1 < ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7853
SELECT 95 AS col2, COUNT( * ) FROM tab1 AS cor0
----
95
3

skipif mysql # not compatible
query II rowsort label-7853
SELECT 95 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
95
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 19 - + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + - + 47 + + col0 - - col1 * 83 FROM tab2 cor0
----
4278
5664
6472

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 57 * 64 * - col2 IS NULL
----

query I rowsort
SELECT ALL - 69 FROM tab1 WHERE NULL > col2 + col1 * - col0
----

query I rowsort
SELECT DISTINCT col1 + + + col2 + - col2 - col0 * col1 FROM tab1
----
-420
-4230
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT + CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7859
SELECT + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT col2 DIV - 79 + 26 AS col2 FROM tab1
----
25
26
26

skipif mysql # not compatible
query I rowsort label-7860
SELECT col2 / - 79 + 26 AS col2 FROM tab1
----
25
26
26

query II rowsort
SELECT 23 + - + 30 AS col1, - col2 * + + col1 AS col0 FROM tab1
----
-7
-1344
-7
-295
-7
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT + 45 + + ( ( - 27 ) ) + - COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7862
SELECT + 45 + + ( ( - 27 ) ) + - COUNT ( * ) AS col0 FROM tab2
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + + 61
----

query I rowsort
SELECT DISTINCT + ( - 43 ) AS col0 FROM tab2 AS cor0
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT + COUNT( ALL - 35 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + COUNT ( ALL - 35 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT ALL - - ( + MIN( + + col2 ) ) * + - CAST( + 9 AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
-1593

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - - ( + MIN ( + + col2 ) ) * + - CAST ( + 9 AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL + - COUNT( * ) + + - ( COUNT( * ) ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + - COUNT ( * ) + + - ( COUNT ( * ) ) FROM tab0 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT - 1 - - + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT - 1 - - + COUNT ( * ) FROM tab1
----
2

query I rowsort
SELECT DISTINCT 97 + - + 79 FROM tab1
----
18

query I rowsort
SELECT ALL + 70 * col2 AS col2 FROM tab1 AS cor0
----
4130
4760
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT - COUNT( ALL col1 ) + 9 AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT - COUNT ( ALL col1 ) + 9 AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - - col0 + - - col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT + ( - MIN( ALL - + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT + ( - MIN ( ALL - + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + 67 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + 67 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-201

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + ( col1 ) ) > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( ( 10 ) ) AND - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL - COUNT( * ) + MAX( - ( - - 30 ) ) * + - COUNT( * ) col0 FROM tab0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7878
SELECT ALL - COUNT ( * ) + MAX ( - ( - - 30 ) ) * + - COUNT ( * ) col0 FROM tab0
----
87

query I rowsort
SELECT ALL + ( + col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT + ( - 25 ) AS col1 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT ALL - 17 FROM tab1 WHERE ( - col0 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7882
SELECT DISTINCT - col0 * col1, 97 DIV - 38 AS col0 FROM tab1
----
-425
-2
-4277
-2
-714
-2

skipif mysql # not compatible
query II rowsort label-7882
SELECT DISTINCT - col0 * col1, 97 / - 38 AS col0 FROM tab1
----
-425
-2
-4277
-2
-714
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - + 77 * - - col2
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NOT col0 IS NULL )
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
1

query II rowsort
SELECT + col2 AS col0, 87 FROM tab1 AS cor0
----
59
87
68
87
96
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col1 + + 40 IS NULL
----

query I rowsort
SELECT DISTINCT 15 * + + 98 AS col2 FROM tab2
----
1470

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 < - col1 + 43
----

query I rowsort
SELECT + + ( - + 17 ) + + + col1 FROM tab1 AS cor0
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + COUNT( * ) * + - COUNT( * ) - 49 col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7892
SELECT + COUNT ( * ) * + - COUNT ( * ) - 49 col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE - 74 + - 96 * - col2 + col2 >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7893
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE - 74 + - 96 * - col2 + col2 >= NULL
----

query I rowsort
SELECT ALL - 43 * + + col0 AS col2 FROM tab2 AS cor0
----
-1978
-2752
-3225

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + 40 + - ( col1 ) )
----

query I rowsort
SELECT - 78 AS col2 FROM tab1 cor0
----
-78
-78
-78

query I rowsort
SELECT - 89 * 87 FROM tab1
----
-7743
-7743
-7743

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7898
SELECT DISTINCT - col2 + - CAST( NULL AS DECIMAL ) - + + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - col2 + - CAST ( NULL AS REAL ) - + + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL ( + 9 ) + + + col0 AS col0 FROM tab0
----
106
24
96

query III rowsort
SELECT * FROM tab2 WHERE + 99 - + col0 NOT IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT COUNT( - col0 ) - + MIN( + 21 ) * 41 * + - MIN( - + col0 ) col2 FROM tab1 AS cor0
----
-78348

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7901
SELECT COUNT ( - col0 ) - + MIN ( + 21 ) * 41 * + - MIN ( - + col0 ) col2 FROM tab1 AS cor0
----
-78348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - + col1 - - + col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7904
SELECT ( 71 ) * CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7904
SELECT ( 71 ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
213

query I rowsort
SELECT DISTINCT + - col0 - 57 FROM tab2 AS cor0
----
-103
-121
-132

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 BETWEEN NULL AND + 46 + + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7907
SELECT - + ( CAST( + ( - + COUNT( * ) ) AS SIGNED ) ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7907
SELECT - + ( CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT - - col2 * - col2 + - + 60 + + col2 / + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7908
SELECT - - col2 * - col2 + - + 60 + + col2 / + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - col1 * - + 9 FROM tab0
----
189
729
9

query II rowsort
SELECT + col1, col1 * col2 * col0 FROM tab1
----
14
68544
47
290836
5
25075

query I rowsort
SELECT DISTINCT - ( + 7 ) AS col2 FROM tab2
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, 82 FROM tab1
----
59
82
68
82
96
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT ALL 76 * - CAST( col2 AS SIGNED ) * + col0 + + col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL 76 * - CAST ( col2 AS INTEGER ) * + col0 + + col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 + - 14 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT + - MIN( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7916
SELECT + - MIN ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7919
SELECT - CAST( NULL AS DECIMAL ) * col2 * col0 FROM tab0 WHERE NOT - - col1 * + + 46 - + col0 + + + col1 * + 97 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7919
SELECT - CAST ( NULL AS REAL ) * col2 * col0 FROM tab0 WHERE NOT - - col1 * + + 46 - + col0 + + + col1 * + 97 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 4 * + 75 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT DISTINCT COUNT( * ), MIN( ALL + - col0 ) AS col0 FROM tab2
----
3
-75

skipif mysql # not compatible
query II rowsort label-7921
SELECT DISTINCT COUNT ( * ), MIN ( ALL + - col0 ) AS col0 FROM tab2
----
3
-75

query I rowsort
SELECT + 63 + - 30 FROM tab0 WHERE NOT NULL IS NOT NULL
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + MIN( ALL col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7923
SELECT + MIN ( ALL col2 ) col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + col0 * + col0 + + + 32 * - 61 FROM tab0 AS cor0
----
-1727
5617
7457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL + CAST( NULL AS SIGNED ) * + 64 * - 56 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + CAST ( NULL AS INTEGER ) * + 64 * - 56 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 81 IS NULL
----

query I rowsort
SELECT ALL ( - 70 ) + - col0 FROM tab2 AS cor0
----
-116
-134
-145

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7929
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 / + col2 + - col2 BETWEEN NULL AND - - 12 + + CAST( ( + - 51 ) AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-7929
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 / + col2 + - col2 BETWEEN NULL AND - - 12 + + CAST ( ( + - 51 ) AS INTEGER )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - SUM( ALL + - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7930
SELECT - SUM ( ALL + - col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + - 11 FROM tab2 AS cor0 WHERE 27 IS NOT NULL
----
-11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, ( ( col2 ) ) + 25 col2 FROM tab2 AS cor0
----
51
48
67
83
77
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col1, col2 - col1 + + - col1 - + - col2 * - col1, + - col2 )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE + col2 < ( col0 )
----
46
64
75

query I rowsort
SELECT ALL col2 + - + col1 * + 79 AS col2 FROM tab1
----
-1010
-336
-3645

query I rowsort
SELECT + 4 + + col2 FROM tab0
----
103
14
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT DISTINCT - 2 DIV col0 * 86 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT - 2 / col0 * 86 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( 15 ) + - - 96 col1 FROM tab1
----
-15
13
22

query I rowsort
SELECT 2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - - 69 + col0 + + - 30 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * + 30 BETWEEN NULL AND NULL OR NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT ALL - COUNT( * ) + - + 96 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - COUNT ( * ) + - + 96 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT - 22 + + + 82 * 74 + - SUM( ALL - col0 ) * + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
14556

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - 22 + + + 82 * 74 + - SUM ( ALL - col0 ) * + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
14556

query I rowsort
SELECT ALL + + 73 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * col0 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + col0 * - + 92 + - + col2 FROM tab2 AS cor0
----
-51
-4255
-67
-6958
-77
-5928

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE NOT ( 70 IS NULL )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT COUNT( * ) * - 94 * 21 AS col0 FROM tab1
----
-5922

skipif mysql # not compatible
query I rowsort label-7950
SELECT COUNT ( * ) * - 94 * 21 AS col0 FROM tab1
----
-5922

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT - 8 DIV + 4 col1 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7951
SELECT - 8 / + 4 col1 FROM tab0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT COUNT( * ) * + COUNT( 62 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7952
SELECT COUNT ( * ) * + COUNT ( 62 ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + - 62
----

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab2 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT COUNT( + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7956
SELECT COUNT ( + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7957
SELECT ALL - col2, + ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-7957
SELECT ALL - col2, + ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 91 FROM tab2 AS cor0 WHERE NULL <= + 47 + + 17 + + 20 * - 55 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL - - MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL - - MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT 43 + - col1 FROM tab2 cor0
----
-24
-34
-8

query I rowsort
SELECT ALL 69 * + ( col1 ) FROM tab1 AS cor0
----
3243
345
966

query I rowsort
SELECT + col0 + - 10 FROM tab1 AS cor0
----
41
75
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT - col1 DIV - 21 AS col1 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-7963
SELECT - col1 / - 21 AS col1 FROM tab2 AS cor0
----
2
3
3

query I rowsort
SELECT + + 4 * + col0 * - ( col1 ) AS col2 FROM tab0 cor0
----
-388
-4860
-7308

onlyif mysql # aggregate syntax: 
query II rowsort label-7965
SELECT COUNT( * ) AS col1, - COUNT( * ) - + + COUNT( * ) FROM tab0
----
3
-6

skipif mysql # not compatible
query II rowsort label-7965
SELECT COUNT ( * ) AS col1, - COUNT ( * ) - + + COUNT ( * ) FROM tab0
----
3
-6

query I rowsort
SELECT ALL col1 + + ( + + col2 ) FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT DISTINCT CAST( col0 AS SIGNED ) + col0 * - col0 AS col0 FROM tab0
----
-210
-7482
-9312

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col0 * - col0 AS col0 FROM tab0
----
-210
-7482
-9312

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 + + col0 * - col0 + + col2 + - 24 * 11 * - - col0 - + + ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 2 + - 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 28 * + 79 AS col1 FROM tab1
----
2212
2212
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL 67 - - - MIN( DISTINCT - 52 ) AS col0 FROM tab2
----
119

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 67 - - - MIN ( DISTINCT - 52 ) AS col0 FROM tab2
----
119

query I rowsort
SELECT ALL - - 15 + - 73 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 76 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 15 * - - col2, + col2 AS col1 FROM tab0
----
1485
99
150
10
705
47

query I rowsort
SELECT ( - 98 ) - - col2 FROM tab0
----
-51
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL - MIN( col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL - MIN ( col2 ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + ( 16 ) ) ) <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col0 + + col1 * - 25 + col1, - 68 AS col1 FROM tab0 AS cor0
----
-121
-68
-1959
-68
-591
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT DISTINCT CAST( + 12 AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT CAST ( + 12 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT DISTINCT + + 74 + - MIN( col0 ) AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT + + 74 + - MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7981
SELECT COUNT( * ) AS col1, + 55 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
55

skipif mysql # not compatible
query II rowsort label-7981
SELECT COUNT ( * ) AS col1, + 55 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT ( 99 ) DIV + - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7982
SELECT ( 99 ) / + - col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab2
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + 69 ), + col0 * - + col1 - - col0 * - col2 col0 FROM tab0 AS cor0
----
-69
-1920
-69
-2697
-69
-9700

query I rowsort
SELECT col1 * 96 * col0 FROM tab0 AS cor0
----
116640
175392
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 24 AS col0, - col1 col2 FROM tab2 AS cor0
----
1392
-67
552
-51
960
-77

query I rowsort
SELECT DISTINCT - ( + 12 ) AS col1 FROM tab1 cor0
----
-12

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NOT - - col2 / - 62 + - 74 * - + col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7989
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT COUNT( * ) * - 50 AS col2 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-7990
SELECT COUNT ( * ) * - 50 AS col2 FROM tab2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7992
SELECT - col1, + col0 * CAST( - - 30 AS SIGNED ) AS col0 FROM tab0
----
-1
2910
-21
2610
-81
450

skipif mysql # not compatible
query II rowsort label-7992
SELECT - col1, + col0 * CAST ( - - 30 AS INTEGER ) AS col0 FROM tab0
----
-1
2910
-21
2610
-81
450

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT - 74 IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 - 58 + col1 * + col1 col1 FROM tab0 AS cor0
----
372
41
6469

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT - SUM( ALL col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT - SUM( - - col1 ) AS col0, - 50 AS col1 FROM tab1
----
-66
-50

skipif mysql # not compatible
query II rowsort label-7996
SELECT - SUM ( - - col1 ) AS col0, - 50 AS col1 FROM tab1
----
-66
-50

query II rowsort
SELECT col2, col2 AS col0 FROM tab0 WHERE + - 19 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT - 91 DIV + + col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7998
SELECT - 91 / + + col0 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT - COUNT( ALL - - 22 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT - COUNT ( ALL - - 22 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 60 * - col1 AS col1 FROM tab1 cor0
----
-2820
-300
-840

query I rowsort
SELECT ALL - col2 * 85 AS col1 FROM tab0 AS cor0
----
-3995
-8415
-850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT DISTINCT col1 * col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) < - 5
----

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT col1 * col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - 5
----

query I rowsort
SELECT 17 - + - col0 FROM tab2 AS cor0
----
63
81
92

query I rowsort
SELECT ALL + 75 * + + col1 + + - 52 AS col0 FROM tab1 cor0
----
323
3473
998

query I rowsort
SELECT + 25 + - ( - 93 ) AS col1 FROM tab0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT COUNT( * ) * - + COUNT( * ) + MIN( - col1 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-8007
SELECT COUNT ( * ) * - + COUNT ( * ) + MIN ( - col1 ) FROM tab0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT + COUNT( * ) DIV - COUNT( * ) + + + 61 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8008
SELECT + COUNT ( * ) / - COUNT ( * ) + + + 61 FROM tab2
----
60

query III rowsort
SELECT * FROM tab2 WHERE col2 + col2 + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL + COUNT( * ) - - - 11 AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + COUNT ( * ) - - - 11 AS col0 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL - - col2 - + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - - col2 - + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - + col0 * - + 61 FROM tab0 AS cor0
----
5307
5917
915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8013
SELECT ALL col2 AS col2, + col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL col2 AS col2, + col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - 63 * + + col0 AS col1 FROM tab1
----
-3213
-5355
-5733

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT 30 DIV - + 2 FROM tab1
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-8015
SELECT 30 / - + 2 FROM tab1
----
-15
-15
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8016
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ), + ( + AVG ( DISTINCT - 79 ) ) + + + MAX( ALL - CAST( - col1 AS SIGNED ) ) - - CAST( NULL AS SIGNED ) - 41 * - 77 FROM tab1 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8016
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ), + ( + AVG ( DISTINCT - 79 ) ) + + + MAX ( ALL - CAST ( - col1 AS INTEGER ) ) - - CAST ( NULL AS INTEGER ) - 41 * - 77 FROM tab1 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT MIN( ALL + 9 ) AS col0 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8017
SELECT MIN ( ALL + 9 ) AS col0 FROM tab2 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8018
SELECT DISTINCT + col2 DIV - col0 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT + col2 / - col0 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-97

query III rowsort
SELECT ALL - col2, 13 AS col1, + 0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 1eb32c01d5b992b1c63ba960ec4de607

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * + 2 ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * + 2 ) IS NULL
----
-9

query I rowsort
SELECT + col2 * - 13 * col0 AS col0 FROM tab2
----
-13754
-33280
-56550

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - 96 * + COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8022
SELECT - 96 * + COUNT ( * ) FROM tab1
----
-288

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 38 * + - ( - ( - col0 ) ) * + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + 39 - - col0 + + 93 + - + 82 * + col1 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - SUM( 94 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - SUM ( 94 ) FROM tab1 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - ( - + SUM( DISTINCT + - col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8026
SELECT - ( - + SUM ( DISTINCT + - col2 ) ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT 93 + - + col2 FROM tab1 AS cor0
----
-3
25
34

query I rowsort
SELECT - - 4 AS col1 FROM tab0 cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT DISTINCT - CAST( ( + + col0 ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - CAST ( ( + + col0 ) AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 13 * ( 28 ) - + 1 FROM tab2 AS cor0
----
363

query I rowsort
SELECT ALL 57 * + + 57 AS col1 FROM tab1 AS cor0
----
3249
3249
3249

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - COUNT( * ) + 69 AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8032
SELECT - COUNT ( * ) + 69 AS col1 FROM tab2 AS cor0
----
66

query I rowsort
SELECT - 34 * + + 20 AS col2 FROM tab1 AS cor0
----
-680
-680
-680

query I rowsort
SELECT ALL ( + 39 ) AS col2 FROM tab2 cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1, tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + + + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL COUNT( * ) - + MIN( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL COUNT ( * ) - + MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + ( - col1 ) FROM tab2 WHERE - + 2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL 89 - + + col0 AS col0 FROM tab2
----
14
25
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT - COUNT( * ) - - 44 AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT - COUNT ( * ) - - 44 AS col0 FROM tab1
----
41

query I rowsort
SELECT ALL - col2 * col0 * - col0 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT + 8 - COUNT( * ) AS col1 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-8042
SELECT + 8 - COUNT ( * ) AS col1 FROM tab2
----
5

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * col0 NOT IN ( + col1, - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL 87 - - COUNT( * ) * + 40 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL 87 - - COUNT ( * ) * + 40 FROM tab0
----
207

query I rowsort
SELECT DISTINCT - + 7 * - col1 - 9 * - 78 FROM tab2 AS cor0
----
1059
1171
1241

query II rowsort
SELECT ALL - 61 AS col0, - col1 FROM tab1
----
-61
-14
-61
-47
-61
-5

query I rowsort
SELECT DISTINCT - col1 * + 77 FROM tab0
----
-1617
-6237
-77

query II rowsort
SELECT - 95 AS col0, 92 AS col2 FROM tab1 cor0
----
-95
92
-95
92
-95
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT SUM( DISTINCT + + 32 ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8049
SELECT SUM ( DISTINCT + + 32 ) FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + ( + 97 ) * + COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + ( + 97 ) * + COUNT ( * ) FROM tab0 AS cor0
----
291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + - MIN( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + - MIN ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8053
SELECT * FROM tab2 WHERE NOT + ( + col2 ) * - + CAST( - - 49 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8053
SELECT * FROM tab2 WHERE NOT + ( + col2 ) * - + CAST ( - - 49 AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - 4 + - col0 AS col0 FROM tab0
----
-101
-19
-91

query II rowsort
SELECT + col1, 89 - - col1 + + 32 * + col2 + + col2 FROM tab2
----
51
899
67
2070
77
1486

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT - COUNT( - ( + - col0 ) ) * - 26 * 58 * + 18 AS col2 FROM tab1
----
81432

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT - COUNT ( - ( + - col0 ) ) * - 26 * 58 * + 18 AS col2 FROM tab1
----
81432

query I rowsort
SELECT col0 + 32 AS col2 FROM tab2
----
107
78
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 85 IS NOT NULL
----

query I rowsort
SELECT 96 + + 68 AS col0 FROM tab2
----
164
164
164

query I rowsort
SELECT 14 + + col1 + - col1 AS col0 FROM tab0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT ALL - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - - col1 + col0 FROM tab0
----
129
177
99

query I rowsort
SELECT ALL + 99 - + - col1 + + col0 AS col2 FROM tab1
----
164
189
237

query II rowsort
SELECT col2 * - col0 AS col1, 2 FROM tab2
----
-1058
2
-2560
2
-4350
2

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + - COUNT( * ) * 91 + 37 * - - SUM( 92 ) - - 1 FROM tab1 AS cor0
----
9940

skipif mysql # not compatible
query I rowsort label-8066
SELECT + - COUNT ( * ) * 91 + 37 * - - SUM ( 92 ) - - 1 FROM tab1 AS cor0
----
9940

query I rowsort
SELECT + 18 + 35 AS col1 FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT col2 + + - col0 + ( - 30 ) FROM tab1
----
-53
-56
15

query II rowsort
SELECT col1, col2 + col2 + - + 64 FROM tab1
----
14
128
47
72
5
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8070
SELECT col2 AS col0, CAST( + col0 AS SIGNED ) * - - col1 FROM tab2
----
23
2346
40
4928
58
5025

skipif mysql # not compatible
query II rowsort label-8070
SELECT col2 AS col0, CAST ( + col0 AS INTEGER ) * - - col1 FROM tab2
----
23
2346
40
4928
58
5025

query I rowsort
SELECT ( - 89 ) AS col2 FROM tab0
----
-89
-89
-89

query II rowsort
SELECT col2, col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT ( + 70 ) AS col0 FROM tab2 WHERE NULL <= - col0
----

query I rowsort
SELECT DISTINCT + + col0 * - - col1 + - col2 FROM tab1 AS cor0
----
366
4209
618

query II rowsort
SELECT + ( + col2 ) * - col0 AS col2, col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-705
-3807
-870
-210
-9603
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col0 + - col2 col0 FROM tab1 AS cor0
----
-59
26
-68
23
-96
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT - col1 * + + col2 * + 98 FROM tab0 AS cor0
----
-20580
-373086
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT CAST( - col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT CAST ( - col2 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 98 AS col2 FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8081
SELECT col2 * + CAST( NULL AS SIGNED ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT col2 * + CAST ( NULL AS INTEGER ) + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 69 * 21 * + 8 + - 85 AS col0 FROM tab2 AS cor0
----
-11677
-11677
-11677

query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 AS col2 FROM tab1
----
366
4209
618

query I rowsort
SELECT DISTINCT ( 98 ) * + col2 AS col2 FROM tab0
----
4606
9702
980

query III rowsort
SELECT * FROM tab1 WHERE - - 38 + + + col2 * - col2 + + col0 IS NULL
----

query I rowsort
SELECT 19 * - col2 FROM tab2
----
-1102
-437
-760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8087
SELECT * FROM tab0 WHERE ( - CAST( CAST( - ( + - col2 ) AS SIGNED ) AS SIGNED ) = + 96 )
----

skipif mysql # not compatible
query III rowsort label-8087
SELECT * FROM tab0 WHERE ( - CAST ( CAST ( - ( + - col2 ) AS INTEGER ) AS INTEGER ) = + 96 )
----

query I rowsort
SELECT ALL - ( + 51 ) AS col1 FROM tab0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + - + col2 col2 FROM tab0 AS cor0
----
-58
-6
31

query I rowsort
SELECT DISTINCT - 63 * - col0 + + ( + - 15 ) FROM tab0 AS cor0
----
5466
6096
930

query I rowsort
SELECT + col0 + - 86 AS col1 FROM tab1 AS cor0
----
-1
-35
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8092
SELECT - col2 + - - CAST( NULL AS SIGNED ) AS col1, 36 * + + 24 FROM tab2
----
NULL
864
NULL
864
NULL
864

skipif mysql # not compatible
query II rowsort label-8092
SELECT - col2 + - - CAST ( NULL AS INTEGER ) AS col1, 36 * + + 24 FROM tab2
----
NULL
864
NULL
864
NULL
864

query I rowsort
SELECT 95 * + - 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e60cc21ca5dba0ded13fcc241c1e9539

query I rowsort
SELECT + ( col0 ) + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT - 38 + + col1 AS col1 FROM tab1
----
-24
-33
9

query I rowsort
SELECT DISTINCT col0 - 98 + ( - col2 ) - - - col0 * col2 * - - col2 FROM tab2
----
-102474
-24409
-252381

query II rowsort
SELECT + col0, - 99 FROM tab1
----
51
-99
85
-99
91
-99

query I rowsort
SELECT ALL col2 - - + col2 FROM tab1 cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT + MIN( + col0 ) - + 58 + - 34 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + MIN ( + col0 ) - + 58 + - 34 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT - - SUM( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8100
SELECT - - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 / col2 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT + COUNT( * ) * - 12 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8102
SELECT + COUNT ( * ) * - 12 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 / 51 >= - col0 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, ( col2 ) col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE ( + col2 NOT BETWEEN + 78 * - - col0 AND col2 / col2 * - + 14 )
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8106
SELECT col0 - - - col0 - - + col0 + - + col1 + + 61 / - - col1 * + + ( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT col0 - - - col0 - - + col0 + - + col1 + + 61 / - - col1 * + + ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab1
----
-66

query I rowsort
SELECT ALL - 37 AS col1 FROM tab0 cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + CAST( NULL AS SIGNED ) / - col1 ) AND col0
----

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + CAST ( NULL AS INTEGER ) / - col1 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT - SUM( col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT - SUM ( col0 ) AS col0 FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - 70 * - + 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2 AS col2, col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab0 AS cor0 WHERE col2 BETWEEN col1 * ( col2 ) AND + 89 + - col0
----

query I rowsort
SELECT ALL + col2 + - 8 * - ( - 49 ) FROM tab0 AS cor0
----
-293
-345
-382

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8116
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + 78 + - ( - - ( + 69 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8116
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + 78 + - ( - - ( + 69 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - + 83 + - 59 AS col1 FROM tab2 cor0
----
-142
-142
-142

query I rowsort
SELECT ALL col1 * - + 64 * col2 + + col1 + - - col2 AS col1 FROM tab0
----
-13409
-243520
-6236

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT MAX( 13 ) + - - 35 col1 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8119
SELECT DISTINCT MAX ( 13 ) + - - 35 col1 FROM tab1
----
48

query I rowsort
SELECT col0 + col0 + + + col1 FROM tab2
----
143
205
217

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL MAX( ALL + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL MAX ( ALL + col1 ) FROM tab2
----
77

query I rowsort
SELECT DISTINCT + 94 * + + col2 AS col1 FROM tab1
----
5546
6392
9024

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT - - 81 + + 74 - - col1 DIV 37 FROM tab2 AS cor0
----
156
156
157

skipif mysql # not compatible
query I rowsort label-8124
SELECT - - 81 + + 74 - - col1 / 37 FROM tab2 AS cor0
----
156
156
157

query I rowsort
SELECT + ( + - 35 ) AS col2 FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT + + SUM( ALL col0 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + + SUM ( ALL col0 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
188

query I rowsort
SELECT + ( 57 ) FROM tab2
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 73 * - + 99 * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 73 * - + 99 * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT - + 93 * + CAST( - col1 AS SIGNED ) + + 61 FROM tab0 AS cor0
----
154
2014
7594

skipif mysql # not compatible
query I rowsort label-8129
SELECT - + 93 * + CAST ( - col1 AS INTEGER ) + + 61 FROM tab0 AS cor0
----
154
2014
7594

query I rowsort
SELECT ALL + 97 * - - col0 * - 75 + - - 7 + + 52 + - 41 * 5 * - col0 * + 2 AS col2 FROM tab2 AS cor0
----
-315731
-439301
-514816

query I rowsort
SELECT - - col2 AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - - 9 + - - 22 * 7 AND ( - ( + 84 ) ) * - - ( + 76 ) - + col2
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( + 73 * + col1, col1, + + col0 + col0, - col0 * + col2, 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL + 73 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL + 73 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
219

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 = - + 27
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT ALL COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT 54 DIV + + ( - col0 ) FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT 54 / + + ( - col0 ) FROM tab0 AS cor0
----
-3
0
0

query II rowsort
SELECT ALL + 95 AS col1, 44 FROM tab0
----
95
44
95
44
95
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT 38 DIV 81 DIV + - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT 38 / 81 / + - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT COUNT( * ) - - - 39 FROM tab0 WHERE NOT NULL BETWEEN - col0 * - col2 + col0 - col1 AND - - col1
----
-39

skipif mysql # not compatible
query I rowsort label-8139
SELECT COUNT ( * ) - - - 39 FROM tab0 WHERE NOT NULL BETWEEN - col0 * - col2 + col0 - col1 AND - - col1
----
-39

query I rowsort
SELECT - 71 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - ( - col0 ) FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT - col0, + col0 + + - col0 AS col1 FROM tab0
----
-15
0
-87
0
-97
0

query II rowsort
SELECT - 41 AS col0, col2 * + col1 * col0 AS col1 FROM tab0
----
-41
18270
-41
57105
-41
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT col2 DIV - 37 AS col1 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8144
SELECT col2 / - 37 AS col1 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + 52 * + col2 * col0 AS col1 FROM tab0 WHERE + + col2 NOT IN ( + 49 * - col1 * + + col1 * + col0 + - col2 / - col1 * - col1, col1, + col0 )
----
36660
45240
499356

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8146
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN CAST( 22 AS SIGNED ) AND - ( + col1 ) * + 78 * - + col0 * - col2
----

skipif mysql # not compatible
query III rowsort label-8146
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN CAST ( 22 AS INTEGER ) AND - ( + col1 ) * + 78 * - + col0 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8147
SELECT DISTINCT + col1, + 79 DIV - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
0
21
-7
81
-1

skipif mysql # not compatible
query II rowsort label-8147
SELECT DISTINCT + col1, + 79 / - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
0
21
-7
81
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT COUNT( * ) * COUNT( * ) * + COUNT( * ) + - - 75 AS col0 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8148
SELECT COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) + - - 75 AS col0 FROM tab0 AS cor0
----
102

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 12 * + col0 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 97 + - col2 + 25 FROM tab1 AS cor0
----
26
54
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT 98 + - COUNT( + col2 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8151
SELECT 98 + - COUNT ( + col2 ) FROM tab0 AS cor0
----
95

query II rowsort
SELECT ALL - col1, 92 FROM tab2 AS cor0 WHERE + col1 <> NULL
----

query I rowsort
SELECT DISTINCT 10 + + + col2 FROM tab0
----
109
20
57

query II rowsort
SELECT + 36, + 1 AS col0 FROM tab1
----
36
1
36
1
36
1

query I rowsort
SELECT DISTINCT - 86 * + ( + 81 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 AS col0, 88 + col1 * + col2 FROM tab0
----
-15
3895
-87
298
-97
187

query III rowsort
SELECT * FROM tab0 WHERE 32 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL SUM( ALL - 15 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL SUM ( ALL - 15 ) FROM tab2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT + col1 - col0 * col2 + col1 DIV col2 AS col1 FROM tab2 AS cor0
----
-1005
-2482
-4282

skipif mysql # not compatible
query I rowsort label-8159
SELECT + col1 - col0 * col2 + col1 / col2 AS col1 FROM tab2 AS cor0
----
-1005
-2482
-4282

query I rowsort
SELECT + col1 - - 76 * + col0 FROM tab1 AS cor0
----
3890
6465
6963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( col2 ) - - 23 col1, col0 FROM tab1 AS cor0
----
119
51
82
85
91
91

query I rowsort
SELECT DISTINCT + col2 * - 66 AS col1 FROM tab1 AS cor0
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + - COUNT( * ) + + - 8 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8163
SELECT + - COUNT ( * ) + + - 8 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT + - col1 + - col2 + 63 + - ( col2 ) + 34 AS col1 FROM tab0 cor0
----
-102
-78
56

query I rowsort
SELECT - col0 * + ( - col0 ) + + col0 + col2 FROM tab0 AS cor0
----
287
7666
9605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT - - 10 * + ( - + 46 ) AS col0 FROM tab0 AS cor0
----
-460
-460
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL - 5 * + - 47 + 16 * - MIN( col1 ) FROM tab2 AS cor0
----
-581

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - 5 * + - 47 + 16 * - MIN ( col1 ) FROM tab2 AS cor0
----
-581

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE 85 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + ( - 82 ) FROM tab0 AS cor0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT DISTINCT - 47 DIV - + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
16
91
97

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT - 47 / - + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
16
91
97

query I rowsort
SELECT - 64 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-64
-64
-64

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT MIN( + col0 ) FROM tab1 WHERE + + col2 * - + 82 - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT MIN ( + col0 ) FROM tab1 WHERE + + col2 * - + 82 - + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL - ( - - MAX( - + col1 ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL - ( - - MAX ( - + col1 ) ) AS col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL - ( - COUNT( * ) ) * + - COUNT( - col1 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - ( - COUNT ( * ) ) * + - COUNT ( - col1 ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT MAX( ALL col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8179
SELECT MAX ( ALL col2 ) AS col1 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT - ( + col0 ) DIV + col0 + - col0 - - - col0 FROM tab2
----
-129
-151
-93

skipif mysql # not compatible
query I rowsort label-8180
SELECT - ( + col0 ) / + col0 + - col0 - - - col0 FROM tab2
----
-129
-151
-93

query I rowsort
SELECT - col2 * + ( - col1 ) AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT COUNT( + - 43 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT COUNT ( + - 43 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT + + 37 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL + 10 + - ( - + 34 ) FROM tab2
----
44
44
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT - 21 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 21 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 53 AS col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT ALL + col2 * col0 DIV ( + col0 ) * + col2 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
3599
4760
9408

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + col2 * col0 / ( + col0 ) * + col2 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
3599
4760
9408

query I rowsort
SELECT 10 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT 38 * - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8191
SELECT 38 * - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
114

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 23 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + MIN( 79 ) + + SUM( 90 ) FROM tab0 AS cor0
----
349

skipif mysql # not compatible
query I rowsort label-8193
SELECT + MIN ( 79 ) + + SUM ( 90 ) FROM tab0 AS cor0
----
349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT 94 * - + ( - ( + ( + + CAST( NULL AS SIGNED ) ) ) ) + - col0 + + + col2 * - col2 / - col2 - + col0 * - + 64 * - + col0 + + - 57 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT 94 * - + ( - ( + ( + + CAST ( NULL AS INTEGER ) ) ) ) + - col0 + + + col2 * - col2 / - col2 - + col0 * - + 64 * - + col0 + + - 57 * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8195
SELECT + COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL COUNT( * ) FROM tab0 WHERE - 57 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL COUNT ( * ) FROM tab0 WHERE - 57 IS NOT NULL
----
3

query I rowsort
SELECT + 73 + + - col0 AS col0 FROM tab0
----
-14
-24
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + col2 * - 21 col0 FROM tab1
----
-1192
-1381
-1969

query I rowsort
SELECT DISTINCT + + 60 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
60

query I rowsort
SELECT - col0 + + + col0 + + - col0 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ( + - COUNT( * ) ) + MAX( DISTINCT + 82 ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-8201
SELECT ( + - COUNT ( * ) ) + MAX ( DISTINCT + 82 ) AS col0 FROM tab2
----
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + 28 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT COUNT( DISTINCT + col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8203
SELECT COUNT ( DISTINCT + col0 ) col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col2 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + - MAX( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8205
SELECT + - MAX ( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + 99 * col2 col0 FROM tab0 AS cor0
----
1
9801
21
990
81
4653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 12 col2 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + + COUNT( * ) * + + 91 FROM tab0 cor0
----
273

skipif mysql # not compatible
query I rowsort label-8208
SELECT + + COUNT ( * ) * + + 91 FROM tab0 cor0
----
273

query II rowsort
SELECT DISTINCT + 67 * + col0 AS col1, + 66 AS col1 FROM tab0
----
1005
66
5829
66
6499
66

query I rowsort
SELECT - col0 * col0 * 57 FROM tab0
----
-12825
-431433
-536313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - + 8 * - col2 col1 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col2 * + 28 FROM tab1
----
1652
1904
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT - 98 * - MAX( + - col1 ) FROM tab2
----
-4998

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - 98 * - MAX ( + - col1 ) FROM tab2
----
-4998

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 >= - - col1
----

query I rowsort
SELECT - 44 * col2 * - - 3 AS col2 FROM tab1
----
-12672
-7788
-8976

query I rowsort
SELECT DISTINCT - 4 * - ( + col1 ) FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8217
SELECT ALL + 26 DIV - COUNT( * ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + 26 / - COUNT ( * ) AS col0 FROM tab1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT + + 64 + - CAST( - col2 AS SIGNED ) - - col2 AS col1 FROM tab0 cor0
----
158
262
84

skipif mysql # not compatible
query I rowsort label-8218
SELECT + + 64 + - CAST ( - col2 AS INTEGER ) - - col2 AS col1 FROM tab0 cor0
----
158
262
84

query I rowsort
SELECT + ( ( col1 ) ) * + col2 + + - col1 + - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col2 * + - 38 FROM tab2 AS cor0
----
1520
2204
874

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT - 20 FROM tab0 cor0
----
-20
-20
-20

query I rowsort
SELECT ALL - 65 - col0 AS col0 FROM tab1
----
-116
-150
-156

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col2 BETWEEN 0 * - col1 + - - 53 AND ( + - 99 / - 26 + col2 )
----

query I rowsort
SELECT DISTINCT col1 - - + col0 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL col0 + + col2 - - - col2 AS col2 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col2 * 89 * - col0 * + - 70 AS col0 FROM tab2
----
23
6591340
40
15948800
58
27100500

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN + ( - col1 ) AND + + 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8229
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + col1 + - ( + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8229
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + col1 + - ( + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT - 84 * 94 + + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-7800
-7828
-7837

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT - col1 DIV 79 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8231
SELECT - col1 / 79 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 91 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8233
SELECT + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT - - MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - - MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 32 * + col2 FROM tab2 AS cor0
----
1280
1856
736

query I rowsort
SELECT + - 10 AS col2 FROM tab1 AS cor0 WHERE NOT col0 < - 38
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT - MIN( DISTINCT col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - MIN ( DISTINCT col2 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT - col1 * col0 * - - 14 AS col1 FROM tab0
----
-1358
-17010
-25578

query I rowsort
SELECT ALL 96 * - - 96 AS col0 FROM tab0
----
9216
9216
9216

query II rowsort
SELECT ALL ( - + ( - 54 ) ), - 98 AS col0 FROM tab2
----
54
-98
54
-98
54
-98

query I rowsort
SELECT DISTINCT - - 63 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8243
SELECT 96 DIV + col1 + + - col1, col2 AS col1 FROM tab0 AS cor0
----
-17
10
-80
47
95
99

skipif mysql # not compatible
query II rowsort label-8243
SELECT 96 / + col1 + + - col1, col2 AS col1 FROM tab0 AS cor0
----
-17
10
-80
47
95
99

query I rowsort
SELECT - 45 + - col0 AS col2 FROM tab2 AS cor0
----
-109
-120
-91

query II rowsort
SELECT DISTINCT + col0, col2 + - 44 FROM tab2 cor0
----
46
-21
64
-4
75
14

query I rowsort
SELECT DISTINCT 22 * - 92 FROM tab2
----
-2024

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / + col2 - - col0 * - 25 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE NOT NULL <> ( + 62 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 24 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 95 + col2 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 99 * - 45 AS col0 FROM tab0
----
-4455

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8252
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT BETWEEN - ( - col1 ) AND - CAST( + col0 AS SIGNED ) * + col0
----

skipif mysql # not compatible
query III rowsort label-8252
SELECT ALL * FROM tab2 WHERE NOT - col0 NOT BETWEEN - ( - col1 ) AND - CAST ( + col0 AS INTEGER ) * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col0 IN ( + col1 * + 15 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL 26 - - COUNT( * ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL 26 - - COUNT ( * ) FROM tab1
----
29

query I rowsort
SELECT 79 + 32 AS col2 FROM tab1
----
111
111
111

query I rowsort
SELECT ALL col1 + - col0 * + 18 FROM tab2 WHERE ( col0 + 5 ) >= NULL
----

query I rowsort
SELECT 16 + - 43 AS col2 FROM tab0
----
-27
-27
-27

query I rowsort
SELECT ALL + 55 + col1 AS col0 FROM tab2
----
106
122
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT - COUNT( * ) + ( COUNT( * ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT - COUNT ( * ) + ( COUNT ( * ) ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT + CAST( - 53 AS SIGNED ) * + 8 AS col1 FROM tab2
----
-424
-424
-424

skipif mysql # not compatible
query I rowsort label-8261
SELECT + CAST ( - 53 AS INTEGER ) * + 8 AS col1 FROM tab2
----
-424
-424
-424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 34 col0 FROM tab2
----
1564
2176
2550

query I rowsort
SELECT ALL - 73 * 52 FROM tab1
----
-3796
-3796
-3796

query I rowsort
SELECT - col1 * col0 + - 20 FROM tab1 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col2 * 93 AS col1 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT + ( + COUNT( * ) ) * - 40 col1 FROM tab0
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8266
SELECT + ( + COUNT ( * ) ) * - 40 col1 FROM tab0
----
-120

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT ALL col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8269
SELECT ALL - COUNT( col0 ) DIV 45 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL - COUNT ( col0 ) / 45 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT - MAX( col1 ) * + COUNT( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT - MAX ( col1 ) * + COUNT ( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT MIN( ALL + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8271
SELECT MIN ( ALL + col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT COUNT( * ) * - 88 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN col1 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT COUNT ( * ) * - 88 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN col1 AND + col1
----
0

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab0
----
-1

query I rowsort
SELECT 29 - 93 * col2 AS col2 FROM tab1 WHERE ( col0 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab2 cor0
----
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 7 NOT BETWEEN ( 31 ) AND 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 89 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN ( col0 ) AND ( - 64 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * + 60 FROM tab2 AS cor0 WHERE NOT + col0 <> - 96 * col0
----

query I rowsort
SELECT - col2 * 19 FROM tab1
----
-1121
-1292
-1824

query I rowsort
SELECT col2 * - ( + col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col1 FROM tab0
----
72

query I rowsort
SELECT 75 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8284
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) <> + col0 / - col0 + - 53 * 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 20 + col1 NOT BETWEEN NULL AND 59 - + col0
----
3

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 20 + col1 NOT BETWEEN NULL AND 59 - + col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT MIN( DISTINCT + 87 ) + - 84 FROM tab0 cor0 WHERE NOT col1 * 9 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT MIN ( DISTINCT + 87 ) + - 84 FROM tab0 cor0 WHERE NOT col1 * 9 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + - COUNT( * ) * 14 col1 FROM tab2 cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8289
SELECT + - COUNT ( * ) * 14 col1 FROM tab2 cor0
----
-42

query I rowsort
SELECT ALL - col1 * col1 + - 74 FROM tab0
----
-515
-6635
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * + col1 col1 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT DISTINCT - ( + - 60 ) AS col0 FROM tab1
----
60

query I rowsort
SELECT DISTINCT - col2 / + ( - 94 ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND + ( - 71 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT col2 - col1 DIV 17 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
43
9
99

skipif mysql # not compatible
query I rowsort label-8294
SELECT col2 - col1 / 17 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
43
9
99

query I rowsort
SELECT ALL col2 * 79 * 6 + col0 FROM tab0 AS cor0
----
22293
47023
4827

query I rowsort
SELECT - ( 7 ) * + col0 AS col2 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + COUNT( ALL - - 98 ) + + 36 AS col0 FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-8297
SELECT + COUNT ( ALL - - 98 ) + + 36 AS col0 FROM tab1 cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL + 92 + MIN( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2
----
115

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + 92 + MIN ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2
----
115

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( 73 * 49 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 84 + - col0 / - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + col0 FROM tab2 AS cor0 WHERE col0 < + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8302
SELECT - col1 AS col0, col2 DIV 19 + col1 DIV + col0 col0 FROM tab2 AS cor0
----
-51
2
-67
3
-77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8302
SELECT - col1 AS col0, col2 / 19 + col1 / + col0 col0 FROM tab2 AS cor0
----
-51
2
-67
3
-77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8303
SELECT - col2 DIV + + 8 + - 44 FROM tab0 AS cor0
----
-45
-49
-56

skipif mysql # not compatible
query I rowsort label-8303
SELECT - col2 / + + 8 + - 44 FROM tab0 AS cor0
----
-45
-49
-56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - ( + col0 ) AND - col1 * + col1
----

query I rowsort
SELECT ALL + - col2 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT + col0 * col0 - + - col2 AS col0 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # DIV for integer division: 
query I rowsort label-8307
SELECT + + col2 DIV + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT + + col2 / + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8309
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE ( CAST( - col2 AS DECIMAL ) + - col2 ) <> col0 / 4
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8309
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE ( CAST ( - col2 AS REAL ) + - col2 ) <> col0 / 4
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 * 47 AS col0 FROM tab1 AS cor0
----
-2209
-235
-658

query I rowsort
SELECT 30 * - 88 * - 17 FROM tab2 AS cor0
----
44880
44880
44880

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 + + col2 )
----

query II rowsort
SELECT ALL + 15 * col0, + col2 * + 50 AS col0 FROM tab0 AS cor0
----
1305
500
1455
4950
225
2350

query I rowsort
SELECT ALL 80 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
3807
8019
810

query I rowsort
SELECT col0 * - 81 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * - ( + - col1 ) / + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * - ( + - col1 ) / + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT MIN( - 43 ) FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8317
SELECT MIN ( - 43 ) FROM tab1 cor0
----
-43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 32 + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
-37
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 * + 58 * + ( + col0 ) * col1 + + col0 * 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - ( + 26 ) ) FROM tab1
----
-26

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab0 WHERE NOT ( NULL ) = col1 + + 76 + - - 82
----

query II rowsort
SELECT col2 + 2, - col1 AS col2 FROM tab1
----
61
-5
70
-47
98
-14

query I rowsort
SELECT - - col0 + + - col0 + + col2 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
1219
3144
3961

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( + - ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 81 + + col1 AS col2 FROM tab0 AS cor0
----
102
162
82

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL + 43 + ( + col2 ) AS col2 FROM tab0 cor0
----
142
53
90

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * + ( - - col0 ) + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 33 - - - col1 - + + col1 FROM tab0
----
-129
-9
31

query I rowsort
SELECT + 21 - + - col2 - - col0 * + 88 FROM tab2
----
4092
5693
6679

query I rowsort
SELECT 55 - + col2 FROM tab2
----
-3
15
32

query I rowsort
SELECT col2 - col1 * + col1 AS col0 FROM tab1 cor0
----
-100
-2141
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 > ( + col0 * + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + col0 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 29 FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT IN ( + col1 * 29 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( + 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 + - col2 AS col1, 40 FROM tab2 AS cor0
----
0
40
0
40
0
40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( - - col2 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 29 * - + 94 + + 27 FROM tab1 AS cor0
----
2753
2753
2753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8343
SELECT - 60 DIV - - ( + SUM( ALL 39 ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT - 60 / - - ( + SUM ( ALL 39 ) ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8344
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 31 + + col1 AS col2 FROM tab2
----
NULL
108
NULL
82
NULL
98

skipif mysql # not compatible
query II rowsort label-8344
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 31 + + col1 AS col2 FROM tab2
----
NULL
108
NULL
82
NULL
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT - MAX( ALL + + CAST( + ( - 70 ) AS SIGNED ) ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-8345
SELECT - MAX ( ALL + + CAST ( + ( - 70 ) AS INTEGER ) ) FROM tab2
----
70

query I rowsort
SELECT 70 * 95 AS col2 FROM tab1
----
6650
6650
6650

query I rowsort
SELECT + ( - + col2 ) AS col2 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - + 72 ) * - col2 ) NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT 7 * - + col0 * - col2 * + col1 FROM tab0
----
127890
399735
67221

query I rowsort
SELECT + AVG ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL <= col2 * - + col1 - + + col0 - - - col1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + + col1 BETWEEN + col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 27, ( - col0 ) AS col2 FROM tab2 AS cor0
----
27
-46
27
-64
27
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT MIN( ALL - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8353
SELECT MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL 66 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
66
66
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 29 IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 * 23 * 83 + + col1 AS col0 FROM tab1 AS cor0
----
-26712
-89676
-9540

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 57 + + col1, 96 )
----

query I rowsort
SELECT + col0 * - col2 + + - col1 - - + 50 AS col1 FROM tab2 cor0
----
-1059
-2587
-4367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT - col2 + + CAST( - 14 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
-158
-161
-173

skipif mysql # not compatible
query I rowsort label-8359
SELECT - col2 + + CAST ( - 14 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
-158
-161
-173

query II rowsort
SELECT DISTINCT - 29 + col1 + - 30 * - col0, 89 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8361
SELECT DISTINCT - 66 + - 76 + + - COUNT( + - 67 ), 48 AS col2 FROM tab2 AS cor0
----
-145
48

skipif mysql # not compatible
query II rowsort label-8361
SELECT DISTINCT - 66 + - 76 + + - COUNT ( + - 67 ), 48 AS col2 FROM tab2 AS cor0
----
-145
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2, + col2, - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2, + col2, - 29 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT + COUNT( ALL ( - ( col2 ) ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8363
SELECT + COUNT ( ALL ( - ( col2 ) ) ) col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT DISTINCT + col1 + - col1 DIV - - 48 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT + col1 + - col1 / - - 48 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( + 62 ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8366
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) + - 81 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) + - 81 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL - 26 + COUNT( * ) AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - 26 + COUNT ( * ) AS col0 FROM tab0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT + col1 + + + col2 + + col1 * + - col1 * + 11 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT + col1 + + + col2 + + col1 * + - col1 * + 11 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT + COUNT( * ) + + - 76 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + COUNT ( * ) + + - 76 FROM tab2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT + CAST( + + col1 AS SIGNED ) - + col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col0
----

skipif mysql # not compatible
query I rowsort label-8370
SELECT + CAST ( + + col1 AS INTEGER ) - + col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - col0
----

query I rowsort
SELECT ALL - + 77 AS col2 FROM tab2 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT + COUNT( * ) - - + 40 + COUNT( * ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8372
SELECT + COUNT ( * ) - - + 40 + COUNT ( * ) AS col1 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT + + 76 + 76 * - + COUNT( * ) FROM tab0 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-8373
SELECT + + 76 + 76 * - + COUNT ( * ) FROM tab0 AS cor0
----
-152

query I rowsort
SELECT DISTINCT + + 93 + col0 * - ( + 60 ) AS col1 FROM tab1 AS cor0
----
-2967
-5007
-5367

query I rowsort
SELECT DISTINCT 73 + - col1 AS col2 FROM tab1 AS cor0
----
26
59
68

query I rowsort
SELECT DISTINCT + col0 + - 68 FROM tab2
----
-22
-4
7

onlyif mysql # DIV for integer division: 
query II rowsort label-8377
SELECT ALL - col0 - col2, 42 DIV - + ( + + 89 ) AS col2 FROM tab0
----
-196
0
-62
0
-97
0

skipif mysql # not compatible
query II rowsort label-8377
SELECT ALL - col0 - col2, 42 / - + ( + + 89 ) AS col2 FROM tab0
----
-196
0
-62
0
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT DISTINCT COUNT( * ), + 8 AS col0 FROM tab1 AS cor0
----
3
8

skipif mysql # not compatible
query II rowsort label-8378
SELECT DISTINCT COUNT ( * ), + 8 AS col0 FROM tab1 AS cor0
----
3
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT col2 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8379
SELECT col2 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - SUM( DISTINCT - - 95 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - SUM ( DISTINCT - - 95 ) FROM tab0 AS cor0
----
-95

query I rowsort
SELECT ALL col2 + - + col1 AS col2 FROM tab1 cor0 WHERE NOT - 19 BETWEEN col0 AND 12 / - col0
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT + MAX( col0 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT + MAX ( col0 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 52 * - + col0 * + col0 FROM tab2 AS cor0
----
-110032
-212992
-292500

query II rowsort
SELECT - + col0 AS col1, 68 AS col0 FROM tab2 cor0
----
-46
68
-64
68
-75
68

query I rowsort
SELECT - + 82 * - - 63 FROM tab2 AS cor0
----
-5166
-5166
-5166

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8386
SELECT DISTINCT col1 * + CAST( - + CAST( + - col0 AS SIGNED ) AS DECIMAL ) + - col2 FROM tab1 AS cor0 WHERE NOT col0 <> 34 + + + col1 * + + 48 * + col0 + - 63
----

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT col1 * + CAST ( - + CAST ( + - col0 AS INTEGER ) AS REAL ) + - col2 FROM tab1 AS cor0 WHERE NOT col0 <> 34 + + + col1 * + + 48 * + col0 + - 63
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8387
SELECT DISTINCT * FROM tab2 WHERE - + 36 < - CAST( + 56 AS DECIMAL ) + + 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8387
SELECT DISTINCT * FROM tab2 WHERE - + 36 < - CAST ( + 56 AS REAL ) + + 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL MAX( DISTINCT + - 23 ) * SUM( DISTINCT + - col0 ) FROM tab1
----
5221

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL MAX ( DISTINCT + - 23 ) * SUM ( DISTINCT + - col0 ) FROM tab1
----
5221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL + + ( + col1 ) * 76 - - + col2 - + 35 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE + 3 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + + ( + col1 ) * 76 - - + col2 - + 35 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 3 IS NULL
----

query I rowsort
SELECT ALL + col0 * - + col2 * - + col2 AS col2 FROM tab1
----
295885
420784
470016

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT + - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT + - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col2 FROM tab2 AS cor0
----
-31

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 < + col1 + 31
----

query I rowsort
SELECT DISTINCT ( - col2 ) * col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL col0 * - + col2 * - col1 AS col2 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT + - CAST( - - 6 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif mysql # not compatible
query I rowsort label-8397
SELECT + - CAST ( - - 6 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + - col0 / - 1 FROM tab0 WHERE NOT + col1 NOT IN ( col2, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT DISTINCT + 97 DIV 33 + - + col2 + - 45 col0 FROM tab1 AS cor0
----
-102
-111
-139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8399
SELECT DISTINCT + 97 / 33 + - + col2 + - 45 col0 FROM tab1 AS cor0
----
-102
-111
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL + MIN( ALL + - 47 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL + MIN ( ALL + - 47 ) FROM tab0 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 47 * 87 + + col2 col2, - 1 FROM tab1 AS cor0
----
4148
-1
4157
-1
4185
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8402
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( col1 AS DECIMAL ) - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8402
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( col1 AS REAL ) - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 10 AS col2 FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + 2 FROM tab2 AS cor0
----
46
2
64
2
75
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8405
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 53 FROM tab2 WHERE - + col1 * - 37 > ( NULL )
----

query I rowsort
SELECT ALL + 66 + + col0 AS col1 FROM tab0
----
153
163
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8409
SELECT 30 + MAX( - ( - + col2 ) ), 86 * - - MAX( ALL - - col1 ) col2 FROM tab1
----
126
4042

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8409
SELECT 30 + MAX ( - ( - + col2 ) ), 86 * - - MAX ( ALL - - col1 ) col2 FROM tab1
----
126
4042

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / + + col0 * + col1 * + col2 < - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8412
SELECT ALL - ( + - 5 ), - MAX( + + col0 ) AS col2 FROM tab1
----
5
-91

skipif mysql # not compatible
query II rowsort label-8412
SELECT ALL - ( + - 5 ), - MAX ( + + col0 ) AS col2 FROM tab1
----
5
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + + COUNT( * ) FROM tab2 WHERE 21 + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8413
SELECT + + COUNT ( * ) FROM tab2 WHERE 21 + - col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 + + 46 * - 62 FROM tab1
----
-2756
-2784
-2793

query I rowsort
SELECT + col0 + - col2 + + 45 FROM tab1
----
0
68
71

query I rowsort
SELECT ALL col2 + + + col1 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT 99 - + col0 AS col1 FROM tab1
----
14
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + COUNT( DISTINCT + col1 ) - - 8 * + SUM( - + 23 ) - - 33 FROM tab0
----
-516

skipif mysql # not compatible
query I rowsort label-8419
SELECT + COUNT ( DISTINCT + col1 ) - - 8 * + SUM ( - + 23 ) - - 33 FROM tab0
----
-516

query I rowsort
SELECT ( col1 ) - col2 - - 8 + + col0 FROM tab1
----
-23
39
78

query I rowsort
SELECT - col0 - - 55 FROM tab0
----
-32
-42
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8422
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2, + 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-8422
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2, + 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL
17

query I rowsort
SELECT DISTINCT + + 15 FROM tab2 AS cor0 WHERE NOT col2 / - 31 * 4 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab2 cor0
----
81

query I rowsort
SELECT - - col0 * - + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 74 >= col2 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8427
SELECT - ( - COUNT( * ) ) * + COUNT( * ) AS col0, + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
9
-3

skipif mysql # not compatible
query II rowsort label-8427
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) AS col0, + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
9
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col0 ) <> NULL
----

query I rowsort
SELECT - 80 * + 34 FROM tab1
----
-2720
-2720
-2720

query I rowsort
SELECT DISTINCT 68 * col1 * - 50 AS col1 FROM tab0
----
-275400
-3400
-71400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL CAST( - 97 AS SIGNED ) AS col1 FROM tab2
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL CAST ( - 97 AS INTEGER ) AS col1 FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT DISTINCT - 34 AS col0, + COUNT( * ) FROM tab2
----
-34
3

skipif mysql # not compatible
query II rowsort label-8432
SELECT DISTINCT - 34 AS col0, + COUNT ( * ) FROM tab2
----
-34
3

query II rowsort
SELECT ALL 9 AS col2, + col2 AS col1 FROM tab2
----
9
23
9
40
9
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT + COUNT( - ( + - col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8434
SELECT + COUNT ( - ( + - col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ( - - COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8435
SELECT ( - - COUNT ( * ) ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - + col0 * + col1 * col1 AS col0 FROM tab0
----
-7971615
-805707
-97

query II rowsort
SELECT - col1 / + 92, col1 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) / + 25 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 25 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 64 + - col2 * - - col1 AS col2 FROM tab2 cor0
----
-1109
-3016
-3822

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 79 * - 39 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT + col1 + - - col2 AS col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-8442
SELECT + col1 + - - col2 AS col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 * + 49 + - - 62 col0, 7 FROM tab2 AS cor0
----
1728
7
1728
7
1728
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT - MAX( DISTINCT - col1 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - MAX ( DISTINCT - col1 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT + 27 + + 72 AS col1 FROM tab1 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1, + col2 + + 58 )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 col0 FROM tab0 WHERE - 16 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT DISTINCT + COUNT( * ) + + 66 * + - COUNT( col1 ) AS col0 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT + COUNT ( * ) + + 66 * + - COUNT ( col1 ) AS col0 FROM tab0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 IN ( + - col0 + + col0 * col0 - - 99 * - col2, 94, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8452
SELECT ALL * FROM tab2 WHERE CAST( 80 AS SIGNED ) - - + col1 <> ( - 69 - 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8452
SELECT ALL * FROM tab2 WHERE CAST ( 80 AS INTEGER ) - - + col1 <> ( - 69 - 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT - COUNT( * ) AS col1, + COUNT( - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-8453
SELECT - COUNT ( * ) AS col1, + COUNT ( - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3
3

query I rowsort
SELECT DISTINCT + 4 - - col1 * + col2 AS col0 FROM tab1
----
1348
299
3200

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + - col2 ) ) > - col0
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - - col1 + - - 2 AS col0 FROM tab0 AS cor0
----
23
3
83

onlyif mysql # DIV for integer division: 
query II rowsort label-8457
SELECT - ( + - col0 ) + - col0, - col1 DIV - + col2 FROM tab1 cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-8457
SELECT - ( + - col0 ) + - col0, - col1 / - + col2 FROM tab1 cor0
----
0
0
0
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8458
SELECT DISTINCT col0 + - col2 DIV 96 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT col0 + - col2 / 96 AS col2 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 BETWEEN - - 47 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8460
SELECT CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8461
SELECT - - 43 * - - ( + col0 ) * col2 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT - - 43 * - - ( + col0 ) * col2 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 3 AND + + 24 + - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8463
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 10 + + ( CAST( - 39 AS DECIMAL ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8463
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 10 + + ( CAST ( - 39 AS REAL ) ) > NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8465
SELECT CAST( NULL AS SIGNED ), col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( ( - col0 * col2 IS NOT NULL ) ) )
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8465
SELECT CAST ( NULL AS INTEGER ), col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( ( - col0 * col2 IS NOT NULL ) ) )
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col2, col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT + MIN( DISTINCT + + col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8468
SELECT DISTINCT + MIN ( DISTINCT + + col0 ) col0 FROM tab0
----
15

query II rowsort
SELECT + col2 AS col0, + 45 AS col1 FROM tab0 WHERE NOT - col2 <> + - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - + COUNT( * ) * + + 84 AS col1 FROM tab0 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - + COUNT ( * ) * + + 84 AS col1 FROM tab0 cor0
----
-252

onlyif mysql # DIV for integer division: 
query II rowsort label-8471
SELECT ALL col2 AS col2, 65 DIV - + col1 AS col0 FROM tab1
----
59
-13
68
-1
96
-4

skipif mysql # not compatible
query II rowsort label-8471
SELECT ALL col2 AS col2, 65 / - + col1 AS col0 FROM tab1
----
59
-13
68
-1
96
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + COUNT( * ) * + COUNT( * ) * 57 FROM tab2 AS cor0
----
513

skipif mysql # not compatible
query I rowsort label-8472
SELECT + COUNT ( * ) * + COUNT ( * ) * 57 FROM tab2 AS cor0
----
513

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 79 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 64 + + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-2273
-260
-89

query II rowsort
SELECT ALL + col0 AS col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - col0 * + + ( col0 ) AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + - 60 * + 0 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL 52 * + col1 AS col2 FROM tab0 AS cor0
----
1092
4212
52

query I rowsort
SELECT DISTINCT col1 * + col1 + - + 29 FROM tab2 AS cor0
----
2572
4460
5900

query I rowsort
SELECT DISTINCT 14 + + ( 79 ) * - + col2 * + + col0 FROM tab2
----
-202226
-343636
-83568

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 4 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8483
SELECT - COUNT( + col1 ), - 18 AS col0 FROM tab0 WHERE - - col0 IS NULL
----
0
-18

skipif mysql # not compatible
query II rowsort label-8483
SELECT - COUNT ( + col1 ), - 18 AS col0 FROM tab0 WHERE - - col0 IS NULL
----
0
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT + ( + col0 ) + - col1 + + col2 * col1 + - + col0 + + CAST( + 13 AS SIGNED ) AS col2 FROM tab1
----
1343
303
3162

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + ( + col0 ) + - col1 + + col2 * col1 + - + col0 + + CAST ( + 13 AS INTEGER ) AS col2 FROM tab1
----
1343
303
3162

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE - 94 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - ( + - SUM( + 2 ) ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8486
SELECT - ( + - SUM ( + 2 ) ) AS col1 FROM tab2
----
6

query I rowsort
SELECT + + 43 * - 14 + - 70 AS col0 FROM tab2 WHERE - - col2 * + col2 + + 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8488
SELECT DISTINCT 30 - - CAST( NULL AS SIGNED ) AS col0, col2 + col1 AS col0 FROM tab0
----
NULL
100
NULL
128
NULL
31

skipif mysql # not compatible
query II rowsort label-8488
SELECT DISTINCT 30 - - CAST ( NULL AS INTEGER ) AS col0, col2 + col1 AS col0 FROM tab0
----
NULL
100
NULL
128
NULL
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 <> - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT 69 * - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT 69 * - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + + ( + + ( 27 ) ) AS col1 FROM tab2 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, + col1 col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col0 <= ( col1 )
----
1
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8494
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 88 BETWEEN - 60 AND 44 * - - CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8494
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 88 BETWEEN - 60 AND 44 * - - CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - COUNT( * ) * 69 col0 FROM tab0 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8495
SELECT - COUNT ( * ) * 69 col0 FROM tab0 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - - MIN( ALL + 63 ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8496
SELECT - - MIN ( ALL + 63 ) AS col2 FROM tab1 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 91 IS NULL
----

query I rowsort
SELECT DISTINCT - - 18 AS col2 FROM tab2 AS cor0
----
18

query I rowsort
SELECT col1 * + - 28 * - col1 FROM tab0
----
12348
183708
28

query I rowsort
SELECT ALL - ( + - 35 ) AS col2 FROM tab1
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL MAX( 93 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL MAX ( 93 ) FROM tab2
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab1
----
25
25
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - col0 AND + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 58 * - - 52 NOT BETWEEN - - col0 + + col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 72 + + + col0 * + 32 AS col2 FROM tab2
----
1544
2120
2472

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL 41 * COUNT( * ) * + + 43 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
15867

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL 41 * COUNT ( * ) * + + 43 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
15867

query II rowsort
SELECT - col0 + + 1 - - col1 AS col1, - 62 * + - 4 FROM tab0
----
-65
248
-95
248
67
248

query I rowsort
SELECT + col2 + col1 * + - ( + 57 ) AS col2 FROM tab0
----
-1187
-4570
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col1 FROM tab2
----
121

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT 93, - COUNT( - 59 ) * - - 3 AS col1 FROM tab1 cor0
----
93
-9

skipif mysql # not compatible
query II rowsort label-8511
SELECT 93, - COUNT ( - 59 ) * - - 3 AS col1 FROM tab1 cor0
----
93
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * ( + 22 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col1 >= - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT + 5 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT + 5 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - 23 - + + col0 FROM tab0 AS cor0
----
-74
1848
396

query I rowsort
SELECT - + col2 * + 5 AS col0 FROM tab1 AS cor0
----
-295
-340
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT DISTINCT + - 78 DIV + COUNT( * ) + + + MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + - 78 / + COUNT ( * ) + + + MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + - MIN( col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8518
SELECT + - MIN ( col1 ) FROM tab2 cor0
----
-51

query I rowsort
SELECT DISTINCT 67 * + col2 * + + col2 + + - 38 FROM tab0
----
147965
656629
6662

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT ALL + col2 DIV - col1 * + + ( - col2 ) DIV + col2 + col1 AS col0 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL + col2 / - col1 * + + ( - col2 ) / + col2 + col1 AS col0 FROM tab0
----
100
21
81

query I rowsort
SELECT ALL - col2 + + + 26 FROM tab2
----
-14
-32
3

query I rowsort
SELECT ALL 12 - + - col0 + + col2 * + 75 + + col2 FROM tab1
----
4581
5271
7359

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8523
SELECT * FROM tab1 WHERE col1 - - - CAST( + col2 AS SIGNED ) < 43 + - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8523
SELECT * FROM tab1 WHERE col1 - - - CAST ( + col2 AS INTEGER ) < 43 + - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL 79 - - 25 + - COUNT( * ) + - + 30 col1 FROM tab1
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8525
SELECT ALL 79 - - 25 + - COUNT ( * ) + - + 30 col1 FROM tab1
----
71

query I rowsort
SELECT DISTINCT - + col2 - 64 - 94 FROM tab0 AS cor0
----
-168
-205
-257

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT DISTINCT + col1 DIV - + 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT + col1 / - + 89 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT + COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8528
SELECT + COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT + COUNT( * ) * + + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT + COUNT ( * ) * + + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT - col1 AS col1, 12 AS col0 FROM tab2 AS cor0
----
-51
12
-67
12
-77
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL 3 AS col2 FROM tab2 WHERE 44 BETWEEN + 28 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL 3 AS col2 FROM tab2 WHERE 44 BETWEEN + 28 AND - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 49 * - 46 AS col2 FROM tab1
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT DISTINCT - + MAX( + 25 ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - + MAX ( + 25 ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL - - 31 * + col2 FROM tab0 AS cor0
----
1457
3069
310

onlyif mysql # DIV for integer division: 
query II rowsort label-8535
SELECT - col2 DIV - col0, + 32 AS col1 FROM tab2 cor0
----
0
32
0
32
0
32

skipif mysql # not compatible
query II rowsort label-8535
SELECT - col2 / - col0, + 32 AS col1 FROM tab2 cor0
----
0
32
0
32
0
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + col0 + + 14 / + 49 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT DISTINCT - - ( - - col1 ) DIV 21 * col2 col1 FROM tab2 AS cor0
----
120
174
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8537
SELECT DISTINCT - - ( - - col1 ) / 21 * col2 col1 FROM tab2 AS cor0
----
120
174
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 58 * + + col2 / + 73 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 51 + + + col1 col0, - col0 * + + col1 AS col2 FROM tab0 cor0
----
132
-1215
52
-97
72
-1827

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + - col1 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT 65 * + - COUNT( * ) col1 FROM tab0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8541
SELECT 65 * + - COUNT ( * ) col1 FROM tab0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( col1 ) col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + col0 * - - ( - col2 ) FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT - col2 DIV col0 + 35 AS col2 FROM tab0
----
32
34
35

skipif mysql # not compatible
query I rowsort label-8544
SELECT - col2 / col0 + 35 AS col2 FROM tab0
----
32
34
35

query I rowsort
SELECT col0 * - - 75 + - col1 FROM tab0
----
1044
6504
7274

onlyif mysql # aggregate syntax: 
query II rowsort label-8546
SELECT - + 98 + + - MIN( - col2 ) AS col1, ( + 4 ) AS col1 FROM tab1 AS cor0
----
-2
4

skipif mysql # not compatible
query II rowsort label-8546
SELECT - + 98 + + - MIN ( - col2 ) AS col1, ( + 4 ) AS col1 FROM tab1 AS cor0
----
-2
4

query I rowsort
SELECT + 38 + - + col0 FROM tab2 cor0
----
-26
-37
-8

query I rowsort
SELECT ALL - 50 FROM tab0 AS cor0 WHERE + col1 + 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT ALL + col2 + 94 AS col1 FROM tab2 AS cor0
----
117
134
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8551
SELECT ALL - ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query II rowsort label-8553
SELECT + 55 - - - 15 col1, - COUNT( * ) FROM tab1
----
40
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8553
SELECT + 55 - - - 15 col1, - COUNT ( * ) FROM tab1
----
40
-3

query I rowsort
SELECT 98 * - 4 + - ( - 63 ) FROM tab1 AS cor0
----
-329
-329
-329

query I rowsort
SELECT ( 18 ) + - col2 FROM tab1 AS cor0
----
-41
-50
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + 1 IS NULL
----

query I rowsort
SELECT 56 + + 88 AS col2 FROM tab0
----
144
144
144

query I rowsort
SELECT DISTINCT + 96 FROM tab2, tab0 AS cor0
----
96

query I rowsort
SELECT + col2 * 10 AS col0 FROM tab0
----
100
470
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT SUM( DISTINCT + 5 ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-8560
SELECT SUM ( DISTINCT + 5 ) FROM tab2
----
5

query I rowsort
SELECT ALL + col2 - + 80 FROM tab0
----
-33
-70
19

query I rowsort
SELECT ( + + 98 ) FROM tab0
----
98
98
98

query II rowsort
SELECT 64 AS col0, + 36 AS col2 FROM tab2
----
64
36
64
36
64
36

query I rowsort
SELECT DISTINCT + 1 * - - col1 * + + col1 AS col1 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 51 * - col2 AS col2 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT + col1 * col1 * + CAST( - col2 AS SIGNED ) + - + col2 FROM tab2 cor0
----
-237200
-260420
-59846

skipif mysql # not compatible
query I rowsort label-8567
SELECT + col1 * col1 * + CAST ( - col2 AS INTEGER ) + - + col2 FROM tab2 cor0
----
-237200
-260420
-59846

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL OR ( col2 ) BETWEEN NULL AND col1 + + - col0 / - + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 78 + + col2 = + ( - col2 ) + 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 18 * + col0 FROM tab2
----
-1152
-1350
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 74 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 74 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + COUNT( * ) FROM tab0 WHERE NOT + col1 * + col0 < col2
----
2

skipif mysql # not compatible
query I rowsort label-8572
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + col1 * + col0 < col2
----
2

query I rowsort
SELECT ALL - 24 * + col0 AS col1 FROM tab1
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT COUNT( * ) AS col1, 77 FROM tab0
----
3
77

skipif mysql # not compatible
query II rowsort label-8574
SELECT COUNT ( * ) AS col1, 77 FROM tab0
----
3
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54 col0, - col0 + - - col0 AS col0 FROM tab0
----
54
0
54
0
54
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col0 AS col2, - 4 col0, + col1 AS col1 FROM tab0 AS cor0
----
9 values hashing to a6cd4d80a7d08cf018799dcddd6528ce

query II rowsort
SELECT col1, 72 * 97 FROM tab2 AS cor0
----
51
6984
67
6984
77
6984

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <= - col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - 94 * - col1 FROM tab0
----
1974
7614
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT ALL + col1 DIV ( + col2 ) DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + col1 / ( + col2 ) / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + 22 AS col2 FROM tab2
----
45
62
80

query III rowsort
SELECT * FROM tab1 WHERE col0 * + col2 + + 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + col1 ) * + 93 AS col2 FROM tab1 WHERE NOT NULL <> + 53
----

query I rowsort
SELECT DISTINCT 0 + col2 AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT + + MIN( - + 31 ) / + MAX( - 0 ) / CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT + + MIN ( - + 31 ) / + MAX ( - 0 ) / CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

query I rowsort
SELECT ALL - col2 - - 38 AS col2 FROM tab1 AS cor0
----
-21
-30
-58

query I rowsort
SELECT 26 * - 14 FROM tab2 AS cor0
----
-364
-364
-364

query I rowsort
SELECT DISTINCT col0 - 80 FROM tab2 AS cor0
----
-16
-34
-5

query I rowsort
SELECT DISTINCT 75 + - col2 FROM tab1 AS cor0
----
-21
16
7

query I rowsort
SELECT col1 - - 18 AS col1 FROM tab0 AS cor0
----
19
39
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL - MAX( col2 ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - MAX ( col2 ) AS col0 FROM tab0 cor0
----
-99

query I rowsort
SELECT + col2 + + 59 AS col2 FROM tab0 WHERE NOT + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 / + - ( - 22 ) NOT IN ( - 8, - col2 - + col0 + col0 - + - col1 * - col0, + col2 * - 81, - col2 + - 14 )
----

query I rowsort
SELECT + 99 AS col1 FROM tab1
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT 31 * - COUNT( * ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8598
SELECT 31 * - COUNT ( * ) FROM tab0 AS cor0
----
-93

query I rowsort
SELECT - + ( - ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col0 * + col1 - - ( 36 ) FROM tab1 AS cor0
----
-389
-4241
-678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL - SUM( + CAST( - - col2 AS SIGNED ) ) col2 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8601
SELECT ALL - SUM ( + CAST ( - - col2 AS INTEGER ) ) col2 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT COUNT( * ) * - 89 FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-8602
SELECT COUNT ( * ) * - 89 FROM tab1
----
-267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8603
SELECT DISTINCT 83 / - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT 83 / - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT + - ( 9 ) * COUNT( * ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8604
SELECT + - ( 9 ) * COUNT ( * ) FROM tab2 cor0
----
-27

query I rowsort
SELECT ALL 26 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
26
26
26

query I rowsort
SELECT ALL - - col1 + 59 * - - col0 * + + col2 FROM tab0 AS cor0
----
41676
51351
566578

query I rowsort
SELECT + + 46 * - 93 + - - col2 FROM tab1 WHERE - col1 NOT BETWEEN ( - + col2 ) AND + col0 * - col0
----
-4182
-4210
-4219

onlyif mysql # aggregate syntax: 
query II rowsort label-8608
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( + - col1 ) col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8608
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( + - col1 ) col0 FROM tab0
----
-3
3

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col1 + - + col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query III rowsort label-8611
SELECT DISTINCT 56 col1, - COUNT( * ) AS col1, + - COUNT( * ) col2 FROM tab2
----
56
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8611
SELECT DISTINCT 56 col1, - COUNT ( * ) AS col1, + - COUNT ( * ) col2 FROM tab2
----
56
-3
-3

query II rowsort
SELECT 77 * col2 * + col1 + col0 * - - col1 * - - col0, - 60 * + col2 AS col0 FROM tab0
----
17032
-5940
175119
-600
311364
-2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8613
SELECT + ( + + 37 ) + + ( - - CAST( - - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-8613
SELECT + ( + + 37 ) + + ( - - CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2
----
40

query I rowsort
SELECT DISTINCT + col2 * 48 FROM tab0 AS cor0
----
2256
4752
480

query II rowsort
SELECT + + 55, + ( ( + - col1 ) ) AS col1 FROM tab1 AS cor0
----
55
-14
55
-47
55
-5

query I rowsort
SELECT DISTINCT + 41 + + + col0 AS col2 FROM tab0 AS cor0
----
128
138
56

query II rowsort
SELECT + col1 - - + col0 * - - col2 * - col1 + - col1, col1 FROM tab2
----
-197120
77
-291450
67
-53958
51

query I rowsort
SELECT ALL - 62 + - + col2 * + col2 AS col2 FROM tab1
----
-3543
-4686
-9278

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT - 8 + - col2 FROM tab2
----
-31
-48
-66

query I rowsort
SELECT DISTINCT - 20 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL + 5 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + 5 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 * + - 91 - + col2 col0 FROM tab0 cor0
----
-3104
-3141
-3193

query I rowsort
SELECT ALL - 35 * + col0 FROM tab0 cor0
----
-3045
-3395
-525

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT DISTINCT - - 3 * - COUNT( * ) AS col2, MIN( - col2 ) FROM tab2 AS cor0
----
-9
-58

skipif mysql # not compatible
query II rowsort label-8625
SELECT DISTINCT - - 3 * - COUNT ( * ) AS col2, MIN ( - col2 ) FROM tab2 AS cor0
----
-9
-58

query I rowsort
SELECT DISTINCT ( col2 ) * ( + col1 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, 29 AS col2 FROM tab0
----
15
29
87
29
97
29

query II rowsort
SELECT ALL col2 AS col0, + ( 73 ) AS col0 FROM tab0
----
10
73
47
73
99
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT COUNT( + 86 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8630
SELECT COUNT ( + 86 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + + col1 / + - col0 IS NULL
----

query I rowsort
SELECT col1 * - 95 * - 43 FROM tab2
----
208335
273695
314545

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + SUM( + 71 ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-8633
SELECT + SUM ( + 71 ) FROM tab0
----
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col0 FROM tab1
----
12
12
12

query I rowsort
SELECT 27 * - + col0 FROM tab0
----
-2349
-2619
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-8636
SELECT - 14 DIV + + col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8636
SELECT - 14 / + + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 35 * col1 AS col1 FROM tab1
----
1645
175
490

query I rowsort
SELECT ALL col1 + 71 AS col0 FROM tab1 WHERE NOT NULL <> - col0 * + 24 + 52
----

query I rowsort
SELECT DISTINCT - 80 * - 91 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL + + MAX( - 6 ) col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8640
SELECT ALL + + MAX ( - 6 ) col2 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT DISTINCT - ( + - col2 ), - col2 * - col2 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
59
3481
68
4624
96
9216

query II rowsort
SELECT + col2 AS col2, col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT DISTINCT col2 + col0 + + 10 DIV 33 + + + 98 FROM tab2
----
167
202
231

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT col2 + col0 + + 10 / 33 + + + 98 FROM tab2
----
167
202
231

query I rowsort
SELECT ALL 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 94 ) col0 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + + + col0 + + col1 < NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT ALL ( + COUNT( ALL + ( - + 24 ) ) ) - - 23 AS col2, 90 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( + 58 ) IS NOT NULL
----
23
90

skipif mysql # not compatible
query II rowsort label-8648
SELECT ALL ( + COUNT ( ALL + ( - + 24 ) ) ) - - 23 AS col2, 90 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( + 58 ) IS NOT NULL
----
23
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL 94 col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) >= col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8649
SELECT ALL 94 col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) >= col0
----

query I rowsort
SELECT - - 46 + - ( - col0 ) FROM tab2 AS cor0
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT + + SUM( ALL + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT + + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT + - col2 DIV col0 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8652
SELECT + - col2 / col0 + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col1 + + - col2 - + col2 FROM tab0 AS cor0
----
-13
-197
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + + ( - 59 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + + ( - 59 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-177

query I rowsort
SELECT DISTINCT + 18 + + - 10 - - + col1 + - col1 AS col1 FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT COUNT( DISTINCT + ( + + ( 8 ) ) ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8656
SELECT COUNT ( DISTINCT + ( + + ( 8 ) ) ) AS col1 FROM tab2
----
1

query I rowsort
SELECT ALL + col1 - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL 75 + + - COUNT( * ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL 75 + + - COUNT ( * ) AS col2 FROM tab1
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col2 FROM tab2
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL + ( + COUNT( * ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8660
SELECT ALL + ( + COUNT ( * ) ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL 76 * + 29 * col2 FROM tab1 AS cor0
----
130036
149872
211584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 65 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT DISTINCT - col1 DIV + + 48 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - col1 / + + 48 AS col2 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - COUNT( * ) * + ( - 5 ) * 63 + - 89 FROM tab2 AS cor0
----
856

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - COUNT ( * ) * + ( - 5 ) * 63 + - 89 FROM tab2 AS cor0
----
856

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT - ( + - MAX( - + col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8666
SELECT - ( + - MAX ( - + col2 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT 38 AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-8667
SELECT 38 AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
38
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT - - COUNT( + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8668
SELECT - - COUNT ( + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < 59
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8670
SELECT ALL - 17 * ( - CAST( - - COUNT( * ) AS SIGNED ) ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - 17 * ( - CAST ( - - COUNT ( * ) AS INTEGER ) ) FROM tab0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-8671
SELECT col0 DIV - - col0 AS col1, + col2 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-8671
SELECT col0 / - - col0 AS col1, + col2 FROM tab0
----
1
10
1
47
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT col1 DIV - - 41 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8672
SELECT col1 / - - 41 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + 95 * 75 * - + col1 FROM tab2
----
-363375
-477375
-548625

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 54 * + - col1 AS col1 FROM tab2 AS cor0
----
-2754
-3618
-4158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + + col0 col1 FROM tab2
----
114
125
96

query I rowsort
SELECT ALL - ( - 68 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 67 NOT IN ( + - 45 * + col1 * + 12, - col2, - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT MAX( + 38 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-8679
SELECT MAX ( + 38 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
38

query I rowsort
SELECT DISTINCT + + 86 * - 37 + + - col2 AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8681
SELECT COUNT( * ) AS col2, 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
30

skipif mysql # not compatible
query II rowsort label-8681
SELECT COUNT ( * ) AS col2, 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
30

query II rowsort
SELECT ALL - col0 AS col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT col0 * + CAST( NULL AS SIGNED ) * ( - - 61 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT col0 * + CAST ( NULL AS INTEGER ) * ( - - 61 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - MIN( DISTINCT - 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8684
SELECT - MIN ( DISTINCT - 65 ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - 51 * - - 8 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8686
SELECT - + col2 AS col1, + 47 - + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8686
SELECT - + col2 AS col1, + 47 - + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT - col0 * + + 87 * + + col2 AS col2 FROM tab0 cor0
----
-61335
-75690
-835461

query I rowsort
SELECT ALL + col1 + + col0 FROM tab1 cor0
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, - 12 col2 FROM tab2 AS cor0
----
23
-12
40
-12
58
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 7 col1 FROM tab1
----
58
92
98

query I rowsort
SELECT DISTINCT - 10 * + col2 + + ( + col0 ) AS col0 FROM tab1
----
-505
-589
-909

query I rowsort
SELECT ALL col0 - - - col1 FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col0, col2 col2 FROM tab0
----
196
99
62
47
97
10

query III rowsort
SELECT * FROM tab0 WHERE col0 + ( + col1 ) * col0 + col1 > NULL
----

query II rowsort
SELECT DISTINCT 84 - - - col0 AS col1, + 51 AS col2 FROM tab2
----
20
51
38
51
9
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT col0 DIV - col1 + + 34 AS col1 FROM tab2
----
33
34
34

skipif mysql # not compatible
query I rowsort label-8696
SELECT col0 / - col1 + + 34 AS col1 FROM tab2
----
33
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT ALL + 95 + + - 11 DIV + col2 AS col2 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + 95 + + - 11 / + col2 AS col2 FROM tab2
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( - col0 ) col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + 18 * - col0 + + col0 AS col2 FROM tab0 cor0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT MAX( + + col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT MAX ( + + col2 ) AS col2 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT COUNT( * ) + 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT COUNT ( * ) + 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL - MAX( ALL + col2 ) * COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - MAX ( ALL + col2 ) * COUNT ( * ) FROM tab1
----
-288

query I rowsort
SELECT + col0 * - - 75 AS col2 FROM tab2
----
3450
4800
5625

query I rowsort
SELECT DISTINCT + 52 * - 20 AS col1 FROM tab0
----
-1040

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT + SUM( - ( - col1 ) ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8706
SELECT + SUM ( - ( - col1 ) ) col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + - 60 * + + ( - ( - - col0 ) ) + 0 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT + 42 * - col2 * col2 FROM tab1
----
-146202
-194208
-387072

query II rowsort
SELECT + 34, - col0 AS col0 FROM tab2
----
34
-46
34
-64
34
-75

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NOT 20 BETWEEN - col2 AND NULL )
----

query I rowsort
SELECT + col2 * - col1 * - col2 AS col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT ALL + col0 * - - col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8713
SELECT DISTINCT - col1, + col0 + CAST( NULL AS SIGNED ) + col0 col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8713
SELECT DISTINCT - col1, + col0 + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8714
SELECT * FROM tab1 WHERE NOT col1 + - 83 + + - ( CAST( NULL AS SIGNED ) ) >= - 30 * - + col1
----

skipif mysql # not compatible
query III rowsort label-8714
SELECT * FROM tab1 WHERE NOT col1 + - 83 + + - ( CAST ( NULL AS INTEGER ) ) >= - 30 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 62 * - col0 AS col2, 20 col0 FROM tab1
----
-3162
20
-5270
20
-5642
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 * 13 col1 FROM tab0
----
-377

onlyif mysql # DIV for integer division: 
query II rowsort label-8717
SELECT 35 DIV - 13 AS col0, 51 AS col2 FROM tab2
----
-2
51
-2
51
-2
51

skipif mysql # not compatible
query II rowsort label-8717
SELECT 35 / - 13 AS col0, 51 AS col2 FROM tab2
----
-2
51
-2
51
-2
51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 62 + - - col0 * - - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8719
SELECT ALL 15, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
15
NULL
15
NULL
15
NULL

skipif mysql # not compatible
query II rowsort label-8719
SELECT ALL 15, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
15
NULL
15
NULL
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL MAX( - - col1 ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL MAX ( - - col1 ) AS col2 FROM tab0 cor0
----
81

query I rowsort
SELECT DISTINCT + 86 * col0 AS col1 FROM tab1 AS cor0
----
4386
7310
7826

query II rowsort
SELECT DISTINCT - 12 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-12
-15
-12
-87
-12
-97

query I rowsort
SELECT ALL + + ( 27 ) + + + col0 + + col1 * - 10 AS col0 FROM tab1 AS cor0
----
-352
-62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT COUNT( * ) * - 35 * 80 + COUNT( + 65 ) AS col1 FROM tab1
----
-8397

skipif mysql # not compatible
query I rowsort label-8724
SELECT COUNT ( * ) * - 35 * 80 + COUNT ( + 65 ) AS col1 FROM tab1
----
-8397

query I rowsort
SELECT ALL ( - + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT + + col1 DIV + col1 FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8726
SELECT + + col1 / + col1 FROM tab0 AS cor0 WHERE 53 IS NOT NULL
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 3 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 4 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT - + col1 DIV + 2 * col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-25
-33
-38

skipif mysql # not compatible
query I rowsort label-8729
SELECT - + col1 / + 2 * col1 / + col1 AS col2 FROM tab2 AS cor0
----
-25
-33
-38

query I rowsort
SELECT + 66 FROM tab1 AS cor0 WHERE ( 73 ) >= col2
----
66
66

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL < + 0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + COUNT( ALL + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8732
SELECT + COUNT ( ALL + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL - 96 - + col2 + 40 * - - 86 FROM tab0
----
3245
3297
3334

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8734
SELECT DISTINCT * FROM tab2 WHERE - + CAST( - ( - col2 ) AS SIGNED ) + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8734
SELECT DISTINCT * FROM tab2 WHERE - + CAST ( - ( - col2 ) AS INTEGER ) + - col1 IS NULL
----

query I rowsort
SELECT ALL + 49 * col1 + - + col0 * 83 AS col2 FROM tab2
----
-1319
-1539
-2942

query I rowsort
SELECT + 47 + + - col1 FROM tab0
----
-34
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL ( + - SUM( DISTINCT - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL ( + - SUM ( DISTINCT - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL - - ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT ( CAST( + col2 AS SIGNED ) ) < col1 + col2
----

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT ( CAST ( + col2 AS INTEGER ) ) < col1 + col2
----

query I rowsort
SELECT col2 * + ( col2 * col1 ) + + col1 AS col0 FROM tab2
----
123277
225455
27030

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL COUNT( 45 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL COUNT ( 45 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col0 + - col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT DISTINCT ( + ( - ( + 49 ) ) ) - col2 AS col1 FROM tab1
----
-108
-117
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT 68 + COUNT( * ) FROM tab2 WHERE NOT NULL <> - col0
----
68

skipif mysql # not compatible
query I rowsort label-8744
SELECT 68 + COUNT ( * ) FROM tab2 WHERE NOT NULL <> - col0
----
68

query I rowsort
SELECT col0 * - col2 AS col2 FROM tab2 WHERE ( - col1 ) = 45 + 84
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE ( - 23 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT - ( + COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8747
SELECT DISTINCT - ( + COUNT ( * ) ) col1 FROM tab1
----
-3

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT - COUNT( * ) + MAX( - ( 75 ) ) DIV + COUNT( * ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-8749
SELECT - COUNT ( * ) + MAX ( - ( 75 ) ) / + COUNT ( * ) FROM tab2
----
-28

query I rowsort
SELECT + 93 * + 78 + col1 * + 3 AS col1 FROM tab1
----
7269
7296
7395

query I rowsort
SELECT DISTINCT - 80 FROM tab1 WHERE NOT ( - 40 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT DISTINCT col2 + - 44 col2 FROM tab0 WHERE NOT ( ( - col1 ) + - col1 ) > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8752
SELECT DISTINCT col2 + - 44 col2 FROM tab0 WHERE NOT ( ( - col1 ) + - col1 ) > ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT col2 + CAST( - col2 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT col2 + CAST ( - col2 AS INTEGER ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - COUNT( 9 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8754
SELECT - COUNT ( 9 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT + SUM( DISTINCT col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8755
SELECT + SUM ( DISTINCT col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT 44 + + CAST( - 43 AS SIGNED ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8757
SELECT 44 + + CAST ( - 43 AS INTEGER ) AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( 40 + col1 )
----

query I rowsort
SELECT col2 * - 89 AS col2 FROM tab0
----
-4183
-8811
-890

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * 30 ) = NULL
----

query I rowsort
SELECT 93 + col0 * - 60 FROM tab0 AS cor0
----
-5127
-5727
-807

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT col2 + col0 FROM tab2 cor0 WHERE + 87 <= 8
----

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT 36 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> col1
----

query I rowsort
SELECT ALL 5 + - col1 FROM tab2 cor0
----
-46
-62
-72

query I rowsort
SELECT col1 * - 89 AS col0 FROM tab2 WHERE col1 IN ( + col1 / ( 76 ) )
----

query I rowsort
SELECT ALL + col2 * - col1 + 77 AS col1 FROM tab1
----
-1267
-218
-3119

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <= ( col1 / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 90 + col1 * col0 FROM tab0
----
1125
1737
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT + + SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT + + SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT DISTINCT + + 31 + COUNT( + ( 97 ) ) AS col1 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + + 31 + COUNT ( + ( 97 ) ) AS col1 FROM tab2 AS cor0
----
34

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col0 - col2 * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 * 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + 96 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + 96 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
288

query I rowsort
SELECT ALL - col0 + 39 FROM tab1 AS cor0
----
-12
-46
-52

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE 2 NOT BETWEEN 84 AND NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) < + col0 * + 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE - col1 <= col0
----
-51
-85
-91

query I rowsort
SELECT - 91 + + + col1 AS col0 FROM tab2
----
-14
-24
-40

query I rowsort
SELECT DISTINCT col1 + - 85 FROM tab0
----
-4
-64
-84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT MIN( DISTINCT 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-8783
SELECT MIN ( DISTINCT 71 ) FROM tab0
----
71

query I rowsort
SELECT DISTINCT + 69 + + col0 AS col0 FROM tab0
----
156
166
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) = - col1 + col1
----

query I rowsort
SELECT DISTINCT + col0 - ( - 33 ) + 80 * 75 FROM tab0
----
6048
6120
6130

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( 50 ) <= - ( 52 ) * col2
----

query I rowsort
SELECT DISTINCT 4 - - col2 + col1 * 77 FROM tab0
----
1631
180
6288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col2 col1 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT COUNT( * ) - - AVG ( ALL 58 + - 94 ) FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= NULL AND ( 21 ) <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT COUNT ( * ) - - AVG ( ALL 58 + - 94 ) FROM tab2 AS cor0 WHERE NOT ( + col2 ) >= NULL AND ( 21 ) <> col1
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 = col0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 69 / - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + 95 ) BETWEEN ( - col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 65 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8795
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8797
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NOT - - col2 * - col2 + - col0 * col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NOT - - col2 * - col2 + - col0 * col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - ( col1 ) * col0
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col2 * - - col2 + col2 ) AND + 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL + 53 AS col2 FROM tab1 AS cor0 WHERE CAST( - - 66 AS SIGNED ) + col0 < ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + 53 AS col2 FROM tab1 AS cor0 WHERE CAST ( - - 66 AS INTEGER ) + col0 < ( + col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 >= col2
----

query I rowsort
SELECT DISTINCT + col2 + col2 * + + col0 FROM tab2
----
1081
2600
4408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 9 + + - col0, col0 * + col2 + 35 col0 FROM tab2
----
-37
1093
-55
2595
-66
4385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT 68 * + col2 * CAST( - col1 AS SIGNED ) FROM tab2
----
-209440
-264248
-79764

skipif mysql # not compatible
query I rowsort label-8804
SELECT 68 * + col2 * CAST ( - col1 AS INTEGER ) FROM tab2
----
-209440
-264248
-79764

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8805
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) * - - col1 ) >= col1
----

skipif mysql # not compatible
query III rowsort label-8805
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) * - - col1 ) >= col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + + 59 * + + COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-8807
SELECT + + 59 * + + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
174

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 WHERE NOT - col2 / 51 * col2 * + col2 < col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col1 )
----

query I rowsort
SELECT ALL - ( + 63 ) FROM tab0 cor0
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT - - col1 * col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8811
SELECT - - col1 * col1 / + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + - col0 + + + 83 FROM tab0 AS cor0
----
-14
-4
68

query I rowsort
SELECT + col0 + + col0 * + 45 FROM tab2 AS cor0
----
2116
2944
3450

query I rowsort
SELECT ALL + 23 + col2 * - ( + 59 ) FROM tab2 AS cor0
----
-1334
-2337
-3399

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 96 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, - col2 * + + 95 + 75 AS col0 FROM tab1
----
14
-9045
47
-6385
5
-5530

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - 25 IN ( + col2 - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT ALL 3 FROM tab2 AS cor0 WHERE NOT ( 73 * + 44 ) NOT IN ( 97 + col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL 3 FROM tab2 AS cor0 WHERE NOT ( 73 * + 44 ) NOT IN ( 97 + col1 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - + col1 * col2 - - - 71 FROM tab2 AS cor0
----
-1244
-3151
-3957

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 89 * + 85 <> 31 * + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * 20 FROM tab1 AS cor0
----
1180
1360
1920

query I rowsort
SELECT + 48 - col1 FROM tab2 AS cor0
----
-19
-29
-3

query I rowsort
SELECT 63 - 90 AS col0 FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT + ( COUNT( * ) ) - - 9 AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8827
SELECT + ( COUNT ( * ) ) - - 9 AS col1 FROM tab1
----
12

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * - + 38 AS col2 FROM tab1
----
2242
2584
3648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8830
SELECT 95, 11 + + 38 - - CAST( NULL AS SIGNED ) + col2 col1 FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8830
SELECT 95, 11 + + 38 - - CAST ( NULL AS INTEGER ) + col2 col1 FROM tab2 AS cor0
----
95
NULL
95
NULL
95
NULL

query I rowsort
SELECT ALL + ( + - ( + 36 ) ) AS col1 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT col2 * col1 + + 69 AS col0 FROM tab2 AS cor0 WHERE col0 < col0 OR NOT NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT DISTINCT 40 AS col2, + COUNT( * ) * - + ( - 2 ) AS col1 FROM tab0 AS cor0
----
40
6

skipif mysql # not compatible
query II rowsort label-8833
SELECT DISTINCT 40 AS col2, + COUNT ( * ) * - + ( - 2 ) AS col1 FROM tab0 AS cor0
----
40
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT + ( + - 33 ) FROM tab2
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col2 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT + ( - 52 ) AS col0 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT 72 * - col2 AS col0 FROM tab1 AS cor0
----
-4248
-4896
-6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab0 cor0
----
51
51
51

query I rowsort
SELECT 97 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 48 ) NOT BETWEEN ( + col1 ) AND + col0 + + - 54 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8842
SELECT - CAST( NULL AS SIGNED ) * col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN 92 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT - CAST ( NULL AS INTEGER ) * col2 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN 92 AND NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT col2 * + - 2 * - + col0 * + col1 * col1 + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT 79 * col1 IS NULL
----
30356416
39054225
5503670

skipif mysql # not compatible
query I rowsort label-8843
SELECT col2 * + - 2 * - + col0 * + col1 * col1 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT 79 * col1 IS NULL
----
30356416
39054225
5503670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL - 3 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 1 + - col2 AND - + 41 - - CAST( 10 AS SIGNED ) * + 76
----

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - 3 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 1 + - col2 AND - + 41 - - CAST ( 10 AS INTEGER ) * + 76
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT ALL COUNT( * ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 83 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 83 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT COUNT( * ) + + 11 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-8846
SELECT COUNT ( * ) + + 11 FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT + ( - CAST( - col2 AS SIGNED ) ) + col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-8847
SELECT + ( - CAST ( - col2 AS INTEGER ) ) + col1 FROM tab1
----
110
115
64

query I rowsort
SELECT col2 * - col2 + 93 AS col0 FROM tab2
----
-1507
-3271
-436

query I rowsort
SELECT DISTINCT + - 31 * 65 + - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 24 + + - col0 * + col0 * - + col2 + - + col0 + + - col1 AS col0 FROM tab1
----
249607
426161
562946

query I rowsort
SELECT + 13 + - 33 AS col0 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT 55 + + + col2 FROM tab2
----
113
78
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT ALL + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - 88 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - 88 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + + col0, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 80 - - ( + 2 ) AND + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT DISTINCT - 20 * ( MIN( ALL - col2 ) ) + 40 FROM tab2 AS cor0 WHERE col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT - 20 * ( MIN ( ALL - col2 ) ) + 40 FROM tab2 AS cor0 WHERE col0 > NULL
----
NULL

query I rowsort
SELECT ALL 10 AS col1 FROM tab0 cor0
----
10
10
10

query I rowsort
SELECT col2 - - + col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8859
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + - 77 * - 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5467

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT + - COUNT( - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + - COUNT ( - col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 41 / ( col2 ) + + - col1 FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 * col2 + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col2 + col2
----

query I rowsort
SELECT ALL col2 + + col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT DISTINCT + 72 DIV col2 AS col0 FROM tab0 cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + 72 / col2 AS col0 FROM tab0 cor0
----
0
1
7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * + - 16 / - col0 - col2 < col0
----

query I rowsort
SELECT ALL 39 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + 56 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT - col2, col1 * col2 AS col0 FROM tab0
----
-10
210
-47
3807
-99
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + 68 IS NOT NULL
----

query II rowsort
SELECT ALL col1, + col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + SUM( - col2 ) * - 27 * - COUNT( * ) col2 FROM tab1
----
-18063

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8874
SELECT + SUM ( - col2 ) * - 27 * - COUNT ( * ) col2 FROM tab1
----
-18063

query I rowsort
SELECT DISTINCT col2 * + 28 FROM tab0
----
1316
2772
280

query I rowsort
SELECT ALL + col0 * 38 AS col1 FROM tab0
----
3306
3686
570

query II rowsort
SELECT col0 AS col1, ( + col0 ) FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2, 96 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT ALL - 84 * SUM( DISTINCT 80 ) * - 68 AS col1, + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
456960
8

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL - 84 * SUM ( DISTINCT 80 ) * - 68 AS col1, + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
456960
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT DISTINCT ( - col2 ) DIV + 95 + col2 AS col1 FROM tab0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT ( - col2 ) / + 95 + col2 AS col1 FROM tab0
----
10
47
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL COUNT( DISTINCT - - col2 ) * - + 47 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL COUNT ( DISTINCT - - col2 ) * - + 47 FROM tab0 AS cor0
----
-141

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL - - MIN( ALL 21 ) FROM tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - - MIN ( ALL 21 ) FROM tab2 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + - COUNT( DISTINCT + 80 ) + - 86 - + COUNT( * ) * + MIN( ALL - col1 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + - COUNT ( DISTINCT + 80 ) + - 86 - + COUNT ( * ) * + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 66 - - 87 + - - col2 * + col2 - - col1 / - col2 * - + 48 * - 59 * - + 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT + + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8886
SELECT + + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 * - + 93 + - col1 * col2 * + 81 * + - 40 + + col2 FROM tab0 AS cor0
----
12342260
320952
682363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col2 ) col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT - MIN( DISTINCT 7 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8889
SELECT - MIN ( DISTINCT 7 ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + 29 + - col1 FROM tab0 AS cor0
----
-52
28
8

query I rowsort
SELECT DISTINCT - col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT - + col2 AS col0, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8893
SELECT ALL - col0 + + col0 + col1 DIV col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - col0 + + col0 + col1 / col1 AS col0 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT DISTINCT + col0 * - col0 + + col1 * 86 DIV - col1 FROM tab1
----
-2687
-7311
-8367

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + col0 * - col0 + + col1 * 86 / - col1 FROM tab1
----
-2687
-7311
-8367

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT SUM( - 98 ) FROM tab2, tab1 AS cor0
----
-882

skipif mysql # not compatible
query I rowsort label-8895
SELECT SUM ( - 98 ) FROM tab2, tab1 AS cor0
----
-882

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8896
SELECT DISTINCT COUNT( * ) + + - 48, - CAST( NULL AS DECIMAL ) * 80 col2 FROM tab1
----
-45
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8896
SELECT DISTINCT COUNT ( * ) + + - 48, - CAST ( NULL AS REAL ) * 80 col2 FROM tab1
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8897
SELECT ALL * FROM tab2 WHERE NOT - CAST( + 98 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8897
SELECT ALL * FROM tab2 WHERE NOT - CAST ( + 98 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 * + - col0 col1 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT ALL 69 * 0 DIV - 2 - - 73 * col2 col1 FROM tab1
----
4307
4964
7008

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8899
SELECT ALL 69 * 0 / - 2 - - 73 * col2 col1 FROM tab1
----
4307
4964
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT - SUM( ALL col2 ) FROM tab1 WHERE NOT + + col0 >= 89 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab1 WHERE NOT + + col0 >= 89 / - col2
----
NULL

query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 - + 89 AS col1 FROM tab0
----
-42
-79
10

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT DISTINCT + 33 - ( - col1 ) FROM tab2 AS cor0
----
100
110
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8905
SELECT - + CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8905
SELECT - + CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * + col1 + + col0 FROM tab2 AS cor0 WHERE + col1 * + 1 * + + col2 BETWEEN + col2 AND - col2 + - col0
----

query I rowsort
SELECT ALL + + col1 - + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 - - 88 AS col1 FROM tab0 AS cor0
----
103
175
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col0 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT + + ( + 44 ) + + - 75 FROM tab0 cor0 WHERE NOT col1 + + - col0 NOT IN ( col2 + - col2, + col0 * + 51 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT col0 * ( col1 ) + - col2 * + col0 FROM tab0 AS cor0
----
-9506
510
957

query I rowsort
SELECT - 90 * + - col0 AS col1 FROM tab0 AS cor0
----
1350
7830
8730

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT col1 * 79 DIV + 3 col0 FROM tab1
----
1237
131
368

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8914
SELECT col1 * 79 / + 3 col0 FROM tab1
----
1237
131
368

query I rowsort
SELECT DISTINCT 63 * 84 FROM tab2
----
5292

query I rowsort
SELECT ALL 23 AS col1 FROM tab2 WHERE + col0 + + 46 IS NULL
----

query II rowsort
SELECT - + col2 AS col2, ( + col2 ) AS col0 FROM tab1 WHERE NOT NULL <> - + 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT DISTINCT 40 DIV col2 AS col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT 40 / col2 AS col0 FROM tab0
----
0
4

query I rowsort
SELECT ( - col0 ) * + 48 AS col2 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT + - 39 AS col0 FROM tab0 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 > + 97 - - - ( + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + + ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8922
SELECT + + ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 71 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT + col1 BETWEEN col1 AND - - col2
----
10
47

query I rowsort
SELECT + 42 + + - col1 FROM tab2 WHERE NOT NULL IN ( - 40, 9 )
----

query I rowsort
SELECT - 14 * + - 27 AS col2 FROM tab0
----
378
378
378

query II rowsort
SELECT col1, - col0 * - col0 * 83 FROM tab2
----
51
175628
67
466875
77
339968

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT + 78 AS col0, COUNT( * ) FROM tab0
----
78
3

skipif mysql # not compatible
query II rowsort label-8928
SELECT + 78 AS col0, COUNT ( * ) FROM tab0
----
78
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT DISTINCT CAST( - 30 AS SIGNED ) * - col1 + - + 91 FROM tab2
----
1439
1919
2219

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT CAST ( - 30 AS INTEGER ) * - col1 + - + 91 FROM tab2
----
1439
1919
2219

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 80 + + + col0 >= ( - + col2 )
----
64
77
40
75
67
58

query I rowsort
SELECT ALL ( 40 ) + - col0 FROM tab2
----
-24
-35
-6

query I rowsort
SELECT DISTINCT + col0 + + + col2 * col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT - col2 + + 25 FROM tab0
----
-22
-74
15

query I rowsort
SELECT ALL col2 + - col1 * col2 AS col2 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT ( - COUNT( DISTINCT 52 ) ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT DISTINCT ( - COUNT ( DISTINCT 52 ) ) col0 FROM tab0
----
-1

query II rowsort
SELECT ALL col1 AS col1, - col0 * + col2 FROM tab2
----
51
-1058
67
-4350
77
-2560

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT COUNT( * ) col1, - 70 * - MAX( col2 ) FROM tab0 WHERE ( NULL ) IN ( col1 + + ( + col2 ) )
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8937
SELECT COUNT ( * ) col1, - 70 * - MAX ( col2 ) FROM tab0 WHERE ( NULL ) IN ( col1 + + ( + col2 ) )
----
0
NULL

query I rowsort
SELECT ALL + ( + col0 ) + - - 61 * + + col0 AS col1 FROM tab2 AS cor0
----
2852
3968
4650

query I rowsort
SELECT - - 93 - col0 * - col1 AS col0 FROM tab0 cor0
----
1308
190
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT - 29 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) IS NULL
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 29 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) IS NULL
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL - col1 + - CAST( - - col1 AS SIGNED ) * - col0 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-18291
-57186
-9604

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - col1 + - CAST ( - - col1 AS INTEGER ) * - col0 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-18291
-57186
-9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL + - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT - COUNT( * ) * + - 60 AS col2 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8943
SELECT - COUNT ( * ) * + - 60 AS col2 FROM tab0 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT DISTINCT + COUNT( - + 17 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT + COUNT ( - + 17 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT COUNT( * ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT COUNT ( * ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + 61 AS col1 FROM tab1
----
3111
5185
5551

query II rowsort
SELECT ALL col1, 23 FROM tab1
----
14
23
47
23
5
23

query I rowsort
SELECT 20 * + + 89 AS col0 FROM tab1
----
1780
1780
1780

query II rowsort
SELECT ALL + col0, ( - - col2 ) AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT COUNT( ALL + 13 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8950
SELECT DISTINCT COUNT ( ALL + 13 ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8951
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - CAST( - col2 AS SIGNED ) - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8951
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - CAST ( - col2 AS INTEGER ) - col0 <= NULL
----

query II rowsort
SELECT - col1 AS col1, ( - 54 ) AS col2 FROM tab1 AS cor0
----
-14
-54
-47
-54
-5
-54

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT + 3 * + col1 - - col0 + col0 FROM tab1 AS cor0
----
144
185
323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL - + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 * - - col1 * + col0 - - - col0 * - - col2 - col2 + - - 94 AS col1 FROM tab2 AS cor0
----
194614
287136
52971

query I rowsort
SELECT ALL + col1 + - - col0 + - 21 * + col1 FROM tab2 AS cor0
----
-1265
-1476
-974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT - + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8958
SELECT - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT MAX( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8959
SELECT MAX ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL + - COUNT( * ) + - SUM( - col2 ) FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL + - COUNT ( * ) + - SUM ( - col2 ) FROM tab2 AS cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT SUM( DISTINCT + - 61 ) FROM tab1 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8961
SELECT SUM ( DISTINCT + - 61 ) FROM tab1 cor0
----
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + 81 + col2 FROM tab2
----
3749
5224
6133

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT MIN( - - col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT MIN ( - - col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + ( - col2 ) * col1 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL - + 60 * - ( - - 22 ) + + MIN( - 36 ) + - MAX( - - col2 ) FROM tab0 WHERE NOT 90 IS NULL
----
1185

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL - + 60 * - ( - - 22 ) + + MIN ( - 36 ) + - MAX ( - - col2 ) FROM tab0 WHERE NOT 90 IS NULL
----
1185

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8967
SELECT * FROM tab1 AS cor0 WHERE + 67 * 46 <> + col1 * - CAST( NULL AS DECIMAL ) + col0 - - - 48
----

skipif mysql # not compatible
query III rowsort label-8967
SELECT * FROM tab1 AS cor0 WHERE + 67 * 46 <> + col1 * - CAST ( NULL AS REAL ) + col0 - - - 48
----

query I rowsort
SELECT ALL col2 * + 95 FROM tab2 cor0
----
2185
3800
5510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 98 + 90 + col0 col0 FROM tab1 AS cor0
----
5957
6845
9549

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + SUM( DISTINCT + col0 ) + + 60 FROM tab2 cor0
----
245

skipif mysql # not compatible
query I rowsort label-8970
SELECT + SUM ( DISTINCT + col0 ) + + 60 FROM tab2 cor0
----
245

query I rowsort
SELECT + 99 + 31 AS col1 FROM tab1 AS cor0
----
130
130
130

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND + col1
----

query I rowsort
SELECT + - col1 * + 81 AS col2 FROM tab0 AS cor0
----
-1701
-6561
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - 45 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 64 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL MAX( ( - - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL MAX ( ( - - col0 ) ) FROM tab0
----
97

query I rowsort
SELECT ALL + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + + 47 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - - MAX( ALL + + 87 ) FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-8979
SELECT - - MAX ( ALL + + 87 ) FROM tab0 cor0
----
87

query I rowsort
SELECT - + 74 * + + 66 AS col2 FROM tab2 cor0
----
-4884
-4884
-4884

query II rowsort
SELECT ALL - col2 AS col2, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT + + col0 AS col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT + + 20 * + col1 FROM tab0 cor0
----
1620
20
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL COUNT( ALL + - col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL COUNT ( ALL + - col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL + col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN - CAST( + + 7 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN - CAST ( + + 7 AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 51 col0, + 47 FROM tab1 AS cor0
----
-51
47
-51
47
-51
47

query I rowsort
SELECT 51 * - col2 AS col2 FROM tab2 cor0
----
-1173
-2040
-2958

query I rowsort
SELECT + - 81 * col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

query I rowsort
SELECT 91 * - col0 - - + col0 * 69 - - ( col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 58 * + 39 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT DISTINCT MIN( DISTINCT + - col0 ) * + COUNT( * ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT MIN ( DISTINCT + - col0 ) * + COUNT ( * ) AS col1 FROM tab2
----
-225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8992
SELECT + col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT + col1 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + + col0 * col2 AS col1 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT ALL - 71 AS col0 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT + col1 + + - col0 + 90 * - col1 AS col2 FROM tab1
----
-1297
-4274
-530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT + 68 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 68 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + ( - 76 ) AS col0 FROM tab2 cor0
----
-116
-134
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL + - 70 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + - 70 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-73

query II rowsort
SELECT ALL 19 AS col2, 50 * + 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to b687f271a72bc8aca8a3209386071967

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT - MAX( - 14 ) * 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1204

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT - MAX ( - 14 ) * 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1204

query I rowsort
SELECT ALL 88 + - 11 + - - 42 AS col2 FROM tab0
----
119
119
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - 1 + + + ( - - SUM( DISTINCT + - 56 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 1 + + + ( - - SUM ( DISTINCT + - 56 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 66 * - - 22 FROM tab0
----
1452
1452
1452

query I rowsort
SELECT DISTINCT + 30 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
30

query I rowsort
SELECT 25 + - col2 AS col1 FROM tab2 AS cor0
----
-15
-33
2

query I rowsort
SELECT DISTINCT + + 18 * - 10 FROM tab1 AS cor0
----
-180

query I rowsort
SELECT + 32 + col1 AS col0 FROM tab1 AS cor0
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL MIN( + 21 ) FROM tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL MIN ( + 21 ) FROM tab2 cor0
----
21

query II rowsort
SELECT + - 46 + + + col2 * - - 40 AS col0, col0 AS col0 FROM tab0 AS cor0
----
1834
15
354
87
3914
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT - CAST( NULL AS SIGNED ) + + SUM( + 91 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT - CAST ( NULL AS INTEGER ) + + SUM ( + 91 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + 51 FROM tab0 AS cor0
----
1071
4131
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9013
SELECT * FROM tab1 AS cor0 WHERE + CAST( + 2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9013
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + 2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT 22 + col1 + col1, - 23 AS col2 FROM tab2 AS cor0
----
124
-23
156
-23
176
-23

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - + 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( col1 ) + - - 46 FROM tab2
----
-21
-31
-5

query I rowsort
SELECT DISTINCT col0 + - 15 AS col1 FROM tab0
----
0
72
82

query I rowsort
SELECT ALL col0 - 27 AS col2 FROM tab2
----
19
37
48

query II rowsort
SELECT ALL col2 * col1 AS col2, + col1 FROM tab1
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT COUNT( * ) * + 73 * - 43 AS col0 FROM tab1
----
-9417

skipif mysql # not compatible
query I rowsort label-9020
SELECT COUNT ( * ) * + 73 * - 43 AS col0 FROM tab1
----
-9417

query I rowsort
SELECT ALL + + 94 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * 50 * + 90 FROM tab0 AS cor0
----
-391500
-436500
-67500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9023
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) + + - 67
----

skipif mysql # not compatible
query III rowsort label-9023
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) + + - 67
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9024
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) IN ( + 35, 37 )
----

skipif mysql # not compatible
query III rowsort label-9024
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) IN ( + 35, 37 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 88 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * col0 * col0 AS col0 FROM tab1
----
132651
614125
753571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11 AS col1, col0 col1 FROM tab2
----
11
46
11
64
11
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT DISTINCT + + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT + + col2 / + col0 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9029
SELECT * FROM tab0 AS cor0 WHERE NOT 34 <= - CAST( + + 94 AS SIGNED ) * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9029
SELECT * FROM tab0 AS cor0 WHERE NOT 34 <= - CAST ( + + 94 AS INTEGER ) * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 19, - col1 * 76, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9031
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 13 NOT BETWEEN 95 AND - - col0
----

query I rowsort
SELECT + col1 * - + ( - ( + 15 ) ) + 46 AS col1 FROM tab1 AS cor0
----
121
256
751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, 94 col0 FROM tab2
----
46
94
64
94
75
94

query I rowsort
SELECT DISTINCT col1 * - 20 + - + 68 FROM tab1
----
-1008
-168
-348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT + CAST( NULL AS SIGNED ) * - 88 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT + CAST ( NULL AS INTEGER ) * - 88 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT CAST( NULL AS SIGNED ) / + - ( + 52 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT CAST ( NULL AS INTEGER ) / + - ( + 52 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col2 col0 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9039
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
9

query II rowsort
SELECT ALL + col1 AS col2, - col0 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9041
SELECT + MIN( ALL - col1 ) AS col0, + 7 * - + COUNT( - - 57 ) AS col1 FROM tab0
----
-81
-21

skipif mysql # not compatible
query II rowsort label-9041
SELECT + MIN ( ALL - col1 ) AS col0, + 7 * - + COUNT ( - - 57 ) AS col1 FROM tab0
----
-81
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-9042
SELECT DISTINCT + 40, + ( + ( col2 ) ) DIV + col2 AS col2 FROM tab2 AS cor0
----
40
1

skipif mysql # not compatible
query II rowsort label-9042
SELECT DISTINCT + 40, + ( + ( col2 ) ) / + col2 AS col2 FROM tab2 AS cor0
----
40
1

query I rowsort
SELECT ALL 40 AS col2 FROM tab0 cor0
----
40
40
40

query II rowsort
SELECT col1 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT DISTINCT + 43 * + 24 AS col1 FROM tab2
----
1032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col1 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9048
SELECT ALL + MIN( ALL - CAST( col2 AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + MIN ( ALL - CAST ( col2 AS REAL ) ) FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT + + MAX( ALL + - 64 ) * + COUNT( * ) * + 31 FROM tab2 cor0
----
-5952

skipif mysql # not compatible
query I rowsort label-9049
SELECT + + MAX ( ALL + - 64 ) * + COUNT ( * ) * + 31 FROM tab2 cor0
----
-5952

query I rowsort
SELECT - - col0 * 29 + + - 42 + + col1 FROM tab2 AS cor0
----
1343
1891
2200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9051
SELECT COUNT( * ) * - MAX( - CAST( NULL AS DECIMAL ) ) + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT COUNT ( * ) * - MAX ( - CAST ( NULL AS REAL ) ) + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-9052
SELECT + col0 DIV + col2, col1, - col0 col0 FROM tab2 AS cor0
----
9 values hashing to 0beeebec1849a6fba9c9603fc487a582

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9052
SELECT + col0 / + col2, col1, - col0 col0 FROM tab2 AS cor0
----
9 values hashing to 0beeebec1849a6fba9c9603fc487a582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT DISTINCT - CAST( + col1 AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + COUNT( * ) + + 95 * COUNT( * ) * + 98 + 84 + + 89 FROM tab0 AS cor0
----
28106

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + COUNT ( * ) + + 95 * COUNT ( * ) * + 98 + 84 + + 89 FROM tab0 AS cor0
----
28106

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 47 IS NULL
----

query I rowsort
SELECT ALL + col2 * - - 16 + - + col1 FROM tab1 AS cor0 WHERE NOT + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT - COUNT( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9057
SELECT - COUNT ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col1 - + 79 FROM tab2
----
-12
-2
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT ALL CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 15 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 88 - - 77 FROM tab0
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT ALL - 25 + - col1 DIV + 34 FROM tab1
----
-25
-25
-26

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL - 25 + - col1 / + 34 FROM tab1
----
-25
-25
-26

query I rowsort
SELECT DISTINCT - col2 + 12 FROM tab0
----
-35
-87
2

query I rowsort
SELECT - + col2 * + + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 / + + col0
----

query I rowsort
SELECT col1 * col1 * + col1 FROM tab2 AS cor0
----
132651
300763
456533

query I rowsort
SELECT ALL + col1 * - - col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - MAX( ( ( 55 ) ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-9067
SELECT - MAX ( ( ( 55 ) ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL MAX( + + 11 ) col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9068
SELECT ALL MAX ( + + 11 ) col0 FROM tab1 AS cor0
----
11

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 0 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9071
SELECT - COUNT( * ) * + + ( + CAST( - COUNT( * ) AS SIGNED ) ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT - COUNT ( * ) * + + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) col1 FROM tab0
----
9

query I rowsort
SELECT ALL 46 + - + 82 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + - col1 + - - ( - col1 ) )
----

query I rowsort
SELECT - col1 + + col1 + col2 AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT SUM( DISTINCT - 8 ) + SUM( ALL 23 ) * + - 90 + - 54 FROM tab1
----
-6272

skipif mysql # not compatible
query I rowsort label-9074
SELECT SUM ( DISTINCT - 8 ) + SUM ( ALL 23 ) * + - 90 + - 54 FROM tab1
----
-6272

query I rowsort
SELECT col1 * - col0 + - + col0 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT - 27 + + + col2 * - - 47 * 14 FROM tab2 AS cor0
----
15107
26293
38137

query I rowsort
SELECT DISTINCT - 97 + - col0 FROM tab1 AS cor0
----
-148
-182
-188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 14 ) col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT col2 - + - col2 AS col0 FROM tab1
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 33 - col0 col1 FROM tab0
----
-130
-2688
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + col1 * - col2 + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT - + 7 + + + col1 AS col2 FROM tab1 AS cor0
----
-2
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - - MAX( 39 ) + + - 66 * + + 38 FROM tab2 AS cor0
----
-2469

skipif mysql # not compatible
query I rowsort label-9084
SELECT - - MAX ( 39 ) + + - 66 * + + 38 FROM tab2 AS cor0
----
-2469

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE 19 < NULL
----

query II rowsort
SELECT DISTINCT + 94 + col2 AS col2, col0 * - 45 FROM tab1 AS cor0
----
153
-3825
162
-4095
190
-2295

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT - 0 DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 0 / + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + 98 AS col2 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT col1 * + 58 FROM tab1 AS cor0
----
2726
290
812

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 <= + col1 * 61 + col2
----

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9092
SELECT * FROM tab2 cor0 WHERE NOT col2 IN ( - col1 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9092
SELECT * FROM tab2 cor0 WHERE NOT col2 IN ( - col1 - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9093
SELECT ALL col2 DIV col0 * + col1, + col1 FROM tab1 cor0
----
0
47
0
5
14
14

skipif mysql # not compatible
query II rowsort label-9093
SELECT ALL col2 / col0 * + col1, + col1 FROM tab1 cor0
----
0
47
0
5
14
14

query II rowsort
SELECT - - 91, col1 AS col0 FROM tab1 AS cor0
----
91
14
91
47
91
5

query I rowsort
SELECT ALL - 4 AS col0 FROM tab0 AS cor0 WHERE - 73 * + - col0 BETWEEN NULL AND - - 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT ALL CAST( AVG ( ALL - col2 ) AS SIGNED ) FROM tab2 cor0 WHERE NULL NOT BETWEEN - 36 + - col1 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL CAST ( AVG ( ALL - col2 ) AS INTEGER ) FROM tab2 cor0 WHERE NULL NOT BETWEEN - 36 + - col1 AND + col2
----
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 * 64 + - - col0 AS col2 FROM tab1 AS cor0
----
-150
-2826
-794

query I rowsort
SELECT + 55 * 74 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
354090
394790
61050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9099
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - CAST( + 66 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9099
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - CAST ( + 66 AS INTEGER ) AND NULL
----

query II rowsort
SELECT DISTINCT + col1 * + col1 AS col2, ( - - col1 ) AS col0 FROM tab0
----
1
1
441
21
6561
81

query I rowsort
SELECT DISTINCT ( + - 89 ) + col1 FROM tab2
----
-12
-22
-38

query I rowsort
SELECT DISTINCT 90 * - - col0 FROM tab0
----
1350
7830
8730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9103
SELECT * FROM tab2 AS cor0 WHERE ( - col2 + + col1 * + CAST( + - col1 AS SIGNED ) * - col0 * + + col0 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9103
SELECT * FROM tab2 AS cor0 WHERE ( - col2 + + col1 * + CAST ( + - col1 AS INTEGER ) * - col0 * + + col0 IS NULL )
----

query I rowsort
SELECT + col2 * + col2 * - - col1 + - col0 + 96 + - + col2 * col0 FROM tab1 cor0
----
12401
124173
211145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9105
SELECT - CAST( NULL AS SIGNED ) + col1 AS col2, - col0 * + + col1 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-9105
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col2, - col0 * + + col1 AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - + col0 + + col1 * + col1 * col0 < - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT - COUNT( * ) DIV 83 + + 92 AS col2 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-9108
SELECT - COUNT ( * ) / 83 + + 92 AS col2 FROM tab1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9109
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 57 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9109
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 57 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col1 - - - 88
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9112
SELECT * FROM tab0 AS cor0 WHERE CAST( - 57 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9112
SELECT * FROM tab0 AS cor0 WHERE CAST ( - 57 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 90 ) AS col0 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT 7 - + 89 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL COUNT( * ) col0 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-9116
SELECT ALL COUNT ( * ) col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT ALL 19, col1 FROM tab2
----
19
51
19
67
19
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT MIN( DISTINCT - 28 ) AS col1 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT MIN ( DISTINCT - 28 ) AS col1 FROM tab2
----
-28

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( 89 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT 21 DIV + 62 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT 21 / + 62 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 + - + 46 + col0 AS col1 FROM tab1 AS cor0 WHERE 55 + + col0 / - col1 - + + 86 IS NULL
----

query I rowsort
SELECT 29 * - col0 - + col2 AS col2 FROM tab1 AS cor0
----
-1575
-2524
-2707

query II rowsort
SELECT DISTINCT + + col1 * + 84, + col2 + + - col1 AS col1 FROM tab2 AS cor0
----
4284
-28
5628
-9
6468
-37

query I rowsort
SELECT DISTINCT - 58 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT - col1 DIV 72 + + col2 AS col0 FROM tab2 AS cor0
----
23
39
58

skipif mysql # not compatible
query I rowsort label-9126
SELECT - col1 / 72 + + col2 AS col0 FROM tab2 AS cor0
----
23
39
58

query II rowsort
SELECT DISTINCT - ( + col2 ), - 12 * + - 68 AS col1 FROM tab1 AS cor0 WHERE - col1 + - + 34 IS NOT NULL
----
-59
816
-68
816
-96
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT + SUM( DISTINCT - ( + 89 ) ) DIV MIN( DISTINCT 70 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9128
SELECT + SUM ( DISTINCT - ( + 89 ) ) / MIN ( DISTINCT 70 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 6
----

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab0 cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT + MIN( - 30 ) * + + COUNT( + + col2 ) * - - 37 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT + MIN ( - 30 ) * + + COUNT ( + + col2 ) * - - 37 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9132
SELECT * FROM tab0 WHERE - col1 + - col1 + col0 IN ( 28, + 17 * 80 * col0 * - + col2 - + col0, + 69 - - ( CAST( NULL AS SIGNED ) ), col1 )
----

skipif mysql # not compatible
query III rowsort label-9132
SELECT * FROM tab0 WHERE - col1 + - col1 + col0 IN ( 28, + 17 * 80 * col0 * - + col2 - + col0, + 69 - - ( CAST ( NULL AS INTEGER ) ), col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL + COUNT( DISTINCT - 73 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9133
SELECT ALL + COUNT ( DISTINCT - 73 ) col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + 87 * + 25 col0, col2 * col0 FROM tab0
----
2185
870
2222
705
2274
9603

query I rowsort
SELECT DISTINCT 54 + - col2 + + 76 FROM tab2
----
107
72
90

query II rowsort
SELECT DISTINCT - col2 + + ( col2 ) AS col0, + col1 FROM tab2
----
0
51
0
67
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col2 FROM tab1
----
38

query I rowsort
SELECT col2 + - col0 * col2 * + - ( + - col0 ) * + - 58 FROM tab0
----
4390030
54026577
613397

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + MAX( DISTINCT - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9139
SELECT + MAX ( DISTINCT - col1 ) FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 + - col0 >= NULL
----

query I rowsort
SELECT col0 * + 4 FROM tab0 cor0
----
348
388
60

query II rowsort
SELECT - 45, col0 FROM tab0 AS cor0
----
-45
15
-45
87
-45
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT DISTINCT + col2 + - col0 DIV + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 56 NOT BETWEEN - 15 DIV - col0 AND ( + col0 ) * col1
----
2
47
6

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + col2 + - col0 / + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 56 NOT BETWEEN - 15 / - col0 AND ( + col0 ) * col1
----
2
47
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # DIV for integer division: 
query II rowsort label-9146
SELECT + col1 + + + 61 AS col2, col1 DIV - ( + + col1 ) + + + col0 FROM tab0
----
142
14
62
96
82
86

skipif mysql # not compatible
query II rowsort label-9146
SELECT + col1 + + + 61 AS col2, col1 / - ( + + col1 ) + + + col0 FROM tab0
----
142
14
62
96
82
86

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL + 93 + col1 + - col0 + - 84 FROM tab0
----
-57
-87
75

query I rowsort
SELECT - col1 * - - 94 + 17 FROM tab2
----
-4777
-6281
-7221

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - COUNT( * ) + 79 * + MIN( + ( 74 ) ) AS col1 FROM tab0 cor0
----
5843

skipif mysql # not compatible
query I rowsort label-9150
SELECT - COUNT ( * ) + 79 * + MIN ( + ( 74 ) ) AS col1 FROM tab0 cor0
----
5843

query I rowsort
SELECT ALL + - col0 * + col0 - - + col1 FROM tab1 cor0
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT - + 61 * + 19 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT - + 61 * + 19 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + - 41 * + - col2 FROM tab0 cor0
----
28905
35670
393723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT + + col0 * CAST( + ( - + 24 ) AS SIGNED ) + 15 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = 53 + + col0
----

skipif mysql # not compatible
query I rowsort label-9154
SELECT + + col0 * CAST ( + ( - + 24 ) AS INTEGER ) + 15 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = 53 + + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 < - - 59
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9158
SELECT col0, - 3 DIV + - CAST( - + CAST( + 30 AS SIGNED ) AS SIGNED ) + - - col0 * + - col2 AS col1 FROM tab1
----
51
-4896
85
-5015
91
-6188

skipif mysql # not compatible
query II rowsort label-9158
SELECT col0, - 3 / + - CAST ( - + CAST ( + 30 AS INTEGER ) AS INTEGER ) + - - col0 * + - col2 AS col1 FROM tab1
----
51
-4896
85
-5015
91
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - MAX( DISTINCT - + 17 ) AS col0 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-9159
SELECT - MAX ( DISTINCT - + 17 ) AS col0 FROM tab1
----
17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + 96 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL MAX( ALL 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL MAX ( ALL 26 ) FROM tab1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT + col1 * ( - + col1 ) DIV - + 86 col2 FROM tab1
----
0
2
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9162
SELECT + col1 * ( - + col1 ) / - + 86 col2 FROM tab1
----
0
2
25

query I rowsort
SELECT ALL + - ( + 79 ) AS col1 FROM tab1 AS cor0
----
-79
-79
-79

query II rowsort
SELECT col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT 93 + + col2 + + col1 AS col0 FROM tab1
----
157
203
208

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - 0 - - - col0 + + - 4 IS NOT NULL
----

query III rowsort
SELECT 68 AS col2, 48 * + 19 + - col2, + + col0 AS col2 FROM tab0
----
9 values hashing to e62b0b4519d315d27c3f46f42eec2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT + CAST( 98 AS SIGNED ) FROM tab1
----
98
98
98

skipif mysql # not compatible
query I rowsort label-9168
SELECT + CAST ( 98 AS INTEGER ) FROM tab1
----
98
98
98

query I rowsort
SELECT - col0 + - - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 78 + - col0 AS col0 FROM tab0
----
-19
-9
63

query I rowsort
SELECT 87 + + - col0 FROM tab1
----
-4
2
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT - - MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT - - MAX ( col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT col1 * 99 FROM tab1 AS cor0 WHERE NULL >= col1
----

query II rowsort
SELECT + col0 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9175
SELECT DISTINCT + col1 - 72 * + + CAST( NULL AS DECIMAL ), col1 FROM tab2 AS cor0 WHERE NOT + 56 >= - col0
----

skipif mysql # not compatible
query II rowsort label-9175
SELECT DISTINCT + col1 - 72 * + + CAST ( NULL AS REAL ), col1 FROM tab2 AS cor0 WHERE NOT + 56 >= - col0
----

query I rowsort
SELECT - col2 * - col2 * - + 87 AS col1 FROM tab2 AS cor0
----
-139200
-292668
-46023

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ALL COUNT( - 24 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL COUNT ( - 24 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col1 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND ( 24 )
----

query I rowsort
SELECT DISTINCT + 85 * col2 * - col1 + col0 AS col2 FROM tab1 cor0
----
-114189
-24990
-271569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col2 col1 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT col1 + + 6 AS col2 FROM tab0 AS cor0
----
27
7
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT CAST( + - 22 AS SIGNED ) FROM tab2
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-9183
SELECT CAST ( + - 22 AS INTEGER ) FROM tab2
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9184
SELECT - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2, + 68 AS col1 FROM tab1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-9184
SELECT - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2, + 68 AS col1 FROM tab1
----
NULL
68

query I rowsort
SELECT ALL 71 * - col1 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - + 36 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9186
SELECT - + 36 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT DISTINCT 11 + + - col0 + + 93 * + + 75 FROM tab2
----
6911
6922
6940

query I rowsort
SELECT DISTINCT + 76 + + + col0 FROM tab2
----
122
140
151

onlyif mysql # DIV for integer division: 
query II rowsort label-9189
SELECT DISTINCT col0, 49 DIV - - col1 FROM tab0
----
15
0
87
2
97
49

skipif mysql # not compatible
query II rowsort label-9189
SELECT DISTINCT col0, 49 / - - col1 FROM tab0
----
15
0
87
2
97
49

query I rowsort
SELECT ALL + col1 * col2 * - 27 AS col2 FROM tab0
----
-102789
-2673
-5670

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + - MAX( - 56 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9191
SELECT + - MAX ( - 56 ) FROM tab2 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9192
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - CAST( col2 AS SIGNED ) ) >= col1 * + + col0
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-9192
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - CAST ( col2 AS INTEGER ) ) >= col1 * + + col0
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT DISTINCT + 30 DIV - 89 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + 30 / - 89 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 1 * + - 52 FROM tab2 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT + COUNT( * ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9195
SELECT + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
3
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL - MIN( DISTINCT col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT - 97 DIV - - 29 AS col1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-9198
SELECT - 97 / - - 29 AS col1 FROM tab2
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * - col2 col1 FROM tab2
----
102400
24334
252300

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT col0 DIV - col1 AS col1 FROM tab0 WHERE NOT - col2 * + col0 BETWEEN - col2 AND NULL
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-9200
SELECT col0 / - col1 AS col1 FROM tab0 WHERE NOT - col2 * + col0 BETWEEN - col2 AND NULL
----
-4
-97
0

query I rowsort
SELECT - col2 * - ( + - 14 ) AS col2 FROM tab2
----
-322
-560
-812

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT ALL + ( col1 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL + ( col1 ) / + col0 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + - col1 + + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT + SUM( col0 ) + + ( 7 ) col1 FROM tab2
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9204
SELECT DISTINCT + SUM ( col0 ) + + ( 7 ) col1 FROM tab2
----
192

query I rowsort
SELECT ALL + col0 + - 64 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-13
21
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT 77 DIV col0 * - ( + + col0 ) * + + 85 AS col0 FROM tab1
----
-4335
0
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT 77 / col0 * - ( + + col0 ) * + + 85 AS col0 FROM tab1
----
-4335
0
0

query I rowsort
SELECT DISTINCT + 24 + col0 - col2 AS col2 FROM tab1
----
-21
47
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + + col1 col2 FROM tab2 AS cor0
----
149
165
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT MAX( ALL 86 ) + + SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9211
SELECT MAX ( ALL 86 ) + + SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT + col0 + 88 * - col0 FROM tab0 AS cor0
----
-1305
-7569
-8439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL + + CAST( - col1 AS SIGNED ) + - + col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + + CAST ( - col1 AS INTEGER ) + - + col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT DISTINCT - + ( + + COUNT( * ) ) DIV - 33 + + SUM( DISTINCT + 58 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT - + ( + + COUNT ( * ) ) / - 33 + + SUM ( DISTINCT + 58 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + 43 + col2 AS col1 FROM tab0 cor0
----
142
53
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT DISTINCT ( - col0 ) + - + ( - 50 ) DIV - + 23 AS col2 FROM tab1 AS cor0
----
-53
-87
-93

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT ( - col0 ) + - + ( - 50 ) / - + 23 AS col2 FROM tab1 AS cor0
----
-53
-87
-93

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + 27 + COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9218
SELECT + 27 + COUNT ( * ) FROM tab1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT ALL + CAST( + col0 AS SIGNED ) FROM tab0 WHERE + CAST( NULL AS SIGNED ) / + col0 * + 55 <> - col1
----

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + CAST ( + col0 AS INTEGER ) FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / + col0 * + 55 <> - col1
----

query I rowsort
SELECT DISTINCT col0 * - + 46 + + - col2 + - + col0 * + - col2 * - - 72 FROM tab2
----
181336
309692
74037

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col2 FROM tab0
----
34
34
34

query I rowsort
SELECT - 9 * + col1 FROM tab0
----
-189
-729
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9223
SELECT ALL MIN( ALL - 63 ) - - CAST( NULL AS DECIMAL ) + SUM( ALL 60 ) * + COUNT( + ( + col1 ) ) * - ( - 18 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL MIN ( ALL - 63 ) - - CAST ( NULL AS REAL ) + SUM ( ALL 60 ) * + COUNT ( + ( + col1 ) ) * - ( - 18 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col0 * - 71 AS col1 FROM tab2
----
-3266
-4544
-5325

onlyif mysql # DIV for integer division: 
query I rowsort label-9225
SELECT - 60 DIV + - 61 AS col2 FROM tab2 WHERE + col2 > col1 * - col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT - 60 / + - 61 AS col2 FROM tab2 WHERE + col2 > col1 * - col2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9226
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) > col2 + - 37
----

skipif mysql # not compatible
query III rowsort label-9226
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) > col2 + - 37
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9227
SELECT - 75 * + + COUNT( * ) AS col1, + 89 AS col0 FROM tab0
----
-225
89

skipif mysql # not compatible
query II rowsort label-9227
SELECT - 75 * + + COUNT ( * ) AS col1, + 89 AS col0 FROM tab0
----
-225
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9228
SELECT CAST( MIN( ALL - col0 ) AS SIGNED ), + COUNT( * ) AS col0 FROM tab0
----
-97
3

skipif mysql # not compatible
query II rowsort label-9228
SELECT CAST ( MIN ( ALL - col0 ) AS INTEGER ), + COUNT ( * ) AS col0 FROM tab0
----
-97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL + COUNT( * ) * - 40 AS col1 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + COUNT ( * ) * - 40 AS col1 FROM tab1
----
-120

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col2 FROM tab1 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT SUM( col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9232
SELECT SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + col2 + col2 * - ( + + col1 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL - 81 * + SUM( ALL + 71 ) AS col2 FROM tab2
----
-17253

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL - 81 * + SUM ( ALL + 71 ) AS col2 FROM tab2
----
-17253

query I rowsort
SELECT ALL - col0 * - 77 AS col2 FROM tab1
----
3927
6545
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT COUNT( ALL - 79 ) * - COUNT( * ) + - - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9237
SELECT COUNT ( ALL - 79 ) * - COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT - 87 * - + COUNT( * ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT - 87 * - + COUNT ( * ) FROM tab1
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 22 * - 84 col0 FROM tab2
----
-123816
-142296
-94248

query I rowsort
SELECT + col1 * + 34 AS col2 FROM tab1
----
1598
170
476

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL + 19 * + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + 19 * + COUNT ( * ) FROM tab2
----
57

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( - col2 * col0 )
----

query I rowsort
SELECT 47 FROM tab2 WHERE + col0 + - 52 * + col2 IN ( col2 * - col0 )
----

query I rowsort
SELECT ALL - col2 * + 63 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT 22 * + col1 FROM tab2
----
1122
1474
1694

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + col2 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * col2 col0 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT - ( + col0 ) DIV - col0 FROM tab0 WHERE col1 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9249
SELECT - ( + col0 ) / - col0 FROM tab0 WHERE col1 IS NOT NULL
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE + 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT + COUNT( + 85 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9252
SELECT + COUNT ( + 85 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT - MAX( + col2 ) DIV - ( + 68 + - COUNT( * ) ) - - ( 60 + + COUNT( * ) ) * 50 FROM tab0
----
3151

skipif mysql # not compatible
query I rowsort label-9253
SELECT - MAX ( + col2 ) / - ( + 68 + - COUNT ( * ) ) - - ( 60 + + COUNT ( * ) ) * 50 FROM tab0
----
3151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL + col2 / + col1 + - ( - col0 ) FROM tab0 WHERE NOT col0 NOT IN ( CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + col2 / + col1 + - ( - col0 ) FROM tab0 WHERE NOT col0 NOT IN ( CAST ( NULL AS INTEGER ) + - col0 )
----

query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 AS col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 FROM tab0 WHERE NOT + 86 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * 95 FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab2 WHERE ( NULL ) BETWEEN ( col2 * col0 + + col0 ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab2 WHERE ( NULL ) BETWEEN ( col2 * col0 + + col0 ) AND col0
----
NULL

query I rowsort
SELECT ALL 7 * col2 AS col0 FROM tab1
----
413
476
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT + 83 * + 57 + + CAST( col1 + 0 * - col1 AS SIGNED ) FROM tab2 WHERE ( NULL ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9260
SELECT + 83 * + 57 + + CAST ( col1 + 0 * - col1 AS INTEGER ) FROM tab2 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) < NULL
----
0

query I rowsort
SELECT - col1 * 33 + col2 AS col2 FROM tab2
----
-1660
-2153
-2501

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL COUNT( * ) + COUNT( DISTINCT 67 ) FROM tab0 WHERE - col1 NOT IN ( + col0 * col1 )
----
4

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL COUNT ( * ) + COUNT ( DISTINCT 67 ) FROM tab0 WHERE - col1 NOT IN ( + col0 * col1 )
----
4

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN col0 / - 22 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - col1 * - col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT col1 + 37 FROM tab2
----
104
114
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT 67 + - col1 DIV + col1 col0 FROM tab1
----
66
66
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9267
SELECT 67 + - col1 / + col1 col0 FROM tab1
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT ALL + CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT MAX( - col2 ) * 98 FROM tab0
----
-980

skipif mysql # not compatible
query I rowsort label-9269
SELECT MAX ( - col2 ) * 98 FROM tab0
----
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT ALL 45 DIV + ( - 63 ) + - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL 45 / + ( - 63 ) + - col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 18 * col1 AS col0 FROM tab2 cor0
----
-1206
-1386
-918

query I rowsort
SELECT + 85 * - col0 AS col0 FROM tab2 AS cor0
----
-3910
-5440
-6375

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 87 + col2 > ( + 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - ( - 10 ) > 3
----

query I rowsort
SELECT + 76 * 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 310e5c6a892c4c5c1d1b7b040393cb3d

query I rowsort
SELECT DISTINCT + col2 * + 45 FROM tab2
----
1035
1800
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9277
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - 4 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + COUNT( 59 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9279
SELECT + COUNT ( 59 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - COUNT( * ) * - 5 AS col1 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9280
SELECT - COUNT ( * ) * - 5 AS col1 FROM tab1 AS cor0
----
15

query I rowsort
SELECT - + 39 AS col2 FROM tab0 AS cor0
----
-39
-39
-39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 25 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 30 AS col2 FROM tab0 AS cor0 WHERE NOT 52 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( 20 ) ) > ( col0 * col0 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL - 71 * + ( - COUNT( * ) ) AS col2 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - 71 * + ( - COUNT ( * ) ) AS col2 FROM tab0
----
213

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 52
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( - 39 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9289
SELECT 47 + 72 - + col1 DIV CAST( + col0 AS SIGNED ) FROM tab1
----
119
119
119

skipif mysql # not compatible
query I rowsort label-9289
SELECT 47 + 72 - + col1 / CAST ( + col0 AS INTEGER ) FROM tab1
----
119
119
119

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 34 NOT IN ( col1 * + ( + col0 ) )
----

query I rowsort
SELECT ALL 95 * - - col1 FROM tab1
----
1330
4465
475

query I rowsort
SELECT 54 + - col2 AS col0 FROM tab2
----
-4
14
31

query I rowsort
SELECT DISTINCT - col1 * + + col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT 46 FROM tab2 WHERE NOT NULL NOT IN ( ( + col1 ) * - ( col2 ) )
----

query I rowsort
SELECT col1 + - - col0 AS col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT 23 * + + 83 + - COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
1900

skipif mysql # not compatible
query I rowsort label-9296
SELECT 23 * + + 83 + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
1900

onlyif mysql # DIV for integer division: 
query I rowsort label-9297
SELECT 25 DIV 74 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9297
SELECT 25 / 74 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col2 + - - 63 AS col1 FROM tab0 AS cor0
----
110
162
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9299
SELECT * FROM tab2 AS cor0 WHERE + ( + 59 ) * CAST( + col0 AS SIGNED ) - - 98 * + ( col2 + col2 ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9299
SELECT * FROM tab2 AS cor0 WHERE + ( + 59 ) * CAST ( + col0 AS INTEGER ) - - 98 * + ( col2 + col2 ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 - - + col1 FROM tab2
----
102
134
154

query I rowsort
SELECT col1 * - col0 + - 3 + + 59 AS col2 FROM tab2 AS cor0
----
-2290
-4872
-4969

query I rowsort
SELECT + ( + 29 ) * + + col1 + - col2 FROM tab2 AS cor0
----
1456
1885
2193

query II rowsort
SELECT DISTINCT + + col1 AS col1, 40 * col2 FROM tab0 AS cor0
----
1
3960
21
400
81
1880

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT - MIN( + col1 ) + + - ( 25 ) FROM tab2 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT - MIN ( + col1 ) + + - ( 25 ) FROM tab2 cor0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <= + col0 * col2
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + 41 AND ( - col0 / + ( 22 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9310
SELECT DISTINCT + 38 + + 20 - ( - 96 ) DIV MAX( ALL + col0 ) col0 FROM tab2
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9310
SELECT DISTINCT + 38 + + 20 - ( - 96 ) / MAX ( ALL + col0 ) col0 FROM tab2
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT IN ( col1 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col0 ) - col2 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT MIN( DISTINCT - col1 ) * 75 * 78 + - 69 col1 FROM tab2
----
-450519

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9313
SELECT DISTINCT MIN ( DISTINCT - col1 ) * 75 * 78 + - 69 col1 FROM tab2
----
-450519

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + + col2 + - 9 > ( - col0 )
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE - + col0 <> - col0
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT + 1 AS col2 FROM tab1 WHERE - - 40 IN ( - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= ( + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 * 94 + + 16 ) >= NULL
----

query II rowsort
SELECT + ( - - 94 ) AS col1, col2 * - col0 + 36 AS col2 FROM tab1 cor0
----
94
-4860
94
-4979
94
-6152

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + 57 ) * + ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 65 * col2 - - + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT + + MAX( ALL + col0 ) / - 10 AS col0 FROM tab1 AS cor0 WHERE ( 4 + + + 79 ) BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT + + MAX ( ALL + col0 ) / - 10 AS col0 FROM tab1 AS cor0 WHERE ( 4 + + + 79 ) BETWEEN col1 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9326
SELECT - CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 91
----

skipif mysql # not compatible
query I rowsort label-9326
SELECT - CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 91
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 24 + 4 FROM tab2 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) * 16 col2 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT DISTINCT - col1 DIV + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - col1 / + - col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9331
SELECT CAST( NULL AS SIGNED ), - MIN( DISTINCT - - 85 ) col1 FROM tab0
----
NULL
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9331
SELECT CAST ( NULL AS INTEGER ), - MIN ( DISTINCT - - 85 ) col1 FROM tab0
----
NULL
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT COUNT( * ) * - + COUNT( * ) * - 27 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-9332
SELECT COUNT ( * ) * - + COUNT ( * ) * - 27 FROM tab0
----
243

query I rowsort
SELECT ALL + col0 + - 94 AS col2 FROM tab1
----
-3
-43
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 * + col0 * col1 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT ( - SUM( ALL + col2 ) ) FROM tab2 WHERE NOT - col0 * - 93 * - 78 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT ( - SUM ( ALL + col2 ) ) FROM tab2 WHERE NOT - col0 * - 93 * - 78 <> ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 NOT BETWEEN + col1 AND col0
----

query I rowsort
SELECT + 86 + + + col0 FROM tab0 AS cor0
----
101
173
183

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 * + 61 / + 82 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9339
SELECT DISTINCT col0 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT 11 * + - col0 < 48 * col1 * col2 + + - CAST( 59 AS DECIMAL ) + + col1 + - CAST( NULL AS SIGNED ) * 79
----

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT col0 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT 11 * + - col0 < 48 * col1 * col2 + + - CAST ( 59 AS REAL ) + + col1 + - CAST ( NULL AS INTEGER ) * 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 22 col1 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL + 30 * - col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT col1 DIV + + col2 + - + col1 AS col0 FROM tab0 cor0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-9342
SELECT col1 / + + col2 + - + col1 AS col0 FROM tab0 cor0
----
-1
-19
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL - 91 + - 17 * - COUNT( * ) col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9343
SELECT ALL - 91 + - 17 * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT - 7 - col1 - + col1 AS col0 FROM tab0 AS cor0
----
-169
-49
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9345
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) NOT BETWEEN + col0 AND 83
----

skipif mysql # not compatible
query III rowsort label-9345
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS REAL ) ) NOT BETWEEN + col0 AND 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT - - col0 - col1 DIV + - col0 col2 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT - - col0 - col1 / + - col0 col2 FROM tab0 AS cor0
----
20
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * col2 IS NOT NULL
----

query I rowsort
SELECT + 57 AS col0 FROM tab2 cor0 WHERE + col0 * + 60 * + col1 NOT IN ( + + 95 )
----
57
57
57

query III rowsort
SELECT * FROM tab1 WHERE ( + ( + - col0 ) ) NOT IN ( col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( ( - col1 ) ) * - ( - col2 ) FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT - col0 FROM tab2 WHERE NULL <= ( + col0 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - col0 FROM tab2 WHERE NULL <= ( + col0 * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL + MAX( - col1 ) * + MAX( col0 ) AS col2 FROM tab1 WHERE - - col0 * + - col2 < + col0
----
-455

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + MAX ( - col1 ) * + MAX ( col0 ) AS col2 FROM tab1 WHERE - - col0 * + - col2 < + col0
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT - 98 AS col2, COUNT( * ) FROM tab0
----
-98
3

skipif mysql # not compatible
query II rowsort label-9354
SELECT - 98 AS col2, COUNT ( * ) FROM tab0
----
-98
3

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL OR NOT ( NULL ) < + col1 / + 66 * + 69 + - col2 * 53 + col1
----

query II rowsort
SELECT - 16, + col1 FROM tab1
----
-16
14
-16
47
-16
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, 13 col0 FROM tab2 AS cor0
----
-46
13
-64
13
-75
13

query I rowsort
SELECT DISTINCT - - 39 * + col2 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - 91 AS col2 FROM tab0
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * + 65 AS col2 FROM tab2
----
-2990
-4160
-4875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT + ( + COUNT( * ) ) DIV - 73 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT + ( + COUNT ( * ) ) / - 73 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9364
SELECT * FROM tab1 AS cor0 WHERE NOT ( 24 + - - ( + 0 ) + - col2 + - CAST( - col0 AS SIGNED ) + - + col0 ) > ( col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9364
SELECT * FROM tab1 AS cor0 WHERE NOT ( 24 + - - ( + 0 ) + - col2 + - CAST ( - col0 AS INTEGER ) + - + col0 ) > ( col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 98 AS col2 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT + ( + + 76 ) FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + col1 + col0 + + col1 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT + 7 / - CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT + 7 / - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + 1 IN ( + 21 + - - col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1, - col0 AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT ALL + col1 * col0 * - - col1 AS col0 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > col0 * col1 + - - col0
----

query II rowsort
SELECT DISTINCT col1 AS col2, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT 30 + col1 AS col1 FROM tab2 AS cor0
----
107
81
97

query I rowsort
SELECT ALL + 80 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT col0 * - 59 - + 88 FROM tab0
----
-5221
-5811
-973

query III rowsort
SELECT * FROM tab1 WHERE 30 > NULL
----

query I rowsort
SELECT col1 + 43 FROM tab1 AS cor0
----
48
57
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 29, + col2, - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT ALL 94 - + col1 DIV - - col1 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL 94 - + col1 / - - col1 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT - col2 * ( + 11 ) AS col0 FROM tab0 AS cor0 WHERE NOT 4 BETWEEN col0 * - + 79 * - - col1 + - 25 AND - ( + + col0 ) * 72 - - col1 - - col1
----
-1089
-110
-517

query I rowsort
SELECT + 85 * 69 * - col2 AS col2 FROM tab0 AS cor0
----
-275655
-580635
-58650

query II rowsort
SELECT DISTINCT - 50 * + + col1, col0 AS col0 FROM tab0 cor0
----
-1050
87
-4050
15
-50
97

query I rowsort
SELECT + - ( + - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT AVG ( + + col2 ) AS col0 FROM tab1 WHERE NOT ( 45 + 92 IS NOT NULL )
----
NULL

query I rowsort
SELECT ( col2 ) FROM tab0 WHERE NOT 27 + + col0 IS NULL
----
10
47
99

query I rowsort
SELECT ALL 8 * + + 44 * - + ( + col0 ) AS col0 FROM tab0
----
-30624
-34144
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + MAX( DISTINCT + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9389
SELECT + MAX ( DISTINCT + + col0 ) FROM tab0
----
97

query I rowsort
SELECT + ( + 73 ) FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query III rowsort
SELECT * FROM tab0 WHERE NOT 66 * - col0 IS NOT NULL
----

query I rowsort
SELECT ( - ( 90 ) ) FROM tab2
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9393
SELECT DISTINCT 75 * CAST( NULL AS SIGNED ) AS col1, 21 FROM tab0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-9393
SELECT DISTINCT 75 * CAST ( NULL AS INTEGER ) AS col1, 21 FROM tab0
----
NULL
21

query I rowsort
SELECT 25 * - col1 * - - ( col2 ) AS col2 FROM tab1
----
-33600
-7375
-79900

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + SUM( DISTINCT - 84 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9395
SELECT + SUM ( DISTINCT - 84 ) FROM tab0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9396
SELECT DISTINCT COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab1 WHERE col1 + col1 NOT BETWEEN - 96 * col1 AND + + CAST( NULL AS SIGNED ) + + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE col1 + col1 NOT BETWEEN - 96 * col1 AND + + CAST ( NULL AS INTEGER ) + + - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT ( + MAX( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT ( + MAX ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 81 * + col2 BETWEEN 10 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT COUNT( * ) * - - 15 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9399
SELECT COUNT ( * ) * - - 15 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9401
SELECT - CAST( + col0 AS DECIMAL ) AS col1, 73 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-9401
SELECT - CAST ( + col0 AS REAL ) AS col1, 73 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 0 - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col0 NOT BETWEEN - col0 AND + - col1 - col0
----

query II rowsort
SELECT DISTINCT - 36, - col0 AS col0 FROM tab1 AS cor0
----
-36
-51
-36
-85
-36
-91

query II rowsort
SELECT ALL - col2, ( col0 ) FROM tab1 cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - col2 * - - 5 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-295
-340
-480

query I rowsort
SELECT ALL col0 * col2 + + col0 - ( - col2 ) FROM tab2 AS cor0
----
1127
2664
4483

query I rowsort
SELECT - - 87 AS col1 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - + 30 + + + col2 FROM tab1 AS cor0
----
29
38
66

query I rowsort
SELECT ALL col1 + - 48 FROM tab0
----
-27
-47
33

query I rowsort
SELECT ALL + 12 FROM tab0 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - 22 + - col2 - + - 49 AS col1 FROM tab1 AS cor0
----
-32
-41
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT ALL MAX( 35 ) * + + 73 AS col1 FROM tab1 AS cor0
----
2555

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL MAX ( 35 ) * + + 73 AS col1 FROM tab1 AS cor0
----
2555

query I rowsort
SELECT - col1 + - - 83 FROM tab0 AS cor0
----
2
62
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 + + 42 col1 FROM tab1 cor0
----
2251
238
67

query I rowsort
SELECT DISTINCT - + 24 * + - col0 FROM tab0 AS cor0
----
2088
2328
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT - CAST( NULL AS SIGNED ) * + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9418
SELECT - CAST ( NULL AS INTEGER ) * + + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT ALL - ( col1 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - ( col1 ) / - col2 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - - col2 * + 6 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT - - col1 * - - col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 76 col0 FROM tab2 AS cor0
----
76

query I rowsort
SELECT - + col2 * + col1 * + col0 FROM tab2 cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + - 19 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + + 83 + col2, 40 + - col2 + + col1 )
----

query I rowsort
SELECT + 33 * + - 2 AS col0 FROM tab1
----
-66
-66
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + ( col0 ) FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL - 66 * COUNT( * ) col1 FROM tab1
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9428
SELECT ALL - 66 * COUNT ( * ) col1 FROM tab1
----
-198

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / col2 < - - 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT DISTINCT - col0 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - col0 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9431
SELECT ALL - COUNT( * ) * - MAX( DISTINCT CAST( CAST( + col1 AS DECIMAL ) AS SIGNED ) ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT CAST ( CAST ( + col1 AS REAL ) AS INTEGER ) ) AS col0 FROM tab0
----
243

query I rowsort
SELECT DISTINCT + 81 * - + 40 FROM tab0
----
-3240

query I rowsort
SELECT ALL col2 * + 87 FROM tab2
----
2001
3480
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9434
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9435
SELECT ( - COUNT( * ) ) * 64 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT ( - COUNT ( * ) ) * 64 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 75 col2 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL SUM( - 24 ) AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL SUM ( - 24 ) AS col2 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL - - ( - - 86 ) + + + SUM( 27 ) col1 FROM tab0 AS cor0
----
167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9438
SELECT ALL - - ( - - 86 ) + + + SUM ( 27 ) col1 FROM tab0 AS cor0
----
167

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - col2 + + 45 >= - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 > - col2 + - 89 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 34 * - - 88 * col2 + + col0 AS col0, - col0 FROM tab1
----
176613
-85
203547
-91
287283
-51

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE ( ( col0 * - 22 + col2 = NULL ) )
----

query I rowsort
SELECT 77 * col1 AS col2 FROM tab2
----
3927
5159
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT ALL COUNT( * ) * - 63 + 41 AS col2 FROM tab0
----
-148

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL COUNT ( * ) * - 63 + 41 AS col2 FROM tab0
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9446
SELECT ALL - 95 AS col2, SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-9446
SELECT ALL - 95 AS col2, SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
-95
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9447
SELECT - ( + + ( - CAST( NULL AS DECIMAL ) ) ) AS col0, col2 DIV - col2 AS col1 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-9447
SELECT - ( + + ( - CAST ( NULL AS REAL ) ) ) AS col0, col2 / - col2 AS col1 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT ALL - col2 - - - col1 + + - 1 + + CAST( NULL AS SIGNED ) - + + 83 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - col2 - - - col1 + + - 1 + + CAST ( NULL AS INTEGER ) - + + 83 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT col2 - + col1 DIV + 25 FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-9449
SELECT col2 - + col1 / + 25 FROM tab0
----
10
44
99

query I rowsort
SELECT col0 + + - ( ( 78 ) ) + + - 51 FROM tab2
----
-54
-65
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT COUNT( * ) * - ( + + COUNT( * ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9451
SELECT COUNT ( * ) * - ( + + COUNT ( * ) ) FROM tab1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - - MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9453
SELECT - - MAX ( col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 84 + + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 > + ( 63 ) * + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 > ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9458
SELECT ALL COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT - 82 * - col1 FROM tab2
----
4182
5494
6314

query I rowsort
SELECT DISTINCT - col0 * + - col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL + ( - + 46 ) * - - SUM( - - 31 ) AS col2 FROM tab0
----
-4278

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + ( - + 46 ) * - - SUM ( - - 31 ) AS col2 FROM tab0
----
-4278

query I rowsort
SELECT + 48 * - col1 FROM tab0
----
-1008
-3888
-48

query I rowsort
SELECT + ( + 51 ) AS col0 FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9464
SELECT DISTINCT COUNT( * ) AS col1, 72 AS col2 FROM tab0
----
3
72

skipif mysql # not compatible
query II rowsort label-9464
SELECT DISTINCT COUNT ( * ) AS col1, 72 AS col2 FROM tab0
----
3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL 67 * + COUNT( DISTINCT - - col1 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL 67 * + COUNT ( DISTINCT - - col1 ) FROM tab2
----
201

query II rowsort
SELECT DISTINCT - 9, - col0 AS col1 FROM tab1
----
-9
-51
-9
-85
-9
-91

query I rowsort
SELECT ALL 94 * - - 86 * + + 2 AS col1 FROM tab1
----
16168
16168
16168

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + col0 * + col2 * - - 12 AS col2 FROM tab1 cor0
----
58752
60180
74256

query I rowsort
SELECT DISTINCT - + 16 + - col0 AS col2 FROM tab0 AS cor0
----
-103
-113
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + COUNT( ALL + col1 ) + + ( - 33 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-9473
SELECT + COUNT ( ALL + col1 ) + + ( - 33 ) FROM tab1
----
-30

query I rowsort
SELECT col0 * + 42 + - 36 AS col1 FROM tab0
----
3618
4038
594

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT + MIN( DISTINCT + col1 ) * + 30 FROM tab2
----
1530

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + MIN ( DISTINCT + col1 ) * + 30 FROM tab2
----
1530

onlyif mysql # aggregate syntax: 
query II rowsort label-9476
SELECT ALL - COUNT( * ) AS col0, ( + COUNT( * ) ) FROM tab1 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9476
SELECT ALL - COUNT ( * ) AS col0, ( + COUNT ( * ) ) FROM tab1 cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL CAST( 21 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL CAST ( 21 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT + ( + col0 ) * 8 * - col2 - + col1 + - ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE - col2 <= NULL
----

query II rowsort
SELECT + 79, + col1 AS col0 FROM tab2 AS cor0
----
79
51
79
67
79
77

query I rowsort
SELECT ALL - col0 * - - 67 * col2 FROM tab2 AS cor0
----
-171520
-291450
-70886

onlyif mysql # DIV for integer division: 
query II rowsort label-9481
SELECT - + col0 DIV - col1 AS col2, 88 - col1 FROM tab0 AS cor0
----
0
7
4
67
97
87

skipif mysql # not compatible
query II rowsort label-9481
SELECT - + col0 / - col1 AS col2, 88 - col1 FROM tab0 AS cor0
----
0
7
4
67
97
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT ALL - - col2 + + CAST( + + 58 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
117
126
154

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - - col2 + + CAST ( + + 58 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
117
126
154

query I rowsort
SELECT DISTINCT - - col2 * + 41 AS col2 FROM tab2 AS cor0
----
1640
2378
943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + - 80, 75 AS col2 FROM tab0 AS cor0
----
-80
75
-80
75
-80
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9486
SELECT * FROM tab1 AS cor0 WHERE 68 - - - 37 IN ( - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9486
SELECT * FROM tab1 AS cor0 WHERE 68 - - - 37 IN ( - CAST ( + col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + 53 - + - SUM( - 14 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 53 - + - SUM ( - 14 ) FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL - COUNT( * ) + - + MAX( ALL + col0 ) * - ( - - 53 ) FROM tab2
----
3972

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - COUNT ( * ) + - + MAX ( ALL + col0 ) * - ( - - 53 ) FROM tab2
----
3972

query I rowsort
SELECT ALL - col0 + - 48 AS col2 FROM tab1
----
-133
-139
-99

query II rowsort
SELECT col0 + - col2 AS col0, - col0 AS col1 FROM tab0
----
-2
-97
-32
-15
77
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT 46 + + col0 DIV + 12 FROM tab2
----
49
51
52

skipif mysql # not compatible
query I rowsort label-9491
SELECT 46 + + col0 / + 12 FROM tab2
----
49
51
52

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( + col1 + - + col0 ) AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT col2 DIV col2 + + col0 col1 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9494
SELECT col2 / col2 + + col0 col1 FROM tab0 AS cor0
----
16
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 82 col1 FROM tab1 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col1 * col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 * col0 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + 83 + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
36
69
78

query I rowsort
SELECT DISTINCT 32 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
32

query I rowsort
SELECT 31 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9501
SELECT - + col2, - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

skipif mysql # not compatible
query II rowsort label-9501
SELECT - + col2, - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9503
SELECT - + col1 * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT - + col1 * + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9504
SELECT * FROM tab1 cor0 WHERE NOT 35 NOT BETWEEN + CAST( NULL AS SIGNED ) + col2 AND + + 32
----

skipif mysql # not compatible
query III rowsort label-9504
SELECT * FROM tab1 cor0 WHERE NOT 35 NOT BETWEEN + CAST ( NULL AS INTEGER ) + col2 AND + + 32
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 43 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 60 col2, - 51 AS col1 FROM tab2 cor0
----
-60
-51
-60
-51
-60
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-9507
SELECT + col1 DIV 57 + ( + - col1 ), + col1 * + + 6 col0 FROM tab0 AS cor0
----
-1
6
-21
126
-80
486

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9507
SELECT + col1 / 57 + ( + - col1 ), + col1 * + + 6 col0 FROM tab0 AS cor0
----
-1
6
-21
126
-80
486

query I rowsort
SELECT - col1 * col0 * - col2 FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - - col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 43 * - 10 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL IN ( + 9, + 73 * + CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL IN ( + 9, + 73 * + CAST ( NULL AS INTEGER ) + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9512
SELECT + COUNT( * ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT + COUNT ( * ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + col1 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( ( col1 * + col1 = NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col1 AS col0 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL - SUM( - 35 ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - SUM ( - 35 ) FROM tab1
----
105

query I rowsort
SELECT ALL - 47 * col0 + col1 FROM tab1 AS cor0
----
-2383
-3990
-4230

query I rowsort
SELECT ALL 44 + 88 + - - 76 AS col2 FROM tab1 cor0
----
208
208
208

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - + 37 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - + 37 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-46

query I rowsort
SELECT DISTINCT + ( - 2 ) AS col2 FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col2 FROM tab2 WHERE NULL IS NULL
----
65

query I rowsort
SELECT ALL 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 * + col0 + + 90 col2, + col1 FROM tab2 AS cor0
----
1148
51
2650
77
4440
67

query II rowsort
SELECT + + ( - 24 ) + + col0, - col1 AS col0 FROM tab0 cor0
----
-9
-81
63
-21
73
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT DISTINCT COUNT( ALL + - 7 ) col0 FROM tab0 cor0 WHERE NOT ( NOT + 80 IS NOT NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9525
SELECT DISTINCT COUNT ( ALL + - 7 ) col0 FROM tab0 cor0 WHERE NOT ( NOT + 80 IS NOT NULL )
----
3

query I rowsort
SELECT + - 69 + + 40 AS col2 FROM tab1 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( - 8 + - + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 8 + - + col2 IS NOT NULL )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, col2, - 85, + + 11, + col2 + col0 + + - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - col1 ) * ( + col2 )
----

query II rowsort
SELECT + col0, ( - - 47 ) * + - col1 * 56 AS col2 FROM tab1
----
51
-36848
85
-13160
91
-123704

query III rowsort
SELECT * FROM tab0 WHERE 73 + ( - - 33 ) IN ( + col2, 78 )
----

query I rowsort
SELECT DISTINCT - 38 - ( - 2 ) AS col2 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL + COUNT( * ) + + - 31 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL + COUNT ( * ) + + - 31 FROM tab0
----
-28

query I rowsort
SELECT ALL - col0 - - 82 FROM tab2
----
18
36
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + col0 * - col0 - + col2 + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 * - col0 - + col2 + + col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT SUM( DISTINCT + col2 ) * 56 FROM tab1
----
12488

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT SUM ( DISTINCT + col2 ) * 56 FROM tab1
----
12488

query II rowsort
SELECT + 17, 51 * - ( + + 47 ) * + col0 + - col1 AS col0 FROM tab1
----
17
-122261
17
-203750
17
-218174

query II rowsort
SELECT + col0 AS col1, 83 FROM tab2
----
46
83
64
83
75
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT DISTINCT + 11 - + + CAST( NULL AS SIGNED ) + col2 + - col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + 11 - + + CAST ( NULL AS INTEGER ) + col2 + - col2 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT 40, + col2 FROM tab1
----
40
59
40
68
40
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT + - 49 AS col1 FROM tab2 WHERE NOT + ( col1 ) / - col2 * + CAST( NULL AS SIGNED ) + - ( - ( - col1 ) ) + - 46 * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9543
SELECT + - 49 AS col1 FROM tab2 WHERE NOT + ( col1 ) / - col2 * + CAST ( NULL AS INTEGER ) + - ( - ( - col1 ) ) + - 46 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col1 <= NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + MAX( ALL 9 ) FROM tab0 AS cor0 WHERE NOT ( + 65 ) BETWEEN - 41 + - col2 AND ( col1 + - + col1 )
----
9

skipif mysql # not compatible
query I rowsort label-9546
SELECT + MAX ( ALL 9 ) FROM tab0 AS cor0 WHERE NOT ( + 65 ) BETWEEN - 41 + - col2 AND ( col1 + - + col1 )
----
9

query II rowsort
SELECT - col0 * - + col1 AS col0, - col1 FROM tab2 AS cor0
----
2346
-51
4928
-77
5025
-67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 4 + - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < 83
----

query I rowsort
SELECT ALL - col0 + + col0 + - ( - 35 ) AS col1 FROM tab0
----
35
35
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9551
SELECT DISTINCT 84 col0, + ( - COUNT( * ) ) FROM tab2
----
84
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9551
SELECT DISTINCT 84 col0, + ( - COUNT ( * ) ) FROM tab2
----
84
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9552
SELECT - 63 col2, - 68 DIV col1 * 59 AS col1 FROM tab2
----
-63
-59
-63
-59
-63
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9552
SELECT - 63 col2, - 68 / col1 * 59 AS col1 FROM tab2
----
-63
-59
-63
-59
-63
0

query II rowsort
SELECT ALL col2, col1 - + - 9 AS col2 FROM tab1
----
59
14
68
56
96
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT DISTINCT - 43 AS col1, + MIN( + - col0 ) + + 84 AS col1 FROM tab0 WHERE NOT - + col2 * 84 + 67 IS NULL
----
-43
-13

skipif mysql # not compatible
query II rowsort label-9554
SELECT DISTINCT - 43 AS col1, + MIN ( + - col0 ) + + 84 AS col1 FROM tab0 WHERE NOT - + col2 * 84 + 67 IS NULL
----
-43
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT + 77 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + 77 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT + 41 + + col2 AS col0 FROM tab1 AS cor0
----
100
109
137

query II rowsort
SELECT col1 + - ( - col0 ) AS col1, - 38 + + col0 FROM tab0 AS cor0
----
108
49
96
-23
98
59

query I rowsort
SELECT 59 * + col2 + + col1 + 93 * col1 FROM tab0
----
10387
2564
5935

query I rowsort
SELECT - - col2 * + - col2 - + + col0 FROM tab2 WHERE NULL = 78 OR NOT + col1 = NULL
----

query I rowsort
SELECT col0 * - col1 * col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( - + 81 ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 * 41 + - 4 FROM tab2 AS cor0
----
-1890
-2628
-3079

query I rowsort
SELECT ALL + col1 + - 76 + + col0 AS col1 FROM tab1 AS cor0
----
-11
14
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT + col2 DIV col2 * - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9564
SELECT + col2 / col2 * - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - - 76 + - col0 AS col0 FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT ALL - ( + col1 ) * col2 DIV + col2 + + ( - col0 ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL - ( + col1 ) * col2 / + col2 + + ( - col0 ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT ( 2 ) DIV + 96 - col2 * - + 76 AS col0 FROM tab1
----
4484
5168
7296

skipif mysql # not compatible
query I rowsort label-9568
SELECT ( 2 ) / + 96 - col2 * - + 76 AS col0 FROM tab1
----
4484
5168
7296

query II rowsort
SELECT 49 - - + ( + col0 ) * + ( + - 63 ), - col2 + + + col0 AS col2 FROM tab0
----
-5432
77
-6062
-2
-896
-32

query I rowsort
SELECT 22 * + col1 * - col1 + + + col2 FROM tab1
----
-4216
-48530
-491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - - col0 col1 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9572
SELECT ALL + 50 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) + + CAST( - 73 AS SIGNED ) AS col2 FROM tab0
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-9572
SELECT ALL + 50 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + + CAST ( - 73 AS INTEGER ) AS col2 FROM tab0
----
NULL
-70

query III rowsort
SELECT * FROM tab2 WHERE - 2 - + 96 * - col0 >= NULL
----

query I rowsort
SELECT ALL - + 67 + 92 FROM tab1 AS cor0 WHERE NOT + 18 + 69 + - - col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * 41 col0 FROM tab2 AS cor0
----
328
328
328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT DISTINCT CAST( - CAST( + + 10 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT CAST ( - CAST ( + + 10 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
-10

query I rowsort
SELECT ALL + 5 * - col2 FROM tab1
----
-295
-340
-480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - 11 + 69 <> ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT DISTINCT - 2 col2, - 77 + - SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-2
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9579
SELECT DISTINCT - 2 col2, - 77 + - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-2
44

query I rowsort
SELECT 57 / - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + col0 * + 15
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT SUM( + ( - col0 ) ) AS col0 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9582
SELECT SUM ( + ( - col0 ) ) AS col0 FROM tab0 cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT ALL - col2 DIV - col1 + - col0 col0 FROM tab1 AS cor0
----
-45
-74
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9583
SELECT ALL - col2 / - col1 + - col0 col0 FROM tab1 AS cor0
----
-45
-74
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT DISTINCT COUNT( * ) DIV - 73 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT COUNT ( * ) / - 73 AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col1, col1 + - ( + 69 ) FROM tab2 cor0
----
51
-18
67
-2
77
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9586
SELECT col2 * - ( + ( - CAST( + 9 AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
531
612
864

skipif mysql # not compatible
query I rowsort label-9586
SELECT col2 * - ( + ( - CAST ( + 9 AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
531
612
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab1
----
86
86
86

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - - col2 / col0 * - + 5 + - 14 IS NULL
----
59
68
96

query I rowsort
SELECT ALL - 62 * - col2 * - 28 + - 35 AS col1 FROM tab0
----
-171899
-17395
-81627

query I rowsort
SELECT + ( - col1 ) + col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL COUNT( * ) * - MIN( DISTINCT col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT col0 ) FROM tab2
----
-138

query I rowsort
SELECT + ( ( ( - - col2 ) ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + MIN( + + 14 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9593
SELECT + MIN ( + + 14 ) FROM tab1 AS cor0
----
14

query III rowsort
SELECT * FROM tab2 cor0 WHERE 26 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 44 AS col1 FROM tab0 AS cor0 WHERE - col0 * col0 IS NULL
----

query I rowsort
SELECT - 57 - + col0 FROM tab2
----
-103
-121
-132

query I rowsort
SELECT col0 + + 6 FROM tab1
----
57
91
97

query I rowsort
SELECT 92 * - 54 + 42 AS col0 FROM tab0
----
-4926
-4926
-4926

query I rowsort
SELECT - col0 + 91 AS col0 FROM tab1 AS cor0
----
0
40
6

query I rowsort
SELECT + col2 + + + ( + col2 ) FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + col2 * - ( + 6 ) AS col2 FROM tab2
----
-15360
-26100
-6348

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( + ( - col2 ) ) - + + ( - + 25 ) <= 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT SUM( ALL - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9605
SELECT SUM ( ALL - - col0 ) FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 42 col1 FROM tab0
----
-3402
-42
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * 84 - + + col2 + + 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND + + 91
----

query II rowsort
SELECT DISTINCT - 93, col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 13 * - 67 * - - 19 * - col2 + - col0 IS NULL
----
-93
59
-93
68
-93
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9611
SELECT + + CAST( NULL AS SIGNED ) + + - 10 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT + + CAST ( NULL AS INTEGER ) + + - 10 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) + - CAST ( NULL AS REAL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9612
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - ( - + 10 ) * + COUNT( * ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9614
SELECT - ( - + 10 ) * + COUNT ( * ) AS col0 FROM tab0
----
30

query I rowsort
SELECT - col0 * + 85 AS col2 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT ALL - 5 DIV - col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9616
SELECT ALL - 5 / - col1 col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT DISTINCT - 12 DIV + - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT - 12 / + - col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 60 * 8 FROM tab0 AS cor0
----
480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 65 / + + col2 >= NULL
----

query I rowsort
SELECT + ( - + 40 ) AS col2 FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT col0 FROM tab2 AS cor0 WHERE NULL > CAST( 50 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9621
SELECT col0 FROM tab2 AS cor0 WHERE NULL > CAST ( 50 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * + col1 * + col0 + - 20 + 79 AS col2 FROM tab2
----
119705
336734
379515

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT + MAX( DISTINCT - - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9623
SELECT + MAX ( DISTINCT - - col0 ) FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND 5 + 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, 96 col0 FROM tab1
----
14
96
47
96
5
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT ALL 9 DIV - col1 FROM tab0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL 9 / - col1 FROM tab0
----
-9
0
0

query II rowsort
SELECT DISTINCT - col2, - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-59
-64
-68
-115
-96
-110

query II rowsort
SELECT ALL - col0 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - COUNT( * ) + + MIN( DISTINCT col0 ) FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-9629
SELECT - COUNT ( * ) + + MIN ( DISTINCT col0 ) FROM tab1 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT 81 + + COUNT( * ) * - - COUNT( * ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT 81 + + COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
90

query I rowsort
SELECT ALL - col2 + + 24 * col0 AS col2 FROM tab2
----
1081
1496
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL + + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9632
SELECT ALL + + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + + 4 * - col1 - + 93 AS col2 FROM tab0 AS cor0
----
-177
-417
-97

query I rowsort
SELECT + col1 - + + col2 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - col0 * - 3 - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + COUNT( * ) * + 63 AS col2 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9636
SELECT + COUNT ( * ) * + 63 AS col2 FROM tab0 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT + COUNT( * ) * 71 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
213

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + COUNT ( * ) * 71 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
213

query I rowsort
SELECT + + 32 AS col0 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT - 18 * - 78 AS col1 FROM tab1 AS cor0
----
1404
1404
1404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9640
SELECT - 22 DIV - 82 + + COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9640
SELECT - 22 / - 82 + + COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL - MIN( - 50 ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - MIN ( - 50 ) AS col2 FROM tab1
----
50

query I rowsort
SELECT + + 34 FROM tab0 WHERE NOT NULL <= + 48 * - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2, col2, + - col2 * - col2 + ( - 56 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT MAX( + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-9645
SELECT MAX ( + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
81

query I rowsort
SELECT DISTINCT + 5 * col1 FROM tab2
----
255
335
385

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 6 - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col2 FROM tab1
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - - MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9649
SELECT - - MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT - - col1 AS col2, 53 * + + 8 FROM tab0 AS cor0
----
1
424
21
424
81
424

query I rowsort
SELECT + 97 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
1455
8439
9409

query II rowsort
SELECT DISTINCT + - 73, col2 FROM tab0 AS cor0
----
-73
10
-73
47
-73
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9653
SELECT * FROM tab1 WHERE NOT + 93 * col2 - - + CAST( NULL AS SIGNED ) + - - col0 IN ( - col2, col0 * - col2 + + + col0 + col1 )
----

skipif mysql # not compatible
query III rowsort label-9653
SELECT * FROM tab1 WHERE NOT + 93 * col2 - - + CAST ( NULL AS INTEGER ) + - - col0 IN ( - col2, col0 * - col2 + + + col0 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - 78 * + COUNT( * ) AS col2 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - 78 * + COUNT ( * ) AS col2 FROM tab2
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT - 72 DIV - 95 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT - 72 / - 95 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT - MIN( col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9656
SELECT - MIN ( col1 ) col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( - + ( - + col0 ) ) * - 60 + + col0 AS col0 FROM tab2 AS cor0
----
2806
3904
4575

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT - col1 DIV 31 * + - col0 * + col1 - - - 88 + col2 FROM tab1 AS cor0
----
-29
4257
8

skipif mysql # not compatible
query I rowsort label-9659
SELECT - col1 / 31 * + - col0 * + col1 - - - 88 + col2 FROM tab1 AS cor0
----
-29
4257
8

query I rowsort
SELECT ALL + + 13 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
13
13
13

onlyif mysql # DIV for integer division: 
query II rowsort label-9661
SELECT - + col0 + + col0 AS col2, col1 DIV 32 FROM tab0 AS cor0
----
0
0
0
0
0
2

skipif mysql # not compatible
query II rowsort label-9661
SELECT - + col0 + + col0 AS col2, col1 / 32 FROM tab0 AS cor0
----
0
0
0
0
0
2

query I rowsort
SELECT DISTINCT col0 * - 54 + col0 + + col2 AS col1 FROM tab0
----
-4601
-5042
-748

query I rowsort
SELECT - col2 * 84 + - col0 FROM tab0 WHERE 60 * - ( 72 ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ( + 34 ) + - 47 * - COUNT( * ) AS col2 FROM tab1
----
175

skipif mysql # not compatible
query I rowsort label-9664
SELECT ( + 34 ) + - 47 * - COUNT ( * ) AS col2 FROM tab1
----
175

query I rowsort
SELECT - 79 * + + 18 * + - 93 AS col2 FROM tab0
----
132246
132246
132246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT + CAST( NULL AS SIGNED ) * + + col1 * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT + CAST ( NULL AS INTEGER ) * + + col1 * - - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT - COUNT( * ) * - CAST( 1 AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9667
SELECT - COUNT ( * ) * - CAST ( 1 AS INTEGER ) FROM tab1
----
3

query II rowsort
SELECT - col0 AS col2, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 85 + + 94 / + + col0 ) <> col2
----

query I rowsort
SELECT ALL 74 + 51 AS col1 FROM tab0 AS cor0
----
125
125
125

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT - ( - 52 ) * COUNT( * ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT - ( - 52 ) * COUNT ( * ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT - ( 1 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9675
SELECT DISTINCT col0 AS col0, - 5 / - CAST( NULL AS SIGNED ) * - + 99 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9675
SELECT DISTINCT col0 AS col0, - 5 / - CAST ( NULL AS INTEGER ) * - + 99 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT ALL - CAST( 60 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL - CAST ( 60 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT 76 * 55 AS col1 FROM tab2 cor0
----
4180
4180
4180

query I rowsort
SELECT col1 * - col1 * - 51 FROM tab2
----
132651
228939
302379

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT - MIN( 47 ) AS col2 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-9680
SELECT - MIN ( 47 ) AS col2 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9681
SELECT + MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT CAST( - ( + ( col2 ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9682
SELECT CAST ( - ( + ( col2 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT - COUNT( ALL col1 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9683
SELECT - COUNT ( ALL col1 ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL + COUNT( * ) * SUM( ALL col0 ) * - ( - 87 ) AS col1 FROM tab1 AS cor0
----
59247

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + COUNT ( * ) * SUM ( ALL col0 ) * - ( - 87 ) AS col1 FROM tab1 AS cor0
----
59247

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT + 49 + - ( - COUNT( * ) ) AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9685
SELECT + 49 + - ( - COUNT ( * ) ) AS col2 FROM tab1
----
52

query I rowsort
SELECT col0 + + ( + - col2 ) * + - col0 FROM tab2 WHERE NOT col0 * - col1 * - 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 66 + - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col2 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT + col1 * - + ( col2 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + - col0 * + col1 * + ( + 22 ) - + - col0 AS col1 FROM tab1 AS cor0
----
-15657
-9265
-94003

query I rowsort
SELECT + 78 * col2 AS col0 FROM tab0 AS cor0
----
3666
7722
780

query II rowsort
SELECT 85, + col2 FROM tab1 AS cor0
----
85
59
85
68
85
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT + COUNT( * ) AS col1, MAX( ALL + - col0 ) FROM tab1 AS cor0
----
3
-51

skipif mysql # not compatible
query II rowsort label-9693
SELECT + COUNT ( * ) AS col1, MAX ( ALL + - col0 ) FROM tab1 AS cor0
----
3
-51

query I rowsort
SELECT DISTINCT col0 + col2 * col1 AS col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT COUNT( * ) * 6 - + - COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9695
SELECT COUNT ( * ) * 6 - + - COUNT ( * ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT 81 - + MAX( col0 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9696
SELECT 81 - + MAX ( col0 ) FROM tab1
----
-10

query I rowsort
SELECT DISTINCT 88 + + col0 FROM tab2
----
134
152
163

query I rowsort
SELECT ALL col1 * 76 - col2 FROM tab2
----
3853
5034
5812

query I rowsort
SELECT ALL + 13 + + - col1 * 15 * - + ( - col1 ) - + col0 FROM tab2 AS cor0
----
-39048
-67397
-88986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + 81 + col1 col2 FROM tab1 AS cor0
----
110
119
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT + - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT + - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 58 FROM tab0, tab2 cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 43 * col2 * + col2 * - col1 ) >= 96 * - col1 * + CAST( NULL AS SIGNED ) + + col2 * - - col2 + col0
----

skipif mysql # not compatible
query I rowsort label-9704
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 43 * col2 * + col2 * - col1 ) >= 96 * - col1 * + CAST ( NULL AS INTEGER ) + + col2 * - - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL - - SUM( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - - SUM ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + - ( - + 75 ) FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT + + MAX( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9707
SELECT + + MAX ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + 3 * 23 * 9 * + - col0 AS col1 FROM tab0 AS cor0
----
-54027
-60237
-9315

query I rowsort
SELECT + col1 * + 56 AS col1 FROM tab0 AS cor0
----
1176
4536
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9710
SELECT ALL + COUNT( * ) AS col0, 45 DIV - SUM( DISTINCT - 13 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9710
SELECT ALL + COUNT ( * ) AS col0, 45 / - SUM ( DISTINCT - 13 ) FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT col0, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - - col1 * - - 40 * - col2 AS col0 FROM tab2 cor0 WHERE NOT - 21 / - - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + 57, 79 AS col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - col0 ) AS col1 FROM tab1
----
51
85
91

query II rowsort
SELECT - 8 AS col2, + ( + col0 ) + - 19 FROM tab0
----
-8
-4
-8
68
-8
78

query I rowsort
SELECT DISTINCT + ( - 2 ) FROM tab1
----
-2

query I rowsort
SELECT DISTINCT - 4 * col0 AS col1 FROM tab0
----
-348
-388
-60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + 52 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + 37 * + MIN( - - col0 ) FROM tab1 AS cor0
----
1887

skipif mysql # not compatible
query I rowsort label-9719
SELECT + 37 * + MIN ( - - col0 ) FROM tab1 AS cor0
----
1887

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 9 - - col1 >= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + col0 * 15 FROM tab2 cor0
----
1000
1183
713

query I rowsort
SELECT + ( ( 53 ) ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9723
SELECT - + col1 AS col0, - col2 DIV - col1 + - - col1 AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-1
100
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-9723
SELECT - + col1 AS col0, - col2 / - col1 + - - col1 AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-1
100
-21
21
-81
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 46 * - + col0 * 4 * - - col0 + - 22 / col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 - + - col1 col2 FROM tab2
----
137
153
163

query I rowsort
SELECT DISTINCT - 45 + - col2 AS col0 FROM tab1
----
-104
-113
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9727
SELECT ALL CAST( NULL AS SIGNED ) * - - col2 * + col1 - + col1 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9727
SELECT ALL CAST ( NULL AS INTEGER ) * - - col2 * + col1 - + col1 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 77 - + - 61 + 75 FROM tab0
----
213
213
213

query II rowsort
SELECT col0, + col1 AS col2 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col0 + - col0 AND 97
----

query II rowsort
SELECT - col2 AS col2, + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL COUNT( * ) * + 33 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL COUNT ( * ) * + 33 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT - + COUNT( * ) - - 21 AS col0 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-9734
SELECT - + COUNT ( * ) - - 21 AS col0 FROM tab1 cor0
----
18

query I rowsort
SELECT DISTINCT col1 * 25 + - 5 FROM tab1 AS cor0
----
1170
120
345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col2 FROM tab2 cor0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2 - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN - col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab2 WHERE NOT - col0 * col1 NOT BETWEEN NULL AND ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col1 + - col0 NOT BETWEEN 35 AND - col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 53 * ( col2 * - col1 ) AS col1 FROM tab2 WHERE NOT col2 * col1 BETWEEN ( + col0 * 95 ) AND NULL
----
-163240
-205958
-62169

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - COUNT( * ) * - 69 AS col1 FROM tab1 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT - COUNT ( * ) * - 69 AS col1 FROM tab1 WHERE NULL NOT IN ( col0 )
----
0

query I rowsort
SELECT DISTINCT ( + 84 ) FROM tab0
----
84

query I rowsort
SELECT 60 FROM tab2 WHERE NOT + col0 <= col0 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE 58 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT - MAX( ALL - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - MAX ( ALL - col0 ) AS col2 FROM tab2
----
46

query III rowsort
SELECT * FROM tab2 WHERE ( 74 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + - 7 AS col2 FROM tab1
----
-103
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL + COUNT( * ) + MIN( 88 ) AS col1 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL + COUNT ( * ) + MIN ( 88 ) AS col1 FROM tab2
----
91

query I rowsort
SELECT - ( 48 ) FROM tab2
----
-48
-48
-48

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT SUM( - ( col2 ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT SUM ( - ( col2 ) ) AS col0 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col2 FROM tab0 WHERE NOT ( - 72 ) BETWEEN ( - col2 ) AND - col0 + col2
----
100
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT + SUM( + 57 ) * - 58 AS col1 FROM tab0 WHERE NOT 24 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT + SUM ( + 57 ) * - 58 AS col1 FROM tab0 WHERE NOT 24 IS NOT NULL
----
NULL

query I rowsort
SELECT 94 - col1 * + col1 FROM tab2 WHERE ( - col1 ) <> ( NULL )
----

query I rowsort
SELECT + col1 * col0 + + col1 FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT + 50 * col0 FROM tab1 AS cor0
----
2550
4250
4550

query I rowsort
SELECT DISTINCT col2 + 52 FROM tab2 AS cor0
----
110
75
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 66 <= 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( CAST( col1 AS SIGNED ) ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9762
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( CAST ( col1 AS INTEGER ) ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT 88 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col0 FROM tab0 WHERE NOT - 37 * 66 BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - 85 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT DISTINCT - 97 DIV - col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - 97 / - col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT DISTINCT + ( 7 ) AS col2 FROM tab1 AS cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT ALL - ( col2 ) DIV - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + 40 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - ( col2 ) / - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + 40 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL + - ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + - ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT 23 * + COUNT( * ) AS col2 FROM tab0 cor0
----
69

skipif mysql # not compatible
query I rowsort label-9770
SELECT 23 * + COUNT ( * ) AS col2 FROM tab0 cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT + col2 DIV 83 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT + col2 / 83 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 + - col1 * - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE + col1 > NULL
----

query I rowsort
SELECT + 27 - - col1 AS col1 FROM tab1 AS cor0
----
32
41
74

query I rowsort
SELECT - col2 - 52 FROM tab0 AS cor0
----
-151
-62
-99

query I rowsort
SELECT 32 - - + ( - col2 ) AS col0 FROM tab1
----
-27
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab0 WHERE ( + 7 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE ( + 7 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - 8 - - + COUNT( * ) + 55 AS col2 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-9778
SELECT - 8 - - + COUNT ( * ) + 55 AS col2 FROM tab2
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN + 88 + + 29 * - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9780
SELECT DISTINCT CAST( - 26 AS SIGNED ) DIV 48 + + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT CAST ( - 26 AS INTEGER ) / 48 + + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - col1 - - + col0 - col1 FROM tab2
----
-56
-59
-90

query III rowsort
SELECT * FROM tab2 WHERE col2 <> ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9783
SELECT * FROM tab2 WHERE + CAST( - 75 AS DECIMAL ) BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-9783
SELECT * FROM tab2 WHERE + CAST ( - 75 AS REAL ) BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT ALL + 2 DIV 60 * 3 + 91 AS col2 FROM tab2
----
91
91
91

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + 2 / 60 * 3 + 91 AS col2 FROM tab2
----
91
91
91

query I rowsort
SELECT DISTINCT + 21 - - 47 / + col1 AS col2 FROM tab0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 80 AS col0 FROM tab2 cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT + MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT + MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT + 31 * COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9790
SELECT + 31 * COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
279

query I rowsort
SELECT - 94 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 + + 93 col0 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + + COUNT( ALL + 79 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9793
SELECT + + COUNT ( ALL + 79 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT DISTINCT - SUM( ALL + + 55 ) * - CAST( NULL AS SIGNED ) * - 19 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT - SUM ( ALL + + 55 ) * - CAST ( NULL AS INTEGER ) * - 19 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT + ( + MIN( + CAST( NULL AS SIGNED ) ) ) * 70 + MIN( ALL col2 + col0 ) / - SUM( DISTINCT - col1 + 47 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT + ( + MIN ( + CAST ( NULL AS INTEGER ) ) ) * 70 + MIN ( ALL col2 + col0 ) / - SUM ( DISTINCT - col1 + 47 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT - ( + + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9797
SELECT - ( + + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 / col1 FROM tab1 WHERE ( NULL ) NOT IN ( + col2 / - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL COUNT( DISTINCT 10 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL COUNT ( DISTINCT 10 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9801
SELECT + CAST( NULL AS SIGNED ) + + ( 81 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT + CAST ( NULL AS INTEGER ) + + ( 81 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 83 * + - 75 * - col1 * 87 FROM tab1
----
25454025
2707875
7582050

query I rowsort
SELECT - col0 + + + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT + 34 * - MIN( 39 ) FROM tab0
----
-1326

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT + 34 * - MIN ( 39 ) FROM tab0
----
-1326

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT + 20 + 43, + MIN( DISTINCT + - ( + 64 ) ) AS col1 FROM tab0
----
63
-64

skipif mysql # not compatible
query II rowsort label-9805
SELECT + 20 + 43, + MIN ( DISTINCT + - ( + 64 ) ) AS col1 FROM tab0
----
63
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT COUNT( * ) + 79 FROM tab1 WHERE NOT 90 * - - col2 IS NULL
----
82

skipif mysql # not compatible
query I rowsort label-9806
SELECT COUNT ( * ) + 79 FROM tab1 WHERE NOT 90 * - - col2 IS NULL
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT MAX( ALL - 72 ) + + + 73 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9807
SELECT MAX ( ALL - 72 ) + + + 73 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9808
SELECT 24 DIV 24, 40 + + COUNT( * ) * 92 col2 FROM tab0 AS cor0
----
1
316

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9808
SELECT 24 / 24, 40 + + COUNT ( * ) * 92 col2 FROM tab0 AS cor0
----
1
316

query I rowsort
SELECT DISTINCT 93 + + col0 - + col2 AS col1 FROM tab0 AS cor0
----
170
61
91

query I rowsort
SELECT ( col1 ) - - 27 * - col1 FROM tab0 AS cor0 WHERE + col0 * 40 / + + 62 + col2 >= 82 * ( - 78 )
----
-2106
-26
-546

query I rowsort
SELECT col0 + col2 - - col0 FROM tab0
----
184
293
77

query I rowsort
SELECT + col0 * - 58 + + col1 * 43 + - + col2 FROM tab1 AS cor0
----
-2452
-3325
-4774

query I rowsort
SELECT ALL 59 - + 41 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT + COUNT( col2 ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT + COUNT ( col2 ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT - SUM( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - SUM ( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT + 34 + - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9816
SELECT + 34 + - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 38, ( col0 ) FROM tab1 AS cor0
----
38
51
38
85
38
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9819
SELECT - - CAST( - + MIN( + col0 ) AS SIGNED ) DIV 70 + + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9819
SELECT - - CAST ( - + MIN ( + col0 ) AS INTEGER ) / 70 + + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND - col1 + + ( col1 ) + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT DISTINCT - 77 + + MAX( + + col0 ) DIV + 2 AS col2 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT - 77 + + MAX ( + + col0 ) / + 2 AS col2 FROM tab2
----
-40

query III rowsort
SELECT * FROM tab1 WHERE ( - 57 ) > NULL
----

query I rowsort
SELECT + 25 * + 66 FROM tab2
----
1650
1650
1650

query II rowsort
SELECT + col0 AS col1, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9825
SELECT - COUNT( DISTINCT - + col2 ) AS col1, 89 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9825
SELECT - COUNT ( DISTINCT - + col2 ) AS col1, 89 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-3
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT ( + + col0 ) + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL + COUNT( * ) * + 28 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL + COUNT ( * ) * + 28 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL - ( + SUM( DISTINCT 19 ) ) AS col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - ( + SUM ( DISTINCT 19 ) ) AS col2 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT DISTINCT - + 25 + - - CAST( NULL AS SIGNED ) * + 4 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - + 25 + - - CAST ( NULL AS INTEGER ) * + 4 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 34 AS col1, ( col2 ) + + - 81 + 52 * - col2 - col1 * + 17 col2 FROM tab1 cor0
----
34
-3175
34
-4348
34
-5215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 4 col2 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT ALL MIN( + - 53 ) * + 39 AS col1 FROM tab2
----
-2067

skipif mysql # not compatible
query I rowsort label-9832
SELECT ALL MIN ( + - 53 ) * + 39 AS col1 FROM tab2
----
-2067

query II rowsort
SELECT ( + col1 ) AS col1, col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 * - 52 >= + 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 90 ) BETWEEN + col1 + + 70 + - 57 AND - col0
----

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT NULL <> col2 / 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT MIN( + 81 ) FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9837
SELECT MIN ( + 81 ) FROM tab2 cor0
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 * + - col2 * col0 / + - 66 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT 16 + + COUNT( * ) AS col2 FROM tab1 WHERE 66 IS NOT NULL
----
19

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT 16 + + COUNT ( * ) AS col2 FROM tab1 WHERE 66 IS NOT NULL
----
19

query III rowsort
SELECT * FROM tab2 WHERE + - 14 + - 2 - + + ( col1 ) * - + col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9841
SELECT 21, COUNT( * ) - 16 AS col2 FROM tab0
----
21
-13

skipif mysql # not compatible
query II rowsort label-9841
SELECT 21, COUNT ( * ) - 16 AS col2 FROM tab0
----
21
-13

query III rowsort
SELECT * FROM tab1 WHERE ( - ( - col0 ) + 63 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ( 21 ) * COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-9843
SELECT ( 21 ) * COUNT ( * ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT - MIN( DISTINCT 3 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT - MIN ( DISTINCT 3 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + COUNT( * ) + 92 AS col1 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-9845
SELECT + COUNT ( * ) + 92 AS col1 FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL + 4 + - col0 + col0 FROM tab0 AS cor0
----
4
4
4

query II rowsort
SELECT DISTINCT + 88 * + + ( + - col1 ) - + 83, col0 AS col1 FROM tab1
----
-1315
51
-4219
91
-523
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9848
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 77 col0 FROM tab1 AS cor0
----
-136
-145
-173

query I rowsort
SELECT - + 99 - - col0 FROM tab0 AS cor0
----
-12
-2
-84

query I rowsort
SELECT + col0 - + - ( - 68 ) FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9853
SELECT + SUM( - 19 ) - + + COUNT( * ) * + 99, - CAST( - - 77 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-354
-77

skipif mysql # not compatible
query II rowsort label-9853
SELECT + SUM ( - 19 ) - + + COUNT ( * ) * + 99, - CAST ( - - 77 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-354
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL + col1 / - CAST( NULL AS SIGNED ) * col1 + - 63 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + col1 / - CAST ( NULL AS INTEGER ) * col1 + - 63 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL 89 * + ( COUNT( ALL + 9 ) ) FROM tab2 cor0
----
267

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL 89 * + ( COUNT ( ALL + 9 ) ) FROM tab2 cor0
----
267

query I rowsort
SELECT DISTINCT - + 14 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
-1344
-826
-952

query I rowsort
SELECT ALL + ( - 69 ) AS col0 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT + col1 * - + col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT 68 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
68
68
68

query I rowsort
SELECT DISTINCT - 12 + + - col1 AS col1 FROM tab1 WHERE NULL NOT IN ( + col2, - col0 / + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <= - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col0 FROM tab1
----
-48
-48
-48

query II rowsort
SELECT ALL col2 * - col0 + col2, col1 FROM tab2 AS cor0
----
-1035
51
-2520
77
-4292
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 58 col0, + col0 AS col1 FROM tab0 AS cor0
----
58
15
58
87
58
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT - MAX( DISTINCT - 40 ) * + 80 FROM tab1
----
3200

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - MAX ( DISTINCT - 40 ) * + 80 FROM tab1
----
3200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, - col0 col1 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT DISTINCT - MIN( ALL + - col0 ) AS col1, 61 AS col2 FROM tab0 AS cor0
----
97
61

skipif mysql # not compatible
query II rowsort label-9868
SELECT DISTINCT - MIN ( ALL + - col0 ) AS col1, 61 AS col2 FROM tab0 AS cor0
----
97
61

query II rowsort
SELECT - col0 AS col0, - 99 FROM tab1 AS cor0
----
-51
-99
-85
-99
-91
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab2 cor0 WHERE col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab2 cor0 WHERE col1 >= NULL
----
NULL

query II rowsort
SELECT 69 AS col0, - col1 * + - 23 + + - col0 * 33 AS col0 FROM tab0 AS cor0
----
69
-2388
69
-3178
69
1368

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IN ( + 17 )
----

query II rowsort
SELECT - col0 AS col1, ( - col1 ) AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + + 71 + + COUNT( 85 ) AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9874
SELECT + + 71 + + COUNT ( 85 ) AS col1 FROM tab1 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + + + col2 NOT BETWEEN + 4 AND + col1 * - - 47 + + - col0 + + + 96
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT 21 * COUNT( DISTINCT - + 68 ) + 66 - - 28 + - CAST( NULL AS SIGNED ) + - ( + 49 ) * - 16 * - - COUNT( * ) * + AVG ( - col0 ) + ( + 88 ) * 7 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT 21 * COUNT ( DISTINCT - + 68 ) + 66 - - 28 + - CAST ( NULL AS INTEGER ) + - ( + 49 ) * - 16 * - - COUNT ( * ) * + AVG ( - col0 ) + ( + 88 ) * 7 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT + col1 * + 54 FROM tab2 AS cor0
----
2754
3618
4158

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 > + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE 41 - col1 * + - col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL - 57 + + col0 + - col2 * + col0 - - - 59 + - 87 * + - col0 AS col0 FROM tab1 AS cor0
----
-524
1704
2349

query I rowsort
SELECT ALL col1 + + 87 + - + col2 + - col2 AS col1 FROM tab2
----
38
84
92

query I rowsort
SELECT ALL - 28 - + - 61 FROM tab1
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL 94 - COUNT( DISTINCT - 5 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL 94 - COUNT ( DISTINCT - 5 ) FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT SUM( DISTINCT + - col0 ) + + COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-9887
SELECT SUM ( DISTINCT + - col0 ) + + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT + col0 DIV + col1 + - - col0 DIV - col0 + 77 FROM tab0 AS cor0
----
173
76
80

skipif mysql # not compatible
query I rowsort label-9888
SELECT + col0 / + col1 + - - col0 / - col0 + 77 FROM tab0 AS cor0
----
173
76
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9890
SELECT + - CAST( NULL AS DECIMAL ) + - + AVG ( ALL + 55 ) + - 57 + - 34 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT + - CAST ( NULL AS REAL ) + - + AVG ( ALL + 55 ) + - 57 + - 34 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT ALL MAX( ALL col2 ) FROM tab2 AS cor0 WHERE NOT col1 * - + col2 * + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL MAX ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT col1 * - + col2 * + col1 < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - 54 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - 41 AS col0 FROM tab1
----
2419
2788
3936

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND - col2 + + col1
----

query I rowsort
SELECT - + col0 * col1 + + 34 * - - col2 FROM tab2 AS cor0 WHERE NOT - 47 IS NOT NULL
----

query I rowsort
SELECT - + 27 FROM tab2 cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT - COUNT( * ) * + 52 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-9897
SELECT - COUNT ( * ) * + 52 FROM tab2
----
-156

query I rowsort
SELECT col2 * + - col2 + - 32 + 97 FROM tab1
----
-3416
-4559
-9151

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT 39 AS col2, SUM( DISTINCT - ( + 94 ) ) * - + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
39
1692

skipif mysql # not compatible
query II rowsort label-9899
SELECT 39 AS col2, SUM ( DISTINCT - ( + 94 ) ) * - + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
39
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT + MAX( - ( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT + MAX ( - ( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT 75 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + col0 * + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
2392
4992
5100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT + + ( + + 69 ) + + COUNT( * ) * + + 22 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT + + ( + + 69 ) + + COUNT ( * ) * + + 22 FROM tab1 AS cor0
----
135

query I rowsort
SELECT ALL col0 + - - col2 AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-9906
SELECT ALL - COUNT( * ) AS col0, + 86 * - 69 FROM tab2
----
-3
-5934

skipif mysql # not compatible
query II rowsort label-9906
SELECT ALL - COUNT ( * ) AS col0, + 86 * - 69 FROM tab2
----
-3
-5934

query I rowsort
SELECT ALL + col2 + 54 AS col2 FROM tab2
----
112
77
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
51

query II rowsort
SELECT ALL + col0 AS col1, + col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 + + col0 + - + col2 / col0
----

query I rowsort
SELECT ALL - ( - - col1 ) * + 81 + - ( - + col2 ) FROM tab1 AS cor0
----
-1038
-346
-3739

query I rowsort
SELECT DISTINCT - ( + col0 ) + + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT - CAST( NULL AS SIGNED ) + - ( col0 ) - col0 * - col0 * - col0 + + 23 * + 50 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-9913
SELECT - CAST ( NULL AS INTEGER ) + - ( col0 ) - col0 * - col0 * - col0 + + 23 * + 50 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT ( + COUNT( * ) ) AS col2, + 11 AS col0 FROM tab2
----
3
11

skipif mysql # not compatible
query II rowsort label-9914
SELECT ( + COUNT ( * ) ) AS col2, + 11 AS col0 FROM tab2
----
3
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT DISTINCT - 73 + - COUNT( * ) AS col1 FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) / + + col1 + - + 44 <> NULL
----
-73

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT - 73 + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) / + + col1 + - + 44 <> NULL
----
-73

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col0 - + col2 * - 78 + + col2 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT 10 * + CAST( - - 77 AS SIGNED ) * col2 + + + col0 + - col0 AS col2 FROM tab0 cor0
----
36190
76230
7700

skipif mysql # not compatible
query I rowsort label-9917
SELECT 10 * + CAST ( - - 77 AS INTEGER ) * col2 + + + col0 + - col0 AS col2 FROM tab0 cor0
----
36190
76230
7700

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL + + SUM( ALL + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + + SUM ( ALL + ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + 24 * + - 71 FROM tab2
----
-1704
-1704
-1704

query II rowsort
SELECT ALL col0 * + - ( 48 ), 27 + - col2 AS col0 FROM tab2
----
-2208
4
-3072
-13
-3600
-31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - 74 FROM tab2
----
-3774
-4958
-5698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT DISTINCT + ( + MAX( + CAST( NULL AS SIGNED ) ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9923
SELECT DISTINCT + ( + MAX ( + CAST ( NULL AS INTEGER ) ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - 20 = - + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 - - col1 + - + 9 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-17
-4
4

query I rowsort
SELECT DISTINCT + - 22 * 72 FROM tab0 AS cor0
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + - 96 * - ( + COUNT( * ) ) + + 81 + - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
902

skipif mysql # not compatible
query I rowsort label-9927
SELECT + - 96 * - ( + COUNT ( * ) ) + + 81 + - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT + COUNT( * ) * + - SUM( - 74 ) FROM tab0
----
666

skipif mysql # not compatible
query I rowsort label-9928
SELECT + COUNT ( * ) * + - SUM ( - 74 ) FROM tab0
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - COUNT( ALL + 64 ) * + MIN( DISTINCT - - col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9929
SELECT - COUNT ( ALL + 64 ) * + MIN ( DISTINCT - - col2 ) FROM tab0
----
-30

query I rowsort
SELECT + 55 * - col1 * - ( + col1 ) FROM tab0 AS cor0
----
24255
360855
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9931
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - - col0 ) * + col1 + 58 AS col1 FROM tab1 AS cor0
----
-367
-4219
-656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - col2 col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT - col0 + + + col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL + col1 + + - col1 + + 79 - + + 39 AS col1 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT - COUNT( * ) + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9936
SELECT - COUNT ( * ) + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab2 AS cor0 WHERE ( - 28 / 67 ) >= col0
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE - 91 <> col1 - - 51 - + - col2 * + 29 * col0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9939
SELECT * FROM tab1 WHERE - + 39 <> - 98 / - + 84 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9939
SELECT * FROM tab1 WHERE - + 39 <> - 98 / - + 84 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 1 + col2 FROM tab0
----
100
11
48

query II rowsort
SELECT DISTINCT + col1 + + - col0 AS col1, col1 FROM tab0 WHERE ( NULL ) <= + col0
----

query I rowsort
SELECT DISTINCT 68 + + - col2 AS col0 FROM tab0
----
-31
21
58

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN - + 47 - - col2 - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col1, col0, col1, col1, + col1, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL 13 - COUNT( * ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL 13 - COUNT ( * ) AS col0 FROM tab2
----
10

query I rowsort
SELECT + 66 * col1 AS col1 FROM tab0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL - SUM( ALL - col1 ) FROM tab1 WHERE NOT - col0 * + col2 + - col1 * - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - SUM ( ALL - col1 ) FROM tab1 WHERE NOT - col0 * + col2 + - col1 * - - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL + - SUM( col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL + - SUM ( col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - 85 - + ( - + col1 ) FROM tab1 AS cor0
----
-38
-71
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT ALL col1 + + col2 DIV + 34 FROM tab0 cor0
----
21
3
82

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL col1 + + col2 / + 34 FROM tab0 cor0
----
21
3
82

query II rowsort
SELECT DISTINCT + col2 AS col1, 69 * 28 AS col1 FROM tab1 cor0
----
59
1932
68
1932
96
1932

query II rowsort
SELECT DISTINCT col2 * + + col0 + + col0 - + 3, col1 FROM tab1 AS cor0
----
4944
14
5097
5
6276
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 85 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + COUNT( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9954
SELECT + COUNT ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT MIN( DISTINCT - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT MIN ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-77
2
32

query II rowsort
SELECT DISTINCT + + 41 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
41
10
41
47
41
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + col0 < ( col0 * - - 60 - - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT - + ( - ( - col2 ) ) FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 * + + col2 / + col1 IS NOT NULL
----

query I rowsort
SELECT + 93 * + col0 * 90 AS col2 FROM tab0 cor0
----
125550
728190
811890

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - col0 * + col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT 20 * + + 2 * col1 * col1 AS col1 FROM tab2
----
104040
179560
237160

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + ( + COUNT( * ) ) * - 49 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + ( + COUNT ( * ) ) * - 49 FROM tab2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT MIN( + - col1 ) * - COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-9966
SELECT MIN ( + - col1 ) * - COUNT ( * ) FROM tab2
----
231

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + col2 BETWEEN + + col0 AND - col2 * col2 * + 75 * - col0
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT ALL - ( + + 19 ) * + COUNT( * ) + 41 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL - ( + + 19 ) * + COUNT ( * ) + 41 FROM tab0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9969
SELECT ALL + SUM( col1 ) DIV + - COUNT( * ) col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9969
SELECT ALL + SUM ( col1 ) / + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT DISTINCT - col2 + - - 51 + col1 AS col2 FROM tab2 AS cor0
----
60
79
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT SUM( + + ( 67 ) ) + - COUNT( * ) col0 FROM tab1
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9971
SELECT SUM ( + + ( 67 ) ) + - COUNT ( * ) col0 FROM tab1
----
198

query I rowsort
SELECT + col2 + col0 FROM tab2 WHERE NULL IS NULL
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9973
SELECT ALL MAX( - CAST( NULL AS DECIMAL ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9973
SELECT ALL MAX ( - CAST ( NULL AS REAL ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9974
SELECT DISTINCT 69 + - CAST( NULL AS DECIMAL ) * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 = - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT 69 + - CAST ( NULL AS REAL ) * - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 = - col0
----
NULL

query I rowsort
SELECT 19 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - - col2 AS col2, 27 AS col1 FROM tab0 AS cor0
----
10
27
47
27
99
27

query I rowsort
SELECT ALL - 55 FROM tab2 AS cor0 WHERE + 2 IS NOT NULL
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9978
SELECT - col1 DIV 71 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT - col1 / 71 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - 70 ) AS col0 FROM tab0 AS cor0
----
70

query I rowsort
SELECT ALL - ( - 54 ) FROM tab2 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, - col2 col0 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT col0 * - col0 + - col1 * 47 AS col1 FROM tab0 AS cor0 WHERE + 14 IS NOT NULL
----
-4032
-8556
-9456

query II rowsort
SELECT 69 AS col2, col1 FROM tab2 AS cor0
----
69
51
69
67
69
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT + + COUNT( - 1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9984
SELECT + + COUNT ( - 1 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT - - ( + col0 ) / + + 30 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT - - ( + col0 ) / + + 30 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9986
SELECT ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 76 / col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ( + 22 ) - + - COUNT( * ) * - 51 col1 FROM tab2
----
-131

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9988
SELECT ( + 22 ) - + - COUNT ( * ) * - 51 col1 FROM tab2
----
-131

query I rowsort
SELECT ALL - col0 + + col1 * 7 FROM tab0
----
-90
552
60

query I rowsort
SELECT + 58 - col0 * - col0 FROM tab0
----
283
7627
9467

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT ALL 94 DIV - col1 + + 52 DIV + col2 - - col1 * + - col2 AS col2 FROM tab2
----
-1172
-3080
-3887

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL 94 / - col1 + + 52 / + col2 - - col1 * + - col2 AS col2 FROM tab2
----
-1172
-3080
-3887

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9992
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL - 18 AS col1 FROM tab0 WHERE NOT - 51 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + MIN( col2 ) + - MAX( col1 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-9994
SELECT + MIN ( col2 ) + - MAX ( col1 ) FROM tab2
----
-54

query I rowsort
SELECT DISTINCT - ( - 37 ) FROM tab1 AS cor0
----
37

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * - col2 col1 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT ALL COUNT( * ) AS col2, + 66 FROM tab2 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-9998
SELECT ALL COUNT ( * ) AS col2, + 66 FROM tab2 AS cor0
----
3
66

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

