sqllogictest
Artifact Content
Not logged in

Artifact 5a215372bc26f7aa0599d31607175d9f99175f82:


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 I rowsort
SELECT - col1 * - 52 FROM tab2
----
2652
3484
4004

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

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

query I rowsort
SELECT + 6 * - 45 * - ( col1 ) AS col0 FROM tab0
----
21870
270
5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 * + col0 col2 FROM tab1
----
4335
7225
7735

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 82 + - col2 <= ( + ( - 7 ) + + col0 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT DISTINCT + col0 DIV - + col1 + col2 * + + col1 * - + ( - ( - + ( col2 ) ) ) * 80 AS col0 FROM tab2 AS cor0
----
-18031041
-2158320
-9856000

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT + col0 / - + col1 + col2 * + + col1 * - + ( - ( - + ( col2 ) ) ) * 80 AS col0 FROM tab2 AS cor0
----
-18031041
-2158320
-9856000

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT COUNT( - - ( + col0 ) ) AS col0 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-10
SELECT COUNT ( - - ( + col0 ) ) AS col0 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-11
SELECT ALL + CAST( CAST( 27 AS SIGNED ) AS SIGNED ) + col1 + - - 21 AS col2 FROM tab0
----
129
49
69

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + CAST ( CAST ( 27 AS INTEGER ) AS INTEGER ) + col1 + - - 21 AS col2 FROM tab0
----
129
49
69

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

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

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

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT - 11 NOT BETWEEN - - col0 AND - + 66 * - + 59 + + - 73 - - - ( + ( col1 ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( NOT col0 >= col2 ) )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT - 13 + COUNT( * ) col0 FROM tab1 AS cor0
----
-10

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT + col0 DIV + 95 + - 51 AS col2 FROM tab2
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-19
SELECT + col0 / + 95 + - 51 AS col2 FROM tab2
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT 36 DIV + col2 * + 86 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-20
SELECT 36 / + col2 * + 86 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL + col0 + 49 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
113
124
95

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

query II rowsort
SELECT + ( col1 ), ( - col2 ) FROM tab0 WHERE NULL <= NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT ( + 25 ) * + AVG ( ALL - col1 ) * - CAST( NULL AS SIGNED ) / - 82 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT ( + 25 ) * + AVG ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) / - 82 FROM tab2
----
NULL

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

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

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

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

query I rowsort
SELECT - 30 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT MIN( - 30 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-32
SELECT MIN ( - 30 ) FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 BETWEEN col2 AND - + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * col1 * col0 AS col0 FROM tab0 cor0
----
-38367
-97
-98415

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 + - 96 + + col1 * - col0 * - col1 + - + 24 * - 87 NOT IN ( + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - COUNT( DISTINCT 27 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-38
SELECT - COUNT ( DISTINCT 27 ) FROM tab2 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT + SUM( 86 ) AS col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-40
SELECT + SUM ( 86 ) AS col2 FROM tab0 AS cor0
----
258

query I rowsort
SELECT - - col2 * + 71 * - col2 - col1 * 32 + - 57 AS col0 FROM tab2 AS cor0
----
-116121
-241045
-39248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, - 22 FROM tab0 AS cor0
----
-10
-22
-47
-22
-99
-22

query I rowsort
SELECT ALL - 78 * col0 AS col1 FROM tab1
----
-3978
-6630
-7098

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL 69 DIV - col0 col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-44
SELECT ALL 69 / - col0 col2 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-45
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL < col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-47
SELECT ALL - col0 DIV + col2 AS col2, 45 FROM tab1 AS cor0
----
-1
45
-1
45
0
45

skipif mysql # not compatible
query II rowsort label-47
SELECT ALL - col0 / + col2 AS col2, 45 FROM tab1 AS cor0
----
-1
45
-1
45
0
45

query I rowsort
SELECT 50 * - - 61 * - col1 FROM tab1 AS cor0
----
-143350
-15250
-42700

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 * - 5 - - 59 * + col0 FROM tab0 AS cor0
----
-10
5028
-47
480
-99
5718

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-50
SELECT ALL CAST( NULL AS SIGNED ), - 16 AS col2 FROM tab2 AS cor0
----
NULL
-16
NULL
-16
NULL
-16

skipif mysql # not compatible
query II rowsort label-50
SELECT ALL CAST ( NULL AS INTEGER ), - 16 AS col2 FROM tab2 AS cor0
----
NULL
-16
NULL
-16
NULL
-16

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

query II rowsort
SELECT DISTINCT + col0 * - ( + 83 ), 27 * col1 * + 61 AS col1 FROM tab0
----
-1245
133407
-7221
34587
-8051
1647

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT DISTINCT + 73 + col2 + - col2 DIV col0 + + 58 * 95 FROM tab0
----
5593
5627
5681

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + 73 + col2 + - col2 / col0 + + 58 * 95 FROM tab0
----
5593
5627
5681

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT + 20 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-56
SELECT + 20 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 23 * 12 + col0 col1 FROM tab1 cor0
----
327
361
367

query I rowsort
SELECT DISTINCT 30 + + col0 FROM tab1 AS cor0
----
115
121
81

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 61 - + col1 - + col2 + 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-61
SELECT - + SUM( - - 3 ) AS col0, COUNT( 9 ) FROM tab0 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-61
SELECT - + SUM ( - - 3 ) AS col0, COUNT ( 9 ) FROM tab0 AS cor0
----
-9
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - - 98 + - ( - col0 ) col2 FROM tab0 AS cor0
----
175
66
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT ALL + 83 + ( ( COUNT( * ) ) ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT ( col0 * + + col1 + ( - 89 ) * col2 + - col2 + - col1 + + col0 * col0 * + 92 + + - col2 + + 59 ) IS NULL ) )
----
86

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL + 83 + ( ( COUNT ( * ) ) ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT ( col0 * + + col1 + ( - 89 ) * col2 + - col2 + - col1 + + col0 * col0 * + 92 + + - col2 + + 59 ) IS NULL ) )
----
86

query II rowsort
SELECT ALL 89 AS col0, col0 + + col2 AS col0 FROM tab0
----
89
196
89
62
89
97

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

query I rowsort
SELECT col1 + + - 84 FROM tab1
----
-37
-70
-79

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

query I rowsort
SELECT DISTINCT col2 + + 20 FROM tab0
----
119
30
67

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

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

skipif mysql # not compatible
query I rowsort label-72
SELECT 79 FROM tab1 AS cor0 WHERE NOT + col0 <> 64 + + CAST ( NULL AS INTEGER ) + - col1 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-73
SELECT + col2 * - - 79 AS col0, - col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
1817
NULL
3160
NULL
4582
NULL

skipif mysql # not compatible
query II rowsort label-73
SELECT + col2 * - - 79 AS col0, - col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
1817
NULL
3160
NULL
4582
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-74
SELECT DISTINCT 73 * col0, + col2 DIV - col0 AS col0 FROM tab1
----
3723
-1
6205
0
6643
0

skipif mysql # not compatible
query II rowsort label-74
SELECT DISTINCT 73 * col0, + col2 / - col0 AS col0 FROM tab1
----
3723
-1
6205
0
6643
0

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

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

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

query I rowsort
SELECT col0 * - 13 FROM tab0 AS cor0
----
-1131
-1261
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT MAX( ALL - 13 ) * - MIN( + col1 ) FROM tab2
----
663

skipif mysql # not compatible
query I rowsort label-78
SELECT MAX ( ALL - 13 ) * - MIN ( + col1 ) FROM tab2
----
663

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab2 WHERE - col2 IN ( + - 77 + col1 * + col0 / - 2, + col1 )
----

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

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL SUM ( DISTINCT + + col1 ) FROM tab0 WHERE NOT - + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 80 * + 5 FROM tab1
----
400
400
400

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

query II rowsort
SELECT ALL - 77 * - + 41 * + - col0 + + col2 + - col2, col0 AS col0 FROM tab0
----
-274659
87
-306229
97
-47355
15

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT MIN( DISTINCT + col0 ) * + 49 * 74 FROM tab0
----
54390

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT MIN ( DISTINCT + col0 ) * + 49 * 74 FROM tab0
----
54390

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 > + 49 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 91 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT ALL col0 + - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
-32
77

query I rowsort
SELECT ALL - + col2 - + - 81 AS col2 FROM tab1 AS cor0
----
-15
13
22

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 - + + 50 AS col0 FROM tab0
----
-149
-60
-97

query II rowsort
SELECT - col1 * - col1, col0 FROM tab1
----
196
51
2209
91
25
85

query I rowsort
SELECT ALL - col2 * + col1 * - col2 AS col2 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-97
SELECT 43 DIV - SUM( ALL - col2 ) AS col1, - COUNT( * ) FROM tab0
----
0
-3

skipif mysql # not compatible
query II rowsort label-97
SELECT 43 / - SUM ( ALL - col2 ) AS col1, - COUNT ( * ) FROM tab0
----
0
-3

query I rowsort
SELECT - + col1 * + col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT COUNT( * ) FROM tab2 WHERE 0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-99
SELECT COUNT ( * ) FROM tab2 WHERE 0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT + 31 * - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab1
----
-93

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

query III rowsort
SELECT * FROM tab0 WHERE 82 * + col0 + + ( + - 69 ) * 68 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-102
SELECT ALL MAX( + + 94 ), 61 AS col2 FROM tab0
----
94
61

skipif mysql # not compatible
query II rowsort label-102
SELECT ALL MAX ( + + 94 ), 61 AS col2 FROM tab0
----
94
61

query I rowsort
SELECT DISTINCT AVG ( + 53 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT COUNT( * ) FROM tab2 WHERE NOT + col1 NOT BETWEEN + 14 + + 73 + - ( + col2 ) AND 84 + + 74
----
2

skipif mysql # not compatible
query I rowsort label-105
SELECT COUNT ( * ) FROM tab2 WHERE NOT + col1 NOT BETWEEN + 14 + + 73 + - ( + col2 ) AND 84 + + 74
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT + MAX( - 3 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT + MAX ( - 3 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT DISTINCT - 22 AS col1, 41 - - COUNT( * ) FROM tab1 AS cor0
----
-22
44

skipif mysql # not compatible
query II rowsort label-107
SELECT DISTINCT - 22 AS col1, 41 - - COUNT ( * ) FROM tab1 AS cor0
----
-22
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT ( + COUNT( * ) ) * COUNT( * ) + - 12 * + + 30 FROM tab0 cor0
----
-351

skipif mysql # not compatible
query I rowsort label-109
SELECT ( + COUNT ( * ) ) * COUNT ( * ) + - 12 * + + 30 FROM tab0 cor0
----
-351

query I rowsort
SELECT - 49 * - 57 AS col1 FROM tab2 AS cor0
----
2793
2793
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT COUNT( * ) * - - 35 * + SUM( + - col0 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-62685

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT COUNT ( * ) * - - 35 * + SUM ( + - col0 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-62685

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL MAX( 17 ) FROM tab0, tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL MAX ( 17 ) FROM tab0, tab0 AS cor0
----
17

query I rowsort
SELECT DISTINCT - 83 * - ( + 75 ) FROM tab1
----
6225

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

query I rowsort
SELECT DISTINCT + 67 + - col1 * + 70 * + 93 - + 74 + - + 93 FROM tab1
----
-306070
-32650
-91240

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 26 + - col1 IS NULL
----

query I rowsort
SELECT + col0 + - - 88 + - col0 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT + COUNT( - + 90 ) + 67 FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-120
SELECT + COUNT ( - + 90 ) + 67 FROM tab0 cor0
----
70

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 < + 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 81 + col0 + col1 FROM tab2 AS cor0
----
16
60
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-124
SELECT DISTINCT - COUNT( * ) - CAST( + 2 AS SIGNED ) * + + 53 AS col0 FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT - COUNT ( * ) - CAST ( + 2 AS INTEGER ) * + + 53 AS col0 FROM tab1 AS cor0
----
-109

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 92 < + col2 - - col0
----
87
21
10
97
1
99

query I rowsort
SELECT - 60 - - 32 AS col1 FROM tab1 cor0
----
-28
-28
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT - col1 DIV + + col2 * + 20 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-129
SELECT - col1 / + + col2 * + 20 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * 46 AS col2 FROM tab0
----
-3726
-46
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT + COUNT( + 61 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-131
SELECT + COUNT ( + 61 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT DISTINCT + MAX( - col1 ) * SUM( ALL + col1 ) FROM tab2 AS cor0
----
-9945

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT + MAX ( - col1 ) * SUM ( ALL + col1 ) FROM tab2 AS cor0
----
-9945

query I rowsort
SELECT + col2 * - 65 * - 71 AS col0 FROM tab0 AS cor0
----
216905
456885
46150

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT + 20 * - ( + 45 ) AS col1, SUM( 49 ) FROM tab1
----
-900
147

skipif mysql # not compatible
query II rowsort label-135
SELECT + 20 * - ( + 45 ) AS col1, SUM ( 49 ) FROM tab1
----
-900
147

query I rowsort
SELECT ALL - ( 55 ) AS col2 FROM tab1
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-137
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-137
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT 7 DIV - - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-138
SELECT 7 / - - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 33 FROM tab2 cor0
----
-33
-33
-33

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

query I rowsort
SELECT + + col2 + + col1 * col0 * 96 + + 18 AS col1 FROM tab0 AS cor0
----
116705
175420
9429

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

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

query I rowsort
SELECT ALL - 61 + - ( - 62 ) AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 <= - - col2 * + 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + COUNT( * ) + MIN( col2 ) * + 60 * + - 25 FROM tab0
----
-14997

skipif mysql # not compatible
query I rowsort label-147
SELECT + COUNT ( * ) + MIN ( col2 ) * + 60 * + - 25 FROM tab0
----
-14997

query I rowsort
SELECT + 26 * + + col2 + - col0 AS col0 FROM tab0
----
1207
173
2477

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 28 col1 FROM tab2
----
-12
-30
5

query I rowsort
SELECT DISTINCT - 66 + col2 FROM tab2
----
-26
-43
-8

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

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

query I rowsort
SELECT DISTINCT + + 13 * - - 70 + + col0 FROM tab0 AS cor0
----
1007
925
997

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT ALL + col0 - - 84 + - - 90 DIV col2 FROM tab2 AS cor0
----
133
150
160

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL + col0 - - 84 + - - 90 / col2 FROM tab2 AS cor0
----
133
150
160

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 <= + col0
----
75
67
58

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

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

query I rowsort
SELECT ALL - - col2 - 1 AS col2 FROM tab1 AS cor0
----
58
67
95

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

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT COUNT ( * ) - - 0 * + + MIN ( ALL 33 ) AS col0 FROM tab0 AS cor0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 93 * + - col2 * + col2 col1 FROM tab0
----
-16640397
-195300
-911493

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL MAX( ALL - - ( - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL MAX ( ALL - - ( - col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT SUM( + + 81 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT SUM ( + + 81 ) FROM tab0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * - - col0 col0 FROM tab0
----
5133
5723
885

query I rowsort
SELECT ALL 69 * ( - + col1 ) + + + col1 FROM tab1 cor0
----
-3196
-340
-952

query I rowsort
SELECT DISTINCT + 87 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-4008
-849
-8612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT + MAX( ALL + CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL + MAX( DISTINCT - ( 61 ) ) col0 FROM tab2
----
-61

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 50 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 71 > - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( + 82 / + - 23 ) > - 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT - - 73 * + ( + - COUNT( * ) ) col0 FROM tab2 cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-174
SELECT - - 73 * + ( + - COUNT ( * ) ) col0 FROM tab2 cor0
----
-219

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - 59 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT + - 34 DIV + ( + - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-176
SELECT + - 34 / + ( + - col0 ) FROM tab1 AS cor0
----
0
0
0

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

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

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

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE + col1 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT 98 + - + COUNT( * ) + + + 91 col2 FROM tab1
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-183
SELECT 98 + - + COUNT ( * ) + + + 91 col2 FROM tab1
----
186

query I rowsort
SELECT ALL - col0 * - col2 + + 20 * - - col1 AS col2 FROM tab1
----
5115
5176
7128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + col2, - 52 col0 FROM tab0
----
-77
-52
2
-52
32
-52

query I rowsort
SELECT - 69 + - 84 AS col1 FROM tab0
----
-153
-153
-153

query I rowsort
SELECT DISTINCT + 72 + - 38 * - - col1 AS col1 FROM tab0
----
-3006
-726
34

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-188
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( - col0 AS DECIMAL ) > col2 + col1 + col0 + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-188
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( - col0 AS REAL ) > col2 + col1 + col0 + ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 + + + col0 + + 69 col0 FROM tab0 cor0
----
144
216
226

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT COUNT( * ) - + 93 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT COUNT ( * ) - + 93 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
282

query I rowsort
SELECT + 35 * - 89 AS col1 FROM tab0
----
-3115
-3115
-3115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + col0 col2 FROM tab1
----
144
147
159

query I rowsort
SELECT col2 - - col2 * col2 AS col2 FROM tab2
----
1640
3422
552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-194
SELECT + col2 - - ( + + col2 ) * - + col2 + - col0 * + col2 + - 40 * - + 15 AS col1, CAST( - col0 AS SIGNED ) - 43 FROM tab2 AS cor0
----
-3520
-107
-7056
-118
-964
-89

skipif mysql # not compatible
query II rowsort label-194
SELECT + col2 - - ( + + col2 ) * - + col2 + - col0 * + col2 + - 40 * - + 15 AS col1, CAST ( - col0 AS INTEGER ) - 43 FROM tab2 AS cor0
----
-3520
-107
-7056
-118
-964
-89

query I rowsort
SELECT + + col2 - + 21 FROM tab0 AS cor0
----
-11
26
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT + + COUNT( * ) - + CAST( + MAX( + + 23 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-196
SELECT + + COUNT ( * ) - + CAST ( + MAX ( + + 23 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-20

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 AS col2, - 1 + + 79 FROM tab2 AS cor0
----
46
78
64
78
75
78

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 NOT BETWEEN 34 - - + col2 AND - ( + + ( + 46 ) ) * + col1 + 35 + - 21
----

query I rowsort
SELECT ALL + col1 * - 56 AS col2 FROM tab2
----
-2856
-3752
-4312

query I rowsort
SELECT col0 * - 1 * + 54 FROM tab1
----
-2754
-4590
-4914

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

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

query I rowsort
SELECT DISTINCT - 72 * col0 * - 57 AS col1 FROM tab0
----
357048
398088
61560

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

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

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

query I rowsort
SELECT ALL + 39 * + + col0 AS col1 FROM tab0
----
3393
3783
585

query I rowsort
SELECT - col0 * 37 FROM tab0 AS cor0
----
-3219
-3589
-555

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

query I rowsort
SELECT + 16 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query II rowsort
SELECT 63 AS col1, + col2 FROM tab1
----
63
59
63
68
63
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT + + COUNT( DISTINCT 0 ) + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-215
SELECT + + COUNT ( DISTINCT 0 ) + COUNT ( * ) FROM tab2 AS cor0
----
4

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

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

query I rowsort
SELECT DISTINCT - + 57 * col0 FROM tab0 AS cor0
----
-4959
-5529
-855

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

query I rowsort
SELECT - 79 * - col1 * col2 AS col0 FROM tab0
----
16590
300753
7821

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

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

query II rowsort
SELECT DISTINCT 46 + + 95, + 64 AS col2 FROM tab0
----
141
64

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

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

query I rowsort
SELECT - ( ( - 69 ) ) FROM tab0 WHERE + - col1 + 28 + - col1 * + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 89 FROM tab1 cor0
----
-38
-4
2

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL COUNT( * ) + - COUNT( * ) * + - 55 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL COUNT ( * ) + - COUNT ( * ) * + - 55 FROM tab0 AS cor0
----
168

query I rowsort
SELECT ALL + - col1 + - + 41 FROM tab0 AS cor0
----
-122
-42
-62

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
21
81

query I rowsort
SELECT ALL - - col0 * - - col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT - 14 + col1 AS col2 FROM tab1 AS cor0 WHERE col1 * - ( + 83 ) IS NOT NULL
----
-9
0
33

query I rowsort
SELECT ALL col1 - - + col1 + + 93 FROM tab1 AS cor0
----
103
121
187

query II rowsort
SELECT DISTINCT - 41 AS col0, + 27 AS col2 FROM tab0 AS cor0
----
-41
27

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

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

query I rowsort
SELECT - 79 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT + MAX( DISTINCT col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-236
SELECT + MAX ( DISTINCT col0 ) FROM tab1 cor0
----
91

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 94 + + 60 * col0 * + 72 BETWEEN NULL AND + - 28 * + + 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-241
SELECT col1 AS col0, - col2 * + - col2 * - + col2 * CAST( - - col2 AS SIGNED ) FROM tab0
----
1
-96059601
21
-10000
81
-4879681

skipif mysql # not compatible
query II rowsort label-241
SELECT col1 AS col0, - col2 * + - col2 * - + col2 * CAST ( - - col2 AS INTEGER ) FROM tab0
----
1
-96059601
21
-10000
81
-4879681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - + col2 col2 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT ALL + 17 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT DISTINCT - CAST( + ( + CAST( - + col2 AS SIGNED ) ) AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT - CAST ( + ( + CAST ( - + col2 AS INTEGER ) ) AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT + COUNT( * ) * + 32 AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-245
SELECT + COUNT ( * ) * + 32 AS col0 FROM tab1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT ALL - COUNT( * ) * - MIN( DISTINCT + 17 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT + 17 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT ALL + col1 + - 35 * - col0 AS col1 FROM tab1
----
1799
2980
3232

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

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

query I rowsort
SELECT col0 * - col0 - - - 88 - - 27 * - col2 - - col1 * - - col2 FROM tab1 AS cor0
----
-3937
-7009
-8611

query II rowsort
SELECT + col2 * col1 + - - col1 * + col0 AS col2, 65 FROM tab2 AS cor0
----
3519
65
8008
65
8911
65

query I rowsort
SELECT ALL ( + 9 ) * - + 42 + + 65 + col0 AS col0 FROM tab1 cor0
----
-222
-228
-262

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-255
SELECT CAST( + + col2 AS SIGNED ) - + col2 - col1 * 54 DIV + col2 + - col0 FROM tab2 AS cor0
----
-137
-165
-167

skipif mysql # not compatible
query I rowsort label-255
SELECT CAST ( + + col2 AS INTEGER ) - + col2 - col1 * 54 / + col2 + - col0 FROM tab2 AS cor0
----
-137
-165
-167

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

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL - COUNT ( * ) * 52 / + - COUNT ( * ) FROM tab0 AS cor0
----
52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-258
SELECT DISTINCT 43 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT 43 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 + col0 + 48 * col1 FROM tab2
----
2540
3366
3824

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

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

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

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

query I rowsort
SELECT ALL + col1 - - - 64 AS col2 FROM tab2 AS cor0
----
-13
13
3

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

query II rowsort
SELECT - - col1 AS col0, + col0 - + ( + col0 ) FROM tab1 AS cor0
----
14
0
47
0
5
0

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

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - MIN ( - col0 ) FROM tab0 AS cor0
----
97

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-270
SELECT COUNT( DISTINCT + - ( + col0 ) ) AS col2, AVG ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-270
SELECT COUNT ( DISTINCT + - ( + col0 ) ) AS col2, AVG ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2 FROM tab0
----
3
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT SUM( DISTINCT + 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT SUM ( DISTINCT + 71 ) FROM tab1
----
71

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

query I rowsort
SELECT + - col0 * 7 AS col2 FROM tab2 AS cor0
----
-322
-448
-525

query I rowsort
SELECT col1 / - col1 FROM tab0 AS cor0 WHERE + ( + col1 ) <> - ( - + col1 )
----

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

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

query I rowsort
SELECT DISTINCT - 88 + + + col1 AS col1 FROM tab0 AS cor0
----
-67
-7
-87

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 89 / col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 71 * + ( 19 ) NOT BETWEEN - - col1 AND - - 47 - - 99 + + + ( col1 )
----

query I rowsort
SELECT - col1 + - ( - col0 ) + + col0 * - col2 AS col2 FROM tab2 AS cor0 WHERE 66 IN ( - 11 / + col1 )
----

query I rowsort
SELECT + 1 * - + 74 AS col2 FROM tab0
----
-74
-74
-74

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

query I rowsort
SELECT col2 * + 45 AS col0 FROM tab0
----
2115
4455
450

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-285
SELECT + + col2 - 40, col1 DIV 41 - - col2 col1 FROM tab1 AS cor0
----
19
59
28
69
56
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-285
SELECT + + col2 - 40, col1 / 41 - - col2 col1 FROM tab1 AS cor0
----
19
59
28
69
56
96

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 11 * 15 + col2 + + col1 * - col0 IN ( + + 78, + col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 50 * - 36 FROM tab0 cor0
----
-1800
-1800
-1800

query I rowsort
SELECT - 18 AS col1 FROM tab2 cor0
----
-18
-18
-18

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-296
SELECT ALL - + COUNT( * ) * CAST( NULL AS SIGNED ) + 12, + MAX( DISTINCT + + 82 ) AS col0 FROM tab2 AS cor0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-296
SELECT ALL - + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 12, + MAX ( DISTINCT + + 82 ) AS col0 FROM tab2 AS cor0
----
NULL
82

onlyif mysql # DIV for integer division: 
query I rowsort label-297
SELECT DISTINCT - col1 DIV ( - - ( + 79 ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - col1 / ( - - ( + 79 ) ) AS col2 FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 / + - 38 * - 62 * 7 + + - col1 IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-300
SELECT + COUNT ( * ), + 88 AS col0 FROM tab2
----
3
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT col0 <= + col2 / - - 12
----
3

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT col0 <= + col2 / - - 12
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-303
SELECT - 44 * - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-303
SELECT - 44 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-132

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-305
SELECT ALL + CAST( NULL AS DECIMAL ), - COUNT( - col2 ) col1 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-305
SELECT ALL + CAST ( NULL AS REAL ), - COUNT ( - col2 ) col1 FROM tab1 AS cor0
----
NULL
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + 32 <> + - ( 37 ) + ( - + 84 ) )
----

query I rowsort
SELECT ALL 64 + + + 0 * + col2 AS col0 FROM tab1
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT MIN( - 20 ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-308
SELECT MIN ( - 20 ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT - 22 * - col1 FROM tab0 AS cor0
----
1782
22
462

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 84 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT - MIN( - col0 ) col1 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-315
SELECT DISTINCT - MIN ( - col0 ) col1 FROM tab1
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ( + SUM( DISTINCT + - col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-317
SELECT ( + SUM ( DISTINCT + - col0 ) ) FROM tab0
----
-199

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT ALL + - 84 DIV - COUNT( * ) + + 22 col2 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-319
SELECT ALL + - 84 / - COUNT ( * ) + + 22 col2 FROM tab2 AS cor0
----
50

query II rowsort
SELECT ALL - 86, 47 + - + 81 + + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-86
-4311
-86
-459
-86
-748

query I rowsort
SELECT ( 31 ) AS col1 FROM tab1
----
31
31
31

query I rowsort
SELECT + col1 + + 57 FROM tab0
----
138
58
78

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-324
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-324
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS REAL ) IN ( - col2 )
----

query I rowsort
SELECT ALL 12 FROM tab2 WHERE NOT 90 - - col1 * - 34 IS NULL
----
12
12
12

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

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT ( - col1 ) + 75 * col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT MAX( - 16 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT MAX ( - 16 ) FROM tab2
----
-16

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

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

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

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

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

query I rowsort
SELECT DISTINCT 65 FROM tab1 WHERE - 16 * - col1 > 33
----
65

query I rowsort
SELECT - 95 FROM tab2 WHERE col1 < ( 24 )
----

query I rowsort
SELECT DISTINCT - ( col1 ) AS col2 FROM tab1 WHERE col2 NOT BETWEEN NULL AND - col1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 12 * + col0 AS col2 FROM tab2
----
552
768
900

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

query I rowsort
SELECT DISTINCT - col1 * + 29 AS col1 FROM tab2
----
-1479
-1943
-2233

query I rowsort
SELECT + col1 + + col0 FROM tab1 WHERE ( 58 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 18 AS col2 FROM tab1
----
-1530
-1638
-918

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( ( - col2 ) ) ) < ( + col0 * - 37 - + col1 / + 98 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT COUNT( * ) + - COUNT( * ) * + COUNT( DISTINCT col2 * 31 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-344
SELECT COUNT ( * ) + - COUNT ( * ) * + COUNT ( DISTINCT col2 * 31 ) AS col0 FROM tab0
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - 44 + COUNT( ALL - col1 ) AS col2 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - 44 + COUNT ( ALL - col1 ) AS col2 FROM tab2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT + SUM( ALL + col0 ) FROM tab1 AS cor0 WHERE ( col2 * col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-347
SELECT + SUM ( ALL + col0 ) FROM tab1 AS cor0 WHERE ( col2 * col0 ) IS NULL
----
NULL

query I rowsort
SELECT - - col2 + col0 * col0 AS col0 FROM tab0 AS cor0
----
272
7579
9508

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + - MAX( ALL + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-350
SELECT + - MAX ( ALL + col1 ) FROM tab1 AS cor0
----
-47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT DISTINCT - - col0 DIV col2 - + 98 AS col2 FROM tab2 cor0
----
-96
-97

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - - col0 / col2 - + 98 AS col2 FROM tab2 cor0
----
-96
-97

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

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

query I rowsort
SELECT ALL + ( + col1 ) * col0 FROM tab2 cor0 WHERE - col2 + col1 <> col2
----
2346
4928
5025

query I rowsort
SELECT + + 99 * - 26 FROM tab2 AS cor0
----
-2574
-2574
-2574

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT ALL + col2 DIV col2 - col1 AS col0 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + col2 / col2 - col1 AS col0 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT ALL + 4 * 5 - - col2 AS col0 FROM tab1
----
116
79
88

query I rowsort
SELECT ALL + col1 * - 84 AS col1 FROM tab0
----
-1764
-6804
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL 46 * - ( - MAX( DISTINCT - col1 ) ) FROM tab2
----
-2346

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL 46 * - ( - MAX ( DISTINCT - col1 ) ) FROM tab2
----
-2346

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

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

query I rowsort
SELECT DISTINCT - 72 + + col0 AS col1 FROM tab1 WHERE NOT + col2 <= 25
----
-21
13
19

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 13 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL COUNT( * ) * - 83 FROM tab0 AS cor0 WHERE + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL COUNT ( * ) * - 83 FROM tab0 AS cor0 WHERE + col1 = NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + + ( COUNT( * ) ) * MIN( + 28 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
252

skipif mysql # not compatible
query I rowsort label-366
SELECT + + ( COUNT ( * ) ) * MIN ( + 28 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 + 81 * col0 IN ( 53 / 13 )
----
3

skipif mysql # not compatible
query I rowsort label-368
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 + 81 * col0 IN ( 53 / 13 )
----
3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 41 - - 50 IN ( 56 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + 66 BETWEEN + 11 AND 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - col1 * + col1 + - col2 FROM tab0 AS cor0
----
-100
-451
-6608

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT SUM( ALL + - col2 ) + ( + ( COUNT( ALL + 84 ) ) ) FROM tab0 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT SUM ( ALL + - col2 ) + ( + ( COUNT ( ALL + 84 ) ) ) FROM tab0 cor0
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL + - MAX( DISTINCT - ( + 93 ) ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + - MAX ( DISTINCT - ( + 93 ) ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT ALL - col1 * - ( - - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT DISTINCT MAX( ALL - 69 ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT MAX ( ALL - 69 ) AS col1 FROM tab2
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-382
SELECT DISTINCT + 82 FROM tab1 WHERE NULL BETWEEN NULL AND - col1 * + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT + 82 FROM tab1 WHERE NULL BETWEEN NULL AND - col1 * + CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-383
SELECT ALL + COUNT( * ) * 41 DIV - + COUNT( CAST( col0 AS SIGNED ) ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + COUNT ( * ) * 41 / - + COUNT ( CAST ( col0 AS INTEGER ) ) FROM tab1
----
-41

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

query I rowsort
SELECT ALL col1 + - - col2 + - col2 * + col1 * col1 AS col1 FROM tab2
----
-237043
-260237
-59749

query I rowsort
SELECT DISTINCT + col1 + + - 73 FROM tab2
----
-22
-6
4

query I rowsort
SELECT + + ( - col1 ) + - 89 + 58 * col2 AS col2 FROM tab2 cor0
----
1194
2154
3208

query I rowsort
SELECT - col1 FROM tab2 WHERE ( col2 / col1 ) BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT 6 AS col1, - 68 FROM tab2
----
6
-68
6
-68
6
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT ALL col2 DIV col1 col0 FROM tab1
----
1
11
6

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

query I rowsort
SELECT ALL + 29 FROM tab2 WHERE NULL IS NULL
----
29
29
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT + SUM( 48 ) - - COUNT( * ) FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-393
SELECT + SUM ( 48 ) - - COUNT ( * ) FROM tab1 AS cor0
----
147

query I rowsort
SELECT DISTINCT - col2 * + col1 * - - col1 * + 92 + - col2 * col2 FROM tab2 AS cor0
----
-21820320
-23956668
-5504245

query I rowsort
SELECT - + 21 - col0 + 14 AS col2 FROM tab2 AS cor0
----
-53
-71
-82

query I rowsort
SELECT - - col1 - - col2 + 55 + col1 FROM tab0 cor0
----
107
156
264

query I rowsort
SELECT ALL 71 + col1 FROM tab1 AS cor0
----
118
76
85

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT - - 29 DIV + - 12 + col0 FROM tab0 AS cor0
----
13
85
95

skipif mysql # not compatible
query I rowsort label-398
SELECT - - 29 / + - 12 + col0 FROM tab0 AS cor0
----
13
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT - MIN( - col0 ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT - MIN ( - col0 ) AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT ALL + - ( ( - 52 ) ) - - col0 AS col1 FROM tab0 AS cor0
----
139
149
67

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

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 WHERE - ( 45 ) = NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN - 45 * - - col1 + - 88 / col0 AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NOT col2 / col1 + - - col0 * - + col0 * + col2 = ( 98 ) + col2
----
3

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NOT col2 / col1 + - - col0 * - + col0 * + col2 = ( 98 ) + col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT SUM( ALL + 74 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT SUM ( ALL + 74 ) FROM tab2
----
222

query II rowsort
SELECT 26, 28 AS col2 FROM tab0
----
26
28
26
28
26
28

query I rowsort
SELECT DISTINCT + 80 + + col1 + col1 * - 88 FROM tab1 AS cor0 WHERE NOT ( 66 * - col2 ) NOT BETWEEN 42 AND NULL
----

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

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

query I rowsort
SELECT 85 + - 6 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 + - - col2 * col2 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 40 < ( + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-414
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 NOT IN ( CAST( NULL AS SIGNED ) * col1, - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 NOT IN ( CAST ( NULL AS INTEGER ) * col1, - 57 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-415
SELECT 38 AS col2, - MIN( - col1 ) FROM tab1 AS cor0
----
38
47

skipif mysql # not compatible
query II rowsort label-415
SELECT 38 AS col2, - MIN ( - col1 ) FROM tab1 AS cor0
----
38
47

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 96 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( - col0 - + col0 / - 84 * - col1 ) )
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + 62 * col2 FROM tab2 AS cor0 WHERE NOT 66 NOT BETWEEN - - col0 AND ( - 77 - - col2 )
----

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

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

query I rowsort
SELECT DISTINCT + - 95 * + 32 AS col1 FROM tab2 AS cor0
----
-3040

query I rowsort
SELECT 57 AS col1 FROM tab1 WHERE col1 NOT BETWEEN 59 AND ( + col0 )
----
57
57
57

query I rowsort
SELECT - col1 + + 90 FROM tab1
----
43
76
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 76 * + col2 col1 FROM tab2
----
-46
1748
-64
3040
-75
4408

query I rowsort
SELECT ALL - col0 * + col1 * - ( + 62 ) + col2 AS col1 FROM tab2
----
145475
305576
311608

onlyif mysql # DIV for integer division: 
query II rowsort label-428
SELECT ( + col1 ) DIV - 79, - ( - col1 ) AS col1 FROM tab0
----
-1
81
0
1
0
21

skipif mysql # not compatible
query II rowsort label-428
SELECT ( + col1 ) / - 79, - ( - col1 ) AS col1 FROM tab0
----
-1
81
0
1
0
21

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 WHERE NOT + + col2 + - col2 + + col2 <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT ALL + col2 DIV + 72 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL + col2 / + 72 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( - ( + 68 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * 69 * 38 col2 FROM tab2 cor0
----
39330
39330
39330

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT ALL - col2 * + col0 DIV - + col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL - col2 * + col0 / - + col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL 10 AS col2, - col0 FROM tab2 AS cor0 WHERE NOT col0 - + - 96 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT DISTINCT - 45 * 33 + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1482

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT - 45 * 33 + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1482

query II rowsort
SELECT 30 * + - col1 * + - col1 * - 45 AS col2, 87 * + - col1 * - ( - col2 ) * col1 FROM tab2 AS cor0
----
-3511350
-5204601
-6060150
-22651494
-8004150
-20632920

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-440
SELECT DISTINCT - COUNT( * ), CAST( NULL AS SIGNED ) col2 FROM tab1
----
-3
NULL

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

query I rowsort
SELECT - 38 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-38
-38
-38

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

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

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

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

query I rowsort
SELECT DISTINCT + 8 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - - col2 * + + col2
----

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

skipif mysql # not compatible
query I rowsort label-445
SELECT + MAX ( + + 43 ) AS col2 FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT 59 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-446
SELECT 59 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-177

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

query I rowsort
SELECT - 31 * + col0 AS col1 FROM tab1 AS cor0
----
-1581
-2635
-2821

query I rowsort
SELECT ALL - col0 + - 26 * - 57 + - col1 AS col2 FROM tab1 AS cor0
----
1344
1392
1417

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 = + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-452
SELECT CAST( NULL AS SIGNED ) * CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT CAST ( NULL AS INTEGER ) * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * - - 35 * + col1 FROM tab2 AS cor0
----
107800
136010
41055

query II rowsort
SELECT ALL + col2 + - + 7, ( - 84 ) AS col0 FROM tab1
----
52
-84
61
-84
89
-84

query I rowsort
SELECT DISTINCT col1 * - - 68 * - col1 AS col0 FROM tab1
----
-13328
-150212
-1700

query I rowsort
SELECT DISTINCT 1 * - + 96 + + col1 * 42 FROM tab0
----
-54
3306
786

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 66 - + 39 NOT IN ( + col0 + - 89, col2 + + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - col1 + + 68 FROM tab2
----
-1105
-3012
-3818

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT col0 DIV - col1 + - + ( col2 ) * - col1 + + - 82 AS col2 FROM tab0
----
-80
124
3725

skipif mysql # not compatible
query I rowsort label-459
SELECT col0 / - col1 + - + ( col2 ) * - col1 + + - 82 AS col2 FROM tab0
----
-80
124
3725

query I rowsort
SELECT ALL + ( col1 ) + + col0 FROM tab2
----
141
142
97

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

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT COUNT ( col2 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT - MIN( ALL ( + 51 ) ) DIV + - COUNT( * ) - COUNT( * ) col1 FROM tab2
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-463
SELECT - MIN ( ALL ( + 51 ) ) / + - COUNT ( * ) - COUNT ( * ) col1 FROM tab2
----
14

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

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

query I rowsort
SELECT ALL - 27 * 32 AS col2 FROM tab0 cor0
----
-864
-864
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 84 * + col2 col0 FROM tab0 cor0
----
-59220
-73080
-806652

onlyif mysql # DIV for integer division: 
query I rowsort label-468
SELECT ALL - col2 * 3 DIV col0 + col2 FROM tab2 AS cor0
----
22
39
56

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL - col2 * 3 / col0 + col2 FROM tab2 AS cor0
----
22
39
56

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT DISTINCT + 68 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT + 68 / - col0 AS col0 FROM tab2 AS cor0
----
-1
0

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

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

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

query I rowsort
SELECT DISTINCT - + 54 FROM tab0 WHERE col0 NOT BETWEEN + - 15 AND NULL
----

query I rowsort
SELECT - col2 * - 89 FROM tab2
----
2047
3560
5162

query I rowsort
SELECT ALL 63 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT ALL 77 * ( - col0 ) DIV + - col1 FROM tab1
----
1309
149
280

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL 77 * ( - col0 ) / + - col1 FROM tab1
----
1309
149
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-477
SELECT - SUM( ALL - 29 ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + + 0 * CAST( NULL AS SIGNED ) * - col2 * + col2 + - 27 <> NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-477
SELECT - SUM ( ALL - 29 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + + 0 * CAST ( NULL AS INTEGER ) * - col2 * + col2 + - 27 <> NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 * + col0 col2 FROM tab0
----
18270
57105
9603

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

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

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

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

query I rowsort
SELECT DISTINCT - 33 + + col1 AS col2 FROM tab2 AS cor0
----
18
34
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 96, - 80, - 62 / - - 46 )
----

query I rowsort
SELECT + col0 + - col2 + - col0 * col2 FROM tab0 AS cor0
----
-737
-793
-9605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-485
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE CAST( - + 56 AS SIGNED ) * + 95 + + 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-485
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE CAST ( - + 56 AS INTEGER ) * + 95 + + 11 IS NULL
----
0

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

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

query II rowsort
SELECT 53 * - col1 AS col2, col0 FROM tab0
----
-1113
87
-4293
15
-53
97

onlyif mysql # DIV for integer division: 
query II rowsort label-488
SELECT DISTINCT - col2 AS col0, 31 DIV - col2 FROM tab2
----
-23
-1
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-488
SELECT DISTINCT - col2 AS col0, 31 / - col2 FROM tab2
----
-23
-1
-40
0
-58
0

query I rowsort
SELECT - 15 * - col1 FROM tab1
----
210
705
75

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT + col1 DIV - 72 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-490
SELECT + col1 / - 72 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL + col0 + + - col1 AS col0 FROM tab2
----
-13
-5
8

query I rowsort
SELECT - 83 - - 68 AS col0 FROM tab1
----
-15
-15
-15

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

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

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

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

query I rowsort
SELECT 54 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 30 * + 22 + - col2
----

query I rowsort
SELECT DISTINCT col0 * + 83 * + col2 FROM tab2 AS cor0
----
212480
361050
87814

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 62 + + 12, 22 )
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-501
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col1, + col1 * col2 DIV - 33 AS col2 FROM tab0 AS cor0
----
-15
-115
-87
-6
-97
-3

skipif mysql # not compatible
query II rowsort label-501
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col1, + col1 * col2 / - 33 AS col2 FROM tab0 AS cor0
----
-15
-115
-87
-6
-97
-3

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

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

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

skipif mysql # not compatible
query I rowsort label-503
SELECT - MAX ( DISTINCT 31 ) FROM tab2 AS cor0
----
-31

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

skipif mysql # not compatible
query I rowsort label-504
SELECT 78 / - 51 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT + col0 * - + 51 FROM tab2
----
-2346
-3264
-3825

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

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

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 56 / ( + 28 ) * - 56 - - - 64 + - - col0 IS NOT NULL
----

query I rowsort
SELECT - 50 * - - 3 / col2 FROM tab1 AS cor0 WHERE NOT - ( + + col0 ) * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 32 FROM tab0 cor0
----
32

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

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

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

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

query I rowsort
SELECT ALL + col2 * - - 86 + - - 39 FROM tab1 AS cor0
----
5113
5887
8295

query I rowsort
SELECT DISTINCT + col2 + - 36 FROM tab0 AS cor0
----
-26
11
63

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT ALL COUNT( * ) * + 62 - + 85 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL COUNT ( * ) * + 62 - + 85 FROM tab2 AS cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-517
SELECT - + CAST( NULL AS SIGNED ) + - - 67, 12 * + + 36 AS col0 FROM tab2 AS cor0
----
NULL
432
NULL
432
NULL
432

skipif mysql # not compatible
query II rowsort label-517
SELECT - + CAST ( NULL AS INTEGER ) + - - 67, 12 * + + 36 AS col0 FROM tab2 AS cor0
----
NULL
432
NULL
432
NULL
432

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 3 * + 45 NOT IN ( 24 )
----

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

skipif mysql # not compatible
query I rowsort label-519
SELECT + 27 * + CAST ( NULL AS INTEGER ) * - 37 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ( + + col1 ) + + + col2 AS col1 FROM tab0
----
100
128
31

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

skipif mysql # not compatible
query II rowsort label-522
SELECT - COUNT ( * ), - CAST ( MIN ( ALL + - 35 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3
35

query I rowsort
SELECT DISTINCT - 26 - - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-17
11
2

query I rowsort
SELECT DISTINCT 69 * - - 23 * 31 - col0 - + 54 FROM tab1 AS cor0
----
49052
49058
49092

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT - COUNT( DISTINCT + + 99 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-525
SELECT - COUNT ( DISTINCT + + 99 ) FROM tab0 cor0
----
-1

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

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

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

query I rowsort
SELECT 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 57 * + - col2 < + 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-530
SELECT + 82 DIV SUM( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-530
SELECT + 82 / SUM ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - col2 AS col0, col0 * - col2 FROM tab1 AS cor0
----
-59
-5015
-68
-6188
-96
-4896

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

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL > + col2
----

query I rowsort
SELECT ALL + 14 * - 60 AS col1 FROM tab1 AS cor0
----
-840
-840
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT - MAX( ALL + 32 ) AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - MAX ( ALL + 32 ) AS col0 FROM tab0 AS cor0
----
-32

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

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

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

skipif mysql # not compatible
query I rowsort label-537
SELECT SUM ( DISTINCT + + 36 ) FROM tab0
----
36

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

skipif mysql # not compatible
query I rowsort label-538
SELECT + 38 * COUNT ( * ) AS col1 FROM tab1
----
114

query I rowsort
SELECT + col0 * + + col0 FROM tab1
----
2601
7225
8281

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

query I rowsort
SELECT DISTINCT + col2 - - + 39 FROM tab2 AS cor0
----
62
79
97

query I rowsort
SELECT ALL - 22 * col1 - - col2 AS col0 FROM tab1 cor0
----
-212
-51
-966

query I rowsort
SELECT DISTINCT - - 34 + + 26 + - col0 FROM tab2 cor0
----
-15
-4
14

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col2 + col0 / 96 + - col2 < + col1
----
21
81

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

query I rowsort
SELECT DISTINCT - + col0 - - 60 FROM tab0 AS cor0
----
-27
-37
45

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( - 2 * - col1 + + col1 <> + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( - 2 * - col1 + + col1 <> + col2 )
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 BETWEEN + col0 AND - 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - + - col1 AS col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-82

query I rowsort
SELECT + - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - SUM( ALL + - 67 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
603

skipif mysql # not compatible
query I rowsort label-555
SELECT - SUM ( ALL + - 67 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
603

query I rowsort
SELECT DISTINCT 95 * - + col2 * - col0 FROM tab0
----
66975
82650
912285

query II rowsort
SELECT DISTINCT col2, ( - - 4 ) FROM tab1
----
59
4
68
4
96
4

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

query I rowsort
SELECT 31 * + col1 + col2 FROM tab0 cor0
----
130
2558
661

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

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

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

query I rowsort
SELECT col1 * + + col2 * - col1 AS col2 FROM tab2
----
-237160
-260362
-59823

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + - col1
----

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

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

query I rowsort
SELECT ALL + 41 * - col1 + - + col0 + - 48 FROM tab2
----
-2185
-2870
-3269

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

query I rowsort
SELECT DISTINCT + 59 * + col2 AS col0 FROM tab2
----
1357
2360
3422

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT DISTINCT ( + 63 ) * - + col0 + - 89 DIV + col1 FROM tab1
----
-3219
-5372
-5734

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT ( + 63 ) * - + col0 + - 89 / + col1 FROM tab1
----
-3219
-5372
-5734

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT 23 + + COUNT( * ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-571
SELECT 23 + + COUNT ( * ) AS col2 FROM tab2
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - - ( + 8 ) + + COUNT( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-574
SELECT - - ( + 8 ) + + COUNT ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL + MIN( ALL - 72 ) * + 50 AS col2 FROM tab1 AS cor0
----
-3600

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + MIN ( ALL - 72 ) * + 50 AS col2 FROM tab1 AS cor0
----
-3600

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

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - MIN ( - + 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
38

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

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

query I rowsort
SELECT DISTINCT 91 + + + 63 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
154

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

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

query I rowsort
SELECT - col0 - 0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL col2 - - - col1 + + col2 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT - col1 - 15 - - col2 FROM tab2 AS cor0
----
-24
-43
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - + - col1 AS col1, + 53 col0 FROM tab1 AS cor0
----
110
53
115
53
64
53

query II rowsort
SELECT + ( - - col2 ) + col0, col0 FROM tab1 AS cor0
----
144
85
147
51
159
91

query I rowsort
SELECT DISTINCT col2 + + 8 FROM tab1 cor0
----
104
67
76

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

query III rowsort
SELECT * FROM tab2 WHERE - + col1 NOT IN ( - + col2 * + + col1, col2, - 5 - + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab2 WHERE NOT + 35 >= NULL
----

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

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - col2 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT MIN( - 16 ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT MIN ( - 16 ) FROM tab2
----
-16

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-596
SELECT 71 DIV - 42 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-596
SELECT 71 / - 42 FROM tab1 AS cor0
----
-1
-1
-1

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

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

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

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

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

query I rowsort
SELECT - col1 FROM tab2 WHERE - ( - + col2 ) BETWEEN + + 63 AND + col0 + col2 + - 52
----

query I rowsort
SELECT col1 + - col1 + - + 19 FROM tab0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT - 59 + + SUM( col0 ) FROM tab0
----
140

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT - 59 + + SUM ( col0 ) FROM tab0
----
140

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT ALL 91 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
-6
4
76

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL 91 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
-6
4
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT DISTINCT col0 + CAST( + 2 AS SIGNED ) FROM tab2
----
48
66
77

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT col0 + CAST ( + 2 AS INTEGER ) FROM tab2
----
48
66
77

query I rowsort
SELECT ALL - col1 * col2 * col0 + + col1 AS col2 FROM tab2
----
-197043
-291383
-53907

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

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

query I rowsort
SELECT ALL col0 * + + col1 + + 16 AS col1 FROM tab1 AS cor0
----
4293
441
730

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT MAX( + col0 ) + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-609
SELECT MAX ( + col0 ) + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-610
SELECT - MIN( col1 ) DIV COUNT( * ) + + 95 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-610
SELECT - MIN ( col1 ) / COUNT ( * ) + + 95 FROM tab1
----
94

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

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

query I rowsort
SELECT DISTINCT - 70 - + col1 FROM tab1 AS cor0
----
-117
-75
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + + col2 col2, - 99 AS col0 FROM tab1 AS cor0
----
-23
-99
-26
-99
45
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-614
SELECT DISTINCT - 81 AS col0, col2 * - CAST( + + 21 AS SIGNED ) FROM tab2 AS cor0
----
-81
-1218
-81
-483
-81
-840

skipif mysql # not compatible
query II rowsort label-614
SELECT DISTINCT - 81 AS col0, col2 * - CAST ( + + 21 AS INTEGER ) FROM tab2 AS cor0
----
-81
-1218
-81
-483
-81
-840

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 * 25 col1 FROM tab2 AS cor0 WHERE col0 + - + col1 IS NOT NULL
----
1201
1677
1942

query I rowsort
SELECT + col1 * - 91 FROM tab1 cor0
----
-1274
-4277
-455

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

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

query II rowsort
SELECT DISTINCT col2 * 96 AS col1, col2 FROM tab1
----
5664
59
6528
68
9216
96

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT ALL 36 DIV col1 * - col2 AS col2 FROM tab0
----
-10
-3564
0

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL 36 / col1 * - col2 AS col2 FROM tab0
----
-10
-3564
0

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

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + - COUNT ( * ) / ( + COUNT ( * ) ) * - - 0 AS col2 FROM tab0 AS cor0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-623
SELECT + + MAX ( + + 5 ) FROM tab0 AS cor0
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT DISTINCT - 65 DIV + 72 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT - 65 / + 72 FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-627
SELECT MIN( 51 ) DIV COUNT( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-627
SELECT MIN ( 51 ) / COUNT ( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
17

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT DISTINCT - col1 DIV 7 DIV - - 56 + + col1 + - col2 AS col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT - col1 / 7 / - - 56 + + col1 + - col2 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT col1 + - col1 + + - 43 FROM tab2
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-632
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 6 / + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-632
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 6 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - + col0 + col2 <> + 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-638
SELECT - - MIN ( - + col1 ) FROM tab0 AS cor0
----
-81

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

query I rowsort
SELECT ALL ( - ( 46 ) ) FROM tab1
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT DISTINCT - 97 * MIN( 32 ) FROM tab0
----
-3104

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - 97 * MIN ( 32 ) FROM tab0
----
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT + 45 * COUNT( * ) AS col0 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-642
SELECT + 45 * COUNT ( * ) AS col0 FROM tab1
----
135

query I rowsort
SELECT + 50 * col0 FROM tab0 cor0 WHERE NOT + 99 + + col2 IS NULL
----
4350
4850
750

query I rowsort
SELECT + col2 * 18 * - col0 FROM tab2 AS cor0
----
-19044
-46080
-78300

query I rowsort
SELECT ALL - - 17 * + - col1 AS col2 FROM tab0 cor0
----
-1377
-17
-357

query I rowsort
SELECT - ( col1 ) + col2 + - + 14 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1 + - 5 * + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT DISTINCT - COUNT( * ) * - 61 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT - COUNT ( * ) * - 61 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL SUM( + 25 ) FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL SUM ( + 25 ) FROM tab1 cor0
----
75

query I rowsort
SELECT + 80 * - col0 + 71 + + col1 * - col2 * + col0 FROM tab0 AS cor0
----
-17292
-25159
-58234

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

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

query I rowsort
SELECT ALL 91 AS col1 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT 44 * + 80 AS col2 FROM tab1
----
3520
3520
3520

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

skipif mysql # not compatible
query I rowsort label-653
SELECT col0 / - - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL + col1 AS col0, 34 * - col1 * col0 FROM tab0
----
1
-3298
21
-62118
81
-41310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 6 col2, col1 * 88 FROM tab2 WHERE + - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 * col1 ) IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 33 NOT BETWEEN NULL AND + + col1
----
51
14
96
85
5
59

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

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

query I rowsort
SELECT ALL + col0 + + - 90 AS col1 FROM tab0 AS cor0
----
-3
-75
7

onlyif mysql # aggregate syntax: 
query II rowsort label-662
SELECT - COUNT( ALL + col1 ), - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 30 * + - 92 / + col1 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-662
SELECT - COUNT ( ALL + col1 ), - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 30 * + - 92 / + col1 IS NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT - + col1 + - - ( - col2 ) DIV - col1 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-663
SELECT - + col1 + - - ( - col2 ) / - col1 FROM tab0 AS cor0
----
-21
-81
98

query I rowsort
SELECT col1 + + col1 * + - 83 AS col2 FROM tab2
----
-4182
-5494
-6314

query I rowsort
SELECT col0 + ( + col0 ) * + col1 FROM tab2
----
2392
4992
5100

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

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT + ( COUNT( * ) ) * - 57 AS col2 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-667
SELECT + ( COUNT ( * ) ) * - 57 AS col2 FROM tab0 AS cor0
----
-171

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col1 AND 53 + + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT ALL MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
59

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

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT COUNT ( + - 16 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL 43 * COUNT( * ) AS col1 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL 43 * COUNT ( * ) AS col1 FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + MIN( - - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 + + col1 IS NULL )
----
15

skipif mysql # not compatible
query I rowsort label-673
SELECT + MIN ( - - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 + + col1 IS NULL )
----
15

query I rowsort
SELECT 37 + - + 18 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32
-66
-72

query II rowsort
SELECT ALL 12 AS col0, col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 53 * + col2 - - ( + 16 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 52 + + - 7 FROM tab0 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT DISTINCT + col2 / - + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 cor0 WHERE + 65 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT + col2 / - + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 cor0 WHERE + 65 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT - - 92 DIV col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-679
SELECT - - 92 / col0 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + - col1 * + 84 * + ( + 23 ) FROM tab2 AS cor0
----
-129444
-148764
-98532

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

query II rowsort
SELECT col0 AS col0, - ( col0 ) FROM tab1 cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT + + 9 * - + 11 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL 23 * - 31 * - - col2 AS col2 FROM tab2 AS cor0
----
-16399
-28520
-41354

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT ALL + SUM( - col0 ) * 98 FROM tab0
----
-19502

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL + SUM ( - col0 ) * 98 FROM tab0
----
-19502

query II rowsort
SELECT DISTINCT col2 + + col0, col1 FROM tab1
----
144
5
147
14
159
47

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

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

query I rowsort
SELECT 76 FROM tab0 WHERE - col2 IS NOT NULL
----
76
76
76

query I rowsort
SELECT + 1 + + col1 * + col1 + col2 AS col0 FROM tab1
----
2278
293
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT col1 DIV + col0 + 68 + - 19 AS col0 FROM tab1 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-691
SELECT col1 / + col0 + 68 + - 19 AS col0 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-692
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) - + 78 FROM tab1 AS cor0
----
-125
-83
-92

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) - + 78 FROM tab1 AS cor0
----
-125
-83
-92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT ALL CAST( + - ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

query I rowsort
SELECT 58 * + 10 FROM tab0
----
580
580
580

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

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

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

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

query I rowsort
SELECT ( 56 ) AS col2 FROM tab0
----
56
56
56

onlyif mysql # DIV for integer division: 
query II rowsort label-699
SELECT 86 * - 52, col0 * col1 DIV + 72 + + col1 AS col1 FROM tab0
----
-4472
2
-4472
46
-4472
97

skipif mysql # not compatible
query II rowsort label-699
SELECT 86 * - 52, col0 * col1 / + 72 + + col1 AS col1 FROM tab0
----
-4472
2
-4472
46
-4472
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / + + 6 > - col1 + 90 - + col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT ALL ( + 36 ) * COUNT( * ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL ( + 36 ) * COUNT ( * ) FROM tab0
----
108

query I rowsort
SELECT ( - 38 ) AS col1 FROM tab2
----
-38
-38
-38

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL + SUM( DISTINCT - - col0 ) * + ( - + 91 ) * 44 AS col0 FROM tab1 cor0
----
-908908

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + SUM ( DISTINCT - - col0 ) * + ( - + 91 ) * 44 AS col0 FROM tab1 cor0
----
-908908

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-707
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - 67 + - col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT CAST ( NULL AS REAL ) * + - 67 + - col0 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT - col2 DIV - + 97 * - + 43 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-708
SELECT - col2 / - + 97 * - + 43 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT + MAX( - - 33 ) * + + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
2310

skipif mysql # not compatible
query I rowsort label-709
SELECT + MAX ( - - 33 ) * + + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
2310

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

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

query II rowsort
SELECT ALL + ( + 58 ), col1 * col1 FROM tab1 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * - ( 6 ) + ( + col2 ) AS col1 FROM tab2
----
-115
-200
-290

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-714
SELECT ALL 49 * + 83 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + + col1 - + CAST( 44 AS DECIMAL ) AND 20
----

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL 49 * + 83 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + + col1 - + CAST ( 44 AS REAL ) AND 20
----

query I rowsort
SELECT + 52 + - col1 FROM tab0 AS cor0
----
-29
31
51

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT DISTINCT col1 DIV - 67 + + + 58 - + - col1 + + 67 - + col2 DIV col1 FROM tab1 AS cor0
----
119
133
171

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT col1 / - 67 + + + 58 - + - col1 + + 67 - + col2 / col1 FROM tab1 AS cor0
----
119
133
171

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-717
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( NULL AS REAL ) AND NULL
----

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

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

query I rowsort
SELECT ALL + + col0 + - ( - 55 ) AS col2 FROM tab0 AS cor0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL + 30 * 46 + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
1383

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL + 30 * 46 + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
1383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-721
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) - - - 86 FROM tab2 AS cor0
----
-28
-46
-63

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) - - - 86 FROM tab2 AS cor0
----
-28
-46
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT COUNT( * ) * 98 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-722
SELECT COUNT ( * ) * 98 FROM tab1 AS cor0
----
294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-723
SELECT - COUNT( * ) DIV + 36 AS col0 FROM tab0
----
0

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

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

query I rowsort
SELECT DISTINCT col1 - - 17 FROM tab1
----
22
31
64

onlyif mysql # DIV for integer division: 
query I rowsort label-726
SELECT DISTINCT col2 DIV - 10 FROM tab0
----
-1
-4
-9

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT col2 / - 10 FROM tab0
----
-1
-4
-9

query I rowsort
SELECT DISTINCT + col1 + 37 + + col0 * - ( - 99 ) + - - col0 * - col2 AS col0 FROM tab1
----
204
2905
3442

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

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

query I rowsort
SELECT DISTINCT col1 + col0 + - col1 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - + col1 + - col0 + - + col1 * col2 * + + 46 * col2 = NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 92 NOT IN ( col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT - - 22 * COUNT( - col1 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-734
SELECT - - 22 * COUNT ( - col1 ) FROM tab2 AS cor0
----
66

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-738
SELECT DISTINCT 37 AS col2, - col2 * - + col0 + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-738
SELECT DISTINCT 37 AS col2, - col2 * - + col0 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT + MIN( DISTINCT 66 ) * COUNT( * ) FROM tab0 WHERE NULL = - 30 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + MIN ( DISTINCT 66 ) * COUNT ( * ) FROM tab0 WHERE NULL = - 30 + - col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT DISTINCT CAST( + SUM( DISTINCT 65 ) AS SIGNED ) * 53 AS col2 FROM tab0 AS cor0
----
3445

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT CAST ( + SUM ( DISTINCT 65 ) AS INTEGER ) * 53 AS col2 FROM tab0 AS cor0
----
3445

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 13 > NULL
----

query II rowsort
SELECT DISTINCT + col2, - col2 + col2 * ( - col1 ) - + 38 * col1 FROM tab2 AS cor0
----
23
-3134
40
-6046
58
-6490

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-744
SELECT * FROM tab2 WHERE NOT 15 < ( - CAST( + col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-744
SELECT * FROM tab2 WHERE NOT 15 < ( - CAST ( + col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT + col2 * col2 - - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT + col2 * col2 - - col2 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * col0 col0 FROM tab1
----
4488
7480
8008

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - MAX( ALL 12 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-748
SELECT - MAX ( ALL 12 ) FROM tab2
----
-12

query I rowsort
SELECT DISTINCT 85 FROM tab1 WHERE NOT NULL = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT 98 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL ) <= + col2
----

skipif mysql # not compatible
query I rowsort label-750
SELECT 98 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL ) <= + col2
----

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

query I rowsort
SELECT ALL + 34 * - col2 AS col2 FROM tab0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL + MAX( col0 ) * 28 FROM tab2
----
2100

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL + MAX ( col0 ) * 28 FROM tab2
----
2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-754
SELECT ALL COUNT( * ) DIV 13 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL COUNT ( * ) / 13 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-755
SELECT 40 DIV col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-755
SELECT 40 / col0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL + COUNT( * ) * 53 AS col2 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL + COUNT ( * ) * 53 AS col2 FROM tab1
----
159

query I rowsort
SELECT - col1 + - col1 FROM tab1 WHERE NOT ( 95 - col1 ) IS NULL
----
-10
-28
-94

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - 85 ) IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT - col0 + CAST( + col1 AS SIGNED ) * 39 FROM tab0
----
-58
3144
732

skipif mysql # not compatible
query I rowsort label-761
SELECT - col0 + CAST ( + col1 AS INTEGER ) * 39 FROM tab0
----
-58
3144
732

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - 48 * COUNT( * ) AS col1 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-762
SELECT - 48 * COUNT ( * ) AS col1 FROM tab1
----
-144

query III rowsort
SELECT * FROM tab0 WHERE NOT - 33 - + col2 NOT BETWEEN 31 / col0 AND - col1 * col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT 93 + - COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT 93 + - COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
90

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

query I rowsort
SELECT col2 * 59 + + col2 AS col1 FROM tab1
----
3540
4080
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab1 WHERE + 45 + 83 IN ( + 87 + + col1 )
----

query I rowsort
SELECT - col0 * 70 AS col2 FROM tab0
----
-1050
-6090
-6790

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

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL 82 / col2 AS col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( ( 28 ) ) < + col1
----
0

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( ( 28 ) ) < + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + COUNT( * ) * 82 AS col0 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-772
SELECT + COUNT ( * ) * 82 AS col0 FROM tab1
----
246

query I rowsort
SELECT col1 + col1 * 68 AS col1 FROM tab0
----
1449
5589
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + col1 col2 FROM tab1
----
128
86
95

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-776
SELECT col2 DIV + 79 col0 FROM tab0 AS cor0 WHERE NOT col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-776
SELECT col2 / + 79 col0 FROM tab0 AS cor0 WHERE NOT col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / - col2 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 61 * + 28 AND NULL
----

query I rowsort
SELECT 75 AS col2 FROM tab1 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + 17 * 37 AS col0 FROM tab2 AS cor0
----
629
629
629

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT + CAST( NULL AS SIGNED ) * + 96 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-783
SELECT + CAST ( NULL AS INTEGER ) * + 96 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT - + col2 * + 69 + col0 FROM tab0 cor0
----
-3228
-603
-6734

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

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT col2 DIV + col1 + col0 AS col2 FROM tab0 AS cor0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-789
SELECT col2 / + col1 + col0 AS col2 FROM tab0 AS cor0
----
15
196
87

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT ( - col1 ) DIV ( 62 + 26 ) col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-791
SELECT ( - col1 ) / ( 62 + 26 ) col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 45 + - - col1 AS col1 FROM tab2
----
112
122
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-793
SELECT ALL + CAST( - 5 AS SIGNED ) + ( 33 ) DIV - 36 AS col2 FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL + CAST ( - 5 AS INTEGER ) + ( 33 ) / - 36 AS col2 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - col0 + - 18 FROM tab1
----
-103
-109
-69

query I rowsort
SELECT - 35 AS col2 FROM tab2 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 44 + col0 > - ( 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT + col1 DIV - + 7 + - 58 * col2 + + ( - 91 ) AS col2 FROM tab2 AS cor0
----
-1432
-2422
-3464

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + col1 / - + 7 + - 58 * col2 + + ( - 91 ) AS col2 FROM tab2 AS cor0
----
-1432
-2422
-3464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-798
SELECT DISTINCT - + CAST( + 80 AS SIGNED ) + + 93 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT - + CAST ( + 80 AS INTEGER ) + + 93 FROM tab2 AS cor0
----
13

query I rowsort
SELECT DISTINCT + 62 FROM tab1 cor0
----
62

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

query I rowsort
SELECT + + 49 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT col0 DIV + - col0 + - 78 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT col0 / + - col0 + - 78 FROM tab0
----
-79

query I rowsort
SELECT - 84 + - - col0 FROM tab2 AS cor0
----
-20
-38
-9

query I rowsort
SELECT ALL 92 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST( 81 AS SIGNED ) * col0 + - 75 * - 22 ) IN ( col0 / col2 )
----

skipif mysql # not compatible
query III rowsort label-805
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST ( 81 AS INTEGER ) * col0 + - 75 * - 22 ) IN ( col0 / col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-806
SELECT ALL 8 + + 60 AS col2 FROM tab0 AS cor0 WHERE ( + col0 + + - CAST( NULL AS DECIMAL ) + col2 * col1 * 28 ) IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL 8 + + 60 AS col2 FROM tab0 AS cor0 WHERE ( + col0 + + - CAST ( NULL AS REAL ) + col2 * col1 * 28 ) IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + + col1 - + 38 FROM tab2 AS cor0
----
13
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT - COUNT( * ) - + MIN( DISTINCT + - col0 ) FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - COUNT ( * ) - + MIN ( DISTINCT + - col0 ) FROM tab2 cor0
----
72

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

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

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

query I rowsort
SELECT ALL col2 - - 75 - + + 82 * - col2 AS col0 FROM tab1 AS cor0
----
4972
5719
8043

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

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

query I rowsort
SELECT DISTINCT col2 * - 84 + col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 7 ) - - + ( - col1 ) col1 FROM tab1 AS cor0
----
-12
-21
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL COUNT( * ) - 19 AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL COUNT ( * ) - 19 AS col2 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT 44 * ( 48 ) * - col0 - - col1 FROM tab0
----
-183723
-204863
-31599

query I rowsort
SELECT + 30 - - 29 + + col0 FROM tab0
----
146
156
74

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( - 39 ) BETWEEN + ( col2 ) AND + col2 + - col1
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - + 56 ) * + col1 - + col1 = 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 86 * + col1 FROM tab2 AS cor0
----
-4386
-5762
-6622

query I rowsort
SELECT 4 * col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 ) > col2 * + 85 )
----

query II rowsort
SELECT - - ( - + col2 ) AS col0, - col0 AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT 3 + + MAX( DISTINCT - 62 ) AS col0 FROM tab2 WHERE NOT ( - col2 ) BETWEEN col1 * - 9 + + 93 AND - col1
----
-59

skipif mysql # not compatible
query I rowsort label-825
SELECT 3 + + MAX ( DISTINCT - 62 ) AS col0 FROM tab2 WHERE NOT ( - col2 ) BETWEEN col1 * - 9 + + 93 AND - col1
----
-59

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 JOIN tab0 AS cor1 ON ( NULL ) NOT IN ( 55 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT - - ( 16 ) DIV COUNT( * ) * - ( + + COUNT( * ) ) * - 58 - SUM( DISTINCT - 15 ) FROM tab1 cor0
----
885

skipif mysql # not compatible
query I rowsort label-827
SELECT - - ( 16 ) / COUNT ( * ) * - ( + + COUNT ( * ) ) * - 58 - SUM ( DISTINCT - 15 ) FROM tab1 cor0
----
885

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-829
SELECT + - COUNT( * ) DIV + 14 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 * - - 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-829
SELECT + - COUNT ( * ) / + 14 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 * - - 37 IS NULL
----
0

query II rowsort
SELECT + + 7, + ( - col2 ) AS col2 FROM tab0 AS cor0
----
7
-10
7
-47
7
-99

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

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

query I rowsort
SELECT DISTINCT - 79 * + col1 AS col1 FROM tab2 AS cor0
----
-4029
-5293
-6083

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT - 70 DIV - ( col1 ) AS col1 FROM tab0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-833
SELECT - 70 / - ( col1 ) AS col1 FROM tab0
----
0
3
70

query I rowsort
SELECT - + 59 FROM tab2, tab2 AS cor0 WHERE - 64 + - + 16 IS NOT NULL
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT + MAX( - col1 ) AS col0 FROM tab2 WHERE - 15 < - - 12
----
-51

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + MAX ( - col1 ) AS col0 FROM tab2 WHERE - 15 < - - 12
----
-51

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

query I rowsort
SELECT col0 * col2 + - - ( + col0 ) FROM tab1
----
4947
5100
6279

query I rowsort
SELECT 28 FROM tab2 WHERE col1 / 42 + ( ( 96 ) ) + col1 * + 97 NOT IN ( 26 )
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT + + 28 * - COUNT( * ) - - 27 + + + COUNT( * ) * SUM( - - col2 ) + 37 FROM tab0 AS cor0
----
448

skipif mysql # not compatible
query I rowsort label-839
SELECT + + 28 * - COUNT ( * ) - - 27 + + + COUNT ( * ) * SUM ( - - col2 ) + 37 FROM tab0 AS cor0
----
448

query I rowsort
SELECT - 85 * - + col0 + - ( - col0 ) FROM tab1 AS cor0
----
4386
7310
7826

onlyif mysql # aggregate syntax: 
query II rowsort label-841
SELECT DISTINCT - COUNT( * ), - 32 AS col0 FROM tab2 AS cor0
----
-3
-32

skipif mysql # not compatible
query II rowsort label-841
SELECT DISTINCT - COUNT ( * ), - 32 AS col0 FROM tab2 AS cor0
----
-3
-32

query I rowsort
SELECT ALL - + 89 + + - 24 * + + col0 + + col1 FROM tab0 AS cor0
----
-2156
-2416
-368

query I rowsort
SELECT + - col0 AS col1 FROM tab2 AS cor0 WHERE ( - 66 ) <= col2
----
-46
-64
-75

query I rowsort
SELECT col0 - - 29 AS col0 FROM tab2
----
104
75
93

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE 25 * col1 IN ( + col1 + + 75 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-846
SELECT + - col2 - CAST( + col1 AS SIGNED ) DIV + 43 FROM tab1 AS cor0
----
-59
-69
-96

skipif mysql # not compatible
query I rowsort label-846
SELECT + - col2 - CAST ( + col1 AS INTEGER ) / + 43 FROM tab1 AS cor0
----
-59
-69
-96

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT DISTINCT + - col2 + ( + + 60 ) DIV - 25 AS col0 FROM tab1 AS cor0
----
-61
-70
-98

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT + - col2 + ( + + 60 ) / - 25 AS col0 FROM tab1 AS cor0
----
-61
-70
-98

query I rowsort
SELECT ALL - + 43 AS col2 FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT DISTINCT - + COUNT( DISTINCT + 96 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - + COUNT ( DISTINCT + 96 ) FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-854
SELECT DISTINCT 5 AS col1, - CAST( NULL AS DECIMAL ) * - col1 / + col2 + ( ( + col0 ) ) * - col1 FROM tab0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT 5 AS col1, - CAST ( NULL AS REAL ) * - col1 / + col2 + ( ( + col0 ) ) * - col1 FROM tab0
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT - COUNT( * ) * + + 94 * - + 30 FROM tab0
----
8460

skipif mysql # not compatible
query I rowsort label-855
SELECT - COUNT ( * ) * + + 94 * - + 30 FROM tab0
----
8460

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL 33 * 49 * MIN( DISTINCT + 39 ) AS col2 FROM tab2
----
63063

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL 33 * 49 * MIN ( DISTINCT + 39 ) AS col2 FROM tab2
----
63063

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT - 81 * COUNT( * ) AS col2 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-858
SELECT - 81 * COUNT ( * ) AS col2 FROM tab0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-859
SELECT + CAST( + - col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-859
SELECT + CAST ( + - col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-862
SELECT 87 / + col0 * - CAST( NULL AS SIGNED ) AS col0, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-862
SELECT 87 / + col0 * - CAST ( NULL AS INTEGER ) AS col0, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - SUM( ALL col0 ) col1 FROM tab2 AS cor0
----
-185

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

query I rowsort
SELECT DISTINCT ( col1 ) + - - col2 AS col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + - 50 * - + col1 AS col2 FROM tab0 AS cor0
----
1050
4050
50

query I rowsort
SELECT ALL - 85 + - - col2 FROM tab0 cor0
----
-38
-75
14

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT 53 * + - col0 * - + col2 + + + col1 IS NULL
----
59
68
96

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL <> + 44
----

query I rowsort
SELECT - col1 FROM tab1 WHERE + col0 + + - col1 <= ( - col0 - - 76 + 52 * - col2 )
----

query I rowsort
SELECT ALL + col2 * ( - col2 ) AS col0 FROM tab0
----
-100
-2209
-9801

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL + CAST( - col0 AS SIGNED ) + - + 89 + + - col0 + + col0 + ( - 5 ) AS col1 FROM tab0
----
-109
-181
-191

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL + CAST ( - col0 AS INTEGER ) + - + 89 + + - col0 + + col0 + ( - 5 ) AS col1 FROM tab0
----
-109
-181
-191

query I rowsort
SELECT DISTINCT - col1 + ( 25 ) AS col1 FROM tab0
----
-56
24
4

query I rowsort
SELECT DISTINCT - 39 * + + 59 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL ( + COUNT( * ) ) + + + 62 AS col2 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL ( + COUNT ( * ) ) + + + 62 AS col2 FROM tab2
----
65

query I rowsort
SELECT DISTINCT - col2 * + 27 * - + 81 + - 82 AS col2 FROM tab1 cor0
----
128951
148634
209870

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

query I rowsort
SELECT 71 + - 96 * + ( + col0 ) + + col0 + + col2 * - + 84 AS col1 FROM tab1 AS cor0
----
-12838
-12960
-14286

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 7 * - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-63

skipif mysql # not compatible
query I rowsort label-882
SELECT 7 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 66 col0, - 94 FROM tab2 AS cor0
----
-66
-94
-66
-94
-66
-94

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-885
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NULL = - col0 / + 7
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-888
SELECT + col0, 51 + + col2 + + 10 DIV + col0 + - - 25 AS col1 FROM tab0 AS cor0
----
15
123
87
86
97
175

skipif mysql # not compatible
query II rowsort label-888
SELECT + col0, 51 + + col2 + + 10 / + col0 + - - 25 AS col1 FROM tab0 AS cor0
----
15
123
87
86
97
175

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT NULL NOT BETWEEN 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT DISTINCT - MAX( DISTINCT - - 84 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-891
SELECT DISTINCT - MAX ( DISTINCT - - 84 ) FROM tab2
----
-84

query I rowsort
SELECT ( - 99 ) FROM tab0
----
-99
-99
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL col2 DIV + + ( col1 ) col1 FROM tab1
----
1
11
6

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

onlyif mysql # DIV for integer division: 
query II rowsort label-895
SELECT 81 DIV - col0 AS col2, - 80 * - + 45 FROM tab2 AS cor0
----
-1
3600
-1
3600
-1
3600

skipif mysql # not compatible
query II rowsort label-895
SELECT 81 / - col0 AS col2, - 80 * - + 45 FROM tab2 AS cor0
----
-1
3600
-1
3600
-1
3600

query II rowsort
SELECT 86 + col1 * + 2 + + 25, col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 > col2
----
213
23
245
58
265
40

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

query I rowsort
SELECT - 67 + + 50 + - 83 AS col0 FROM tab1 AS cor0
----
-100
-100
-100

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

query I rowsort
SELECT DISTINCT + col0 + + - 5 * col0 * col1 FROM tab2 AS cor0
----
-11684
-24576
-25050

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

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

query I rowsort
SELECT 18 * col0 AS col2 FROM tab2 AS cor0
----
1152
1350
828

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 37 <= NULL
----

query I rowsort
SELECT + 6 AS col0 FROM tab2 cor0 WHERE - col0 < + col1
----
6
6
6

query I rowsort
SELECT ALL - - col1 + 96 FROM tab0 cor0
----
117
177
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, 51 * col1 + col0, + 99 * - col2 )
----

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

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

query II rowsort
SELECT ALL - col0 AS col0, + col2 * + - 11 FROM tab1 AS cor0 WHERE - 49 <= NULL
----

query I rowsort
SELECT + ( + - 50 ) + - col0 + - + 20 + - 61 AS col1 FROM tab2
----
-177
-195
-206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 41 * + + col1 col2 FROM tab0
----
18081
269001
41

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

query I rowsort
SELECT + 1 + - + 82 AS col2 FROM tab0
----
-81
-81
-81

query II rowsort
SELECT ALL col0 - + + col2 + + + 45 * - col0 AS col0, 35 AS col2 FROM tab2 AS cor0
----
-2047
35
-2856
35
-3358
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 39 <= + - col2 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT - CAST( - col1 AS SIGNED ) * + + 19 * - 48 FROM tab2 AS cor0
----
-46512
-61104
-70224

skipif mysql # not compatible
query I rowsort label-916
SELECT - CAST ( - col1 AS INTEGER ) * + + 19 * - 48 FROM tab2 AS cor0
----
-46512
-61104
-70224

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON - 30 NOT BETWEEN NULL AND + 12
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

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

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

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

query I rowsort
SELECT col0 * - col0 * + 47 AS col1 FROM tab1 AS cor0
----
-122247
-339575
-389207

query I rowsort
SELECT ALL + - 87 * - col0 FROM tab1 AS cor0
----
4437
7395
7917

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

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT + MIN( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-924
SELECT + MIN ( ALL - - col1 ) AS col2 FROM tab2 AS cor0
----
51

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-928
SELECT DISTINCT + 0 * + MIN( col1 ) AS col1, + SUM( ALL - + 46 ) FROM tab0 AS cor0
----
0
-138

skipif mysql # not compatible
query II rowsort label-928
SELECT DISTINCT + 0 * + MIN ( col1 ) AS col1, + SUM ( ALL - + 46 ) FROM tab0 AS cor0
----
0
-138

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 86, + col1, - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, 16 * - 28 col0 FROM tab2
----
23
-448
40
-448
58
-448

query I rowsort
SELECT col1 + + col2 AS col2 FROM tab2 WHERE NOT - - col2 IS NULL
----
117
125
74

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

query I rowsort
SELECT ALL 86 * - col0 * + - 36 * + col0 AS col2 FROM tab1
----
22368600
25637976
8052696

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col1, 15 * 74 )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT + + 20 + - COUNT( * ) DIV - - 9 AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-939
SELECT + + 20 + - COUNT ( * ) / - - 9 AS col0 FROM tab1 AS cor0
----
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-941
SELECT DISTINCT col1 col2, col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 11 - - col0 + + 71 + - CAST( NULL AS SIGNED ) + - - CAST( + 18 AS SIGNED ) / col0 + - col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-941
SELECT DISTINCT col1 col2, col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 11 - - col0 + + 71 + - CAST ( NULL AS INTEGER ) + - - CAST ( + 18 AS INTEGER ) / col0 + - col0 IS NULL
----

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

query I rowsort
SELECT + + 17 * - col0 * col1 AS col1 FROM tab1 cor0
----
-12138
-7225
-72709

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 41 = + 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT ALL col1 + col2 * + + 94, 18 AS col1 FROM tab1
----
5551
18
6439
18
9038
18

query III rowsort
SELECT * FROM tab0 WHERE + col2 + + 57 + - col1 * - col0 * - col0 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT SUM( DISTINCT - 40 ) - - + 71 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-950
SELECT SUM ( DISTINCT - 40 ) - - + 71 FROM tab2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-951
SELECT 5 DIV + 29 * + 40 - - - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-951
SELECT 5 / + 29 * + 40 - - - col2 FROM tab2
----
-23
-40
-58

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

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

query I rowsort
SELECT DISTINCT + col1 * - col1 - col2 - col2 FROM tab2 AS cor0
----
-2647
-4605
-6009

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 43 / + col0 BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 13 * 72 FROM tab1
----
936
936
936

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

query I rowsort
SELECT ALL - 6 FROM tab2 WHERE 17 BETWEEN NULL AND + ( - col1 )
----

query I rowsort
SELECT DISTINCT 78 * col1 AS col2 FROM tab2
----
3978
5226
6006

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

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

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

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

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

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

query II rowsort
SELECT ALL col2 AS col0, - col0 + + - 2 AS col1 FROM tab1
----
59
-87
68
-93
96
-53

query I rowsort
SELECT ALL col1 * col1 * 61 AS col2 FROM tab0
----
26901
400221
61

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

query I rowsort
SELECT - - col1 + + 76 * + col2 FROM tab1 WHERE NOT - + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT COUNT( * ) + 56 AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT COUNT ( * ) + 56 AS col2 FROM tab2
----
59

query I rowsort
SELECT ALL + 33 + - col2 FROM tab1
----
-26
-35
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT DISTINCT - COUNT( * ) * - 60 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - COUNT ( * ) * - 60 FROM tab0 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT 49 * - col2 + - 40 + - 30 DIV 63 FROM tab1 cor0
----
-2931
-3372
-4744

skipif mysql # not compatible
query I rowsort label-972
SELECT 49 * - col2 + - 40 + - 30 / 63 FROM tab1 cor0
----
-2931
-3372
-4744

query I rowsort
SELECT - 82 * - col0 FROM tab0
----
1230
7134
7954

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT - 8 AS col2, - MIN( ALL + - col1 ) * + 85 AS col0 FROM tab1 AS cor0
----
-8
3995

skipif mysql # not compatible
query II rowsort label-975
SELECT - 8 AS col2, - MIN ( ALL + - col1 ) * + 85 AS col0 FROM tab1 AS cor0
----
-8
3995

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 2 <> NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + col2 * - + col0 + - 57 FROM tab0 WHERE NOT ( - - col2 - - - col1 - - col0 * + + ( col2 ) * - col1 + 42 ) > 59 + + - col1 + col0
----
-715
-917
-9561

query II rowsort
SELECT col1 + - - 17 AS col0, - col1 + + col2 AS col2 FROM tab1
----
22
54
31
82
64
21

onlyif mysql # aggregate syntax: 
query II rowsort label-982
SELECT ALL - MIN( DISTINCT + col1 ) + + - ( + + COUNT( * ) ) + + ( + - COUNT( * ) ) * 21, - 54 AS col2 FROM tab1
----
-71
-54

skipif mysql # not compatible
query II rowsort label-982
SELECT ALL - MIN ( DISTINCT + col1 ) + + - ( + + COUNT ( * ) ) + + ( + - COUNT ( * ) ) * 21, - 54 AS col2 FROM tab1
----
-71
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-983
SELECT + col0 * col2 * - 89 AS col0, ( + CAST( 27 AS SIGNED ) ) + - col0 AS col1 FROM tab0
----
-62745
12
-77430
-60
-854667
-70

skipif mysql # not compatible
query II rowsort label-983
SELECT + col0 * col2 * - 89 AS col0, ( + CAST ( 27 AS INTEGER ) ) + - col0 AS col1 FROM tab0
----
-62745
12
-77430
-60
-854667
-70

query I rowsort
SELECT ALL - 33 * - + col0 AS col0 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT DISTINCT - col2 + - + col0 + + 67 FROM tab0
----
-129
-30
5

query II rowsort
SELECT - 89 * + - col0 AS col0, - col2 AS col1 FROM tab1
----
4539
-96
7565
-59
8099
-68

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 70 * + 20 IS NOT NULL
----

query I rowsort
SELECT - col0 * + 44 AS col2 FROM tab2 AS cor0
----
-2024
-2816
-3300

query I rowsort
SELECT + - 95 + + 54 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= col2 * + col2 * + col2
----

query I rowsort
SELECT DISTINCT + 17 * + col0 * + 24 AS col1 FROM tab0
----
35496
39576
6120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-991
SELECT DISTINCT + 90, - col2 * - - 50 * - col1 + + col1 + - 78 / CAST( NULL AS SIGNED ) / + + col1 * + 66 * - - col1 AS col0 FROM tab0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-991
SELECT DISTINCT + 90, - col2 * - - 50 * - col1 + + col1 + - 78 / CAST ( NULL AS INTEGER ) / + + col1 * + 66 * - - col1 AS col0 FROM tab0
----
90
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 >= 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ( MIN( + + 89 ) ) * - + MIN( ALL + col0 ) FROM tab2
----
-4094

skipif mysql # not compatible
query I rowsort label-993
SELECT ( MIN ( + + 89 ) ) * - + MIN ( ALL + col0 ) FROM tab2
----
-4094

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT - 30 * - MIN( + col0 ) AS col2 FROM tab2
----
1380

skipif mysql # not compatible
query I rowsort label-994
SELECT - 30 * - MIN ( + col0 ) AS col2 FROM tab2
----
1380

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

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 54 * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
162

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE 47 + ( + + 6 ) * - + CAST( - 29 AS SIGNED ) * - 26 > NULL
----

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE 47 + ( + + 6 ) * - + CAST ( - 29 AS INTEGER ) * - 26 > NULL
----

query I rowsort
SELECT ( col2 ) * col2 * - col1 FROM tab1 AS cor0 WHERE + 43 > + ( 35 ) AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * col2 col1 FROM tab2
----
-2277
-3960
-5742

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

query I rowsort
SELECT ALL 47 * + 7 FROM tab1
----
329
329
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1002
SELECT DISTINCT - 44 DIV + + COUNT( * ) AS col2 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT - 44 / + + COUNT ( * ) AS col2 FROM tab0
----
-14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT + SUM( ALL + 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT + SUM ( ALL + 33 ) FROM tab1 AS cor0
----
99

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1007
SELECT col1 + - 91 * - 73 * + - 77 * - 87 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT col1 + - 91 * - 73 * + - 77 * - 87 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ALL + 68 + + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
59

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + 68 + + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
59

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + 21 * + 81 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL + col1 * + col2 * + - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-197056
-291375
-53912

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1014
SELECT ALL - - 87 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 = - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - - 87 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 = - CAST ( NULL AS REAL )
----

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

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

query I rowsort
SELECT ALL - col2 - - - col1 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT col2 - + 29 + + - 89 AS col0 FROM tab2
----
-60
-78
-95

query I rowsort
SELECT - col2 - + 13 FROM tab1
----
-109
-72
-81

query I rowsort
SELECT ALL 66 * - + 39 AS col1 FROM tab2
----
-2574
-2574
-2574

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

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

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

query I rowsort
SELECT + + 27 FROM tab0 WHERE NOT + ( 81 ) IS NULL
----
27
27
27

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

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

query I rowsort
SELECT DISTINCT + 34 * - col2 AS col1 FROM tab0 WHERE 82 * + col1 + + 96 >= + - col0 + + ( + + col0 )
----
-1598
-3366
-340

query I rowsort
SELECT ALL + col0 + - - col0 FROM tab0 WHERE + ( + 93 ) IS NULL
----

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

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

query I rowsort
SELECT ALL + ( + col0 ) FROM tab2 AS cor0 WHERE NOT + col2 + + col0 IS NULL
----
46
64
75

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT 74 + COUNT ( * ) / ( - 88 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
74

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

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

query I rowsort
SELECT 90 * - col2 FROM tab2 AS cor0
----
-2070
-3600
-5220

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

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

query I rowsort
SELECT ALL - + col0 * + + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

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

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

query I rowsort
SELECT DISTINCT - 77 * col1 FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 17 BETWEEN + - ( col1 ) AND + col2 + - 40 - - + col1 * col2
----

query I rowsort
SELECT 99 * - - 59 AS col1 FROM tab0
----
5841
5841
5841

query I rowsort
SELECT DISTINCT 70 + 69 AS col0 FROM tab1
----
139

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 + + col1 - + col0, + 53 + - col1 col2 FROM tab0 AS cor0
----
-153
32
-193
52
51
-28

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT DISTINCT + 54 DIV + + col1 AS col0 FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT + 54 / + + col1 AS col0 FROM tab0
----
0
2
54

query I rowsort
SELECT 93 * + 68 FROM tab0
----
6324
6324
6324

query I rowsort
SELECT col2 - - col2 + - ( col1 ) * + col0 AS col1 FROM tab1
----
-307
-4141
-522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 3 + + col0 col2 FROM tab0 AS cor0
----
-126
-200
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT + col0 DIV + col0 - + col1 FROM tab1 cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-1053
SELECT + col0 / + col0 - + col1 FROM tab1 cor0
----
-13
-4
-46

query I rowsort
SELECT - col0 - - - 24 FROM tab2 AS cor0
----
-70
-88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT SUM( ALL - col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT SUM ( ALL - col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-202

query I rowsort
SELECT + 32 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-8
9

query I rowsort
SELECT - col1 + 79 AS col2 FROM tab1 AS cor0
----
32
65
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT DISTINCT 12 DIV 75 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT 12 / 75 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT 94 * - + 47 - - col2 FROM tab0 AS cor0
----
-4319
-4371
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT - - COUNT( * ) - - - 39 col1 FROM tab2 WHERE NULL IS NULL
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1061
SELECT - - COUNT ( * ) - - - 39 col1 FROM tab2 WHERE NULL IS NULL
----
-36

query I rowsort
SELECT DISTINCT + 91 FROM tab1 WHERE NOT + - col2 = NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ALL + 65 DIV + + col1 AS col1 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + 65 / + + col1 AS col1 FROM tab1
----
1
13
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT - col1 DIV + 75 * - - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1065
SELECT - col1 / + 75 * - - col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT - SUM( col1 ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT COUNT( * ) * + 78 AS col0 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-1067
SELECT COUNT ( * ) * + 78 AS col0 FROM tab0
----
234

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - 12 + + + 87 > NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT 67 col0, - COUNT( col0 ) FROM tab2 AS cor0
----
67
-3

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

query I rowsort
SELECT + 28 + + + col1 FROM tab2 AS cor0
----
105
79
95

query II rowsort
SELECT + - col0, + col1 FROM tab2 AS cor0 WHERE NOT - col0 < - col0
----
-46
51
-64
77
-75
67

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

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

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

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

query I rowsort
SELECT - - ( + col1 ) * + + 18 FROM tab0 AS cor0
----
1458
18
378

onlyif mysql # DIV for integer division: 
query II rowsort label-1076
SELECT DISTINCT - col1 * - 12 AS col2, + 64 DIV - 74 FROM tab2
----
612
0
804
0
924
0

skipif mysql # not compatible
query II rowsort label-1076
SELECT DISTINCT - col1 * - 12 AS col2, + 64 / - 74 FROM tab2
----
612
0
804
0
924
0

query II rowsort
SELECT ALL col2 + - 48 AS col1, col0 FROM tab2
----
-25
46
-8
64
10
75

query I rowsort
SELECT ALL ( - 14 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + 53 NOT IN ( 42 + col2 * - 53 - + col1 * - col2 )
----

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN + + col2 AND + col1
----
2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + col1 + - ( - + col0 ) col0, + 82 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1230
3854
1914
820
194
8118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1085
SELECT DISTINCT - - COUNT( * ) DIV + + 24 * + 95 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - - COUNT ( * ) / + + 24 * + 95 FROM tab2 cor0
----
0

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

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

query I rowsort
SELECT ALL + col1 + - col0 FROM tab1 WHERE - col0 IS NOT NULL
----
-37
-44
-80

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

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

query II rowsort
SELECT 82 * + col1, col0 * + col0 AS col2 FROM tab1
----
1148
2601
3854
8281
410
7225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * - 64 * - - col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * + 7 + - 5 FROM tab1 AS cor0
----
30
324
93

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

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

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

skipif mysql # not compatible
query I rowsort label-1095
SELECT MAX ( DISTINCT 64 ) AS col0 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1096
SELECT COUNT( * ) AS col0, + COUNT( * ) * - + 8 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3
-24

skipif mysql # not compatible
query II rowsort label-1096
SELECT COUNT ( * ) AS col0, + COUNT ( * ) * - + 8 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3
-24

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

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

query I rowsort
SELECT - + col1 * - col1 + + + 41 FROM tab1 AS cor0
----
2250
237
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + MAX( - 19 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + MAX ( - 19 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1101
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1101
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + - ( + 82 ) FROM tab0 AS cor0
----
1722
6642
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab0 WHERE NOT + col1 * col2 - + 58 * - col2 / - + col0 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT + - MIN( + col1 ) + 72 FROM tab2 WHERE + col2 / + ( col2 ) * - + col0 NOT BETWEEN 32 AND + + col1 / + CAST( + col0 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-1104
SELECT + - MIN ( + col1 ) + 72 FROM tab2 WHERE + col2 / + ( col2 ) * - + col0 NOT BETWEEN 32 AND + + col1 / + CAST ( + col0 AS INTEGER )
----
21

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

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

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT DISTINCT + 61 + + col2 DIV + col1 + - + col1 AS col1 FROM tab0
----
-20
159
40

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + 61 + + col2 / + col1 + - + col1 AS col1 FROM tab0
----
-20
159
40

query I rowsort
SELECT + 42 + ( - col1 ) FROM tab0 cor0
----
-39
21
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT - 14 * col0 DIV - - col2 FROM tab2 AS cor0 WHERE 28 IS NOT NULL
----
-18
-22
-28

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 14 * col0 / - - col2 FROM tab2 AS cor0 WHERE 28 IS NOT NULL
----
-18
-22
-28

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

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

query I rowsort
SELECT - col1 - + 94 * 7 FROM tab0
----
-659
-679
-739

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

query II rowsort
SELECT - col0 AS col0, col1 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1114
SELECT ALL + + CAST( + - AVG ( 46 ) AS SIGNED ) + + + COUNT( * ) * 66 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + + CAST ( + - AVG ( 46 ) AS INTEGER ) + + + COUNT ( * ) * 66 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

query II rowsort
SELECT - 92 AS col2, - col2 AS col0 FROM tab2 WHERE NOT NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * - - col1 col2 FROM tab0
----
-1155
-4455
-55

query I rowsort
SELECT DISTINCT - ( - + col0 ) * col0 + col1 AS col0 FROM tab0
----
306
7590
9410

query I rowsort
SELECT ALL - col1 * - 3 FROM tab2
----
153
201
231

query I rowsort
SELECT - col2 * - 17 FROM tab0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT ( + - COUNT( * ) ) * - - 20 AS col1 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT ( + - COUNT ( * ) ) * - - 20 AS col1 FROM tab2
----
-60

query I rowsort
SELECT col2 * 23 AS col1 FROM tab0
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT DISTINCT COUNT( DISTINCT + 89 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT COUNT ( DISTINCT + 89 ) AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1124
SELECT - col0 * CAST( + col2 AS SIGNED ) + + - 80 AS col2, col0 / - + col1 / + ( + CAST( NULL AS SIGNED ) ) * 75 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-4976
NULL
-5095
NULL
-6268
NULL

skipif mysql # not compatible
query II rowsort label-1124
SELECT - col0 * CAST ( + col2 AS INTEGER ) + + - 80 AS col2, col0 / - + col1 / + ( + CAST ( NULL AS INTEGER ) ) * 75 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-4976
NULL
-5095
NULL
-6268
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1125
SELECT COUNT( DISTINCT 78 ) * - COUNT( * ) DIV - 43 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1125
SELECT COUNT ( DISTINCT 78 ) * - COUNT ( * ) / - 43 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL + MAX( - + 13 ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + MAX ( - + 13 ) AS col0 FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1127
SELECT ALL + 42 DIV + COUNT( * ) FROM tab2 cor0
----
14

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + 42 / + COUNT ( * ) FROM tab2 cor0
----
14

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 4 * 2 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT 86 * col1 + col2 - - + col0 + 48 + + - 62 + - col2 * + - col2 * - - CAST( NULL AS SIGNED ) - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT 86 * col1 + col2 - - + col0 + 48 + + - 62 + - col2 * + - col2 * - - CAST ( NULL AS INTEGER ) - + col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 < - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - col1 + + col1 AS col0 FROM tab2 AS cor0
----
1224
3157
3953

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT + ( 61 ) DIV + 16 AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1135
SELECT + ( 61 ) / + 16 AS col0 FROM tab0
----
3
3
3

query I rowsort
SELECT DISTINCT - 19 * + col0 + - ( col1 ) FROM tab1
----
-1620
-1776
-983

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

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

query I rowsort
SELECT ALL + 69 - - - 89 FROM tab0 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT - 4 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1139
SELECT - 4 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT + 72 + 1 + COUNT( ALL + 83 ) - + 64 * - 59 AS col2 FROM tab2 AS cor0
----
3852

skipif mysql # not compatible
query I rowsort label-1140
SELECT + 72 + 1 + COUNT ( ALL + 83 ) - + 64 * - 59 AS col2 FROM tab2 AS cor0
----
3852

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - + 26 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - + 26 = NULL
----
0

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 27 AS col1, - col0 + col0 FROM tab1 AS cor0
----
27
0
27
0
27
0

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

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

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

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

query I rowsort
SELECT ALL + 46 * col1 FROM tab1 cor0 WHERE col1 * - 82 * + col2 <> - + 62
----
2162
230
644

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

query II rowsort
SELECT - 48 AS col0, - col0 + 29 + col1 FROM tab2 cor0
----
-48
21
-48
34
-48
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL - - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( - 93 ) * col1 + + - col1 * + col1 + + col2 FROM tab2
----
-10662
-13050
-7321

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT ( NOT NULL < ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( NOT NULL < ( NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL MAX( DISTINCT + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab1
----
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( col0 ), 68 * 12 col0 FROM tab1 AS cor0
----
-51
816
-85
816
-91
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1159
SELECT - CAST( - col2 AS SIGNED ) - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 + + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1159
SELECT - CAST ( - col2 AS INTEGER ) - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 + + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-17
-23
-24

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

query I rowsort
SELECT DISTINCT + - 24 * - - col0 FROM tab2 AS cor0
----
-1104
-1536
-1800

query I rowsort
SELECT ( + + 78 ) AS col0 FROM tab1
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT - SUM( ALL + 4 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-36

skipif mysql # not compatible
query I rowsort label-1163
SELECT - SUM ( ALL + 4 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-36

query I rowsort
SELECT DISTINCT + col2 + - col1 * + 19 AS col2 FROM tab2 AS cor0
----
-1215
-1423
-946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 AS col1, col1 * - 59 col2 FROM tab1 AS cor0
----
51
-826
85
-295
91
-2773

query I rowsort
SELECT ALL col2 + col1 + 73 AS col1 FROM tab2 AS cor0
----
147
190
198

query I rowsort
SELECT 97 - - 95 FROM tab1 cor0
----
192
192
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - COUNT( * ) + - + COUNT( * ) + + - COUNT( * ) - 41 * - 68 + + 24 * - 47 AS col1 FROM tab1 AS cor0
----
1651

skipif mysql # not compatible
query I rowsort label-1168
SELECT - COUNT ( * ) + - + COUNT ( * ) + + - COUNT ( * ) - 41 * - 68 + + 24 * - 47 AS col1 FROM tab1 AS cor0
----
1651

query I rowsort
SELECT ALL - 10 * + col2 - - col2 AS col2 FROM tab0 AS cor0
----
-423
-891
-90

query I rowsort
SELECT + col1 + - col0 + col0 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 + + + col1 col0 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT SUM( - col0 ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT SUM ( - col0 ) AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
-227

query I rowsort
SELECT - 4 / + + 57 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col2 ) + - col2 AS col1 FROM tab1
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT DISTINCT CAST( col2 AS SIGNED ) + col1 + 5 AS col2 FROM tab2 AS cor0
----
122
130
79

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col1 + 5 AS col2 FROM tab2 AS cor0
----
122
130
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT 86 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-1177
SELECT 86 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
258

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 88 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL COUNT( DISTINCT + - col1 ) * - COUNT( * ) * + 96 FROM tab1
----
-864

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL COUNT ( DISTINCT + - col1 ) * - COUNT ( * ) * + 96 FROM tab1
----
-864

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

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

query I rowsort
SELECT DISTINCT col2 * - - 88 FROM tab0
----
4136
8712
880

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) >= - col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1187
SELECT + COUNT( * ), COUNT( * ) col2 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1187
SELECT + COUNT ( * ), COUNT ( * ) col2 FROM tab1
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN 98 AND + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 * + - col0 col0 FROM tab2
----
-1978
-2752
-3225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT - 61 * - + COUNT( - col1 ) AS col0 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-1191
SELECT - 61 * - + COUNT ( - col1 ) AS col0 FROM tab2
----
183

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 35 / - - ( - 1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT + col2 * - + col2 + - 94 AS col0 FROM tab1 AS cor0
----
-3575
-4718
-9310

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

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

query I rowsort
SELECT ALL 63 * + 15 AS col2 FROM tab2
----
945
945
945

query I rowsort
SELECT + col0 * - col0 FROM tab1 WHERE col0 * - - col0 IS NOT NULL
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab1 WHERE - 16 >= - col1 + - - col2 + 73 + - - 68 * + col0 * - col1 * col2 + 5 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 WHERE + - 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1202
SELECT DISTINCT - 45 DIV + col0 + 7 - - 59 + + 82 AS col1 FROM tab1 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - 45 / + col0 + 7 - - 59 + + 82 AS col1 FROM tab1 AS cor0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT DISTINCT - 24 DIV + 56 * + col1 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT - 24 / + 56 * + col1 + - col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1204
SELECT ALL - ( + 31 ) - + + CAST( - COUNT( ALL - 83 ) AS SIGNED ) * - + COUNT( * ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - ( + 31 ) - + + CAST ( - COUNT ( ALL - 83 ) AS INTEGER ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-1205
SELECT + col2 AS col1, + 80 DIV + col1 AS col2 FROM tab1
----
59
16
68
1
96
5

skipif mysql # not compatible
query II rowsort label-1205
SELECT + col2 AS col1, + 80 / + col1 AS col2 FROM tab1
----
59
16
68
1
96
5

query I rowsort
SELECT ALL - 76 AS col1 FROM tab2
----
-76
-76
-76

query I rowsort
SELECT - 67 - - ( + col1 ) + - + col0 FROM tab1
----
-104
-111
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT 32 * + CAST( + + 65 AS SIGNED ) - - + 74 FROM tab0
----
2154
2154
2154

skipif mysql # not compatible
query I rowsort label-1208
SELECT 32 * + CAST ( + + 65 AS INTEGER ) - - + 74 FROM tab0
----
2154
2154
2154

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT DISTINCT 55 * + + SUM( DISTINCT col1 ) AS col2 FROM tab2
----
10725

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT 55 * + + SUM ( DISTINCT col1 ) AS col2 FROM tab2
----
10725

query III rowsort
SELECT ALL * FROM tab0 WHERE - 90 <= NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) > - 63
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT - COUNT( DISTINCT + - 69 ) col0 FROM tab1 AS cor0
----
-1

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

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

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

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

query I rowsort
SELECT DISTINCT + 85 + - 69 * col2 FROM tab0
----
-3158
-605
-6746

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

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

query I rowsort
SELECT DISTINCT + col0 + - 53 AS col2 FROM tab0
----
-38
34
44

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

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

query I rowsort
SELECT col0 * - col0 + col1 * col1 FROM tab1
----
-2405
-6072
-7200

query I rowsort
SELECT DISTINCT 41 * col2 + 51 AS col1 FROM tab1
----
2470
2839
3987

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT col1 * 24 > NULL
----

query I rowsort
SELECT + 35 + + col2 AS col2 FROM tab1
----
103
131
94

query I rowsort
SELECT + 68 + ( - col0 ) * + col0 AS col0 FROM tab2
----
-2048
-4028
-5557

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

query I rowsort
SELECT + ( ( - col1 ) ) + + 77 AS col0 FROM tab1
----
30
63
72

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

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

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

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

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

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN ( - col1 * 55 ) AND ( col1 )
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + COUNT( col2 ) FROM tab0 WHERE NULL IN ( - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-1233
SELECT + COUNT ( col2 ) FROM tab0 WHERE NULL IN ( - 30 )
----
0

query I rowsort
SELECT - col1 FROM tab0 WHERE + col1 + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col1 * - col0 )
----

query I rowsort
SELECT - 49 * 68 AS col2 FROM tab0
----
-3332
-3332
-3332

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT + MAX( ALL col0 ) + MAX( col0 ) * - 93 AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT + MAX ( ALL col0 ) + MAX ( col0 ) * - 93 AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

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

query I rowsort
SELECT + 26 + - col1 FROM tab1 AS cor0
----
-21
12
21

query I rowsort
SELECT DISTINCT 45 * + col1 AS col0 FROM tab1 cor0
----
2115
225
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 31 col1 FROM tab2
----
-8
27
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT COUNT( * ) - 30 AS col0 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1244
SELECT COUNT ( * ) - 30 AS col0 FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - ( + 68 ) col1 FROM tab2 AS cor0
----
-1
-17
9

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1249
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( ( CAST( - 91 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-1249
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( ( CAST ( - 91 AS REAL ) ) )
----

query I rowsort
SELECT DISTINCT + col0 + - 78 FROM tab1 AS cor0
----
-27
13
7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT DISTINCT + col1 DIV col2 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT + col1 / col2 + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT ALL - ( + col0 ) DIV col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL - ( + col0 ) / col1 FROM tab0 AS cor0
----
-4
-97
0

query I rowsort
SELECT ALL 7 - 42 AS col1 FROM tab0 AS cor0
----
-35
-35
-35

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

query I rowsort
SELECT + 25 * + 18 + - 33 FROM tab1 AS cor0
----
417
417
417

query I rowsort
SELECT DISTINCT + - 25 - col0 FROM tab2 AS cor0
----
-100
-71
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1258
SELECT DISTINCT + - 91 / - AVG ( col1 ) - - CAST( - 92 + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT + - 91 / - AVG ( col1 ) - - CAST ( - 92 + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL col0 - - col2 FROM tab1 WHERE NOT + ( 32 ) - col2 NOT BETWEEN + 40 AND NULL
----

query I rowsort
SELECT - ( - 82 ) * + col2 AS col1 FROM tab2
----
1886
3280
4756

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - col0 AND + 10 / + 25 - 47 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 68 = ( + col1 / 28 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + 3 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL - ( - col2 ) * - - 44 FROM tab0
----
2068
4356
440

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

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

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

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

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

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 71 NOT BETWEEN - + col1 * 78 + - col2 * + col2 AND + col0 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - + col0, - col1 AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT ALL - col1 DIV - col0 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL - col1 / - col0 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT col1 + - 94 FROM tab1 AS cor0 WHERE NOT - col1 * 75 * col1 + col0 IS NULL
----
-47
-80
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 25 ), - col2 + col0 - + ( - col1 ) col0 FROM tab2
----
-25
101
-25
74
-25
84

query I rowsort
SELECT 74 FROM tab2 WHERE + + col0 + - + col0 > ( 8 )
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / - col0 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT DISTINCT col0 + col0 AS col1 FROM tab2 WHERE NOT + + col2 * 57 / - - col0 BETWEEN - CAST( NULL AS SIGNED ) * col2 AND - col1 * col2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT col0 + col0 AS col1 FROM tab2 WHERE NOT + + col2 * 57 / - - col0 BETWEEN - CAST ( NULL AS INTEGER ) * col2 AND - col1 * col2
----
128
150
92

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

query I rowsort
SELECT ALL col0 + - 43 FROM tab2 AS cor0
----
21
3
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT DISTINCT + 38 - - col0 + - - col0 DIV - 16 AS col0 FROM tab2 cor0
----
109
82
98

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT + 38 - - col0 + - - col0 / - 16 AS col0 FROM tab2 cor0
----
109
82
98

query I rowsort
SELECT DISTINCT - col1 * col1 - - col1 FROM tab1 AS cor0
----
-182
-20
-2162

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

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

query I rowsort
SELECT - 52 - - col0 FROM tab1 AS cor0
----
-1
33
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE + 62 + + col1 - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1295
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE + 62 + + col1 - col2 IS NOT NULL
----
-3

query I rowsort
SELECT - + col1 - + 5 AS col1 FROM tab1 cor0
----
-10
-19
-52

query I rowsort
SELECT col0 * 18 * col2 FROM tab1
----
111384
88128
90270

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

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

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

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

query I rowsort
SELECT ALL + 7 * + - 68 FROM tab2
----
-476
-476
-476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT DISTINCT - 96 * CAST( + - col1 AS SIGNED ) FROM tab0
----
2016
7776
96

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT - 96 * CAST ( + - col1 AS INTEGER ) FROM tab0
----
2016
7776
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT DISTINCT col1 DIV - 33 AS col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT col1 / - 33 AS col0 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT DISTINCT + MAX( - 8 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT + MAX ( - 8 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 42 * - 63 + - ( - - col1 ) * + col2 * + col1 NOT BETWEEN ( - col0 ) AND 97
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1311
SELECT ALL - - MAX( + col0 ) DIV CAST( 81 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL - - MAX ( + col0 ) / CAST ( 81 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT ALL - 65 + - + col2 DIV - + 78 * - col1 DIV + 20 + - col2 FROM tab2 AS cor0
----
-105
-123
-88

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - 65 + - + col2 / - + 78 * - col1 / + 20 + - col2 FROM tab2 AS cor0
----
-105
-123
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT - - COUNT( * ) * + 74 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-1313
SELECT - - COUNT ( * ) * + 74 FROM tab0 AS cor0
----
222

query I rowsort
SELECT + + col1 * + - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT DISTINCT + - MAX( ALL - - 27 ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT + - MAX ( ALL - - 27 ) FROM tab2 AS cor0
----
-27

query III rowsort
SELECT * FROM tab0 WHERE + col1 - + col2 * + + col2 * - col0 * + - 6 = ( - col2 )
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + 64 IN ( - col2 * + - col2 )
----

query I rowsort
SELECT col0 + - - col1 - 86 * 28 FROM tab1
----
-2270
-2318
-2343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT - CAST( NULL AS SIGNED ) * + - MAX( DISTINCT col2 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT - CAST ( NULL AS INTEGER ) * + - MAX ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + col0 < ( + 9 )
----

query I rowsort
SELECT 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1325
SELECT + + col2 * + col2 * - col1 + + col1 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
-123123
-225321
-26928

skipif mysql # not compatible
query I rowsort label-1325
SELECT + + col2 * + col2 * - col1 + + col1 FROM tab2 WHERE + CAST ( NULL AS REAL ) IS NULL
----
-123123
-225321
-26928

query I rowsort
SELECT - col2 - ( + 87 ) FROM tab1
----
-146
-155
-183

query I rowsort
SELECT - - col1 * + + ( + - 19 ) + + + col1 FROM tab0 AS cor0
----
-1458
-18
-378

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT DISTINCT - MIN( ALL 56 ) FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT - MIN ( ALL 56 ) FROM tab1 cor0
----
-56

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 50 < NULL
----

query I rowsort
SELECT ALL + 79 * col2 AS col1 FROM tab2
----
1817
3160
4582

query I rowsort
SELECT col1 * + col1 * - + col2 FROM tab2
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 * + - col0 col2 FROM tab2
----
-2116
-2944
-3450

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1338
SELECT 70 AS col1, CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
70
NULL
70
NULL
70
NULL

skipif mysql # not compatible
query II rowsort label-1338
SELECT 70 AS col1, CAST ( NULL AS REAL ) AS col1 FROM tab0
----
70
NULL
70
NULL
70
NULL

query I rowsort
SELECT ( - 69 ) * + ( col2 ) FROM tab1
----
-4071
-4692
-6624

query I rowsort
SELECT 35 * col0 * + ( 98 ) FROM tab2
----
157780
219520
257250

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

query II rowsort
SELECT DISTINCT - 86, 73 AS col0 FROM tab1
----
-86
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT 59 * - MAX( ALL 22 ) FROM tab0
----
-1298

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT 59 * - MAX ( ALL 22 ) FROM tab0
----
-1298

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

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

query II rowsort
SELECT DISTINCT - col0 AS col2, 56 AS col2 FROM tab2
----
-46
56
-64
56
-75
56

query I rowsort
SELECT ALL + col1 * + - 35 + + ( + col1 ) AS col1 FROM tab0
----
-2754
-34
-714

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1348
SELECT DISTINCT 43 + - col1 DIV + col2 * + col2 * + col0 + col0, col2 - + - col2 AS col2 FROM tab1
----
128
118
134
136
94
192

skipif mysql # not compatible
query II rowsort label-1348
SELECT DISTINCT 43 + - col1 / + col2 * + col2 * + col0 + col0, col2 - + - col2 AS col2 FROM tab1
----
128
118
134
136
94
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT - MAX( DISTINCT - + col0 ) col2 FROM tab0
----
15

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 = + col0
----

query I rowsort
SELECT DISTINCT - + col2 + - 84 * + col1 FROM tab0 AS cor0
----
-1774
-183
-6851

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

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

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

query I rowsort
SELECT - col2 * + col1 FROM tab0 WHERE NULL IS NULL
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1356
SELECT ALL * FROM tab1 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-1356
SELECT ALL * FROM tab1 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + - 65 + - 54 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT col2 DIV - 57 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT col2 / - 57 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 11 + col2 - + 78 - - + col2 col0 FROM tab1 AS cor0
----
115
199
88

query I rowsort
SELECT ALL + + 77 - - + col0 * + + col0 FROM tab0 AS cor0
----
302
7646
9486

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

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + col2 >= - col1 * - - col0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT 30 + 10 - - COUNT( * ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-1363
SELECT 30 + 10 - - COUNT ( * ) AS col1 FROM tab1
----
43

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT ALL CAST( col1 AS SIGNED ) + - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL CAST ( col1 AS INTEGER ) + - col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1366
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT 16 * - col2 + col2 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1366
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT 16 * - col2 + col2 < NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1369
SELECT ALL MAX ( - col2 ) col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1370
SELECT DISTINCT * FROM tab2 WHERE + - col2 >= + + CAST( - col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1370
SELECT DISTINCT * FROM tab2 WHERE + - col2 >= + + CAST ( - col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col0 FROM tab1 WHERE NULL <> 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT COUNT( * ) + + + 34 AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT COUNT ( * ) + + + 34 AS col2 FROM tab2
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 27 * - - 88 col2 FROM tab2 AS cor0
----
2427
2443
2453

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL - CAST( SUM( ALL - CAST( 16 AS SIGNED ) ) AS SIGNED ) FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - CAST ( SUM ( ALL - CAST ( 16 AS INTEGER ) ) AS INTEGER ) FROM tab0 cor0
----
48

query I rowsort
SELECT ALL + 56 * - 92 * - col0 FROM tab2 AS cor0
----
236992
329728
386400

query I rowsort
SELECT - 12 + - col1 * - 39 + col0 FROM tab0 AS cor0
----
124
3162
894

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1380
SELECT AVG ( DISTINCT 59 ) + ( + - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT AVG ( DISTINCT 59 ) + ( + - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT - MIN( DISTINCT col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT - 26 + - - col2 FROM tab0
----
-16
21
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT + SUM( DISTINCT - 2 ) - - COUNT( * ) + - - 58 * + 19 FROM tab1 AS cor0
----
1103

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT + SUM ( DISTINCT - 2 ) - - COUNT ( * ) + - - 58 * + 19 FROM tab1 AS cor0
----
1103

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

query I rowsort
SELECT 27 * - col0 + - - col1 FROM tab2 AS cor0
----
-1191
-1651
-1958

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

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

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

query I rowsort
SELECT ALL + ( + ( - + col0 ) ) * + col1 * 77 FROM tab0 AS cor0
----
-140679
-7469
-93555

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

query II rowsort
SELECT DISTINCT + + ( + - col1 ), col1 + - + col2 AS col2 FROM tab0 AS cor0
----
-1
-98
-21
11
-81
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT + COUNT( ALL + 74 ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1393
SELECT DISTINCT + COUNT ( ALL + 74 ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

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

query II rowsort
SELECT 78 * col1, col0 FROM tab0 AS cor0
----
1638
87
6318
15
78
97

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT ALL - col2 DIV + + 19 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - col2 / + + 19 FROM tab0
----
-2
-5
0

query I rowsort
SELECT col0 + col1 + - + col0 + + ( 77 ) FROM tab2 WHERE NOT + 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1402
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - 1 * ( col0 ) * + col0 ) NOT IN ( CAST( - col2 AS SIGNED ), - 18 )
----

skipif mysql # not compatible
query III rowsort label-1402
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - 1 * ( col0 ) * + col0 ) NOT IN ( CAST ( - col2 AS INTEGER ), - 18 )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 92 * col0 ) BETWEEN NULL AND + ( + + col0 ) * + col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT + col1 + + col1, + col0 FROM tab2
----
102
46
134
75
154
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - MAX( ALL - col2 ) + 89 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1409
SELECT - MAX ( ALL - col2 ) + 89 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT DISTINCT + 38 * MIN( ALL + - col0 ) FROM tab1 WHERE - - col2 IN ( + col2 * - CAST( NULL AS SIGNED ), 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT + 38 * MIN ( ALL + - col0 ) FROM tab1 WHERE - - col2 IN ( + col2 * - CAST ( NULL AS INTEGER ), 30 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 21 col2 FROM tab2 AS cor0
----
72
88
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 46 + - 31 + col1 < col1 - 89
----

query I rowsort
SELECT ALL + 29 AS col2 FROM tab0 cor0 WHERE NULL > - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT - 61 + + 78 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-295

skipif mysql # not compatible
query I rowsort label-1415
SELECT - 61 + + 78 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-295

query I rowsort
SELECT + - 82 * col0 AS col0 FROM tab1 AS cor0 WHERE ( - col1 + - 4 IS NULL )
----

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

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

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

query I rowsort
SELECT + 16 * + 53 FROM tab2
----
848
848
848

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

query I rowsort
SELECT col0 - + 31 - col0 AS col0 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT - 84 - - col2 * - col1 AS col1 FROM tab0
----
-183
-294
-3891

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT 30 DIV + ( - col0 ) - col2 AS col1 FROM tab0
----
-10
-49
-99

skipif mysql # not compatible
query I rowsort label-1424
SELECT 30 / + ( - col0 ) - col2 AS col1 FROM tab0
----
-10
-49
-99

query I rowsort
SELECT ALL col1 + + col0 + 85 * - col1 - ( - 98 ) FROM tab2
----
-4140
-5455
-6306

query I rowsort
SELECT + col0 + + + 45 AS col2 FROM tab1 AS cor0
----
130
136
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1428
SELECT DISTINCT + - col2 DIV + + col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT + - col2 / + + col2 AS col0 FROM tab1 AS cor0
----
-1

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 34
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1433
SELECT ALL - - col2 AS col0, - col1 + - CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1433
SELECT ALL - - col2 AS col0, - col1 + - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1435
SELECT DISTINCT + - col0 AS col2, col0 DIV - 7 col0 FROM tab2 AS cor0
----
-46
-6
-64
-9
-75
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1435
SELECT DISTINCT + - col0 AS col2, col0 / - 7 col0 FROM tab2 AS cor0
----
-46
-6
-64
-9
-75
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT - - 97 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - 97 < NULL
----
0

query II rowsort
SELECT ALL + col0, + 40 FROM tab0 WHERE + + col1 / 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL ( + - SUM( - 51 ) ) AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL ( + - SUM ( - 51 ) ) AS col0 FROM tab1
----
153

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 25 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + - + col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE + 81 = - col0
----

query II rowsort
SELECT DISTINCT col1 * - col2 AS col2, + ( - col1 ) - - 42 FROM tab0
----
-210
21
-3807
-39
-99
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1446
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) col0, COUNT( * ) DIV + + COUNT( * ) col0 FROM tab0
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1446
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0, COUNT ( * ) / + + COUNT ( * ) col0 FROM tab0
----
NULL
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1447
SELECT ALL - 0 DIV col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-1447
SELECT ALL - 0 / col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT DISTINCT - 5 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT - 5 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL COUNT( * ) + + - 42 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL COUNT ( * ) + + - 42 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT - 71 - - col1 AS col2 FROM tab0 AS cor0
----
-50
-70
10

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

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

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

query II rowsort
SELECT + - col2 + - - col2 + - - col1, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT - 52 + + - 12 FROM tab0 AS cor0
----
-64
-64
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab2, tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE - 69 / - col2 < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT CAST( + 22 AS SIGNED ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT CAST ( + 22 AS INTEGER ) FROM tab1
----
22

query I rowsort
SELECT 69 * 95 AS col1 FROM tab1
----
6555
6555
6555

query I rowsort
SELECT ALL - col2 + + ( + col0 ) * - col2 FROM tab0
----
-752
-880
-9702

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 43 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL - 73 * - ( + MIN( - col2 ) ) AS col0 FROM tab2
----
-4234

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - 73 * - ( + MIN ( - col2 ) ) AS col0 FROM tab2
----
-4234

query I rowsort
SELECT ALL + col0 * 62 * + col1 FROM tab1
----
26350
265174
44268

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

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

query I rowsort
SELECT 32 * + + col0 FROM tab1
----
1632
2720
2912

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

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT + - COUNT ( * ) / MAX ( - - col0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT ALL - + 4 DIV + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - + 4 / + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 * - - col0 * - col1 col1 FROM tab2 AS cor0
----
218178
458304
467325

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

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

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

query II rowsort
SELECT col0, 37 * col1 FROM tab1
----
51
518
85
185
91
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL 39 * COUNT( * ) AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL 39 * COUNT ( * ) AS col2 FROM tab2
----
117

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL <> - - col0 / + - col2 + 89
----

query II rowsort
SELECT col2, col1 * + col1 FROM tab1
----
59
25
68
2209
96
196

query II rowsort
SELECT 72 AS col1, - col2 + + col1 * ( col0 ) FROM tab0
----
72
-2
72
1168
72
1817

query I rowsort
SELECT DISTINCT + col1 + - col1 * + 91 AS col2 FROM tab2
----
-4590
-6030
-6930

query I rowsort
SELECT ALL + col2 * 60 + + + col0 AS col2 FROM tab2
----
1426
2464
3555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1484
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2, 79 col2 FROM tab1
----
51
79
85
79
91
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1484
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2, 79 col2 FROM tab1
----
51
79
85
79
91
79

query I rowsort
SELECT - ( col1 ) FROM tab0 WHERE - 57 IS NOT NULL
----
-1
-21
-81

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

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

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

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

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

query II rowsort
SELECT + ( - col2 ) + + col0 AS col2, + col1 + col0 - + col1 FROM tab2
----
17
75
23
46
24
64

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

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

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT + MAX ( DISTINCT - col1 ) * + - MIN ( ALL + col1 ) AS col2 FROM tab0 cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL - COUNT ( * ) + - 88 AS col0 FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL col1 - 26 FROM tab2 AS cor0
----
25
41
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 * - - col1 col1 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT 59 - + col2 FROM tab2
----
1
19
36

query I rowsort
SELECT 7 * - col0 * + col1 AS col2 FROM tab0
----
-12789
-679
-8505

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col0, - 9 FROM tab2 cor0
----
23
-9
40
-9
58
-9

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

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

query I rowsort
SELECT - ( + + 72 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + - 57 <= NULL
----

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

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

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

query I rowsort
SELECT - - 90 * + col2 AS col2 FROM tab2 AS cor0
----
2070
3600
5220

onlyif mysql # DIV for integer division: 
query II rowsort label-1508
SELECT + - 51 DIV col0, - col0 * + col0 + + + col1 AS col1 FROM tab1 AS cor0
----
-1
-2587
0
-7220
0
-8234

skipif mysql # not compatible
query II rowsort label-1508
SELECT + - 51 / col0, - col0 * + col0 + + + col1 AS col1 FROM tab1 AS cor0
----
-1
-2587
0
-7220
0
-8234

query II rowsort
SELECT DISTINCT - - col2 * - - 99, 52 AS col2 FROM tab1 AS cor0
----
5841
52
6732
52
9504
52

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

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

skipif mysql # not compatible
query I rowsort label-1511
SELECT - SUM ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab2 WHERE - ( - 62 ) BETWEEN + col0 AND - col1 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT MIN( DISTINCT + + col2 ) + + COUNT( * ) * + + COUNT( * ) col2 FROM tab0
----
19

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

query I rowsort
SELECT DISTINCT + col2 + - col0 + - 91 + + col1 * + col1 + + col0 AS col2 FROM tab0
----
360
6517
9

query I rowsort
SELECT ALL + - 82 * + - col0 * - col2 * - col0 AS col0 FROM tab1 AS cor0
----
20475072
34954550
46174856

query I rowsort
SELECT 75 + - col1 FROM tab0 AS cor0
----
-6
54
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 13 AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1517
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 13 AS col2 FROM tab1 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + + 51 ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1519
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT - col1 / - ( + + 95 ) + + col0 >= col1 - + 25 + + 58 AND NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT - col1 / - ( + + 95 ) + + col0 >= col1 - + 25 + + 58 AND NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1520
SELECT + ( + + COUNT( * ) ) - - COUNT( - col1 ) AS col0, 47 FROM tab2
----
6
47

skipif mysql # not compatible
query II rowsort label-1520
SELECT + ( + + COUNT ( * ) ) - - COUNT ( - col1 ) AS col0, 47 FROM tab2
----
6
47

query I rowsort
SELECT + + 71 * + 8 - + col1 FROM tab0 AS cor0
----
487
547
567

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT 85 + + 84 * - COUNT( ALL + 0 ) AS col1 FROM tab2 AS cor0
----
-167

skipif mysql # not compatible
query I rowsort label-1524
SELECT 85 + + 84 * - COUNT ( ALL + 0 ) AS col1 FROM tab2 AS cor0
----
-167

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT 28 DIV 49 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT 28 / 49 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - 78 * - COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
234

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 78 * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
234

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

query I rowsort
SELECT - 87 * + + col2 FROM tab2
----
-2001
-3480
-5046

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT 76 DIV + 43 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1531
SELECT 76 / + 43 FROM tab0
----
1
1
1

query I rowsort
SELECT + - col1 * + + 70 FROM tab0 AS cor0
----
-1470
-5670
-70

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - 90 ) ) col1 FROM tab0
----
90
90
90

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

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

query I rowsort
SELECT - col0 + col0 + col1 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

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

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE + + 18 * - col1 - + col1 - + col0 IN ( 91, + 65 )
----

query I rowsort
SELECT ALL + 35 * - + 72 + - col2 + - col2 FROM tab0
----
-2540
-2614
-2718

query I rowsort
SELECT DISTINCT - col0 + + 14 FROM tab2
----
-32
-50
-61

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

query II rowsort
SELECT ALL + 74 + - col1 AS col0, - col1 AS col1 FROM tab2
----
-3
-77
23
-51
7
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE - 94 / - - col2 * col2 = + col0
----

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT COUNT ( * ) + + SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
230

query I rowsort
SELECT ALL - col2 * + 46 * 81 - + col0 - 78 AS col2 FROM tab2 AS cor0
----
-149182
-216261
-85822

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT DISTINCT COUNT( * ) * + + ( + 15 ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT COUNT ( * ) * + + ( + 15 ) AS col1 FROM tab0 AS cor0
----
45

query I rowsort
SELECT - col1 + col0 * - + 60 AS col1 FROM tab2 AS cor0
----
-2811
-3917
-4567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1551
SELECT ALL + col2 / - col1 / CAST( NULL AS DECIMAL ) 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-1551
SELECT ALL + col2 / - col1 / CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT ALL - col1 DIV + 17 FROM tab2
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - col1 / + 17 FROM tab2
----
-3
-3
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT DISTINCT MAX( ALL col0 ) + + + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT MAX ( ALL col0 ) + + + COUNT ( * ) FROM tab1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL ( + - MAX( ALL - col1 ) ) DIV + 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL ( + - MAX ( ALL - col1 ) ) / + 78 FROM tab2
----
0

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

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

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

query II rowsort
SELECT DISTINCT - - ( 66 ) * col0, col1 FROM tab1 cor0
----
3366
14
5610
5
6006
47

query II rowsort
SELECT col0, - ( + 52 ) AS col2 FROM tab0 AS cor0
----
15
-52
87
-52
97
-52

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1559
SELECT - MAX ( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( 14 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( 14 IS NULL )
----
0

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

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

query II rowsort
SELECT ALL + col2 * col2 AS col2, + 97 FROM tab1
----
3481
97
4624
97
9216
97

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

query I rowsort
SELECT - + col0 * - - col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

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

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

query II rowsort
SELECT ALL - + 9 AS col0, col2 * - 34 FROM tab2 AS cor0
----
-9
-1360
-9
-1972
-9
-782

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

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

query I rowsort
SELECT DISTINCT + col0 * - + col0 + - + 2 FROM tab0 AS cor0
----
-227
-7571
-9411

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT + - COUNT( * ) * - - MAX( ALL + col2 ) + 49 * + + 79 + COUNT( * ) FROM tab2 AS cor0
----
3700

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT + - COUNT ( * ) * - - MAX ( ALL + col2 ) + 49 * + + 79 + COUNT ( * ) FROM tab2 AS cor0
----
3700

query I rowsort
SELECT + + ( - - col1 ) * + - col2 * - col1 * col0 * + col2 - + - col1 - - - col2 FROM tab1 cor0
----
7397071
92123054
929511835

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - 77 * + 75 * + - COUNT( * ) FROM tab0 AS cor0
----
17325

skipif mysql # not compatible
query I rowsort label-1572
SELECT - 77 * + 75 * + - COUNT ( * ) FROM tab0 AS cor0
----
17325

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

skipif mysql # not compatible
query II rowsort label-1573
SELECT ( - + COUNT ( * ) ) AS col1, 92 AS col0 FROM tab2 cor0
----
-3
92

query I rowsort
SELECT - col0 + 93 + col0 + + col1 AS col1 FROM tab1 AS cor0
----
107
140
98

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

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

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

query I rowsort
SELECT - 2 + 30 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT - col0 * + ( + - 72 ) + - 36 FROM tab1
----
3636
6084
6516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1579
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT + - col2 + + + 29 FROM tab2 AS cor0
----
-11
-29
6

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + col0 * - - 9 AS col0 FROM tab0 WHERE NOT - + col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 * - + 59 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT DISTINCT - COUNT( * ) * + + SUM( DISTINCT + + 2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT - COUNT ( * ) * + + SUM ( DISTINCT + + 2 ) FROM tab0 AS cor0
----
-6

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1589
SELECT COUNT( * ) * - SUM( ALL col1 ), COUNT( * ) * - 42 col2 FROM tab1
----
-198
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1589
SELECT COUNT ( * ) * - SUM ( ALL col1 ), COUNT ( * ) * - 42 col2 FROM tab1
----
-198
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 col0, - 50 FROM tab2
----
39
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT CAST( + AVG ( DISTINCT + - 72 ) AS SIGNED ) * - COUNT( * ) FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-1591
SELECT CAST ( + AVG ( DISTINCT + - 72 ) AS INTEGER ) * - COUNT ( * ) FROM tab2
----
216

query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT ALL - ( col0 ) DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT + + COUNT( * ) * + + 16 AS col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1594
SELECT + + COUNT ( * ) * + + 16 AS col2 FROM tab1 AS cor0
----
48

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

query I rowsort
SELECT - 53 * 86 FROM tab2
----
-4558
-4558
-4558

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT 4 + 93 * COUNT( * ) * - 80 * SUM( DISTINCT - 63 ) AS col1 FROM tab1
----
1406164

skipif mysql # not compatible
query I rowsort label-1597
SELECT 4 + 93 * COUNT ( * ) * - 80 * SUM ( DISTINCT - 63 ) AS col1 FROM tab1
----
1406164

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT - 26 + COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1598
SELECT - 26 + COUNT ( * ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL - col0 + ( + 42 ) FROM tab0 AS cor0
----
-45
-55
27

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * - + ( - + 45 ) - + - 63 FROM tab2 cor0
----
2133
2943
3438

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL + MAX( ALL - 35 ) FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + MAX ( ALL - 35 ) FROM tab1 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + 79 + - 2 * + 73 AS col2 FROM tab1
----
-67

query I rowsort
SELECT ALL + col2 + - + 86 AS col0 FROM tab0
----
-39
-76
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT 96 - - COUNT( * ) + - 34 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT 96 - - COUNT ( * ) + - 34 FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL - 99 * COUNT( * ) + AVG ( ALL col0 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL - 99 * COUNT ( * ) + AVG ( ALL col0 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) * - 82 FROM tab0
----
-246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1611
SELECT DISTINCT - 49 * + col1 + col1, col1 + 1 FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-1611
SELECT DISTINCT - 49 * + col1 + col1, col1 + 1 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL + COUNT( * ) col1 FROM tab2 WHERE NOT 73 + - col2 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1612
SELECT ALL + COUNT ( * ) col1 FROM tab2 WHERE NOT 73 + - col2 IS NULL
----
3

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

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

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

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

query II rowsort
SELECT - 71 AS col2, col1 FROM tab0 AS cor0
----
-71
1
-71
21
-71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT DISTINCT + COUNT( ALL + col0 ) * - 20 AS col0 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + COUNT ( ALL + col0 ) * - 20 AS col0 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT + COUNT( * ) * + 96 AS col2 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + COUNT ( * ) * + 96 AS col2 FROM tab2
----
288

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 + + ( - col2 ) * - col1 IS NULL
----

query I rowsort
SELECT ALL col2 * - + col2 AS col0 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ( - + 61 ) AS col1 FROM tab1
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + 39 * - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
-1989
-3315
-3549

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1623
SELECT ALL col1 * col0 AS col2, - col2 * - + CAST( - 29 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab0
----
1215
NULL
1827
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1623
SELECT ALL col1 * col0 AS col2, - col2 * - + CAST ( - 29 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
1215
NULL
1827
NULL
97
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - + 90 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 NOT IN ( - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT MIN( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT MIN ( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query I rowsort
SELECT + 83 + - 9 FROM tab0 AS cor0
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col1 NOT IN ( col2, 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - + MIN( ALL + 87 ) * 88 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-7656

skipif mysql # not compatible
query I rowsort label-1629
SELECT - + MIN ( ALL + 87 ) * 88 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-7656

query I rowsort
SELECT ALL 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT + 31 * - COUNT( * ) + + COUNT( ALL + 99 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT + 31 * - COUNT ( * ) + + COUNT ( ALL + 99 ) FROM tab2 AS cor0
----
-90

query I rowsort
SELECT + ( - col0 ) - + + col2 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - 42 + + 11 AS col0 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT + - col0 + - - col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - + COUNT( * ) - 42 + - COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - + COUNT ( * ) - 42 + - COUNT ( * ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT - col1 + - 37 AS col0 FROM tab0 AS cor0
----
-118
-38
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT - COUNT( - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT - COUNT ( - col1 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 57 <= + col0
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - 10 + COUNT( * ) + - 29 AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 10 + COUNT ( * ) + - 29 AS col1 FROM tab1
----
-36

query I rowsort
SELECT + + col2 AS col2 FROM tab1 WHERE + - ( - ( - + 29 ) ) BETWEEN col1 AND + col1 * - 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( + + 65 ) col1 FROM tab1
----
3055
325
910

query II rowsort
SELECT 39, col1 AS col2 FROM tab2
----
39
51
39
67
39
77

query I rowsort
SELECT DISTINCT + col2 - + - 89 FROM tab0
----
136
188
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

query II rowsort
SELECT - + 98 AS col1, 91 FROM tab0 AS cor0
----
-98
91
-98
91
-98
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT COUNT( ( 92 ) ) - - + CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT COUNT ( ( 92 ) ) - - + CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT DISTINCT - 34 * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - 34 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 AS col0, - ( col1 ) col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + + 32 ) * - 9 IN ( col2, - col2, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * col1 * - col2 AS col2 FROM tab1
----
1475
150212
18816

query II rowsort
SELECT ALL + col0 * + col2, col0 AS col2 FROM tab0
----
705
15
870
87
9603
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT - - 21 AS col0 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT + - 0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( - ( - 49 ) ) FROM tab0 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1657
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + col1 + CAST( NULL AS DECIMAL ) <> + col0 + + + col0 + - 59
----

skipif mysql # not compatible
query III rowsort label-1657
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + col1 + CAST ( NULL AS REAL ) <> + col0 + + + col0 + - 59
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 64
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <> col0 - - 84 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT AVG ( + + CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT DISTINCT AVG ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

query II rowsort
SELECT + col1, + 77 AS col2 FROM tab1
----
14
77
47
77
5
77

query II rowsort
SELECT DISTINCT col0 AS col1, 73 FROM tab0
----
15
73
87
73
97
73

query I rowsort
SELECT DISTINCT col0 * + 16 AS col1 FROM tab2
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT - 67 * + COUNT( * ) FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-1664
SELECT - 67 * + COUNT ( * ) FROM tab2
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT DISTINCT - col1 + 45 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT - col1 + 45 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT MIN( ALL + + 36 ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1666
SELECT MIN ( ALL + + 36 ) AS col0 FROM tab2
----
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - 6 AS col1 FROM tab0 AS cor0
----
15
-6
87
-6
97
-6

query II rowsort
SELECT + 42 + - col0 + - - col2, col0 AS col0 FROM tab2 AS cor0
----
18
64
19
46
25
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ( - 91 ) * MAX( col2 ) AS col1 FROM tab0
----
-9009

skipif mysql # not compatible
query I rowsort label-1671
SELECT ( - 91 ) * MAX ( col2 ) AS col1 FROM tab0
----
-9009

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - 32 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( - col1 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1673
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( - col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT ALL col2 DIV + col0 + + col1 * - col0 FROM tab1
----
-425
-4277
-713

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL col2 / + col0 + + col1 * - col0 FROM tab1
----
-425
-4277
-713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT 83 FROM tab2 WHERE NOT ( NULL ) <> - col2 / CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-1675
SELECT 83 FROM tab2 WHERE NOT ( NULL ) <> - col2 / CAST ( NULL AS INTEGER ) + - col0
----

query I rowsort
SELECT + col2 + col1 FROM tab0 WHERE NOT - col0 < ( + col0 ) * - col0
----
100
128
31

query I rowsort
SELECT + col2 * 15 FROM tab1
----
1020
1440
885

query I rowsort
SELECT 1 + + 29 FROM tab1
----
30
30
30

query I rowsort
SELECT - col0 * + 19 FROM tab2
----
-1216
-1425
-874

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > 39 + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1681
SELECT - COUNT( * ) DIV + 30 FROM tab2 WHERE NOT - col2 BETWEEN + col0 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-1681
SELECT - COUNT ( * ) / + 30 FROM tab2 WHERE NOT - col2 BETWEEN + col0 AND col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 - + col2 BETWEEN + 83 AND ( col1 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 81 FROM tab0 WHERE - col0 BETWEEN + col1 AND ( col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT ALL - 34 DIV + 27 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - 34 / + 27 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT COUNT( * ) + COUNT( * ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1685
SELECT COUNT ( * ) + COUNT ( * ) col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT DISTINCT - 52 * SUM( + col0 ) FROM tab2
----
-9620

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT - 52 * SUM ( + col0 ) FROM tab2
----
-9620

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT + col2 DIV ( 11 * col1 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1687
SELECT DISTINCT + col2 / ( 11 * col1 ) col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT COUNT( * ) + COUNT( ALL + 18 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1689
SELECT COUNT ( * ) + COUNT ( ALL + 18 ) AS col0 FROM tab2
----
6

query I rowsort
SELECT ALL - 60 - 67 FROM tab2
----
-127
-127
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT + 12 + col0 DIV - col1 FROM tab2
----
11
12
12

skipif mysql # not compatible
query I rowsort label-1691
SELECT + 12 + col0 / - col1 FROM tab2
----
11
12
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT COUNT( + 22 ) DIV + ( COUNT( * ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1692
SELECT COUNT ( + 22 ) / + ( COUNT ( * ) ) AS col1 FROM tab0
----
1

query I rowsort
SELECT col2 + - 84 AS col0 FROM tab2
----
-26
-44
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT - col2 DIV 26 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1694
SELECT - col2 / 26 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT + 72 + 52 * + 61 FROM tab0
----
3244

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE + 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE + 3 IS NULL
----
0

query I rowsort
SELECT ALL - col0 * - 72 FROM tab0 AS cor0
----
1080
6264
6984

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT + + 96 * - col2 AS col2 FROM tab2 AS cor0
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1701
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) / col0
----

skipif mysql # not compatible
query III rowsort label-1701
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) / col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 42 * 8 FROM tab0 cor0
----
-336
-336
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT + - SUM( ALL + 2 ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + - SUM ( ALL + 2 ) AS col2 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 92 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 92 col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + col2 + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + 27 * - col2 + col2 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT - col2 + + 35 FROM tab2 AS cor0
----
-23
-5
12

query I rowsort
SELECT ALL col2 + col0 * + col0 AS col1 FROM tab1 cor0
----
2697
7284
8349

query I rowsort
SELECT col1 + 97 * + 78 AS col0 FROM tab1 cor0
----
7571
7580
7613

query I rowsort
SELECT - 29 * + + 75 FROM tab0 AS cor0
----
-2175
-2175
-2175

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( 86 ) BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT + 24 AS col1 FROM tab1 AS cor0 WHERE ( 87 ) IS NOT NULL
----
24
24
24

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 72 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ( + 42 ) AS col1 FROM tab0
----
42
42
42

query I rowsort
SELECT + col2 * + col2 FROM tab0 WHERE ( ( 10 ) IS NOT NULL )
----
100
2209
9801

query I rowsort
SELECT + + col1 - + 4 * 8 AS col0 FROM tab0 AS cor0
----
-11
-31
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 64 + + 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 79 - - + 52 * col0 * - col0 AS col2 FROM tab0 AS cor0
----
-11621
-393509
-489189

query I rowsort
SELECT + 95 + + + col2 - - col2 FROM tab2 AS cor0
----
141
175
211

query I rowsort
SELECT - + col0 + 78 + + 84 FROM tab0 AS cor0
----
147
65
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 / + + 55 NOT BETWEEN + col2 * col2 AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + COUNT( * ) + + SUM( - 95 ) AS col1 FROM tab2 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1726
SELECT + COUNT ( * ) + + SUM ( - 95 ) AS col1 FROM tab2 cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT 3 * ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( - col0 ) OR NOT ( + 8 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1727
SELECT 3 * ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < ( - col0 ) OR NOT ( + 8 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 66 AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( * ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 81 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col2 * - 21 * + 33 AND ( col1 + 97 / col2 )
----

query I rowsort
SELECT ALL - col2 * 32 * + - col1 - - 82 AS col1 FROM tab0
----
121906
3250
6802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( - col1 * + 36 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( - col1 * + 36 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT - 88 DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1734
SELECT - 88 / col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 7 * + col0 + ( + 83 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT ALL - ( - 44 ) * + CAST( NULL AS SIGNED ) * col0 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL - ( - 44 ) * + CAST ( NULL AS INTEGER ) * col0 * col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 75 + - + 50 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1739
SELECT DISTINCT + col2 * - - 25, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
1000
NULL
1450
NULL
575
NULL

skipif mysql # not compatible
query II rowsort label-1739
SELECT DISTINCT + col2 * - - 25, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
1000
NULL
1450
NULL
575
NULL

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE ( + col2 * col1 IS NOT NULL )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT - col2 DIV + ( col0 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT - col2 / + ( col0 ) FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT 93 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT ( col2 ) > ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-1742
SELECT 93 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT ( col2 ) > ( NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 52 BETWEEN - col1 AND col0 + - 26 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 75 + + col2 * - col2 FROM tab0 cor0 WHERE 58 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 15 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 35 / + col1 * 34 + 97 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col0 AS col1 FROM tab0 WHERE NOT ( - 35 ) IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 NOT IN ( - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT - MAX( + 36 ) AS col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - MAX ( + 36 ) AS col1 FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT DISTINCT - 90 DIV - col0 - + col2 + + + col1 AS col0 FROM tab2 AS cor0
----
10
29
38

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - 90 / - col0 - + col2 + + + col1 AS col0 FROM tab2 AS cor0
----
10
29
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL COUNT( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL COUNT ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 47 + + - col2 AS col0 FROM tab2
----
-11
24
7

query I rowsort
SELECT + col2 FROM tab1 WHERE - 54 + + + col2 + + col0 / 89 - + col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT + COUNT( * ) + + 16 AS col1 FROM tab2 WHERE NULL BETWEEN col0 AND ( 80 )
----
16

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT + COUNT ( * ) + + 16 AS col1 FROM tab2 WHERE NULL BETWEEN col0 AND ( 80 )
----
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1755
SELECT col0, + 90 + + CAST( - col2 AS SIGNED ) DIV col0 * - + ( - col2 ) AS col1 FROM tab2
----
46
90
64
90
75
90

skipif mysql # not compatible
query II rowsort label-1755
SELECT col0, + 90 + + CAST ( - col2 AS INTEGER ) / col0 * - + ( - col2 ) AS col1 FROM tab2
----
46
90
64
90
75
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - col1 col0 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1757
SELECT - 75 * 60 DIV COUNT( * ) AS col2 FROM tab0
----
-1500

skipif mysql # not compatible
query I rowsort label-1757
SELECT - 75 * 60 / COUNT ( * ) AS col2 FROM tab0
----
-1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT ALL 54 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) - + CAST( NULL AS SIGNED ) + + 3 + col2 NOT IN ( 90 )
----

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL 54 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) - + CAST ( NULL AS INTEGER ) + + 3 + col2 NOT IN ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT - + MAX( - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - + MAX ( - col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT + 43 * col2 + - col2 * - - col1 FROM tab2
----
-1360
-1392
-184

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1762
SELECT ALL + col0 DIV + CAST( + 10 AS SIGNED ) - - 39 FROM tab1 AS cor0
----
44
47
48

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + col0 / + CAST ( + 10 AS INTEGER ) - - 39 FROM tab1 AS cor0
----
44
47
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1763
SELECT MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1764
SELECT DISTINCT + - 60 + + col1 col0, + CAST( NULL AS SIGNED ) * - - col1 FROM tab1 AS cor0
----
-13
NULL
-46
NULL
-55
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1764
SELECT DISTINCT + - 60 + + col1 col0, + CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 AS cor0
----
-13
NULL
-46
NULL
-55
NULL

query I rowsort
SELECT + ( - col2 ) - - + col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT - 47 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( - col2 ) AND ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT - 47 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + ( - col2 ) AND ( + + col1 )
----
0

query I rowsort
SELECT ALL + 77 - + col2 * + col0 FROM tab0 AS cor0
----
-628
-793
-9526

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - ( MAX( ALL + col0 ) ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1768
SELECT - ( MAX ( ALL + col0 ) ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1769
SELECT + COUNT( * ) AS col2, ( - 6 ) - + COUNT( * ) AS col1 FROM tab0
----
3
-9

skipif mysql # not compatible
query II rowsort label-1769
SELECT + COUNT ( * ) AS col2, ( - 6 ) - + COUNT ( * ) AS col1 FROM tab0
----
3
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 31 * ( - col0 ) col0, 11 + + 8 * col2 + - col1 FROM tab1
----
-1581
765
-2635
478
-2821
508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * + col1 col2 FROM tab0
----
-1365
-5265
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1772
SELECT CAST( + + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1772
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1773
SELECT ALL col0, - CAST( NULL AS DECIMAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1773
SELECT ALL col0, - CAST ( NULL AS REAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 61 * - 39 col2 FROM tab0
----
-206973
-230763
-35685

query II rowsort
SELECT DISTINCT 86 AS col1, 33 * + ( 83 ) AS col2 FROM tab2
----
86
2739

query I rowsort
SELECT ALL + col0 * col1 * + 72 FROM tab2
----
168912
354816
361800

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * + 39 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT 38 * + - col0 * col2 AS col0 FROM tab1
----
-186048
-190570
-235144

query I rowsort
SELECT ALL + col1 * - 94 FROM tab1
----
-1316
-4418
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT + SUM( + 96 ) col1 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1780
SELECT DISTINCT + SUM ( + 96 ) col1 FROM tab0 AS cor0
----
288

query I rowsort
SELECT DISTINCT - - col1 * 21 AS col1 FROM tab1 AS cor0
----
105
294
987

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * col2 * - col1 + + col1 NOT IN ( col2 + - col1 + - col2 )
----

query I rowsort
SELECT + col0 * - col2 + - + col0 + - 9 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-729
-966
-9709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 col1 FROM tab0 AS cor0
----
-44
-44
-44

query II rowsort
SELECT - 78, col2 AS col1 FROM tab2 cor0
----
-78
23
-78
40
-78
58

query I rowsort
SELECT - + 25 AS col1 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE col1 + 85 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT COUNT( * ) * CAST( - ( - ( 34 ) ) AS SIGNED ) * + 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT COUNT ( * ) * CAST ( - ( - ( 34 ) ) AS INTEGER ) * + 0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 * - 34 + - 71 AS col2 FROM tab1
----
1527
405
99

query I rowsort
SELECT - - 3 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT SUM( - 66 ) * 4 FROM tab2 AS cor0
----
-792

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT SUM ( - 66 ) * 4 FROM tab2 AS cor0
----
-792

query I rowsort
SELECT - 51 AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1795
SELECT DISTINCT - - 26 DIV - - 35 + + - ( - col1 ) - - col2 AS col0, 40 FROM tab0 AS cor0
----
100
40
128
40
31
40

skipif mysql # not compatible
query II rowsort label-1795
SELECT DISTINCT - - 26 / - - 35 + + - ( - col1 ) - - col2 AS col0, 40 FROM tab0 AS cor0
----
100
40
128
40
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT - COUNT( DISTINCT col0 ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1796
SELECT - COUNT ( DISTINCT col0 ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ( - col1 ) * + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1798
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) <> - 67
----

skipif mysql # not compatible
query III rowsort label-1798
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) <> - 67
----

query I rowsort
SELECT + 38 + 3 FROM tab2
----
41
41
41

query II rowsort
SELECT DISTINCT + 45, col1 FROM tab1
----
45
14
45
47
45
5

query III rowsort
SELECT * FROM tab0 WHERE + 58 IS NULL AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT 57 * + + 61 FROM tab0
----
3477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NULL >= + 38 * + ( - col1 ) - - 33 - col2 * + 51
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - + col2 * + - 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 79 AS col1 FROM tab0 WHERE - 77 * - col0 + col1 > ( col1 )
----
-79
-79
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 46 AND NOT ( 82 + 85 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 BETWEEN + 89 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 + - 67 + col2 col1 FROM tab1
----
139
82
94

query I rowsort
SELECT 70 * - col1 + + col0 * col0 FROM tab0 AS cor0
----
-5445
6099
9339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT ALL - 88 * - + 53 * + CAST( - col0 AS SIGNED ) - + col2 col2 FROM tab1 AS cor0
----
-237960
-396499
-424492

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1810
SELECT ALL - 88 * - + 53 * + CAST ( - col0 AS INTEGER ) - + col2 col2 FROM tab1 AS cor0
----
-237960
-396499
-424492

query I rowsort
SELECT - + 58 FROM tab0 cor0
----
-58
-58
-58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN + + ( + 60 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1813
SELECT DISTINCT + CAST( + - 66 AS SIGNED ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-1813
SELECT DISTINCT + CAST ( + - 66 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
-66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - col1 + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1816
SELECT ALL 7 AS col2, + MIN( - 3 ) AS col0 FROM tab1 cor0
----
7
-3

skipif mysql # not compatible
query II rowsort label-1816
SELECT ALL 7 AS col2, + MIN ( - 3 ) AS col0 FROM tab1 cor0
----
7
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL + MIN( + 96 ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL + MIN ( + 96 ) AS col2 FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1818
SELECT MIN( + 83 ) * + 40 - - + CAST( NULL AS SIGNED ) + - SUM( DISTINCT - col1 ) FROM tab1 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT MIN ( + 83 ) * + 40 - - + CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - col1 ) FROM tab1 WHERE NOT col2 IS NULL
----
NULL

query I rowsort
SELECT - col1 * + + ( 96 ) AS col2 FROM tab1
----
-1344
-4512
-480

query I rowsort
SELECT ALL 52 * col0 - + col2 AS col0 FROM tab0 cor0
----
4514
4945
733

query I rowsort
SELECT - ( 17 ) * col0 + + col2 FROM tab2
----
-1048
-1217
-759

query I rowsort
SELECT + 15 + + col1 FROM tab1
----
20
29
62

query I rowsort
SELECT DISTINCT + 25 + - + col1 FROM tab0 AS cor0
----
-56
24
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL + COUNT( * ) + - 73 AS col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + COUNT ( * ) + - 73 AS col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT ALL + - 51 * - - col0 * - col2 FROM tab0 AS cor0
----
35955
44370
489753

query I rowsort
SELECT ALL + col2 + + 16 FROM tab1 cor0
----
112
75
84

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT + CAST( + - ( - col2 ) AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1828
SELECT + CAST ( + - ( - col2 ) AS INTEGER ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 79 - - 47 FROM tab1 WHERE + col2 * - col0 IS NOT NULL
----
126
126
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT + ( - - col1 ) DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT + ( - - col1 ) / + col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 - col2 * - - col0 + - ( ( - col0 ) ) / col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col1 + - 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - col0 - - - 69 * + col0 * - - 36 + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col0 - - - 69 * + col0 * - - 36 + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( 16 ) - + col2 FROM tab2 cor0
----
-24
-42
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE - col0 <= ( - col2 + 27 )
----
-51
-67
-77

query I rowsort
SELECT ALL 88 * - col0 AS col2 FROM tab2 AS cor0
----
-4048
-5632
-6600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col2 FROM tab1 AS cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + col1 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-1841
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0
----
-3
3

query I rowsort
SELECT 16 * + 22 FROM tab2
----
352
352
352

query III rowsort
SELECT * FROM tab2 WHERE NOT + 34 + - 15 BETWEEN NULL AND - col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT + CAST( NULL AS SIGNED ) * 82 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT + CAST ( NULL AS INTEGER ) * 82 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col1, - 84 * 78 FROM tab2 AS cor0
----
51
-6552
67
-6552
77
-6552

query II rowsort
SELECT col0, + col2 AS col2 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT 74 / + MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT 74 / + MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT - SUM( 40 ) col2 FROM tab1
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1849
SELECT DISTINCT - SUM ( 40 ) col2 FROM tab1
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT ALL - col2 * - col2 * + 39 + CAST( 3 AS SIGNED ) AS col0 FROM tab2
----
131199
20634
62403

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - col2 * - col2 * + 39 + CAST ( 3 AS INTEGER ) AS col0 FROM tab2
----
131199
20634
62403

query I rowsort
SELECT DISTINCT - 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-37

query III rowsort
SELECT * FROM tab0 WHERE + 82 * - - col1 + col0 / - 31 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - 31 - - col2 + + 49 FROM tab2 AS cor0
----
41
58
76

query I rowsort
SELECT ALL - col0 + - 4 - - col1 AS col1 FROM tab0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
-100
-70
62

query I rowsort
SELECT ALL col1 + 16 AS col0 FROM tab0
----
17
37
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT 4 + + CAST( + 28 AS SIGNED ) * + col0 FROM tab2
----
1292
1796
2104

skipif mysql # not compatible
query I rowsort label-1856
SELECT 4 + + CAST ( + 28 AS INTEGER ) * + col0 FROM tab2
----
1292
1796
2104

query I rowsort
SELECT ALL - 43 + + - col1 FROM tab0
----
-124
-44
-64

query I rowsort
SELECT DISTINCT - 10 + + col0 FROM tab0
----
5
77
87

query I rowsort
SELECT ALL - col0 * col1 + + + col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query II rowsort
SELECT + - 17 AS col0, 25 AS col1 FROM tab0 AS cor0
----
-17
25
-17
25
-17
25

query I rowsort
SELECT DISTINCT - col2 - + + col0 + - 61 AS col2 FROM tab0 AS cor0
----
-123
-158
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - ( + SUM( col2 ) ) FROM tab1 AS cor0 WHERE NOT 5 IS NULL
----
-223

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - ( + SUM ( col2 ) ) FROM tab1 AS cor0 WHERE NOT 5 IS NULL
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 76 <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + + 79 * + + COUNT( - col2 ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-1865
SELECT + + 79 * + + COUNT ( - col2 ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT - + 10 * - 24 * 22 - - - COUNT( * ) FROM tab1 AS cor0
----
5277

skipif mysql # not compatible
query I rowsort label-1866
SELECT - + 10 * - 24 * 22 - - - COUNT ( * ) FROM tab1 AS cor0
----
5277

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL - 88 + COUNT( * ) - 75 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col1
----
-163

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - 88 + COUNT ( * ) - 75 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col1
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT ALL + col1 DIV - col0 + - - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + col1 / - col0 + - - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL col2 + - 45 FROM tab1 cor0 WHERE NOT ( NULL >= - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + - col2 - - 90 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 - - ( - col1 ) NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT + 23 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL COUNT( - + col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1873
SELECT ALL COUNT ( - + col1 ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 * - + 39 FROM tab2
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - MAX( - 99 ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1876
SELECT - MAX ( - 99 ) AS col1 FROM tab1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT col1 * + col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT col1 * + col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL - MAX( ALL + - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - MAX ( ALL + - col1 ) AS col0 FROM tab0
----
1

query II rowsort
SELECT ALL - col1 AS col2, col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL + + MIN( ALL + 86 ) FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + + MIN ( ALL + 86 ) FROM tab0 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT - COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1882
SELECT ALL + 57, CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
57
23
57
40
57
58

skipif mysql # not compatible
query II rowsort label-1882
SELECT ALL + 57, CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
57
23
57
40
57
58

query I rowsort
SELECT DISTINCT - 42 * - col0 * - + col2 FROM tab1 AS cor0
----
-205632
-210630
-259896

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT - MIN( DISTINCT + + col2 ) + 28 col1 FROM tab2
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1885
SELECT - MIN ( DISTINCT + + col2 ) + 28 col1 FROM tab2
----
5

query I rowsort
SELECT 87 + + - 14 + 97 FROM tab0
----
170
170
170

query I rowsort
SELECT ALL - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL SUM( col2 ) + COUNT( * ) * 19 * 16 AS col0 FROM tab2
----
1033

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL SUM ( col2 ) + COUNT ( * ) * 19 * 16 AS col0 FROM tab2
----
1033

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 NOT BETWEEN + 83 - - 77 AND 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + 99 - + - col1 + + col2 * - 81 AS col0 FROM tab1 AS cor0
----
-2713
3548
3641

query I rowsort
SELECT DISTINCT - - col2 * - col1 AS col0 FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT ( - 58 ) FROM tab1 AS cor0
----
-58

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NULL NOT IN ( - ( - - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT 23 DIV + - 40 - + - 1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1894
SELECT 23 / + - 40 - + - 1 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 + + col1 * - 91 - + + 46 FROM tab2
----
-4641
-6068
-6989

query I rowsort
SELECT - - col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * + col0 * 46 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT ALL col1 * + col0 - CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
2300
4864
4950

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL col1 * + col0 - CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1898
SELECT + col0 + - col2 AS col1 FROM tab2 AS cor0 WHERE col0 * col1 + - CAST( NULL AS DECIMAL ) * + 95 + - 59 <> + 48
----

skipif mysql # not compatible
query I rowsort label-1898
SELECT + col0 + - col2 AS col1 FROM tab2 AS cor0 WHERE col0 * col1 + - CAST ( NULL AS REAL ) * + 95 + - 59 <> + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + MAX( DISTINCT - - 13 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-1899
SELECT + MAX ( DISTINCT - - 13 ) FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL - COUNT( DISTINCT + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - COUNT ( DISTINCT + col2 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + col0 col1 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT DISTINCT + col1, 26 FROM tab1
----
14
26
47
26
5
26

query II rowsort
SELECT DISTINCT - 29 AS col1, col1 * - 57 + + 28 AS col1 FROM tab2
----
-29
-2879
-29
-3791
-29
-4361

query I rowsort
SELECT DISTINCT + 71 * - - 81 FROM tab2
----
5751

query I rowsort
SELECT ALL - - 58 AS col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT ALL - - 2 * + COUNT( ALL + + 4 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL - - 2 * + COUNT ( ALL + + 4 ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1907
SELECT * FROM tab0 cor0 WHERE NOT col0 * CAST( - col0 AS SIGNED ) NOT BETWEEN NULL AND 32 * 98 + + - 74
----

skipif mysql # not compatible
query III rowsort label-1907
SELECT * FROM tab0 cor0 WHERE NOT col0 * CAST ( - col0 AS INTEGER ) NOT BETWEEN NULL AND 32 * 98 + + - 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT + + col0 DIV - 82 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT + + col0 / - 82 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1909
SELECT ALL + col1 DIV col2 * 9 AS col1 FROM tab2 AS cor0
----
18
9
9

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + col1 / col2 * 9 AS col1 FROM tab2 AS cor0
----
18
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 AS col2, 72 col0 FROM tab2 AS cor0
----
46
72
64
72
75
72

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT - 26 / - + ( - 75 ) IS NULL
----
10
47
99

query I rowsort
SELECT - col2 * col2 + - - 64 AS col0 FROM tab0 AS cor0
----
-2145
-36
-9737

query I rowsort
SELECT DISTINCT col2 / col2 / - 95 + + ( 49 ) AS col2 FROM tab0 WHERE 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL + COUNT( DISTINCT col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL + COUNT ( DISTINCT col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + SUM( 79 ) AS col0 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-1915
SELECT + SUM ( 79 ) AS col0 FROM tab2
----
237

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT NULL NOT IN ( - 68 - + col1, - col1 ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1917
SELECT - COUNT( * ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1917
SELECT - COUNT ( * ) / + + COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT - + col2 + 52 * + - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE + 88 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT - + col2 + 52 * + - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE + 88 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + + col1 * + + 41 * + col2 NOT BETWEEN NULL AND - + col2 * - 12 - + col2
----

query I rowsort
SELECT ALL - 97 + col0 FROM tab1
----
-12
-46
-6

query I rowsort
SELECT - 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0, 94 )
----

query I rowsort
SELECT + col2 + - col2 + + - col0 AS col1 FROM tab1 cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - col2 + col2 col1 FROM tab0 cor0
----
141
297
30

query I rowsort
SELECT ALL - col0 + + + 1 + + 36 FROM tab0 AS cor0
----
-50
-60
22

query I rowsort
SELECT col1 * + col2 + col0 + col1 + - - col2 + col0 AS col1 FROM tab1 cor0
----
1556
3493
529

query I rowsort
SELECT ALL 22 + - col0 FROM tab1 AS cor0 WHERE NULL IN ( - col0 / + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 35 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1928
SELECT 35 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT ALL col2 - + + 73 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-306
-3363
-926

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL col2 - + + 73 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-306
-3363
-926

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( + - 14, - col0, + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1931
SELECT + CAST( col1 AS SIGNED ) + - col1 DIV + - 5 col0 FROM tab1 AS cor0
----
16
56
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1931
SELECT + CAST ( col1 AS INTEGER ) + - col1 / + - 5 col0 FROM tab1 AS cor0
----
16
56
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT - - 22 * + COUNT( * ) * - 31 + - 64 FROM tab0 AS cor0
----
-2110

skipif mysql # not compatible
query I rowsort label-1932
SELECT - - 22 * + COUNT ( * ) * - 31 + - 64 FROM tab0 AS cor0
----
-2110

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT + + MIN( DISTINCT - 46 ) FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + + MIN ( DISTINCT - 46 ) FROM tab0 cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1934
SELECT DISTINCT col1 - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT col1 - - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query II rowsort
SELECT ALL + col0 AS col0, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + 42 - + col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 59 * + 3 + 82 AS col0 FROM tab2 WHERE + - 94 > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL COUNT( - col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1938
SELECT ALL COUNT ( - col1 ) col2 FROM tab0
----
3

query I rowsort
SELECT + 91 * - 12 AS col2 FROM tab2
----
-1092
-1092
-1092

onlyif mysql # DIV for integer division: 
query I rowsort label-1940
SELECT ( - 19 ) DIV col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT ( - 19 ) / col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1941
SELECT DISTINCT MAX( ALL + - col0 ) AS col0, - MAX( DISTINCT + col2 ) FROM tab2
----
-46
-58

skipif mysql # not compatible
query II rowsort label-1941
SELECT DISTINCT MAX ( ALL + - col0 ) AS col0, - MAX ( DISTINCT + col2 ) FROM tab2
----
-46
-58

query I rowsort
SELECT - ( 51 ) FROM tab2 cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1943
SELECT + CAST( 18 AS SIGNED ), col2 + - - 57 - col2 * + - col0 AS col0 FROM tab0 AS cor0
----
18
809
18
937
18
9759

skipif mysql # not compatible
query II rowsort label-1943
SELECT + CAST ( 18 AS INTEGER ), col2 + - - 57 - col2 * + - col0 AS col0 FROM tab0 AS cor0
----
18
809
18
937
18
9759

query I rowsort
SELECT DISTINCT ( + - 22 ) AS col2 FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - + MIN( - 35 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-1945
SELECT - + MIN ( - 35 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col1 + - + col1 BETWEEN - + 20 * + col0 * + + col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1947
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + - CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + - CAST ( - col2 AS REAL )
----

query I rowsort
SELECT 80 * - + 85 AS col0 FROM tab0 AS cor0
----
-6800
-6800
-6800

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

query I rowsort
SELECT ALL col1 * - + col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT COUNT( ALL - + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1951
SELECT COUNT ( ALL - + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 8 + - + col0 AS col1 FROM tab2
----
-38
-56
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT SUM( + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1953
SELECT SUM ( + col1 ) AS col2 FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT ALL ( + + COUNT( - CAST( NULL AS SIGNED ) ) ) + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL ( + + COUNT ( - CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * ) FROM tab2
----
-3

query I rowsort
SELECT ( 85 ) AS col2 FROM tab1
----
85
85
85

query I rowsort
SELECT 92 * - 86 FROM tab2
----
-7912
-7912
-7912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT - ( + col0 ) * + col2 * + + 86 * - col1 + - + CAST( col2 AS SIGNED ) - - 34 + - 6 FROM tab2 WHERE - col2 * CAST( 0 AS SIGNED ) IS NOT NULL
----
16952308
25064670
4640393

skipif mysql # not compatible
query I rowsort label-1957
SELECT - ( + col0 ) * + col2 * + + 86 * - col1 + - + CAST ( col2 AS INTEGER ) - - 34 + - 6 FROM tab2 WHERE - col2 * CAST ( 0 AS INTEGER ) IS NOT NULL
----
16952308
25064670
4640393

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT + - SUM( - col2 ) col0 FROM tab1 WHERE 55 IS NOT NULL
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1958
SELECT DISTINCT + - SUM ( - col2 ) col0 FROM tab1 WHERE 55 IS NOT NULL
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT - col0 DIV col1 + 88 FROM tab2 AS cor0
----
87
88
88

skipif mysql # not compatible
query I rowsort label-1959
SELECT - col0 / col1 + 88 FROM tab2 AS cor0
----
87
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1960
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - CAST( NULL AS SIGNED ) + + 9 ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1960
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - CAST ( NULL AS INTEGER ) + + 9 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1962
SELECT ALL + CAST( NULL AS DECIMAL ) - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + CAST ( NULL AS REAL ) - - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + + 17 AS col1 FROM tab1 cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT - CAST( NULL AS SIGNED ) - - + col0 + + - 78 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT - CAST ( NULL AS INTEGER ) - - + col0 + + - 78 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 89 - - col1 + col2 + + col2 + col1 AS col1 FROM tab1 AS cor0
----
217
309
319

query I rowsort
SELECT - col1 - - col2 - 7 + - col1 / + + col0 * 80 AS col0 FROM tab2 WHERE NULL BETWEEN ( + - col1 ) + col0 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + COUNT( * ) - + MIN( ALL col1 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( * ) - + MIN ( ALL col1 ) FROM tab0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT - 82 DIV - col1 AS col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 82 / - col1 AS col1 FROM tab1
----
1
16
5

query II rowsort
SELECT + col0 * + 6 * + col1 AS col0, 14 AS col0 FROM tab2
----
14076
14
29568
14
30150
14

query I rowsort
SELECT - + 11 AS col2 FROM tab0 cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT SUM( - 57 ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-1972
SELECT SUM ( - 57 ) FROM tab0 AS cor0
----
-171

query I rowsort
SELECT ALL + 77 * + col0 * + - col0 FROM tab0
----
-17325
-582813
-724493

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= col1
----
15
81
47
87
21
10

query I rowsort
SELECT 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT ALL - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT + MAX( DISTINCT + 2 ) * - 87 * CAST( - - 23 AS SIGNED ) FROM tab2 AS cor0
----
-4002

skipif mysql # not compatible
query I rowsort label-1977
SELECT + MAX ( DISTINCT + 2 ) * - 87 * CAST ( - - 23 AS INTEGER ) FROM tab2 AS cor0
----
-4002

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2, + col1, + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT DISTINCT + col2 * + ( - - col1 ) * - col0 + - - col2 - + col0 DIV - + 52 AS col1 FROM tab1 AS cor0
----
-25015
-290767
-68448

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT + col2 * + ( - - col1 ) * - col0 + - - col2 - + col0 / - + 52 AS col1 FROM tab1 AS cor0
----
-25015
-290767
-68448

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - MIN( 46 ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1980
SELECT - MIN ( 46 ) FROM tab0 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT ( ( NULL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT col0 * + - col0 * - 71 FROM tab2
----
150236
290816
399375

query I rowsort
SELECT 50 + col2 + - + 54 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1985
SELECT * FROM tab2 WHERE NULL BETWEEN - ( - + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1985
SELECT * FROM tab2 WHERE NULL BETWEEN - ( - + CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + 50 + - 17 FROM tab1
----
233
2333
683

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT - COUNT( * ) + - MIN( ALL - col2 ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1987
SELECT - COUNT ( * ) + - MIN ( ALL - col2 ) AS col2 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT - - col0 AS col0 FROM tab2 WHERE - 90 * - CAST( NULL AS SIGNED ) * + - 25 + + col2 / col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1988
SELECT - - col0 AS col0 FROM tab2 WHERE - 90 * - CAST ( NULL AS INTEGER ) * + - 25 + + col2 / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL 59 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL 59 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + - col1 + - 22 FROM tab0 AS cor0
----
-119
-1237
-1849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col2 FROM tab1 AS cor0
----
196
2209
25

query II rowsort
SELECT DISTINCT 40 * - - col0, + col0 + - col1 * 19 AS col1 FROM tab2 AS cor0
----
1840
-923
2560
-1399
3000
-1198

query III rowsort
SELECT * FROM tab0 WHERE - 50 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col1 / + 81 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND 49 )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-1996
SELECT * FROM tab0 WHERE ( NOT 7 DIV - col0 <> + col0 DIV col1 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-1996
SELECT * FROM tab0 WHERE ( NOT 7 / - col0 <> + col0 / col1 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1997
SELECT DISTINCT - COUNT( * ) * - 46 + - + COUNT( * ), 57 AS col0 FROM tab1
----
135
57

skipif mysql # not compatible
query II rowsort label-1997
SELECT DISTINCT - COUNT ( * ) * - 46 + - + COUNT ( * ), 57 AS col0 FROM tab1
----
135
57

query I rowsort
SELECT ALL + col0 * col0 * 45 - + - col0 FROM tab1 AS cor0
----
117096
325210
372736

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 56 * - 48 * - - ( + col1 ) / + 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2000
SELECT DISTINCT - + col0 DIV col0 * + col2 * - + 84 * - + 57 + + col2 + - col0 - - col0 FROM tab2 AS cor0
----
-110101
-191480
-277646

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - + col0 / col0 * + col2 * - + 84 * - + 57 + + col2 + - col0 - - col0 FROM tab2 AS cor0
----
-110101
-191480
-277646

query I rowsort
SELECT - + col0 + + 28 AS col0 FROM tab2 AS cor0
----
-18
-36
-47

query II rowsort
SELECT ALL col0 * col0 + col1, col2 FROM tab1 AS cor0
----
2615
96
7230
59
8328
68

query I rowsort
SELECT ALL col0 * + - col0 FROM tab0 cor0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT + col2, - 39 - - + 6 * - - 21 FROM tab2 AS cor0 WHERE col2 * + 52 IS NOT NULL
----
23
87
40
87
58
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT ALL - col0 DIV + ( col0 ) col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2005
SELECT ALL - col0 / + ( col0 ) col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 * - + 57 * - ( - - col2 ) * col0 FROM tab0
----
1041390
3254985
547371

onlyif mysql # DIV for integer division: 
query I rowsort label-2007
SELECT - ( + 67 ) DIV col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT - ( + 67 ) / col2 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2008
SELECT + COUNT( * ) / - + CAST( NULL AS SIGNED ) * 66 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * 66 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 19 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-19
-19
-19

query II rowsort
SELECT col0 * + col1 AS col1, 14 FROM tab1
----
425
14
4277
14
714
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2011
SELECT - + ( + + MAX( col2 ) ) DIV 38 AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2011
SELECT - + ( + + MAX ( col2 ) ) / 38 AS col0 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2012
SELECT SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + COUNT( * ) * - 67 * + 65 AS col1 FROM tab1 AS cor0
----
-13065

skipif mysql # not compatible
query I rowsort label-2013
SELECT + COUNT ( * ) * - 67 * + 65 AS col1 FROM tab1 AS cor0
----
-13065

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab2 cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-2015
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col2 - - + col2 IN ( + col1 - - - col2, col2 + + col0 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2016
SELECT CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col2 - - + col2 IN ( + col1 - - - col2, col2 + + col0 )
----
-15
-87
-97

query I rowsort
SELECT + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query II rowsort
SELECT + 61, + col0 AS col0 FROM tab2
----
61
46
61
64
61
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT + + 16 + - MAX( + 97 ) FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2019
SELECT + + 16 + - MAX ( + 97 ) FROM tab2 cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT - CAST( - - col1 AS SIGNED ) + ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT - CAST ( - - col1 AS INTEGER ) + ( col1 ) FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + col1
----

query I rowsort
SELECT + + col0 * + 85 * col0 AS col1 FROM tab1 AS cor0
----
221085
614125
703885

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 52
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT col0 - + col2 * ( col1 ) IS NOT NULL
----

query II rowsort
SELECT + col0, col0 + 38 + + col2 - - + 97 FROM tab2
----
46
204
64
239
75
268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT - CAST( 8 AS SIGNED ) - + - col1 FROM tab1 WHERE - col0 * - col2 - - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2026
SELECT - CAST ( 8 AS INTEGER ) - + - col1 FROM tab1 WHERE - col0 * - col2 - - + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - 18 AS col0, + col2 FROM tab2
----
-18
23
-18
40
-18
58

query I rowsort
SELECT - col1 * + - 44 AS col2 FROM tab1
----
2068
220
616

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - MIN( - col1 ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2029
SELECT - MIN ( - col1 ) col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT ( + - col2 ) + + col1 - + col2 AS col2 FROM tab0
----
-13
-197
1

query I rowsort
SELECT + + col2 * col1 + col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT DISTINCT 11 - + col2 + + 32 FROM tab2 AS cor0
----
-15
20
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IN ( + + 17 + - + col2 + - 94 * + 1, 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + - 80 + + col0 + - ( col2 ) FROM tab2
----
-1817
-3176
-4623

query I rowsort
SELECT - 54 * - col2 AS col0 FROM tab1
----
3186
3672
5184

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT ALL + 15 DIV - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + 15 / - - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL COUNT( * ) FROM tab1 WHERE - col2 * + CAST( NULL AS SIGNED ) + + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL COUNT ( * ) FROM tab1 WHERE - col2 * + CAST ( NULL AS INTEGER ) + + + col1 IS NULL
----
3

query II rowsort
SELECT DISTINCT + - col1 + col1, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 77 + + 24 * - col2 * + + col2 AND + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT COUNT( * ) * COUNT( * ) FROM tab2 cor0 WHERE NOT - col2 * col2 NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 cor0 WHERE NOT - col2 * col2 NOT BETWEEN NULL AND + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT DISTINCT + col1 DIV - + col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + col1 / - + col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT ( + + 60 ) FROM tab1
----
60
60
60

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( + col1 * - col0 * + col1 + + 91, col2 )
----

query II rowsort
SELECT 97 AS col2, col0 AS col1 FROM tab1
----
97
51
97
85
97
91

query II rowsort
SELECT DISTINCT 84, 65 AS col0 FROM tab2
----
84
65

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * 50 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, - col0 col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT 55 * - MAX( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT 55 * - MAX ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL + MAX( + - 75 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + MAX ( + - 75 ) FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT - + COUNT( * ) DIV - SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT - + COUNT ( * ) / - SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - col2 AS col1, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - ( + 36 ) AS col1 FROM tab0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT MAX( + + ( + 72 ) ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2055
SELECT MAX ( + + ( + 72 ) ) FROM tab1
----
72

query I rowsort
SELECT 14 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL - + col2 + + - 36 FROM tab0 cor0
----
-135
-46
-83

query I rowsort
SELECT - col2 * - col2 + - col2 + col2 - + - 70 * - - col2 * - + col0 * + col0 FROM tab2 AS cor0
----
-11467200
-22834136
-3406231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2062
SELECT ALL + + 68 * + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + + 68 * + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT - + col2 * + + col2 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2064
SELECT 77 DIV col0 DIV - 94 + col0 + - col0 + + 72 * - - col1 FROM tab2
----
3672
4824
5544

skipif mysql # not compatible
query I rowsort label-2064
SELECT 77 / col0 / - 94 + col0 + - col0 + + 72 * - - col1 FROM tab2
----
3672
4824
5544

query II rowsort
SELECT DISTINCT 13 AS col0, - col1 * - + 0 + col0 AS col0 FROM tab1
----
13
51
13
85
13
91

query I rowsort
SELECT + 61 * ( 43 ) + + 48 + col1 * - col1 * + 54 - col0 AS col1 FROM tab1
----
-116706
-7964
1236

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 AS col0, 26 FROM tab0
----
10
26
47
26
99
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT DISTINCT CAST( col0 AS SIGNED ) - - col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT CAST ( col0 AS INTEGER ) - - col2 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2070
SELECT * FROM tab1 WHERE + col2 + - 14 BETWEEN ( col1 * + 96 + 37 + - CAST( + - 7 AS DECIMAL ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2070
SELECT * FROM tab1 WHERE + col2 + - 14 BETWEEN ( col1 * + 96 + 37 + - CAST ( + - 7 AS REAL ) ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + 19 * + ( 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT - + col1 - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT - + col1 - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 49 ) FROM tab0 cor0
----
-49

query I rowsort
SELECT + col2 - col1 * 1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 60 + + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT MAX( + 28 ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2077
SELECT MAX ( + 28 ) FROM tab1 AS cor0
----
28

query II rowsort
SELECT ALL + 35 * 16 AS col0, + col2 FROM tab1 AS cor0
----
560
59
560
68
560
96

query II rowsort
SELECT - + col1 * col0 AS col2, - col2 FROM tab0 AS cor0
----
-1215
-47
-1827
-10
-97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col0 * - + 92 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col0 * - + 92 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 11 + + - 34 * - - 6 * - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2 * + + 75, + col1 AS col0 FROM tab1
----
-4425
5
-5100
47
-7200
14

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT - 6 * - - CAST( NULL AS SIGNED ) + + 32 * - 95 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT - 6 * - - CAST ( NULL AS INTEGER ) + + 32 * - 95 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * col1 * + + 33 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT - 75 * + 21 * + 51 + + 25 + + + COUNT( * ) * 20 AS col1 FROM tab1
----
-80240

skipif mysql # not compatible
query I rowsort label-2089
SELECT - 75 * + 21 * + 51 + + 25 + + + COUNT ( * ) * 20 AS col1 FROM tab1
----
-80240

query I rowsort
SELECT ALL + col2 + col0 * - 55 * + col0 * - - ( 1 ) * col2 AS col1 FROM tab2
----
-17943692
-2676717
-9011160

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT ALL + col2 DIV - col2 + + + col0 * - + col0 FROM tab0 AS cor0
----
-226
-7570
-9410

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + col2 / - col2 + + + col0 * - + col0 FROM tab0 AS cor0
----
-226
-7570
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT 97 + + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-2092
SELECT 97 + + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 28 col0 FROM tab0 AS cor0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col0, 62 + - + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-46
16
-64
-2
-75
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab2 cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT + 76 DIV - 39 - - col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
45
63
74

skipif mysql # not compatible
query I rowsort label-2096
SELECT + 76 / - 39 - - col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
45
63
74

query I rowsort
SELECT DISTINCT + - col2 + + + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 69 * + - 1 = NULL )
----

query I rowsort
SELECT + col1 * - - 77 FROM tab2 cor0
----
3927
5159
5929

query I rowsort
SELECT + 86 FROM tab2 cor0 WHERE col1 / - + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT - MIN( DISTINCT + + 37 ) * + - COUNT( * ), SUM( - 22 ) AS col0 FROM tab1 AS cor0
----
111
-66

skipif mysql # not compatible
query II rowsort label-2101
SELECT - MIN ( DISTINCT + + 37 ) * + - COUNT ( * ), SUM ( - 22 ) AS col0 FROM tab1 AS cor0
----
111
-66

query III rowsort
SELECT * FROM tab1 WHERE + - col1 >= + col0 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT DISTINCT COUNT( col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT COUNT ( col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT + SUM( DISTINCT + 70 ) + SUM( + 43 ) FROM tab2
----
199

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + SUM ( DISTINCT + 70 ) + SUM ( + 43 ) FROM tab2
----
199

query I rowsort
SELECT 15 - col0 + - 90 + - + ( - + ( - - col1 ) ) * 41 + - - col1 FROM tab2
----
2021
2664
3095

query II rowsort
SELECT - 8 + - - col1 AS col2, col0 AS col1 FROM tab1
----
-3
85
39
91
6
51

query I rowsort
SELECT DISTINCT + col2 - - col2 * - col2 AS col1 FROM tab2 cor0
----
-1560
-3306
-506

query I rowsort
SELECT ALL - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT col1, 32 AS col0 FROM tab0
----
1
32
21
32
81
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT + col1 + - 78 AS col2 FROM tab0 WHERE NOT ( NOT col1 * - + CAST( + - col0 AS SIGNED ) + + col2 + col1 + - CAST( NULL AS SIGNED ) + - - 85 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2110
SELECT + col1 + - 78 AS col2 FROM tab0 WHERE NOT ( NOT col1 * - + CAST ( + - col0 AS INTEGER ) + + col2 + col1 + - CAST ( NULL AS INTEGER ) + - - 85 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - 42 FROM tab0 AS cor0 WHERE NOT col0 - + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT - + 18 - col1 FROM tab1 AS cor0 WHERE NOT - CAST( + 70 AS SIGNED ) IS NULL
----
-23
-32
-65

skipif mysql # not compatible
query I rowsort label-2113
SELECT - + 18 - col1 FROM tab1 AS cor0 WHERE NOT - CAST ( + 70 AS INTEGER ) IS NULL
----
-23
-32
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL MIN( DISTINCT - 4 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL MIN ( DISTINCT - 4 ) FROM tab1 AS cor0
----
-4

query I rowsort
SELECT - 65 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT - - 90 DIV - 86 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2116
SELECT - - 90 / - 86 FROM tab2 cor0
----
-1
-1
-1

query II rowsort
SELECT - 66 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-66
-59
-66
-68
-66
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - SUM( ( - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2118
SELECT - SUM ( ( - col0 ) ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL - MIN( + + col2 ) * - 37 AS col2 FROM tab0
----
370

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL - MIN ( + + col2 ) * - 37 AS col2 FROM tab0
----
370

query I rowsort
SELECT ALL 80 + + - 21 + col0 AS col1 FROM tab0
----
146
156
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT COUNT( ALL + - 29 ) * - 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT COUNT ( ALL + - 29 ) * - 90 FROM tab2
----
-270

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - + col2
----

query I rowsort
SELECT + col0 + + - col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + - ( + ( + col2 ) ) FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT ALL 48 AS col2, col2 + 95 FROM tab2 AS cor0
----
48
118
48
135
48
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2127
SELECT + CAST( + col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-2127
SELECT + CAST ( + col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + - COUNT( + - col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2128
SELECT + - COUNT ( + - col0 ) FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2129
SELECT + 43 DIV col2, 37 AS col2 FROM tab2 AS cor0
----
0
37
1
37
1
37

skipif mysql # not compatible
query II rowsort label-2129
SELECT + 43 / col2, 37 AS col2 FROM tab2 AS cor0
----
0
37
1
37
1
37

query I rowsort
SELECT ALL + 85 + - ( + 0 ) AS col0 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT SUM( - ( + + 63 ) ) + + COUNT( * ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-2131
SELECT SUM ( - ( + + 63 ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT + + col0 DIV + + 46 + + col2 * - - 73 AS col0 FROM tab2 AS cor0
----
1680
2921
4235

skipif mysql # not compatible
query I rowsort label-2132
SELECT + + col0 / + + 46 + + col2 * - - 73 AS col0 FROM tab2 AS cor0
----
1680
2921
4235

query I rowsort
SELECT col0 * + - col2 + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT DISTINCT + col2 * + + col0 * - 38 AS col1 FROM tab1 AS cor0
----
-186048
-190570
-235144

query I rowsort
SELECT + 85 + - 52 * + col1 FROM tab2 AS cor0 WHERE NULL < + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 cor0 WHERE 72 = NULL
----

query I rowsort
SELECT ALL + col0 * + + col1 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL - 35 FROM tab0 WHERE NOT + col1 * - + 41 IS NOT NULL
----

query I rowsort
SELECT ALL 48 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT + COUNT( DISTINCT + + 93 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2140
SELECT + COUNT ( DISTINCT + + 93 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT + + COUNT( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2141
SELECT + + COUNT ( col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2142
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 88 NOT IN ( + col1 - - col2, 80, - CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-2142
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 88 NOT IN ( + col1 - - col2, 80, - CAST ( NULL AS INTEGER ), - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT COUNT( DISTINCT - 62 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2143
SELECT COUNT ( DISTINCT - 62 ) AS col2 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + + 77 IS NULL
----

query I rowsort
SELECT ALL col0 * 23 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT + 85 * col2 - - col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT - COUNT( 45 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2147
SELECT - COUNT ( 45 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + COUNT( * ) * 94 FROM tab0 WHERE col2 + col1 IS NOT NULL
----
282

skipif mysql # not compatible
query I rowsort label-2148
SELECT + COUNT ( * ) * 94 FROM tab0 WHERE col2 + col1 IS NOT NULL
----
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2149
SELECT + COUNT( ALL - CAST( col1 AS SIGNED ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2149
SELECT + COUNT ( ALL - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT - MIN( DISTINCT 64 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - MIN ( DISTINCT 64 ) FROM tab0
----
-64

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT CAST( + 66 AS SIGNED ) + COUNT( * ) * 17 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-2152
SELECT CAST ( + 66 AS INTEGER ) + COUNT ( * ) * 17 FROM tab2
----
117

query I rowsort
SELECT col2 + + 62 * - col2 AS col0 FROM tab0
----
-2867
-6039
-610

query I rowsort
SELECT DISTINCT col2 + + 5 AS col1 FROM tab2
----
28
45
63

query I rowsort
SELECT DISTINCT - 7 FROM tab2 WHERE ( NULL ) >= ( - ( + col2 ) )
----

query I rowsort
SELECT + 70 * col0 + - col0 FROM tab1
----
3519
5865
6279

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 56 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT + col1 DIV 17 + - 11 AS col1 FROM tab1
----
-11
-11
-9

skipif mysql # not compatible
query I rowsort label-2158
SELECT + col1 / 17 + - 11 AS col1 FROM tab1
----
-11
-11
-9

query I rowsort
SELECT ALL - ( - 7 ) * - col2 + - col2 AS col2 FROM tab2
----
-184
-320
-464

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT + 56 + + ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col1 * + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * col0 + - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + col0 * col2 AS col1 FROM tab1
----
4800
4956
6120

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + col0 * col2 AS col1 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT DISTINCT 98 FROM tab0 WHERE NOT - col0 NOT BETWEEN col1 - - 56 AND 8 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT col1 DIV 10 AS col0 FROM tab0 WHERE ( + ( - 75 ) ) NOT IN ( + 63 )
----
0
2
8

skipif mysql # not compatible
query I rowsort label-2167
SELECT col1 / 10 AS col0 FROM tab0 WHERE ( + ( - 75 ) ) NOT IN ( + 63 )
----
0
2
8

query I rowsort
SELECT - 6 - - col0 FROM tab0
----
81
9
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT - SUM( - 58 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-2169
SELECT - SUM ( - 58 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
522

query I rowsort
SELECT DISTINCT - col0 * - 69 FROM tab2 AS cor0
----
3174
4416
5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT CAST( NULL AS SIGNED ) + - 96 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT CAST ( NULL AS INTEGER ) + - 96 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT DISTINCT col1 + + 99 AS col0 FROM tab0 WHERE NOT ( col1 * - col2 + + 84 * + CAST( 50 AS SIGNED ) ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT col1 + + 99 AS col0 FROM tab0 WHERE NOT ( col1 * - col2 + + 84 * + CAST ( 50 AS INTEGER ) ) NOT IN ( + col1 )
----

query I rowsort
SELECT + col0 + 41 AS col1 FROM tab1
----
126
132
92

query I rowsort
SELECT DISTINCT 63 - + 81 AS col0 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND col1 * - col1 + + col0 / 15
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - col0 - 25 AS col2 FROM tab2 AS cor0
----
21
39
50

query I rowsort
SELECT DISTINCT - + col2 - + 56 FROM tab1 AS cor0
----
-115
-124
-152

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 73 + - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL + - SUM( 45 ) - - MAX( 43 ) AS col0 FROM tab0 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL + - SUM ( 45 ) - - MAX ( 43 ) AS col0 FROM tab0 cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT ALL - col0 DIV - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - col0 / - col0 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 * - col2 ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab0 WHERE + 42 * - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2182
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab0 WHERE + 42 * - col0 <= NULL
----

query I rowsort
SELECT + 40 FROM tab1 WHERE NULL IS NULL
----
40
40
40

query I rowsort
SELECT col0 * + + 0 - col2 AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * + col1 ) <> NULL
----

query I rowsort
SELECT col0 + + + col1 * col2 FROM tab0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT SUM( col1 ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-2187
SELECT SUM ( col1 ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE col0 * - 70 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE col0 * - 70 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col2 FROM tab2 AS cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND col2 + - col1 * col1
----

query I rowsort
SELECT DISTINCT - col2 * + col2 * col1 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT DISTINCT col0 - 89 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT col0 * + + col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - 59 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + ( col2 ) * - 94 + - 12
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT MAX( ALL + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab0 cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / col2 BETWEEN + col0 + + 64 AND ( + 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 0, + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT col2 * CAST( NULL AS SIGNED ) + 42 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2201
SELECT col2 * CAST ( NULL AS INTEGER ) + 42 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 35 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL - 17 + - COUNT( * ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - 17 + - COUNT ( * ) FROM tab2
----
-20

query I rowsort
SELECT col1 - - col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 28 * - 47 + - col2 AS col1 FROM tab2
----
-1339
-1356
-1374

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 19 FROM tab0 AS cor0 WHERE 43 BETWEEN + ( - 45 ) + + 19 AND NULL
----

query I rowsort
SELECT ALL - + col1 * 71 * - - col0 AS col0 FROM tab1 cor0
----
-30175
-303667
-50694

query I rowsort
SELECT DISTINCT + 34 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
34

query II rowsort
SELECT DISTINCT col0 * - col2 * + col0 AS col2, 77 + - + col2 + - ( col0 ) * - 19 AS col2 FROM tab1
----
-249696
950
-426275
1633
-563108
1738

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 = col1 * + + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL + 90 * - MAX( + + col0 ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-8187

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + 90 * - MAX ( + + col0 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-8187

query I rowsort
SELECT + + col0 + - - col1 * + col0 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - 56 * - - SUM( ALL - col0 ) + + MIN( - col1 ) FROM tab1 AS cor0
----
12665

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - 56 * - - SUM ( ALL - col0 ) + + MIN ( - col1 ) FROM tab1 AS cor0
----
12665

query I rowsort
SELECT + ( 88 ) + + - col2 AS col1 FROM tab1 cor0
----
-8
20
29

query I rowsort
SELECT - col0 + - + 82 FROM tab2 AS cor0
----
-128
-146
-157

query I rowsort
SELECT - + col1 + - 15 AS col1 FROM tab1 AS cor0
----
-20
-29
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2221
SELECT * FROM tab0 AS cor0 WHERE - 66 / - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2221
SELECT * FROM tab0 AS cor0 WHERE - 66 / - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 57 + + 69 AS col1 FROM tab2 AS cor0
----
126
126
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL - + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 AS col1, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - col1 - - - col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT - col1 * - - 96 FROM tab2
----
-4896
-6432
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT + 67 * col2 / 82 + - CAST( NULL AS SIGNED ) IN ( 78 )
----

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT + 67 * col2 / 82 + - CAST ( NULL AS INTEGER ) IN ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT SUM( + 27 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-2228
SELECT SUM ( + 27 ) FROM tab2
----
81

query II rowsort
SELECT ALL + col1 AS col2, - col1 * col1 FROM tab2 AS cor0
----
51
-2601
67
-4489
77
-5929

query I rowsort
SELECT DISTINCT + - 8 AS col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
-8

query I rowsort
SELECT + col2 + + col1 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( 65 * - + 88 + - 62 + + col0 ) NOT BETWEEN 44 * - 34 AND + col1 + - col1 / - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT MIN( + 82 ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-2232
SELECT MIN ( + 82 ) FROM tab0
----
82

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 < - col1 - - col2 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT 81 * - + COUNT( * ) AS col1 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-2234
SELECT 81 * - + COUNT ( * ) AS col1 FROM tab1
----
-243

query I rowsort
SELECT - 98 + + col1 * col0 FROM tab0
----
-1
1117
1729

query I rowsort
SELECT + 56 + + 85 - + - col2 * - - col1 FROM tab1 AS cor0
----
1485
3337
436

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - 57 + MIN( - + col1 ) col1 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2237
SELECT - 57 + MIN ( - + col1 ) col1 FROM tab2 AS cor0
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - 95 ) * - + col2 IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( - 95 ) * - + col2 IS NOT NULL ) )
----
0

query I rowsort
SELECT DISTINCT 72 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1080
6264
6984

query II rowsort
SELECT + col2, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + + col1 * + col2 - col1 - col2 - + col1 + - 74 * + col1 FROM tab1 WHERE - 62 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT + MIN( col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2242
SELECT + MIN ( col1 ) AS col2 FROM tab0
----
1

query II rowsort
SELECT col1, - col0 AS col1 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT - CAST( - - col1 AS SIGNED ) col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2244
SELECT - CAST ( - - col1 AS INTEGER ) col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - col0 + - - col2 AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - 92 * - 43 AS col1 FROM tab2 AS cor0 WHERE - col0 - + 81 IS NOT NULL
----
3956

query II rowsort
SELECT ALL - col2 AS col1, ( 86 ) * ( - 56 ) FROM tab2 AS cor0
----
-23
-4816
-40
-4816
-58
-4816

query I rowsort
SELECT - 48 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT DISTINCT + 28 - col2 AS col0 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT MAX( ALL col2 ) FROM tab1 AS cor0 WHERE col2 + col1 / + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT MAX ( ALL col2 ) FROM tab1 AS cor0 WHERE col2 + col1 / + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 - - 94 AS col2 FROM tab1 AS cor0
----
145
179
185

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT 68 * - - col2 FROM tab0 AS cor0
----
3196
6732
680

query I rowsort
SELECT col2 * + 57 FROM tab0
----
2679
5643
570

query I rowsort
SELECT DISTINCT ( 12 ) AS col2 FROM tab0
----
12

query I rowsort
SELECT DISTINCT - 22 * + col1 FROM tab1
----
-1034
-110
-308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2257
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * + - 87 * - 60 AS col1 FROM tab1
----
-15660

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * + - 87 * - 60 AS col1 FROM tab1
----
-15660

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 56 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-56
-56
-56

query I rowsort
SELECT DISTINCT col2 * + 37 * 50 + - + col1 + - 11 + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <> ( 72 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT MAX( + 29 ) AS col1 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT MAX ( + 29 ) AS col1 FROM tab0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT DISTINCT - + 83 DIV - col2 - - - 50 FROM tab1 AS cor0
----
-49
-50

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT - + 83 / - col2 - - - 50 FROM tab1 AS cor0
----
-49
-50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 93 IN ( 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + + COUNT( ALL - + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + + COUNT ( ALL - + col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2266
SELECT ALL + - col0, col1 DIV - 86 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-2266
SELECT ALL + - col0, col1 / - 86 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT COUNT( * ) AS col1, MAX( + - 57 ) FROM tab1 cor0
----
3
-57

skipif mysql # not compatible
query II rowsort label-2267
SELECT COUNT ( * ) AS col1, MAX ( + - 57 ) FROM tab1 cor0
----
3
-57

query II rowsort
SELECT - - 47, col1 FROM tab0 AS cor0
----
47
1
47
21
47
81

query I rowsort
SELECT - col1 * - 99 AS col0 FROM tab1 AS cor0
----
1386
4653
495

query I rowsort
SELECT - col1 * + 38 * - col2 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
117104
147743
44620

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * - col0 / 76 BETWEEN + + col0 AND NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - col2 - + + 46 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2274
SELECT + - 83, - CAST( NULL AS SIGNED ) + 89 - - + col2 * + col1 FROM tab1 WHERE NULL = + - col2 - - col2 * + + col2 + - col2
----

skipif mysql # not compatible
query II rowsort label-2274
SELECT + - 83, - CAST ( NULL AS INTEGER ) + 89 - - + col2 * + col1 FROM tab1 WHERE NULL = + - col2 - - col2 * + + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT COUNT( * ) + + SUM( ALL - col0 ) - 41 AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-2275
SELECT COUNT ( * ) + + SUM ( ALL - col0 ) - 41 AS col1 FROM tab0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT DISTINCT + + col1 * col0 DIV + 82 FROM tab0 AS cor0
----
1
14
22

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT + + col1 * col0 / + 82 FROM tab0 AS cor0
----
1
14
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT - ( + COUNT( * ) ) DIV + - COUNT( * ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2277
SELECT - ( + COUNT ( * ) ) / + - COUNT ( * ) AS col2 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2278
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1, col1, CAST( NULL AS SIGNED ), - col1 + col0 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-2278
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1, col1, CAST ( NULL AS INTEGER ), - col1 + col0 + - col1 )
----

query II rowsort
SELECT - 95, 41 * + 26 AS col1 FROM tab1 AS cor0
----
-95
1066
-95
1066
-95
1066

query I rowsort
SELECT ALL + ( - + col1 ) FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT - - 66 AS col1 FROM tab0 WHERE NOT col2 <> col0
----

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-11

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 + 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 90 * 18 + 56 + col1 AS col0 FROM tab2 WHERE NOT col0 >= + + 46
----

query I rowsort
SELECT 10 * + 22 FROM tab1
----
220
220
220

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT MAX( ALL 99 ) * - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT MAX ( ALL 99 ) * - COUNT ( * ) FROM tab0
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT ALL 87 DIV - COUNT( * ) AS col2 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL 87 / - COUNT ( * ) AS col2 FROM tab2
----
-29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 - + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 67 * + + col0 FROM tab0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 88 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 88 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2292
SELECT + COUNT( * ) * + 39 AS col0, ( + + MAX( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
117
-10

skipif mysql # not compatible
query II rowsort label-2292
SELECT + COUNT ( * ) * + 39 AS col0, ( + + MAX ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
117
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2293
SELECT + col2 DIV + + 81, - col0 AS col2 FROM tab1 AS cor0
----
0
-85
0
-91
1
-51

skipif mysql # not compatible
query II rowsort label-2293
SELECT + col2 / + + 81, - col0 AS col2 FROM tab1 AS cor0
----
0
-85
0
-91
1
-51

query II rowsort
SELECT + 52, 10 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
52
10
52
10
52
10

query I rowsort
SELECT col0 * - - 59 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT DISTINCT + - col1 + - col0 + + CAST( + - 40 AS SIGNED ) AS col1 FROM tab2 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + - col1 + - col0 + + CAST ( + - 40 AS INTEGER ) AS col1 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL col2 + 91 AS col0 FROM tab2
----
114
131
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + COUNT( * ) + - 15 AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2298
SELECT + COUNT ( * ) + - 15 AS col2 FROM tab0
----
-12

query I rowsort
SELECT 96 + col1 FROM tab2
----
147
163
173

query I rowsort
SELECT col1 + 59 FROM tab2
----
110
126
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE - + 73 - - - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2301
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + 73 - - - col2 IS NULL
----

query I rowsort
SELECT + 87 + ( + - col2 ) + ( - col0 ) FROM tab0 cor0
----
-10
-109
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - 92 + SUM( + 79 ) AS col2 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-2303
SELECT - 92 + SUM ( + 79 ) AS col2 FROM tab0 AS cor0
----
145

query I rowsort
SELECT ALL + 28 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 60 * - col0 * ( 27 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2306
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - CAST ( NULL AS REAL ) * col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 FROM tab2 WHERE col0 * + 9 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT + 44 * + COUNT( * ) * + - ( COUNT( * ) ) AS col2 FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT + 44 * + COUNT ( * ) * + - ( COUNT ( * ) ) AS col2 FROM tab2
----
-396

query I rowsort
SELECT DISTINCT col1 + col2 + + - 69 + - + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-18
-2
8

query I rowsort
SELECT DISTINCT col0 * - + 21 AS col0 FROM tab1
----
-1071
-1785
-1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT - COUNT( + - CAST( NULL AS SIGNED ) ) * + MAX( ALL + - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT - COUNT ( + - CAST ( NULL AS INTEGER ) ) * + MAX ( ALL + - col1 ) FROM tab0
----
0

query I rowsort
SELECT + ( - col0 ) * - 55 AS col2 FROM tab1
----
2805
4675
5005

query II rowsort
SELECT ALL + col1 AS col2, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + 34 + col0 AS col1 FROM tab2
----
109
80
98

query I rowsort
SELECT ALL + 29 - - col0 FROM tab1
----
114
120
80

query I rowsort
SELECT DISTINCT 45 + + - col0 AS col0 FROM tab1
----
-40
-46
-6

query I rowsort
SELECT + - 8 + + + col2 + col0 AS col2 FROM tab2 AS cor0
----
125
61
96

onlyif mysql # DIV for integer division: 
query II rowsort label-2318
SELECT DISTINCT - + col2 - - col0 AS col2, col1 DIV + col2 AS col2 FROM tab2 cor0
----
17
1
23
2
24
1

skipif mysql # not compatible
query II rowsort label-2318
SELECT DISTINCT - + col2 - - col0 AS col2, col1 / + col2 AS col2 FROM tab2 cor0
----
17
1
23
2
24
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2319
SELECT 75 * - - col0 + + - ( + 46 ) + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT 75 * - - col0 + + - ( + 46 ) + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - COUNT( DISTINCT - 89 ) * COUNT( DISTINCT - + col2 ) + + COUNT( 31 ) FROM tab1 cor0 WHERE + col2 >= col1
----
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT - COUNT ( DISTINCT - 89 ) * COUNT ( DISTINCT - + col2 ) + + COUNT ( 31 ) FROM tab1 cor0 WHERE + col2 >= col1
----
0

query I rowsort
SELECT + 46 FROM tab1 AS cor0 WHERE ( NULL ) <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT 77 DIV - - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2322
SELECT 77 / - - col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + MIN( + + ( + - col2 ) ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2323
SELECT + MIN ( + + ( + - col2 ) ) FROM tab1 cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 66 col0, + col0 * + + col2 col2 FROM tab1
----
66
4896
66
5015
66
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT COUNT( * ) AS col0, - 74 FROM tab1
----
3
-74

skipif mysql # not compatible
query II rowsort label-2325
SELECT COUNT ( * ) AS col0, - 74 FROM tab1
----
3
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT COUNT( * ) * ( - MAX( DISTINCT 69 ) ) AS col1 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-2326
SELECT COUNT ( * ) * ( - MAX ( DISTINCT 69 ) ) AS col1 FROM tab2
----
-207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 * - - col2 * - + col0 col1 FROM tab2
----
121800
29624
71680

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( col0 ) * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 56 FROM tab2 WHERE + + col1 >= col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - MIN( ALL + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - MIN ( ALL + col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2331
SELECT DISTINCT 39 AS col0, + COUNT( * ) + + 17 + COUNT( * ) AS col0 FROM tab2 cor0
----
39
23

skipif mysql # not compatible
query II rowsort label-2331
SELECT DISTINCT 39 AS col0, + COUNT ( * ) + + 17 + COUNT ( * ) AS col0 FROM tab2 cor0
----
39
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT DISTINCT - 78 DIV + 46 + + - col2 * - + 20 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1979
199
939

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT - 78 / + 46 + + - col2 * - + 20 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1979
199
939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL CAST( NULL AS SIGNED ) * col1 * - - 1 * + ( - + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL CAST ( NULL AS INTEGER ) * col1 * - - 1 * + ( - + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 * - 92 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col0 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT + 49 + + col2 FROM tab0
----
148
59
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT DISTINCT - 14 DIV - COUNT( * ) + + SUM( col2 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - 14 / - COUNT ( * ) + + SUM ( col2 ) FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT - MAX( ALL - 25 ) * COUNT( * ) AS col0 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - MAX ( ALL - 25 ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
75

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE - col0 * - - col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + + 91 + + + col0 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT ALL - col2 * + + 99 AS col1 FROM tab1 AS cor0
----
-5841
-6732
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2343
SELECT * FROM tab0 AS cor0 WHERE NULL > - CAST( NULL AS SIGNED ) - - - col1 * + 49
----

skipif mysql # not compatible
query III rowsort label-2343
SELECT * FROM tab0 AS cor0 WHERE NULL > - CAST ( NULL AS INTEGER ) - - - col1 * + 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + + + col0 col1 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE + col0 * + - col2 * + 46 NOT BETWEEN col0 * - 69 AND col0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ( + COUNT( DISTINCT 62 ) ) + + + 91 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2346
SELECT ( + COUNT ( DISTINCT 62 ) ) + + + 91 FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT - 33 * col1 AS col2 FROM tab0
----
-2673
-33
-693

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= 55
----

query I rowsort
SELECT + 67 + - 11 FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT - col2 + + 89 * - + col2 FROM tab2
----
-2070
-3600
-5220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2351
SELECT ALL 55 DIV - MIN( - - 8 ) AS col0, - COUNT( * ) FROM tab2
----
-6
-3

skipif mysql # not compatible
query II rowsort label-2351
SELECT ALL 55 / - MIN ( - - 8 ) AS col0, - COUNT ( * ) FROM tab2
----
-6
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL - COUNT( * ) + + 24 AS col1 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - COUNT ( * ) + + 24 AS col1 FROM tab1
----
21

query III rowsort
SELECT * FROM tab1 WHERE - col2 / + col0 * - 8 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - + col0 + - col2
----

query I rowsort
SELECT ALL - col2 * + col0 * col2 AS col2 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT - col2 + - - 18 AS col0 FROM tab2
----
-22
-40
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + 59, 10 * - 64 * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT ( + - COUNT( * ) ) + + SUM( DISTINCT - col2 ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT ( + - COUNT ( * ) ) + + SUM ( DISTINCT - col2 ) FROM tab0
----
-159

query I rowsort
SELECT ALL 44 * - col2 * col0 + col1 * col0 - + col1 FROM tab2
----
-107789
-186442
-44257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT + CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col0, col2 * - 96 FROM tab2
----
46
-2208
64
-3840
75
-5568

query I rowsort
SELECT ALL + - ( + 26 ) FROM tab0 AS cor0
----
-26
-26
-26

query II rowsort
SELECT - + col2 * + col2 * + ( + - 61 ) AS col2, col1 FROM tab0 AS cor0
----
134749
81
597861
1
6100
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2364
SELECT col0, - ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2364
SELECT col0, - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT DISTINCT - + 3 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 - - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - + 3 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 - - CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT - + 18 * - col1 AS col1 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + MAX( ALL - 90 ) FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + col0, ( col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT + MAX ( ALL - 90 ) FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + col0, ( col1 ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 1 NOT BETWEEN + - col0 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 16 col2, col1 col0 FROM tab2 AS cor0
----
-16
51
-16
67
-16
77

query I rowsort
SELECT - 60 FROM tab1 WHERE NOT + 77 * + - 51 / - + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT + CAST( NULL AS SIGNED ) + ( - + col2 ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT + CAST ( NULL AS INTEGER ) + ( - + col2 ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 WHERE + - ( - ( - 86 ) ) < NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT + 13 + - - col1 FROM tab2
----
64
80
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2377
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - col1 * - col0 + - 58 AND - - CAST( NULL AS SIGNED ) + - - col1
----

skipif mysql # not compatible
query III rowsort label-2377
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN - col1 * - col0 + - 58 AND - - CAST ( NULL AS INTEGER ) + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT COUNT( - 48 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2378
SELECT COUNT ( - 48 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - 50 - - 59 AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT - CAST( 3 AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT - CAST ( 3 AS INTEGER ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT - col0, + col1 FROM tab2 WHERE + col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 42 + - col0 BETWEEN NULL AND - col1 )
----
15
81
47

query I rowsort
SELECT + 27 FROM tab2, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT - col0 DIV + 18 + - - col0 AS col1 FROM tab2
----
44
61
71

skipif mysql # not compatible
query I rowsort label-2384
SELECT - col0 / + 18 + - - col0 AS col1 FROM tab2
----
44
61
71

query I rowsort
SELECT col0 + - - 58 AS col1 FROM tab2
----
104
122
133

query I rowsort
SELECT DISTINCT 98 - + col1 FROM tab2
----
21
31
47

query I rowsort
SELECT DISTINCT + - col0 - - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0

query I rowsort
SELECT 69 * + ( - + 92 ) AS col2 FROM tab2
----
-6348
-6348
-6348

query I rowsort
SELECT + 66 + - 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - COUNT( * ) * + - 60 FROM tab0 cor0
----
180

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - COUNT ( * ) * + - 60 FROM tab0 cor0
----
180

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab1 AS cor0 WHERE 13 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT + SUM( - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT + SUM ( - + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT ALL + AVG ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL + AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT + - COUNT( * ) * + 3 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2395
SELECT + - COUNT ( * ) * + 3 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2396
SELECT 14 - - col1 + - ( 37 ) * + + col2 AS col2 FROM tab2 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2396
SELECT 14 - - col1 + - ( 37 ) * + + col2 AS col2 FROM tab2 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2397
SELECT - CAST( - MIN( + - col0 ) AS DECIMAL ) FROM tab2 WHERE NOT NULL < col2 * - col2 + col2 + 58 / + - col0 * + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT - CAST ( - MIN ( + - col0 ) AS REAL ) FROM tab2 WHERE NOT NULL < col2 * - col2 + col2 + 58 / + - col0 * + - col2
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 * + 19 FROM tab0
----
1978
277
908

query II rowsort
SELECT DISTINCT + col0, - 95 + + 23 * - col0 FROM tab1 cor0
----
51
-1268
85
-2050
91
-2188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT MIN( + - col1 ) col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2401
SELECT MIN ( + - col1 ) col1 FROM tab1 cor0
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 76 IS NOT NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2403
SELECT + 46 / - ( - ( - 71 ) ) - - - ( + + col1 ) * CAST( NULL AS SIGNED ) + 24 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT + 46 / - ( - ( - 71 ) ) - - - ( + + col1 ) * CAST ( NULL AS INTEGER ) + 24 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 40 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query II rowsort
SELECT - 4 * - + 32, col0 + + + 28 * - 42 AS col1 FROM tab2 WHERE + - col0 > ( NULL )
----

query II rowsort
SELECT ALL - 82 AS col2, col0 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-82
15
-82
87
-82
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + - col2 * ( + col1 ) col1 FROM tab2 AS cor0
----
-1109
-3016
-3822

query I rowsort
SELECT + + 50 * - - 41 * + 30 + 1 FROM tab2 cor0
----
61501
61501
61501

onlyif mysql # aggregate syntax: 
query II rowsort label-2409
SELECT DISTINCT + 80 col1, MIN( - 91 ) * + + COUNT( * ) FROM tab2
----
80
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2409
SELECT DISTINCT + 80 col1, MIN ( - 91 ) * + + COUNT ( * ) FROM tab2
----
80
-273

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 43 <= - 82 + + + col2 / 4 + + + ( - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL MIN( ALL col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL MIN ( ALL col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL 98 AS col1 FROM tab0 WHERE NOT + col2 / + 47 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 <= - col1 + - 57 * + 53 / col2
----

query I rowsort
SELECT ALL - col1 * + 95 AS col1 FROM tab2
----
-4845
-6365
-7315

query II rowsort
SELECT col2, + col1 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT ALL + + col1 DIV 10 AS col2 FROM tab0 AS cor0
----
0
2
8

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + + col1 / 10 AS col2 FROM tab0 AS cor0
----
0
2
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT col1 DIV - - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2417
SELECT col1 / - - col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2418
SELECT ALL + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) / - col2 * - col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2418
SELECT ALL + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) / - col2 * - col0, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2419
SELECT - CAST( NULL AS SIGNED ) / + + CAST( - col2 AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT - CAST ( NULL AS INTEGER ) / + + CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 78 * - col0 * col0 FROM tab2 cor0
----
-165048
-319488
-438750

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - COUNT( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT - COUNT ( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2422
SELECT DISTINCT - 89 DIV MAX( ALL col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT - 89 / MAX ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 NOT BETWEEN + 15 AND ( - 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col2 ) col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - ( - - 63 ) AS col2 FROM tab1 cor0
----
-63
-63
-63

query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE NOT ( NOT + col1 > NULL )
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - col2 * 9 + - col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT + 45 * - COUNT( * ) + MAX( ALL - - col2 ) col2 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2428
SELECT DISTINCT + 45 * - COUNT ( * ) + MAX ( ALL - - col2 ) col2 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 27 ) col1 FROM tab2
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 75 col2 FROM tab1
----
-10
-16
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT + MAX( 64 ) + - + 80 AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT + MAX ( 64 ) + - + 80 AS col0 FROM tab1
----
-16

query I rowsort
SELECT ALL 69 AS col1 FROM tab0 WHERE NOT - + col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT - 71 + - + COUNT( * ) AS col0, + 18 AS col2 FROM tab0
----
-74
18

skipif mysql # not compatible
query II rowsort label-2433
SELECT - 71 + - + COUNT ( * ) AS col0, + 18 AS col2 FROM tab0
----
-74
18

query I rowsort
SELECT DISTINCT 73 + + + 12 FROM tab0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2435
SELECT COUNT( * ) DIV - - 54 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT COUNT ( * ) / - - 54 AS col2 FROM tab0
----
0

query I rowsort
SELECT - - 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2437
SELECT + 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-2437
SELECT + CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT ALL - - 55 + - col0 - + col2 FROM tab1 AS cor0
----
-104
-89
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 19 * - col2 < + - 33
----
-3

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 19 * - col2 < + - 33
----
-3

query I rowsort
SELECT DISTINCT 24 * + - col1 - - + col2 AS col0 FROM tab1 AS cor0
----
-1060
-240
-61

query I rowsort
SELECT + col2 - + 16 FROM tab1 cor0
----
43
52
80

query II rowsort
SELECT DISTINCT - col0 - + col2 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-144
85
-147
51
-159
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col0, 69, + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 * - col2 - 72 AS col0 FROM tab0
----
138
27
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT + SUM( col1 ) * - + 59 AS col1 FROM tab0
----
-6077

skipif mysql # not compatible
query I rowsort label-2446
SELECT + SUM ( col1 ) * - + 59 AS col1 FROM tab0
----
-6077

onlyif mysql # DIV for integer division: 
query II rowsort label-2447
SELECT col1 DIV - col2, 40 AS col2 FROM tab2
----
-1
40
-1
40
-2
40

skipif mysql # not compatible
query II rowsort label-2447
SELECT col1 / - col2, 40 AS col2 FROM tab2
----
-1
40
-1
40
-2
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT col0 DIV - ( 53 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2448
SELECT col0 / - ( 53 ) FROM tab1
----
-1
-1
0

query I rowsort
SELECT 31 * ( col1 ) FROM tab0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL + MIN( - col0 ) * + + COUNT( * ) AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + MIN ( - col0 ) * + + COUNT ( * ) AS col2 FROM tab0
----
-291

query I rowsort
SELECT DISTINCT 59 * 19 FROM tab0
----
1121

query I rowsort
SELECT DISTINCT ( - + 15 ) AS col0 FROM tab2 WHERE NOT + 62 IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT SUM( ALL ( - ( + 94 ) ) ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-2453
SELECT SUM ( ALL ( - ( + 94 ) ) ) FROM tab1
----
-282

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT ALL - 73 AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-73
9

skipif mysql # not compatible
query II rowsort label-2454
SELECT ALL - 73 AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-73
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2455
SELECT DISTINCT col1 DIV - CAST( ( + + 19 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT col1 / - CAST ( ( + + 19 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL + - ( - - 55 ) AS col2 FROM tab2 cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2457
SELECT + 89 * - ( CAST( - col2 AS SIGNED ) ) * col0 DIV col2 AS col2 FROM tab2 cor0
----
4094
5696
6675

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 89 * - ( CAST ( - col2 AS INTEGER ) ) * col0 / col2 AS col2 FROM tab2 cor0
----
4094
5696
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - 77 + + - 93 - + - COUNT( * ) FROM tab0
----
-167

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 77 + + - 93 - + - COUNT ( * ) FROM tab0
----
-167

query II rowsort
SELECT 5 + 0, col0 AS col2 FROM tab1
----
5
51
5
85
5
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL + COUNT( * ) + 17 AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + COUNT ( * ) + 17 AS col2 FROM tab0
----
20

query III rowsort
SELECT ALL * FROM tab2 WHERE - 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 83 + + col1 + - - 72 FROM tab0 AS cor0
----
-10
10
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT + 32 * - MIN( DISTINCT col1 ) * + 3 * + 55 FROM tab1
----
-26400

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + 32 * - MIN ( DISTINCT col1 ) * + 3 * + 55 FROM tab1
----
-26400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2465
SELECT DISTINCT COUNT( DISTINCT 95 ) * - CAST( NULL AS DECIMAL ) - + 57 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT COUNT ( DISTINCT 95 ) * - CAST ( NULL AS REAL ) - + 57 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - col1 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - SUM( DISTINCT col1 ) + + 43 AS col0 FROM tab2
----
-152

skipif mysql # not compatible
query I rowsort label-2468
SELECT - SUM ( DISTINCT col1 ) + + 43 AS col0 FROM tab2
----
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 79 + - 7 col1 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2470
SELECT + 80 * - COUNT( * ) + - ( + 24 ) * COUNT( * ) - + + 1 DIV - COUNT( ALL 30 ) + 21 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2470
SELECT + 80 * - COUNT ( * ) + - ( + 24 ) * COUNT ( * ) - + + 1 / - COUNT ( ALL 30 ) + 21 FROM tab1 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT + - SUM( ALL + + col0 ) FROM tab2 AS cor0 WHERE + col0 * col1 IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT + - SUM ( ALL + + col0 ) FROM tab2 AS cor0 WHERE + col0 * col1 IS NOT NULL
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL 66 + + + COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL 66 + + + COUNT ( * ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT - + 2 DIV - col0 + col0 * + col2 + + col2 - + col0 FROM tab1 AS cor0
----
4941
4989
6165

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT - + 2 / - col0 + col0 * + col2 + + col2 - + col0 FROM tab1 AS cor0
----
4941
4989
6165

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2475
SELECT - MAX( DISTINCT + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT - MAX ( DISTINCT + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - MIN( + 45 ) AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - MIN ( + 45 ) AS col0 FROM tab1
----
-45

query I rowsort
SELECT + + col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 71 * + col1 AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT col1 / + + col1 * col2 * + + col2 + + CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2478
SELECT col1 / + + col1 * col2 * + + col2 + + CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2479
SELECT + 89 * col0, CAST( - - 27 AS SIGNED ) * + + 57 col2 FROM tab1
----
4539
1539
7565
1539
8099
1539

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2479
SELECT + 89 * col0, CAST ( - - 27 AS INTEGER ) * + + 57 col2 FROM tab1
----
4539
1539
7565
1539
8099
1539

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NOT ( - - col0 / + - col1 ) > ( NULL ) ) )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - + col0 <> NULL
----

query I rowsort
SELECT - 87 * + - col1 FROM tab2
----
4437
5829
6699

onlyif mysql # aggregate syntax: 
query II rowsort label-2483
SELECT COUNT( * ) AS col0, 95 AS col0 FROM tab0 AS cor0
----
3
95

skipif mysql # not compatible
query II rowsort label-2483
SELECT COUNT ( * ) AS col0, 95 AS col0 FROM tab0 AS cor0
----
3
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT + + 64 * + col1 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-116928
-6208
-77760

skipif mysql # not compatible
query I rowsort label-2484
SELECT + + 64 * + col1 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-116928
-6208
-77760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( - - col1 AS SIGNED ) + - - 54 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2485
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( - - col1 AS INTEGER ) + - - 54 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - 8 AS col2, - 78 FROM tab0 AS cor0
----
-8
-78
-8
-78
-8
-78

query II rowsort
SELECT ALL + - 79 AS col1, col1 * + 26 FROM tab2 AS cor0
----
-79
1326
-79
1742
-79
2002

query I rowsort
SELECT + ( - 40 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT - 53 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ( - col0 ) DIV - col0 + - + col0 * - col0 + + col1 FROM tab2 cor0
----
2168
4174
5693

skipif mysql # not compatible
query I rowsort label-2492
SELECT ( - col0 ) / - col0 + - + col0 * - col0 + + col1 FROM tab2 cor0
----
2168
4174
5693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 29, + 1 col2 FROM tab1 AS cor0 WHERE NOT - 59 IS NULL
----
29
1

query III rowsort
SELECT * FROM tab2 WHERE - 31 + + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL 60 * - SUM( + col1 ) AS col0 FROM tab0
----
-6180

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL 60 * - SUM ( + col1 ) AS col0 FROM tab0
----
-6180

query I rowsort
SELECT 84 * - 3 FROM tab2
----
-252
-252
-252

query I rowsort
SELECT 64 FROM tab1 WHERE col0 IS NOT NULL
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col1 FROM tab2
----
104
133
69

query I rowsort
SELECT 92 * - col1 * - 99 AS col0 FROM tab0
----
191268
737748
9108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT DISTINCT COUNT( * ) / + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2500
SELECT DISTINCT COUNT ( * ) / + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT + SUM( + 96 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2501
SELECT + SUM ( + 96 ) FROM tab1
----
288

query I rowsort
SELECT col1 * + 61 - + ( - - col2 ) AS col0 FROM tab2
----
3088
4029
4657

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - SUM( + + col0 ) + + 29 FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-2503
SELECT - SUM ( + + col0 ) + + 29 FROM tab0
----
-170

query I rowsort
SELECT 29 * + col2 + + col2 + - 19 - + + 54 * ( - col1 ) FROM tab2 AS cor0
----
3425
5339
5339

query I rowsort
SELECT ALL 9 + col0 - col1 * + col0 - - 54 FROM tab2 AS cor0
----
-2237
-4801
-4887

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col1 FROM tab2 cor0
----
117
125
74

query II rowsort
SELECT DISTINCT - col1 * col1 - + - 35 AS col2, 23 * + + col1 * + 69 AS col1 FROM tab1 AS cor0
----
-161
22218
-2174
74589
10
7935

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT ALL + + col0 DIV col1 + col0 + - col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL + + col0 / col1 + col0 + - col0 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL - + MAX( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - col1 + - ( 68 ) IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL - + MAX ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - col1 + - ( 68 ) IS NOT NULL
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT 43 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT 79 + - MAX( DISTINCT 79 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT 79 + - MAX ( DISTINCT 79 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL - COUNT( - - 50 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - COUNT ( - - 50 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 55 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col1 * col1 + - + col0 FROM tab2 AS cor0
----
2555
4414
5865

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 16 - col1 * - col2 - - - 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + 58 + col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + COUNT( 93 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2519
SELECT + COUNT ( 93 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT - 98 DIV - col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 98 / - col2 FROM tab2
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col1 FROM tab2
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT ALL + + col1 + + col2 + + CAST( NULL AS SIGNED ) / + - col0 AS col0 FROM tab0 WHERE - ( col0 ) * + + col0 + + 11 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + + col1 + + col2 + + CAST ( NULL AS INTEGER ) / + - col0 AS col0 FROM tab0 WHERE - ( col0 ) * + + col0 + + 11 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT - MAX( DISTINCT - - col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2523
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT DISTINCT + SUM( col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT + SUM ( col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - 61 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL + MAX( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + MAX ( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - + col0 AS col1 FROM tab0 cor0 WHERE NOT 29 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - 27 > + + col2 )
----

query I rowsort
SELECT DISTINCT col1 + - 84 FROM tab1
----
-37
-70
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 <= + 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 24, 78 AS col2 FROM tab1 AS cor0
----
24
78

query II rowsort
SELECT + col2, + 73 FROM tab1 AS cor0
----
59
73
68
73
96
73

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2 AS cor0 WHERE - 70 >= - - 81 * - col2 + + col1 + + ( - - col1 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL COUNT( ALL + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL COUNT ( ALL + - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + col0 * + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-3375
-658503
-912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - + 94, + col1 col2 FROM tab2 cor0
----
-117
51
-134
77
-152
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - + MAX( - col0 ) + + 41 + - - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2537
SELECT - + MAX ( - col0 ) + + 41 + - - COUNT ( * ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL - 93 * col0 * - - col2 FROM tab0 AS cor0
----
-65565
-80910
-893079

query I rowsort
SELECT ALL - + 36 FROM tab2 AS cor0 WHERE NOT NULL <= 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ( + COUNT( * ) ) + - - 12 AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2540
SELECT ( + COUNT ( * ) ) + - - 12 AS col2 FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT ALL - CAST( col0 AS SIGNED ) * - 73 + col0 + + - col2 FROM tab2
----
3381
4696
5492

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - CAST ( col0 AS INTEGER ) * - 73 + col0 + + - col2 FROM tab2
----
3381
4696
5492

query II rowsort
SELECT - 70 + + 84, col1 + + col2 AS col0 FROM tab2
----
14
117
14
125
14
74

query I rowsort
SELECT DISTINCT + ( - - ( - 57 ) ) FROM tab1, tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT + ( + MAX( + col1 ) ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2544
SELECT + ( + MAX ( + col1 ) ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT ALL + - CAST( NULL AS SIGNED ) + - + col0 * + - ( - col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + - CAST ( NULL AS INTEGER ) + - + col0 * + - ( - col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ( + col1 ) AS col1, 59 FROM tab0 AS cor0
----
1
59
21
59
81
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2547
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( + 29 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( + 29 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 35
----

query I rowsort
SELECT DISTINCT col1 * 77 FROM tab1
----
1078
3619
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT DISTINCT + 8 / + + CAST( NULL AS SIGNED ) * - AVG ( ALL col0 ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT + 8 / + + CAST ( NULL AS INTEGER ) * - AVG ( ALL col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2551
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 56 * - + 27 + + CAST( NULL AS SIGNED ) - - col2 * - 81 AND - col2
----

skipif mysql # not compatible
query III rowsort label-2551
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 56 * - + 27 + + CAST ( NULL AS INTEGER ) - - col2 * - 81 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - COUNT( - + 3 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2552
SELECT - COUNT ( - + 3 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2553
SELECT + CAST( NULL AS DECIMAL ) / - - 18 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT + CAST ( NULL AS REAL ) / - - 18 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT + - col2 DIV 20 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + - col2 / 20 FROM tab0 AS cor0
----
-2
-4
0

query II rowsort
SELECT - col1 AS col1, col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
-1
99
-21
10
-81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT ALL - col1 DIV + + col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - col1 / + + col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT - + col2 * + col0 - - ( 9 ) AS col0 FROM tab0 cor0 WHERE NOT col2 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2558
SELECT DISTINCT - COUNT( * ) DIV + - MIN( col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT - COUNT ( * ) / + - MIN ( col2 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT - CAST( - - col0 AS SIGNED ) col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2559
SELECT - CAST ( - - col0 AS INTEGER ) col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col2 * + - col1 * + 36 AS col0 FROM tab1
----
-10620
-115056
-48384

query I rowsort
SELECT 93 * + col0 AS col2 FROM tab2
----
4278
5952
6975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT - COUNT( * ) DIV SUM( + 32 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2562
SELECT DISTINCT - COUNT ( * ) / SUM ( + 32 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL <> col1 * 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL + MIN( DISTINCT - + col2 ) + + 29 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + MIN ( DISTINCT - + col2 ) + + 29 FROM tab0 AS cor0
----
-70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( 90, col2, + - col1 / 12, col2 + + col1, - + col0 / - - 58 * + 77 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col2 * + - 35 col0, - ( - + 19 ) AS col0 FROM tab1 AS cor0
----
-171360
19
-175525
19
-216580
19

query I rowsort
SELECT ALL + 95 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL SUM( ( - col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL SUM ( ( - col2 ) ) FROM tab0
----
-156

query I rowsort
SELECT DISTINCT 14 + col0 * + 57 * + - col0 * - 64 FROM tab1
----
26356814
30209102
9488462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT + col0 - - - col1 * + 65 + CAST( + + col2 AS SIGNED ) + + + col1 AS col1 FROM tab0
----
-1247
-5122
132

skipif mysql # not compatible
query I rowsort label-2571
SELECT + col0 - - - col1 * + 65 + CAST ( + + col2 AS INTEGER ) + + + col1 AS col1 FROM tab0
----
-1247
-5122
132

query I rowsort
SELECT + 20 - - + col1 FROM tab2
----
71
87
97

query I rowsort
SELECT 79 * - col2 - + col1 AS col2 FROM tab0
----
-3794
-7822
-811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 81, 62 - - col1 col1 FROM tab1
----
81
109
81
67
81
76

query I rowsort
SELECT DISTINCT - col1 + + 26 AS col2 FROM tab0
----
-55
25
5

query I rowsort
SELECT + col2 - + + 83 FROM tab0
----
-36
-73
16

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab0 AS cor0 WHERE col2 <> - col0 + col2
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 73 * col2 FROM tab2
----
1679
2920
4234

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 93 * 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + AVG ( DISTINCT - col0 ) * - + 4 + + 18 AS col0 FROM tab1 AS cor0 WHERE NOT - 97 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT - ( - COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT - ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT ALL - - col0 DIV + col2 + col2 + + 63 FROM tab1 AS cor0
----
123
132
159

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL - - col0 / + col2 + col2 + + 63 FROM tab1 AS cor0
----
123
132
159

query I rowsort
SELECT ALL + ( 46 ) FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL 60 * + col2 AS col2 FROM tab1 AS cor0
----
3540
4080
5760

query II rowsort
SELECT DISTINCT + - col0 AS col1, - col0 FROM tab1 WHERE NULL IS NULL
----
-51
-51
-85
-85
-91
-91

query II rowsort
SELECT col0, col2 + - col1 FROM tab1
----
51
82
85
54
91
21

query I rowsort
SELECT ALL col2 * - - 99 AS col2 FROM tab0
----
4653
9801
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT col1 * - - 54 + - CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT col1 * - - 54 + - CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2589
SELECT DISTINCT CAST( NULL AS SIGNED ), 45 + + SUM( - col0 ) col1 FROM tab1 AS cor0
----
NULL
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2589
SELECT DISTINCT CAST ( NULL AS INTEGER ), 45 + + SUM ( - col0 ) col1 FROM tab1 AS cor0
----
NULL
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * - col2 + - + 31 col0 FROM tab0 AS cor0
----
4575
949
9671

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL - + MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - + MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT DISTINCT - SUM( col1 ) * + 42 FROM tab1
----
-2772

skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT - SUM ( col1 ) * + 42 FROM tab1
----
-2772

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( 46 ) ) + - col2 NOT BETWEEN NULL AND 95 + + col2
----

query I rowsort
SELECT ALL 9 FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN col0 AND + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL COUNT( * ) * - 98 AS col0 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL COUNT ( * ) * - 98 AS col0 FROM tab1
----
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT ALL + COUNT( * ) * - CAST( + 14 AS SIGNED ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + COUNT ( * ) * - CAST ( + 14 AS INTEGER ) AS col2 FROM tab0
----
-42

query I rowsort
SELECT col2 + col0 * - 62 AS col1 FROM tab2
----
-2829
-3928
-4592

query I rowsort
SELECT DISTINCT + 56 * + 12 AS col1 FROM tab2
----
672

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 FROM tab1
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + col1 IS NULL
----

query I rowsort
SELECT + col0 * + 97 AS col0 FROM tab1
----
4947
8245
8827

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * + col0 + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 63 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT - AVG ( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2605
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND + 34 + - col1 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2605
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN NULL AND + 34 + - col1 / - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 8 * + col1 ) NOT IN ( - col0 * + 5 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) FROM tab1
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE NULL NOT IN ( - col1 - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 95 + col1 AS col0 FROM tab2
----
-18
-28
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT + COUNT( * ) * 50 col0 FROM tab2
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2611
SELECT + COUNT ( * ) * 50 col0 FROM tab2
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2612
SELECT - CAST( NULL AS DECIMAL ) * MAX( col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT - CAST ( NULL AS REAL ) * MAX ( col1 ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col1 ) > + col2 * + 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 41 * col0 AS col2 FROM tab2
----
1886
2624
3075

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 41 + - col1 BETWEEN col1 * col1 - - col1 * + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + 99 FROM tab1
----
-5049
-8415
-9009

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 / - col1 ) < col1
----

query I rowsort
SELECT DISTINCT col1 * 15 - 60 * 51 FROM tab0
----
-1845
-2745
-3045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT DISTINCT - CAST( - 71 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT - 13 * - 75 FROM tab1 AS cor0
----
975

query I rowsort
SELECT - col0 * - 30 FROM tab2 WHERE NOT NULL <> 73 / col0
----

query I rowsort
SELECT ALL - 60 - 67 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 79c908460abee25181b50da08dd87a21

query I rowsort
SELECT DISTINCT - col1 * - 73 FROM tab2
----
3723
4891
5621

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT - col1 DIV 73 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT - col1 / 73 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + 27 * - 84 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2221
-2254
-2263

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + col2 NOT IN ( - 35 * 90 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col2 + col1 )
----

query I rowsort
SELECT ALL col2 * + col2 * ( 68 ) FROM tab0
----
150212
666468
6800

query I rowsort
SELECT DISTINCT - col2 * col2 * - 35 FROM tab2
----
117740
18515
56000

query III rowsort
SELECT ALL * FROM tab2 WHERE 72 / - 1 IN ( col2 )
----

query I rowsort
SELECT 2 FROM tab1 WHERE NOT ( NULL ) IN ( col0 - + 48 )
----

query I rowsort
SELECT DISTINCT - col2 + - col0 + - col2 AS col0 FROM tab0
----
-107
-109
-295

query I rowsort
SELECT DISTINCT + col1 + - - col1 - - 60 FROM tab1 AS cor0
----
154
70
88

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NOT 79 + - col2 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab0 cor0
----
11

query I rowsort
SELECT DISTINCT - 77 * - - col2 * - 10 AS col1 FROM tab1 AS cor0
----
45430
52360
73920

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE + 59 / - col1 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col2 ) AND 32
----

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - 85 + MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - 85 + MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL - MIN( + - col1 ) - - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - MIN ( + - col1 ) - - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL + - 82 - + 24 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 * - ( 56 ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - 50 - col2 * col0 + - col2 * + 52 FROM tab1 cor0
----
-8133
-9774
-9938

query I rowsort
SELECT ( - - col2 ) - - - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2648
SELECT DISTINCT + 54, - ( - + CAST( - col2 AS DECIMAL ) ) - ( - CAST( NULL AS DECIMAL ) ) * + col1 AS col1 FROM tab2 AS cor0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2648
SELECT DISTINCT + 54, - ( - + CAST ( - col2 AS REAL ) ) - ( - CAST ( NULL AS REAL ) ) * + col1 AS col1 FROM tab2 AS cor0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT COUNT( - 88 ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2649
SELECT COUNT ( - 88 ) + + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 * 50 + col2 * col2 IN ( col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= ( + - 43 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT - MIN( - - col2 ) AS col0, 69 FROM tab1
----
-59
69

skipif mysql # not compatible
query II rowsort label-2653
SELECT - MIN ( - - col2 ) AS col0, 69 FROM tab1
----
-59
69

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL < ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL MIN( DISTINCT 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL MIN ( DISTINCT 65 ) FROM tab1 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT DISTINCT col0 * - CAST( 24 AS SIGNED ) FROM tab1 AS cor0
----
-1224
-2040
-2184

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT col0 * - CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
-1224
-2040
-2184

query II rowsort
SELECT + ( - col2 ) AS col1, + 10 FROM tab1 AS cor0
----
-59
10
-68
10
-96
10

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT 31 AS col2, col1 + - 81 FROM tab0
----
31
-60
31
-80
31
0

query I rowsort
SELECT ALL - 58 * - + col2 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT DISTINCT + + COUNT( * ) AS col0, 11 FROM tab1 AS cor0
----
3
11

skipif mysql # not compatible
query II rowsort label-2661
SELECT DISTINCT + + COUNT ( * ) AS col0, 11 FROM tab1 AS cor0
----
3
11

query II rowsort
SELECT DISTINCT + col1 AS col2, 10 FROM tab0 AS cor0
----
1
10
21
10
81
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT CAST( NULL AS SIGNED ) / + col1 - + + ( + + 90 ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT CAST ( NULL AS INTEGER ) / + col1 - + + ( + + 90 ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - col0 AS col1, - 58 FROM tab2 AS cor0
----
46
-58
64
-58
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2666
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 AS col0 FROM tab2 WHERE NOT col2 IN ( + - col1 )
----
-11
-11
-11

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + 84 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2669
SELECT 95 + CAST( NULL AS DECIMAL ) + - - col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT 95 + CAST ( NULL AS REAL ) + - - col2 col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 75 ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL COUNT( DISTINCT col1 ) + + 57 AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL COUNT ( DISTINCT col1 ) + + 57 AS col0 FROM tab2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2672
SELECT col1 DIV + col2 * + + col0 + + col2 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2672
SELECT col1 / + col2 * + + col0 + + col2 AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT DISTINCT COUNT( * ) + - - SUM( ALL 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-2673
SELECT DISTINCT COUNT ( * ) + - - SUM ( ALL CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 = ( + ( - + col0 ) * + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2, - 79 AS col2 FROM tab0 AS cor0
----
-10
-79
-47
-79
-99
-79

query I rowsort
SELECT + col2 + - 21 FROM tab0 AS cor0
----
-11
26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT - ( ( - MAX( ALL - col0 ) ) ) + - 89 AS col0 FROM tab1 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-2678
SELECT - ( ( - MAX ( ALL - col0 ) ) ) + - 89 AS col0 FROM tab1 AS cor0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT DISTINCT 37 - - + 15 + + COUNT( * ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT 37 - - + 15 + + COUNT ( * ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT ALL col2 * + 64 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN - col2 AND + 82
----

query I rowsort
SELECT DISTINCT + col0 + col2 * + ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT DISTINCT col2 - + - ( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT col2 - + - ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL + ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT col0, + 8 AS col1 FROM tab1
----
51
8
85
8
91
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT MIN( + ( + col2 ) ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2686
SELECT DISTINCT MIN ( + ( + col2 ) ) col1 FROM tab0
----
10

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - col1 + - col2 NOT IN ( + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - COUNT( * ) * - 20 AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2689
SELECT - COUNT ( * ) * - 20 AS col2 FROM tab1
----
60

query II rowsort
SELECT col0 AS col0, - col1 AS col2 FROM tab2 cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 57 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT - 91 DIV 49 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2692
SELECT - 91 / 49 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT - 44 - + 43 DIV - 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 44 - + 43 / - 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # aggregate syntax: 
query II rowsort label-2694
SELECT DISTINCT - MIN( DISTINCT + - 25 ), 77 col0 FROM tab2
----
25
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2694
SELECT DISTINCT - MIN ( DISTINCT + - 25 ), 77 col0 FROM tab2
----
25
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 0 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 88 FROM tab2 AS cor0
----
4488
5896
6776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab0 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col0 FROM tab2 AS cor0 WHERE + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT - + SUM( + + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT - + SUM ( + + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col2 AS col0 FROM tab0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL + 13 + COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL + 13 + COUNT ( * ) FROM tab2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT + CAST( ( COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2702
SELECT + CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - MIN( - 28 ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-2703
SELECT - MIN ( - 28 ) AS col2 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT DISTINCT 76 + - CAST( col0 AS SIGNED ) FROM tab1
----
-15
-9
25

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT 76 + - CAST ( col0 AS INTEGER ) FROM tab1
----
-15
-9
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2705
SELECT * FROM tab2 AS cor0 WHERE + ( + 78 ) IN ( CAST( NULL AS SIGNED ), col2 * - 75 )
----

skipif mysql # not compatible
query III rowsort label-2705
SELECT * FROM tab2 AS cor0 WHERE + ( + 78 ) IN ( CAST ( NULL AS INTEGER ), col2 * - 75 )
----

query I rowsort
SELECT + col0 + + - 10 FROM tab2 AS cor0
----
36
54
65

query I rowsort
SELECT ALL + 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT 20 DIV 23 * - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT 20 / 23 * - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 27 - - + col0 AS col1 FROM tab0 AS cor0
----
114
124
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT ALL - 21 + col1 DIV + 35 + 49 col1 FROM tab2 AS cor0
----
29
29
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2710
SELECT ALL - 21 + col1 / + 35 + 49 col1 FROM tab2 AS cor0
----
29
29
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT DISTINCT - col1 * + col2 * CAST( + - col1 AS SIGNED ) + + col0 + - CAST( NULL AS SIGNED ) - 94 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT - col1 * + col2 * CAST ( + - col1 AS INTEGER ) + + col0 + - CAST ( NULL AS INTEGER ) - 94 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 - - + col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT col2 / col1 BETWEEN NULL AND - col2 / + col1 + - - col1
----
1

skipif mysql # not compatible
query I rowsort label-2713
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 / col1 BETWEEN NULL AND - col2 / + col1 + - - col1
----
1

query II rowsort
SELECT + ( + col0 ) * 51 + ( - 86 ) * - col2 AS col0, - 50 - - col2 FROM tab1 AS cor0
----
10489
18
10857
46
9409
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) * + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) * + - col0 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + + col2 AS col0, col0 FROM tab1 cor0
----
59
85
68
91
96
51

query I rowsort
SELECT + col0 * + + ( - col1 ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + COUNT( ALL + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2718
SELECT + COUNT ( ALL + col0 ) FROM tab0
----
3

query I rowsort
SELECT + 34 * + col2 FROM tab1
----
2006
2312
3264

query I rowsort
SELECT ALL 13 * + 53 FROM tab2
----
689
689
689

query I rowsort
SELECT DISTINCT + 80 * + col2 * + - col1 FROM tab2
----
-246400
-310880
-93840

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT MIN( ALL - 51 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2722
SELECT MIN ( ALL - 51 ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2723
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2723
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT ( NOT + col2 = - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 2 IS NULL )
----

query I rowsort
SELECT ALL + - ( - + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT DISTINCT - col1 + - - 69 DIV - col1 AS col2 FROM tab2
----
-52
-68
-77

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT - col1 + - - 69 / - col1 AS col2 FROM tab2
----
-52
-68
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2729
SELECT ALL - 77 + - CAST( + col2 AS SIGNED ), - col2 AS col1 FROM tab1 AS cor0
----
-136
-59
-145
-68
-173
-96

skipif mysql # not compatible
query II rowsort label-2729
SELECT ALL - 77 + - CAST ( + col2 AS INTEGER ), - col2 AS col1 FROM tab1 AS cor0
----
-136
-59
-145
-68
-173
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 BETWEEN + + col2 AND col1
----

query I rowsort
SELECT ALL + 2 AS col2 FROM tab2 AS cor0 WHERE NOT + ( col2 ) + - col1 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 81 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT + + 5 DIV 12 + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2734
SELECT + + 5 / 12 + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + col2 + ( + col2 ) AS col1 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT - 62 + + + col1 FROM tab1 AS cor0
----
-15
-48
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT COUNT( DISTINCT + - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2737
SELECT COUNT ( DISTINCT + - col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - 20 + + col0 FROM tab2
----
26
44
55

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2739
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col0, 33 - + + 58 * + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2739
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col0, 33 - + + 58 * + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL 36 * col1 + + + col1 FROM tab2
----
1887
2479
2849

query I rowsort
SELECT DISTINCT - + 33 * + 71 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) >= col1
----

query I rowsort
SELECT col2 * - col1 FROM tab0 AS cor0 WHERE - col1 + + + 91 BETWEEN col0 AND col1
----

query I rowsort
SELECT + ( + - col2 ) * 27 - + 50 FROM tab2 cor0
----
-1130
-1616
-671

query I rowsort
SELECT ALL + - 24 - + - col2 * 49 AS col1 FROM tab0 AS cor0
----
2279
466
4827

query I rowsort
SELECT + col1 - col2 + ( 47 ) AS col1 FROM tab1 AS cor0
----
-35
-7
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT SUM( col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2746
SELECT SUM ( col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT + MAX( DISTINCT 86 ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2747
SELECT + MAX ( DISTINCT 86 ) FROM tab2 AS cor0
----
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 52, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL MIN( + 14 ) * - 95 AS col0 FROM tab2 AS cor0
----
-1330

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL MIN ( + 14 ) * - 95 AS col0 FROM tab2 AS cor0
----
-1330

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2751
SELECT DISTINCT + 34 / + CAST( NULL AS SIGNED ) + ( - col1 ) * + + col2 * + 99 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT + 34 / + CAST ( NULL AS INTEGER ) + ( - col1 ) * + + col2 * + 99 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL 46, - col1 AS col2 FROM tab2 AS cor0
----
46
-51
46
-67
46
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT ( - - ( - 63 ) ) AS col2 FROM tab2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2755
SELECT * FROM tab0 WHERE NOT col2 + - col2 BETWEEN NULL AND + CAST( - 13 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2755
SELECT * FROM tab0 WHERE NOT col2 + - col2 BETWEEN NULL AND + CAST ( - 13 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT + 25 * + 71 * + - COUNT( * ) * + + COUNT( * ) FROM tab0
----
-15975

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + 25 * + 71 * + - COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
-15975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT + CAST( - 20 AS SIGNED ) FROM tab0 WHERE NOT NULL NOT IN ( col1, - col2 + + - 70, + - CAST( - + col0 AS SIGNED ) * - col1, - - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2757
SELECT + CAST ( - 20 AS INTEGER ) FROM tab0 WHERE NOT NULL NOT IN ( col1, - col2 + + - 70, + - CAST ( - + col0 AS INTEGER ) * - col1, - - CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT col1 DIV + - col1 col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2758
SELECT col1 / + - col1 col1 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT + CAST( + - col1 AS SIGNED ) * + 6 * + col2 AS col1 FROM tab1
----
-1770
-19176
-8064

skipif mysql # not compatible
query I rowsort label-2759
SELECT + CAST ( + - col1 AS INTEGER ) * + 6 * + col2 AS col1 FROM tab1
----
-1770
-19176
-8064

query I rowsort
SELECT DISTINCT 77 * - + col2 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT + + COUNT( CAST( 52 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2761
SELECT + + COUNT ( CAST ( 52 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 30 * - 20 > NULL
----

query I rowsort
SELECT ALL + - col2 + 16 FROM tab0 AS cor0
----
-31
-83
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 97 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - - col2 >= + ( col1 ) * + - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT COUNT( * ) FROM tab1 WHERE ( + col2 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2767
SELECT COUNT ( * ) FROM tab1 WHERE ( + col2 ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT 49 - + 12 - - + 0 DIV - col1 col1 FROM tab2
----
37
37
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2768
SELECT 49 - + 12 - - + 0 / - col1 col1 FROM tab2
----
37
37
37

query I rowsort
SELECT 56 - + col0 - - + 25 * - + col2 AS col2 FROM tab0
----
-1134
-2516
-281

query I rowsort
SELECT + 61 * + + ( - col1 ) - - - 64 AS col2 FROM tab0
----
-125
-1345
-5005

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - ( col2 ) )
----

query I rowsort
SELECT DISTINCT - 17 + - 24 FROM tab2
----
-41

query I rowsort
SELECT DISTINCT + 37 - + col1 AS col0 FROM tab1 AS cor0
----
-10
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE col2 * + + 42 + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 * + + 42 + col0 IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> 37 + + ( ( + col2 ) )
----

query II rowsort
SELECT DISTINCT col1, col0 AS col0 FROM tab2 cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 < + 83 + col2 + - - col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + + col0
----

query I rowsort
SELECT col0 * - ( - ( - col0 ) ) FROM tab2
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT - 56 + - + 10 AS col2, col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col2 )
----

query I rowsort
SELECT + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( 28 ), col2 * + col0 * col2 + col2 AS col2 FROM tab2 AS cor0
----
28
102440
28
24357
28
252358

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - col1 + 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT DISTINCT - MAX( ALL + - col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - MAX ( ALL + - col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT DISTINCT + 53 * + 72 AS col1 FROM tab2
----
3816

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT COUNT( * ) * 16 AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2788
SELECT COUNT ( * ) * 16 AS col1 FROM tab2
----
48

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT MAX( col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT MAX ( col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT ALL col2 * + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2791
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2792
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2792
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 58 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 13 * - col1 FROM tab2 AS cor0
----
-1001
-663
-871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * + - col0 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT + 41 * + - col0 FROM tab1
----
-2091
-3485
-3731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2797
SELECT - + CAST( - + col0 AS SIGNED ) + col0 * + 39 AS col1 FROM tab2 AS cor0
----
1840
2560
3000

skipif mysql # not compatible
query I rowsort label-2797
SELECT - + CAST ( - + col0 AS INTEGER ) + col0 * + 39 AS col1 FROM tab2 AS cor0
----
1840
2560
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT MAX( ALL + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT MAX ( ALL + col0 ) AS col2 FROM tab2 cor0
----
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 < + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + col2 * + 12 + - col0 AS col0 FROM tab1 AS cor0
----
1101
623
725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2801
SELECT + + 88 DIV MIN( + col0 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2801
SELECT + + 88 / MIN ( + col0 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
8

query I rowsort
SELECT 30 + - + col0 AS col0 FROM tab2 AS cor0
----
-16
-34
-45

query I rowsort
SELECT ALL + - col2 * - - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - ( - 67 ) AS col0 FROM tab1
----
67

query I rowsort
SELECT + col1 FROM tab0 WHERE + col1 IS NOT NULL
----
1
21
81

query II rowsort
SELECT DISTINCT ( - + 15 ) * - + col1 + + col0 + - 46 AS col1, col1 * col0 AS col0 FROM tab2
----
1034
5025
1173
4928
765
2346

query III rowsort
SELECT * FROM tab0 WHERE - + col2 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 * + col1, col0 FROM tab1
----
425
85
4277
91
714
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2809
SELECT - - col0 DIV - 13 - - 10 AS col1, col0 AS col2 FROM tab2 AS cor0
----
5
75
6
64
7
46

skipif mysql # not compatible
query II rowsort label-2809
SELECT - - col0 / - 13 - - 10 AS col1, col0 AS col2 FROM tab2 AS cor0
----
5
75
6
64
7
46

query I rowsort
SELECT DISTINCT col1 - + 28 + + - 12 * 60 AS col2 FROM tab0 AS cor0
----
-667
-727
-747

query II rowsort
SELECT col1 - - col1 + + - 72 + + + col2 * + + col0, col0 AS col0 FROM tab1 AS cor0
----
4852
51
4953
85
6210
91

query I rowsort
SELECT ( - 56 ) - + col0 + + - col1 AS col1 FROM tab1 AS cor0
----
-121
-146
-194

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + 16 > + col0 * + 89 * 72 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 AS col1, - 32 * - + 7 FROM tab1
----
-14
224
-47
224
-5
224

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT DISTINCT + 60 AS col1, + 80 + - MAX( + col1 ) col2 FROM tab0 cor0
----
60
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2815
SELECT DISTINCT + 60 AS col1, + 80 + - MAX ( + col1 ) col2 FROM tab0 cor0
----
60
-1

query I rowsort
SELECT DISTINCT - - 12 * - ( col2 ) - - - 88 AS col0 FROM tab2 AS cor0
----
-364
-568
-784

query I rowsort
SELECT + col2 * + col1 * + col0 * + + col1 + + col0 AS col1 FROM tab1 AS cor0
----
125460
13669383
959667

query II rowsort
SELECT - 56 AS col0, col0 AS col2 FROM tab2 cor0
----
-56
46
-56
64
-56
75

query I rowsort
SELECT ALL - 47 * 82 FROM tab1 AS cor0
----
-3854
-3854
-3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT DISTINCT - ( - 61 ) FROM tab2
----
61

query I rowsort
SELECT ALL col1 + - 67 FROM tab2
----
-16
0
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT DISTINCT col2 + - + CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT col2 + - + CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL - MAX( 70 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - MAX ( 70 ) FROM tab2
----
-70

query I rowsort
SELECT DISTINCT 38 + col0 * - 31 FROM tab2
----
-1388
-1946
-2287

query I rowsort
SELECT ALL col1 + + 23 AS col1 FROM tab1
----
28
37
70

query I rowsort
SELECT + 75 + col0 - + - col1 AS col0 FROM tab0 AS cor0
----
171
173
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col2 + - 55 FROM tab2
----
-15
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT - 88 + + COUNT( * ) FROM tab1 WHERE - 15 IS NOT NULL
----
-85

skipif mysql # not compatible
query I rowsort label-2830
SELECT - 88 + + COUNT ( * ) FROM tab1 WHERE - 15 IS NOT NULL
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2831
SELECT - 71, CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + + col1 > + col2
----

skipif mysql # not compatible
query II rowsort label-2831
SELECT - 71, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + + col1 > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2832
SELECT ALL * FROM tab1 AS cor0 WHERE 74 IN ( 33 / - col2, col0 * + 99 * + - CAST( NULL AS SIGNED ), col0 / - - ( - col0 ) + 72 )
----

skipif mysql # not compatible
query III rowsort label-2832
SELECT ALL * FROM tab1 AS cor0 WHERE 74 IN ( 33 / - col2, col0 * + 99 * + - CAST ( NULL AS INTEGER ), col0 / - - ( - col0 ) + 72 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2833
SELECT ALL + CAST( NULL AS DECIMAL ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + CAST ( NULL AS REAL ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT + - 95 DIV COUNT( * ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + - 95 / COUNT ( * ) FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT 77 + + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * - col0 AND + + col2
----
77

skipif mysql # not compatible
query I rowsort label-2835
SELECT 77 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * - col0 AND + + col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2836
SELECT ALL - CAST( NULL AS SIGNED ) * + - 88 - - col2, - col0 col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2836
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 88 - - col2, - col0 col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT - MAX( DISTINCT + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - MAX ( DISTINCT + col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2838
SELECT - col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT - col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + ( - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * 46 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2841
SELECT DISTINCT col2 + - 18 - col1 DIV - col0 + + - col0 FROM tab0
----
-16
-95
19

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT col2 + - 18 - col1 / - col0 + + - col0 FROM tab0
----
-16
-95
19

query I rowsort
SELECT col0 + - col0 * - 15 * - col2 FROM tab1
----
-73389
-75140
-92729

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT DISTINCT 29 + + col1 * 18 * + col1 DIV - col1 AS col1 FROM tab1
----
-223
-61
-817

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT 29 + + col1 * 18 * + col1 / - col1 AS col1 FROM tab1
----
-223
-61
-817

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) AS col1 FROM tab1 cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 90 col2 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT ALL - col1 * + - col0 AS col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2847
SELECT + 27 AS col0, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
27
3

skipif mysql # not compatible
query II rowsort label-2847
SELECT + 27 AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
27
3

query I rowsort
SELECT + ( - 78 ) AS col2 FROM tab2
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL - 85 * + MIN( col2 ) FROM tab1
----
-5015

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - 85 * + MIN ( col2 ) FROM tab1
----
-5015

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT ( - col1 * - col0 ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT MAX( ALL + col2 ) col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2851
SELECT MAX ( ALL + col2 ) col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT DISTINCT - + MIN( DISTINCT ( + + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - + MIN ( DISTINCT ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL 91 / + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL 91 / + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL - - MIN( + 5 ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL - - MIN ( + 5 ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT 25 AS col2 FROM tab1 AS cor0 WHERE NOT 62 IS NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL COUNT( ALL 60 ) col2 FROM tab2 WHERE NULL NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2856
SELECT ALL COUNT ( ALL 60 ) col2 FROM tab2 WHERE NULL NOT BETWEEN col2 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT + 61 DIV ( + 37 ) * - col0 * col0 AS col2 FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 61 / ( + 37 ) * - col0 * col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2858
SELECT - SUM( CAST( + + CAST( - col1 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2858
SELECT - SUM ( CAST ( + + CAST ( - col1 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1
----
66

query I rowsort
SELECT - ( + + ( + col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT ALL col1 DIV + col0 + + 38 + + col0 AS col0 FROM tab1
----
123
129
89

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL col1 / + col0 + + 38 + + col0 AS col0 FROM tab1
----
123
129
89

query I rowsort
SELECT + 28 + + col2 - 50 FROM tab0
----
-12
25
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2862
SELECT DISTINCT col0 AS col0, CAST( NULL AS DECIMAL ) + - col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2862
SELECT DISTINCT col0 AS col0, CAST ( NULL AS REAL ) + - col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT + - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2863
SELECT + - col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT + col1 + - col0, + 9 AS col2 FROM tab2 AS cor0
----
-8
9
13
9
5
9

query I rowsort
SELECT ALL 6 - + col2 FROM tab0 AS cor0
----
-4
-41
-93

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2867
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + col1 AND + col2 + + - col0 * + CAST( - 40 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2867
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + col1 AND + col2 + + - col0 * + CAST ( - 40 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - 19 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - + MAX( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2869
SELECT - + MAX ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT MAX( DISTINCT + + ( + - col0 ) ) col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2870
SELECT DISTINCT MAX ( DISTINCT + + ( + - col0 ) ) col2 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2872
SELECT + ( - 43 ) * - col2 + col0 DIV - col2, 43 AS col2 FROM tab1
----
2536
43
2923
43
4128
43

skipif mysql # not compatible
query II rowsort label-2872
SELECT + ( - 43 ) * - col2 + col0 / - col2, 43 AS col2 FROM tab1
----
2536
43
2923
43
4128
43

query II rowsort
SELECT DISTINCT + col0 AS col1, 2 AS col1 FROM tab2
----
46
2
64
2
75
2

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-52

query I rowsort
SELECT DISTINCT ( + 36 ) * + ( + - 13 ) FROM tab2
----
-468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2876
SELECT DISTINCT 94 * - 71 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT 94 * - 71 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - + 75 * COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2877
SELECT - + 75 * COUNT ( * ) FROM tab2 AS cor0
----
-225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 88 IN ( - col0 * - - col1 + - col0 + col1 * - + col0, - col1 * + col1, col2, col1 + - col0 * - 59, + - ( + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 16 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2880
SELECT - col2 * - 83 + + ( col2 ), CAST( NULL AS DECIMAL ) * - 8 AS col2 FROM tab2 AS cor0
----
1932
NULL
3360
NULL
4872
NULL

skipif mysql # not compatible
query II rowsort label-2880
SELECT - col2 * - 83 + + ( col2 ), CAST ( NULL AS REAL ) * - 8 AS col2 FROM tab2 AS cor0
----
1932
NULL
3360
NULL
4872
NULL

query I rowsort
SELECT ALL 85 AS col0 FROM tab2 cor0
----
85
85
85

query II rowsort
SELECT ALL + - ( + col1 ), col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL + - SUM( - 16 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + - SUM ( - 16 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT - col2 * ( - - 58 ) FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab1 cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( - col2 ) ) col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - 31 AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT ALL 72 AS col0 FROM tab1 WHERE 84 NOT BETWEEN - col2 AND 84
----

query I rowsort
SELECT ALL + col1 * - - col0 + + 74 + - + ( + col2 ) FROM tab1
----
4283
440
692

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2891
SELECT + ( - + col1 ) * col2 + - + CAST( ( + + ( - ( - 77 ) ) ) AS SIGNED ) AS col0, 23 FROM tab0
----
-176
23
-287
23
-3884
23

skipif mysql # not compatible
query II rowsort label-2891
SELECT + ( - + col1 ) * col2 + - + CAST ( ( + + ( - ( - 77 ) ) ) AS INTEGER ) AS col0, 23 FROM tab0
----
-176
23
-287
23
-3884
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT ALL + col2 DIV ( - col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL + col2 / ( - col1 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) / + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + - - 52 * + col0 FROM tab2 AS cor0
----
2369
3288
3842

query I rowsort
SELECT + col2 * col2 * 92 + + + 56 AS col2 FROM tab0 AS cor0
----
203284
901748
9256

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + + col1 + + 98 <> + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT - MAX( ALL col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT - MAX ( ALL col2 ) AS col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col1 > + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 - - - col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT + 42 * - col2 * - - col0 + 28 - + col2 FROM tab1 AS cor0
----
-205700
-210661
-259936

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT COUNT( * ), 82 col2 FROM tab1 AS cor0
----
3
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2902
SELECT COUNT ( * ), 82 col2 FROM tab1 AS cor0
----
3
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + col2 * + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2905
SELECT ALL col2 * + col2 AS col0, CAST( NULL AS DECIMAL ) + - 49 AS col0 FROM tab1
----
3481
NULL
4624
NULL
9216
NULL

skipif mysql # not compatible
query II rowsort label-2905
SELECT ALL col2 * + col2 AS col0, CAST ( NULL AS REAL ) + - 49 AS col0 FROM tab1
----
3481
NULL
4624
NULL
9216
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT COUNT( * ) * COUNT( * ) * - - COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2906
SELECT COUNT ( * ) * COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2907
SELECT DISTINCT + CAST( NULL AS SIGNED ) * SUM( ALL - 19 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * SUM ( ALL - 19 ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT CAST( col0 AS SIGNED ) NOT BETWEEN + col2 + + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2908
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT CAST ( col0 AS INTEGER ) NOT BETWEEN + col2 + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT - - col2 * - + col0, + col0 col2 FROM tab0 WHERE NOT NULL NOT IN ( + 17 + + + col1 * - + col0, col1 + - col1 + col2 * CAST( NULL AS SIGNED ) - - 69 - + col2 - - 56 - - col0, col1 + + - 56 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2909
SELECT - - col2 * - + col0, + col0 col2 FROM tab0 WHERE NOT NULL NOT IN ( + 17 + + + col1 * - + col0, col1 + - col1 + col2 * CAST ( NULL AS INTEGER ) - - 69 - + col2 - - 56 - - col0, col1 + + - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT COUNT( * ) * + 88 col0 FROM tab2
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2910
SELECT COUNT ( * ) * + 88 col0 FROM tab2
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2911
SELECT + CAST( col1 AS SIGNED ) AS col0, col2 * + col0 AS col1 FROM tab1
----
14
4896
47
6188
5
5015

skipif mysql # not compatible
query II rowsort label-2911
SELECT + CAST ( col1 AS INTEGER ) AS col0, col2 * + col0 AS col1 FROM tab1
----
14
4896
47
6188
5
5015

query I rowsort
SELECT ALL + ( - + 45 ) AS col0 FROM tab2
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + - 36, col2 ) )
----

query I rowsort
SELECT + 54 + 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + - COUNT( * ) - + COUNT( ALL col1 ) FROM tab1 WHERE NOT NULL >= + + col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT + - COUNT ( * ) - + COUNT ( ALL col1 ) FROM tab1 WHERE NOT NULL >= + + col2 * col0
----
0

query II rowsort
SELECT DISTINCT - col0 AS col0, - 98 FROM tab0
----
-15
-98
-87
-98
-97
-98

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT + col1 / + - 39 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2919
SELECT ALL - - 25 * CAST( NULL AS SIGNED ) + - COUNT( * ) - ( + + COUNT( * ) ) * - COUNT( * ) / + 90 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - - 25 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) - ( + + COUNT ( * ) ) * - COUNT ( * ) / + 90 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + ( + - col2 ) FROM tab2 AS cor0 WHERE NOT 42 * + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col1 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT + col1 * - 99 AS col2 FROM tab0 AS cor0
----
-2079
-8019
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT + col0 DIV + + col0 + - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-2923
SELECT + col0 / + + col0 + - col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT ALL + 40 * + - 23 * + - col1 AS col2 FROM tab2 AS cor0
----
46920
61640
70840

query I rowsort
SELECT DISTINCT col2 * - + 21 FROM tab2
----
-1218
-483
-840

query III rowsort
SELECT * FROM tab1 WHERE + + ( col1 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 <> - 72 )
----

query I rowsort
SELECT + col1 + 6 + col2 FROM tab1
----
116
121
70

query III rowsort
SELECT * FROM tab1 WHERE + col2 IN ( + + col0, col2 * + 51, + - 7 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2930
SELECT DISTINCT 86 - col0 DIV - - col2, col1 FROM tab0 WHERE - 46 IS NOT NULL
----
78
21
86
1
86
81

skipif mysql # not compatible
query II rowsort label-2930
SELECT DISTINCT 86 - col0 / - - col2, col1 FROM tab0 WHERE - 46 IS NOT NULL
----
78
21
86
1
86
81

query I rowsort
SELECT DISTINCT - col2 + + - 0 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

query II rowsort
SELECT - + col2 AS col2, + 53 FROM tab1 AS cor0
----
-59
53
-68
53
-96
53

onlyif mysql # DIV for integer division: 
query II rowsort label-2933
SELECT - 6 AS col0, - col0 * ( - 91 ) DIV - + 88 - + - 20 FROM tab0 AS cor0
----
-6
-69
-6
-80
-6
5

skipif mysql # not compatible
query II rowsort label-2933
SELECT - 6 AS col0, - col0 * ( - 91 ) / - + 88 - + - 20 FROM tab0 AS cor0
----
-6
-69
-6
-80
-6
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col1, - col0 + - col1 col0 FROM tab1 AS cor0
----
51
-65
85
-90
91
-138

query I rowsort
SELECT + col1 - + + 44 + ( col0 ) FROM tab2 AS cor0
----
53
97
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col2 col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2937
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2937
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 6 + - col2 FROM tab0
----
-4
-41
-93

query I rowsort
SELECT ALL - 45 - + col2 FROM tab1 AS cor0
----
-104
-113
-141

query I rowsort
SELECT ALL + col0 + - - col1 + col1 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2941
SELECT - COUNT( * ) DIV COUNT( * ) + + 69 - SUM( DISTINCT - + col0 ) + - 71 FROM tab1 cor0
----
224

skipif mysql # not compatible
query I rowsort label-2941
SELECT - COUNT ( * ) / COUNT ( * ) + + 69 - SUM ( DISTINCT - + col0 ) + - 71 FROM tab1 cor0
----
224

onlyif mysql # DIV for integer division: 
query II rowsort label-2942
SELECT ( col2 ), - col2 DIV + + col2 AS col1 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

skipif mysql # not compatible
query II rowsort label-2942
SELECT ( col2 ), - col2 / + + col2 AS col1 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

query I rowsort
SELECT ALL - 69 FROM tab1 AS cor0 WHERE + col2 * + - col0 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 19 + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - 12 ) IS NOT NULL
----

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT COUNT( * ) * + + ( - 82 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-738

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( * ) * + + ( - 82 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-738

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2949
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 65 * + CAST( - 10 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2949
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = 65 * + CAST ( - 10 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL - + SUM( DISTINCT + 93 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL - + SUM ( DISTINCT + 93 ) AS col2 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT COUNT( * ) + - + ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT COUNT ( * ) + - + ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2953
SELECT + 30 DIV + 23 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT + 30 / + 23 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2954
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col0 * - + col2 AS col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT + - MAX( ALL + - 80 ) * + + COUNT( * ) FROM tab1 cor0
----
240

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT + - MAX ( ALL + - 80 ) * + + COUNT ( * ) FROM tab1 cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2957
SELECT DISTINCT col1 DIV + CAST( + - col2 AS SIGNED ) - - + 59 AS col1 FROM tab0 AS cor0
----
57
58
59

skipif mysql # not compatible
query I rowsort label-2957
SELECT DISTINCT col1 / + CAST ( + - col2 AS INTEGER ) - - + 59 AS col1 FROM tab0 AS cor0
----
57
58
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 35 <= NULL
----

query II rowsort
SELECT 98, col1 AS col1 FROM tab0
----
98
1
98
21
98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT MAX( col1 ) * + - COUNT( ALL col0 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-2960
SELECT MAX ( col1 ) * + - COUNT ( ALL col0 ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT + ( + - ( + COUNT( * ) ) ) + 56 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT + ( + - ( + COUNT ( * ) ) ) + 56 FROM tab1
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - + col2 + + 79 AS col2, 49 col0 FROM tab0
----
-21
49
-2130
49
-9722
49

query I rowsort
SELECT ( col0 ) + - col2 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT ALL col2 + + col0 DIV col0 * + - col1 * + 71 FROM tab0
----
-1481
-5704
28

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL col2 + + col0 / col0 * + - col1 * + 71 FROM tab0
----
-1481
-5704
28

query I rowsort
SELECT DISTINCT + 82 * col2 * - col0 + 62 FROM tab2
----
-209858
-356638
-86694

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND col2
----

query I rowsort
SELECT ALL - col2 * - 52 + + 95 FROM tab1 AS cor0
----
3163
3631
5087

query I rowsort
SELECT - 69 * + 70 AS col2 FROM tab2
----
-4830
-4830
-4830

query I rowsort
SELECT + 51 - - + 65 AS col1 FROM tab1 WHERE col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT COUNT( - + ( + 82 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2970
SELECT COUNT ( - + ( + 82 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT + COUNT( * ) * - COUNT( ALL + - col0 ) * + - ( + COUNT( * ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2971
SELECT + COUNT ( * ) * - COUNT ( ALL + - col0 ) * + - ( + COUNT ( * ) ) FROM tab2
----
27

query I rowsort
SELECT + ( 82 ) * + - ( + 76 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8f92df4fa972c9eafe5d92cedbedaca0

query I rowsort
SELECT ALL - + col0 * - ( - col1 ) + - 74 AS col1 FROM tab2 AS cor0
----
-2420
-5002
-5099

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT + - MIN( 1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + - MIN ( 1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( - 52 ) BETWEEN NULL AND col2
----

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 + + col0 + col2 <= - col0 * + ( 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 47 col1, col2 FROM tab0 AS cor0
----
-47
10
-47
47
-47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2979
SELECT - col0, 30 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-15
0
-87
1
-97
30

skipif mysql # not compatible
query II rowsort label-2979
SELECT - col0, 30 / - - col1 AS col0 FROM tab0 AS cor0
----
-15
0
-87
1
-97
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT ALL + col1 DIV - - 43 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + col1 / - - 43 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + col0 * + col1 FROM tab2 WHERE NOT ( col2 > 30 )
----
2346

query I rowsort
SELECT DISTINCT ( - 50 ) FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT + MIN( ALL col2 ) col1 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2983
SELECT + MIN ( ALL col2 ) col1 FROM tab2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT 62 + - ( + - CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 62 + - ( + - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
65

query I rowsort
SELECT ALL - col1 + + + col0 AS col0 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ( + COUNT( * ) ) + + - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT ( + COUNT ( * ) ) + + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 8 + + col1 AS col0 FROM tab0
----
29
89
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2988
SELECT ALL + ( CAST( + col2 AS SIGNED ) ) + - + col2, 48 - + 65 AS col2 FROM tab1 AS cor0
----
0
-17
0
-17
0
-17

skipif mysql # not compatible
query II rowsort label-2988
SELECT ALL + ( CAST ( + col2 AS INTEGER ) ) + - + col2, 48 - + 65 AS col2 FROM tab1 AS cor0
----
0
-17
0
-17
0
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-2989
SELECT - - 24 + - - 33 + + col1 AS col0, col1 DIV - + col0 FROM tab0 AS cor0
----
138
-5
58
0
78
0

skipif mysql # not compatible
query II rowsort label-2989
SELECT - - 24 + - - 33 + + col1 AS col0, col1 / - + col0 FROM tab0 AS cor0
----
138
-5
58
0
78
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab0 AS cor0 WHERE 19 + - col0 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT DISTINCT + + SUM( ALL + + 3 ) * - COUNT( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + + SUM ( ALL + + 3 ) * - COUNT ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 70 + - 87 FROM tab0 AS cor0
----
-157
-157
-157

query I rowsort
SELECT + col1 + + col2 + - - 53 FROM tab2 AS cor0
----
127
170
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + ( - 77 ) + + + MIN( + + col2 ) + COUNT( * ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2995
SELECT + ( - 77 ) + + + MIN ( + + col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 57 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 57 IS NULL
----
0

query I rowsort
SELECT + - col0 + - + col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT + 97 + col0 FROM tab2 AS cor0
----
143
161
172

onlyif mysql # DIV for integer division: 
query I rowsort label-2999
SELECT col2 + - - col2 + - ( col2 ) DIV + - col1 FROM tab1
----
129
137
198

skipif mysql # not compatible
query I rowsort label-2999
SELECT col2 + - - col2 + - ( col2 ) / + - col1 FROM tab1
----
129
137
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL MIN( ALL + - col0 ) col2 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3000
SELECT ALL MIN ( ALL + - col0 ) col2 FROM tab0
----
-97

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - col2 + + col0 - - col0 * - col1 / col0 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - col2 + + col0 - - col0 * - col1 / col0 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col1 ) + + 45 AS col1 FROM tab1
----
50
59
92

query I rowsort
SELECT DISTINCT ( - 79 ) * - ( + 19 ) + col2 - 13 - - + 64 FROM tab0
----
1562
1599
1651

query I rowsort
SELECT - - col2 - - 60 FROM tab0 AS cor0
----
107
159
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3006
SELECT ALL * FROM tab0 cor0 WHERE 27 NOT BETWEEN NULL AND - - 93 * + + col2 + + col2 - + 42 + + - CAST( - - 37 AS SIGNED ) * + - col0 AND ( NULL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3006
SELECT ALL * FROM tab0 cor0 WHERE 27 NOT BETWEEN NULL AND - - 93 * + + col2 + + col2 - + 42 + + - CAST ( - - 37 AS INTEGER ) * + - col0 AND ( NULL ) >= NULL
----

query I rowsort
SELECT - - 46 - - col2 + col0 + - col2 * + + ( col0 ) AS col0 FROM tab2 AS cor0
----
-2410
-4171
-943

query II rowsort
SELECT col0 - - col0, - 28 AS col1 FROM tab2 AS cor0
----
128
-28
150
-28
92
-28

query I rowsort
SELECT - ( - col1 ) - - 88 FROM tab1 AS cor0
----
102
135
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 58 NOT IN ( col1, 32 + ( - col0 ) / 14, + col2 * 56 )
----

query I rowsort
SELECT ALL + 70 * col2 + + 13 AS col0 FROM tab1 AS cor0
----
4143
4773
6733

query II rowsort
SELECT + + 45 AS col0, + col1 * - col1 AS col2 FROM tab0 AS cor0
----
45
-1
45
-441
45
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT + col1 DIV + 80 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + col1 / + 80 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT ALL 54 DIV + 10 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL 54 / + 10 FROM tab0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69 col1, - col0 FROM tab2
----
69
-46
69
-64
69
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3016
SELECT + COUNT( * ) AS col0, 6 AS col0 FROM tab1
----
3
6

skipif mysql # not compatible
query II rowsort label-3016
SELECT + COUNT ( * ) AS col0, 6 AS col0 FROM tab1
----
3
6

query II rowsort
SELECT col0 AS col1, ( + + col1 ) AS col2 FROM tab0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 col2, 19 AS col0 FROM tab1
----
40
19
40
19
40
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT - col2 DIV - col1 * - + 6 * + 31 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3019
SELECT - col2 / - col1 * - + 6 * + 31 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3020
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) * - + 16 + + col1 FROM tab1
----
-1041
-1522
-939

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) * - + 16 + + col1 FROM tab1
----
-1041
-1522
-939

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 >= - ( + ( + ( - 73 ) ) )
----
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT SUM( col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-3025
SELECT SUM ( col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * 23, col0 col2 FROM tab1 AS cor0
----
1173
51
1955
85
2093
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3027
SELECT ALL - - col1 * - col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE - 89 <> ( + CAST( NULL AS SIGNED ) ) + col1
----

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - - col1 * - col1 * + col1 AS col1 FROM tab1 AS cor0 WHERE - 89 <> ( + CAST ( NULL AS INTEGER ) ) + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 30 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT MAX( ALL + ( + 45 ) ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT MAX ( ALL + ( + 45 ) ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + 61 * MAX( - col0 ) col2 FROM tab1 cor0
----
-3111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3030
SELECT + 61 * MAX ( - col0 ) col2 FROM tab1 cor0
----
-3111

query I rowsort
SELECT DISTINCT 20 FROM tab1, tab0 cor0
----
20

query I rowsort
SELECT - col2 * col0 * - col2 - ( - + col2 ) + ( 71 ) FROM tab1
----
296015
420923
470183

query II rowsort
SELECT - 91 + + 8 + col2 AS col2, + col0 - - 91 AS col2 FROM tab0
----
-36
106
-73
178
16
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + COUNT( * ) + + + 81 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-3034
SELECT + COUNT ( * ) + + + 81 FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - SUM( ALL + col2 ) + + COUNT( * ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-3035
SELECT - SUM ( ALL + col2 ) + + COUNT ( * ) FROM tab1
----
-220

query I rowsort
SELECT col0 * + col2 + + col2 AS col2 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE ( ( - 73 ) ) NOT IN ( + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-3037
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE ( ( - 73 ) ) NOT IN ( + col1 )
----
-3

query I rowsort
SELECT ALL 44 - + col1 FROM tab1
----
-3
30
39

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 57 ) IS NULL
----

query I rowsort
SELECT ALL + ( - 32 ) AS col0 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - 40 + - 9 IS NOT NULL
----

query I rowsort
SELECT ALL 8 * col0 + - col0 * col1 FROM tab0
----
-1095
-1131
679

query I rowsort
SELECT DISTINCT + col0 * 85 + - col2 FROM tab0
----
1228
7385
8146

query I rowsort
SELECT 66 + 79 AS col0 FROM tab1
----
145
145
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT MIN( ALL col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-3046
SELECT MIN ( ALL col2 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
23

query I rowsort
SELECT col1 + + 99 AS col1 FROM tab1
----
104
113
146

query III rowsort
SELECT * FROM tab0 WHERE + 59 <> ( + 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT MAX( DISTINCT + 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT MAX ( DISTINCT + 62 ) FROM tab1
----
62

query I rowsort
SELECT ALL col1 + - ( - 65 ) AS col1 FROM tab2
----
116
132
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT ALL + col1 col0 FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) + - col2 <= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3051
SELECT ALL + col1 col0 FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) + - col2 <= ( NULL )
----

query I rowsort
SELECT - col0 + - 85 FROM tab0
----
-100
-172
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT MIN( ( col1 ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3053
SELECT MIN ( ( col1 ) ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT - SUM( + col0 ) + - SUM( 87 ) AS col2 FROM tab2
----
-446

skipif mysql # not compatible
query I rowsort label-3054
SELECT - SUM ( + col0 ) + - SUM ( 87 ) AS col2 FROM tab2
----
-446

query I rowsort
SELECT - 2 + 77 * ( + col1 * - col0 ) FROM tab2 WHERE NULL IN ( col2 * + 23 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE ( ( - 64 ) ) <> col1 / 84
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN + col1 AND ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT COUNT( * ) + 83 AS col0 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-3058
SELECT COUNT ( * ) + 83 AS col0 FROM tab1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - 63 col2 FROM tab0
----
150
160
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3060
SELECT ALL * FROM tab1 WHERE 13 NOT BETWEEN + CAST( NULL AS SIGNED ) AND 94 * ( - col0 ) + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3060
SELECT ALL * FROM tab1 WHERE 13 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND 94 * ( - col0 ) + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 55 * col1 AS col1 FROM tab2
----
2805
3685
4235

query I rowsort
SELECT - 69 * + col1 AS col0 FROM tab1 AS cor0
----
-3243
-345
-966

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT + ( CAST( NULL AS SIGNED ) ) * ( + col0 / + col2 + 82 * + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + ( CAST ( NULL AS INTEGER ) ) * ( + col0 / + col2 + 82 * + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - MIN( 92 ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-3065
SELECT - MIN ( 92 ) FROM tab0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3066
SELECT * FROM tab0 WHERE ( - 34 - - col0 ) NOT BETWEEN NULL AND ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3066
SELECT * FROM tab0 WHERE ( - 34 - - col0 ) NOT BETWEEN NULL AND ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT COUNT( DISTINCT 5 ) FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-3067
SELECT COUNT ( DISTINCT 5 ) FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
1

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3069
SELECT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) + - 80 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3069
SELECT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) + - 80 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3070
SELECT + COUNT( * ) + - MAX( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT + COUNT ( * ) + - MAX ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - + CAST( 76 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
-55
-75
5

skipif mysql # not compatible
query I rowsort label-3071
SELECT - + CAST ( 76 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
-55
-75
5

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col1 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT - 68 * + col1 FROM tab0
----
-1428
-5508
-68

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 38 * 14
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 / - ( 65 ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT COUNT( * ) + COUNT( * ) FROM tab1 WHERE ( NULL ) >= 59
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE ( NULL ) >= 59
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3077
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-3077
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT ALL 55 + - ( col2 ) AS col0 FROM tab0
----
-44
45
8

query I rowsort
SELECT col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 55 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT + 97 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
873

skipif mysql # not compatible
query I rowsort label-3080
SELECT + 97 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
873

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT COUNT( * ) * + MIN( DISTINCT col0 ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-3081
SELECT COUNT ( * ) * + MIN ( DISTINCT col0 ) FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL 58 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
522

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL 58 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
522

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT IN ( + 43 + - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL - MAX( + col1 ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3084
SELECT ALL - MAX ( + col1 ) col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - 5 - - col1 * 25 FROM tab2 AS cor0 WHERE NOT 55 IS NULL
----
1270
1670
1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3086
SELECT + + 47 DIV + COUNT( * ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3086
SELECT + + 47 / + COUNT ( * ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT AVG ( ALL col1 ) / - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - 52 + - 24 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT AVG ( ALL col1 ) / - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - 52 + - 24 >= NULL
----
NULL

query I rowsort
SELECT DISTINCT + 84 * - col2 + + + col1 * + col0 FROM tab2 cor0
----
153
1568
414

query III rowsort
SELECT * FROM tab1 WHERE NOT - 37 <= col0
----

query II rowsort
SELECT ALL - col0 * + 98, 9 * - col1 * col1 AS col0 FROM tab2
----
-4508
-23409
-6272
-53361
-7350
-40401

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE ( col1 ) IN ( col1 )
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 50 ) NOT IN ( col2 + + col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT ALL col2 + - + CAST( - + col2 AS SIGNED ) FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL col2 + - + CAST ( - + col2 AS INTEGER ) FROM tab0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 70 - - col1 + - 26 * ( + col1 + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT 22 * + COUNT( * ) * COUNT( * ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-3096
SELECT 22 * + COUNT ( * ) * COUNT ( * ) FROM tab0
----
198

query I rowsort
SELECT DISTINCT - col0 + - - col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 2 * - + 96 - + - 31 col0 FROM tab0 cor0
----
-161
-161
-161

query I rowsort
SELECT ( + 50 ) + - 44 FROM tab0 AS cor0
----
6
6
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 92 * col2 AS col2 FROM tab1 AS cor0 WHERE - col2 - col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3102
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT 5 NOT BETWEEN - CAST( NULL AS SIGNED ) + - + col0 / 1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT 5 NOT BETWEEN - CAST ( NULL AS INTEGER ) + - + col0 / 1 AND ( NULL )
----
0

query I rowsort
SELECT ALL - col2 * + 97 FROM tab1 AS cor0
----
-5723
-6596
-9312

query I rowsort
SELECT ( + 32 ) + + - col1 + - + col2 FROM tab2
----
-42
-85
-93

query I rowsort
SELECT DISTINCT col0 - 55 + + col1 / 81 FROM tab1 WHERE - col2 <= ( NULL )
----

query I rowsort
SELECT col0 * col2 + + ( + + col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3107
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - 5 - + col1 FROM tab1 AS cor0
----
290
293
466

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + 49 * - col2 FROM tab0 AS cor0
----
-2303
-4851
-490

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL + + CAST( NULL AS SIGNED ) - - + ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + + CAST ( NULL AS INTEGER ) - - + ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL - COUNT( ALL col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL - COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT + 10 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + 10 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
7

query I rowsort
SELECT ALL - - 36 - - col1 AS col1 FROM tab2 AS cor0
----
103
113
87

query II rowsort
SELECT DISTINCT 93, - ( - 12 ) AS col1 FROM tab1
----
93
12

query I rowsort
SELECT col2 + - + col1 AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT ALL col2 DIV 7 AS col0 FROM tab0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL col2 / 7 AS col0 FROM tab0
----
1
14
6

query I rowsort
SELECT - col1 + - ( + 18 ) FROM tab0
----
-19
-39
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 * col0 + + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( ( NOT - col2 > ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( NOT ( col2 + - 30 / + - col2 ) IN ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( NOT ( col2 + - 30 / + - col2 ) IN ( - col0 ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + 13 / - col0 IN ( ( + 25 ) + + 55 / col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL - + 7 AS col1, + col0 AS col0, col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to d728d55430ae239eff1a7a4064b98e0a

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL - + SUM( ALL + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL - + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT + ( + - CAST( - + col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3126
SELECT + ( + - CAST ( - + col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3127
SELECT 3 AS col0, - col2 DIV - 90 AS col2 FROM tab2 AS cor0
----
3
0
3
0
3
0

skipif mysql # not compatible
query II rowsort label-3127
SELECT 3 AS col0, - col2 / - 90 AS col2 FROM tab2 AS cor0
----
3
0
3
0
3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT DISTINCT - 84, COUNT( * ) AS col1 FROM tab2 WHERE NULL > NULL
----
-84
0

skipif mysql # not compatible
query II rowsort label-3128
SELECT DISTINCT - 84, COUNT ( * ) AS col1 FROM tab2 WHERE NULL > NULL
----
-84
0

query I rowsort
SELECT DISTINCT 85 * col0 AS col0 FROM tab1
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT 43 + + - COUNT( * ) FROM tab2 WHERE NOT ( col1 + col1 ) IS NULL
----
40

skipif mysql # not compatible
query I rowsort label-3130
SELECT 43 + + - COUNT ( * ) FROM tab2 WHERE NOT ( col1 + col1 ) IS NULL
----
40

query I rowsort
SELECT ALL + 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query II rowsort
SELECT ALL col1 * - + col2 + + col2 AS col2, col2 FROM tab2 AS cor0 WHERE 24 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - - 3 IS NULL )
----

query I rowsort
SELECT + 9 * + col0 + + 72 AS col1 FROM tab2 AS cor0
----
486
648
747

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT ALL - COUNT( DISTINCT - col1 ) AS col0, + COUNT( * ) + + - 47 + - 91 + - + 50 AS col2 FROM tab2 AS cor0
----
-3
-185

skipif mysql # not compatible
query II rowsort label-3135
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col0, + COUNT ( * ) + + - 47 + - 91 + - + 50 AS col2 FROM tab2 AS cor0
----
-3
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT - 21 * + col2 * CAST( - + col0 AS SIGNED ) - col2 AS col2 FROM tab2 AS cor0
----
22195
53720
91292

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 21 * + col2 * CAST ( - + col0 AS INTEGER ) - col2 AS col2 FROM tab2 AS cor0
----
22195
53720
91292

query I rowsort
SELECT DISTINCT + col1 * - - 36 * col0 AS col2 FROM tab2 AS cor0
----
177408
180900
84456

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL + COUNT( DISTINCT - 25 ) + - - 10 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + COUNT ( DISTINCT - 25 ) + - - 10 FROM tab0 AS cor0
----
11

query I rowsort
SELECT - - 16 + + col2 * col1 AS col0 FROM tab1 cor0
----
1360
311
3212

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3140
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col2 col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL col1 * + + col0 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col1 + + + col1 * 9 * - + col1 * + 94 AS col0 FROM tab1
----
-165830
-1868861
-21155

query I rowsort
SELECT DISTINCT ( - + 58 ) + - 95 FROM tab1
----
-153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( + col1 + - col0 )
----

query I rowsort
SELECT DISTINCT col1 + + ( - 21 ) AS col0 FROM tab0
----
-20
0
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT - 5 * - COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - 5 * - COUNT ( * ) AS col2 FROM tab2
----
15

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col2 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT 63 * - + 83 FROM tab0 AS cor0
----
-5229
-5229
-5229

query I rowsort
SELECT - col2 * + ( + - 8 ) - - - col2 + - - 48 * - col2 * col2 * - col1 AS col2 FROM tab1 cor0
----
10432220
6193824
835853

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL - MIN( DISTINCT 79 ) * + 64 FROM tab2 AS cor0
----
-5056

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - MIN ( DISTINCT 79 ) * + 64 FROM tab2 AS cor0
----
-5056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * - 99 col2 FROM tab1 AS cor0
----
-1386
-1386
-1386

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + + col0 + - + 81 / + + col1 + + 11 >= NULL )
----

query I rowsort
SELECT DISTINCT - - col1 * + 83 * - - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT ALL + 83 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + 83 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 50 / + - col0 IS NULL
----

query II rowsort
SELECT - 62 + - col0, + 34 - - col1 AS col0 FROM tab2
----
-108
85
-126
111
-137
101

query I rowsort
SELECT ALL + col0 - ( - col1 ) AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT COUNT( * ) * + 51 + - 65 AS col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT COUNT ( * ) * + 51 + - 65 AS col2 FROM tab0 AS cor0
----
88

query I rowsort
SELECT DISTINCT - col2 * - 64 - + col2 FROM tab2 AS cor0
----
1449
2520
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3161
SELECT ALL + 94 DIV 52 + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + 94 / 52 + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL 9 - - col1 * - col0 FROM tab1 AS cor0
----
-416
-4268
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT ALL CAST( + ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL CAST ( + ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + col0 - ( + 18 ) FROM tab1 AS cor0
----
33
67
73

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3165
SELECT + + col1, - 29 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + + col0 IS NOT NULL
----
51
-29
67
-29
77
-29

skipif mysql # not compatible
query II rowsort label-3165
SELECT + + col1, - 29 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) + + col0 IS NOT NULL
----
51
-29
67
-29
77
-29

query I rowsort
SELECT ALL col2 * 11 AS col2 FROM tab0 AS cor0
----
1089
110
517

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 IN ( - 30, col0 )
----

query II rowsort
SELECT DISTINCT col0, - 59 FROM tab1
----
51
-59
85
-59
91
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT + 85 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT col0 * 87 DIV + - col0 + + 22 AS col0 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT col0 * 87 / + - col0 + + 22 AS col0 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL COUNT( + + 79 ) + - COUNT( * ) + + ( - 46 ) col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( - col0 )
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3171
SELECT ALL COUNT ( + + 79 ) + - COUNT ( * ) + + ( - 46 ) col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( - col0 )
----
-46

query I rowsort
SELECT + col0 * - + col0 + ( - + 11 ) - col1 AS col2 FROM tab1
----
-2626
-7241
-8339

query I rowsort
SELECT - col2 + 70 FROM tab2
----
12
30
47

query II rowsort
SELECT 30 AS col0, 32 FROM tab2 AS cor0
----
30
32
30
32
30
32

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 <> 25 * + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - + 5 FROM tab0 AS cor0
----
-435
-485
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT + MIN( - - 74 ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT + MIN ( - - 74 ) FROM tab0 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 96 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT ALL col2 DIV + - 92 + + col0 AS col1 FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL col2 / + - 92 + + col0 AS col1 FROM tab0
----
15
87
96

query I rowsort
SELECT ALL + col0 * + - col1 * col2 * - col1 + + 70 AS col2 FROM tab1
----
125445
13669362
959686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT - col2 + + ( + CAST( + col2 AS SIGNED ) ) + - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3182
SELECT - col2 + + ( + CAST ( + col2 AS INTEGER ) ) + - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3183
SELECT CAST( NULL AS DECIMAL ) + - + 70 * + col0 AS col1, col0 * - col1 * - col2 FROM tab1
----
NULL
25075
NULL
290836
NULL
68544

skipif mysql # not compatible
query II rowsort label-3183
SELECT CAST ( NULL AS REAL ) + - + 70 * + col0 AS col1, col0 * - col1 * - col2 FROM tab1
----
NULL
25075
NULL
290836
NULL
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT + col1 * - 35 * - col0 - - 45 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT + col1 * - 35 * - col0 - - 45 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab1 AS cor0 WHERE NULL IN ( + col2 - - + 52, + 53 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 79 = col1 + + col1
----

query II rowsort
SELECT + col1 + + col2, - col1 * - - 64 AS col1 FROM tab0 AS cor0
----
100
-64
128
-5184
31
-1344

query I rowsort
SELECT DISTINCT 47 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
47

query I rowsort
SELECT DISTINCT - - col2 - + 93 * + + col1 * + 65 FROM tab1 AS cor0
----
-284047
-30166
-84534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3190
SELECT + SUM( + col1 ) * COUNT( CAST( NULL AS SIGNED ) ) + SUM( DISTINCT - 2 ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-3190
SELECT + SUM ( + col1 ) * COUNT ( CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT - 2 ) AS col0 FROM tab0 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col0 FROM tab0
----
39
39
39

query I rowsort
SELECT + 91 - - + col1 * - 79 AS col1 FROM tab0 AS cor0
----
-1568
-6308
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 col1 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT 65 * + col0 FROM tab0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT COUNT( * ) * - MAX( DISTINCT + + 35 ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-3195
SELECT COUNT ( * ) * - MAX ( DISTINCT + + 35 ) FROM tab0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3196
SELECT DISTINCT CAST( MIN( + col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT CAST ( MIN ( + col2 ) AS INTEGER ) FROM tab1
----
59

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 21 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 79 * + - col1 col2 FROM tab0
----
144333
7663
95985

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL + COUNT( * ) * + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
207

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + COUNT ( * ) * + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT + COUNT( DISTINCT ( - - 0 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3202
SELECT + COUNT ( DISTINCT ( - - 0 ) ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3204
SELECT * FROM tab1 WHERE + - CAST( - col2 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3204
SELECT * FROM tab1 WHERE + - CAST ( - col2 AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3205
SELECT - - ( 59 ) DIV 89 + + - COUNT( + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3205
SELECT - - ( 59 ) / 89 + + - COUNT ( + col2 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 col0 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-3207
SELECT DISTINCT + + col0, + col2 DIV - col0 col1 FROM tab0 AS cor0
----
15
-3
87
0
97
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3207
SELECT DISTINCT + + col0, + col2 / - col0 col1 FROM tab0 AS cor0
----
15
-3
87
0
97
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + col1 ) IS NULL
----

query I rowsort
SELECT - 9 + + col1 FROM tab0
----
-8
12
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT 57 * COUNT( * ) * - COUNT( * ) + ( COUNT( * ) ) FROM tab1
----
-510

skipif mysql # not compatible
query I rowsort label-3210
SELECT 57 * COUNT ( * ) * - COUNT ( * ) + ( COUNT ( * ) ) FROM tab1
----
-510

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3211
SELECT * FROM tab1 WHERE - col1 < - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3211
SELECT * FROM tab1 WHERE - col1 < - - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT MAX( ALL - col1 ) AS col1, - 14 FROM tab2
----
-51
-14

skipif mysql # not compatible
query II rowsort label-3212
SELECT MAX ( ALL - col1 ) AS col1, - 14 FROM tab2
----
-51
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - col1 * - 45 * 82 / 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 17 - - + col2 FROM tab0 AS cor0
----
116
27
64

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 cor0 WHERE NOT NULL IN ( ( - col1 ) * + + col0 * - col1 * col2 * 97, + ( + col2 ) * - 72 + + + 62 + - col1 - col0 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col1 FROM tab1 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT DISTINCT - 82 + - + 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-3219
SELECT DISTINCT - 82 + - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT + 67 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3221
SELECT + - 82 - SUM( + col2 ), ( - 20 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-3221
SELECT + - 82 - SUM ( + col2 ), ( - 20 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL
-20

query I rowsort
SELECT ALL + 65 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT + col2 * + col1 * - col2 + + ( col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT + col2 * + col1 * - col2 + + ( col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL 53 * ( - 31 ) FROM tab1
----
-1643
-1643
-1643

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * 81 * + 18 + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * 84 FROM tab2
----
1932
3360
4872

query I rowsort
SELECT 82 * - col1 FROM tab2
----
-4182
-5494
-6314

query I rowsort
SELECT ALL - 82 * - col2 AS col2 FROM tab1
----
4838
5576
7872

onlyif mysql # aggregate syntax: 
query II rowsort label-3231
SELECT ALL + 16, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
16
-3

skipif mysql # not compatible
query II rowsort label-3231
SELECT ALL + 16, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
16
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT - - ( col2 ) DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-3232
SELECT - - ( col2 ) / col1 AS col0 FROM tab0 AS cor0
----
0
0
99

query II rowsort
SELECT ALL col0 AS col1, - ( + + 44 ) FROM tab1 AS cor0
----
51
-44
85
-44
91
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + ( + MIN( + 60 ) ) * - COUNT( * ) * + COUNT( * ) + + 83 FROM tab1
----
-457

skipif mysql # not compatible
query I rowsort label-3235
SELECT + ( + MIN ( + 60 ) ) * - COUNT ( * ) * + COUNT ( * ) + + 83 FROM tab1
----
-457

query I rowsort
SELECT 51 + + - 75 FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + COUNT( * ) * + 3 + + + MAX( DISTINCT + - 34 ) - 56 FROM tab2 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3237
SELECT + COUNT ( * ) * + 3 + + + MAX ( DISTINCT + - 34 ) - 56 FROM tab2 cor0
----
-81

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT + col2 = + 15
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL - MAX( 25 ) * + 79 * 53 FROM tab2 AS cor0 WHERE NOT - 73 * 81 + - col1 IS NULL
----
-104675

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL - MAX ( 25 ) * + 79 * 53 FROM tab2 AS cor0 WHERE NOT - 73 * 81 + - col1 IS NULL
----
-104675

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE ( - col0 IS NOT NULL )
----
10
47
99

query I rowsort
SELECT DISTINCT - - 46 + + - col1 FROM tab1 AS cor0 WHERE NOT + 8 / - - col2 < NULL
----

query I rowsort
SELECT ALL 72 - col2 FROM tab1 WHERE NOT - col2 * + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT IN ( + col0, - col2 * + - 14, - - col1, + 93, - - 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 25 + ( - - col0 ) AS col2 FROM tab1
----
110
116
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL SUM( + 59 ) + - 23 AS col1 FROM tab0
----
154

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL SUM ( + 59 ) + - 23 AS col1 FROM tab0
----
154

query I rowsort
SELECT DISTINCT - 49 + col2 AS col0 FROM tab0
----
-2
-39
50

query I rowsort
SELECT ALL - col0 + + 9 FROM tab0 AS cor0
----
-6
-78
-88

query I rowsort
SELECT DISTINCT 85 - + 30 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT + 99 + - + 22 + - COUNT( - - 7 ) FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + 99 + - + 22 + - COUNT ( - - 7 ) FROM tab2 cor0
----
74

query II rowsort
SELECT col1, col0 * - col0 + + col0 FROM tab0 AS cor0
----
1
-9312
21
-7482
81
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL - MAX( - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - MAX ( - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - + 51 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT - - 17 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query II rowsort
SELECT DISTINCT + 97 AS col0, 69 FROM tab1 AS cor0
----
97
69

query II rowsort
SELECT - + col2 AS col0, - col2 * + + 64 AS col0 FROM tab1 AS cor0
----
-59
-3776
-68
-4352
-96
-6144

query I rowsort
SELECT DISTINCT + - 78 * 15 + col0 AS col0 FROM tab0 AS cor0
----
-1073
-1083
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL - 76 * - COUNT( * ) col2 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3257
SELECT ALL - 76 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
228

query II rowsort
SELECT + col0 AS col1, col0 + + 43 AS col0 FROM tab0 cor0
----
15
58
87
130
97
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT DISTINCT - 99 FROM tab2 WHERE 62 NOT IN ( CAST( NULL AS SIGNED ) + col0, col1 + - + col2 )
----

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT - 99 FROM tab2 WHERE 62 NOT IN ( CAST ( NULL AS INTEGER ) + col0, col1 + - + col2 )
----

query I rowsort
SELECT DISTINCT - - col0 * - - col0 FROM tab0 WHERE NOT NULL < 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT COUNT( ALL + 91 ) * - - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT COUNT ( ALL + 91 ) * - - COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT CAST( - - 3 AS SIGNED ) AS col2 FROM tab0 cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3262
SELECT CAST ( - - 3 AS INTEGER ) AS col2 FROM tab0 cor0
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT + col0 DIV 54 + col0 AS col0 FROM tab0 AS cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-3263
SELECT + col0 / 54 + col0 AS col0 FROM tab0 AS cor0
----
15
88
98

query II rowsort
SELECT ALL col1 AS col1, + 12 FROM tab0 AS cor0
----
1
12
21
12
81
12

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - - 53 + + 57 + - ( - 84 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
362

skipif mysql # not compatible
query I rowsort label-3266
SELECT - - 53 + + 57 + - ( - 84 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
362

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT ALL + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3267
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT - + col2 * - col2 AS col2 FROM tab2 AS cor0 WHERE 8 / + + 46 <= - 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 48 * + + 54 col1, col2 FROM tab2
----
2592
23
2592
40
2592
58

query I rowsort
SELECT ALL 18 + - 66 * + + col0 FROM tab1
----
-3348
-5592
-5988

query I rowsort
SELECT + ( - - 33 ) FROM tab1
----
33
33
33

query III rowsort
SELECT ALL * FROM tab0 WHERE 53 IS NULL
----

query I rowsort
SELECT - col2 - - - col0 * col0 FROM tab1 AS cor0
----
-2697
-7284
-8349

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab2 AS cor0 WHERE + 7 IS NULL
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT col1 = - 96
----
46
64
75

query I rowsort
SELECT + col1 * + - col0 * ( + col0 ) FROM tab0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT + SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + SUM ( + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3278
SELECT - COUNT( * ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3278
SELECT - COUNT ( * ) / - - COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT COUNT( + ( 11 ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3280
SELECT DISTINCT COUNT ( + ( 11 ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + col1 * 60 col2 FROM tab2 cor0
----
51
3060
67
4020
77
4620

query II rowsort
SELECT ALL - col1 AS col1, - 52 AS col0 FROM tab1 AS cor0
----
-14
-52
-47
-52
-5
-52

query I rowsort
SELECT DISTINCT col2 + - 38 * - + col2 * col0 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3284
SELECT DISTINCT - col0, CAST( - col1 AS SIGNED ) * 39 AS col2 FROM tab0
----
-15
-3159
-87
-819
-97
-39

skipif mysql # not compatible
query II rowsort label-3284
SELECT DISTINCT - col0, CAST ( - col1 AS INTEGER ) * 39 AS col2 FROM tab0
----
-15
-3159
-87
-819
-97
-39

query II rowsort
SELECT + col2, + col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL ( - 98 ) * + col1 FROM tab2
----
-4998
-6566
-7546

query II rowsort
SELECT DISTINCT 48 + - + col0, col1 FROM tab1
----
-3
14
-37
5
-43
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT + col2 * - + CAST( col0 AS SIGNED ) FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3288
SELECT + col2 * - + CAST ( col0 AS INTEGER ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - 87 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-87
-87
-87

query II rowsort
SELECT - 71 AS col1, + 13 * - 58 FROM tab1
----
-71
-754
-71
-754
-71
-754

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL OR NOT - 99 * + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 56 - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 40 * - 37 FROM tab1 AS cor0
----
-1384
-1412
-1421

query I rowsort
SELECT ALL 48 + - col0 AS col1 FROM tab1
----
-3
-37
-43

query I rowsort
SELECT ALL - col1 * col1 + + col1 AS col1 FROM tab0
----
-420
-6480
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT - COUNT( * ) DIV - 13 * - - ( - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT - COUNT ( * ) / - 13 * - - ( - COUNT ( * ) ) FROM tab0
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE - - ( - col0 ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL + - COUNT( * ) - COUNT( * ), - 44 AS col1 FROM tab0 cor0
----
-6
-44

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL + - COUNT ( * ) - COUNT ( * ), - 44 AS col1 FROM tab0 cor0
----
-6
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3299
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3300
SELECT 62 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col1 NOT IN ( - + col0, 73, + col1, col2 )
----

skipif mysql # not compatible
query I rowsort label-3300
SELECT 62 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col1 NOT IN ( - + col0, 73, + col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT - 0 * MIN( - col0 ) - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - 0 * MIN ( - col0 ) - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 50 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT DISTINCT - 49 DIV col1 FROM tab0
----
-2
-49
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - 49 / col1 FROM tab0
----
-2
-49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + 17 + COUNT( * ) FROM tab2 WHERE - - col2 IS NULL
----
17

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 17 + COUNT ( * ) FROM tab2 WHERE - - col2 IS NULL
----
17

query I rowsort
SELECT ( - col0 ) * - col1 AS col0 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT col1 * + 78 AS col0 FROM tab1 AS cor0
----
1092
3666
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT DISTINCT ( + SUM( ALL CAST( + + 43 AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT ( + SUM ( ALL CAST ( + + 43 AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT ALL MIN( DISTINCT + + col1 ) DIV - COUNT( * ) + + - MIN( - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL MIN ( DISTINCT + + col1 ) / - COUNT ( * ) + + - MIN ( - col0 ) FROM tab0
----
97

query I rowsort
SELECT DISTINCT + + 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col1 * - - 67 * + col1 * + 19 AS col2 FROM tab1 AS cor0
----
-132166679
-159125
-3493112

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT + MAX( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3312
SELECT + MAX ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col2 FROM tab2
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + col1 + + + col0 col2 FROM tab2
----
-2504
-4347
-5788

query I rowsort
SELECT + 53 * - - col0 + col2 FROM tab1
----
2799
4564
4891

query I rowsort
SELECT - 4 AS col1 FROM tab0 WHERE NOT + 26 + col0 + - 56 * + - 1 * col2 <= col0 - - ( - 18 )
----
-4
-4
-4

query I rowsort
SELECT ALL col2 + 48 + - col1 FROM tab0
----
14
146
37

query I rowsort
SELECT DISTINCT + 53 + + + col0 + 55 - ( - 98 ) * + col1 - - - 25 FROM tab2
----
5127
6724
7693

query I rowsort
SELECT DISTINCT + + 85 * + + col1 AS col2 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT - + col2 / col0 * col0 * - 79 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 37 + 16 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT ALL + 10 + - ( col1 ) FROM tab0
----
-11
-71
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT + SUM( ALL col0 ) - - MAX( ALL col0 ) AS col1 FROM tab2 cor0
----
260

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + SUM ( ALL col0 ) - - MAX ( ALL col0 ) AS col1 FROM tab2 cor0
----
260

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3324
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN CAST( 44 AS DECIMAL ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-3324
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN CAST ( 44 AS REAL ) AND - col1
----

query I rowsort
SELECT ALL + + col0 + - + col2 - 88 * + col2 FROM tab2 AS cor0 WHERE ( + - col0 ) * + col1 * - + col2 * - - col2 + - + col0 / - - col1 IS NOT NULL
----
-2001
-3496
-5087

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT ALL + COUNT( * ), COUNT( * ) col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3326
SELECT ALL + COUNT ( * ), COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
0
0

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE + col2 + + 29 IN ( col0 * - - col2 )
----

query I rowsort
SELECT - 55 FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 * col2 * - 27 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - + COUNT( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3329
SELECT - + COUNT ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT + - COUNT( ( 62 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3330
SELECT + - COUNT ( ( 62 ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT SUM( ALL + + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT SUM ( ALL + + col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col1 AS col2 FROM tab1
----
36125
36414
389207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 68 > NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 86 * + - col0 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab2 cor0
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3336
SELECT ALL - 4 DIV 56 AS col1, col0 * - - 42 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3336
SELECT ALL - 4 / 56 AS col1, col0 * - - 42 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT DISTINCT - 4 AS col2, ( - ( + 99 ) ) - + COUNT( * ) AS col1 FROM tab2
----
-4
-102

skipif mysql # not compatible
query II rowsort label-3337
SELECT DISTINCT - 4 AS col2, ( - ( + 99 ) ) - + COUNT ( * ) AS col1 FROM tab2
----
-4
-102

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 78 IS NULL
----

query I rowsort
SELECT ALL col2 * 55 AS col1 FROM tab0
----
2585
5445
550

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( - 53 ) + + 44 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3341
SELECT + COUNT( * ) DIV - 96 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT + COUNT ( * ) / - 96 AS col2 FROM tab0
----
0

query I rowsort
SELECT 59 AS col0 FROM tab0 WHERE NOT NULL <= ( - - col2 )
----

query I rowsort
SELECT 86 AS col1 FROM tab0 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3344
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT ALL + col2 / + - 49 / + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL + col2 / + - 49 / + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT + 50 * - 42 * - 81 + + + col1 + + col2 DIV col1 * + + col0 * col1 - 61 * - col0 AS col0 FROM tab1 AS cor0
----
177509
179965
179975

skipif mysql # not compatible
query I rowsort label-3346
SELECT + 50 * - 42 * - 81 + + + col1 + + col2 / col1 * + + col0 * col1 - 61 * - col0 AS col0 FROM tab1 AS cor0
----
177509
179965
179975

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3347
SELECT DISTINCT 67 + - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT 67 + - - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 + 79 + + col1 + 84 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 19 FROM tab2 WHERE - - 0 NOT BETWEEN NULL AND ( - - col1 ) * - - 74 + - 48 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT + 11 + - + COUNT( ALL - - col0 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3350
SELECT + 11 + - + COUNT ( ALL - - col0 ) FROM tab0 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * col1 col1 FROM tab2 AS cor0
----
2323
4888
4967

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 65 + 74 NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL COUNT( + 97 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL COUNT ( + 97 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - col2 - + 22 + - col2 * + col1 FROM tab2 AS cor0
----
-1218
-3142
-3966

query I rowsort
SELECT 76 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 - - 59 FROM tab2 AS cor0
----
110
126
136

query I rowsort
SELECT DISTINCT + - col1 - col2 + col2 * - + col2 FROM tab1 AS cor0
----
-3545
-4739
-9326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3359
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT + 26 AS col1, ( 91 ) AS col2 FROM tab0
----
26
91
26
91
26
91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= col0 + + col2 * col0 * - col0
----

query III rowsort
SELECT - col2 AS col2, + 89, - 49 AS col2 FROM tab2
----
9 values hashing to 12c81246ba27d5cdc2e8ac02138921da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * + + col2 col1 FROM tab2
----
-1679
-2920
-4234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT + + col2 FROM tab0 WHERE NOT - - 56 = - ( - CAST( col1 AS SIGNED ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3364
SELECT + + col2 FROM tab0 WHERE NOT - - 56 = - ( - CAST ( col1 AS INTEGER ) )
----
10
47
99

query I rowsort
SELECT + 40 * - - col0 AS col1 FROM tab0
----
3480
3880
600

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT 86 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3366
SELECT 86 / + col1 FROM tab2
----
1
1
1

query II rowsort
SELECT ALL 59 * col2, col2 FROM tab2
----
1357
23
2360
40
3422
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT + col1 * + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT + col1 * + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 * + + col1 col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-100
-231
-3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83, 51 col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to d5019310f2eb96ee7ed312e44ebd3e82

query I rowsort
SELECT DISTINCT + - 6 + + col1 * + col2 + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
193
235
3929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col2 + - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 >= - - col2 * - col0 - + 31
----

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT + col2 DIV - - 98 * 69 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-3375
SELECT + col2 / - - 98 * 69 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - + 59 ) + - + col1 + + + col0 + + + col0 AS col1 FROM tab1 AS cor0
----
106
29
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 + - 99 col1 FROM tab2 AS cor0
----
-79
-79
-79

query I rowsort
SELECT - - 53 + - 25 AS col0 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT - col2 + - ( + col2 ) - + 50 AS col1 FROM tab0
----
-144
-248
-70

query III rowsort
SELECT ALL * FROM tab0 WHERE + 12 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL - ( - ( - - 63 ) ) + - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - ( - ( - - 63 ) ) + - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 * + 47 + - col1 col0 FROM tab2 AS cor0
----
3401
3411
3427

query I rowsort
SELECT DISTINCT - 38 * - col0 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + ( - COUNT( * ) ) - - 41 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3385
SELECT + ( - COUNT ( * ) ) - - 41 FROM tab2 AS cor0
----
38

query II rowsort
SELECT ALL - 62 AS col1, - 22 AS col2 FROM tab2 cor0
----
-62
-22
-62
-22
-62
-22

query I rowsort
SELECT DISTINCT - 90 FROM tab2 WHERE NOT - col1 * - col1 * + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL + - COUNT( DISTINCT + ( col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + - COUNT ( DISTINCT + ( col2 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

query II rowsort
SELECT + ( + - col2 ) AS col0, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( - col0 ) > - col2 + + + 44 * - - ( col1 ) * - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 5 * + col1 + - 10 >= + 75 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 * + ( 22 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL - CAST( + MIN( ALL + col2 ) AS SIGNED ) * - - COUNT( DISTINCT - 36 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - CAST ( + MIN ( ALL + col2 ) AS INTEGER ) * - - COUNT ( DISTINCT - 36 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT + col1 * + 9 AS col2 FROM tab2
----
459
603
693

query I rowsort
SELECT - - col1 * + - col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + + 68 * - MIN( DISTINCT - + col2 ) * + COUNT( * ) FROM tab2 AS cor0
----
11832

skipif mysql # not compatible
query I rowsort label-3397
SELECT + + 68 * - MIN ( DISTINCT - + col2 ) * + COUNT ( * ) FROM tab2 AS cor0
----
11832

query I rowsort
SELECT DISTINCT + 95 * + 43 FROM tab1 AS cor0
----
4085

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL - MIN( + + 3 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - MIN ( + + 3 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + - 44 * 63 + - - ( col2 ) + - + 54 FROM tab0 AS cor0
----
-2727
-2779
-2816

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT 40 DIV + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3402
SELECT 40 / + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 16 * - col1 FROM tab1 AS cor0
----
-224
-752
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT - - CAST( NULL AS SIGNED ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT - - CAST ( NULL AS INTEGER ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT DISTINCT + col1 DIV + col0 + + + col2 AS col0 FROM tab2 AS cor0
----
24
41
58

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + col1 / + col0 + + + col2 AS col0 FROM tab2 AS cor0
----
24
41
58

query I rowsort
SELECT ( - AVG ( ALL - + col0 ) ) FROM tab1 WHERE - col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT COUNT( * ) * - COUNT( + - col2 ), - 21 AS col0 FROM tab2 WHERE - + 48 - - 36 NOT IN ( col1 * col0, - 73 )
----
-9
-21

skipif mysql # not compatible
query II rowsort label-3407
SELECT COUNT ( * ) * - COUNT ( + - col2 ), - 21 AS col0 FROM tab2 WHERE - + 48 - - 36 NOT IN ( col1 * col0, - 73 )
----
-9
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3408
SELECT DISTINCT * FROM tab1 WHERE NOT + - 71 * + + CAST( - 34 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3408
SELECT DISTINCT * FROM tab1 WHERE NOT + - 71 * + + CAST ( - 34 AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3409
SELECT ALL * FROM tab1 WHERE + - col2 NOT IN ( + + CAST( NULL AS SIGNED ), - 49, + col0 )
----

skipif mysql # not compatible
query III rowsort label-3409
SELECT ALL * FROM tab1 WHERE + - col2 NOT IN ( + + CAST ( NULL AS INTEGER ), - 49, + col0 )
----

query I rowsort
SELECT DISTINCT - col1 + + - 30 AS col0 FROM tab2
----
-107
-81
-97

query I rowsort
SELECT + col0 + 35 AS col0 FROM tab1
----
120
126
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT ALL - col1 DIV + col2 + ( - + 73 ) FROM tab1
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - col1 / + col2 + ( - + 73 ) FROM tab1
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT COUNT( * ) - - + 9 AS col1 FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT COUNT ( * ) - - + 9 AS col1 FROM tab1 cor0
----
12

query I rowsort
SELECT ALL + + 97 - + col2 - + col1 + - col0 AS col2 FROM tab0 cor0
----
-100
-21
-46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - 65 * col2 * + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT MIN( + col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT MIN ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT + col1 DIV - ( + 3 ) AS col0 FROM tab0 cor0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT + col1 / - ( + 3 ) AS col0 FROM tab0 cor0
----
-27
-7
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT DISTINCT - SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + - 30, col2 AS col1 FROM tab0 AS cor0
----
-30
10
-30
47
-30
99

query I rowsort
SELECT DISTINCT + col0 * + + col1 FROM tab0 cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - col1 )
----

query I rowsort
SELECT - + 5 AS col1 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - 79 * - 60 FROM tab0
----
4740
4740
4740

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT ALL + SUM( + - 26 ) AS col0, 12 FROM tab2
----
-78
12

skipif mysql # not compatible
query II rowsort label-3424
SELECT ALL + SUM ( + - 26 ) AS col0, 12 FROM tab2
----
-78
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3425
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( + 5 AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-3425
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( + 5 AS INTEGER ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT - MIN( + 9 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3426
SELECT - MIN ( + 9 ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT ALL SUM( 57 ) + COUNT( * ) AS col1, + MAX( + - col2 ) FROM tab0
----
174
-10

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL SUM ( 57 ) + COUNT ( * ) AS col1, + MAX ( + - col2 ) FROM tab0
----
174
-10

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 75 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > - 61 * - col1 + + ( - - ( + col0 ) ) + 22 * - - col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL 59 * + CAST( + + ( col1 ) AS SIGNED ) * - col0 + ( - - col2 ) FROM tab1 AS cor0
----
-25016
-252275
-42030

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL 59 * + CAST ( + + ( col1 ) AS INTEGER ) * - col0 + ( - - col2 ) FROM tab1 AS cor0
----
-25016
-252275
-42030

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3431
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( ( + col0 ) AS SIGNED ) * - 65 = + 62 * - - col2
----

skipif mysql # not compatible
query III rowsort label-3431
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( ( + col0 ) AS INTEGER ) * - 65 = + 62 * - - col2
----

query I rowsort
SELECT + - col1 + - 76 + + col0 AS col2 FROM tab0 AS cor0
----
-10
-142
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL + CAST( NULL AS SIGNED ) + - 72 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + CAST ( NULL AS INTEGER ) + - 72 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + - COUNT( * ) + - + ( - ( - 77 ) ) AS col0 FROM tab1 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3434
SELECT + - COUNT ( * ) + - + ( - ( - 77 ) ) AS col0 FROM tab1 cor0
----
-80

query I rowsort
SELECT ALL + 74 * + ( + 14 ) * - ( - col1 ) FROM tab1 AS cor0
----
14504
48692
5180

query I rowsort
SELECT - - 80 AS col0 FROM tab0 WHERE NULL IS NULL
----
80
80
80

query I rowsort
SELECT col2 * col1 + - 83 AS col1 FROM tab1
----
1261
212
3113

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - SUM( ALL - - col0 ) * - COUNT( * ) * + - 66 + - 94 AS col0 FROM tab2
----
-36724

skipif mysql # not compatible
query I rowsort label-3438
SELECT - SUM ( ALL - - col0 ) * - COUNT ( * ) * + - 66 + - 94 AS col0 FROM tab2
----
-36724

query II rowsort
SELECT - 1 AS col1, + col2 + + col1 AS col1 FROM tab0
----
-1
100
-1
128
-1
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT ALL - 89 DIV + ( - col0 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL - 89 / + ( - col0 ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT MIN( ALL + col0 ) AS col2 FROM tab1 WHERE - + col1 * - + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT MIN ( ALL + col0 ) AS col2 FROM tab1 WHERE - + col1 * - + col2 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3442
SELECT - 25 - + col1 + + - ( col1 ) col2, col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-119
1
-35
1
-53
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3442
SELECT - 25 - + col1 + + - ( col1 ) col2, col2 / col2 AS col2 FROM tab1 AS cor0
----
-119
1
-35
1
-53
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, + 79 FROM tab1 AS cor0
----
59
79
68
79
96
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT MIN( + + ( - col0 ) ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-3444
SELECT MIN ( + + ( - col0 ) ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT 63 + - 84 + + 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 5 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT 39 * + COUNT( * ) + 45 + + AVG ( ALL CAST( NULL AS SIGNED ) ) + - 43 - + 89 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT 39 * + COUNT ( * ) + 45 + + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - 43 - + 89 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 20 + + col0 FROM tab2 WHERE - col0 * col1 * 71 IS NULL
----

query I rowsort
SELECT 99 * + col1 * - + col0 AS col1 FROM tab1
----
-42075
-423423
-70686

query I rowsort
SELECT DISTINCT - col2 * - col2 * 11 FROM tab2
----
17600
37004
5819

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT - SUM( - - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - SUM ( - - col1 ) FROM tab1
----
-66

query II rowsort
SELECT col1 AS col0, col1 + + col1 + - col0 FROM tab0
----
1
-95
21
-45
81
147

query I rowsort
SELECT DISTINCT - ( + - 12 ) AS col0 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3455
SELECT DISTINCT MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) * - SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3456
SELECT ALL * FROM tab1 WHERE ( 26 / - col0 ) <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3456
SELECT ALL * FROM tab1 WHERE ( 26 / - col0 ) <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL - col0 - col1 / + col0 AS col2 FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - 86 * + 55 AS col1 FROM tab0
----
-4730
-4730
-4730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT ALL CAST( - col1 AS SIGNED ) + - col0 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL CAST ( - col1 AS INTEGER ) + - col0 FROM tab0
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) BETWEEN - 19 AND ( 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 31 + col1 FROM tab2
----
108
82
98

query I rowsort
SELECT - col2 * - 76 AS col0 FROM tab0
----
3572
7524
760

query I rowsort
SELECT 52 + 82 AS col2 FROM tab2
----
134
134
134

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 44 + 1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT + col0 DIV 46 + - col1 AS col0 FROM tab1 WHERE NOT col2 * 37 IS NULL
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-3466
SELECT + col0 / 46 + - col1 AS col0 FROM tab1 WHERE NOT col2 * 37 IS NULL
----
-13
-4
-46

query I rowsort
SELECT DISTINCT - col2 - + col1 * - col1 AS col2 FROM tab2
----
2578
4431
5889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 / + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 / + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 + col2 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3470
SELECT + ( - 59 ) DIV - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3470
SELECT + ( - 59 ) / - col0 AS col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col2 FROM tab1 WHERE - 60 IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT - 15 * - 79 AS col0 FROM tab1
----
1185
1185
1185

query I rowsort
SELECT ALL - 79 + - col2 AS col1 FROM tab0
----
-126
-178
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3474
SELECT * FROM tab1 WHERE NOT NULL > ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3474
SELECT * FROM tab1 WHERE NOT NULL > ( + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT col2 * 79 FROM tab2
----
1817
3160
4582

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT col2 DIV - col0 + col2 * + 3 AS col2 FROM tab2
----
120
174
69

skipif mysql # not compatible
query I rowsort label-3476
SELECT col2 / - col0 + col2 * + 3 AS col2 FROM tab2
----
120
174
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT 98 * CAST( col0 * - 29 AS SIGNED ) AS col0 FROM tab0
----
-247254
-275674
-42630

skipif mysql # not compatible
query I rowsort label-3477
SELECT 98 * CAST ( col0 * - 29 AS INTEGER ) AS col0 FROM tab0
----
-247254
-275674
-42630

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL + COUNT( ALL - col0 ) FROM tab1 WHERE - col0 NOT IN ( - col1 + ( col1 + - col0 * 5 ) / col1 )
----
3

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + COUNT ( ALL - col0 ) FROM tab1 WHERE - col0 NOT IN ( - col1 + ( col1 + - col0 * 5 ) / col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT 41 + - COUNT( * ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3479
SELECT 41 + - COUNT ( * ) FROM tab2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL + MAX( + 12 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + MAX ( + 12 ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT 66 * col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3036
4224
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT + ( col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT + ( col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 73 * col2 AS col2 FROM tab1
----
4307
4964
7008

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT DISTINCT + 62 DIV - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + 62 / - col2 FROM tab2
----
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( 62 ) / + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 45 / - 91 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col1 * col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - 49 AS col0 FROM tab1 AS cor0
----
2499
4165
4459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT - CAST( 20 AS SIGNED ) FROM tab2 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-3489
SELECT - CAST ( 20 AS INTEGER ) FROM tab2 AS cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( - 75 ) AS col0 FROM tab1 AS cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3493
SELECT + CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL + COUNT( * ) * - COUNT( ALL 35 ) + - MIN( ALL - col2 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + COUNT ( * ) * - COUNT ( ALL 35 ) + - MIN ( ALL - col2 ) AS col1 FROM tab2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3495
SELECT + 30 DIV + col2 + + col0 FROM tab2
----
47
64
75

skipif mysql # not compatible
query I rowsort label-3495
SELECT + 30 / + col2 + + col0 FROM tab2
----
47
64
75

query III rowsort
SELECT ALL * FROM tab0 WHERE 43 >= col2
----
87
21
10

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT COUNT( * ) + + - 86 AS col0 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-3498
SELECT COUNT ( * ) + + - 86 AS col0 FROM tab2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT - col2 DIV col0 + - 82 FROM tab2
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-3499
SELECT - col2 / col0 + - 82 FROM tab2
----
-82
-82
-82

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col1 + + col1 + ( + col0 + - 15 ) FROM tab1
----
36
70
76

query I rowsort
SELECT DISTINCT + - col1 * - + col0 + col2 AS col0 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT - 18 * + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT - 18 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT COUNT( * ) * + - 97 AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3504
SELECT COUNT ( * ) * + - 97 AS col2 FROM tab0 AS cor0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT ALL + + col1 DIV - 87 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + + col1 / - 87 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT + MAX( DISTINCT col2 ) DIV - 21 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3506
SELECT + MAX ( DISTINCT col2 ) / - 21 FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT ALL 46 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
131
137
97

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL 46 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT COUNT( ALL - 51 ) * - COUNT( * ) AS col0 FROM tab2 WHERE ( - col0 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT COUNT ( ALL - 51 ) * - COUNT ( * ) AS col0 FROM tab2 WHERE ( - col0 < NULL )
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 16 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT ( - 37 ) + + + 41 + + 15 * col1 AS col1 FROM tab1
----
214
709
79

query I rowsort
SELECT + + 30 * col0 + + + ( col1 ) * col1 AS col0 FROM tab2 AS cor0
----
3981
6739
7849

query I rowsort
SELECT + col0 + - + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT DISTINCT - COUNT( * ) AS col0, - 33 AS col1 FROM tab1 AS cor0
----
-3
-33

skipif mysql # not compatible
query II rowsort label-3513
SELECT DISTINCT - COUNT ( * ) AS col0, - 33 AS col1 FROM tab1 AS cor0
----
-3
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 * - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT DISTINCT + MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT + MAX ( + col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT + 88 + + - ( 15 ) >= 90
----
10
47
99

query II rowsort
SELECT - + col0 AS col1, + col1 + 0 - 85 FROM tab2 AS cor0
----
-46
-34
-64
-8
-75
-18

query I rowsort
SELECT col0 * - col2 * - ( - - col2 ) AS col0 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT 0 * + + ( 41 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col0 * - ( + + 67 ) * 37 AS col2 FROM tab2
----
-10783650
-2622782
-6346240

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL + MIN( - + ( - 47 ) ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3522
SELECT ALL + MIN ( - + ( - 47 ) ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT COUNT( ALL + col2 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3523
SELECT COUNT ( ALL + col2 ) col1 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - - 62 AS col2 FROM tab2 AS cor0
----
62

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col0 * - col1 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT + - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3526
SELECT + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( ( - 93 ) ) FROM tab0
----
-93

query I rowsort
SELECT col1 - - 12 FROM tab1 WHERE NOT - + col2 / - 82 BETWEEN ( + - 17 * col2 + - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT - CAST( - 52 AS SIGNED ) FROM tab1 WHERE NOT - 84 NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-3530
SELECT - CAST ( - 52 AS INTEGER ) FROM tab1 WHERE NOT - 84 NOT IN ( col0 )
----

query I rowsort
SELECT ALL - 1 * + col1 * 46 AS col1 FROM tab2
----
-2346
-3082
-3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT + CAST( - col0 AS SIGNED ) * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-3532
SELECT + CAST ( - col0 AS INTEGER ) * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + + MAX( col2 ) * + 58 * - - 54 AS col1 FROM tab2 AS cor0
----
181656

skipif mysql # not compatible
query I rowsort label-3533
SELECT + + MAX ( col2 ) * + 58 * - - 54 AS col1 FROM tab2 AS cor0
----
181656

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 <> 86 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - COUNT( * ) * MIN( 62 ) AS col2 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3535
SELECT - COUNT ( * ) * MIN ( 62 ) AS col2 FROM tab1 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL - - MAX( + - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL - - MAX ( + - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 62 / col2 + 58 AS col2 FROM tab2 cor0 WHERE - 71 * col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 WHERE ( - col0 ) IN ( col1 / col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT 0 * - 70 + - + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT 0 * - 70 + - + COUNT ( * ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( + - col1 / - col0 ) NOT IN ( 59 * 86 * - col0 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * 18 + - ( col0 ) FROM tab0
----
1479
1649
255

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 47 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 21 AS col0 FROM tab1
----
-16
-7
26

query I rowsort
SELECT + 74 - - col0 * ( 84 * - col2 ) AS col1 FROM tab0 WHERE ( + + col1 ) NOT IN ( col2 )
----
-59146
-73006
-806578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3545
SELECT + + CAST( NULL AS SIGNED ) + - 59 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-3545
SELECT + + CAST ( NULL AS INTEGER ) + - 59 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL - SUM( + - col0 ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - SUM ( + - col0 ) AS col2 FROM tab2 cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 7 ) * + - col2 col2 FROM tab1 cor0
----
413
476
672

query III rowsort
SELECT * FROM tab2 WHERE + 96 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT ALL + col2 - - CAST( NULL AS SIGNED ) + - col0 / - 93 / - col0 + + - col0 + col1 * - col2 * 71 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + col2 - - CAST ( NULL AS INTEGER ) + - col0 / - 93 / - col0 + + - col0 + col1 * - col2 * 71 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT - CAST( - 91 AS SIGNED ) FROM tab2 cor0 WHERE ( + col2 * + + col1 + + col1 NOT IN ( - col1 + + 57 ) )
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3550
SELECT - CAST ( - 91 AS INTEGER ) FROM tab2 cor0 WHERE ( + col2 * + + col1 + + col1 NOT IN ( - col1 + + 57 ) )
----
91
91
91

query III rowsort
SELECT * FROM tab0 WHERE NULL > col1 + 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT col2 * CAST( NULL AS SIGNED ) / + 79 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT col2 * CAST ( NULL AS INTEGER ) / + 79 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, - col1 AS col1 FROM tab1
----
51
-14
85
-5
91
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 col2 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT 61 * + + 61 AS col2 FROM tab1
----
3721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3557
SELECT - COUNT( * ) DIV 90 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3557
SELECT - COUNT ( * ) / 90 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col1 - 22 * + col0 + - col1 * + col0 * + col2
----

query II rowsort
SELECT - col1, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3560
SELECT + COUNT( * ) AS col1, 10 FROM tab0 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-3560
SELECT + COUNT ( * ) AS col1, 10 FROM tab0 AS cor0
----
3
10

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NOT ( NULL IS NOT NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 38 >= + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) * 81 col0 FROM tab0 AS cor0 WHERE NOT + 75 = + col1
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col2, + ( + MIN( + col0 ) ) FROM tab2 AS cor0
----
-51
46

skipif mysql # not compatible
query II rowsort label-3565
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col2, + ( + MIN ( + col0 ) ) FROM tab2 AS cor0
----
-51
46

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col1 + + col1 * + - col0 AS col0 FROM tab1
----
-420
-4230
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT col1 + - 82 * 6 + - col2 DIV - + col1 col1 FROM tab2
----
-415
-425
-441

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3568
SELECT col1 + - 82 * 6 + - col2 / - + col1 col1 FROM tab2
----
-415
-425
-441

query I rowsort
SELECT ALL 41 * - col0 + 91 FROM tab1
----
-2000
-3394
-3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT ALL + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) + - ( + 43 ) * ( - 61 ) FROM tab2
----
2646
2663
2681

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 34 + - - 56 FROM tab1
----
90
90
90

query I rowsort
SELECT ALL 57 * - + 69 + + 19 * + 89 AS col2 FROM tab0
----
-2242
-2242
-2242

query I rowsort
SELECT + - 33 * col0 FROM tab0 cor0
----
-2871
-3201
-495

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 25 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 56 col0 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT - + col2 DIV + 69 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT - + col2 / + 69 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 57 - - - col1 FROM tab0
----
-24
36
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT DISTINCT + col0 + col2 - + ( - col1 ) * - CAST( + 3 AS SIGNED ) AS col2 FROM tab0
----
-181
193
34

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT + col0 + col2 - + ( - col1 ) * - CAST ( + 3 AS INTEGER ) AS col2 FROM tab0
----
-181
193
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col1 col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3582
SELECT ALL - CAST( 61 AS SIGNED ) + + - COUNT( * ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL - CAST ( 61 AS INTEGER ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = + 23
----

query I rowsort
SELECT + col2 * + col2 * 85 FROM tab1 AS cor0
----
295885
393040
783360

query I rowsort
SELECT ALL 97 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 - col1 * - - col2 * + - 89 FROM tab1 AS cor0
----
119712
26314
284512

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 6 * + col1 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3589
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN - 49 + - CAST( + + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3589
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN - 49 + - CAST ( + + col0 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT CAST( 74 AS SIGNED ) AS col1 FROM tab1 cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-3590
SELECT CAST ( 74 AS INTEGER ) AS col1 FROM tab1 cor0
----
74
74
74

query I rowsort
SELECT ALL col1 * 61 * + 86 FROM tab0 AS cor0
----
110166
424926
5246

query II rowsort
SELECT + 85 AS col2, 73 FROM tab1 AS cor0
----
85
73
85
73
85
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT - - col2 DIV + 83 + - col0 col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3593
SELECT DISTINCT - - col2 / + 83 + - col0 col1 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT - 67 * 79 AS col1 FROM tab1
----
-5293
-5293
-5293

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 11 ) < col2
----
87
21
10

query II rowsort
SELECT - ( - col2 ) AS col1, col1 * - 57 FROM tab1
----
59
-285
68
-2679
96
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + - col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT - - col0 DIV + - col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3598
SELECT - - col0 / + - col1 FROM tab0 AS cor0
----
-4
-97
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL MIN( DISTINCT - + 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL MIN ( DISTINCT - + 50 ) FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT DISTINCT - 79 AS col2, - COUNT( * ) FROM tab0
----
-79
-3

skipif mysql # not compatible
query II rowsort label-3601
SELECT DISTINCT - 79 AS col2, - COUNT ( * ) FROM tab0
----
-79
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT DISTINCT 2 * - - COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18
9

skipif mysql # not compatible
query II rowsort label-3602
SELECT DISTINCT 2 * - - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18
9

query I rowsort
SELECT + 96 * + col0 AS col2 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3604
SELECT ( MIN( - CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ( MIN ( - CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT + col1 * 59 DIV + 19 + + col0 FROM tab2 cor0
----
204
283
303

skipif mysql # not compatible
query I rowsort label-3605
SELECT + col1 * 59 / + 19 + + col0 FROM tab2 cor0
----
204
283
303

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * col0 + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( + + 48 ) AS col0 FROM tab0 AS cor0
----
-48
-48
-48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> + + col0
----

query I rowsort
SELECT DISTINCT col1 * - ( + + col1 ) AS col2 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= 17
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE col0 IN ( ( 21 ) + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL - COUNT( * ) * - 95 FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - COUNT ( * ) * - 95 FROM tab1 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT SUM( DISTINCT col0 ) col2 FROM tab1 WHERE - 32 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3613
SELECT DISTINCT SUM ( DISTINCT col0 ) col2 FROM tab1 WHERE - 32 IS NULL
----
NULL

query I rowsort
SELECT - col1 + + col1 + + 92 FROM tab2
----
92
92
92

query II rowsort
SELECT - col2 + 27, 18 AS col0 FROM tab0
----
-20
18
-72
18
17
18

query I rowsort
SELECT DISTINCT - 50 FROM tab2 AS cor0 WHERE ( - col0 ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3618
SELECT - + ( CAST( MIN( - 48 ) AS DECIMAL ) ) + COUNT( * ) * - 29 * - - ( 24 ) + + 26 AS col1 FROM tab0 AS cor0 WHERE col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT - + ( CAST ( MIN ( - 48 ) AS REAL ) ) + COUNT ( * ) * - 29 * - - ( 24 ) + + 26 AS col1 FROM tab0 AS cor0 WHERE col2 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 31 BETWEEN NULL AND - - col0 * 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL - 79 + 83 DIV 58 * - - ( + 74 ) FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - 79 + 83 / 58 * - - ( + 74 ) FROM tab2
----
-5
-5
-5

query I rowsort
SELECT - col2 * + 10 FROM tab1 AS cor0
----
-590
-680
-960

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 7 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3623
SELECT ALL - - col2 * 4 * + CAST( NULL AS DECIMAL ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3623
SELECT ALL - - col2 * 4 * + CAST ( NULL AS REAL ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT DISTINCT 78 * + 41 + 65 AS col0, 60 * COUNT( * ) FROM tab2 cor0
----
3263
180

skipif mysql # not compatible
query II rowsort label-3624
SELECT DISTINCT 78 * + 41 + 65 AS col0, 60 * COUNT ( * ) FROM tab2 cor0
----
3263
180

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT - + 43 * + 87 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
11223

skipif mysql # not compatible
query I rowsort label-3626
SELECT - + 43 * + 87 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
11223

query I rowsort
SELECT - + 22 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ( + - COUNT( DISTINCT + + col1 ) ) * + 97 AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-3628
SELECT ( + - COUNT ( DISTINCT + + col1 ) ) * + 97 AS col2 FROM tab0
----
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT 83 AS col0, SUM( + + col0 ) AS col1 FROM tab1
----
83
227

skipif mysql # not compatible
query II rowsort label-3629
SELECT 83 AS col0, SUM ( + + col0 ) AS col1 FROM tab1
----
83
227

query II rowsort
SELECT DISTINCT + col1 AS col0, 1 AS col2 FROM tab1
----
14
1
47
1
5
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col2 * 3 AS col2 FROM tab1
----
51
288
85
177
91
204

query I rowsort
SELECT - 82 * ( + - col2 ) AS col0 FROM tab0
----
3854
8118
820

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3633
SELECT ALL col1, CAST( NULL AS DECIMAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3633
SELECT ALL col1, CAST ( NULL AS REAL ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT DISTINCT + col1 * - - col1 * - - col0 AS col0 FROM tab0
----
38367
97
98415

query II rowsort
SELECT col2 AS col2, + col2 * - ( - + col1 ) FROM tab0
----
10
210
47
3807
99
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <= ( NULL )
----

query I rowsort
SELECT 45 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + - MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3638
SELECT + - MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - + ( + col1 ) + + 54 FROM tab1 AS cor0
----
40
49
7

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + COUNT( * ) + 89 AS col1 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3641
SELECT + COUNT ( * ) + 89 AS col1 FROM tab0 AS cor0
----
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 95 IS NULL
----

query I rowsort
SELECT - + col2 + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-16
-41
0

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( + 85 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT + 68 DIV col2 + + + 24 FROM tab1 AS cor0
----
24
25
25

skipif mysql # not compatible
query I rowsort label-3645
SELECT + 68 / col2 + + + 24 FROM tab1 AS cor0
----
24
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT MAX( ALL - - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT MAX ( ALL - - col0 ) AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT MIN( ALL - col1 ) * MAX( - 21 ) * + + 54 FROM tab1
----
53298

skipif mysql # not compatible
query I rowsort label-3647
SELECT MIN ( ALL - col1 ) * MAX ( - 21 ) * + + 54 FROM tab1
----
53298

query II rowsort
SELECT col2, 87 FROM tab1
----
59
87
68
87
96
87

query I rowsort
SELECT ALL 9 + + col1 AS col1 FROM tab1 cor0
----
14
23
56

query I rowsort
SELECT col0 * - col0 * + - col1 AS col0 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT + col1 - - + 64 * + 63 AS col2 FROM tab0 AS cor0
----
4033
4053
4113

query I rowsort
SELECT - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + col1 > NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT + 53 * - col0 + + + ( - 75 ) * + col2 * col0 AS col2 FROM tab2
----
-195392
-330225
-81788

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IN ( + 65 * col1, col1 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - MAX( ( + col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3655
SELECT - MAX ( ( + col0 ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3656
SELECT ALL + 34 * - COUNT( * ) AS col0, - 28 AS col0 FROM tab2 AS cor0
----
-102
-28

skipif mysql # not compatible
query II rowsort label-3656
SELECT ALL + 34 * - COUNT ( * ) AS col0, - 28 AS col0 FROM tab2 AS cor0
----
-102
-28

query II rowsort
SELECT col2 * + 51 AS col1, + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( 5 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - col2 ) * col2 * + - 20 + + - col0 + + - col2 - - 18 AS col0 FROM tab2 cor0
----
10529
31914
67165

query I rowsort
SELECT 27 AS col0 FROM tab1 cor0 WHERE NOT 57 IS NULL
----
27
27
27

query I rowsort
SELECT - + col1 * 96 FROM tab1 AS cor0
----
-1344
-4512
-480

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 58 + + 14 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3662
SELECT + - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> + CAST( - col2 AS SIGNED ) + 52
----

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> + CAST ( - col2 AS INTEGER ) + 52
----

query I rowsort
SELECT DISTINCT ( + 85 ) FROM tab2
----
85

query I rowsort
SELECT DISTINCT 79 * + - col2 AS col1 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT - col1 * + col1 * col0 AS col1 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT + + col1 * col1 AS col0 FROM tab2 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * col2 * + + col0 col0 FROM tab2
----
102400
174000
42320

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT ALL - 34 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - 34 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( - ( + - col2 ) ) * - col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT + 17 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col2 * + - col0 * + - col1 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL - - ( - - 86 ) FROM tab1 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3674
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - col0 + + - col2 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-3676
SELECT - 27 * COUNT( * ) AS col0, - 87 + - SUM( ALL - + col0 ) FROM tab1 AS cor0
----
-81
140

skipif mysql # not compatible
query II rowsort label-3676
SELECT - 27 * COUNT ( * ) AS col0, - 87 + - SUM ( ALL - + col0 ) FROM tab1 AS cor0
----
-81
140

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT + 1 > col1
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - 59 * - COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
177

skipif mysql # not compatible
query I rowsort label-3678
SELECT - 59 * - COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
177

query II rowsort
SELECT ALL + col0, - col2 AS col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT ALL col0 AS col2, - col1 FROM tab1 cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT ALL - - ( 14 ) FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT ALL 27 + + - 42 AS col1 FROM tab0 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - MAX( + col1 ) - + 92 * - - 34 FROM tab0 AS cor0
----
-3209

skipif mysql # not compatible
query I rowsort label-3683
SELECT - MAX ( + col1 ) - + 92 * - - 34 FROM tab0 AS cor0
----
-3209

query I rowsort
SELECT ALL - 33 * col0 FROM tab2
----
-1518
-2112
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT COUNT( * ) * COUNT( * ) + - - COUNT( * ) + + - 36 AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-3685
SELECT COUNT ( * ) * COUNT ( * ) + - - COUNT ( * ) + + - 36 AS col2 FROM tab1
----
-24

query III rowsort
SELECT * FROM tab2 WHERE col1 + - + 93 + + 0 > + - 29
----
64
77
40
75
67
58

query I rowsort
SELECT + col0 + - col2 * - + 26 FROM tab0
----
1237
2671
347

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT COUNT( * ) + + 86 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-3688
SELECT COUNT ( * ) + + 86 FROM tab2
----
89

query I rowsort
SELECT col0 + - 58 + + - col0 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT ALL + 7 + - col0 FROM tab1
----
-44
-78
-84

query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT MAX( - ( + + col0 ) ) + - 96 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-3692
SELECT MAX ( - ( + + col0 ) ) + - 96 FROM tab0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - MAX( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3693
SELECT - MAX ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - ( 96 ) FROM tab1 WHERE NOT - - 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) BETWEEN - 93 * - col0 AND + col0 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - col0 <> ( ( - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 76 / - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT ALL + 78, + COUNT( * ) col2 FROM tab2 AS cor0
----
78
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3699
SELECT ALL + 78, + COUNT ( * ) col2 FROM tab2 AS cor0
----
78
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3700
SELECT ALL + - CAST( NULL AS DECIMAL ) * COUNT( * ) * 42 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + - CAST ( NULL AS REAL ) * COUNT ( * ) * 42 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT ALL + 67 * + - col1 AS col2 FROM tab1
----
-3149
-335
-938

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE NOT + + col0 > col2
----
-1
-81

query I rowsort
SELECT DISTINCT col2 + + - 94 AS col2 FROM tab0
----
-47
-84
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col0 FROM tab1
----
51
51
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL >= - 77
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3708
SELECT + - col1 + + col1 DIV - - col2 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-3708
SELECT + - col1 + + col1 / - - col2 FROM tab2 AS cor0
----
-49
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT 34 * MIN( ALL - 93 ) - - ( - 80 ) * ( - 66 ) FROM tab1 AS cor0
----
2118

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT 34 * MIN ( ALL - 93 ) - - ( - 80 ) * ( - 66 ) FROM tab1 AS cor0
----
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT - 34 - - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - 34 - - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT ALL + ( 32 ) FROM tab1 AS cor0 WHERE - 20 * + col2 IS NOT NULL
----
32
32
32

query II rowsort
SELECT 73 + 88 + ( ( - - col0 ) ) AS col1, - col2 * + - col1 * + col0 AS col1 FROM tab1 cor0
----
212
68544
246
25075
252
290836

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL SUM( ALL + 41 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL SUM ( ALL + 41 ) FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT 7 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3714
SELECT 7 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT col0 DIV - 77 + + ( - + col2 ) * col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NULL )
----
-1344
-296
-3197

skipif mysql # not compatible
query I rowsort label-3715
SELECT col0 / - 77 + + ( - + col2 ) * col1 FROM tab1 AS cor0 WHERE ( NOT - col0 IS NULL )
----
-1344
-296
-3197

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > ( + + col1 - - + col1 + + 4 ) )
----

query I rowsort
SELECT ALL - col0 - + col1 * - 3 * - 50 AS col1 FROM tab2 AS cor0
----
-10125
-11614
-7696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3718
SELECT + - ( col2 ) * col2 AS col0, - CAST( NULL AS SIGNED ) * - 92 FROM tab0 AS cor0
----
-100
NULL
-2209
NULL
-9801
NULL

skipif mysql # not compatible
query II rowsort label-3718
SELECT + - ( col2 ) * col2 AS col0, - CAST ( NULL AS INTEGER ) * - 92 FROM tab0 AS cor0
----
-100
NULL
-2209
NULL
-9801
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT 93 DIV - + col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3719
SELECT 93 / - + col2 FROM tab2
----
-1
-2
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT IN ( + - col2 + CAST( + col0 AS SIGNED ) + + col2, + col1, + + col0, - 57 )
----

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT IN ( + - col2 + CAST ( + col0 AS INTEGER ) + + col2, + col1, + + col0, - 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT SUM( 51 ) AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT SUM ( 51 ) AS col2 FROM tab0
----
153

query I rowsort
SELECT - col0 * - 90 * col0 - - col0 AS col1 FROM tab1
----
234141
650335
745381

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 35 * - col0 * col1 - - - col1 * - 5 * col0 col0 FROM tab0
----
-2909
-36369
-54789

query I rowsort
SELECT DISTINCT - - 51 + - + col0 + col0 FROM tab0 AS cor0
----
51

query II rowsort
SELECT + + col0, - 89 FROM tab0 AS cor0
----
15
-89
87
-89
97
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3726
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + ( - - col1 ) BETWEEN NULL AND + col2 - + + 92 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3726
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + ( - - col1 ) BETWEEN NULL AND + col2 - + + 92 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - - col2 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + - 66 * + COUNT( * ) col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3729
SELECT + - 66 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
-198

query I rowsort
SELECT DISTINCT - 23 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3731
SELECT - + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT 82 * - COUNT( * ) * + + CAST( NULL AS SIGNED ) / + - COUNT( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT 82 * - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / + - COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT + - col2 DIV 18 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT + - col2 / 18 / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3734
SELECT + 5 * - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT + 5 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN 2 - + col0 + col0 AND col2 / - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3736
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) + + col2, + col1, col1 )
----

skipif mysql # not compatible
query III rowsort label-3736
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) + + col2, + col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL + 57 + + COUNT( * ) AS col0 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + 57 + + COUNT ( * ) AS col0 FROM tab2
----
60

query I rowsort
SELECT ALL + 13 * + 92 FROM tab2
----
1196
1196
1196

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0, 87 - - - col0 AS col1 FROM tab1
----
51
36
85
2
91
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3741
SELECT CAST( + 6 AS SIGNED ) * col1 * + 66 FROM tab0
----
32076
396
8316

skipif mysql # not compatible
query I rowsort label-3741
SELECT CAST ( + 6 AS INTEGER ) * col1 * + 66 FROM tab0
----
32076
396
8316

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT COUNT( * ) * + 9 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3742
SELECT COUNT ( * ) * + 9 FROM tab2
----
27

query I rowsort
SELECT col0 * + 78 FROM tab0
----
1170
6786
7566

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - - 66
----

query I rowsort
SELECT DISTINCT col0 + + 93 FROM tab0 AS cor0
----
108
180
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT - + 70 * + + CAST( + + col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-29750
-299390
-49980

skipif mysql # not compatible
query I rowsort label-3746
SELECT - + 70 * + + CAST ( + + col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-29750
-299390
-49980

query I rowsort
SELECT ALL - ( - 53 ) AS col0 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT - - 1 + - - col2 AS col2 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT ALL - 26 + + - col0 AS col2 FROM tab2 AS cor0
----
-101
-72
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + + 71 > - col1 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + col0 - 0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT MAX( - - col0 ) + - COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3752
SELECT MAX ( - - col0 ) + - COUNT ( * ) FROM tab2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT CAST( + - col1 AS SIGNED ) * - col1 * - col0 FROM tab2
----
-119646
-336675
-379456

skipif mysql # not compatible
query I rowsort label-3753
SELECT CAST ( + - col1 AS INTEGER ) * - col1 * - col0 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 57 * - + 11 * + 45 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 * + - 35 * + col1 * - col1 + + 71 - - col2 col1 FROM tab0 AS cor0
----
13428531
161892793
336275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 10 + 72 - - + 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT DISTINCT - + col2 * + col0 * - - col0 - CAST( NULL AS SIGNED ) * - col0 * 9 * - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - + col2 * + col0 * - - col0 - CAST ( NULL AS INTEGER ) * - col0 * 9 * - col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 - - col2 * 11 - - col2 AS col0, + col2 FROM tab0 AS cor0
----
1287
99
130
10
611
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL 77 * + COUNT( * ) AS col2 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL 77 * + COUNT ( * ) AS col2 FROM tab0
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT + COUNT( * ) DIV - 68 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT + COUNT ( * ) / - 68 FROM tab2
----
0

query I rowsort
SELECT 62 + - + ( + + col2 ) - col2 * - col0 AS col1 FROM tab0
----
720
922
9566

query I rowsort
SELECT 52 * col0 + + col1 * col1 AS col1 FROM tab2
----
4993
8389
9257

query I rowsort
SELECT - 5 + - ( + 77 ) * + col1 AS col0 FROM tab0
----
-1622
-6242
-82

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT + col0 * + - col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col1 <> + col1
----

query I rowsort
SELECT ALL + 29 * + 78 * col2 * + 54 AS col1 FROM tab1
----
11726208
7206732
8306064

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 / col1 + col0 * - 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT ALL col2 DIV - col2 col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3769
SELECT ALL col2 / - col2 col1 FROM tab1 cor0
----
-1
-1
-1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 28 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT + col0 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT MAX( + col0 ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3773
SELECT MAX ( + col0 ) col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 + col2 FROM tab0 AS cor0
----
-1
98
-21
-11
-81
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3776
SELECT CAST( NULL AS SIGNED ) - COUNT( 83 ), COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3776
SELECT CAST ( NULL AS INTEGER ) - COUNT ( 83 ), COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL 51 * 58 + + COUNT( * ) + + 68 AS col0 FROM tab1 AS cor0
----
3029

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL 51 * 58 + + COUNT ( * ) + + 68 AS col0 FROM tab1 AS cor0
----
3029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col0 FROM tab2
----
28

query II rowsort
SELECT + col1 + + + 45 AS col0, + 87 AS col2 FROM tab0
----
126
87
46
87
66
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3780
SELECT DISTINCT - 10 * - + 21 * - MAX( + - CAST( col0 AS SIGNED ) ) + + 74 AS col1 FROM tab1
----
10784

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - 10 * - + 21 * - MAX ( + - CAST ( col0 AS INTEGER ) ) + + 74 AS col1 FROM tab1
----
10784

query II rowsort
SELECT 9 AS col1, + col1 * + - 33 AS col2 FROM tab2 WHERE NULL < + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 77 + - - col2 col2 FROM tab0 AS cor0
----
-3572
-7524
-760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3783
SELECT ALL 71 - + + COUNT( * ) DIV 75 * - + MIN( DISTINCT + col1 ) * + 41 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL 71 - + + COUNT ( * ) / 75 * - + MIN ( DISTINCT + col1 ) * + 41 FROM tab0 AS cor0
----
71

query I rowsort
SELECT DISTINCT - 65 * col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT - MAX( 4 ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3785
SELECT - MAX ( 4 ) AS col2 FROM tab0 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + - col2 col0 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * 0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - 67 AS col0 FROM tab2 AS cor0
----
-107
-125
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3789
SELECT ALL * FROM tab2 cor0 WHERE col2 * - col0 BETWEEN col0 AND + CAST( + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3789
SELECT ALL * FROM tab2 cor0 WHERE col2 * - col0 BETWEEN col0 AND + CAST ( + col2 AS REAL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN - + 39 AND 35 * + - col1
----

query II rowsort
SELECT 5, - col0 AS col0 FROM tab0 AS cor0
----
5
-15
5
-87
5
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT - COUNT( DISTINCT - + col1 ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT - COUNT ( DISTINCT - + col1 ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 * - - 22 FROM tab2
----
1276
506
880

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT MAX( DISTINCT - ( + col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT MAX ( DISTINCT - ( + col0 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT - + MAX( - + 40 ) AS col0 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT - + MAX ( - + 40 ) AS col0 FROM tab0 AS cor0
----
40

query I rowsort
SELECT - + 63 + + 13 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * + col2 IS NULL
----
1068
1198
132

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT + col1 IN ( 47, col0 * + 50, col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( ( col1 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col1 * - 46
----

query II rowsort
SELECT - col2 * + col1 + - col0 AS col1, col0 AS col0 FROM tab1 cor0
----
-1395
51
-3287
91
-380
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3801
SELECT CAST( NULL AS SIGNED ) / - + ( - col1 ) AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3801
SELECT CAST ( NULL AS INTEGER ) / - + ( - col1 ) AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT DISTINCT - + col1 DIV - - col0 AS col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - + col1 / - - col0 AS col2 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT - 34 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - - 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 62 + col1 FROM tab1
----
109
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + MIN( 83 ) AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-3807
SELECT + MIN ( 83 ) AS col2 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT ALL col2 * ( + CAST( NULL AS SIGNED ) ) + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL col2 * ( + CAST ( NULL AS INTEGER ) ) + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT DISTINCT + - col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) + - - 4 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT + - col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + - - 4 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3810
SELECT * FROM tab0 WHERE - col0 + - + 45 BETWEEN CAST( - col0 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-3810
SELECT * FROM tab0 WHERE - col0 + - + 45 BETWEEN CAST ( - col0 AS INTEGER ) AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 81 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT COUNT( * ) + - + ( + COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT COUNT ( * ) + - + ( + COUNT ( * ) ) FROM tab2
----
0

query I rowsort
SELECT ALL + col2 * - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + - col1
----

query I rowsort
SELECT - 61 - + 13 * + - ( + - col1 ) FROM tab2 AS cor0
----
-1062
-724
-932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT DISTINCT - col2 * + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - col2 * + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <= + - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT MIN( + col2 ) * - + 81 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-14337

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT MIN ( + col2 ) * - + 81 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-14337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3819
SELECT DISTINCT MIN( ALL 54 ) FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT MIN ( ALL 54 ) FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query II rowsort
SELECT ( + col0 ) * 15, 68 * + 64 * + col2 AS col0 FROM tab1
----
1275
256768
1365
295936
765
417792

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT COUNT( * ) * + 77 AS col1 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-3821
SELECT COUNT ( * ) * + 77 AS col1 FROM tab1
----
231

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT COUNT( * ) AS col2, + COUNT( * ) col2 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3822
SELECT COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab2
----
3
3

query I rowsort
SELECT ( 96 ) * + col0 FROM tab0
----
1440
8352
9312

query I rowsort
SELECT - ( + + col2 ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT SUM( col2 ) * - COUNT( + col2 ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-3825
SELECT SUM ( col2 ) * - COUNT ( + col2 ) FROM tab2
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT DISTINCT + CAST( 94 AS SIGNED ) * + col2 * + + col1 / - col2 / + ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + CAST ( 94 AS INTEGER ) * + col2 * + + col1 / - col2 / + ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = 62
----

query II rowsort
SELECT ALL + 77 AS col2, col0 AS col2 FROM tab1 AS cor0
----
77
51
77
85
77
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( + col2, col0 / - + col2, 38 / col2 * + 90 )
----

query II rowsort
SELECT DISTINCT + 92, + col0 FROM tab0 AS cor0
----
92
15
92
87
92
97

query I rowsort
SELECT + + ( col1 ) FROM tab2 WHERE NOT + 88 / + + ( + + 42 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT + MAX( DISTINCT - 38 ) * + 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2888

skipif mysql # not compatible
query I rowsort label-3832
SELECT + MAX ( DISTINCT - 38 ) * + 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2888

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT COUNT( * ) - + + 37 AS col1 FROM tab1, tab1 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3834
SELECT COUNT ( * ) - + + 37 AS col1 FROM tab1, tab1 cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT + 30 DIV + - 82 + - col2 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3835
SELECT + 30 / + - 82 + - col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3836
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 + - 66 BETWEEN NULL AND - 74 * + col0 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3836
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 93 + - 66 BETWEEN NULL AND - 74 * + col0 - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - 83 + - col1 AS col2 FROM tab1 cor0
----
36
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT + ( MAX( - + 34 ) ) FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-34

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + ( MAX ( - + 34 ) ) FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-34

query I rowsort
SELECT + ( - - 13 ) * 69 + col2 FROM tab2 AS cor0
----
920
937
955

query I rowsort
SELECT 80 + - - 16 * + 0 AS col0 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT - - col1 + + - ( col0 ) + col0 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 99 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT + CAST( NULL AS SIGNED ) + 48 + - col1 / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT + CAST ( NULL AS INTEGER ) + 48 + - col1 / col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT 17 + + - COUNT( * ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-3844
SELECT 17 + + - COUNT ( * ) FROM tab1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3845
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) * - MIN( DISTINCT + - 30 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) * - MIN ( DISTINCT + - 30 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 93 >= NULL
----

query I rowsort
SELECT ALL 69 - + col2 AS col1 FROM tab0
----
-30
22
59

query I rowsort
SELECT DISTINCT col0 + 65 AS col0 FROM tab0
----
152
162
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 97 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - 46 * col0, - 74 AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-2346
-74
-3910
-74
-4186
-74

query I rowsort
SELECT ALL col2 - col0 + 61 + + + col0 FROM tab0 AS cor0
----
108
160
71

query II rowsort
SELECT DISTINCT 95, - col2 AS col1 FROM tab0
----
95
-10
95
-47
95
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - COUNT( + col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3854
SELECT - COUNT ( + col0 ) AS col0 FROM tab0 cor0
----
-3

query II rowsort
SELECT + - col2, - 65 AS col2 FROM tab1 AS cor0
----
-59
-65
-68
-65
-96
-65

query II rowsort
SELECT DISTINCT + col2, - 93 FROM tab0 AS cor0
----
10
-93
47
-93
99
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + + COUNT( * ) * 15 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3857
SELECT + + COUNT ( * ) * 15 FROM tab1 AS cor0
----
45

query I rowsort
SELECT 43 * + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1, - col0 AS col1 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query II rowsort
SELECT + col0, + 87 * + col0 AS col2 FROM tab1 AS cor0
----
51
4437
85
7395
91
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL - MIN( ALL + 14 ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL - MIN ( ALL + 14 ) FROM tab1 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL + ( - ( - ( ( + CAST( NULL AS SIGNED ) ) ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + ( - ( - ( ( + CAST ( NULL AS INTEGER ) ) ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT 24 * + MIN( + col0 ) AS col2 FROM tab0
----
360

skipif mysql # not compatible
query I rowsort label-3864
SELECT 24 * + MIN ( + col0 ) AS col2 FROM tab0
----
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 42 col0 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ( - - col2 ) * + 8 * col0 + + col2 AS col0 FROM tab0
----
5687
6970
76923

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3867
SELECT DISTINCT + ( col1 ) AS col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3867
SELECT DISTINCT + ( col1 ) AS col0, CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * - 20 * + 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + - col0 + - + col1 FROM tab2
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + MIN( - 65 ) AS col1 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-3870
SELECT + MIN ( - 65 ) AS col1 FROM tab2
----
-65

query II rowsort
SELECT DISTINCT col2 AS col0, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL + - MIN( - 25 ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + - MIN ( - 25 ) FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT + 27 * ( - COUNT( * ) ) AS col2 FROM tab1 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT + 27 * ( - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 31 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 = + 1
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 - col1 * 22 IS NOT NULL )
----

query I rowsort
SELECT ALL - col0 * col0 * - + col0 AS col1 FROM tab2
----
262144
421875
97336

query I rowsort
SELECT ALL col2 + + 95 FROM tab1
----
154
163
191

query I rowsort
SELECT col0 + - 15 AS col2 FROM tab0
----
0
72
82

query III rowsort
SELECT * FROM tab1 WHERE - 49 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT ALL col2 + col1 + + - col0 * col0 DIV - 35 FROM tab2
----
134
234
285

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL col2 + col1 + + - col0 * col0 / - 35 FROM tab2
----
134
234
285

query I rowsort
SELECT ALL 52 + - - col1 AS col1 FROM tab2
----
103
119
129

query I rowsort
SELECT col0 * - 62 + + - col0 * + col2 AS col0 FROM tab1
----
-10285
-11830
-8058

query II rowsort
SELECT DISTINCT 46 - col0 AS col2, col1 FROM tab0 AS cor0
----
-41
21
-51
1
31
81

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 20 < 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT + COUNT( * ) - - + 41 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3888
SELECT + COUNT ( * ) - - + 41 FROM tab1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3889
SELECT - CAST( - COUNT( * ) AS SIGNED ) - - MIN( DISTINCT - ( col2 ) ) - 54 DIV + + COUNT( * ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-3889
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) - - MIN ( DISTINCT - ( col2 ) ) - 54 / + + COUNT ( * ) FROM tab0
----
-114

query I rowsort
SELECT DISTINCT + ( + 9 ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT ALL + col0 AS col2, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT DISTINCT - CAST( + + 57 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - CAST ( + + 57 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT - SUM( DISTINCT 64 ) FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT - SUM ( DISTINCT 64 ) FROM tab1 cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + + 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT DISTINCT - 69 DIV col1 AS col1 FROM tab0 AS cor0
----
-3
-69
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - 69 / col1 AS col1 FROM tab0 AS cor0
----
-3
-69
0

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, - 16, col1 - + + 35, + col2 + - - col2, 81 )
----

query II rowsort
SELECT - 66, ( + + col1 ) FROM tab1 AS cor0
----
-66
14
-66
47
-66
5

query I rowsort
SELECT - 23 AS col2 FROM tab1 cor0
----
-23
-23
-23

query I rowsort
SELECT + col0 * + 98 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT DISTINCT 3 * - 29 * + col1 FROM tab0
----
-1827
-7047
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3904
SELECT DISTINCT + 11 AS col1, + CAST( NULL AS SIGNED ) * + - col1 FROM tab1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-3904
SELECT DISTINCT + 11 AS col1, + CAST ( NULL AS INTEGER ) * + - col1 FROM tab1
----
11
NULL

query II rowsort
SELECT + 72 AS col0, + col2 FROM tab1
----
72
59
72
68
72
96

query II rowsort
SELECT ALL 50 AS col2, col0 * 3 FROM tab1
----
50
153
50
255
50
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query II rowsort
SELECT col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3910
SELECT ALL ( - 31 ) + - COUNT( * ) + - ( + 29 ) AS col2, + ( + SUM( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-3910
SELECT ALL ( - 31 ) + - COUNT ( * ) + - ( + 29 ) AS col2, + ( + SUM ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
-63
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT 84 DIV MIN( DISTINCT ( + 48 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3911
SELECT 84 / MIN ( DISTINCT ( + 48 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT SUM( + 70 ) FROM tab1 AS cor0 WHERE - ( + - col1 ) * + 83 + col2 = 42 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT SUM ( + 70 ) FROM tab1 AS cor0 WHERE - ( + - col1 ) * + 83 + col2 = 42 * + col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT ALL - COUNT( * ) + 15 DIV + ( - + 63 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - COUNT ( * ) + 15 / + ( - + 63 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3914
SELECT ALL - - 88 * - COUNT( * ) AS col2, SUM( DISTINCT 82 ) AS col0 FROM tab2 AS cor0
----
-264
82

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL - - 88 * - COUNT ( * ) AS col2, SUM ( DISTINCT 82 ) AS col0 FROM tab2 AS cor0
----
-264
82

query I rowsort
SELECT DISTINCT - - 93 * - + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-4839
-7964
-8531

query I rowsort
SELECT - col0 + - + col0 * col2 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - SUM( - - ( col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3917
SELECT - SUM ( - - ( col0 ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT col1 * + - ( + + 76 ) FROM tab2
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT + 59 + - + col2 FROM tab2
----
1
19
36

query II rowsort
SELECT DISTINCT - col1 AS col0, - 71 + col0 + - col1 FROM tab2
----
-51
-76
-67
-63
-77
-84

query I rowsort
SELECT ALL col1 + + - col2 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3922
SELECT DISTINCT + - CAST( NULL AS DECIMAL ), col2 * - 73 + + col1 + + col0 * - col2 * + col1 * + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3922
SELECT DISTINCT + - CAST ( NULL AS REAL ), col2 * - 73 + + col1 + + col0 * - col2 * + col1 * + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 1 * - + col2 + - - col1 * + + col0 * + + col2 FROM tab1
----
25016
290768
68448

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col1 + - col2 AS col2 FROM tab0
----
-1262
-1837
-196

query III rowsort
SELECT * FROM tab2 cor0 WHERE 87 NOT BETWEEN - 50 + + col1 + col2 AND - - 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT DISTINCT + ( + col1 ) DIV + col2 - 50 AS col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT + ( + col1 ) / + col2 - 50 AS col2 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT ALL - 46 - - col0 AS col1 FROM tab0 AS cor0
----
-31
41
51

query I rowsort
SELECT + 14 * + + col2 FROM tab0 cor0
----
1386
140
658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col0 FROM tab1
----
51
85
91

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT + ( SUM( DISTINCT + col1 ) ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3931
SELECT + ( SUM ( DISTINCT + col1 ) ) AS col1 FROM tab2
----
195

query I rowsort
SELECT DISTINCT + 37 FROM tab0 WHERE NOT ( + 32 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - col0 AS col0 FROM tab2 WHERE NOT + 29 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT CAST( NULL AS SIGNED ) + + 26 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT CAST ( NULL AS INTEGER ) + + 26 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - + col2 * - col1 AS col0 FROM tab2
----
1219
3144
3961

onlyif mysql # DIV for integer division: 
query III rowsort label-3936
SELECT ALL * FROM tab1 WHERE ( 49 DIV 6 ) IN ( col1 + 3 )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-3936
SELECT ALL * FROM tab1 WHERE ( 49 / 6 ) IN ( col1 + 3 )
----
85
5
59

query I rowsort
SELECT DISTINCT 28 * + 45 + 43 * + col0 FROM tab1
----
3453
4915
5173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT - 80 + col0 AS col1 FROM tab2 WHERE ( 51 * + CAST( NULL AS SIGNED ) ) > ( - col0 + 97 )
----

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 80 + col0 AS col1 FROM tab2 WHERE ( 51 * + CAST ( NULL AS INTEGER ) ) > ( - col0 + 97 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN col0 + col1 AND + 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <> ( col0 )
----

skipif mysql # not compatible
query I rowsort label-3940
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <> ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3941
SELECT * FROM tab1 WHERE NOT + col1 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3941
SELECT * FROM tab1 WHERE NOT + col1 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3942
SELECT ALL * FROM tab2 WHERE - 55 + 17 * CAST( col0 AS SIGNED ) <> + col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3942
SELECT ALL * FROM tab2 WHERE - 55 + 17 * CAST ( col0 AS INTEGER ) <> + col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + 31 * col1 AS col0 FROM tab1
----
1504
160
448

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT MAX( 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3944
SELECT MAX ( 8 ) FROM tab0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3945
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col1 + col2 * - 78 AS col1 FROM tab1 WHERE NOT ( 50 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( ( 48 ) ) AS col1 FROM tab0
----
-48

query I rowsort
SELECT ALL + col0 / 20 + col0 AS col0 FROM tab2 WHERE NOT - col1 < 45
----

query I rowsort
SELECT - 27 * col0 + + 51 AS col1 FROM tab2
----
-1191
-1677
-1974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 6 * + 96 col0 FROM tab0
----
591
663
673

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 * col0 NOT BETWEEN - col1 * - col1 AND - col0 / col1
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 * col0 NOT BETWEEN - col1 * - col1 AND - col0 / col1
----
0

query I rowsort
SELECT ALL ( 72 ) AS col0 FROM tab0 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - 80 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - col1 * - 74 - + 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT DISTINCT 74 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT 74 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT ALL + col2 * - col1 + 79 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + col2 * - col1 + 79 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + MAX( + 53 ) * - 43 col2 FROM tab1
----
-2279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3957
SELECT + MAX ( + 53 ) * - 43 col2 FROM tab1
----
-2279

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT DISTINCT + col2 DIV 1 + + col2 * - 50 FROM tab2 AS cor0
----
-1127
-1960
-2842

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT + col2 / 1 + + col2 * - 50 FROM tab2 AS cor0
----
-1127
-1960
-2842

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - col0 * + 84 col0 FROM tab1 cor0
----
-4233
-7055
-7553

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3960
SELECT * FROM tab1 AS cor0 WHERE col0 * + col2 + CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query III rowsort label-3960
SELECT * FROM tab1 AS cor0 WHERE col0 * + col2 + CAST ( NULL AS INTEGER ) = - col2
----

query I rowsort
SELECT DISTINCT - - col0 - ( - col1 + col1 ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col2 / col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 11 AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + + col0 * 54 FROM tab2 cor0
----
2484
3456
4050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT + CAST( NULL AS SIGNED ) * col0 - col2 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT + CAST ( NULL AS INTEGER ) * col0 - col2 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + 33 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 33 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT + CAST( NULL AS SIGNED ) + 63 - AVG ( ALL + 6 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT + CAST ( NULL AS INTEGER ) + 63 - AVG ( ALL + 6 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - MIN( col0 ) + + 33 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3968
SELECT - MIN ( col0 ) + + 33 FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 23 col0 FROM tab2
----
69
87
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 + 70 col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
131
131
131

query I rowsort
SELECT - col2 + 5 * + col2 FROM tab0
----
188
396
40

query I rowsort
SELECT ALL 58 + + 54 * col0 FROM tab1
----
2812
4648
4972

query I rowsort
SELECT DISTINCT - col1 - - 40 + + col1 FROM tab0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3974
SELECT COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT + 30 FROM tab2 AS cor0 WHERE NULL IN ( 76 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 + - col0 col1 FROM tab0 AS cor0 WHERE NOT ( 60 + + 96 / - 46 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3977
SELECT - SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL 33 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( ( col0 ) ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3980
SELECT * FROM tab2 WHERE NOT ( NOT ( CAST( NULL AS SIGNED ) ) - 98 / + CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND ( 73 ) )
----

skipif mysql # not compatible
query III rowsort label-3980
SELECT * FROM tab2 WHERE NOT ( NOT ( CAST ( NULL AS INTEGER ) ) - 98 / + CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND ( 73 ) )
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * + col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ( 1 ) * - 30 FROM tab1
----
-30
-30
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT - + CAST( 63 AS SIGNED ) + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-144

skipif mysql # not compatible
query I rowsort label-3983
SELECT - + CAST ( 63 AS INTEGER ) + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3984
SELECT 32 * - + COUNT( * ) DIV - 32 DIV - ( MIN( ALL 5 ) ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3984
SELECT 32 * - + COUNT ( * ) / - 32 / - ( MIN ( ALL 5 ) ) col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL ( + COUNT( * ) ) * - 47 AS col2 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL ( + COUNT ( * ) ) * - 47 AS col2 FROM tab2
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT + 87 DIV - 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-3986
SELECT + 87 / - 69 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT col2 * - col1 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 - 24 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
27
43
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT DISTINCT - 72, + COUNT( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-72
3

skipif mysql # not compatible
query II rowsort label-3990
SELECT DISTINCT - 72, + COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
-72
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3991
SELECT CAST( NULL AS SIGNED ) AS col2, ( + - col2 ) FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-3991
SELECT CAST ( NULL AS INTEGER ) AS col2, ( + - col2 ) FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 29 col0, col1 + col2 FROM tab0 AS cor0
----
29
100
29
128
29
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + COUNT( ALL + col0 ) + + - 10 AS col0 FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3993
SELECT + COUNT ( ALL + col0 ) + + - 10 AS col0 FROM tab0 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT + col2 * - + 87 / + + 22 + - 91 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT + col2 * - + 87 / + + 22 + - 91 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT COUNT( * ) + SUM( 49 ) AS col1 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-3996
SELECT COUNT ( * ) + SUM ( 49 ) AS col1 FROM tab1
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT 77 DIV + col1 + - 52 + + col0 + col0 AS col1 FROM tab0
----
-22
125
219

skipif mysql # not compatible
query I rowsort label-3997
SELECT 77 / + col1 + - 52 + + col0 + col0 AS col1 FROM tab0
----
-22
125
219

query I rowsort
SELECT 70 + - 98 + - col0 * + - col1 - + 72 * col0 AS col1 FROM tab1
----
-2303
-2986
-5723

query I rowsort
SELECT - col1 + - col1 * - - col2 FROM tab2
----
-1224
-3157
-3953

query II rowsort
SELECT col2 + col2 AS col2, - col0 * + col1 FROM tab2
----
116
-5025
46
-2346
80
-4928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + - + col1 col1 FROM tab1
----
18
51
60

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL = + 96
----

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN - + col2 AND - col0 / + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT DISTINCT + col2 DIV 47 + - - 92 * - + 55 col1 FROM tab1 cor0
----
-5058
-5059

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4005
SELECT DISTINCT + col2 / 47 + - - 92 * - + 55 col1 FROM tab1 cor0
----
-5058
-5059

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 * col0 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT MIN( DISTINCT - col2 ) + 53 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT MIN ( DISTINCT - col2 ) + 53 FROM tab1
----
-43

query I rowsort
SELECT ALL - ( col2 ) FROM tab1 WHERE + col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - - 90 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4009
SELECT - - 90 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col2, col1 * - 86 - + 4 )
----

query I rowsort
SELECT DISTINCT + col2 + - - 61 AS col1 FROM tab2 cor0
----
101
119
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT ALL + + 30 DIV COUNT( * ) - + 18 col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4014
SELECT ALL + + 30 / COUNT ( * ) - + 18 col1 FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - + ( COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4015
SELECT - + ( COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT DISTINCT - 67 - - - ( col0 ) - col2 DIV + + col2 FROM tab0 AS cor0
----
-155
-165
-83

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT - 67 - - - ( col0 ) - col2 / + + col2 FROM tab0 AS cor0
----
-155
-165
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT + + COUNT( ALL col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT + + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - ( - col2 ) * col2 * - col1 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT col2 + CAST( NULL AS SIGNED ) / - ( col0 ) FROM tab2 WHERE NOT + + col1 / + ( - + col2 ) NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-4019
SELECT col2 + CAST ( NULL AS INTEGER ) / - ( col0 ) FROM tab2 WHERE NOT + + col1 / + ( - + col2 ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT DISTINCT - - COUNT( * ) col2, 35 col2 FROM tab1 AS cor0
----
3
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4020
SELECT DISTINCT - - COUNT ( * ) col2, 35 col2 FROM tab1 AS cor0
----
3
35

query I rowsort
SELECT - ( + ( - ( - col1 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + 56 <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 91 * col1 * - - 64 FROM tab1
----
-273728
-29120
-81536

query I rowsort
SELECT + col1 * - col1 * 2 - col0 FROM tab2 AS cor0
----
-11922
-5248
-9053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT ALL - + 89 DIV - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL - + 89 / - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ( + + 43 ) * - + MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3483

skipif mysql # not compatible
query I rowsort label-4027
SELECT ( + + 43 ) * - + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 76 col2 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4029
SELECT + 11 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4029
SELECT + 11 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( - + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - col1 * - + col1 * + + col2 * 43 AS col1 FROM tab1
----
63425
6459116
809088

query I rowsort
SELECT DISTINCT + 46 + + ( col2 ) AS col2 FROM tab2 WHERE - col0 BETWEEN ( + 84 * + col2 + - 34 + + col2 ) AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= - - 59 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 / col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 92 AS col0, + col1 * - - col2 + - - col1 FROM tab1
----
-92
1358
-92
300
-92
3243

query I rowsort
SELECT + col2 FROM tab2 WHERE - 12 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - col2 + + col2 + + col0 * - col2 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + col1 + + + col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( + col2 ) * + col2 + col0 * - col1 * ( - col1 ) + + 39 AS col1 FROM tab2 AS cor0 WHERE NOT 71 * + 59 > NULL
----

query I rowsort
SELECT DISTINCT col1 - 40 AS col1 FROM tab1
----
-26
-35
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query IIIIII rowsort label-4042
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4042
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT + 1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT - 48 DIV + 89 - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4044
SELECT - 48 / + 89 - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - - 73 - - 88 AS col2 FROM tab2 cor0
----
161
161
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - - col1 * - col1 + - col0 col0 FROM tab0 AS cor0
----
-549
-6657
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL - ( + ( - COUNT( * ) ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4047
SELECT ALL - ( + ( - COUNT ( * ) ) ) col0 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 29 * + + col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN + 51 AND + col0 + - + col0 + + 88 + - 14
----
1682
667

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL + CAST( NULL AS SIGNED ) - + + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + CAST ( NULL AS INTEGER ) - + + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 > ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, + col2 * - 47 AS col1 FROM tab2
----
46
-1081
64
-1880
75
-2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT - 26 * - COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - 26 * - COUNT ( * ) FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - 28 * 65 * - - MIN( ALL - col1 ) / - ( + COUNT( * ) ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT - 28 * 65 * - - MIN ( ALL - col1 ) / - ( + COUNT ( * ) ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT - MAX( col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT - MAX ( col0 ) FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col1, + ( col2 ) + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 + - 98 col1 FROM tab1 cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4060
SELECT ALL - col1, + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL - col1, + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT ( - 77 ) FROM tab1 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + + MAX( 26 ) FROM tab2 cor0 WHERE ( NULL ) < + col2 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT + + MAX ( 26 ) FROM tab2 cor0 WHERE ( NULL ) < + col2 + + 36
----
NULL

query I rowsort
SELECT 1 + - col1 * - col2 FROM tab2 AS cor0
----
1174
3081
3887

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - - COUNT( * ) + - + SUM( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-4065
SELECT - - COUNT ( * ) + - + SUM ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
202

query II rowsort
SELECT DISTINCT col1 * col2 * - col2 AS col1, + 95 + - col1 FROM tab2
----
-123200
18
-225388
28
-26979
44

query I rowsort
SELECT DISTINCT col2 * - - ( + 41 ) + - - col0 FROM tab2
----
1704
2453
989

query I rowsort
SELECT ( col1 ) + + + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + 90 + - 51 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL + 17 FROM tab2 WHERE NOT - - col2 + - col0 BETWEEN - 7 AND NULL
----
17
17
17

query I rowsort
SELECT + 38 + + - ( + + 90 ) AS col2 FROM tab1
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 IN ( + 84 + + 90 - - col1 * 40, - 81, + 79 * + col1 )
----

query I rowsort
SELECT ALL + col0 + col1 + - + col2 AS col1 FROM tab0
----
-1
49
98

query I rowsort
SELECT ALL 85 + 5 + - col2 + + 68 * + col0 * + - col0 * + 99 * + - 16 AS col0 FROM tab2
----
227918659
441188402
605880032

query I rowsort
SELECT DISTINCT + 60 / - - col2 + 66 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 + + + 60 * + col0 col2 FROM tab2 AS cor0
----
2765
3853
4492

query II rowsort
SELECT + 60 AS col2, ( - 44 ) FROM tab0 WHERE + 88 IS NULL
----

query I rowsort
SELECT + ( - 15 ) * - + col0 AS col0 FROM tab0 AS cor0
----
1305
1455
225

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE 36 * - col1 * 51 = - col0
----

query I rowsort
SELECT col1 * - 47 FROM tab2 cor0
----
-2397
-3149
-3619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4081
SELECT DISTINCT 82 DIV - + COUNT( * ) col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4081
SELECT DISTINCT 82 / - + COUNT ( * ) col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT + + 25 AS col2 FROM tab0 cor0
----
25
25
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + 79 NOT IN ( + + col0 * 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL - MIN( ALL ( + - ( - col1 ) ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - MIN ( ALL ( + - ( - col1 ) ) ) AS col0 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4085
SELECT DISTINCT + MIN( DISTINCT 98 ) AS col2, 96 FROM tab1
----
98
96

skipif mysql # not compatible
query II rowsort label-4085
SELECT DISTINCT + MIN ( DISTINCT 98 ) AS col2, 96 FROM tab1
----
98
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - COUNT( - + 11 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4086
SELECT - COUNT ( - + 11 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT + 16 * + - col1 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT ( COUNT( ALL - 26 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT ( COUNT ( ALL - 26 ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) * col0 * col2 col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT - SUM( col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4090
SELECT - SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + - col2 ) + col1 <> + col1 + - - ( - ( - 86 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT + MIN( - col2 ) col1 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4092
SELECT DISTINCT + MIN ( - col2 ) col1 FROM tab1
----
-96

query II rowsort
SELECT - col0 AS col2, col1 + col2 FROM tab0 AS cor0
----
-15
128
-87
31
-97
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT + CAST( 90 AS SIGNED ) * + ( - + MAX( ALL - ( + + 28 ) ) ) * - COUNT( * ) + - ( - - SUM( DISTINCT + - col1 ) ) + + 67 AS col0 FROM tab0 AS cor0
----
-7390

skipif mysql # not compatible
query I rowsort label-4094
SELECT + CAST ( 90 AS INTEGER ) * + ( - + MAX ( ALL - ( + + 28 ) ) ) * - COUNT ( * ) + - ( - - SUM ( DISTINCT + - col1 ) ) + + 67 AS col0 FROM tab0 AS cor0
----
-7390

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + COUNT( 37 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4095
SELECT + COUNT ( 37 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL - + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL ( - + SUM( - col0 ) ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL ( - + SUM ( - col0 ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-681

query I rowsort
SELECT col2 + - ( col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4099
SELECT - col0 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4099
SELECT - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT 87 + + 43 AS col1 FROM tab0
----
130
130
130

query I rowsort
SELECT 28 + + + 31 FROM tab0
----
59
59
59

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) IS NULL AND + 66 IS NULL
----

query I rowsort
SELECT ALL 42 * col1 + + 37 - + - col2 FROM tab1
----
2079
306
721

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4104
SELECT - CAST( NULL AS DECIMAL ) * + - col1 * - 71 + col1 / + col1 - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT - CAST ( NULL AS REAL ) * + - col1 * - 71 + col1 / + col1 - - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - + - col0 AS col2 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4106
SELECT DISTINCT - + col0 + - + col1 AS col1, - 82 FROM tab2 cor0 WHERE CAST( - 8 AS SIGNED ) IN ( + col2, + col2 * + + col2, + - 73 )
----

skipif mysql # not compatible
query II rowsort label-4106
SELECT DISTINCT - + col0 + - + col1 AS col1, - 82 FROM tab2 cor0 WHERE CAST ( - 8 AS INTEGER ) IN ( + col2, + col2 * + + col2, + - 73 )
----

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT + - COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + - COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4109
SELECT - 86 AS col1, ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + - col1 BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query II rowsort label-4109
SELECT - 86 AS col1, ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + - col1 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT - - 60 * + 56 * ( + ( - COUNT( * ) ) ) FROM tab2 cor0
----
-10080

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - - 60 * + 56 * ( + ( - COUNT ( * ) ) ) FROM tab2 cor0
----
-10080

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 71 FROM tab0 AS cor0 WHERE + 34 IS NULL
----

query I rowsort
SELECT ALL + 52 * - - col1 FROM tab1
----
2444
260
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL + + MIN( ALL 46 ) + - ( - SUM( - - col1 ) ) FROM tab1 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL + + MIN ( ALL 46 ) + - ( - SUM ( - - col1 ) ) FROM tab1 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) BETWEEN - - col0 AND + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND NULL )
----
0

query II rowsort
SELECT ALL + 35 AS col2, col1 FROM tab0
----
35
1
35
21
35
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4118
SELECT col0 AS col0, 24 DIV + 21 + + col0 - - - 1 + col2 AS col1 FROM tab1
----
51
147
85
144
91
159

skipif mysql # not compatible
query II rowsort label-4118
SELECT col0 AS col0, 24 / + 21 + + col0 - - - 1 + col2 AS col1 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT MIN( 95 ) AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4119
SELECT MIN ( 95 ) AS col0 FROM tab0
----
95

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 58 <= - ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < - col0 * 96
----

query I rowsort
SELECT DISTINCT - 0 * - 37 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT COUNT( * ) * - MIN( ALL - + 58 ) AS col0 FROM tab2 AS cor0 WHERE col2 + + - col0 / col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT COUNT ( * ) * - MIN ( ALL - + 58 ) AS col0 FROM tab2 AS cor0 WHERE col2 + + - col0 / col0 IS NULL
----
NULL

query I rowsort
SELECT + 25 * 58 * + col0 FROM tab0
----
126150
140650
21750

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 43 AND ( - col2 * - col1 + + col0 )
----

query I rowsort
SELECT DISTINCT - - ( ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - COUNT( * ) + + MIN( ALL + - col0 ) col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4127
SELECT ALL - COUNT ( * ) + + MIN ( ALL + - col0 ) col2 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT + + col0 * + + col1 + + ( - col1 ) + - col1 FROM tab2 AS cor0
----
2244
4774
4891

query I rowsort
SELECT DISTINCT + - 49 AS col1 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT col1 + - col1 + + col0 * col1 + - + 69 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
356
4208
645

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4131
SELECT CAST( NULL AS DECIMAL ) + col1 AS col2, 58 + + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
NULL
-23
NULL
37
NULL
57

skipif mysql # not compatible
query II rowsort label-4131
SELECT CAST ( NULL AS REAL ) + col1 AS col2, 58 + + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
NULL
-23
NULL
37
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + - COUNT( * ) * 34 * COUNT( * ) * 94 col1 FROM tab2 AS cor0
----
-28764

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4132
SELECT + - COUNT ( * ) * 34 * COUNT ( * ) * 94 col1 FROM tab2 AS cor0
----
-28764

query I rowsort
SELECT ALL - 35 * - + 33 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
1155
1155
1155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 + + col0 col0 FROM tab2
----
-23
-34
-52

query I rowsort
SELECT - col1 * + 34 FROM tab2
----
-1734
-2278
-2618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL + col2 * - 98 + CAST( 88 AS SIGNED ) * col1 + - col1 FROM tab1
----
-2575
-5347
-8190

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + col2 * - 98 + CAST ( 88 AS INTEGER ) * col1 + - col1 FROM tab1
----
-2575
-5347
-8190

query I rowsort
SELECT + 59 * - - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 97 + - 76 AS col2 FROM tab0
----
-173
-173
-173

query I rowsort
SELECT ALL 64 * + - col0 * + col1 FROM tab1
----
-27200
-273728
-45696

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT ALL + COUNT( * ) col0, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4142
SELECT ALL + COUNT ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3

query II rowsort
SELECT ( - + col1 ) AS col0, + 20 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( + - 12 ) FROM tab0 AS cor0
----
12
12
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4145
SELECT + CAST( NULL AS DECIMAL ) * - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT + CAST ( NULL AS REAL ) * - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 + 65 FROM tab1 cor0
----
-51
79
-85
70
-91
112

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4148
SELECT + - CAST( NULL AS SIGNED ) + + ( - CAST( - col1 AS DECIMAL ) ) AS col1 FROM tab0 WHERE NOT - - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-4148
SELECT + - CAST ( NULL AS INTEGER ) + + ( - CAST ( - col1 AS REAL ) ) AS col1 FROM tab0 WHERE NOT - - col2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 75 / 1 >= - col0 * + - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - + col2 * col2 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL + SUM( ALL col1 ) * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + SUM ( ALL col1 ) * COUNT ( * ) FROM tab1
----
198

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 + - + 69 + - + col0 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 65 * - col1 FROM tab1
----
3055
325
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT COUNT( DISTINCT - 98 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT COUNT ( DISTINCT - 98 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL 81 * 29 * - COUNT( * ) + + + 36 AS col1 FROM tab1
----
-7011

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL 81 * 29 * - COUNT ( * ) + + + 36 AS col1 FROM tab1
----
-7011

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + MIN( ALL + col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4156
SELECT + MIN ( ALL + col1 ) col2 FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-4157
SELECT + 38 col2, ( - + 14 ) DIV - 82 FROM tab0 AS cor0
----
38
0
38
0
38
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4157
SELECT + 38 col2, ( - + 14 ) / - 82 FROM tab0 AS cor0
----
38
0
38
0
38
0

query I rowsort
SELECT 74 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
74
74
74

query I rowsort
SELECT ALL - 79 * + col2 * + 50 + + + 40 - col2 * + col1 * + col0 + - - 4 + 0 AS col2 FROM tab0 AS cor0
----
-242711
-400609
-57726

query I rowsort
SELECT DISTINCT - col0 + + 30 FROM tab2 AS cor0
----
-16
-34
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT + 27 + - col1 * + + CAST( + ( - col2 ) AS SIGNED ) + + col0 AS col0 FROM tab2
----
1246
3171
3988

skipif mysql # not compatible
query I rowsort label-4162
SELECT + 27 + - col1 * + + CAST ( + ( - col2 ) AS INTEGER ) + + col0 AS col0 FROM tab2
----
1246
3171
3988

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 61 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT 72 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT 72 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 = + 90
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL > + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT COUNT( * ) + - + 70 AS col1 FROM tab1 WHERE NOT + col2 * + - col0 IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT COUNT ( * ) + - + 70 AS col1 FROM tab1 WHERE NOT + col2 * + - col0 IS NOT NULL
----
-70

query II rowsort
SELECT + col0 + - + ( + - col2 ) * - 3, + 15 AS col2 FROM tab1
----
-113
15
-237
15
-92
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT - CAST( NULL AS SIGNED ) + + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT - CAST ( NULL AS INTEGER ) + + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + 74 AS col0 FROM tab0
----
-7
53
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL + 63 + + MAX( + + 77 ) AS col1 FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL + 63 + + MAX ( + + 77 ) AS col1 FROM tab2
----
140

query I rowsort
SELECT DISTINCT + - 98 + + 65 FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - COUNT( * ) + 16 col2 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4173
SELECT - COUNT ( * ) + 16 col2 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL + MIN( ALL - + 7 ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + MIN ( ALL - + 7 ) AS col0 FROM tab1
----
-7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT IN ( 87 * - col2, 70, - 79 + - col2 )
----

query I rowsort
SELECT DISTINCT + 59 * - 37 FROM tab0
----
-2183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT COUNT( 87 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT COUNT ( 87 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + 71 AS col2 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + col2 * + + col0 + + col1 AS col2 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # DIV for integer division: 
query II rowsort label-4181
SELECT col0, + 70 DIV col0 FROM tab1
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4181
SELECT col0, + 70 / col0 FROM tab1
----
51
1
85
0
91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 37 - col0 * - + col0 AS col0 FROM tab2
----
46
2153
64
4133
75
5662

query I rowsort
SELECT ALL - col0 + + col1 * col2 + - + 68 FROM tab0
----
-66
3724
55

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 / + - col2 + + + 91 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * + + 25 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + - col2 * 56 * + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + - col2 * 56 * + col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT + col1 * - + col0 + - col2 AS col2 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT - ( + COUNT( + + col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - ( + COUNT ( + + col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT MAX( ALL + ( col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4189
SELECT MAX ( ALL + ( col2 ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL 99 + 51 * - 54 AS col2 FROM tab1
----
-2655
-2655
-2655

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT COUNT( - - 35 ) + + 1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT COUNT ( - - 35 ) + + 1 FROM tab0
----
4

query I rowsort
SELECT DISTINCT - + 15 FROM tab2 WHERE NULL IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT + COUNT( * ) + - 47 AS col1 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + COUNT ( * ) + - 47 AS col1 FROM tab0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - 72 col2 FROM tab1 AS cor0
----
-123
-157
-163

query I rowsort
SELECT ALL - 15 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT + COUNT( * ) * + MIN( - - 31 ) col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4196
SELECT DISTINCT + COUNT ( * ) * + MIN ( - - 31 ) col1 FROM tab2 AS cor0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT CAST( NULL AS SIGNED ) * - MIN( ALL + + col2 ) * + COUNT( * ) - + - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4197
SELECT CAST ( NULL AS INTEGER ) * - MIN ( ALL + + col2 ) * + COUNT ( * ) - + - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - - 72 + + SUM( - col1 ) FROM tab0 WHERE NOT - col1 + + 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - - 72 + + SUM ( - col1 ) FROM tab0 WHERE NOT - col1 + + 68 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - 92 ) AS col0 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT ALL col2 + 37 AS col2 FROM tab0
----
136
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COUNT( * ) * - + 38 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-4201
SELECT COUNT ( * ) * - + 38 FROM tab2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT - 84 DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 84 / + col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 + - col2 + - col1 AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4204
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND - 26 BETWEEN - col2 AND - CAST( - + 61 AS SIGNED ) * - - col2
----

skipif mysql # not compatible
query III rowsort label-4204
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL AND - 26 BETWEEN - col2 AND - CAST ( - + 61 AS INTEGER ) * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT COUNT( * ) FROM tab1 WHERE - col0 + + + col2 + + col0 + + col2 / - - 82 * - + col0 * + 10 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT COUNT ( * ) FROM tab1 WHERE - col0 + + + col2 + + col0 + + col2 / - - 82 * - + col0 * + 10 IS NULL
----
0

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - - 95 AS col2 FROM tab0 cor0
----
95
95
95

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE ( + + ( - col1 ) ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + - SUM( + - ( 77 ) ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-4209
SELECT + - SUM ( + - ( 77 ) ) AS col2 FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT ( MAX( DISTINCT + col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT ( MAX ( DISTINCT + col0 ) ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND - + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4212
SELECT - - col2 * + CAST( NULL AS DECIMAL ) * - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT - - col2 * + CAST ( NULL AS REAL ) * - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 11 - col2 + - + 57 - + + 87 * + col2 FROM tab2 WHERE - col1 + + - 83 IS NULL
----

query I rowsort
SELECT ALL + - 95 * col2 FROM tab2 AS cor0
----
-2185
-3800
-5510

query I rowsort
SELECT - col0 * 13 FROM tab2 AS cor0
----
-598
-832
-975

query I rowsort
SELECT ALL 36 * - col2 * - col1 + ( - + 74 ) AS col1 FROM tab2
----
110806
139822
42154

query I rowsort
SELECT ALL - ( + 91 ) + - 79 AS col0 FROM tab1
----
-170
-170
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT + COUNT( * ) + - + 75 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + COUNT ( * ) + - + 75 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT ALL - col2 + - col0 + + + 45 + + col1 - + col2 * - - col2 AS col0 FROM tab2 AS cor0
----
-1582
-3385
-502

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 86 * - col2 * 84 < + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 - - 30 AS col1 FROM tab1 cor0
----
-17
16
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT ALL - col0 DIV + - 11 AS col2 FROM tab0 AS cor0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - col0 / + - 11 AS col2 FROM tab0 AS cor0
----
1
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + ( - + MAX( col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + ( - + MAX ( col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - col0 ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 50 BETWEEN + 44 AND - 6 * + 10 / + 83 + 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - - MIN( - 0 ) FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT - - MIN ( - 0 ) FROM tab2 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT + COUNT( * ) * 63 * COUNT( * ) - - SUM( col0 ) FROM tab2
----
752

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + COUNT ( * ) * 63 * COUNT ( * ) - - SUM ( col0 ) FROM tab2
----
752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT CAST( NULL AS SIGNED ) + + SUM( ALL + + col2 ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT CAST ( NULL AS INTEGER ) + + SUM ( ALL + + col2 ) * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE + + 91 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + 0 * COUNT( * ) + + MIN( DISTINCT - + 16 ) AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-4229
SELECT + 0 * COUNT ( * ) + + MIN ( DISTINCT - + 16 ) AS col0 FROM tab0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT CAST( - - col1 AS SIGNED ) * col2 AS col0 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-4230
SELECT CAST ( - - col1 AS INTEGER ) * col2 AS col0 FROM tab0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col0 - - + 2 + - + col1 < 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( - 89 ) AS col0, 93 FROM tab0 AS cor0
----
-89
93
-89
93
-89
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT 99, COUNT( * ) col0 FROM tab2
----
99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4233
SELECT 99, COUNT ( * ) col0 FROM tab2
----
99
3

query I rowsort
SELECT + ( - 89 ) FROM tab2
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, + 57 col2 FROM tab1
----
-51
57
-85
57
-91
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT MIN( - + col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT MIN ( - + col1 ) AS col0 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4237
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 / - ( CAST( NULL AS SIGNED ) ) * 31 * + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4237
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 / - ( CAST ( NULL AS INTEGER ) ) * 31 * + - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 34
----

query I rowsort
SELECT - col1 + - - col2 AS col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT DISTINCT 25 * - 81 FROM tab2 cor0
----
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - 93 * 32 FROM tab1 AS cor0
----
-2976
-2976
-2976

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4243
SELECT - col2 + col1 DIV + + CAST( col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4243
SELECT - col2 + col1 / + + CAST ( col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ( - col0 ) + ( + col2 ) AS col0 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL - SUM( col1 ) + - - 57 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - SUM ( col1 ) + - - 57 FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 < - - 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 86 + + 44 + col0 FROM tab0 AS cor0
----
145
217
227

onlyif mysql # DIV for integer division: 
query II rowsort label-4249
SELECT ALL col1, - col1 DIV col0 AS col0 FROM tab2
----
51
-1
67
0
77
-1

skipif mysql # not compatible
query II rowsort label-4249
SELECT ALL col1, - col1 / col0 AS col0 FROM tab2
----
51
-1
67
0
77
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4250
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 32 * + 22 + 46 * - 68 * + col1 * col1 * - CAST( NULL AS SIGNED ) + - col0 / col1 * 50 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4250
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 32 * + 22 + 46 * - 68 * + col1 * col1 * - CAST ( NULL AS INTEGER ) + - col0 / col1 * 50 AND NULL
----

query I rowsort
SELECT ALL + col0 + - 6 FROM tab1
----
45
79
85

query III rowsort
SELECT * FROM tab2 cor0 WHERE 61 = + ( + 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + SUM( + 66 ) - - 5 FROM tab0 AS cor0
----
203

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + SUM ( + 66 ) - - 5 FROM tab0 AS cor0
----
203

query II rowsort
SELECT col2 AS col0, col1 + col1 AS col0 FROM tab1 AS cor0
----
59
10
68
94
96
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT DISTINCT + COUNT( * ) + - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + COUNT ( * ) + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL - COUNT( * ) + + MAX( - - 90 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - COUNT ( * ) + + MAX ( - - 90 ) FROM tab0 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT ALL + col1 DIV + 98 - - + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + col1 / + 98 - - + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT MAX( ALL 67 ) FROM tab0 cor0
----
67

skipif mysql # not compatible
query I rowsort label-4258
SELECT MAX ( ALL 67 ) FROM tab0 cor0
----
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - - 29 - ( - col0 ) * - - col2 > + 76 + + - 75 - + - ( - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 - - col1 * - col1 * - col2 AS col1 FROM tab2 AS cor0
----
237120
260304
59800

query I rowsort
SELECT + col1 * + - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL - 94 * ( - 81 ) + - ( - - col0 ) * 26 FROM tab1 AS cor0
----
5248
5404
6288

query I rowsort
SELECT - - ( + - 3 ) FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT 6 + - 0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + 46 * COUNT( * ) FROM tab2, tab2 AS cor0
----
423

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + 46 * COUNT ( * ) FROM tab2, tab2 AS cor0
----
423

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4266
SELECT DISTINCT + col1 * col0, col0 / + 19 / + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1
----
425
NULL
4277
NULL
714
NULL

skipif mysql # not compatible
query II rowsort label-4266
SELECT DISTINCT + col1 * col0, col0 / + 19 / + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1
----
425
NULL
4277
NULL
714
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 12 * - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT col0 / + 52 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4268
SELECT col0 / + 52 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - - col0 < - - 75
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4270
SELECT CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - - col0 < - - 75
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4272
SELECT DISTINCT - + col1 DIV - col2 AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - + col1 / - col2 AS col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT col2 * - - 94 * + + ( - 28 ) FROM tab2 AS cor0
----
-105280
-152656
-60536

query I rowsort
SELECT ( + col0 ) * + + 80 AS col1 FROM tab0 AS cor0
----
1200
6960
7760

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab1 AS cor0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4276
SELECT + ( COUNT( * ) ) col0, + COUNT( * ) * ( - COUNT( * ) ) + + CAST( + 28 AS SIGNED ) AS col2 FROM tab1 cor0
----
3
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4276
SELECT + ( COUNT ( * ) ) col0, + COUNT ( * ) * ( - COUNT ( * ) ) + + CAST ( + 28 AS INTEGER ) AS col2 FROM tab1 cor0
----
3
19

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE - 32 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col2 * + col0
----

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab1 WHERE 69 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4280
SELECT DISTINCT col1 + - col0 DIV col0 AS col0 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT col1 + - col0 / col0 AS col0 FROM tab0
----
0
20
80

query I rowsort
SELECT col2 * + - 93 + 98 FROM tab1
----
-5389
-6226
-8830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT - COUNT( * ) + + - ( - - 75 ) * + - 15 DIV + - COUNT( * ) FROM tab0
----
-378

skipif mysql # not compatible
query I rowsort label-4282
SELECT - COUNT ( * ) + + - ( - - 75 ) * + - 15 / + - COUNT ( * ) FROM tab0
----
-378

query I rowsort
SELECT col2 + - - col1 + - - col1 * - 72 AS col2 FROM tab1
----
-296
-3269
-898

query I rowsort
SELECT - 84 + + 78 AS col0 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT + + 24 + - 63 AS col1 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 + - 85 * - col2 col0, - 1 FROM tab2 cor0
----
1932
-1
3360
-1
4872
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL - COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( 1 IS NULL )
----

query I rowsort
SELECT - col2 - - + 25 FROM tab0
----
-22
-74
15

query I rowsort
SELECT ( col0 ) - - - 72 AS col0 FROM tab0 AS cor0
----
-57
15
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * + col1 + + ( + col0 ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
2443
3224
3683

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NULL <= col2 + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NULL <= col2 + - - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - - ( - - 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL - - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT + 21 * 92 DIV + MAX( ALL + - 39 ) AS col1 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-4296
SELECT + 21 * 92 / + MAX ( ALL + - 39 ) AS col1 FROM tab1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT 18, col0 AS col1 FROM tab1
----
18
51
18
85
18
91

query I rowsort
SELECT DISTINCT col1 * - col1 * + + 85 * - 9 AS col2 FROM tab0
----
337365
5019165
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - 20 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - 20 IS NOT NULL
----

query I rowsort
SELECT + + 65 * col0 * + ( col2 ) FROM tab2 AS cor0
----
166400
282750
68770

query I rowsort
SELECT ALL col0 * + 23 + col0 AS col2 FROM tab1
----
1224
2040
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - 79 * - 25 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd3bf3c60366816ea2352848a1f5fdf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL MAX( CAST( + col2 AS SIGNED ) ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL MAX ( CAST ( + col2 AS INTEGER ) ) FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT + MIN( ALL + - col2 ) + + CAST( + ( - 52 ) AS SIGNED ) col0 FROM tab2 AS cor0
----
-110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4306
SELECT + MIN ( ALL + - col2 ) + + CAST ( + ( - 52 ) AS INTEGER ) col0 FROM tab2 AS cor0
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT DISTINCT + 43 DIV + col2 - - ( + col1 ) DIV + col0 + col2 * + 86 col1 FROM tab2 AS cor0
----
1980
3442
4988

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4307
SELECT DISTINCT + 43 / + col2 - - ( + col1 ) / + col0 + col2 * + 86 col1 FROM tab2 AS cor0
----
1980
3442
4988

query I rowsort
SELECT + - ( - col0 ) + 9 FROM tab0 AS cor0
----
106
24
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL + MAX( ALL 11 ) * - COUNT( * ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + MAX ( ALL 11 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT col1 + - col1 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - COUNT( ALL + + col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - COUNT ( ALL + + col1 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col1 * - 19 - - col0 + col1 FROM tab2 WHERE NULL <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT ALL - 14 DIV col1 + + + col2 FROM tab1
----
57
68
95

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - 14 / col1 + + + col2 FROM tab1
----
57
68
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 62 + + ( - - 1 ) col2 FROM tab2
----
3163
4155
4775

query I rowsort
SELECT DISTINCT + ( - + col2 ) + col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 12 - - col1, col0 FROM tab2 AS cor0
----
39
46
55
75
65
64

query I rowsort
SELECT ALL + - col0 - - col1 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + - col1 + + - col0 - - col1 * 9 * + + col2 * col2 * col0 FROM tab0 AS cor0
----
1644192
24155319
8556175

query I rowsort
SELECT - 79 * col0 * + - 9 + col0 FROM tab1
----
36312
60520
64792

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT MIN( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT MIN ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
15

query II rowsort
SELECT + col1, + 23 * 24 + - 44 AS col2 FROM tab2 AS cor0
----
51
508
67
508
77
508

query I rowsort
SELECT DISTINCT - + col2 + - + col1 AS col0 FROM tab1 cor0 WHERE NULL <= col2 * - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4324
SELECT ALL 14 AS col2, col2 / - CAST( NULL AS SIGNED ) * + col0 + + col1 + - + 2 + col1 * + - col2 + 19 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-4324
SELECT ALL 14 AS col2, col2 / - CAST ( NULL AS INTEGER ) * + col0 + + col1 + - + 2 + col1 * + - col2 + 19 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col1, + col1 * + + col1 col1 FROM tab0 AS cor0
----
1
1
21
441
81
6561

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - + ( + col2 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4328
SELECT ALL + - COUNT( * ), + COUNT( * ) AS col2 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4328
SELECT ALL + - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
-3
3

query I rowsort
SELECT DISTINCT 97 * 3 AS col0 FROM tab2
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col0 FROM tab2
----
84
84
84

query I rowsort
SELECT + col2 * - 2 AS col2 FROM tab1
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4332
SELECT + CAST( NULL AS SIGNED ) * col1, + col2 * - col0 col2 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4332
SELECT + CAST ( NULL AS INTEGER ) * col1, + col2 * - col0 col2 FROM tab1
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 WHERE NOT NULL BETWEEN + + col0 AND col2 + + + col1 * - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 * 91 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4335
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + + col0 <> col2
----

skipif mysql # not compatible
query III rowsort label-4335
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + + col0 <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 <= col0
----
87
21
10

query I rowsort
SELECT - col2 * + + ( col1 ) + 60 FROM tab2 cor0 WHERE NOT 41 < - col1
----
-1113
-3020
-3826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL CAST( NULL AS SIGNED ) * + + col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL CAST ( NULL AS INTEGER ) * + + col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 13 col2 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT DISTINCT + - col0 + + - col2 - + ( col1 ) * + 61 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + - col0 + + - col2 - + ( col1 ) * + 61 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + 73 AS col1 FROM tab1 AS cor0
----
-73

query II rowsort
SELECT + ( - col2 ) * + 12, col2 AS col1 FROM tab2 cor0
----
-276
23
-480
40
-696
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 65 BETWEEN + - col2 * + col2 * - col0 + - col2 * + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 48 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 72 + + + col2 >= NULL
----

query I rowsort
SELECT - 43 + + + col2 AS col1 FROM tab1
----
16
25
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT DISTINCT - col1 * + col2 + - ( + + col2 ) * ( + - col2 ) DIV + 97 + col0 - - - col1 + col0 FROM tab2
----
-1127
-3013
-3769

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT - col1 * + col2 + - ( + + col2 ) * ( + - col2 ) / + 97 + col0 - - - col1 + col0 FROM tab2
----
-1127
-3013
-3769

query III rowsort
SELECT * FROM tab1 WHERE - - col2 - + 57 IS NULL
----

query I rowsort
SELECT - ( - col1 ) + + 98 FROM tab2
----
149
165
175

query I rowsort
SELECT 3 + col2 AS col2 FROM tab0
----
102
13
50

query I rowsort
SELECT ALL 89 + - + col1 FROM tab1
----
42
75
84

query I rowsort
SELECT DISTINCT + col2 - - + col2 AS col1 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL 44 + COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL 44 + COUNT ( * ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - + col2 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) < - col2
----

skipif mysql # not compatible
query I rowsort label-4355
SELECT - + col2 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) < - col2
----

query I rowsort
SELECT DISTINCT + - col2 - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-124
-162
-69

query I rowsort
SELECT DISTINCT - col2 * - 8 AS col0 FROM tab0 AS cor0
----
376
792
80

query I rowsort
SELECT DISTINCT - 2 * - 46 AS col1 FROM tab2 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT 70 - COUNT( * ) col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4359
SELECT 70 - COUNT ( * ) col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT col2 * + - col0 * col1 AS col0 FROM tab0
----
-18270
-57105
-9603

query II rowsort
SELECT col1 * + 95, ( + col2 ) AS col2 FROM tab0
----
1995
10
7695
47
95
99

query I rowsort
SELECT ALL - col0 * + - col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-4363
SELECT col2 * + col0 AS col0, + ( col2 ) DIV + ( 92 ) * + 73 AS col0 FROM tab2 AS cor0
----
1058
0
2560
0
4350
0

skipif mysql # not compatible
query II rowsort label-4363
SELECT col2 * + col0 AS col0, + ( col2 ) / + ( 92 ) * + 73 AS col0 FROM tab2 AS cor0
----
1058
0
2560
0
4350
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE col2 + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 49 col1 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4366
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4366
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col1 * CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col2 * col1, + col0 FROM tab0 cor0
----
-210
87
-3807
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT MIN( col0 ) * - ( - COUNT( * ) ) * + 76 FROM tab1
----
11628

skipif mysql # not compatible
query I rowsort label-4368
SELECT MIN ( col0 ) * - ( - COUNT ( * ) ) * + 76 FROM tab1
----
11628

query I rowsort
SELECT - col1 * 21 AS col2 FROM tab0
----
-1701
-21
-441

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT ALL + - 15, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-15
-3

skipif mysql # not compatible
query II rowsort label-4370
SELECT ALL + - 15, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-15
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4371
SELECT DISTINCT + 62 * col0 * + col2 + + 21 AS col0, + col0 * + col1 + - + 84 DIV + col0 FROM tab0 AS cor0
----
43731
1210
53961
1827
595407
97

skipif mysql # not compatible
query II rowsort label-4371
SELECT DISTINCT + 62 * col0 * + col2 + + 21 AS col0, + col0 * + col1 + - + 84 / + col0 FROM tab0 AS cor0
----
43731
1210
53961
1827
595407
97

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT - COUNT( * ) * 77 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT - COUNT ( * ) * 77 FROM tab1
----
-231

query I rowsort
SELECT DISTINCT - 71 - - col2 FROM tab0 WHERE NOT ( + 74 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + COUNT( * ) * + 55 AS col0 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-4375
SELECT + COUNT ( * ) * + 55 AS col0 FROM tab2
----
165

query I rowsort
SELECT + ( - ( - col2 ) ) * + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + COUNT( * ) * 31 AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4377
SELECT + COUNT ( * ) * 31 AS col1 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT + 4 - - COUNT( * ) col2 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4378
SELECT DISTINCT + 4 - - COUNT ( * ) col2 FROM tab1
----
7

query I rowsort
SELECT + 50 * col1 AS col0 FROM tab1
----
2350
250
700

query I rowsort
SELECT + col2 * - 18 FROM tab2
----
-1044
-414
-720

query I rowsort
SELECT DISTINCT + 14 + col2 FROM tab1
----
110
73
82

query I rowsort
SELECT DISTINCT - 67 FROM tab1 WHERE - col0 * - 99 IN ( - col1 )
----

query I rowsort
SELECT + 26 + + 0 FROM tab1 WHERE NOT 44 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NULL > + col2
----
0

query I rowsort
SELECT col0 * - col0 FROM tab2 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL COUNT( * ) FROM tab0 WHERE col1 * + 5 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL COUNT ( * ) FROM tab0 WHERE col1 * + 5 <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4387
SELECT DISTINCT + 95 AS col0 FROM tab2 WHERE ( col0 - + CAST( NULL AS DECIMAL ) * col2 ) <> - col2
----

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + 95 AS col0 FROM tab2 WHERE ( col0 - + CAST ( NULL AS REAL ) * col2 ) <> - col2
----

query I rowsort
SELECT DISTINCT + 39 + + col0 AS col2 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
124
130
90

query I rowsort
SELECT DISTINCT 53 + + col1 AS col0 FROM tab1
----
100
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT - 64 * - SUM( 8 ) col0 FROM tab2
----
1536

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4390
SELECT - 64 * - SUM ( 8 ) col0 FROM tab2
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT + MIN( DISTINCT 97 ) AS col0 FROM tab2 WHERE 65 * + CAST( NULL AS SIGNED ) IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-4391
SELECT + MIN ( DISTINCT 97 ) AS col0 FROM tab2 WHERE 65 * + CAST ( NULL AS INTEGER ) IS NULL
----
97

query I rowsort
SELECT ALL + 34 FROM tab0 WHERE NOT - 18 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4393
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT + ( col0 ) * - 13 + col1 FROM tab2
----
-547
-755
-908

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT col0 DIV ( - col2 ) + + col2 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-4395
SELECT col0 / ( - col2 ) + + col2 FROM tab1
----
58
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT - col0 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT - col0 IS NULL
----
9

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) <> NULL
----

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab1 WHERE NOT 47 = ( + 19 * col1 )
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 = - col0 + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * 62 FROM tab0
----
5394
6014
930

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) <> ( NULL )
----

query I rowsort
SELECT - col0 + - 0 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT ALL col1 DIV 63 - + 33 AS col2 FROM tab2 WHERE 2 NOT IN ( + col0 * col1 )
----
-32
-32
-33

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL col1 / 63 - + 33 AS col2 FROM tab2 WHERE 2 NOT IN ( + col0 * col1 )
----
-32
-32
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( * ) * COUNT( * ) + - SUM( DISTINCT col2 ) AS col1 FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( * ) * COUNT ( * ) + - SUM ( DISTINCT col2 ) AS col1 FROM tab0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT - 13 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 13 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 - - col0 col1 FROM tab0 AS cor0
----
-354
-6546
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT 74 - - COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT 74 - - COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
77

query I rowsort
SELECT ALL - col2 - + 63 AS col1 FROM tab0 AS cor0
----
-110
-162
-73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 86 <= ( - col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT - ( - col2 ) * - ( 30 ) AS col2 FROM tab1 AS cor0
----
-1770
-2040
-2880

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col0 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + 85 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT - 96 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
-87

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - 96 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4414
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( 82 * - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4414
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( 82 * - CAST ( NULL AS INTEGER ) ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 - ( - 29 + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 29 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT DISTINCT + + CAST( 42 AS SIGNED ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + + CAST ( 42 AS INTEGER ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL + + 28 AS col0 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4420
SELECT + 32 DIV + COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4420
SELECT + 32 / + COUNT ( * ) FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT 32 + 88 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4421
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT 32 + 88 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) IN ( 45 * col1 )
----

query I rowsort
SELECT - 26 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * - col1 * + 3 AS col1 FROM tab1
----
-588
-6627
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT ALL col1 * col0 DIV col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL col1 * col0 / col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + + 20 + - - col2 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT col0 + + 66 + 7 * - 15 FROM tab2 AS cor0
----
25
36
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT DISTINCT - CAST( + - 43 AS SIGNED ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT - CAST ( + - 43 AS INTEGER ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT ALL col2 - col2 * ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 29 * col0 >= + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) BETWEEN col2 / col2 AND ( + CAST( col1 AS SIGNED ) + - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) BETWEEN col2 / col2 AND ( + CAST ( col1 AS INTEGER ) + - 99 )
----
0

query II rowsort
SELECT - col1, col2 * - col2 * col2 AS col0 FROM tab0
----
-1
-970299
-21
-1000
-81
-103823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 38 ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT + 41 / - col0 FROM tab0 WHERE - + 35 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( + 99 ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - MIN( DISTINCT col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4438
SELECT - MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - - col0 * + ( - col1 ) + - col1 * - col2 ) AND ( - col1 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4440
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT ALL - SUM( DISTINCT + - col2 ) + + + ( + COUNT( - CAST( NULL AS SIGNED ) ) ) + + 31 FROM tab2 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - SUM ( DISTINCT + - col2 ) + + + ( + COUNT ( - CAST ( NULL AS INTEGER ) ) ) + + 31 FROM tab2 AS cor0
----
152

query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT col2 - ( + + col0 ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT - - 22 * + col2 - - - col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
1297
1495
2112

skipif mysql # not compatible
query I rowsort label-4444
SELECT - - 22 * + col2 - - - col0 / + col2 AS col2 FROM tab1 AS cor0
----
1297
1495
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col0 FROM tab1 cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT + 43 - col2 AS col1 FROM tab2 cor0
----
-15
20
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 11 NOT IN ( + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT + col2 * + 10 FROM tab1 AS cor0 WHERE 82 * + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-4448
SELECT + col2 * + 10 FROM tab1 AS cor0 WHERE 82 * + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 + - col2 * col1 BETWEEN ( - ( ( col2 ) ) ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT COUNT( * ) AS col0 FROM tab1 WHERE col0 * + col2 + 44 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4450
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE col0 * + col2 + 44 IS NOT NULL
----
3

query I rowsort
SELECT - col0 * - - 22 + - col2 FROM tab1
----
-1218
-1929
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL 84 + - - ( + COUNT( * ) ) + 49 FROM tab1
----
136

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL 84 + - - ( + COUNT ( * ) ) + 49 FROM tab1
----
136

query I rowsort
SELECT col0 + 46 AS col2 FROM tab1
----
131
137
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT - MAX( + col1 ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MAX ( + col1 ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 + - - 79 AS col1 FROM tab0
----
166
176
94

query III rowsort
SELECT * FROM tab0 WHERE 21 NOT BETWEEN col1 + 39 AND + col2 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT COUNT( * ) * 52 AS col1 FROM tab2 WHERE NOT + col2 BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT COUNT ( * ) * 52 AS col1 FROM tab2 WHERE NOT + col2 BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT + + SUM( - 85 ) FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT + + SUM ( - 85 ) FROM tab0 AS cor0
----
-255

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4459
SELECT + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4459
SELECT + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 col0, ( - col0 ) AS col1 FROM tab2 AS cor0
----
8
-46
8
-64
8
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4461
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - - CAST( + - 22 AS SIGNED ) * + + col1 + 30 * - 46 + col2 NOT BETWEEN - 11 + - 61 AND + col1
----

skipif mysql # not compatible
query III rowsort label-4461
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - - CAST ( + - 22 AS INTEGER ) * + + col1 + 30 * - 46 + col2 NOT BETWEEN - 11 + - 61 AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT + 5 AS col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
5
-3

skipif mysql # not compatible
query II rowsort label-4463
SELECT + 5 AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + 55 AND NULL
----

query I rowsort
SELECT col2 + - 49 * + + 24 + col2 AS col0 FROM tab0 AS cor0
----
-1082
-1156
-978

query I rowsort
SELECT 64 * col2 + - 8 FROM tab2 cor0
----
1464
2552
3704

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT - col0 DIV + 26 + - - col2 + - col1 * - col2 * - col2 * col2 AS col1 FROM tab0
----
-20993
-8409616
-970203

skipif mysql # not compatible
query I rowsort label-4467
SELECT - col0 / + 26 + - - col2 + - col1 * - col2 * - col2 * col2 AS col1 FROM tab0
----
-20993
-8409616
-970203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 9 ) AS col1 FROM tab2
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4470
SELECT + col1 AS col2, - CAST( NULL AS SIGNED ) * + 65 + - col0 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4470
SELECT + col1 AS col2, - CAST ( NULL AS INTEGER ) * + 65 + - col0 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT 52 AS col1, 59 AS col1 FROM tab2
----
52
59
52
59
52
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT - 28 + + COUNT( * ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - 28 + + COUNT ( * ) AS col1 FROM tab1
----
-25

query II rowsort
SELECT ALL + 10 AS col2, ( - col1 ) AS col0 FROM tab0
----
10
-1
10
-21
10
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL 41 + - COUNT( * ) * + 26 AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL 41 + - COUNT ( * ) * + 26 AS col1 FROM tab0
----
-37

query I rowsort
SELECT col2 * - col2 * + + ( - col1 ) FROM tab0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab2 WHERE + - col0 BETWEEN - - 81 AND ( + + col2 + - + col0 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4477
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4477
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND CAST ( + + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT DISTINCT + COUNT( * ) col2, 97 * 17 AS col1 FROM tab0 AS cor0
----
3
1649

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4478
SELECT DISTINCT + COUNT ( * ) col2, 97 * 17 AS col1 FROM tab0 AS cor0
----
3
1649

onlyif mysql # DIV for integer division: 
query II rowsort label-4479
SELECT + col1 AS col0, col1 DIV + 16 + + - 46 FROM tab2 AS cor0
----
51
-43
67
-42
77
-42

skipif mysql # not compatible
query II rowsort label-4479
SELECT + col1 AS col0, col1 / + 16 + + - 46 FROM tab2 AS cor0
----
51
-43
67
-42
77
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT MIN( - 91 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT MIN ( - 91 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT - col0 * + CAST( - col0 AS SIGNED ) + - - col0 + 94 FROM tab0 AS cor0
----
334
7750
9600

skipif mysql # not compatible
query I rowsort label-4481
SELECT - col0 * + CAST ( - col0 AS INTEGER ) + - - col0 + 94 FROM tab0 AS cor0
----
334
7750
9600

query II rowsort
SELECT - 49 AS col0, - col2 AS col2 FROM tab0 WHERE NOT - 19 IS NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-4483
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4483
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col0, - 63 + + + col2 )
----

query I rowsort
SELECT col2 + - + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 3 + + - col2 FROM tab0 AS cor0
----
-102
-13
-50

query I rowsort
SELECT col2 + + - col0 - + + col1 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE 50 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4488
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE 50 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL - ( 12 ) - - - 0 AS col1 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT 45 * col2 AS col2 FROM tab0 AS cor0
----
2115
4455
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 68 * - col0 col1, 47 FROM tab1 AS cor0
----
3468
47
5780
47
6188
47

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT MAX( col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4494
SELECT MAX ( col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT + col2 DIV 95 * - 19 FROM tab1 cor0
----
-19
0
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT + col2 / 95 * - 19 FROM tab1 cor0
----
-19
0
0

query II rowsort
SELECT - col0 + - + 0 AS col2, - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT MIN( + 83 ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT MIN ( + 83 ) FROM tab1 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT MAX( - + 43 ) AS col0 FROM tab0, tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT MAX ( - + 43 ) AS col0 FROM tab0, tab0 AS cor0
----
-43

query I rowsort
SELECT - 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NOT - 71 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 87 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - MAX( + col0 ) * + 56 AS col2 FROM tab1 cor0
----
-5096

skipif mysql # not compatible
query I rowsort label-4504
SELECT - MAX ( + col0 ) * + 56 AS col2 FROM tab1 cor0
----
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT - ( - 90 ) DIV - - 5 AS col0 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-4505
SELECT - ( - 90 ) / - - 5 AS col0 FROM tab2 AS cor0
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1, col1, + col0, + col0 * - 31 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL MAX( col2 ) * + 28 AS col0 FROM tab0
----
2772

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL MAX ( col2 ) * + 28 AS col0 FROM tab0
----
2772

query III rowsort
SELECT * FROM tab0 WHERE + - 78 - - ( col1 ) * - 89 * + col2 < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 68 * - col1 + + + col1, - col0 AS col2 FROM tab1
----
-3149
-91
-335
-85
-938
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT ALL 26 DIV col2 + - - col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 26 / col2 + - - col0 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - col1 + + 25 AS col1 FROM tab0
----
-56
24
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT + 84 DIV 66 + + col0 + - + 58 FROM tab0
----
-42
30
40

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 84 / 66 + + col0 + - + 58 FROM tab0
----
-42
30
40

query I rowsort
SELECT + 48 + + - 70 FROM tab1 AS cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 98 col0 FROM tab0 AS cor0
----
113
185
195

query II rowsort
SELECT ALL 68 AS col1, + col0 + + + col1 * col1 + - 18 - - col2 + + 35 AS col2 FROM tab0 AS cor0
----
68
214
68
555
68
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT + 95 - + - COUNT( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + 95 - + - COUNT ( ALL + - col2 ) AS col0 FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL + SUM( + 53 ) - 10 + - MAX( - 32 ) + - COUNT( + 7 ) FROM tab0 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + SUM ( + 53 ) - 10 + - MAX ( - 32 ) + - COUNT ( + 7 ) FROM tab0 AS cor0
----
178

query I rowsort
SELECT DISTINCT - + col2 + + 74 FROM tab0 AS cor0
----
-25
27
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT 80 - + col2 * - + 83 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT 80 - + col2 * - + 83 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - - 77 * - + 14 FROM tab2 AS cor0
----
-1101
-1118
-1136

query I rowsort
SELECT 15 + + - ( + + col0 ) + col0 * - col2 - - 65 FROM tab2 AS cor0
----
-1024
-2544
-4345

query I rowsort
SELECT ALL col1 + + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1122
-3003
-3819

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + 35 NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL 92, col2 AS col1 FROM tab0 AS cor0
----
92
10
92
47
92
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 22 <> ( NULL )
----

query I rowsort
SELECT + col0 * + - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - 74
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT ( - CAST( - - col0 AS SIGNED ) ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4529
SELECT ( - CAST ( - - col0 AS INTEGER ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 81 AS col0 FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT - CAST( NULL AS SIGNED ) / MAX( + - col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT - CAST ( NULL AS INTEGER ) / MAX ( + - col1 ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT + ( col1 ) AS col1, - 92 FROM tab2 AS cor0
----
51
-92
67
-92
77
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = - col2 + - 61
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 < 20 * col2 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT COUNT( + - ( col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT COUNT ( + - ( col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT CAST( NULL AS SIGNED ) * + 7 * CAST( - - col2 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT CAST ( NULL AS INTEGER ) * + 7 * CAST ( - - col2 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 3 * + + ( 48 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 27 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 71 AS col2 FROM tab2 cor0
----
-71

query II rowsort
SELECT DISTINCT + col0, 73 FROM tab1 cor0
----
51
73
85
73
91
73

query I rowsort
SELECT DISTINCT - 59 * + + 98 + - - col1 * col2 AS col1 FROM tab0 AS cor0
----
-1975
-5572
-5683

query I rowsort
SELECT + ( + col1 ) + col1 * col1 FROM tab0 AS cor0
----
2
462
6642

query II rowsort
SELECT DISTINCT - - col1 AS col0, col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT ALL col1 DIV - - 54 + - col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4545
SELECT ALL col1 / - - 54 + - col1 col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ( 68 ), + col1 FROM tab1
----
68
14
68
47
68
5

query II rowsort
SELECT col1 * - - col1 AS col0, col2 FROM tab2
----
2601
23
4489
58
5929
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4548
SELECT + 96 DIV + - CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4548
SELECT + 96 / + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT MIN( ALL col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4549
SELECT MIN ( ALL col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT ALL col2 + + - col0 - + col2 AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4551
SELECT ALL - col0 + - col0 AS col2, ( - CAST( NULL AS SIGNED ) ) + - 80, + - col0 - + - col1 AS col1 FROM tab0
----
9 values hashing to 7c48b74d0ddf3401c72827062b8b4c94

skipif mysql # not compatible
query III rowsort label-4551
SELECT ALL - col0 + - col0 AS col2, ( - CAST ( NULL AS INTEGER ) ) + - 80, + - col0 - + - col1 AS col1 FROM tab0
----
9 values hashing to 7c48b74d0ddf3401c72827062b8b4c94

query I rowsort
SELECT DISTINCT 94 + ( - - col0 ) FROM tab2
----
140
158
169

query I rowsort
SELECT DISTINCT 34 + 60 * - col0 * + ( col2 ) FROM tab2
----
-153566
-260966
-63446

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - 9 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 82 < - - 49 / + + 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT + col1 FROM tab2 WHERE + col1 * + + CAST( NULL AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4556
SELECT + col1 FROM tab2 WHERE + col1 * + + CAST ( NULL AS INTEGER ) IS NULL
----
51
67
77

query I rowsort
SELECT ALL + + 43 * + 46 FROM tab2 cor0
----
1978
1978
1978

query II rowsort
SELECT + col0 * - 35 AS col0, ( 50 ) AS col0 FROM tab2 AS cor0
----
-1610
50
-2240
50
-2625
50

query I rowsort
SELECT ALL + 85 - + - 88 - + col1 AS col1 FROM tab1 AS cor0
----
126
159
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT COUNT( * ) * - - SUM( col2 ) AS col0 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT COUNT ( * ) * - - SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT + + COUNT( * ) + - 49 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4561
SELECT + + COUNT ( * ) + - 49 FROM tab1 cor0
----
-46

query I rowsort
SELECT 22 + + + col1 FROM tab2
----
73
89
99

query I rowsort
SELECT 12 + + col1 FROM tab0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - 10 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 10 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT ALL + col1 - + - col1 DIV col1 + + + 40 FROM tab1 AS cor0
----
46
55
88

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL + col1 - + - col1 / col1 + + + 40 FROM tab1 AS cor0
----
46
55
88

onlyif mysql # DIV for integer division: 
query II rowsort label-4566
SELECT DISTINCT + 32 AS col0, + col2 DIV - - col1 AS col2 FROM tab1 AS cor0
----
32
1
32
11
32
6

skipif mysql # not compatible
query II rowsort label-4566
SELECT DISTINCT + 32 AS col0, + col2 / - - col1 AS col2 FROM tab1 AS cor0
----
32
1
32
11
32
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 IN ( col0, + col1 )
----

query I rowsort
SELECT - + 23 FROM tab1 cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * + col2 col0 FROM tab0
----
1645
3465
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT + 91 AS col2 FROM tab0 WHERE NOT + + CAST( + col0 AS SIGNED ) * col0 + + 70 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4570
SELECT + 91 AS col2 FROM tab0 WHERE NOT + + CAST ( + col0 AS INTEGER ) * col0 + + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT ALL SUM( - col2 ) DIV - 58 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL SUM ( - col2 ) / - 58 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4572
SELECT ALL - COUNT( * ) AS col0, + 3 DIV COUNT( * ) AS col2 FROM tab0
----
-3
1

skipif mysql # not compatible
query II rowsort label-4572
SELECT ALL - COUNT ( * ) AS col0, + 3 / COUNT ( * ) AS col2 FROM tab0
----
-3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT - col1 + + CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab0 WHERE NOT - - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT - col1 + + CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab0 WHERE NOT - - col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 5 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + - ( - col1 ) + 50 AND + 9
----
5

query I rowsort
SELECT - - col2 * + 79 * + + col0 + + col1 AS col0 FROM tab2 AS cor0
----
202317
343717
83633

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT + + col1 * + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4577
SELECT + + col1 * + col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 47 / - 19 + col1 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + COUNT( * ) + + + 19 * SUM( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1960

skipif mysql # not compatible
query I rowsort label-4579
SELECT + COUNT ( * ) + + + 19 * SUM ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1960

query I rowsort
SELECT ALL + col0 * + 66 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT ALL - col2 + 2 + + 47 AS col1 FROM tab0
----
-50
2
39

query I rowsort
SELECT col2 * - ( - 44 ) FROM tab0
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT MIN( ALL + col0 ) * - - 3 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-4583
SELECT MIN ( ALL + col0 ) * - - 3 FROM tab1
----
153

query I rowsort
SELECT DISTINCT + 35 FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT ALL - 12 * - - col1, - col0 AS col2 FROM tab1 AS cor0
----
-168
-51
-564
-91
-60
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT COUNT( DISTINCT + col2 ) * + 49 FROM tab1 cor0
----
147

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT COUNT ( DISTINCT + col2 ) * + 49 FROM tab1 cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + 79 + + COUNT( * ) col1 FROM tab1
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4589
SELECT + 79 + + COUNT ( * ) col1 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL - 10 + - + 25 AS col1 FROM tab1
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - 16 + + + 65 AS col0 FROM tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT + col2 / - + CAST( NULL AS SIGNED ) + 49 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT + col2 / - + CAST ( NULL AS INTEGER ) + 49 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT 91 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT 91 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT col1 - + col1 + - - CAST( NULL AS SIGNED ) + - + col1 + - col2 + col1 + - + col0 - 66 * - col1 + + col2 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4595
SELECT DISTINCT col1 - + col1 + - - CAST ( NULL AS INTEGER ) + - + col1 + - col2 + col1 + - + col0 - 66 * - col1 + + col2 col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4596
SELECT ALL - col0 + - col0 DIV + ( - CAST( col2 AS SIGNED ) ) AS col0 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - col0 + - col0 / + ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2
----
-44
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 66 ) - + col2 - - col2 * + col0 col2 FROM tab1 AS cor0
----
4734
4890
6054

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4598
SELECT ALL 75 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL 75 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4599
SELECT DISTINCT - MAX( col2 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT - MAX ( col2 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT ALL + - col1 - 0 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4601
SELECT + 44 - + 45 * + col0 + - 91 AS col1, col0 DIV - col0 FROM tab2
----
-2117
-1
-2927
-1
-3422
-1

skipif mysql # not compatible
query II rowsort label-4601
SELECT + 44 - + 45 * + col0 + - 91 AS col1, col0 / - col0 FROM tab2
----
-2117
-1
-2927
-1
-3422
-1

query II rowsort
SELECT ALL + col2 + 58 AS col2, + col2 * 78 AS col1 FROM tab2
----
116
4524
81
1794
98
3120

query I rowsort
SELECT DISTINCT + 5 * col1 * col1 FROM tab0
----
2205
32805
5

query I rowsort
SELECT - 77 * + 14 AS col0 FROM tab0
----
-1078
-1078
-1078

query I rowsort
SELECT - - col1 * col1 AS col0 FROM tab1 WHERE NOT - col1 < 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( + + col2 ) col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT - 63 DIV 76 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT - 63 / 76 AS col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT ALL - col2 * - col2, col0 FROM tab2 AS cor0
----
1600
64
3364
75
529
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= col2
----

query II rowsort
SELECT ALL ( col2 ) AS col2, - col1 AS col2 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 13 * - + col2 + + + 52 col1 FROM tab1 AS cor0
----
1300
819
936

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4612
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4612
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col2 ) col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + 83 * COUNT( * ) AS col0 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-4614
SELECT + 83 * COUNT ( * ) AS col0 FROM tab1
----
249

query I rowsort
SELECT - 50 * - col2 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT + ( - 25 ) * col0 AS col1 FROM tab2
----
-1150
-1600
-1875

query II rowsort
SELECT + col1, + 89 AS col0 FROM tab2
----
51
89
67
89
77
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT + 82 / - - col2 + - col0 FROM tab0 AS cor0 WHERE - 64 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4620
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 29 * - - col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4620
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 29 * - - col1 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT DISTINCT COUNT( * ) + - 53 DIV - 66 AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT COUNT ( * ) + - 53 / - 66 AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 * 26 + col2 AS col2 FROM tab1 cor0
----
1593
1836
2592

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 7 + + col1 / - 83 = + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4624
SELECT ALL + COUNT( + + col2 ) + - CAST( + 3 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + COUNT ( + + col2 ) + - CAST ( + 3 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + + 77 FROM tab0 AS cor0
----
1155
6699
7469

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4626
SELECT * FROM tab0 AS cor0 WHERE 49 IN ( - - 50, 78, - 56, + - CAST( NULL AS SIGNED ) + + col2 * - 57 + + - col1 / + 43 )
----

skipif mysql # not compatible
query III rowsort label-4626
SELECT * FROM tab0 AS cor0 WHERE 49 IN ( - - 50, 78, - 56, + - CAST ( NULL AS INTEGER ) + + col2 * - 57 + + - col1 / + 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - MAX( 32 ) * - - 34 col1 FROM tab1 AS cor0
----
-1088

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4627
SELECT - MAX ( 32 ) * - - 34 col1 FROM tab1 AS cor0
----
-1088

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT - 34 AS col1, - COUNT( * ) col0 FROM tab1 AS cor0
----
-34
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4628
SELECT - 34 AS col1, - COUNT ( * ) col0 FROM tab1 AS cor0
----
-34
-3

query I rowsort
SELECT + 97 * - col0 FROM tab0 AS cor0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT SUM( ALL - 20 ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT SUM ( ALL - 20 ) AS col2 FROM tab1 AS cor0
----
-60

query II rowsort
SELECT col0 * - 8, col0 FROM tab2
----
-368
46
-512
64
-600
75

query I rowsort
SELECT ALL - 87 + col1 FROM tab1
----
-40
-73
-82

query I rowsort
SELECT DISTINCT - col2 - + 90 FROM tab0
----
-100
-137
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT COUNT( * ) - + 47 * - 50 FROM tab1
----
2353

skipif mysql # not compatible
query I rowsort label-4634
SELECT COUNT ( * ) - + 47 * - 50 FROM tab1
----
2353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT ALL - 49 - 70 * + CAST( NULL AS SIGNED ) + + 71 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - 49 - 70 * + CAST ( NULL AS INTEGER ) + + 71 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - COUNT( * ) - + + SUM( DISTINCT col1 ) + + 98 AS col2 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - COUNT ( * ) - + + SUM ( DISTINCT col1 ) + + 98 AS col2 FROM tab2 AS cor0
----
-100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN + 66 AND + + col0 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 * - 94 )
----

query I rowsort
SELECT ALL 47 * - + 73 * col2 * + col0 + col2 + col1 FROM tab2 AS cor0
----
-14924725
-3629924
-8783243

query I rowsort
SELECT + col2 + - col1 + + + col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + COUNT( * ) + - 71 AS col0 FROM tab2 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4641
SELECT + COUNT ( * ) + - 71 AS col0 FROM tab2 cor0
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-4642
SELECT + + col2 DIV + + col2 + + 17 * - 51 + col1, + col0 AS col0 FROM tab1 AS cor0
----
-819
91
-852
51
-861
85

skipif mysql # not compatible
query II rowsort label-4642
SELECT + + col2 / + + col2 + + 17 * - 51 + col1, + col0 AS col0 FROM tab1 AS cor0
----
-819
91
-852
51
-861
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT - + col0 / + 10 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT - + col0 / + 10 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 * - col0 AS col0 FROM tab0
----
15
-705
87
-870
97
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4645
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT ALL + 42 AS col0, + MIN( ALL 7 ) * + - 49 + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
42
-352

skipif mysql # not compatible
query II rowsort label-4646
SELECT ALL + 42 AS col0, + MIN ( ALL 7 ) * + - 49 + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
42
-352

query I rowsort
SELECT ALL ( + + col1 ) - + 86 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * 75 AS col2 FROM tab2
----
1725
3000
4350

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + col0 IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4651
SELECT - 32 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4651
SELECT - 32 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - - col1 * - - col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT - 40 AS col1, col1 FROM tab2 cor0
----
-40
51
-40
67
-40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL COUNT( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL COUNT ( + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT ( + 11 NOT BETWEEN NULL AND - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT ( + 11 NOT BETWEEN NULL AND - - col2 )
----
NULL

query I rowsort
SELECT ALL + 23 * + - col1 FROM tab2
----
-1173
-1541
-1771

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + 9
----

query I rowsort
SELECT DISTINCT + - col0 + + 93 AS col2 FROM tab1 AS cor0
----
2
42
8

query I rowsort
SELECT DISTINCT - - col2 + + - 42 AS col1 FROM tab1 AS cor0
----
17
26
54

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE 26 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - col0 * + col2 * - col2 AS col2 FROM tab2
----
-23
24334
-40
102400
-58
252300

onlyif mysql # aggregate syntax: 
query II rowsort label-4663
SELECT ALL 55 * - COUNT( DISTINCT - ( + col1 ) ) AS col1, 51 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-165
51

skipif mysql # not compatible
query II rowsort label-4663
SELECT ALL 55 * - COUNT ( DISTINCT - ( + col1 ) ) AS col1, 51 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-165
51

query I rowsort
SELECT ALL + col1 * - col0 + + col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( - 71 ) * - col0 / - 80
----

query I rowsort
SELECT DISTINCT + + col2 - 14 - - col0 + - col2 FROM tab1 AS cor0
----
37
71
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 86 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, + col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL 99 + + col2 AS col1 FROM tab2 AS cor0
----
122
139
157

query II rowsort
SELECT DISTINCT + 90 + - col0 - - + col2 * - col2 AS col0, col0 AS col1 FROM tab1
----
-3476
85
-4625
91
-9177
51

query II rowsort
SELECT DISTINCT - col0 AS col2, + 93 - + col0 FROM tab1
----
-51
42
-85
8
-91
2

query II rowsort
SELECT DISTINCT - col2 AS col1, 28 * + - col2 * + - col1 AS col1 FROM tab1
----
-59
8260
-68
89488
-96
37632

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT MAX( - 23 ) AS col1 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4675
SELECT MAX ( - 23 ) AS col1 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT SUM( DISTINCT 23 ) + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT SUM ( DISTINCT 23 ) + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL MIN( + + 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL MIN ( + + 52 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT CAST( + 28 AS SIGNED ) * + col0 + - - col0 AS col1 FROM tab0 AS cor0
----
2523
2813
435

skipif mysql # not compatible
query I rowsort label-4680
SELECT CAST ( + 28 AS INTEGER ) * + col0 + - - col0 AS col1 FROM tab0 AS cor0
----
2523
2813
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + - col2 col2, col2 FROM tab2 AS cor0 WHERE NOT 16 NOT BETWEEN NULL AND + + col1
----

query I rowsort
SELECT DISTINCT - + 90 AS col0 FROM tab0 cor0
----
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * col2 < - ( + + 48 ) / - 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0, 56 AS col0 FROM tab2
----
-46
56
-64
56
-75
56

query II rowsort
SELECT DISTINCT col2 AS col2, + 34 AS col0 FROM tab1
----
59
34
68
34
96
34

query II rowsort
SELECT 5 AS col1, - ( col1 ) * + col0 * + + col1 AS col2 FROM tab0
----
5
-38367
5
-97
5
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT MAX( DISTINCT 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-4687
SELECT MAX ( DISTINCT 40 ) FROM tab1
----
40

query II rowsort
SELECT col1, + 36 FROM tab2
----
51
36
67
36
77
36

query I rowsort
SELECT col1 * col0 * col1 * - col0 * - + col0 FROM tab2
----
1554251776
1893796875
253170936

query I rowsort
SELECT DISTINCT 57 + - col0 AS col0 FROM tab2
----
-18
-7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT - MIN( - col1 ) col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4691
SELECT DISTINCT - MIN ( - col1 ) col2 FROM tab0
----
81

query I rowsort
SELECT - col1 - - ( 71 ) * 91 FROM tab2 WHERE NOT - 83 IS NULL
----
6384
6394
6410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT ALL - ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + - col2 * col0 + + - ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4696
SELECT - CAST( NULL AS SIGNED ) AS col1, - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-4696
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

query I rowsort
SELECT AVG ( DISTINCT + 49 ) FROM tab0 AS cor0 WHERE ( NULL ) = + ( - col2 ) * + - col0
----
NULL

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
-51
-85
-91

query I rowsort
SELECT + 68 + ( - 89 ) * + 65 FROM tab2 cor0
----
-5717
-5717
-5717

onlyif mysql # DIV for integer division: 
query II rowsort label-4700
SELECT DISTINCT - col2 * - col0, col1 DIV + - 47 AS col1 FROM tab2 AS cor0
----
1058
-1
2560
-1
4350
-1

skipif mysql # not compatible
query II rowsort label-4700
SELECT DISTINCT - col2 * - col0, col1 / + - 47 AS col1 FROM tab2 AS cor0
----
1058
-1
2560
-1
4350
-1

query I rowsort
SELECT - 44 - - ( + col0 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
41
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT MIN( ALL + + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT MIN ( ALL + + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col0 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col2 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - SUM( + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4705
SELECT - SUM ( + col0 ) FROM tab2 cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 55 + - 70 * + - col1 + - 57 col2 FROM tab1
----
1029
3379
433

query I rowsort
SELECT col1 - + - col2 AS col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL + ( + CAST( + ( col2 ) AS SIGNED ) ) * col0 * + col2 * - - col0 + + col0 + + col0 AS col2 FROM tab1
----
23970918
25150395
38291526

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL + ( + CAST ( + ( col2 ) AS INTEGER ) ) * col0 * + col2 * - - col0 + + col0 + + col0 AS col2 FROM tab1
----
23970918
25150395
38291526

query I rowsort
SELECT DISTINCT 9 + col0 FROM tab0
----
106
24
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4710
SELECT ALL col0 / col0 FROM tab0 WHERE NULL BETWEEN + col0 AND - CAST( + - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL col0 / col0 FROM tab0 WHERE NULL BETWEEN + col0 AND - CAST ( + - col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL + + COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + + COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + + COUNT( - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4712
SELECT + + COUNT ( - col0 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 37 * + - col2 * - - 61 FROM tab0
----
223443
473970
8592399

query II rowsort
SELECT DISTINCT col1, - col0 AS col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + - MAX( 96 ) AS col2 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4716
SELECT + - MAX ( 96 ) AS col2 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT 95 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4718
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) NOT BETWEEN + - col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-4718
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) NOT BETWEEN + - col2 AND NULL )
----

query I rowsort
SELECT ALL - + col1 FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL MAX( ALL + 37 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
37

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL MAX ( ALL + 37 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col0 * + col0 * - + col2 col0 FROM tab0 AS cor0
----
-1589490
-856575
-931491

query I rowsort
SELECT DISTINCT - 73 * + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
1095
6351
7081

query I rowsort
SELECT DISTINCT - 72 + + col1 AS col2 FROM tab1
----
-25
-58
-67

query II rowsort
SELECT ALL ( col2 ), col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4725
SELECT DISTINCT - 89 * - col0 + - + CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) AS col2, 14 + + - col2 AS col1 FROM tab1
----
4635
-82
7624
-45
8167
-54

skipif mysql # not compatible
query II rowsort label-4725
SELECT DISTINCT - 89 * - col0 + - + CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col2, 14 + + - col2 AS col1 FROM tab1
----
4635
-82
7624
-45
8167
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + COUNT( ALL + col1 ) FROM tab0 WHERE NOT - col1 + + + 48 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4726
SELECT + COUNT ( ALL + col1 ) FROM tab0 WHERE NOT - col1 + + + 48 IS NULL
----
3

query I rowsort
SELECT DISTINCT - + ( - + col0 ) AS col2 FROM tab0 WHERE 87 + + 43 IS NULL
----

query II rowsort
SELECT ALL 66 + 81 AS col1, col0 AS col2 FROM tab2
----
147
46
147
64
147
75

query I rowsort
SELECT + 49 * - col2 + + - 71 + + col2 FROM tab1
----
-2903
-3335
-4679

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT - 54 + 84 AS col0, COUNT( * ) col0 FROM tab1
----
30
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4730
SELECT - 54 + 84 AS col0, COUNT ( * ) col0 FROM tab1
----
30
3

query I rowsort
SELECT DISTINCT 29 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT col0 + 91 * - 23 AS col2 FROM tab0
----
-1996
-2006
-2078

query I rowsort
SELECT DISTINCT 98 FROM tab1 AS cor0 WHERE NOT ( + 25 ) * + col2 IS NULL
----
98

query I rowsort
SELECT - col1 * + 69 * - + col1 + + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 + - + col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL ( - MAX( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL ( - MAX ( DISTINCT + col1 ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4737
SELECT * FROM tab0 AS cor0 WHERE col1 * + CAST( - col1 AS SIGNED ) BETWEEN NULL AND - + col0 * + col2 * col1 + + CAST( + 0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4737
SELECT * FROM tab0 AS cor0 WHERE col1 * + CAST ( - col1 AS INTEGER ) BETWEEN NULL AND - + col0 * + col2 * col1 + + CAST ( + 0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT COUNT( * ) * + 21 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-4738
SELECT COUNT ( * ) * + 21 FROM tab1 cor0
----
63

query I rowsort
SELECT DISTINCT + 34 FROM tab1 WHERE NOT + + 29 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 * col2 * col1 AS col2, col0 * + col1 AS col0 FROM tab1
----
129024
714
17405
425
217328
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT MAX( ALL col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4741
SELECT MAX ( ALL col2 ) col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT 31 + - + 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

query I rowsort
SELECT col0 - 49 FROM tab2
----
-3
15
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL 40 + - + SUM( - + ( + + 64 ) ) AS col0 FROM tab0
----
232

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL 40 + - + SUM ( - + ( + + 64 ) ) AS col0 FROM tab0
----
232

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - 46 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + - 26 - - 91 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - + - ( + 41 ) + col2 <= ( - + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 17 NOT BETWEEN NULL AND + 74 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + 25 + MAX( ALL + 51 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-4749
SELECT + 25 + MAX ( ALL + 51 ) FROM tab1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4750
SELECT col0 DIV + + 13 FROM tab0
----
1
6
7

skipif mysql # not compatible
query I rowsort label-4750
SELECT col0 / + + 13 FROM tab0
----
1
6
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT ( - SUM( ALL + 63 ) ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT ( - SUM ( ALL + 63 ) ) FROM tab2
----
-189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4752
SELECT + col0 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-4752
SELECT + col0 / CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
1
17
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + 21 * + col0 = + col0 * - col2 * - - 35 / col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + + 60 col1, 93 AS col2 FROM tab0
----
5220
93
5820
93
900
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT MIN( DISTINCT + 43 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4755
SELECT MIN ( DISTINCT + 43 ) FROM tab1 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab1 AS cor0 WHERE - 33 + - col2 NOT BETWEEN + ( + - 56 ) / col0 / col0 + + + CAST( + - ( + ( - 71 ) ) AS SIGNED ) AND NULL
----
21
54
82

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab1 AS cor0 WHERE - 33 + - col2 NOT BETWEEN + ( + - 56 ) / col0 / col0 + + + CAST ( + - ( + ( - 71 ) ) AS INTEGER ) AND NULL
----
21
54
82

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE - ( + 58 ) / col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT - CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab0 WHERE - 71 IS NULL OR NOT - 95 - + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4758
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab0 WHERE - 71 IS NULL OR NOT - 95 - + - col2 IS NOT NULL
----
0

query I rowsort
SELECT - 45 / - 30 + - + 43 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 > + col2 * - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col1 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT - + col1 + col2 * 43 DIV 75 FROM tab0 AS cor0
----
-16
-55
55

skipif mysql # not compatible
query I rowsort label-4762
SELECT - + col1 + col2 * 43 / 75 FROM tab0 AS cor0
----
-16
-55
55

query I rowsort
SELECT ALL + 31 - + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - ( 7 ) / - ( - + col0 ) * - + 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT ALL - 33 * ( - 12 ) FROM tab1 WHERE + col1 <> - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL - 33 * ( - 12 ) FROM tab1 WHERE + col1 <> - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT col2 + + CAST( NULL AS SIGNED ) - col2 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT col2 + + CAST ( NULL AS INTEGER ) - col2 * col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4768
SELECT * FROM tab0 WHERE - CAST( - col0 AS SIGNED ) * col1 * + + CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4768
SELECT * FROM tab0 WHERE - CAST ( - col0 AS INTEGER ) * col1 * + + CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-4769
SELECT col1 + - col0 * - + col1 + - 64 + - col0, col0 DIV - col2 AS col0 FROM tab1
----
281
-1
4169
-1
613
0

skipif mysql # not compatible
query II rowsort label-4769
SELECT col1 + - col0 * - + col1 + - 64 + - col0, col0 / - col2 AS col0 FROM tab1
----
281
-1
4169
-1
613
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT 17 * + + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4771
SELECT 17 * + + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + 44 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < - - 86
----

query II rowsort
SELECT DISTINCT - 50 + - col0 AS col1, + col0 * + col2 * + - col0 AS col2 FROM tab0 AS cor0
----
-137
-75690
-147
-931491
-65
-10575

query I rowsort
SELECT + col1 * + + 6 + + col2 AS col0 FROM tab1 cor0 WHERE NOT + ( - 54 ) / - col1 IS NULL
----
180
350
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL - - CAST( NULL AS SIGNED ) * 63 * 68 + + col2 + + - 1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - - CAST ( NULL AS INTEGER ) * 63 * 68 + + col2 + + - 1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT + COUNT( * ), - COUNT( * ) + + + 62 col1 FROM tab2
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4776
SELECT + COUNT ( * ), - COUNT ( * ) + + + 62 col1 FROM tab2
----
3
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - 82 * - COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-4777
SELECT - 82 * - COUNT ( * ) FROM tab0
----
246

query II rowsort
SELECT DISTINCT col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL + 77 * + - 69 * 64 * + + col1 AS col1 FROM tab1
----
-15981504
-1700160
-4760448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT + - CAST( - 15 AS SIGNED ) FROM tab1 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-4780
SELECT + - CAST ( - 15 AS INTEGER ) FROM tab1 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - MAX( + - ( 41 ) ) AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4781
SELECT - MAX ( + - ( 41 ) ) AS col2 FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT + ( - - 28 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
28

query I rowsort
SELECT + col0 * - ( 17 ) AS col2 FROM tab1
----
-1445
-1547
-867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT - col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4784
SELECT - col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= 83
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT ALL ( col0 ) DIV - + col2 + - - col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL ( col0 ) / - + col2 + - - col2 FROM tab1 AS cor0
----
58
67
96

query I rowsort
SELECT - 18 * - col1 FROM tab1 cor0
----
252
846
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + MAX( ALL + - 65 ) FROM tab2 AS cor0 WHERE 56 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT + MAX ( ALL + - 65 ) FROM tab2 AS cor0 WHERE 56 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab2 AS cor0 WHERE - col0 <> + col1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + col1 col0 FROM tab1
----
10
28
94

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT 61 + + COUNT( * ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT 61 + + COUNT ( * ) AS col0 FROM tab0
----
64

query I rowsort
SELECT col0 - - + col2 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL - ( + - col1 ) AS col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 95 col1 FROM tab0 AS cor0
----
-110
-182
-192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - + col0 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col2, col1 * + - col1 + col1 * ( - col2 ) FROM tab0 AS cor0
----
15
-10368
87
-651
97
-100

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL + COUNT( * ) * + MIN( DISTINCT + - col1 ) FROM tab0 WHERE NOT + - 14 * + ( + - ( - 91 ) ) + + col2 + + - CAST( + col2 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + COUNT ( * ) * + MIN ( DISTINCT + - col1 ) FROM tab0 WHERE NOT + - 14 * + ( + - ( - 91 ) ) + + col2 + + - CAST ( + col2 AS INTEGER ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 IN ( col2, col2 * - 10 - - col1, + col2, + col0, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0 * col2, - ( 12 ) * ( + col1 ) * col0 * - + ( + col2 ) - - col0 AS col0 FROM tab2
----
1058
647542
2560
2365504
4350
3497475

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT 9 * - COUNT( * ) * + 62 FROM tab2
----
-1674

skipif mysql # not compatible
query I rowsort label-4804
SELECT 9 * - COUNT ( * ) * + 62 FROM tab2
----
-1674

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - 81
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4806
SELECT MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) * - 15 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) * - 15 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - ( + - col2 ) col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL col2 * - col2 * - 35 FROM tab0 cor0
----
343035
3500
77315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT DISTINCT + 79 * + CAST( NULL AS SIGNED ) * + - COUNT( * ) * - + 88 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT + 79 * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * - + 88 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4810
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( col1 AS SIGNED ) NOT BETWEEN NULL AND - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4810
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( col1 AS INTEGER ) NOT BETWEEN NULL AND - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ( - MAX( col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4811
SELECT ( - MAX ( col0 ) ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT - col1 + - + col0 AS col2 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT + col1 + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT + col1 + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4814
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL - AVG ( - - 24 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

query II rowsort
SELECT - ( + + col0 ) / + col0 AS col1, col2 FROM tab2 AS cor0 WHERE ( NOT - - 84 - 77 + + + col1 IS NOT NULL )
----

query I rowsort
SELECT - 12 FROM tab0 AS cor0 WHERE + 30 * - col2 - - col2 IS NOT NULL
----
-12
-12
-12

query I rowsort
SELECT - col1 + - ( - col1 ) AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col0 * - + 89 FROM tab0 AS cor0
----
-1335
-7743
-8633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col2 FROM tab0
----
75

query I rowsort
SELECT - + col0 + - col1 * 71 AS col2 FROM tab1 WHERE - col1 IS NOT NULL OR NOT - col2 * + + 6 + 68 IS NOT NULL
----
-1045
-3428
-440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4822
SELECT 18 DIV - + COUNT( * ) col2 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT 18 / - + COUNT ( * ) col2 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + SUM( + + col1 ) - - + 82 FROM tab1 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + SUM ( + + col1 ) - - + 82 FROM tab1 AS cor0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT 16 * - - 28 - + MAX( DISTINCT + + col0 ) + SUM( ALL - col1 ) col2 FROM tab0 AS cor0
----
248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4825
SELECT 16 * - - 28 - + MAX ( DISTINCT + + col0 ) + SUM ( ALL - col1 ) col2 FROM tab0 AS cor0
----
248

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT - 98 DIV + + col0 + - col2 + - + col1 FROM tab0
----
-101
-134
-32

skipif mysql # not compatible
query I rowsort label-4826
SELECT - 98 / + + col0 + - col2 + - + col1 FROM tab0
----
-101
-134
-32

query I rowsort
SELECT - + col0 + - + ( - ( + col2 ) ) AS col2 FROM tab1 WHERE NOT 52 BETWEEN NULL AND + 22
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT - SUM( ALL col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT - SUM ( ALL col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT DISTINCT ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4829
SELECT DISTINCT ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT 66 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
66
1
66
21
66
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

query II rowsort
SELECT - col2 AS col1, col2 AS col1 FROM tab1
----
-59
59
-68
68
-96
96

query II rowsort
SELECT col1, ( - 61 ) FROM tab2
----
51
-61
67
-61
77
-61

query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, - 22 * 76 FROM tab1
----
59
-1672
68
-1672
96
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL + MIN( DISTINCT 99 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + MIN ( DISTINCT 99 ) AS col2 FROM tab1
----
99

query I rowsort
SELECT ALL 27 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4837
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col1, col1 - - col0 + + - col2 + col0 FROM tab2
----
NULL
120
NULL
159
NULL
165

skipif mysql # not compatible
query II rowsort label-4837
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col1, col1 - - col0 + + - col2 + col0 FROM tab2
----
NULL
120
NULL
159
NULL
165

query I rowsort
SELECT + col2 * 86 * + 52 AS col1 FROM tab0
----
210184
442728
44720

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT - col2 DIV - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT - col2 / - + col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 - - + 85, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4841
SELECT DISTINCT 33, + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
33
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4841
SELECT DISTINCT 33, + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
33
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 5 AS col0, + col1 col2 FROM tab2 AS cor0
----
-5
51
-5
67
-5
77

query I rowsort
SELECT + col0 FROM tab2 WHERE - - col2 * + col1 * + col1 * - ( + 71 ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT - + 65 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NOT 16 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + - - col2 col0 FROM tab2
----
144
191
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4849
SELECT col2 + + 74 + CAST( NULL AS SIGNED ) AS col0, + 33 * - + col1 * 7 FROM tab2
----
NULL
-11781
NULL
-15477
NULL
-17787

skipif mysql # not compatible
query II rowsort label-4849
SELECT col2 + + 74 + CAST ( NULL AS INTEGER ) AS col0, + 33 * - + col1 * 7 FROM tab2
----
NULL
-11781
NULL
-15477
NULL
-17787

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT + 97 AS col2, COUNT( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-4850
SELECT + 97 AS col2, COUNT ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
97
3

query I rowsort
SELECT DISTINCT + + col0 - + col2 + + 81 * col0 FROM tab2 AS cor0
----
3749
5208
6092

query I rowsort
SELECT ALL 72 + 23 AS col0 FROM tab2 WHERE 25 NOT BETWEEN - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ( + MAX( col0 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT ( + MAX ( col0 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( + 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT ALL CAST( 41 AS SIGNED ) + col0 FROM tab2
----
105
116
87

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL CAST ( 41 AS INTEGER ) + col0 FROM tab2
----
105
116
87

query I rowsort
SELECT ALL - 15 + + col2 * + col1 AS col1 FROM tab1
----
1329
280
3181

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + MIN( DISTINCT + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4857
SELECT + MIN ( DISTINCT + col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col1 + 51 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN 80 * col1 AND ( col1 - 37 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 75 <> NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col2 NOT BETWEEN + col2 AND col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT CAST( - 21 AS SIGNED ) col2 FROM tab2
----
-21
-21
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4862
SELECT CAST ( - 21 AS INTEGER ) col2 FROM tab2
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab0 WHERE col0 * col1 BETWEEN - col0 AND ( col2 * col2 )
----
16
16

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 * col2 - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * 72 + - col1 FROM tab2
----
3621
4757
5467

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT col2 + + col1 DIV + ( + 32 + col2 ) FROM tab2
----
23
41
58

skipif mysql # not compatible
query I rowsort label-4866
SELECT col2 + + col1 / + ( + 32 + col2 ) FROM tab2
----
23
41
58

query I rowsort
SELECT 83 + + col1 AS col1 FROM tab2
----
134
150
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT + 19 * COUNT( * ) + + 28 DIV COUNT( * ) AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4868
SELECT + 19 * COUNT ( * ) + + 28 / COUNT ( * ) AS col1 FROM tab2
----
66

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col1 NOT IN ( col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT MAX( + col1 ) FROM tab0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-4870
SELECT MAX ( + col1 ) FROM tab0 WHERE NULL IS NULL
----
81

query I rowsort
SELECT - 5 * col2 + - col1 AS col1 FROM tab2
----
-166
-277
-357

query III rowsort
SELECT ALL * FROM tab2 WHERE - 77 * col1 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4873
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( + col2 ) AND ( 85 - + ( col0 + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4873
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN ( + col2 ) AND ( 85 - + ( col0 + CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( - 18 / + col1 ) BETWEEN + col2 AND ( NULL )
----
1
21
81

query I rowsort
SELECT + col2 * - 7 FROM tab2 AS cor0
----
-161
-280
-406

query I rowsort
SELECT - 85 AS col0 FROM tab2 AS cor0 WHERE + ( 60 ) * + col1 NOT BETWEEN NULL AND ( 25 ) - col1
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 33 + - col0 col1 FROM tab1 AS cor0
----
-1734
-2890
-3094

query I rowsort
SELECT ALL - col1 + ( col2 ) FROM tab0
----
-11
-34
98

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE - col1 / - col0 IN ( + col1 )
----

query I rowsort
SELECT ALL - 69 + col1 AS col0 FROM tab2
----
-18
-2
8

query I rowsort
SELECT + 13 FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = ( col1 )
----

query I rowsort
SELECT ALL 14 AS col2 FROM tab2 cor0 WHERE col1 * + col1 >= ( col1 / - col0 )
----
14
14
14

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - col2 - col0 <> + col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT - + 28 + COUNT( * ) * MIN( 62 ) AS col0 FROM tab2 cor0
----
158

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - + 28 + COUNT ( * ) * MIN ( 62 ) AS col0 FROM tab2 cor0
----
158

query I rowsort
SELECT DISTINCT - 61 * col2 AS col1 FROM tab0 AS cor0
----
-2867
-6039
-610

query I rowsort
SELECT - col2 * - 5 AS col0 FROM tab1 cor0
----
295
340
480

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col2 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4891
SELECT MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT + MAX( DISTINCT 25 ) * + 64 FROM tab2 AS cor0
----
1600

skipif mysql # not compatible
query I rowsort label-4892
SELECT + MAX ( DISTINCT 25 ) * + 64 FROM tab2 AS cor0
----
1600

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col1 * col1 ) > ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4894
SELECT - CAST( NULL AS DECIMAL ) * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT - CAST ( NULL AS REAL ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 47 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT DISTINCT + ( 42 ) FROM tab2 WHERE NOT ( - col1 * col0 ) <> 90 + - ( - 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4897
SELECT * FROM tab2 WHERE - CAST( col2 AS SIGNED ) BETWEEN + ( 55 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4897
SELECT * FROM tab2 WHERE - CAST ( col2 AS INTEGER ) BETWEEN + ( 55 ) AND ( NULL )
----

query I rowsort
SELECT col0 * - + 99 AS col1 FROM tab0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT - MAX( 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-4899
SELECT - MAX ( 74 ) FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab0 WHERE col1 * - col2 < 17
----
6

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE col1 * - col2 < 17
----
6

query I rowsort
SELECT + col2 + + col0 * - col0 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-178
-7559
-9310

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + 46 + col0 FROM tab2
----
110
121
92

query I rowsort
SELECT - col0 + - - 25 AS col0 FROM tab0 AS cor0
----
-62
-72
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4905
SELECT ALL col2 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL col2 * + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - 55 AS col2 FROM tab2 AS cor0
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - SUM( 29 ) AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4907
SELECT - SUM ( 29 ) AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT 6 * 55 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
330
330
330

query I rowsort
SELECT ALL - 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT DISTINCT 78 + - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT 78 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4911
SELECT * FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 > - 55
----

skipif mysql # not compatible
query III rowsort label-4911
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 > - 55
----

query II rowsort
SELECT - col0 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT DISTINCT - - col1 DIV - + col2 + col1 AS col1 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT - - col1 / - + col2 + col1 AS col1 FROM tab0 AS cor0
----
1
19
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 col2 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT ALL - 58 FROM tab2 cor0 WHERE ( col0 ) IS NULL
----

query II rowsort
SELECT ALL col0, 24 + + 69 FROM tab1 cor0
----
51
93
85
93
91
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE ( + + col1 * col2 + + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE ( + + col1 * col2 + + col1 ) IS NULL
----
0

query I rowsort
SELECT + col2 * + col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 / - col0 + col2 * + 23 = - col1 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - - col1 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL 69 + + - SUM( - col2 ) AS col1 FROM tab2
----
190

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL 69 + + - SUM ( - col2 ) AS col1 FROM tab2
----
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + - col2 col1 FROM tab0
----
-36
16
53

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE - 44 > + + col2 * - col0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( - col0 / 45 ) )
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NOT ( NOT + col2 IS NOT NULL ) )
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 28 + - 43 * + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - ( - col0 ) + + - col2 ) IN ( col2 * 56 )
----

query I rowsort
SELECT ALL col2 + - + col2 + + col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT + 0 - CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) * - col1 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT + 0 - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) * - col1 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - + ( + col2 ) ) + - - col2 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col1 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + - 5 - + - col2 FROM tab2 AS cor0
----
18
35
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4935
SELECT SUM( + CAST( ( - - col1 ) AS SIGNED ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4935
SELECT SUM ( + CAST ( ( - - col1 ) AS INTEGER ) ) FROM tab0
----
103

query II rowsort
SELECT ALL + - col1 AS col0, col1 + - ( col0 ) FROM tab2 AS cor0
----
-51
5
-67
-8
-77
13

query II rowsort
SELECT col1, col0 * col2 AS col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query I rowsort
SELECT DISTINCT + 48 * - col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL SUM( + col2 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( - + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4939
SELECT ALL SUM ( + col2 ) col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( - + col2 )
----
NULL

query I rowsort
SELECT + ( + + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( 19 )
----

query I rowsort
SELECT DISTINCT - 35 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - 65, + col1 col0 FROM tab0
----
-1365
21
-5265
81
-65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 16 ) + col0 IN ( 49, col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 16 ) + col0 IN ( 49, col1 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL > NULL )
----

query I rowsort
SELECT + 56 * col2 FROM tab1 WHERE NOT + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - ( - + MIN( - + col0 ) ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4946
SELECT - ( - + MIN ( - + col0 ) ) AS col2 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + + + 75 col0 FROM tab1
----
141
141
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT COUNT( + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT COUNT ( + + col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT ALL 33 + - col0 + + - col0 + - CAST( NULL AS SIGNED ) * - 19 * - - col1 * 91 * + col2 + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL 33 + - col0 + + - col0 + - CAST ( NULL AS INTEGER ) * - 19 * - - col1 * 91 * + col2 + - col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ( + ( - 89 ) ) AS col0, + col2 FROM tab2
----
-89
23
-89
40
-89
58

query I rowsort
SELECT DISTINCT + + 50 FROM tab0 WHERE - + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - COUNT( - 21 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4952
SELECT - COUNT ( - 21 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < + col1 * - - col1 / - + col1 + ( - - col2 ) * + 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0 * + col0 + - col1 + col1, + 38 AS col2 FROM tab2
----
-2116
38
-4096
38
-5625
38

query I rowsort
SELECT ( - 88 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT 72 * + SUM( - col0 ) FROM tab0 AS cor0 WHERE + ( - - col1 ) IN ( - - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT 72 * + SUM ( - col0 ) FROM tab0 AS cor0 WHERE + ( - - col1 ) IN ( - - 97 )
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4959
SELECT DISTINCT - col2 + + - CAST( NULL AS SIGNED ), col0 + + col0 + ( col2 ) AS col2 FROM tab1 AS cor0 WHERE col2 NOT IN ( col0 * + - col0, - col2 )
----
NULL
198
NULL
229
NULL
250

skipif mysql # not compatible
query II rowsort label-4959
SELECT DISTINCT - col2 + + - CAST ( NULL AS INTEGER ), col0 + + col0 + ( col2 ) AS col2 FROM tab1 AS cor0 WHERE col2 NOT IN ( col0 * + - col0, - col2 )
----
NULL
198
NULL
229
NULL
250

query II rowsort
SELECT DISTINCT - + col0 + col0 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - 78 * + COUNT( + - col2 ) AS col1 FROM tab2 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4961
SELECT - 78 * + COUNT ( + - col2 ) AS col1 FROM tab2 cor0
----
-234

query I rowsort
SELECT DISTINCT col1 - col1 + + - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col2 * - 56 AS col0 FROM tab0 AS cor0
----
2632
5544
560

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE - col2 + col2 * col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL MAX( ALL col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL MAX ( ALL col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab2 cor0 WHERE ( + 83 ) NOT IN ( col0 / col2 * - + col1 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4967
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + 8 NOT IN ( - 99 )
----

query II rowsort
SELECT DISTINCT - col0 * col0 AS col1, + col1 FROM tab0 WHERE + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col2 FROM tab2 AS cor0 WHERE - 14 * - 90 * - col1 IN ( + - 23 )
----

query II rowsort
SELECT - + 96 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
-96
46
-96
64
-96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT + - SUM( - + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4972
SELECT + - SUM ( - + col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col0 ) * - col2 * col1 col0 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT - 48 + + 77 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # DIV for integer division: 
query I rowsort label-4976
SELECT DISTINCT - 47 DIV + + 45 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - 47 / + + 45 AS col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT 4 * - 28 + col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 17 * col2 + + - col2 FROM tab0 AS cor0
----
1584
160
752

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 25 + - - 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + + col2 * - - col2 AS col1 FROM tab1 AS cor0
----
-205379
-314432
-884736

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE NOT col2 + - col2 + - - col0 * - 50 + - ( 19 ) + - + col2 * + - col2 + col1 * + + col2 * 24 + col1 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( 96 ) col0 FROM tab2 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT + 88 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4983
SELECT + 88 / col0 AS col0 FROM tab0 AS cor0
----
0
1
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 55 col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - col2 * + 73 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL COUNT( * ) * + - 10 AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL COUNT ( * ) * + - 10 AS col0 FROM tab1 AS cor0
----
-30

query II rowsort
SELECT DISTINCT col1 AS col2, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT + 91 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT + col0 DIV + + 86 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4989
SELECT + col0 / + + 86 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT COUNT( * ) + 74 FROM tab1, tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4990
SELECT COUNT ( * ) + 74 FROM tab1, tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT col0 + 14 FROM tab2
----
60
78
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + + + col2 + + col0 col1 FROM tab1
----
173
176
188

query I rowsort
SELECT ALL 77 + + col1 + ( col1 ) * - col2 FROM tab2
----
-1045
-2926
-3742

query I rowsort
SELECT DISTINCT - col1 + - - col0 + - - 89 AS col1 FROM tab1
----
126
133
169

query I rowsort
SELECT DISTINCT 61 + - 49 + - + col1 FROM tab1
----
-2
-35
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT ALL + 68 DIV + - 73 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4996
SELECT ALL + 68 / + - 73 col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 - - col2 * - 29 BETWEEN ( 37 ) AND - 58 / + - col0 + - - col1 + 42
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 35 + + 20 IS NULL
----

query I rowsort
SELECT + 28 - - + 46 FROM tab1
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + 33 col0 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + COUNT( * ) + - + SUM( - + 0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5002
SELECT + COUNT ( * ) + - + SUM ( - + 0 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT + 72 DIV + 27 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5003
SELECT + 72 / + 27 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
2
2

query I rowsort
SELECT DISTINCT - col1 - - 59 FROM tab2 AS cor0
----
-18
-8
8

query I rowsort
SELECT ALL + col0 - - 41 * col2 FROM tab1 cor0
----
2504
2879
3987

query II rowsort
SELECT DISTINCT + 75, col2 FROM tab0 AS cor0
----
75
10
75
47
75
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT 84 * + COUNT( * ) AS col1 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-5007
SELECT 84 * + COUNT ( * ) AS col1 FROM tab1
----
252

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL IS NULL OR NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT MIN( DISTINCT - col2 ) AS col2 FROM tab1 WHERE NOT - 98 NOT BETWEEN 77 AND + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT MIN ( DISTINCT - col2 ) AS col2 FROM tab1 WHERE NOT - 98 NOT BETWEEN 77 AND + 56
----
NULL

query I rowsort
SELECT + col1 * - - 66 AS col1 FROM tab2
----
3366
4422
5082

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 = 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT DISTINCT - 13 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - 13 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 52 * - 94 AS col0 FROM tab2
----
-4888
-4888
-4888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT - COUNT( + 72 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - COUNT ( + 72 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT + col1 + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5016
SELECT + col1 + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 67 + + 49 FROM tab2 cor0
----
116

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - COUNT( * ) + - 70 AS col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5019
SELECT - COUNT ( * ) + - 70 AS col1 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT ALL 53 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - ( - 26 ) FROM tab0 AS cor0
----
26

query II rowsort
SELECT col1 AS col2, 5 AS col2 FROM tab2
----
51
5
67
5
77
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 86 * - - col0 + + col0 + + + col1 + - col2 + + - col0 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 8 + + col0 FROM tab2
----
54
72
83

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT IN ( - col2 )
----

query II rowsort
SELECT ALL + col1 + - col1 AS col1, + col2 + + col0 FROM tab2
----
0
104
0
133
0
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5027
SELECT DISTINCT - COUNT( * ) + COUNT( * ) DIV + COUNT( DISTINCT + - 45 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) / + COUNT ( DISTINCT + - 45 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 + + col1 + col2 - + ( + 8 ) FROM tab0 cor0
----
201
44
93

query I rowsort
SELECT DISTINCT + 66 - - col0 FROM tab2 AS cor0
----
112
130
141

query I rowsort
SELECT + 94 - - + 66 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
165
174
207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5031
SELECT DISTINCT + 19 + - + 9 * + - col0 * + 84, CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0 WHERE - 75 IS NOT NULL
----
34795
NULL
48403
NULL
56719
NULL

skipif mysql # not compatible
query II rowsort label-5031
SELECT DISTINCT + 19 + - + 9 * + - col0 * + 84, CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0 WHERE - 75 IS NOT NULL
----
34795
NULL
48403
NULL
56719
NULL

query I rowsort
SELECT ALL + col0 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT + + 8 + col2 * + col0 FROM tab1 AS cor0
----
4904
5023
6196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) + - COUNT( * ) - - - 59 AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) - - - 59 AS col0 FROM tab2
----
-65

query II rowsort
SELECT DISTINCT - 85 + + col1, 2 AS col1 FROM tab2
----
-18
2
-34
2
-8
2

query I rowsort
SELECT 90 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * + + ( + 91 ) IS NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT + + ( SUM( ALL + - 97 ) ) AS col2 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + + ( SUM ( ALL + - 97 ) ) AS col2 FROM tab1 AS cor0
----
-291

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 81 + 57 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT MIN( - + col2 ) * + + MIN( + + col0 ) FROM tab1 cor0 WHERE NOT + 6 * + ( + col0 ) - col2 * + col2 NOT IN ( + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT MIN ( - + col2 ) * + + MIN ( + + col0 ) FROM tab1 cor0 WHERE NOT + 6 * + ( + col0 ) - col2 * + col2 NOT IN ( + - col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - 14 col1 FROM tab1 AS cor0
----
1190
1274
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5041
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5041
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT 16 * - COUNT( * ), 35 AS col0 FROM tab0, tab2 AS cor0
----
-144
35

skipif mysql # not compatible
query II rowsort label-5042
SELECT 16 * - COUNT ( * ), 35 AS col0 FROM tab0, tab2 AS cor0
----
-144
35

query II rowsort
SELECT 46, - col1 AS col0 FROM tab1
----
46
-14
46
-47
46
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + + 30 * - + 60 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 29 AS col2, - 65 AS col2 FROM tab0
----
-29
-65
-29
-65
-29
-65

query II rowsort
SELECT DISTINCT col2 AS col0, 66 FROM tab0
----
10
66
47
66
99
66

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 67 * + 51 * 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL - CAST( + 57 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 66 AND ( + - 0 )
----

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - CAST ( + 57 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 66 AND ( + - 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL + - MIN( 79 ) FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL + - MIN ( 79 ) FROM tab1 AS cor0
----
-79

query II rowsort
SELECT ALL col1 AS col1, - col1 * 29 AS col2 FROM tab2 AS cor0
----
51
-1479
67
-1943
77
-2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * - + 13 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * - + 13 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 85 + - 56 - - - col0 AS col2 FROM tab2
----
-187
-205
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - SUM( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5053
SELECT - SUM ( ALL - - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT 38 + - - 91 FROM tab0 AS cor0
----
129

query I rowsort
SELECT DISTINCT col0 * - - 19 * + col0 AS col1 FROM tab2 AS cor0
----
106875
40204
77824

query I rowsort
SELECT ALL - - col1 * + 22 - col2 AS col2 FROM tab1 AS cor0
----
212
51
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( ( - col1 IN ( - + 23 * + col1, col1, + col1, + col0 * col2 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( ( - col1 IN ( - + 23 * + col1, col1, + col1, + col0 * col2 ) ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col0 + + - 73 AS col0 FROM tab0 cor0
----
-58
14
24

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 + - col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) + - + col0 >= col2
----

query I rowsort
SELECT ALL + ( + + col2 ) * col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT + col2 * - 60 + + 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-5064
SELECT + col2 * - 60 + + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col2 ) * + - col0 FROM tab1 WHERE NULL = - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT CAST( + + 73 AS SIGNED ) + + ( col1 ) FROM tab0
----
154
74
94

skipif mysql # not compatible
query I rowsort label-5067
SELECT CAST ( + + 73 AS INTEGER ) + + ( col1 ) FROM tab0
----
154
74
94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( - col1 * + col0 )
----

query I rowsort
SELECT ALL col2 * 81 + + col1 FROM tab2
----
1914
3317
4765

query I rowsort
SELECT DISTINCT + col2 + + 35 FROM tab0
----
134
45
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT COUNT( * ) + - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5071
SELECT COUNT ( * ) + - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1
----
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 - - - col2 + + 91 AS col2 FROM tab1
----
-19
-24
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT - col2 DIV 8 - + col0 AS col0 FROM tab1
----
-63
-92
-99

skipif mysql # not compatible
query I rowsort label-5074
SELECT - col2 / 8 - + col0 AS col0 FROM tab1
----
-63
-92
-99

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-5077
SELECT 73, + COUNT( * ) col2 FROM tab1 AS cor0
----
73
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5077
SELECT 73, + COUNT ( * ) col2 FROM tab1 AS cor0
----
73
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col1, 86 * + col2, - 82 * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> + 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query II rowsort
SELECT ALL - + col1 * - col2, col1 FROM tab1 cor0
----
1344
14
295
5
3196
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL - col1 DIV - - col0 + ( - col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-100
-2214
-9801

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL - col1 / - - col0 + ( - col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-100
-2214
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 58 col1 FROM tab1 WHERE - 11 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE - 41 + 32 * + col1 < + col2 * + 74 + 98 + - 61 + - col1 * - col1
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5085
SELECT + CAST( + + ( - + COUNT( * ) ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5085
SELECT + CAST ( + + ( - + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT col2 * + 42, - 47 AS col0 FROM tab0
----
1974
-47
4158
-47
420
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 8 IS NOT NULL
----

query I rowsort
SELECT - ( + + 67 ) AS col2 FROM tab0
----
-67
-67
-67

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NULL < col1
----

query I rowsort
SELECT DISTINCT + 40 * 20 FROM tab1
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 / col1 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 / col1 ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5092
SELECT ALL + + ( + + COUNT( * ) ), + COUNT( * ), COUNT( * ) FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query III rowsort label-5092
SELECT ALL + + ( + + COUNT ( * ) ), + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL + MAX( DISTINCT + 82 ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL + MAX ( DISTINCT + 82 ) FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5094
SELECT - MAX( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 / + col2 * 52, - col0, - col0, - col0, ( CAST( col1 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT - MAX ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 / + col2 * 52, - col0, - col0, - col0, ( CAST ( col1 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT + COUNT( * ) * + 66 FROM tab0 cor0
----
198

skipif mysql # not compatible
query I rowsort label-5095
SELECT + COUNT ( * ) * + 66 FROM tab0 cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT + - 90 + + COUNT( * ) + - + 38 + - + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-130

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT + - 90 + + COUNT ( * ) + - + 38 + - + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + 93 + - COUNT( * ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5097
SELECT + 93 + - COUNT ( * ) AS col2 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5098
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - CAST( NULL AS SIGNED ) + - col0 * - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5098
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - CAST ( NULL AS INTEGER ) + - col0 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5099
SELECT CAST( - - SUM( DISTINCT col2 ) AS SIGNED ) + + + COUNT( * ) AS col0, - COUNT( * ) * ( + ( 91 ) ) FROM tab2 AS cor0
----
124
-273

skipif mysql # not compatible
query II rowsort label-5099
SELECT CAST ( - - SUM ( DISTINCT col2 ) AS INTEGER ) + + + COUNT ( * ) AS col0, - COUNT ( * ) * ( + ( 91 ) ) FROM tab2 AS cor0
----
124
-273

query I rowsort
SELECT DISTINCT - col0 + + + 78 FROM tab1 AS cor0
----
-13
-7
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT + COUNT( * ) col0, - COUNT( * ) col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5101
SELECT + COUNT ( * ) col0, - COUNT ( * ) col0 FROM tab0 AS cor0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 AS col0, - 39 col1 FROM tab2 AS cor0
----
-58
-39
-58
-39
-58
-39

query I rowsort
SELECT ALL 20 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT + - 82 AS col0, COUNT( ALL - col1 ) * + MIN( col0 ) + + + ( + 26 ) AS col2 FROM tab2 cor0
----
-82
164

skipif mysql # not compatible
query II rowsort label-5104
SELECT + - 82 AS col0, COUNT ( ALL - col1 ) * + MIN ( col0 ) + + + ( + 26 ) AS col2 FROM tab2 cor0
----
-82
164

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT - - MAX( + - col0 ) * COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT - - MAX ( + - col0 ) * COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 * col2 AS col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

query III rowsort
SELECT * FROM tab2 cor0 WHERE 91 / + 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - 65 FROM tab1 cor0 WHERE NOT col2 * - 34 + 51 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) + 21 col1 FROM tab0
----
102
22
42

query I rowsort
SELECT - 60 * - col2 AS col2 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT ALL 47 + - + 64 * + 56 FROM tab2
----
-3537
-3537
-3537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * - col2 col2 FROM tab0
----
-1222
-2574
-260

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( NOT NULL < - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + 12 + - COUNT( * ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5114
SELECT DISTINCT + 12 + - COUNT ( * ) col2 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT ALL + - 8 - - col2 DIV + 8 FROM tab2 AS cor0
----
-1
-3
-6

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + - 8 - - col2 / + 8 FROM tab2 AS cor0
----
-1
-3
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - 89 * + - col0 col0 FROM tab1 AS cor0
----
4443
7506
8031

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT DISTINCT - COUNT( * ) * + 72 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT - COUNT ( * ) * + 72 FROM tab1
----
-216

query I rowsort
SELECT DISTINCT 66 * + col1 AS col0 FROM tab1
----
3102
330
924

onlyif mysql # DIV for integer division: 
query I rowsort label-5119
SELECT 77 DIV + col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5119
SELECT 77 / + col0 AS col2 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT ALL 84 DIV col1 AS col2 FROM tab1
----
1
16
6

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL 84 / col1 AS col2 FROM tab1
----
1
16
6

query I rowsort
SELECT - 99 * 38 + - col1 FROM tab0 cor0
----
-3763
-3783
-3843

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL - - col2 DIV - 31 + col2 * + 85 FROM tab1 AS cor0
----
5014
5778
8157

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL - - col2 / - 31 + col2 * + 85 FROM tab1 AS cor0
----
5014
5778
8157

query II rowsort
SELECT - 48, ( ( 13 ) ) / + 18 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + col2 + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT ALL + 39 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + 39 / + col1 AS col2 FROM tab1 AS cor0
----
0
2
7

query II rowsort
SELECT - 70, col2 + - 71 + col1 * ( + col1 ) AS col1 FROM tab2 cor0
----
-70
2553
-70
4476
-70
5898

query II rowsort
SELECT + 33, - ( - col2 ) AS col1 FROM tab0
----
33
10
33
47
33
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT ALL + ( - 5 ) DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL + ( - 5 ) / + + col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT + 86 + - 64 + + col2 * - col0, col0 AS col1 FROM tab2
----
-1036
46
-2538
64
-4328
75

query I rowsort
SELECT col1 + - + 31 + + - col2 FROM tab0 AS cor0
----
-129
-20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - COUNT( + col1 ) + 48 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5132
SELECT - COUNT ( + col1 ) + 48 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + + 17 * - + COUNT( * ) + + COUNT( * ) * + COUNT( * ) + - SUM( DISTINCT - ( + 33 ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5133
SELECT + + 17 * - + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) + - SUM ( DISTINCT - ( + 33 ) ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5134
SELECT ALL - ( - COUNT( * ) ) AS col2, CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5134
SELECT ALL - ( - COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL - 2 * - col0 / - 80 FROM tab1 cor0 WHERE NOT ( - - CAST( NULL AS SIGNED ) ) + - col2 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - 2 * - col0 / - 80 FROM tab1 cor0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) + - col2 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + - + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 4 - + 91 AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5138
SELECT DISTINCT - - 35 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - - 35 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - ( COUNT( * ) ) + 44 + + ( + COUNT( ALL - col2 ) ) AS col0 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5139
SELECT - ( COUNT ( * ) ) + 44 + + ( + COUNT ( ALL - col2 ) ) AS col0 FROM tab2 AS cor0
----
44

query I rowsort
SELECT DISTINCT + + ( - + 43 ) AS col1 FROM tab2 cor0
----
-43

query I rowsort
SELECT DISTINCT col2 * - ( - col0 ) + - col0 FROM tab0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT - 77 DIV + col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 77 / + col0 AS col2 FROM tab0
----
-5
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + + + col1 IS NULL
----

query I rowsort
SELECT ALL - + col1 * - + 7 FROM tab2 AS cor0
----
357
469
539

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / + - col2 + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col2 * col0 col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT - 75 * - 14 AS col0 FROM tab1
----
1050
1050
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT SUM( + + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT SUM ( + + col2 ) AS col1 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 23 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + 71 * + COUNT( * ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-5150
SELECT + 71 * + COUNT ( * ) FROM tab2 AS cor0
----
213

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 30 * - + col1 + - col2 - - - col0 * + - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + CAST( NULL AS SIGNED ) * - 83 * + 61 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + CAST ( NULL AS INTEGER ) * - 83 * + 61 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + 14 FROM tab2
----
65
81
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT COUNT( * ) * + + 54 FROM tab2 WHERE ( NULL ) < + col2
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT COUNT ( * ) * + + 54 FROM tab2 WHERE ( NULL ) < + col2
----
0

query I rowsort
SELECT ALL col2 + 47 FROM tab2
----
105
70
87

query II rowsort
SELECT + 71, 81 AS col0 FROM tab0 AS cor0
----
71
81
71
81
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL + - MAX( ALL - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + - MAX ( ALL - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( - col2 ) + - col0 FROM tab1
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query II rowsort label-5159
SELECT + + col1 AS col1, - col2 * ( - col0 ) DIV - + col1 FROM tab2 AS cor0
----
51
-20
67
-64
77
-33

skipif mysql # not compatible
query II rowsort label-5159
SELECT + + col1 AS col1, - col2 * ( - col0 ) / - + col1 FROM tab2 AS cor0
----
51
-20
67
-64
77
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 99 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT - col2 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT - col2 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT + ( - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5162
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT 76 * col0 FROM tab2 cor0
----
3496
4864
5700

query I rowsort
SELECT ( 21 ) - - 97 AS col2 FROM tab1
----
118
118
118

onlyif mysql # DIV for integer division: 
query I rowsort label-5165
SELECT DISTINCT col0 + - + col1 DIV - ( - col1 ) col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5165
SELECT DISTINCT col0 + - + col1 / - ( - col1 ) col1 FROM tab1
----
50
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT 57 - + + COUNT( * ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5166
SELECT 57 - + + COUNT ( * ) AS col1 FROM tab2
----
54

query I rowsort
SELECT ALL - ( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 76 AS col0 FROM tab0 cor0
----
76
76
76

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 < col1
----

query I rowsort
SELECT ALL + - 63 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 * - - 27 FROM tab1
----
-1593
-1836
-2592

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * - + col2 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 80 * ( - + 35 ) / 66 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5174
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 82 FROM tab2 cor0
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 82 FROM tab2 cor0
----
NULL
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL - - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - 45 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5176
SELECT - 45 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-135

query II rowsort
SELECT - 15 AS col2, + col2 + 14 * - + 70 AS col2 FROM tab1 cor0
----
-15
-884
-15
-912
-15
-921

query II rowsort
SELECT + 79, + col1 * col0 AS col0 FROM tab2 AS cor0
----
79
2346
79
4928
79
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - + COUNT( col0 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5179
SELECT - + COUNT ( col0 ) AS col0 FROM tab1 cor0
----
-3

query II rowsort
SELECT ALL + - col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT + - col1 + - - col1 + - col2 FROM tab0 WHERE col1 IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT ALL - col0 + 46 AS col2, col2 + 84 AS col0 FROM tab2
----
-18
124
-29
142
0
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT 46 + + - COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-5183
SELECT 46 + + - COUNT ( * ) FROM tab2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5184
SELECT - CAST( NULL AS SIGNED ) * + + 6 + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT - CAST ( NULL AS INTEGER ) * + + 6 + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT DISTINCT + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 40 * + 82 FROM tab0 AS cor0
----
3280
3280
3280

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT ALL - 74 DIV 65 - + col0 + + + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - 74 / 65 - + col0 + + + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( + + col1 ) - - col2 AS col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT + col1 FROM tab2 WHERE ( + - 15 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * col0 + + - ( + col2 ) col2 FROM tab2 AS cor0
----
3427
4760
5567

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT - 49 - + 0 + - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT - 49 - + 0 + - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-40

query I rowsort
SELECT - + col2 - - 66 + - col2 AS col2 FROM tab2 AS cor0
----
-14
-50
20

query I rowsort
SELECT - 12 + + col0 AS col0 FROM tab0 cor0
----
3
75
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT 95 * + COUNT( * ) * + + COUNT( * ) * + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
2562

skipif mysql # not compatible
query I rowsort label-5194
SELECT 95 * + COUNT ( * ) * + + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
2562

query I rowsort
SELECT DISTINCT col2 * - 78 FROM tab2 AS cor0
----
-1794
-3120
-4524

query I rowsort
SELECT ALL + 86 - + col2 AS col1 FROM tab0 AS cor0
----
-13
39
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 NOT BETWEEN - col2 AND 96
----

query II rowsort
SELECT DISTINCT 31 - col1 + 54 AS col1, - col2 FROM tab2 AS cor0
----
18
-58
34
-23
8
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT 78 DIV + col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-5199
SELECT 78 / + col1 FROM tab1
----
1
15
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5200
SELECT 2, - SUM( + 70 ) AS col2 FROM tab2
----
2
-210

skipif mysql # not compatible
query II rowsort label-5200
SELECT 2, - SUM ( + 70 ) AS col2 FROM tab2
----
2
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - ( + col2 ) * + - col0 + - col2 col0 FROM tab2 WHERE NOT ( col2 * + - ( 59 ) > - - col0 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5202
SELECT col0 AS col1, CAST( NULL AS SIGNED ) + col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5202
SELECT col0 AS col1, CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT 26 DIV + - ( + col1 ) FROM tab0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT 26 / + - ( + col1 ) FROM tab0
----
-1
-26
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5204
SELECT DISTINCT col0, + col2 * + + 59 * - 62 * + 71 * + + CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5204
SELECT DISTINCT col0, + col2 * + + 59 * - 62 * + 71 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + AVG ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5207
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 BETWEEN + col2 * - col1 + - + CAST( NULL AS SIGNED ) + + 90 AND ( - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5207
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 BETWEEN + col2 * - col1 + - + CAST ( NULL AS INTEGER ) + + 90 AND ( - CAST ( - col2 AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT + 1 AS col2, 30 AS col1 FROM tab2 AS cor0
----
1
30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 61 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab0 cor0
----
54
54
54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - 69 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 70 <> NULL )
----

query I rowsort
SELECT ALL - - 38 FROM tab1 AS cor0 WHERE ( NOT ( 9 IS NULL ) )
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT col0 + CAST( + col1 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
143
205
217

skipif mysql # not compatible
query I rowsort label-5215
SELECT col0 + CAST ( + col1 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
143
205
217

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col0 ) * + 9 FROM tab2 AS cor0
----
-414
-576
-675

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 + - 55 * + 17, 35 AS col2 FROM tab2
----
-877
35
-895
35
-912
35

query I rowsort
SELECT - 40 * 93 FROM tab2
----
-3720
-3720
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - SUM( - - 67 ) FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-5222
SELECT - SUM ( - - 67 ) FROM tab1
----
-201

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 + + col1 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL + 73 * 62 - + 39 FROM tab2 AS cor0
----
4487
4487
4487

query I rowsort
SELECT ALL - - 6 * + col0 FROM tab0 AS cor0
----
522
582
90

query II rowsort
SELECT ALL - 3 * col2 + - 55, - 74 AS col2 FROM tab2 AS cor0
----
-124
-74
-175
-74
-229
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT DISTINCT ( + 58 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT ( + 58 ) / - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 59 * + col2 AS col2 FROM tab0
----
2773
5841
590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT + 8 + - - ( - - 25 ) + - col1 / + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT + 8 + - - ( - - 25 ) + - col1 / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col2 ) + - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 - col1 * - + col1 AS col0 FROM tab0 AS cor0
----
-98
431
6514

query I rowsort
SELECT ALL 4 - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-130
-150
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + - ( MAX( 76 ) ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5235
SELECT + - ( MAX ( 76 ) ) FROM tab0 AS cor0
----
-76

query I rowsort
SELECT - 85 * + col2 AS col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

query I rowsort
SELECT + col1 + - + 38 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) * + + 91 = - 3 + + + ( + 29 ) + - col0 * + + 10
----
-24
-33
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5238
SELECT DISTINCT - ( col0 ) * + + col2 * - - CAST( - + 77 AS SIGNED ), col0 * col2 AS col2 FROM tab0 AS cor0
----
54285
705
66990
870
739431
9603

skipif mysql # not compatible
query II rowsort label-5238
SELECT DISTINCT - ( col0 ) * + + col2 * - - CAST ( - + 77 AS INTEGER ), col0 * col2 AS col2 FROM tab0 AS cor0
----
54285
705
66990
870
739431
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT ALL + - col2 DIV - - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + - col2 / - - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - 74 * + MIN( - col0 ) FROM tab1
----
6734

skipif mysql # not compatible
query I rowsort label-5240
SELECT - 74 * + MIN ( - col0 ) FROM tab1
----
6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5241
SELECT DISTINCT COUNT( * ) DIV + 12 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT COUNT ( * ) / + 12 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5242
SELECT - MAX( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT - MAX ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT DISTINCT CAST( - 27 AS SIGNED ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT CAST ( - 27 AS INTEGER ) FROM tab1
----
-27

query I rowsort
SELECT ALL + - col0 * + - 85 FROM tab2 WHERE NOT + col2 * + 95 * + 87 / + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT DISTINCT - 47 AS col0, + COUNT( * ) FROM tab0
----
-47
3

skipif mysql # not compatible
query II rowsort label-5245
SELECT DISTINCT - 47 AS col0, + COUNT ( * ) FROM tab0
----
-47
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) <> col0
----

query II rowsort
SELECT - col1, ( + + col1 ) + + col0 FROM tab1 WHERE NOT NULL <> - col0 * - - 91
----

query I rowsort
SELECT - ( - 52 ) FROM tab1 cor0
----
52
52
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT col0 * - - col1 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT - SUM( 83 ) FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - SUM ( 83 ) FROM tab2 AS cor0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT ALL - + ( + 92 ) DIV + - 37 + col1 FROM tab1 AS cor0
----
16
49
7

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL - + ( + 92 ) / + - 37 + col1 FROM tab1 AS cor0
----
16
49
7

query II rowsort
SELECT ALL - col2 AS col1, - 12 AS col2 FROM tab2
----
-23
-12
-40
-12
-58
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - COUNT( DISTINCT + - 75 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - COUNT ( DISTINCT + - 75 ) AS col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5254
SELECT + col0, - 50 DIV + ( + + col1 ) - ( + - col0 ) * - + 57 FROM tab0
----
15
-855
87
-4961
97
-5579

skipif mysql # not compatible
query II rowsort label-5254
SELECT + col0, - 50 / + ( + + col1 ) - ( + - col0 ) * - + 57 FROM tab0
----
15
-855
87
-4961
97
-5579

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT + col1 DIV - 50 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5255
SELECT + col1 / - 50 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - col1 * + col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + SUM( + 58 ) AS col2 FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5257
SELECT + SUM ( + 58 ) AS col2 FROM tab1 AS cor0
----
174

query II rowsort
SELECT DISTINCT - - col0 AS col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT - 85 * + AVG ( - CAST( NULL AS SIGNED ) ) - + 93 + + + 69 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT - 85 * + AVG ( - CAST ( NULL AS INTEGER ) ) - + 93 + + + 69 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 45 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT DISTINCT - COUNT( * ) AS col0, 97 FROM tab0 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-5261
SELECT DISTINCT - COUNT ( * ) AS col0, 97 FROM tab0 AS cor0
----
-3
97

query II rowsort
SELECT DISTINCT 93, col2 FROM tab2 AS cor0
----
93
23
93
40
93
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL + SUM( col0 ) AS col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + SUM ( col0 ) AS col0 FROM tab1 cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5264
SELECT ALL ( + col2 ), CAST( + - col0 AS SIGNED ) FROM tab1
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
query II rowsort label-5264
SELECT ALL ( + col2 ), CAST ( + - col0 AS INTEGER ) FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + COUNT( * ) + 21 + 14 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-5265
SELECT + COUNT ( * ) + 21 + 14 FROM tab2
----
38

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - - 75 + - col0 FROM tab1
----
4340
5009
7149

query II rowsort
SELECT - 84 + + - col1, col0 FROM tab1
----
-131
91
-89
85
-98
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 AS col0, col0 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
22
46
22
64
22
75

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + + - 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL - MIN( DISTINCT 45 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL - MIN ( DISTINCT 45 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE ( - 34 IS NULL )
----

query I rowsort
SELECT DISTINCT + + col2 * - - 29 AS col1 FROM tab0 AS cor0
----
1363
2871
290

query I rowsort
SELECT ALL col0 * + 30 * - + 29 AS col2 FROM tab0 cor0
----
-13050
-75690
-84390

query I rowsort
SELECT 29 / col0 FROM tab0 AS cor0 WHERE NOT - 75 / col0 - - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT MIN( - + 46 ) * COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-5277
SELECT MIN ( - + 46 ) * COUNT ( * ) FROM tab1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL COUNT( * ) * - - 52 * + 60 AS col0 FROM tab1
----
9360

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL COUNT ( * ) * - - 52 * + 60 AS col0 FROM tab1
----
9360

query III rowsort
SELECT * FROM tab2 WHERE NOT - 51 > - col1 / 10 * + col1
----

query I rowsort
SELECT + col1 * + 97 FROM tab0
----
2037
7857
97

query I rowsort
SELECT col0 * + ( + 0 ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT DISTINCT - col0 DIV + 85 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT - col0 / + 85 AS col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - col2 AS col0, - 88 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-88
-68
-88
-96
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 + - 76 AND + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - 75 AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE - col1 + + - 0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT col0 FROM tab0 cor0 WHERE - col2 * + CAST( NULL AS SIGNED ) / CAST( - col2 AS SIGNED ) + - col1 + ( + + col0 ) + - - 57 + 11 * + - 41 + - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5287
SELECT col0 FROM tab0 cor0 WHERE - col2 * + CAST ( NULL AS INTEGER ) / CAST ( - col2 AS INTEGER ) + - col1 + ( + + col0 ) + - - 57 + 11 * + - 41 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + col2 * + 47 * ( - 92 ) IS NULL
----

query I rowsort
SELECT col1 * - + 94 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ( - MAX( + - 94 ) ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-5290
SELECT ( - MAX ( + - 94 ) ) FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT MAX( + - col1 ) + - - 55 * - MIN( DISTINCT 68 ) AS col1 FROM tab0
----
-3741

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT MAX ( + - col1 ) + - - 55 * - MIN ( DISTINCT 68 ) AS col1 FROM tab0
----
-3741

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT + 63 DIV + - 13 + - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-14
-32
-98

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 63 / + - 13 + - col1 + + - col1 AS col2 FROM tab1 AS cor0
----
-14
-32
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + - ( - ( 60 ) ) * + 29 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT + CAST( - + col0 AS SIGNED ) * - col1 + - 55 FROM tab2 AS cor0
----
2291
4873
4970

skipif mysql # not compatible
query I rowsort label-5294
SELECT + CAST ( - + col0 AS INTEGER ) * - col1 + - 55 FROM tab2 AS cor0
----
2291
4873
4970

query I rowsort
SELECT + col0 + 88 FROM tab0
----
103
175
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( + 6 AS SIGNED ), - col0 ) AND NOT ( ( NOT col0 <> - 26 / + + 58 ) )
----

skipif mysql # not compatible
query I rowsort label-5296
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( + 6 AS INTEGER ), - col0 ) AND NOT ( ( NOT col0 <> - 26 / + + 58 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5297
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * 65 AND - CAST( + + col0 AS SIGNED ) * - - 38 * col0
----

skipif mysql # not compatible
query III rowsort label-5297
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * 65 AND - CAST ( + + col0 AS INTEGER ) * - - 38 * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT + MIN( + + 76 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
76
3

skipif mysql # not compatible
query II rowsort label-5298
SELECT + MIN ( + + 76 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
76
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - + MAX( ALL + ( + 99 ) ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5299
SELECT - + MAX ( ALL + ( + 99 ) ) FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL SUM( DISTINCT - - ( + 77 ) ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL SUM ( DISTINCT - - ( + 77 ) ) FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL - - SUM( col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - - SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - ( - + col0 ) FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5303
SELECT ALL col1 * col2 DIV + + col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL col1 * col2 / + + col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL col1 * - + ( col2 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT MIN( ( - col0 ) ) * - 28 col0 FROM tab2
----
2100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5305
SELECT MIN ( ( - col0 ) ) * - 28 col0 FROM tab2
----
2100

query II rowsort
SELECT DISTINCT col2, 86 FROM tab0 AS cor0
----
10
86
47
86
99
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5307
SELECT COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - 26 * - 67 AS col0 FROM tab1
----
1742
1742
1742

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 NOT IN ( 13 )
----

query I rowsort
SELECT DISTINCT col0 * 33 AS col2 FROM tab1 WHERE NOT NULL = ( - 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + + 73 col1 FROM tab1
----
107
107
107

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5313
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND col1 * + CAST( NULL AS SIGNED ) - + col1
----

skipif mysql # not compatible
query III rowsort label-5313
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND col1 * + CAST ( NULL AS INTEGER ) - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + 31 AND + 75 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT COUNT( * ) + - SUM( - 64 ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5315
SELECT COUNT ( * ) + - SUM ( - 64 ) FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT COUNT( DISTINCT ( 67 ) ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( DISTINCT ( 67 ) ) AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL - ( + col0 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT - 71 - - MAX( 35 ) * COUNT( * ) AS col0 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT - 71 - - MAX ( 35 ) * COUNT ( * ) AS col0 FROM tab0
----
34

query I rowsort
SELECT DISTINCT + 15 + + col0 AS col1 FROM tab2
----
61
79
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT COUNT( * ) * + 7 col0 FROM tab2
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5320
SELECT COUNT ( * ) * + 7 col0 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT - 21 + col1 DIV - col1 AS col0 FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-5321
SELECT - 21 + col1 / - col1 AS col0 FROM tab0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL - 12 + + CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - 12 + + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 86 col1 FROM tab1
----
4386
7310
7826

query I rowsort
SELECT 6 * + 98 FROM tab0
----
588
588
588

query I rowsort
SELECT + col1 * - col2 + + 45 AS col1 FROM tab1
----
-1299
-250
-3151

query I rowsort
SELECT - col1 * - 89 + - col0 FROM tab2
----
4493
5888
6789

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL <= 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * 14 col0 FROM tab2
----
98

query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab1 WHERE NOT 49 > - col1 * 79
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col0 ) NOT BETWEEN - 23 * - 37 AND ( - 33 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT DISTINCT col0 DIV 1 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT col0 / 1 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - ( - 53 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5334
SELECT * FROM tab0 AS cor0 WHERE - CAST( col2 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5334
SELECT * FROM tab0 AS cor0 WHERE - CAST ( col2 AS INTEGER ) * col2 IS NULL
----

query I rowsort
SELECT DISTINCT 91 - + col0 AS col0 FROM tab1 AS cor0
----
0
40
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 * col0 + 20 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT + 92 * + 59 FROM tab2 AS cor0 WHERE - CAST( col0 AS SIGNED ) NOT IN ( + col0 * + col0 )
----
5428

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT + 92 * + 59 FROM tab2 AS cor0 WHERE - CAST ( col0 AS INTEGER ) NOT IN ( + col0 * + col0 )
----
5428

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT 81 * col2 FROM tab0
----
3807
8019
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT - 31 DIV COUNT( * ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5340
SELECT - 31 / COUNT ( * ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 4 * col0 ) <> 65 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT DISTINCT + col1 + + col2 col2 FROM tab0 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) + col2 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5342
SELECT DISTINCT + col1 + + col2 col2 FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) + col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT - + SUM( DISTINCT + 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5343
SELECT - + SUM ( DISTINCT + 91 ) FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT MAX( ALL + 40 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT MAX ( ALL + 40 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col2 ) <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 21 col0 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL 47 + 50 AS col1 FROM tab0 AS cor0 WHERE NULL < ( + col0 + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 * + 96 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 - + col2 AND col2
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 - 70 > + col0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL MIN( - - 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL MIN ( - - 82 ) FROM tab2
----
82

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 89 + + col2 ) <> + 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 37 + - + col0 AS col1 FROM tab0
----
-124
-134
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT MIN( + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5353
SELECT MIN ( + col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT ALL + ( ( + 85 ) ) - - col1 * 59 FROM tab0 WHERE NULL IN ( - 16 * 20 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT col1 * 52 DIV 52 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5355
SELECT col1 * 52 / 52 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE NOT 25 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + ( - 54 ) AS col0 FROM tab1 cor0
----
-3186
-3672
-5184

query I rowsort
SELECT - 43 * + col0 + - ( 43 ) * + 95 FROM tab0 AS cor0
----
-4730
-7826
-8256

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NULL <= ( 91 + + 46 + 39 )
----

query I rowsort
SELECT DISTINCT + - 51 * + col1 AS col0 FROM tab0 AS cor0
----
-1071
-4131
-51

query I rowsort
SELECT ALL - 69 * - + ( + col0 ) FROM tab2 cor0
----
3174
4416
5175

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + COUNT( DISTINCT + 61 ) * + SUM( col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5362
SELECT + COUNT ( DISTINCT + 61 ) * + SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 99 * + + col2 FROM tab1 AS cor0
----
-5841
-6732
-9504

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 WHERE NOT 69 > ( - + 56 )
----

query I rowsort
SELECT ALL + col0 + + 84 AS col1 FROM tab1 AS cor0
----
135
169
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5366
SELECT DISTINCT COUNT( * ) * + - MIN( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT COUNT ( * ) * + - MIN ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT 40 - + COUNT( * ) + - COUNT( + col0 ) * 69 FROM tab0
----
-170

skipif mysql # not compatible
query I rowsort label-5367
SELECT 40 - + COUNT ( * ) + - COUNT ( + col0 ) * 69 FROM tab0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT - col2 * - CAST( NULL AS SIGNED ) / - - col2 * + col0 - 21 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT - col2 * - CAST ( NULL AS INTEGER ) / - - col2 * + col0 - 21 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col1 FROM tab0 WHERE NULL IS NULL
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) + col2 NOT BETWEEN NULL AND - 92 + col2 AND NULL IN ( 5 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT DISTINCT - - 49 DIV col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT - - 49 / col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + ( col0 ) + col1 FROM tab2 WHERE - col1 * ( col1 ) IS NOT NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( + 41 * - 14 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( + 41 * - 14 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 / + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT - SUM( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - SUM ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) >= NULL
----

query I rowsort
SELECT + col1 * + - 44 AS col1 FROM tab2 cor0
----
-2244
-2948
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - COUNT( ALL - 19 ) * + MIN( + 83 ) AS col0 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5378
SELECT - COUNT ( ALL - 19 ) * + MIN ( + 83 ) AS col0 FROM tab0 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 * - col2 col0 FROM tab1 AS cor0 WHERE NOT NULL >= - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL + MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT + COUNT( col2 ) + - 84 AS col0 FROM tab1 WHERE NOT + col0 * + col2 + + - col2 IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-5381
SELECT + COUNT ( col2 ) + - 84 AS col0 FROM tab1 WHERE NOT + col0 * + col2 + + - col2 IS NOT NULL
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5382
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + - 47 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5382
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + - 47 IS NULL
----

query II rowsort
SELECT DISTINCT 28 AS col0, - col2 FROM tab2
----
28
-23
28
-40
28
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5384
SELECT col2 FROM tab0 WHERE NOT NULL <> + CAST( NULL AS DECIMAL ) / - CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5384
SELECT col2 FROM tab0 WHERE NOT NULL <> + CAST ( NULL AS REAL ) / - CAST ( + - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL SUM( + + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL SUM ( + + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5386
SELECT + CAST( NULL AS SIGNED ) AS col2, + 81 AS col2 FROM tab0, tab0 AS cor0
----
18 values hashing to 522e15252c2b97148ece937d770f8e6f

skipif mysql # not compatible
query II rowsort label-5386
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab0, tab0 AS cor0
----
18 values hashing to 522e15252c2b97148ece937d770f8e6f

query II rowsort
SELECT ALL - col2, col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL + - col0 FROM tab0 cor0 WHERE col0 > NULL
----

query I rowsort
SELECT + col2 + + col0 - 1 FROM tab1 AS cor0
----
143
146
158

query I rowsort
SELECT + + ( - 88 ) + + + 59 AS col1 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + - 46 + - 96 FROM tab0 WHERE + - 22 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, col1 col1 FROM tab2 WHERE NULL IS NULL
----
23
51
40
77
58
67

query I rowsort
SELECT 94 - + ( col0 ) FROM tab2 AS cor0
----
19
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + - 20 - COUNT( * ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5394
SELECT + - 20 - COUNT ( * ) FROM tab0 AS cor0
----
-23

query I rowsort
SELECT col2 * + + col1 + + + col1 AS col0 FROM tab1 AS cor0
----
1358
300
3243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab2 AS cor0 WHERE 75 IS NOT NULL
----
76
76
76

query I rowsort
SELECT ALL + + col2 * 53 AS col0 FROM tab1 AS cor0
----
3127
3604
5088

query II rowsort
SELECT DISTINCT - - 64 AS col2, + col0 AS col2 FROM tab1 AS cor0 WHERE NULL = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5399
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT - 98 * - col2 IS NULL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT - 98 * - col2 IS NULL ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT ALL - 77 DIV - - col1 AS col2 FROM tab0
----
-3
-77
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - 77 / - - col1 AS col2 FROM tab0
----
-3
-77
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT DISTINCT + CAST( - COUNT( - col1 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + CAST ( - COUNT ( - col1 ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5402
SELECT DISTINCT - col0 AS col0, + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-5402
SELECT DISTINCT - col0 AS col0, + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + 49 + 22 * + col0 FROM tab1 WHERE NOT - + 49 IS NULL
----
1171
1919
2051

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL MIN( + 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL MIN ( + 37 ) FROM tab1
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + col1 + 24 / - col2 * + 60 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / ( col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT 27 + col1 + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT 27 + col1 + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5408
SELECT ALL - 92 DIV + - 43 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL - 92 / + - 43 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT DISTINCT + ( + - CAST( + + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + ( + - CAST ( + + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT ALL - + col0 DIV - + 87 + col2 * ( + - col1 ) AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL - + col0 / - + 87 + col2 * ( + - col1 ) AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 + - + col2, + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT + COUNT( - 93 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT + COUNT ( - 93 ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 42 NOT IN ( + col2 )
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT col1 DIV + - col0 * + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT col1 / + - col0 * + col0 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 52 col2 FROM tab1
----
-38
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 14 + - ( - - col1 ) + - 17 IS NULL
----

query I rowsort
SELECT col2 / + col1 AS col0 FROM tab1 WHERE NULL < col1
----

query II rowsort
SELECT 27, 32 + - 14 AS col0 FROM tab2
----
27
18
27
18
27
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 73 >= - col2 * - col0 * col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < + col0 * - - 75
----

query I rowsort
SELECT + - col1 * 36 * - ( + col2 ) FROM tab0 AS cor0
----
137052
3564
7560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( + - col1 ) ) * - col2 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT ALL - ( + + COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5424
SELECT ALL - ( + + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT - - CAST( NULL AS SIGNED ) * - 34 + - 65 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT - - CAST ( NULL AS INTEGER ) * - 34 + - 65 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 AS col2, 99 AS col0 FROM tab1 AS cor0
----
-51
99
-85
99
-91
99

query I rowsort
SELECT ALL - + 89 AS col2 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - col2 + 23 * + - col2 AS col2 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5429
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col1 * + - col0 - + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + CAST ( NULL AS REAL ) * col1 * + - col0 - + col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5430
SELECT DISTINCT - CAST( - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - CAST ( - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 - - col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-113
-178
-89

query I rowsort
SELECT DISTINCT + 75 - + col1 AS col0 FROM tab2 AS cor0
----
-2
24
8

query II rowsort
SELECT - + col1 * col2 * - - 75 - + 93 + + 24 + - - col1 * - ( + - col2 ) * + + 94 AS col0, ( - col1 ) FROM tab1 AS cor0
----
25467
-14
5536
-5
60655
-47

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT DISTINCT - 59 * + ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT - 59 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5438
SELECT DISTINCT * FROM tab2 WHERE + 59 NOT IN ( col2 + col2, CAST( - col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5438
SELECT DISTINCT * FROM tab2 WHERE + 59 NOT IN ( col2 + col2, CAST ( - col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 38 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL BETWEEN col1 AND col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5441
SELECT ALL + + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL + + col1 / - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

query II rowsort
SELECT ALL - 42 AS col2, + col2 AS col2 FROM tab2 AS cor0
----
-42
23
-42
40
-42
58

query II rowsort
SELECT ALL - + col0 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 - + - col1 FROM tab2 AS cor0
----
46
102
64
154
75
134

query II rowsort
SELECT - - col2 AS col1, 31 FROM tab0 AS cor0
----
10
31
47
31
99
31

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 48 IS NULL
----

query I rowsort
SELECT + - 37 * - 32 FROM tab0 AS cor0
----
1184
1184
1184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col2 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT ALL - col0 + - 94 FROM tab2
----
-140
-158
-169

query I rowsort
SELECT + 86 + + col0 AS col1 FROM tab0
----
101
173
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL - - COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - - COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT DISTINCT - - COUNT( * ) - 2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT - - COUNT ( * ) - 2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 81 ) * + col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 87 + col2 AS col1 FROM tab1
----
146
155
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( + 48 ) col2 FROM tab0 WHERE ( - - 69 ) * - 27 IS NULL
----
NULL

query II rowsort
SELECT ALL + col1 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT DISTINCT + ( + 86 ) FROM tab1 cor0
----
86

query I rowsort
SELECT DISTINCT + - col2 + + 4 + - - 91 AS col2 FROM tab2 AS cor0 WHERE NULL <> col0
----

query II rowsort
SELECT DISTINCT + col2, - col0 + + 60 AS col0 FROM tab2 AS cor0
----
23
14
40
-4
58
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / + col0 + 47 NOT BETWEEN NULL AND + 90
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col1 + - col2 + - - col1 + + col2 * - + ( 82 ) * + 85 * + + ( - - 62 ) + + + 59 AS col1 FROM tab0
----
15
-20310406
87
-4321309
97
-42781898

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT MAX( ALL - + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5465
SELECT MAX ( ALL - + col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT + 93 * - 11 AS col2 FROM tab2
----
-1023
-1023
-1023

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-26
-26
-26

query I rowsort
SELECT DISTINCT col2 * - + 56 * - 32 * - 0 * col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT - COUNT( * ) * 86 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - COUNT ( * ) * 86 FROM tab2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT 9 * + COUNT( * ) * + + 51 FROM tab1
----
1377

skipif mysql # not compatible
query I rowsort label-5470
SELECT 9 * + COUNT ( * ) * + + 51 FROM tab1
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL SUM( ALL + col0 ) * COUNT( * ) AS col0 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL SUM ( ALL + col0 ) * COUNT ( * ) AS col0 FROM tab2
----
555

query II rowsort
SELECT ALL + + col0, col2 FROM tab2 cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT - - 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT SUM( ALL + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5474
SELECT SUM ( ALL + + col1 ) FROM tab0
----
103

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT - - 70 IN ( - 58, + col0 * + + col1 * - + col0 )
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT DISTINCT + CAST( - - MAX( - 30 ) AS SIGNED ) col0 FROM tab1 cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5477
SELECT DISTINCT + CAST ( - - MAX ( - 30 ) AS INTEGER ) col0 FROM tab1 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + - MIN( + ( - - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5478
SELECT + - MIN ( + ( - - col2 ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col1 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - + SUM( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5480
SELECT - + SUM ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + + col2 col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5482
SELECT + COUNT( + + CAST( NULL AS SIGNED ) ) DIV + 47 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5482
SELECT + COUNT ( + + CAST ( NULL AS INTEGER ) ) / + 47 FROM tab0
----
0

query II rowsort
SELECT col2 AS col2, + 16 AS col0 FROM tab2
----
23
16
40
16
58
16

query I rowsort
SELECT ALL + col1 * + - 19 + - 73 FROM tab1
----
-168
-339
-966

query I rowsort
SELECT ALL + - col2 * - - col0 * + col2 + + col0 * - col1 + + + col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + 31 + - col0 FROM tab0 AS cor0
----
-56
-66
16

query I rowsort
SELECT DISTINCT - + col1 * - 97 FROM tab1 cor0
----
1358
4559
485

query I rowsort
SELECT + col0 + 24 FROM tab2 AS cor0
----
70
88
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - 49 + MIN( DISTINCT + + 0 ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5489
SELECT - 49 + MIN ( DISTINCT + + 0 ) FROM tab0 AS cor0
----
-49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 44 BETWEEN NULL AND - ( + col2 )
----

query I rowsort
SELECT + + ( + 6 ) AS col0 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - + 43 AS col0 FROM tab0 cor0
----
-43
-43
-43

query I rowsort
SELECT + - 25 * - col1 FROM tab0 AS cor0
----
2025
25
525

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT + + 1 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT + + 1 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 * + col1 FROM tab1
----
1598
170
476

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5497
SELECT * FROM tab1 WHERE NOT - CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5497
SELECT * FROM tab1 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col0 + - 79 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-15
-33
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - + 4 * - MAX( ALL col2 ) + + 89 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
321

skipif mysql # not compatible
query I rowsort label-5499
SELECT - + 4 * - MAX ( ALL col2 ) + + 89 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
321

query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab2 WHERE NOT ( - 85 ) IS NOT NULL
----

query I rowsort
SELECT - 60 + + 41 - - - 46 * - col0 FROM tab2 cor0
----
2097
2925
3431

query I rowsort
SELECT + 61 + + 65 AS col1 FROM tab0 AS cor0
----
126
126
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5503
SELECT + + ( - CAST( - + col0 AS SIGNED ) ), ( + - 17 ) AS col0 FROM tab0 cor0
----
15
-17
87
-17
97
-17

skipif mysql # not compatible
query II rowsort label-5503
SELECT + + ( - CAST ( - + col0 AS INTEGER ) ), ( + - 17 ) AS col0 FROM tab0 cor0
----
15
-17
87
-17
97
-17

query I rowsort
SELECT DISTINCT + col1 * + ( + col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - 16
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 6 + col1 * - col0 ) <= ( + col2 ) + + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT - col1 * col2 - - 4 DIV 84 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-5507
SELECT - col1 * col2 - - 4 / 84 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT col2 * ( - 10 ) FROM tab2 AS cor0
----
-230
-400
-580

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 - - + col0 <> - - 99 / - 99
----

query I rowsort
SELECT DISTINCT + col2 * - + 92 AS col1 FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT - + 97 + + col0 FROM tab1 cor0
----
-12
-46
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 77 * + 80 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + + col0 * + col0 AS col1 FROM tab1
----
2550
7140
8190

query III rowsort
SELECT * FROM tab2 WHERE - ( + 40 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT - ( + + 22 ) + COUNT( * ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT - ( + + 22 ) + COUNT ( * ) FROM tab0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL + 31 + 76 * + + COUNT( * ) AS col1 FROM tab2
----
259

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + 31 + 76 * + + COUNT ( * ) AS col1 FROM tab2
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL SUM( ALL + 58 ) + + COUNT( * ) AS col2 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL SUM ( ALL + 58 ) + + COUNT ( * ) AS col2 FROM tab2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL COUNT( + col2 ) * + 1 - - COUNT( DISTINCT + col1 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL COUNT ( + col2 ) * + 1 - - COUNT ( DISTINCT + col1 ) FROM tab1
----
6

query I rowsort
SELECT 16 FROM tab0 AS cor0 WHERE + col1 < - col0
----

query I rowsort
SELECT DISTINCT + - col1 - + + 96 FROM tab0 cor0
----
-117
-177
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT ALL + col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + col1 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5522
SELECT col1 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query II rowsort label-5522
SELECT col1 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - col1 - col0 + + - 54 * col0 + + - col0 * - col1 + - - 73 AS col1 FROM tab0
----
-2906
-5166
382

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT MAX( - 25 ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-5524
SELECT MAX ( - 25 ) FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT COUNT( * ) * - - 99 AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-5525
SELECT COUNT ( * ) * - - 99 AS col2 FROM tab1
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5526
SELECT ALL - - ( + COUNT( * ) ) * + CAST( 78 AS SIGNED ) + 35 + ( + - 95 ) * ( 41 ) FROM tab1 AS cor0
----
-3626

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - - ( + COUNT ( * ) ) * + CAST ( 78 AS INTEGER ) + 35 + ( + - 95 ) * ( 41 ) FROM tab1 AS cor0
----
-3626

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT col0 BETWEEN - - col2 - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT ALL col2 / - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL col2 / - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 3 > + col2 + + - 52
----
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT + 11 * + SUM( ALL + - ( + - 53 ) ) AS col2 FROM tab0 AS cor0 WHERE 96 IS NOT NULL
----
1749

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + 11 * + SUM ( ALL + - ( + - 53 ) ) AS col2 FROM tab0 AS cor0 WHERE 96 IS NOT NULL
----
1749

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 50 + - + 48 IN ( - col0, col2 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 40, col1 FROM tab1 AS cor0
----
-40
14
-40
47
-40
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - ( - 56 ) col0 FROM tab2 AS cor0
----
46
56
64
56
75
56

query II rowsort
SELECT + col2 * col2 AS col0, + col2 FROM tab2
----
1600
40
3364
58
529
23

query I rowsort
SELECT 59 * + 97 FROM tab1 WHERE NOT - - 76 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col1 * + + 65 FROM tab2
----
-3315
-4355
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT DISTINCT + 37 DIV - col2 col1 FROM tab0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5538
SELECT DISTINCT + 37 / - col2 col1 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - ( - MAX( ALL 39 ) ) * + 7 * - COUNT( - col0 ) AS col0 FROM tab1
----
-819

skipif mysql # not compatible
query I rowsort label-5539
SELECT - ( - MAX ( ALL 39 ) ) * + 7 * - COUNT ( - col0 ) AS col0 FROM tab1
----
-819

query I rowsort
SELECT + col2 * + ( + col2 ) * + - col1 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab0 cor0
----
72

query I rowsort
SELECT ALL - ( + 36 ) FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL - CAST( + SUM( DISTINCT - - col2 ) AS SIGNED ) / + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - CAST ( + SUM ( DISTINCT - - col2 ) AS INTEGER ) / + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, 84 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + + MAX( DISTINCT ( ( - col2 ) ) ) * 24 AS col0 FROM tab0 cor0
----
-240

skipif mysql # not compatible
query I rowsort label-5544
SELECT + + MAX ( DISTINCT ( ( - col2 ) ) ) * 24 AS col0 FROM tab0 cor0
----
-240

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 81 * + + 3 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 64 + + 86 FROM tab1
----
150
150
150

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5547
SELECT * FROM tab1 cor0 WHERE CAST( + col1 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5547
SELECT * FROM tab1 cor0 WHERE CAST ( + col1 AS REAL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5548
SELECT ALL col0 DIV - + CAST( 23 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 IS NULL )
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL col0 / - + CAST ( 23 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 IS NULL )
----
-3
-4
0

query I rowsort
SELECT + 82 AS col2 FROM tab1 cor0
----
82
82
82

query I rowsort
SELECT ALL - - 86 * + + col1 AS col2 FROM tab1 AS cor0
----
1204
4042
430

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 * + col1 AND 18
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 43, - 10 )
----

query I rowsort
SELECT DISTINCT + 75 * + - 45 FROM tab2 AS cor0
----
-3375

query I rowsort
SELECT + 69 * - col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-1459
-168
-5636

query I rowsort
SELECT - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL SUM( ( - 25 ) ) AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL SUM ( ( - 25 ) ) AS col0 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - ( 84 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - ( 84 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT col0 / CAST( NULL AS SIGNED ) * + col0 / + 67 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT col0 / CAST ( NULL AS INTEGER ) * + col0 / + 67 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 47 - + ( + col2 ) * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT ALL 55 + + col1 + ( CAST( NULL AS SIGNED ) ) + - 67 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL 55 + + col1 + ( CAST ( NULL AS INTEGER ) ) + - 67 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT COUNT( * ) - + COUNT( * ) + + + 0 + - COUNT( * ) - + COUNT( 7 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-5562
SELECT COUNT ( * ) - + COUNT ( * ) + + + 0 + - COUNT ( * ) - + COUNT ( 7 ) FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT DISTINCT ( + col2 ) + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT ( + col2 ) + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * - col1 - - col1 - + + col2 * - col0 + + col0 + + 86 * - col0 AS col1 FROM tab2
----
-200
2531
3126

query I rowsort
SELECT 76 + 32 FROM tab2 AS cor0
----
108
108
108

query I rowsort
SELECT DISTINCT col0 + - - col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5567
SELECT + CAST( + - MIN( + ( - + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT + CAST ( + - MIN ( + ( - + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT - 70 DIV - - col1 col0 FROM tab0
----
-3
-70
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5568
SELECT - 70 / - - col1 col0 FROM tab0
----
-3
-70
0

query I rowsort
SELECT ALL col0 * - - ( - col1 ) * + + 46 + - + 27 FROM tab0 cor0
----
-4489
-55917
-84069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT - CAST( NULL AS SIGNED ) * AVG ( - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT - CAST ( NULL AS INTEGER ) * AVG ( - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 40 * + 54 FROM tab0 AS cor0
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + - COUNT( * ) * MIN( ALL + col0 ) col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5572
SELECT DISTINCT + - COUNT ( * ) * MIN ( ALL + col0 ) col1 FROM tab2 AS cor0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL col2 DIV - 91 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL col2 / - 91 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT DISTINCT + ( - COUNT( * ) ), - COUNT( * ) col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5574
SELECT DISTINCT + ( - COUNT ( * ) ), - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab2 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL ( - SUM( + - ( - ( col1 ) ) ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL ( - SUM ( + - ( - ( col1 ) ) ) ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT ( 75 ) FROM tab0
----
75

query I rowsort
SELECT - 61 + col2 AS col1 FROM tab0
----
-14
-51
38

query II rowsort
SELECT ALL 18, col0 FROM tab2
----
18
46
18
64
18
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT MAX( + col2 ) FROM tab0 AS cor0 WHERE NOT - 23 * col2 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-5582
SELECT MAX ( + col2 ) FROM tab0 AS cor0 WHERE NOT - 23 * col2 IS NULL
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT - - CAST( NULL AS SIGNED ) + - col0 + - + col2 * + - col0 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT - - CAST ( NULL AS INTEGER ) + - col0 + - + col2 * + - col0 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 57 + - - col1 FROM tab2 AS cor0
----
-6
10
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT + COUNT( * ) + - COUNT( * ) + - MAX( + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5585
SELECT + COUNT ( * ) + - COUNT ( * ) + - MAX ( + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT - - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5586
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5587
SELECT ALL + 0 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + 0 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL - col2 + + - col2 + + 72 AS col1 FROM tab1
----
-120
-46
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL + col1 + - + col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL + col1 + - + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN col1 + + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL + CAST( NULL AS SIGNED ) - - COUNT( * ) - 13 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + CAST ( NULL AS INTEGER ) - - COUNT ( * ) - 13 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 68 + col1 FROM tab1 cor0
----
115
73
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT 21 + + SUM( - + col2 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT 21 + + SUM ( - + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 * - - col0 AS col1 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT + col1 * + + col0 AS col0, col0 AS col0 FROM tab1 WHERE - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT ALL - col1 + - col0 DIV col0 FROM tab1
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - col1 + - col0 / col0 FROM tab1
----
-15
-48
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - 22 - + COUNT( * ) + 77 * + 20 * - 82 FROM tab1, tab1 AS cor0
----
-126311

skipif mysql # not compatible
query I rowsort label-5597
SELECT - 22 - + COUNT ( * ) + 77 * + 20 * - 82 FROM tab1, tab1 AS cor0
----
-126311

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5598
SELECT + COUNT( - col0 ) FROM tab0 AS cor0 WHERE NOT + ( - CAST( NULL AS DECIMAL ) ) + col1 * 3 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5598
SELECT + COUNT ( - col0 ) FROM tab0 AS cor0 WHERE NOT + ( - CAST ( NULL AS REAL ) ) + col1 * 3 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT - SUM( DISTINCT 2 ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5599
SELECT - SUM ( DISTINCT 2 ) AS col0 FROM tab2 AS cor0
----
-2

query II rowsort
SELECT DISTINCT col0, 23 FROM tab2
----
46
23
64
23
75
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 28 col1 FROM tab2
----
-1120
-1624
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT COUNT( * ) * - + 47 * - + COUNT( * ) FROM tab1
----
423

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT COUNT ( * ) * - + 47 * - + COUNT ( * ) FROM tab1
----
423

query II rowsort
SELECT ALL col0, + col0 + - - 25 + - + col2 + col0 * + + 80 * + + 34 FROM tab1
----
51
138700
85
231251
91
247568

onlyif mysql # DIV for integer division: 
query II rowsort label-5605
SELECT ALL - + col1 DIV + 68, - col0 DIV + + 67 AS col2 FROM tab1 AS cor0
----
0
-1
0
-1
0
0

skipif mysql # not compatible
query II rowsort label-5605
SELECT ALL - + col1 / + 68, - col0 / + + 67 AS col2 FROM tab1 AS cor0
----
0
-1
0
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5606
SELECT + col1 AS col2, - col1 DIV 41 FROM tab0 AS cor0
----
1
0
21
0
81
-1

skipif mysql # not compatible
query II rowsort label-5606
SELECT + col1 AS col2, - col1 / 41 FROM tab0 AS cor0
----
1
0
21
0
81
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5607
SELECT - MAX( col0 ) AS col0, CAST( NULL AS SIGNED ) / - 25 AS col1 FROM tab1 AS cor0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-5607
SELECT - MAX ( col0 ) AS col0, CAST ( NULL AS INTEGER ) / - 25 AS col1 FROM tab1 AS cor0
----
-91
NULL

query I rowsort
SELECT DISTINCT - - 78 FROM tab2 WHERE - - 94 NOT BETWEEN NULL AND 4
----
78

query I rowsort
SELECT ALL ( + + 70 ) + - + ( + col1 ) AS col0 FROM tab2
----
-7
19
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5610
SELECT DISTINCT 59 + COUNT( * ), 1 AS col1 FROM tab2
----
62
1

skipif mysql # not compatible
query II rowsort label-5610
SELECT DISTINCT 59 + COUNT ( * ), 1 AS col1 FROM tab2
----
62
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 42 * + 18, col2 * - 94 + col0 AS col0, + col2 col1 FROM tab1
----
9 values hashing to d46918969fea379738f9ca2fa8a4a82f

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT 50 * 19 * COUNT( * ) FROM tab0
----
2850

skipif mysql # not compatible
query I rowsort label-5612
SELECT 50 * 19 * COUNT ( * ) FROM tab0
----
2850

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) * + 58 + - 22 + + col1 - 8 + - col1 * + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5614
SELECT DISTINCT col0 * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col0, - col2 AS col1 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-5614
SELECT DISTINCT col0 * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col0, - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT COUNT( DISTINCT - 37 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT COUNT ( DISTINCT - 37 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT 36 + col1 FROM tab0
----
117
37
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL col2 * + CAST( - - col0 AS SIGNED ) + - 50 + - col2 * - col2 FROM tab1
----
10762
14062
8446

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL col2 * + CAST ( - - col0 AS INTEGER ) + - 50 + - col2 * - col2 FROM tab1
----
10762
14062
8446

query I rowsort
SELECT DISTINCT + 29 - + - col1 AS col0 FROM tab2 cor0
----
106
80
96

query I rowsort
SELECT DISTINCT - col2 + 94 AS col0 FROM tab0 AS cor0
----
-5
47
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT + 31 AS col1 FROM tab1 AS cor0 WHERE CAST( + 81 AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5620
SELECT + 31 AS col1 FROM tab1 AS cor0 WHERE CAST ( + 81 AS INTEGER ) * col0 IS NULL
----

query II rowsort
SELECT + - col1, 1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, - col2 FROM tab1 cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL 25 * + 73 + + 19 FROM tab1 AS cor0
----
1844
1844
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - SUM( ALL col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5624
SELECT - SUM ( ALL col1 ) AS col0 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT + COUNT( DISTINCT 44 ) - - 85 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT + COUNT ( DISTINCT 44 ) - - 85 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL + + MAX( + - col1 ) - - 17 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + + MAX ( + - col1 ) - - 17 FROM tab0 AS cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - + 96 col2 FROM tab1
----
101
110
143

query I rowsort
SELECT 33 - + col1 AS col2 FROM tab1
----
-14
19
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT - SUM( - 86 ) - COUNT( * ) AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5629
SELECT - SUM ( - 86 ) - COUNT ( * ) AS col2 FROM tab0
----
255

query II rowsort
SELECT DISTINCT + col0 * 0, col2 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT DISTINCT - - col2 + - + col1 * + col1 * + - 57 + + 45 AS col1 FROM tab2 WHERE NOT 83 * - 77 IS NULL
----
148325
255976
338038

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col0, col0, col1, - 62 * col1 * col2, + - col2 + + col1, col2 + + col1 * + + col1 + - 47 / col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT + MAX( ALL + 57 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5633
SELECT + MAX ( ALL + 57 ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT + MIN( ALL + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + MIN ( ALL + col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 7
----

query I rowsort
SELECT ALL 50 * + 69 AS col2 FROM tab1
----
3450
3450
3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 51 col1 FROM tab0
----
1
51
21
51
81
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5638
SELECT ALL + col2 * - - col2 DIV col2 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + col2 * - - col2 / col2 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT 88 * + ( - col0 ) * - 43 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 46 FROM tab1 cor0
----
46

query I rowsort
SELECT ( + - col1 ) * - - col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + - ( - ( + COUNT( + + 0 ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5642
SELECT + - ( - ( + COUNT ( + + 0 ) ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT - COUNT( * ) DIV + 5 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT - COUNT ( * ) / + 5 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT col1 DIV - col0 + + - ( + 10 ) col0 FROM tab1 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5644
SELECT col1 / - col0 + + - ( + 10 ) col0 FROM tab1 AS cor0
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 + + - 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT + 1 * - COUNT( * ) * ( + 48 ) AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5646
SELECT + 1 * - COUNT ( * ) * ( + 48 ) AS col2 FROM tab2 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL + - MIN( DISTINCT + col2 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL + - MIN ( DISTINCT + col2 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - SUM( ALL - 7 ) FROM tab2, tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-5648
SELECT - SUM ( ALL - 7 ) FROM tab2, tab2 cor0
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5649
SELECT + CAST( NULL AS DECIMAL ) * col1 + - - col2 + - - col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5649
SELECT + CAST ( NULL AS REAL ) * col1 + - - col2 + - - col1 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - - 21 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL COUNT( * ) + + ( + + COUNT( * ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL COUNT ( * ) + + ( + + COUNT ( * ) ) FROM tab2
----
6

query II rowsort
SELECT ALL col2 AS col0, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT + col0 + - 53 AS col2 FROM tab2 AS cor0
----
-7
11
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT + col2 * + col0 + - - 29 + col2 + - CAST( NULL AS SIGNED ) * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT + col2 * + col0 + - - 29 + col2 + - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT - ( + col1 ) DIV col2 + + col0 * col2 FROM tab2 AS cor0
----
1056
2559
4349

skipif mysql # not compatible
query I rowsort label-5655
SELECT - ( + col1 ) / col2 + + col0 * col2 FROM tab2 AS cor0
----
1056
2559
4349

query I rowsort
SELECT + + 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT + col2 + + 99 AS col1 FROM tab0
----
109
146
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + + + ( + - 24 ) FROM tab0
----
-105
-25
-45

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + + + ( + - 24 ) FROM tab0
----
-105
-25
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5659
SELECT * FROM tab2 AS cor0 WHERE col1 * + ( CAST( - + col0 AS SIGNED ) ) * + col1 * col2 * - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5659
SELECT * FROM tab2 AS cor0 WHERE col1 * + ( CAST ( - + col0 AS INTEGER ) ) * + col1 * col2 * - - col2 IS NULL
----

query II rowsort
SELECT + col0 + + + 95 AS col2, 61 FROM tab2 cor0
----
141
61
159
61
170
61

query I rowsort
SELECT + 16 + 88 * + - 16 * 2 FROM tab1 AS cor0
----
-2800
-2800
-2800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 52 + + ( - - col0 ) + + ( col0 ) / + 21 * col0 * - - col0 * + 52 / col2 + + + col0 * - col0 - - col2 col1 FROM tab2 AS cor0 WHERE col1 BETWEEN + 24 AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 = - ( + col0 ) * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 + - ( + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0
----

query II rowsort
SELECT + 14 AS col2, - col2 + + col0 + 86 FROM tab1
----
14
109
14
112
14
41

query II rowsort
SELECT DISTINCT + 25, col2 FROM tab0
----
25
10
25
47
25
99

query I rowsort
SELECT ALL + - 58 FROM tab2 cor0
----
-58
-58
-58

query I rowsort
SELECT ( 93 ) AS col1 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 58 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 58 IS NULL
----
3

query I rowsort
SELECT ALL - 13 + - col1 FROM tab1 AS cor0
----
-18
-27
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT ALL + MIN( ALL - col1 ) AS col0, + 34 + + ( + COUNT( * ) ) + - - MIN( ALL - 87 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-81
-50

skipif mysql # not compatible
query II rowsort label-5672
SELECT ALL + MIN ( ALL - col1 ) AS col0, + 34 + + ( + COUNT ( * ) ) + - - MIN ( ALL - 87 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-81
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5673
SELECT DISTINCT