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 * FROM tab1 AS cor0 WHERE NOT - col0 + - CAST( NULL AS SIGNED ) BETWEEN - 13 + - + 51 AND - 36
----

skipif mysql # not compatible
query III rowsort label-5673
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + - CAST ( NULL AS INTEGER ) BETWEEN - 13 + - + 51 AND - 36
----

query I rowsort
SELECT ALL - + col2 * - ( - 39 ) + + col0 + 5 AS col0 FROM tab0 AS cor0
----
-1813
-298
-3759

query I rowsort
SELECT ALL col1 + - 74 AS col2 FROM tab1
----
-27
-60
-69

query I rowsort
SELECT DISTINCT - col0 * + col1 * col0 + - + col1 + + + 77 AS col2 FROM tab0
----
-158893
-18229
-9333

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE - col1 = NULL
----

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

query I rowsort
SELECT ALL + 45 - - col2 FROM tab1 AS cor0
----
104
113
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT - + COUNT( * ) * - MAX( DISTINCT 90 ) col1 FROM tab1 AS cor0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5680
SELECT DISTINCT - + COUNT ( * ) * - MAX ( DISTINCT 90 ) col1 FROM tab1 AS cor0
----
270

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 74 / - col2 - - 38, col1 * col2 / - + col2 )
----

query I rowsort
SELECT + 30 + + col1 AS col2 FROM tab1
----
35
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> - col1
----
0

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

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

query I rowsort
SELECT DISTINCT + col0 * + 20 AS col2 FROM tab1 AS cor0
----
1020
1700
1820

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 57 * - + 47 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT ALL + 81 DIV - 96 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT ALL + 81 / - 96 col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT 71, - col0 * col1 * + 87 AS col1 FROM tab2 AS cor0
----
71
-204102
71
-428736
71
-437175

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT DISTINCT MAX( col1 ) * - 18 + + MAX( - - col2 ) AS col0 FROM tab1 AS cor0
----
-750

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT MAX ( col1 ) * - 18 + + MAX ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT DISTINCT col0 DIV - ( - col0 ) + + - 42 AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT col0 / - ( - col0 ) + + - 42 AS col2 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1215
-1827
-97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT + - 46, COUNT( * ) * - 9 AS col2 FROM tab0 AS cor0
----
-46
-27

skipif mysql # not compatible
query II rowsort label-5694
SELECT + - 46, COUNT ( * ) * - 9 AS col2 FROM tab0 AS cor0
----
-46
-27

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 38 > NULL
----

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 >= + 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) * 11 + col1 + 54 AS col1 FROM tab0
----
1144
185
652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT + CAST( + 81 AS SIGNED ) FROM tab2 WHERE NOT ( NOT ( NOT + 9 * + - 67 / 37 + + col2 >= NULL ) )
----

skipif mysql # not compatible
query I rowsort label-5701
SELECT + CAST ( + 81 AS INTEGER ) FROM tab2 WHERE NOT ( NOT ( NOT + 9 * + - 67 / 37 + + col2 >= NULL ) )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5702
SELECT + + SUM ( col2 ) col2 FROM tab2 cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5703
SELECT - - 69 DIV 38 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5703
SELECT - - 69 / 38 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

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

query I rowsort
SELECT - col2 * + 8 FROM tab1 AS cor0
----
-472
-544
-768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col2 col2 FROM tab1 AS cor0
----
-5310
-6120
-8640

query I rowsort
SELECT + col2 + - - 4 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT ALL 67 * - - 37 FROM tab2 AS cor0
----
2479
2479
2479

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT DISTINCT + CAST( + + SUM( DISTINCT col1 ) AS SIGNED ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + CAST ( + + SUM ( DISTINCT col1 ) AS INTEGER ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE + 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT DISTINCT col1 + - + 99 + col2 * - CAST( NULL AS SIGNED ) * - CAST( + 39 AS SIGNED ) + - col0 / + col1 + + + 81 + - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT col1 + - + 99 + col2 * - CAST ( NULL AS INTEGER ) * - CAST ( + 39 AS INTEGER ) + - col0 / + col1 + + + 81 + - col2 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 + + + col1 + - col0 * - 38 FROM tab2
----
1753
2445
2842

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

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

query I rowsort
SELECT ALL ( - 49 ) + - col2 - col0 FROM tab1
----
-193
-196
-208

query I rowsort
SELECT DISTINCT 88 * - 35 - - col1 + + - 69 + - - 33 FROM tab0 AS cor0
----
-3035
-3095
-3115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 91 * + 73 col2 FROM tab1 AS cor0
----
-6643

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

skipif mysql # not compatible
query I rowsort label-5719
SELECT + 29 / - col0 - - - col1 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT + col0 AS col1, - 21 * + col0 AS col0 FROM tab0 cor0
----
15
-315
87
-1827
97
-2037

query I rowsort
SELECT ALL - ( col0 ) * - + 82 * + col1 AS col1 FROM tab0 AS cor0
----
149814
7954
99630

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

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

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

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

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

query II rowsort
SELECT ALL - 77, col1 FROM tab1
----
-77
14
-77
47
-77
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT - 78 * COUNT( DISTINCT col1 ) FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT - 78 * COUNT ( DISTINCT col1 ) FROM tab0
----
-234

query III rowsort
SELECT ALL 64 AS col0, col2, - 98 AS col0 FROM tab2
----
9 values hashing to 5716d9170083589bed788fc3cccd1c39

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT 82 * + COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-5730
SELECT 82 * + COUNT ( * ) FROM tab0
----
246

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

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

query II rowsort
SELECT + col0, - col1 * - col0 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

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

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

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

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

query I rowsort
SELECT 89 + - col0 * - - col1 FROM tab1
----
-336
-4188
-625

query II rowsort
SELECT - col1 + + + col2, - col2 AS col0 FROM tab0
----
-11
-10
-34
-47
98
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT 26 + COUNT( * ) + - - 53 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5738
SELECT 26 + COUNT ( * ) + - - 53 FROM tab0 AS cor0
----
82

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

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

query I rowsort
SELECT - col0 * - 98 AS col2 FROM tab0 AS cor0
----
1470
8526
9506

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

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

query I rowsort
SELECT col2 - - 24 AS col0 FROM tab0
----
123
34
71

query I rowsort
SELECT DISTINCT - 95 - - - col0 AS col0 FROM tab0 cor0
----
-110
-182
-192

query I rowsort
SELECT DISTINCT - - 72 - col0 + col2 AS col2 FROM tab2 AS cor0
----
48
49
55

query I rowsort
SELECT ALL - col1 - + 90 AS col2 FROM tab2 AS cor0
----
-141
-157
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT - MIN( DISTINCT + 74 ) AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-5748
SELECT - MIN ( DISTINCT + 74 ) AS col0 FROM tab2
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT DISTINCT MIN( ALL 43 ) AS col0 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT MIN ( ALL 43 ) AS col0 FROM tab1
----
43

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

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

query I rowsort
SELECT ALL 90 - + col2 * + col1 FROM tab1
----
-1254
-205
-3106

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT CAST( NULL AS SIGNED ) * - MIN( 60 ) + - COUNT( * ) col2 FROM tab0 WHERE NULL = col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5755
SELECT CAST ( NULL AS INTEGER ) * - MIN ( 60 ) + - COUNT ( * ) col2 FROM tab0 WHERE NULL = col2
----
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( 21 ) = ( 61 )
----
1
21
81

query I rowsort
SELECT + 78 * col0 + 16 * - col1 FROM tab2
----
2772
3760
4778

query I rowsort
SELECT 44 FROM tab1 WHERE ( col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT MAX( - 40 ) col1 FROM tab0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5759
SELECT MAX ( - 40 ) col1 FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT MAX( + 41 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-5760
SELECT MAX ( + 41 ) FROM tab1
----
41

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT - ( + MIN( - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT - ( + MIN ( - col2 ) ) FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5764
SELECT 93 + MAX( - 2 ) DIV - 75 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5764
SELECT 93 + MAX ( - 2 ) / - 75 FROM tab1
----
93

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

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

skipif mysql # not compatible
query I rowsort label-5766
SELECT CAST ( + 62 AS INTEGER ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col0 )
----

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

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

query I rowsort
SELECT - col2 + - col0 * - ( col1 + - 47 ) FROM tab1 AS cor0
----
-1779
-3629
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 66 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT - 58 DIV col0 + 24 AS col2 FROM tab0 cor0
----
21
24
24

skipif mysql # not compatible
query I rowsort label-5772
SELECT - 58 / col0 + 24 AS col2 FROM tab0 cor0
----
21
24
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT DISTINCT 64 * - COUNT( * ) FROM tab0 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT 64 * - COUNT ( * ) FROM tab0 cor0
----
-192

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 18 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT 93 * 8 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT 93 * 8 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab1 AS cor0 WHERE - 7 IS NOT NULL
----
24
24
24

query I rowsort
SELECT DISTINCT ( - 91 ) FROM tab0 AS cor0 WHERE ( 51 ) NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - - col1 * - col1 + col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT - + COUNT( ALL + col2 ) + + 92 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5781
SELECT - + COUNT ( ALL + col2 ) + + 92 FROM tab2 AS cor0
----
89

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT DISTINCT CAST( col0 AS SIGNED ) - - col2 * col0 AS col2 FROM tab0 AS cor0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT CAST ( col0 AS INTEGER ) - - col2 * col0 AS col2 FROM tab0 AS cor0
----
720
957
9700

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

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

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

query I rowsort
SELECT ALL - 74 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - + 4 * - 82 FROM tab0 AS cor0
----
328

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> 88
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> ( - 85 * + col1 )
----

query I rowsort
SELECT ALL - 60 + ( 34 ) FROM tab0
----
-26
-26
-26

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

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

query I rowsort
SELECT col2 * - ( col2 ) AS col1 FROM tab1 WHERE + ( + 44 ) * 62 IS NULL
----

query I rowsort
SELECT col2 * - col2 AS col0 FROM tab0 WHERE - 73 + col2 * + col0 IS NOT NULL
----
-100
-2209
-9801

query I rowsort
SELECT ( - 96 ) * col2 FROM tab0
----
-4512
-9504
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT MIN( + 87 ) FROM tab0 AS cor0 WHERE + col1 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT MIN ( + 87 ) FROM tab0 AS cor0 WHERE + col1 * + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 95 - + col0 AS col1 FROM tab0 AS cor0
----
-110
-182
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT COUNT( * ) * - 99 col1 FROM tab2
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5799
SELECT COUNT ( * ) * - 99 col1 FROM tab2
----
-297

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 AS col1, - ( - 49 ) FROM tab1 AS cor0
----
-51
49
-85
49
-91
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 26 + - + 48 BETWEEN ( + 26 ) AND - col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - col1 + + 89 AS col2 FROM tab1 AS cor0 WHERE NOT - 72 / - 5 * - col2 <> NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL ) OR - 63 IS NOT NULL
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col2
----
0

query II rowsort
SELECT ALL + col0 AS col2, 18 + + col0 AS col2 FROM tab0 AS cor0
----
15
33
87
105
97
115

query I rowsort
SELECT ALL - col1 * - + 8 FROM tab2 cor0
----
408
536
616

query I rowsort
SELECT - ( - 92 ) AS col2 FROM tab2 AS cor0
----
92
92
92

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

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

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

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - col2 / + col1 + - - 2 AS col0 FROM tab2
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT - col2 DIV ( + 4 ) FROM tab1
----
-14
-17
-24

skipif mysql # not compatible
query I rowsort label-5816
SELECT - col2 / ( + 4 ) FROM tab1
----
-14
-17
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT - SUM( + 42 ) * + 38 * 54 * 71 col0 FROM tab0
----
-18357192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5817
SELECT - SUM ( + 42 ) * + 38 * 54 * 71 col0 FROM tab0
----
-18357192

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

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

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - MIN ( 48 ) FROM tab0 AS cor0
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT + 10 * - + 84 * + + COUNT( * ) + - SUM( col2 ) AS col2 FROM tab2
----
-2641

skipif mysql # not compatible
query I rowsort label-5821
SELECT + 10 * - + 84 * + + COUNT ( * ) + - SUM ( col2 ) AS col2 FROM tab2
----
-2641

query I rowsort
SELECT ALL - + col0 * + 52 + - col0 FROM tab2 AS cor0
----
-2438
-3392
-3975

query II rowsort
SELECT DISTINCT - ( col2 ) + 74 AS col1, col0 FROM tab2 AS cor0
----
16
75
34
64
51
46

query I rowsort
SELECT + + 38 FROM tab1 AS cor0 WHERE col1 <= - col2
----

query I rowsort
SELECT ALL + - 85 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-38
-75
14

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

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

query I rowsort
SELECT ALL + 31 - - 72 AS col0 FROM tab0 cor0
----
103
103
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT DISTINCT COUNT( * ) * - 6 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 33 ) IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT COUNT ( * ) * - 6 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 33 ) IS NULL
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT DISTINCT - - col0 - col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - - col0 - col2 / - col0 AS col1 FROM tab0 AS cor0
----
18
87
98

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5831
SELECT + + COUNT ( * ) col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL - col1 + 79 * + + ( - - col0 ), col2 - 15 AS col0 FROM tab1
----
4015
81
6710
44
7142
53

query I rowsort
SELECT - col0 + + 12 + + + col2 - + + ( - - col2 ) * + col0 * - col2 FROM tab0
----
33179
8635
950711

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT ALL - 24 AS col1, + 86 + 0 * - COUNT( * ) AS col0 FROM tab1
----
-24
86

skipif mysql # not compatible
query II rowsort label-5834
SELECT ALL - 24 AS col1, + 86 + 0 * - COUNT ( * ) AS col0 FROM tab1
----
-24
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - MAX( - 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5836
SELECT - MAX ( - 70 ) FROM tab0 AS cor0
----
70

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5839
SELECT ALL 12 * + + COUNT( * ) AS col1, + ( - 58 ) FROM tab0 AS cor0
----
36
-58

skipif mysql # not compatible
query II rowsort label-5839
SELECT ALL 12 * + + COUNT ( * ) AS col1, + ( - 58 ) FROM tab0 AS cor0
----
36
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-5840
SELECT DISTINCT + col1 DIV + + col1 AS col0, col2 AS col0 FROM tab0 AS cor0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-5840
SELECT DISTINCT + col1 / + + col1 AS col0, col2 AS col0 FROM tab0 AS cor0
----
1
10
1
47
1
99

query I rowsort
SELECT - 2 * 2 FROM tab1 AS cor0
----
-4
-4
-4

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

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

query I rowsort
SELECT + - 15 FROM tab0 AS cor0 WHERE NOT ( - ( - col2 ) ) < col0 * - col2
----
-15
-15
-15

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5846
SELECT MAX ( col0 ) col0 FROM tab2 AS cor0
----
75

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5849
SELECT ALL + 35 * + - CAST( - MAX( + col0 ) AS SIGNED ) * + ( - - ( COUNT( * ) ) ) FROM tab0
----
10185

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + 35 * + - CAST ( - MAX ( + col0 ) AS INTEGER ) * + ( - - ( COUNT ( * ) ) ) FROM tab0
----
10185

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5851
SELECT * FROM tab2 WHERE NOT 27 / ( - CAST( ( + + col2 ) AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5851
SELECT * FROM tab2 WHERE NOT 27 / ( - CAST ( ( + + col2 ) AS REAL ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 30 / + - 60 * - col2 * + - 62 - + + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT ALL ( + - col1 ) DIV + col1 + - 19 col2 FROM tab0
----
-20
-20
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5853
SELECT ALL ( + - col1 ) / + col1 + - 19 col2 FROM tab0
----
-20
-20
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT DISTINCT + - 22 DIV + 80 - - col0 + ( + col2 ) FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + - 22 / + 80 - - col0 + ( + col2 ) FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL + COUNT( * ) + - 71 + - MIN( - col0 ) + COUNT( - col0 ) * 8 AS col1 FROM tab2 AS cor0 WHERE + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL + COUNT ( * ) + - 71 + - MIN ( - col0 ) + COUNT ( - col0 ) * 8 AS col1 FROM tab2 AS cor0 WHERE + col2 <= NULL
----
NULL

query I rowsort
SELECT - 36 * + col1 FROM tab1 AS cor0
----
-1692
-180
-504

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 BETWEEN - col0 AND - + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5858
SELECT ALL col0 AS col1, + col2 DIV - + col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5858
SELECT ALL col0 AS col1, + col2 / - + col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL - MIN( ALL 84 ) + 67 AS col0 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - MIN ( ALL 84 ) + 67 AS col0 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT 0 * - col1 + - + col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + + col0 - 80 FROM tab2 AS cor0
----
-16
-34
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5862
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + 56 * col0, + col0 + col0, + col2 * + col2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5862
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + 56 * col0, + col0 + col0, + col2 * + col2 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 75 * - 84 FROM tab2 AS cor0 WHERE - 14 + + col2 >= col2
----

query I rowsort
SELECT DISTINCT + 58 * + 20 + + - 59 * 34 FROM tab0 AS cor0
----
-846

query I rowsort
SELECT ALL + 24 * - 88 - col0 AS col1 FROM tab2 AS cor0
----
-2158
-2176
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT + - MIN( DISTINCT + 26 ) + + SUM( ALL + - 64 ) FROM tab1 AS cor0
----
-218

skipif mysql # not compatible
query I rowsort label-5866
SELECT + - MIN ( DISTINCT + 26 ) + + SUM ( ALL + - 64 ) FROM tab1 AS cor0
----
-218

onlyif mysql # DIV for integer division: 
query II rowsort label-5867
SELECT ALL - - col1 * + - 86 + - + 65 * + col2, col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-4265
0
-7444
1
-8462
0

skipif mysql # not compatible
query II rowsort label-5867
SELECT ALL - - col1 * + - 86 + - + 65 * + col2, col2 / + col0 AS col0 FROM tab1 AS cor0
----
-4265
0
-7444
1
-8462
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT ALL - col1 DIV + + ( - + col2 ) - + col0 DIV - - col0 AS col1 FROM tab0 AS cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - col1 / + + ( - + col2 ) - + col0 / - - col0 AS col1 FROM tab0 AS cor0
----
-1
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - MAX( ALL + col1 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT - MAX ( ALL + col1 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT MAX ( - ( - col0 ) ) FROM tab0
----
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT 26 DIV - - col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5873
SELECT 26 / - - col2 col0 FROM tab1
----
0
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <= 54
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5879
SELECT DISTINCT + + COUNT( * ) DIV - + 58 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT + + COUNT ( * ) / - + 58 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 18 * - + col1 FROM tab0 AS cor0
----
-1458
-18
-378

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5881
SELECT ALL + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT 75 * + - 25 AS col0 FROM tab0
----
-1875

query I rowsort
SELECT col1 + col1 + - - 28 / + col1 * - 22 + + 7 AS col1 FROM tab1 WHERE NOT - 83 <= ( - 73 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT - MIN ( ALL - CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
47

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

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

query I rowsort
SELECT + 68 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND 78
----

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

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

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

query I rowsort
SELECT ALL - 59 AS col2 FROM tab1
----
-59
-59
-59

query I rowsort
SELECT + - 13 AS col2 FROM tab0 WHERE + col1 - - - ( - 14 ) + + 71 + - - 24 + - col1 + - 46 IS NULL
----

query I rowsort
SELECT DISTINCT + 17 + - - 38 FROM tab1
----
55

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

query I rowsort
SELECT - ( - + col0 ) FROM tab2 AS cor0 WHERE + 42 <> - 56 + - - 58
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT + SUM( ALL - 86 ) FROM tab2 AS cor0 WHERE col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + SUM ( ALL - 86 ) FROM tab2 AS cor0 WHERE col0 = NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE - col2 / + + col0 BETWEEN NULL AND - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 99 * + + MIN( ALL 13 ) + - 57 + - 34 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT 99 * + + MIN ( ALL 13 ) + - 57 + - 34 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT - col0 + - 41 DIV + - ( 8 ) + col1 FROM tab0 AS cor0
----
-61
-91
71

skipif mysql # not compatible
query I rowsort label-5899
SELECT - col0 + - 41 / + - ( 8 ) + col1 FROM tab0 AS cor0
----
-61
-91
71

query I rowsort
SELECT ALL - 81 + 45 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL - + 75 + + COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - + 75 + + COUNT ( * ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT DISTINCT col1 + - col0 * 65 * col2 * + + 11 AS col2 FROM tab1
----
-3500626
-3585720
-4424373

query II rowsort
SELECT - ( + - 25 ) + - - col0 AS col2, - col1 FROM tab0
----
112
-21
122
-1
40
-81

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) * - col2 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT ALL - col0 + + - col1 * + col0 FROM tab1 cor0
----
-4368
-510
-765

query II rowsort
SELECT DISTINCT - col1 * - + col2 + 16 + + col0 - 16 + + col2, col1 + - col1 AS col2 FROM tab0 AS cor0
----
295
0
307
0
3869
0

query I rowsort
SELECT DISTINCT - 23 * + + col2 * - 82 AS col2 FROM tab2 cor0 WHERE NOT col2 / + - col1 <> NULL
----

query I rowsort
SELECT ALL 66 * ( - - col1 ) + col2 - 22 AS col2 FROM tab0 AS cor0
----
1374
143
5371

query I rowsort
SELECT + 55 - - 1 AS col0 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - - 69 - + col0 * - col0 AS col1 FROM tab2 AS cor0
----
2185
4165
5694

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + SUM( - + 43 ) col0 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5913
SELECT + SUM ( - + 43 ) col0 FROM tab1 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - MIN( - col0 ) * + 44 FROM tab0
----
4268

skipif mysql # not compatible
query I rowsort label-5914
SELECT - MIN ( - col0 ) * + 44 FROM tab0
----
4268

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT - col2 DIV - - 30 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT - col2 / - - 30 FROM tab0 cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 35 * col0 col1 FROM tab1 AS cor0
----
-1785
-2975
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NULL > NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT + + 98 * - MIN( DISTINCT 65 ) FROM tab1 AS cor0
----
-6370

skipif mysql # not compatible
query I rowsort label-5921
SELECT + + 98 * - MIN ( DISTINCT 65 ) FROM tab1 AS cor0
----
-6370

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT ALL + 79 DIV + COUNT( + 45 ) AS col1 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + 79 / + COUNT ( + 45 ) AS col1 FROM tab2 AS cor0
----
26

query II rowsort
SELECT - + 15 AS col2, ( col2 ) FROM tab2 cor0 WHERE 78 + - col2 * ( + col1 ) + - col1 - col1 IS NOT NULL
----
-15
23
-15
40
-15
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 27 / - - col0 - col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 27 / - - col0 - col2 > NULL
----
0

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5929
SELECT + 36 AS col2 FROM tab2 WHERE - - col1 - - col2 <= + col0 * - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5929
SELECT + 36 AS col2 FROM tab2 WHERE - - col1 - - col2 <= + col0 * - + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + col2 + - - 57 AS col2 FROM tab2
----
115
80
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab2 WHERE col0 NOT BETWEEN + 78 AND NULL
----
65
65
65

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

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

query I rowsort
SELECT 94 + - 19 FROM tab0
----
75
75
75

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + + col0 + - col2 AS col0 FROM tab1
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT - 39 + + + COUNT( + 40 ) * + 68 AS col1 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - 39 + + + COUNT ( + 40 ) * + 68 AS col1 FROM tab2 AS cor0
----
165

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

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

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

query I rowsort
SELECT ALL 97 * + + 18 FROM tab0
----
1746
1746
1746

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

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + MIN ( ALL - - col1 ) AS col0 FROM tab0
----
1

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

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL 63 * + COUNT ( * ) FROM tab0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT DISTINCT 81 * - - COUNT( * ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT 81 * - - COUNT ( * ) FROM tab2
----
243

query I rowsort
SELECT col1 * + + 58 FROM tab1
----
2726
290
812

onlyif mysql # aggregate syntax: 
query II rowsort label-5947
SELECT ALL + COUNT( * ), 39 AS col2 FROM tab1
----
3
39

skipif mysql # not compatible
query II rowsort label-5947
SELECT ALL + COUNT ( * ), 39 AS col2 FROM tab1
----
3
39

query II rowsort
SELECT 5 AS col2, + col0 AS col0 FROM tab2
----
5
46
5
64
5
75

query I rowsort
SELECT + col1 * col2 + 50 + - - 83 FROM tab0 WHERE NOT NULL NOT IN ( + col0, - 58, - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT 8 * CAST( - + 49 AS SIGNED ) * + 63 * - 50 * - 65 FROM tab2
----
-80262000
-80262000
-80262000

skipif mysql # not compatible
query I rowsort label-5950
SELECT 8 * CAST ( - + 49 AS INTEGER ) * + 63 * - 50 * - 65 FROM tab2
----
-80262000
-80262000
-80262000

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT 62 + + MIN( ALL col2 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-5952
SELECT 62 + + MIN ( ALL col2 ) FROM tab0
----
72

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT 54 + COUNT( * ) * - - 42 + - + COUNT( * ) FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT 54 + COUNT ( * ) * - - 42 + - + COUNT ( * ) FROM tab2
----
177

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

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

query I rowsort
SELECT ALL col2 + 62 AS col1 FROM tab1
----
121
130
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL - COUNT( * ) * + SUM( ALL col1 ) + - COUNT( * ) + COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL - COUNT ( * ) * + SUM ( ALL col1 ) + - COUNT ( * ) + COUNT ( * ) FROM tab1
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT + COUNT( * ) - COUNT( * ) DIV - 17 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5964
SELECT + COUNT ( * ) - COUNT ( * ) / - 17 AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - - col1 * - col0 - col1 - col2 FROM tab1 AS cor0
----
-4392
-489
-824

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5967
SELECT CAST( NULL AS DECIMAL ) AS col2, + ( MAX( - 54 ) ) AS col1 FROM tab0
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-5967
SELECT CAST ( NULL AS REAL ) AS col2, + ( MAX ( - 54 ) ) AS col1 FROM tab0
----
NULL
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5968
SELECT + CAST( col2 AS SIGNED ) FROM tab2 WHERE - + 81 NOT IN ( + 96, col2 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5968
SELECT + CAST ( col2 AS INTEGER ) FROM tab2 WHERE - + 81 NOT IN ( + 96, col2 )
----
23
40
58

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

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

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

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

query I rowsort
SELECT ALL 41 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
41
41
41

query I rowsort
SELECT ALL - 57 AS col0 FROM tab1 cor0
----
-57
-57
-57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5975
SELECT col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5975
SELECT col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT - - ( + 20 ) + - + COUNT( * ) FROM tab2 WHERE NOT 20 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-5980
SELECT - - ( + 20 ) + - + COUNT ( * ) FROM tab2 WHERE NOT 20 IS NOT NULL
----
20

query I rowsort
SELECT + - ( + 40 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + col2 * + - 12 AS col2 FROM tab2
----
12696
30720
52200

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

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

query II rowsort
SELECT + - col2 * + col0 AS col0, - 71 AS col1 FROM tab1 WHERE - 53 * 33 + + col0 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 17 * + col1 AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
238
799
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT + - 29 + - COUNT( * ) * - COUNT( + - col1 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-5987
SELECT + - 29 + - COUNT ( * ) * - COUNT ( + - col1 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT col0 + 51 - 0 * - - 43 AS col0 FROM tab2 AS cor0
----
115
126
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE 36 <= + col1 + + - 36
----
15
81
47

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

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

query I rowsort
SELECT DISTINCT 42 * + + 58 * + 70 + - + col1 AS col0 FROM tab1 cor0
----
170473
170506
170515

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

query I rowsort
SELECT DISTINCT - 95 * col2 AS col2 FROM tab1
----
-5605
-6460
-9120

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT + col2 + + 1 DIV + 64 + - col0 + + col2 AS col0 FROM tab0
----
-67
101
79

skipif mysql # not compatible
query I rowsort label-5994
SELECT + col2 + + 1 / + 64 + - col0 + + col2 AS col0 FROM tab0
----
-67
101
79

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

query I rowsort
SELECT ALL col1 * - 23 + + col0 AS col2 FROM tab2
----
-1127
-1466
-1707

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT ALL col0 * + 34 + ( + + col0 ) - col1 DIV - col0 * + - 52 col2 FROM tab1
----
1785
2975
3185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5997
SELECT ALL col0 * + 34 + ( + + col0 ) - col1 / - col0 * + - 52 col2 FROM tab1
----
1785
2975
3185

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

query I rowsort
SELECT ALL 89 * col1 - 95 AS col0 FROM tab2 AS cor0
----
4444
5868
6758

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT 5 * - COUNT( * ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6001
SELECT 5 * - COUNT ( * ) FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT SUM( ALL - 89 ) AS col0 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6002
SELECT SUM ( ALL - 89 ) AS col0 FROM tab0 AS cor0
----
-267

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - 5 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-5
-67
-5
-77
-5

query I rowsort
SELECT DISTINCT 5 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = NULL OR 80 IS NULL
----

query I rowsort
SELECT 67 * 51 FROM tab0
----
3417
3417
3417

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT col1 DIV + 95 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6009
SELECT col1 / + 95 AS col1 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT ALL - + 45 * - 4 AS col2, - col1 AS col2 FROM tab2 cor0
----
180
-51
180
-67
180
-77

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

query I rowsort
SELECT + col2 + - col1 + + - col1 FROM tab0 AS cor0 WHERE col1 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL 52 * - COUNT( * ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL 52 * - COUNT ( * ) FROM tab1 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - + ( - + col1 ) * + col0 + col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT + col0 * 29 * + col1 AS col2 FROM tab1 cor0
----
12325
124033
20706

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6021
SELECT DISTINCT - MAX ( ALL + 57 ) col1 FROM tab1 AS cor0
----
-57

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

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

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

query I rowsort
SELECT - col2 * - col1 - - col1 * - col0 FROM tab2
----
-1139
-1173
-1848

query I rowsort
SELECT 73 + col0 FROM tab2 WHERE - col2 IS NOT NULL AND NULL IS NULL
----
119
137
148

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

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

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

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

query I rowsort
SELECT - + col2 * - 9 AS col2 FROM tab1 AS cor0
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT MIN( DISTINCT - + 70 ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6029
SELECT MIN ( DISTINCT - + 70 ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT - COUNT( * ) * + 19 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6030
SELECT - COUNT ( * ) * + 19 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 * col1 / 37 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6031
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 * col1 / 37 IS NOT NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL SUM( DISTINCT + col2 ) + + 79 FROM tab1 AS cor0 WHERE NULL IS NULL
----
302

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL SUM ( DISTINCT + col2 ) + + 79 FROM tab1 AS cor0 WHERE NULL IS NULL
----
302

query I rowsort
SELECT DISTINCT 49 FROM tab1 WHERE ( - + 76 ) IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 * - + 54 = + - 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT DISTINCT - 48 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT - 48 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL - CAST( + + 69 AS SIGNED ) col1 FROM tab2 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6039
SELECT ALL - CAST ( + + 69 AS INTEGER ) col1 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-6040
SELECT + - col1 * col1 DIV - col1, col2 + - - 38 * col2 AS col1 FROM tab1 AS cor0
----
14
3744
47
2652
5
2301

skipif mysql # not compatible
query II rowsort label-6040
SELECT + - col1 * col1 / - col1, col2 + - - 38 * col2 AS col1 FROM tab1 AS cor0
----
14
3744
47
2652
5
2301

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6041
SELECT DISTINCT MIN( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT MIN ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2 AS col0, + col2 + 73 AS col1 FROM tab1 AS cor0
----
-59
132
-68
141
-96
169

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * + 52 col2 FROM tab1 AS cor0
----
4524
4524
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT + SUM( + 27 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6045
SELECT + SUM ( + 27 ) FROM tab1 AS cor0
----
81

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

query I rowsort
SELECT ALL - ( + col0 ) * - - 81 * + 76 * - col1 + + 21 FROM tab0
----
11247033
597153
7479561

query I rowsort
SELECT + ( 8 ) - - col2 AS col0 FROM tab0
----
107
18
55

query I rowsort
SELECT - + 89 + col1 AS col2 FROM tab1 cor0
----
-42
-75
-84

query I rowsort
SELECT ALL - col0 - + col0 * + col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> col1 * - 87 + - ( - ( 41 ) )
----

query I rowsort
SELECT + ( + col2 ) + + 94 FROM tab2 AS cor0
----
117
134
152

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT ALL + CAST( - - ( 17 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL + CAST ( - - ( 17 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + + 16 + - - COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6058
SELECT + + 16 + - - COUNT ( * ) FROM tab0 AS cor0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL - + MIN( + - 36 ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - + MIN ( + - 36 ) AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT DISTINCT col0 + - col0 * + col1 * + col1 AS col1 FROM tab2
----
-119600
-336600
-379392

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT CAST( - col1 AS SIGNED ) * - col0 * - + col0 FROM tab1
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-6063
SELECT CAST ( - col1 AS INTEGER ) * - col0 * - + col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT + col1 * - col0 FROM tab2 WHERE col2 * ( - col2 ) + 36 = - 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT - 77 DIV + 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6065
SELECT - 77 / + 96 FROM tab0
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6067
SELECT - - col2 AS col1 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN - 20 AND - col0
----

skipif mysql # not compatible
query I rowsort label-6067
SELECT - - col2 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) BETWEEN - 20 AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6068
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col2 ) + - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6068
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col2 ) + - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + 59 * 72
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6072
SELECT DISTINCT - col0 DIV CAST( + 94 AS SIGNED ) * + 15 * + col1 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT - col0 / CAST ( + 94 AS INTEGER ) * + 15 * + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - 87 * - - col0 AS col2 FROM tab0 cor0
----
1305
7569
8439

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT + COUNT( - col2 ) * + 98 AS col0 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + COUNT ( - col2 ) * + 98 AS col0 FROM tab2
----
294

query I rowsort
SELECT ALL - ( + 25 ) FROM tab0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT 62 + - col1 * col2 FROM tab1
----
-1282
-233
-3134

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ALL MIN( ALL - col0 ) * + 26 AS col2 FROM tab0
----
-2522

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL MIN ( ALL - col0 ) * + 26 AS col2 FROM tab0
----
-2522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT ALL + 32 + + 92 - - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + 32 + + 92 - - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 98 * - 52 <> + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT MIN( DISTINCT + + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6084
SELECT MIN ( DISTINCT + + col1 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 78 - - 76 * col2 > NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 / - col1 * + col1 AND + 72 / - + col1 * - col2
----

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6092
SELECT CAST( NULL AS DECIMAL ) - MAX( DISTINCT + - CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT CAST ( NULL AS REAL ) - MAX ( DISTINCT + - CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 81 - - - 22 + - + col2 AS col1 FROM tab0
----
-113
-150
-202

query I rowsort
SELECT 81 - 35 FROM tab2
----
46
46
46

query III rowsort
SELECT * FROM tab2 WHERE - + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6096
SELECT * FROM tab1, tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6096
SELECT * FROM tab1, tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6097
SELECT col1 * - + col1, 53 DIV col1 AS col1 FROM tab2
----
-2601
1
-4489
0
-5929
0

skipif mysql # not compatible
query II rowsort label-6097
SELECT col1 * - + col1, 53 / col1 AS col1 FROM tab2
----
-2601
1
-4489
0
-5929
0

query I rowsort
SELECT ( 17 ) * + col2 - col0 AS col2 FROM tab0
----
1586
784
83

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6100
SELECT col1, - col1 DIV + 57 AS col2 FROM tab2 AS cor0
----
51
0
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-6100
SELECT col1, - col1 / + 57 AS col2 FROM tab2 AS cor0
----
51
0
67
-1
77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT - 17 * MIN( DISTINCT - 38 ) AS col1 FROM tab0 AS cor0
----
646

skipif mysql # not compatible
query I rowsort label-6101
SELECT - 17 * MIN ( DISTINCT - 38 ) AS col1 FROM tab0 AS cor0
----
646

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <> + col2
----

query I rowsort
SELECT col0 * - 62 AS col2 FROM tab0 AS cor0
----
-5394
-6014
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT + ( - + MIN( DISTINCT + - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT + ( - + MIN ( DISTINCT + - col0 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col0
----
NULL

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

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

query I rowsort
SELECT 80 + - + 45 + - + col2 AS col2 FROM tab2
----
-23
-5
12

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT 59 + ( - 83 ) * - ( - 52 ) + - 8 + 35 - col2 * col2 / - 58 + + + CAST( NULL AS SIGNED ) + col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6110
SELECT 59 + ( - 83 ) * - ( - 52 ) + - 8 + 35 - col2 * col2 / - 58 + + + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 37 * - col2 + - + ( + col1 ) FROM tab1
----
2178
2469
3538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 29 col0, - col0 FROM tab0
----
29
-15
29
-87
29
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6113
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IN ( 13, col1, + CAST( NULL AS SIGNED ), + 96 * - 7 + - + col2 + - + 38 * - - 40 )
----

skipif mysql # not compatible
query III rowsort label-6113
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IN ( 13, col1, + CAST ( NULL AS INTEGER ), + 96 * - 7 + - + col2 + - + 38 * - - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL + + SUM( - - col1 ) * + 49 + COUNT( * ) FROM tab0 AS cor0
----
5050

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + + SUM ( - - col1 ) * + 49 + COUNT ( * ) FROM tab0 AS cor0
----
5050

query I rowsort
SELECT ALL col2 + col1 - - + 90 + 32 * - 61 AS col2 FROM tab2 AS cor0
----
-1737
-1745
-1788

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6116
SELECT * FROM tab1 WHERE - + col0 + + CAST( NULL AS SIGNED ) - + ( 73 ) = 5 * + col0
----

skipif mysql # not compatible
query III rowsort label-6116
SELECT * FROM tab1 WHERE - + col0 + + CAST ( NULL AS INTEGER ) - + ( 73 ) = 5 * + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT CAST( NULL AS SIGNED ) * - 55 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6118
SELECT CAST ( NULL AS INTEGER ) * - 55 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 ) WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + col2 - - col1 * col1 - - 89 FROM tab0 AS cor0
----
189
540
6697

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT 96 + - - MIN( + 62 ) FROM tab0 cor0
----
158

skipif mysql # not compatible
query I rowsort label-6121
SELECT 96 + - - MIN ( + 62 ) FROM tab0 cor0
----
158

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

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

query II rowsort
SELECT col0 * - - col0 * col0 + + 83 AS col1, + col0 FROM tab0 AS cor0
----
3458
15
658586
87
912756
97

query I rowsort
SELECT + col2 * + col2 * + - col1 * 47 AS col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-10214416
-6064128
-818035

query I rowsort
SELECT + 84 + col2 AS col2 FROM tab1 AS cor0
----
143
152
180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6127
SELECT * FROM tab1 AS cor0 WHERE NOT 85 > CAST( 48 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6127
SELECT * FROM tab1 AS cor0 WHERE NOT 85 > CAST ( 48 AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT + COUNT( * ) * - COUNT( ALL ( + 95 ) ) * - 47 FROM tab2
----
423

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT + COUNT ( * ) * - COUNT ( ALL ( + 95 ) ) * - 47 FROM tab2
----
423

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT col1 DIV - 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT col1 / - 86 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( - - ( + col2 ) ) * - 42 FROM tab1
----
-2478
-2856
-4032

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

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

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

query II rowsort
SELECT + 70, col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
70
46
70
64
70
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT MIN( - 26 ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT MIN ( - 26 ) AS col1 FROM tab0
----
-26

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6139
SELECT * FROM tab0 cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) * 11 + + col1 * 7 * - + col0 / + - col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6139
SELECT * FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS REAL ) * 11 + + col1 * 7 * - + col0 / + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 88
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT ALL COUNT( * ) AS col1, 8 AS col2 FROM tab2 AS cor0
----
3
8

skipif mysql # not compatible
query II rowsort label-6141
SELECT ALL COUNT ( * ) AS col1, 8 AS col2 FROM tab2 AS cor0
----
3
8

query I rowsort
SELECT 60 * - col2 AS col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

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

query II rowsort
SELECT - 50 AS col0, 2 FROM tab0 AS cor0
----
-50
2
-50
2
-50
2

query I rowsort
SELECT 3 * + + 64 * - col0 * + col2 + - col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6146
SELECT ALL + 89 DIV - SUM( ALL - col0 ) + + + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NOT - 9 < 79 )
----
3

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL + 89 / - SUM ( ALL - col0 ) + + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NOT - 9 < 79 )
----
3

query I rowsort
SELECT DISTINCT - col0 * + 16 + col2 + + + col2 AS col0 FROM tab1
----
-1242
-1320
-624

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 35 + - col2 <> + 19 + col2 )
----

query I rowsort
SELECT + 28 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6150
SELECT DISTINCT + col2 + col0, + CAST( NULL AS SIGNED ) * - - ( - col2 ) AS col1 FROM tab2
----
104
NULL
133
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-6150
SELECT DISTINCT + col2 + col0, + CAST ( NULL AS INTEGER ) * - - ( - col2 ) AS col1 FROM tab2
----
104
NULL
133
NULL
69
NULL

query I rowsort
SELECT ALL + col2 + ( - ( + 46 ) ) + ( ( col0 ) ) FROM tab2
----
23
58
87

query I rowsort
SELECT DISTINCT + 3 * - col0 AS col2 FROM tab2 AS cor0
----
-138
-192
-225

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6154
SELECT col0 FROM tab2 AS cor0 WHERE NULL = col0 * + - 86 * - CAST( 4 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6154
SELECT col0 FROM tab2 AS cor0 WHERE NULL = col0 * + - 86 * - CAST ( 4 AS REAL )
----

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

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

skipif mysql # not compatible
query I rowsort label-6156
SELECT + COUNT ( * ) + - 38 FROM tab1 AS cor0
----
-35

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

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

query I rowsort
SELECT ALL - - col2 * 9 + - ( col0 ) FROM tab1 AS cor0
----
446
521
813

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

query II rowsort
SELECT DISTINCT + - col0 AS col2, + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-46
69
-64
104
-75
133

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, 5 * - 67 + + col0 + col1 * + - ( + 46 ) col2 FROM tab0 AS cor0
----
1
-284
21
-1214
81
-4046

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6164
SELECT * FROM tab1 AS cor0 WHERE NOT + 66 <> col2 + - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-6164
SELECT * FROM tab1 AS cor0 WHERE NOT + 66 <> col2 + - CAST ( NULL AS INTEGER ) * - col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT + - col2 * + + 25 + + 94 DIV 78 FROM tab2 cor0
----
-1449
-574
-999

skipif mysql # not compatible
query I rowsort label-6166
SELECT + - col2 * + + 25 + + 94 / 78 FROM tab2 cor0
----
-1449
-574
-999

query I rowsort
SELECT + 22 * 53 * col1 FROM tab0
----
1166
24486
94446

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

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

query I rowsort
SELECT + 40 * + col2 FROM tab2
----
1600
2320
920

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 = 10 - col1
----
-51
-67
-77

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

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL + MIN ( - 25 ) FROM tab0 AS cor0
----
-25

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

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

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

query I rowsort
SELECT ALL 86 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * + 60 * + 87 + - col2 col0 FROM tab2
----
146102
146120
146137

query I rowsort
SELECT + col0 * + - 80 * + 48 FROM tab0 AS cor0
----
-334080
-372480
-57600

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT MIN( ALL - 48 ) FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6177
SELECT MIN ( ALL - 48 ) FROM tab1 cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL - SUM( + 8 ) * + - ( + 89 ) AS col2 FROM tab2 AS cor0
----
2136

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - SUM ( + 8 ) * + - ( + 89 ) AS col2 FROM tab2 AS cor0
----
2136

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT - 53 + - - COUNT( * ) - 67 AS col0 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6179
SELECT - 53 + - - COUNT ( * ) - 67 AS col0 FROM tab1 AS cor0
----
-117

query I rowsort
SELECT - + 80 + + - col1 AS col2 FROM tab0 AS cor0
----
-101
-161
-81

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

query I rowsort
SELECT - - 54 * - col1 + - col0 AS col1 FROM tab2 cor0
----
-2800
-3693
-4222

query I rowsort
SELECT + + col0 * col0 AS col0 FROM tab1 WHERE - - col0 IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT ALL + col0 + + col2 * ( + 49 ) - col1 FROM tab2
----
1122
1947
2850

query I rowsort
SELECT DISTINCT + col1 + - ( - 84 ) FROM tab1
----
131
89
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT ALL 12 + CAST( - + 56 AS SIGNED ) AS col1 FROM tab1
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL 12 + CAST ( - + 56 AS INTEGER ) AS col1 FROM tab1
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col0 FROM tab2
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + - - 31 col0 FROM tab0
----
118

query I rowsort
SELECT ALL - 92 FROM tab2 WHERE NOT NULL BETWEEN col2 AND + ( - - ( - + 48 ) )
----

query I rowsort
SELECT DISTINCT - 75 - + col2 + + - 97 FROM tab1 AS cor0
----
-231
-240
-268

query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab2 AS cor0 WHERE NOT ( - 43 IS NULL )
----
-28
-37
-9

query I rowsort
SELECT - ( - - col1 ) * + col0 * col2 - + 61 + + - 79 AS col0 FROM tab1
----
-25215
-290976
-68684

query I rowsort
SELECT ALL + + col0 * - - 48 + + col2 - col2 AS col0 FROM tab0 AS cor0
----
4176
4656
720

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT 48 DIV col1 AS col1 FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT 48 / col1 AS col1 FROM tab1 AS cor0
----
1
3
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT DISTINCT 39 DIV + 26 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT 39 / + 26 AS col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL col0, 77 * - col1 + - - col0 * + col2 AS col0 FROM tab2
----
46
-2869
64
-3369
75
-809

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

query I rowsort
SELECT - col1 * 1 * + - ( + + col2 ) FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + 80 * - - col0 AS col1 FROM tab1
----
4080
6800
7280

query I rowsort
SELECT - col2 * - 90 FROM tab0
----
4230
8910
900

query II rowsort
SELECT ALL col1 AS col0, col0 * - - col1 FROM tab0
----
1
97
21
1827
81
1215

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

query I rowsort
SELECT ALL 59 FROM tab1 WHERE NOT ( col0 IS NULL )
----
59
59
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT + 73 + COUNT( * ) col0 FROM tab0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6206
SELECT + 73 + COUNT ( * ) col0 FROM tab0
----
76

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE col2 - 83 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + COUNT( * ) * 86 AS col1 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-6208
SELECT + COUNT ( * ) * 86 AS col1 FROM tab2
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6209
SELECT ( + ( + CAST( 57 AS SIGNED ) ) ) * + col0 FROM tab0
----
4959
5529
855

skipif mysql # not compatible
query I rowsort label-6209
SELECT ( + ( + CAST ( 57 AS INTEGER ) ) ) * + col0 FROM tab0
----
4959
5529
855

query I rowsort
SELECT + 63 * - 4 FROM tab0
----
-252
-252
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT DISTINCT - COUNT( col0 ) FROM tab2 WHERE 15 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT - COUNT ( col0 ) FROM tab2 WHERE 15 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT col0 - + 61 * + 97 FROM tab1
----
-5826
-5832
-5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE ( - 62 ) > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT 84 AS col1 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - 61 FROM tab1
----
-3111
-5185
-5551

query I rowsort
SELECT col1 * + ( - 14 ) AS col1 FROM tab2
----
-1078
-714
-938

query I rowsort
SELECT ALL + col0 * - col0 + col2 AS col0 FROM tab2
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT 12 + + COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6220
SELECT 12 + + COUNT ( * ) FROM tab0
----
15

query I rowsort
SELECT 38 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 97 * col2 + 33 * col1 FROM tab0
----
1663
7232
9636

query I rowsort
SELECT DISTINCT - col2 * + 24 AS col2 FROM tab2
----
-1392
-552
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT DISTINCT ( 54 ) * + CAST( + col2 AS SIGNED ) col0 FROM tab1
----
3186
3672
5184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6224
SELECT DISTINCT ( 54 ) * + CAST ( + col2 AS INTEGER ) col0 FROM tab1
----
3186
3672
5184

query I rowsort
SELECT col0 + - col1 FROM tab0 WHERE NOT ( 90 ) <= + col1
----
-66
66
96

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

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab2 WHERE NULL NOT IN ( 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 7 col0 FROM tab2
----
58
74
84

query I rowsort
SELECT 85 + col1 AS col0 FROM tab0
----
106
166
86

query I rowsort
SELECT col2 + 28 AS col2 FROM tab2
----
51
68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - 26 + COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 26 + COUNT ( * ) FROM tab0
----
-23

query I rowsort
SELECT ALL col0 + 64 FROM tab1 WHERE ( + 75 ) IS NOT NULL
----
115
149
155

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

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

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

query I rowsort
SELECT col2 + + 64 AS col0 FROM tab0 AS cor0
----
111
163
74

query I rowsort
SELECT 69 + col2 * col1 FROM tab0 cor0
----
168
279
3876

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

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

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

query I rowsort
SELECT DISTINCT - 45 FROM tab1 AS cor0 CROSS JOIN tab0
----
-45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6241
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL - 98 * MAX( + 20 ) col1 FROM tab2
----
-1960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6242
SELECT ALL - 98 * MAX ( + 20 ) col1 FROM tab2
----
-1960

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 / col0 ) <> col2
----

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * + - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT col2 * 12 AS col1 FROM tab1 WHERE NOT col1 * - col1 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6251
SELECT ALL + 65 DIV + col2 AS col1 FROM tab0 WHERE 73 <= col2
----
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + 65 / + col2 AS col1 FROM tab0 WHERE 73 <= col2
----
0

query I rowsort
SELECT DISTINCT - 87 * 61 AS col2 FROM tab2
----
-5307

query I rowsort
SELECT ALL 81 * + + 17 FROM tab1
----
1377
1377
1377

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( - 35 ) IS NULL
----
1
21
81

query I rowsort
SELECT 19 + 84 FROM tab0
----
103
103
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6257
SELECT DISTINCT + - CAST( + + ( + 22 ) AS SIGNED ) DIV - col2 AS col2 FROM tab2 AS cor0
----
0

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

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

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

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

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

query I rowsort
SELECT col0 * + 86 FROM tab1 cor0
----
4386
7310
7826

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT + 31 + + + 79 * COUNT( * ) col0 FROM tab2 AS cor0
----
268

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6261
SELECT DISTINCT + 31 + + + 79 * COUNT ( * ) col0 FROM tab2 AS cor0
----
268

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL = col2 * - col0
----

query I rowsort
SELECT ALL 41 + - col2 FROM tab2
----
-17
1
18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT col0 * + + col1 + - + col2 + + ( ( + col1 ) ) DIV 9 FROM tab0 AS cor0
----
-2
1177
1819

skipif mysql # not compatible
query I rowsort label-6266
SELECT col0 * + + col1 + - + col2 + + ( ( + col1 ) ) / 9 FROM tab0 AS cor0
----
-2
1177
1819

query I rowsort
SELECT - - 95 + - - 62 FROM tab1 AS cor0
----
157
157
157

query I rowsort
SELECT col0 + + col1 + + - 28 + 68 * col2 AS col1 FROM tab1 AS cor0
----
4074
4734
6565

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT + 14 DIV - 17 + 41 + ( - 88 ) FROM tab0 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-6269
SELECT + 14 / - 17 + 41 + ( - 88 ) FROM tab0 AS cor0
----
-47
-47
-47

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = NULL
----

query II rowsort
SELECT DISTINCT + 45 AS col0, - 82 FROM tab0 cor0
----
45
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT - COUNT( * ) * + MAX( DISTINCT + col0 ) FROM tab2 WHERE col2 BETWEEN ( col0 ) AND ( + 44 / + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT - COUNT ( * ) * + MAX ( DISTINCT + col0 ) FROM tab2 WHERE col2 BETWEEN ( col0 ) AND ( + 44 / + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - 53 + + col0 FROM tab1
----
-2
32
38

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT ALL - CAST( col2 AS SIGNED ) * + col0 * - 83 * - col2 AS col2 FROM tab2
----
-2019722
-20940900
-8499200

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - CAST ( col2 AS INTEGER ) * + col0 * - 83 * - col2 AS col2 FROM tab2
----
-2019722
-20940900
-8499200

query I rowsort
SELECT DISTINCT col1 + + - col0 + + 59 + - 14 * - col0 AS col0 FROM tab2
----
1101
708
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 11 col0 FROM tab2
----
34
51
69

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= 20
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col1 col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - SUM( 37 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-333

skipif mysql # not compatible
query I rowsort label-6286
SELECT - SUM ( 37 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-333

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + col0 * - 38 col2 FROM tab0
----
-185136
-206416
-31920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6292
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) * MAX( ALL + - 12 ) * COUNT( - 25 ) + - ( + 12 ) FROM tab2 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-6292
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) * MAX ( ALL + - 12 ) * COUNT ( - 25 ) + - ( + 12 ) FROM tab2 AS cor0
----
3
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT + SUM( - ( - 75 ) ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT + SUM ( - ( - 75 ) ) FROM tab1 AS cor0
----
225

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

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

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

query I rowsort
SELECT ALL - + col1 * - 4 FROM tab2 AS cor0
----
204
268
308

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

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

query I rowsort
SELECT DISTINCT + 52 + 32 + - ( + col1 ) * + - 42 FROM tab2
----
2226
2898
3318

query I rowsort
SELECT ALL ( - + 48 ) AS col0 FROM tab0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-6303
SELECT ( - + 19 ) * col0 DIV - col0, col2 FROM tab2 AS cor0
----
19
23
19
40
19
58

skipif mysql # not compatible
query II rowsort label-6303
SELECT ( - + 19 ) * col0 / - col0, col2 FROM tab2 AS cor0
----
19
23
19
40
19
58

query I rowsort
SELECT 90 + - + 20 AS col0 FROM tab0 AS cor0 WHERE 22 IS NOT NULL
----
70
70
70

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

query I rowsort
SELECT + + col0 * col1 * 28 + + col0 AS col1 FROM tab0 cor0
----
2813
34035
51243

onlyif mysql # DIV for integer division: 
query II rowsort label-6307
SELECT DISTINCT col1 * + - col0, col0 DIV + - 33 AS col2 FROM tab0
----
-1215
0
-1827
-2
-97
-2

skipif mysql # not compatible
query II rowsort label-6307
SELECT DISTINCT col1 * + - col0, col0 / + - 33 AS col2 FROM tab0
----
-1215
0
-1827
-2
-97
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL + COUNT( * ) FROM tab1 WHERE 37 + 63 + + col0 - - + col0 < - col0
----
0

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + COUNT ( * ) FROM tab1 WHERE 37 + 63 + + col0 - - + col0 < - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE + col1 IN ( - - 73, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE + col1 IN ( - - 73, + col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT - col1 + - 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-6311
SELECT - col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 - + col0 + - - col2 + - ( 51 ) AS col1 FROM tab1
----
-18
-6
90

query I rowsort
SELECT 72 - + - 44 FROM tab0
----
116
116
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6323
SELECT ALL + SUM( col1 ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - CAST( - + col1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL + SUM ( col1 ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - CAST ( - + col1 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT CAST( - - 56 AS SIGNED ) - - MIN( ALL - col0 ) * - + 2 FROM tab1
----
238

skipif mysql # not compatible
query I rowsort label-6324
SELECT CAST ( - - 56 AS INTEGER ) - - MIN ( ALL - col0 ) * - + 2 FROM tab1
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT DISTINCT - col0 DIV + + col2 + + col0 + ( 85 ) col0 FROM tab1
----
136
169
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6325
SELECT DISTINCT - col0 / + + col2 + + col0 + ( 85 ) col0 FROM tab1
----
136
169
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL + SUM( DISTINCT + - col2 ) + COUNT( * ) * 46 AS col1 FROM tab1 WHERE - + col2 < + + col1
----
-85

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + SUM ( DISTINCT + - col2 ) + COUNT ( * ) * 46 AS col1 FROM tab1 WHERE - + col2 < + + col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT MAX( + 19 ) col2 FROM tab2
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6327
SELECT MAX ( + 19 ) col2 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT DISTINCT + + MIN( - - col2 ) FROM tab2 AS cor0 WHERE + ( - col0 ) + - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT + + MIN ( - - col2 ) FROM tab2 AS cor0 WHERE + ( - col0 ) + - - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT DISTINCT ( - + col1 ) + 58 + + col0 + + ( CAST( NULL AS SIGNED ) ) + 83 AS col2 FROM tab1 AS cor0 WHERE ( col0 + - + 27 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT ( - + col1 ) + 58 + + col0 + + ( CAST ( NULL AS INTEGER ) ) + 83 AS col2 FROM tab1 AS cor0 WHERE ( col0 + - + 27 ) IS NOT NULL
----
NULL

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

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

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

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

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 JOIN tab2 cor1 ON NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT SUM( ALL - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT SUM ( ALL - col2 ) AS col0 FROM tab2
----
-121

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 * 81 + col1 + + - col1 + col0 col2 FROM tab1 AS cor0
----
4749
4783
4789

query I rowsort
SELECT + + col2 * + ( - - 49 ) + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 53 > + + col1
----
2024
2917

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 + 73 = - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - + COUNT( * ) * 11 AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6343
SELECT - + COUNT ( * ) * 11 AS col0 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6344
SELECT ALL COUNT( * ) AS col0, 67 FROM tab0 AS cor0
----
3
67

skipif mysql # not compatible
query II rowsort label-6344
SELECT ALL COUNT ( * ) AS col0, 67 FROM tab0 AS cor0
----
3
67

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 54 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + 82 + col0 AS col0 FROM tab2
----
128
146
157

query I rowsort
SELECT DISTINCT + 80 - + + col0 AS col0 FROM tab2
----
16
34
5

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

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL col0 + + 12 / - + col2 AS col0 FROM tab0 AS cor0
----
15
86
97

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

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

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

query I rowsort
SELECT DISTINCT + 87 + + 11 + - - col1 - + 58 FROM tab2 AS cor0
----
107
117
91

query I rowsort
SELECT 88 + col1 + + - 87 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT DISTINCT + - 14 DIV - + col1 + - 74 AS col2 FROM tab0 AS cor0
----
-60
-74

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + - 14 / - + col1 + - 74 AS col2 FROM tab0 AS cor0
----
-60
-74

query I rowsort
SELECT DISTINCT + - 15 - - - col1 * - + col0 FROM tab0 AS cor0
----
1200
1812
82

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

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

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

query I rowsort
SELECT DISTINCT - col1 - - - col1 AS col2 FROM tab0 cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 5 BETWEEN + col2 AND col2
----
3

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 5 BETWEEN + col2 AND col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6363
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) IN ( - 31, + col1 - col2, - col0 * 4 * - - 77 + + col1 * - 20 )
----

skipif mysql # not compatible
query III rowsort label-6363
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) IN ( - 31, + col1 - col2, - col0 * 4 * - - 77 + + col1 * - 20 )
----

query I rowsort
SELECT ALL 67 + + col0 AS col2 FROM tab1
----
118
152
158

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT - 48 DIV - - col0 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT - 48 / - - col0 AS col0 FROM tab2
----
-1
0
0

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

query I rowsort
SELECT ALL + 41 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-28905
-35670
-393723

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT DISTINCT - + COUNT( * ) AS col0, - 57 * + + COUNT( * ) FROM tab2 AS cor0
----
-3
-171

skipif mysql # not compatible
query II rowsort label-6373
SELECT DISTINCT - + COUNT ( * ) AS col0, - 57 * + + COUNT ( * ) FROM tab2 AS cor0
----
-3
-171

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + + - 2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 0 * ( ( - + 48 ) ) <= - col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL + SUM( 8 ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + SUM ( 8 ) FROM tab2 AS cor0
----
24

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

skipif mysql # not compatible
query I rowsort label-6377
SELECT - MIN ( + - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 / + - col2 + + - col2 - + col2 col2 FROM tab0 cor0 WHERE - col1 * - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - + 47 + col2
----

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

skipif mysql # not compatible
query I rowsort label-6380
SELECT + CAST ( + 77 AS INTEGER ) FROM tab2
----
77
77
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 96 IN ( - col0, 65 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 7 col0, 89 FROM tab0
----
-147
89
-567
89
-7
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT DISTINCT - MAX( - col1 ) + - 50 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT - MAX ( - col1 ) + - 50 FROM tab1
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) col2, - col1 * + - 83 * + 10 * col0 FROM tab0
----
15
1008450
87
1516410
97
80510

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL 58 + + - COUNT( * ) FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL 58 + + - COUNT ( * ) FROM tab0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL - ( + 61 ) + - ( - ( COUNT( * ) ) ) * + + COUNT( * ) * - 50 FROM tab0 cor0
----
-511

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - ( + 61 ) + - ( - ( COUNT ( * ) ) ) * + + COUNT ( * ) * - 50 FROM tab0 cor0
----
-511

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

query I rowsort
SELECT ALL - 46 + + + 44 AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col1 + - ( - - col2 ) - + col0 * - 95 AS col0 FROM tab2
----
4398
6117
7134

query I rowsort
SELECT + col0 FROM tab2 WHERE + + 32 * - + col1 <> NULL
----

query I rowsort
SELECT DISTINCT - 58 - + + col1 AS col0 FROM tab0 AS cor0
----
-139
-59
-79

query I rowsort
SELECT DISTINCT + 19 + + col1 AS col1 FROM tab1 cor0
----
24
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL + MAX( 74 ) - - - 50 AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL + MAX ( 74 ) - - - 50 AS col1 FROM tab0 AS cor0
----
24

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

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

query I rowsort
SELECT ALL 32 * + ( - ( + + 15 ) ) AS col2 FROM tab1 AS cor0
----
-480
-480
-480

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6397
SELECT + - col1 + - 66 * - 93 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col0 AND - CAST( + ( - + CAST( NULL AS DECIMAL ) ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6397
SELECT + - col1 + - 66 * - 93 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col0 AND - CAST ( + ( - + CAST ( NULL AS REAL ) ) AS INTEGER )
----

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

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

query I rowsort
SELECT - 76 * - ( - + 67 ) FROM tab1
----
-5092
-5092
-5092

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT DISTINCT - COUNT( * ) * - + 19 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT - COUNT ( * ) * - + 19 FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6402
SELECT ALL 98 AS col1, + 29 * + - CAST( NULL AS SIGNED ) FROM tab1
----
98
NULL
98
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-6402
SELECT ALL 98 AS col1, + 29 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
98
NULL
98
NULL
98
NULL

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

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

query II rowsort
SELECT DISTINCT 79, - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6406
SELECT ALL - COUNT( DISTINCT col1 ) * - 81 - ( COUNT( * ) ) DIV - - 83 + - 83 * + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
495

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - COUNT ( DISTINCT col1 ) * - 81 - ( COUNT ( * ) ) / - - 83 + - 83 * + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
495

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

skipif mysql # not compatible
query I rowsort label-6407
SELECT MAX ( + col0 ) / - SUM ( + - col1 ) FROM tab1 AS cor0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT - MAX( DISTINCT - 33 ) AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6410
SELECT - MAX ( DISTINCT - 33 ) AS col2 FROM tab0 AS cor0
----
33

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

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

query II rowsort
SELECT + + col1 * col1 AS col2, - 27 AS col1 FROM tab2 AS cor0
----
2601
-27
4489
-27
5929
-27

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 82 + + - col2 * col0 - + col0 + + col1 col1 FROM tab0 AS cor0
----
-17653
-1869
-8070

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

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

query I rowsort
SELECT ALL 3 + col1 + + col0 AS col0 FROM tab2 AS cor0
----
100
144
145

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6417
SELECT DISTINCT * FROM tab1 WHERE - ( 17 ) < - CAST( + col0 AS DECIMAL ) * col1
----

skipif mysql # not compatible
query III rowsort label-6417
SELECT DISTINCT * FROM tab1 WHERE - ( 17 ) < - CAST ( + col0 AS REAL ) * col1
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 27 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT MIN( DISTINCT - + col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 4 AND - + col1 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 4 AND - + col1 * - 93
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col2 FROM tab2 AS cor0 WHERE NOT col2 * - + col0 <= NULL
----

query I rowsort
SELECT + 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT 65 * - + ( - - 64 ) + COUNT( DISTINCT + col1 ) FROM tab2
----
-4157

skipif mysql # not compatible
query I rowsort label-6427
SELECT 65 * - + ( - - 64 ) + COUNT ( DISTINCT + col1 ) FROM tab2
----
-4157

query I rowsort
SELECT - 80 AS col0 FROM tab1 cor0
----
-80
-80
-80

query II rowsort
SELECT + - 13 * - + col2 AS col0, col2 - - 58 AS col0 FROM tab0 AS cor0
----
1287
157
130
68
611
105

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 99 + - + col1 <= + 49
----
87
21
10
97
1
99

query II rowsort
SELECT col1 AS col2, - col0 * col2 + col2 AS col0 FROM tab1
----
14
-4800
47
-6120
5
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT DISTINCT COUNT( + + 87 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT COUNT ( + + 87 ) FROM tab2
----
3

query I rowsort
SELECT ALL - + col1 + col0 AS col1 FROM tab2 WHERE NOT + - 63 IS NULL
----
-13
-5
8

query I rowsort
SELECT + 92 * - col1 * + 66 FROM tab0
----
-127512
-491832
-6072

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6438
SELECT - 54 DIV col0 DIV + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT - 54 / col0 / + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6439
SELECT + ( + + col1 ) DIV + + 13 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
0
59
1
96
3
68

skipif mysql # not compatible
query II rowsort label-6439
SELECT + ( + + col1 ) / + + 13 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
0
59
1
96
3
68

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

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

query I rowsort
SELECT - 58 + - col2 - 18 * + 31 * + col0 AS col1 FROM tab0
----
-48614
-54283
-8475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6442
SELECT - 72 + - 47 DIV + CAST( + 85 AS SIGNED ) + - ( - 1 ) DIV COUNT( DISTINCT - col0 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6442
SELECT - 72 + - 47 / + CAST ( + 85 AS INTEGER ) + - ( - 1 ) / COUNT ( DISTINCT - col0 ) FROM tab1
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 87 * + 7 * col0 + - 64 IS NULL ) OR + col1 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT + 92 DIV + - col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6446
SELECT + 92 / + - col2 FROM tab2 AS cor0
----
-1
-2
-4

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

query II rowsort
SELECT + + col1, + 45 * ( 8 ) - 7 AS col0 FROM tab2 AS cor0
----
51
353
67
353
77
353

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ( MIN( - 73 ) ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-6449
SELECT ( MIN ( - 73 ) ) FROM tab0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6450
SELECT DISTINCT col0 * - col1 col0, CAST( + col0 AS SIGNED ) FROM tab2
----
-2346
46
-4928
64
-5025
75

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

query I rowsort
SELECT col2 * - - ( col2 ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + col0 + + - 22 AS col0 FROM tab1
----
29
63
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6453
SELECT DISTINCT CAST( + 53 AS SIGNED ) - - ( - + col2 ) FROM tab0
----
-46
43
6

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT CAST ( + 53 AS INTEGER ) - - ( - + col2 ) FROM tab0
----
-46
43
6

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6454
SELECT 55 + COUNT ( * ) * + 6 * + COUNT ( * ) col2 FROM tab0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - 17 - - 39 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 17 - - 39 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 12 + + - col0 AS col2 FROM tab0 AS cor0
----
-3
-75
-85

query I rowsort
SELECT DISTINCT AVG ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

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

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

query I rowsort
SELECT - + 98 AS col0 FROM tab1 AS cor0
----
-98
-98
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + AVG ( ALL - 52 ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6462
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 <= + - col1 * + col2
----
3

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

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

query I rowsort
SELECT ALL - + col1 * + 25 * col2 FROM tab2 AS cor0
----
-29325
-77000
-97150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6465
SELECT DISTINCT COUNT( * ) * - - 93 DIV + COUNT( * ) FROM tab1 AS cor0
----
93

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT DISTINCT 84 + + COUNT( * ) col2 FROM tab2 WHERE NOT NULL > - col1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6468
SELECT DISTINCT 84 + + COUNT ( * ) col2 FROM tab2 WHERE NOT NULL > - col1
----
84

query I rowsort
SELECT DISTINCT ( - + col1 ) * col2 * 61 - + 23 FROM tab2
----
-187903
-237069
-71576

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

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

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

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + MIN ( - CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT DISTINCT - ( 93 ) + - 31 DIV + 55 FROM tab0 WHERE NULL IS NULL
----
-93

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - ( 93 ) + - 31 / + 55 FROM tab0 WHERE NULL IS NULL
----
-93

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6473
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT 44 + - COUNT( * ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6475
SELECT 44 + - COUNT ( * ) FROM tab0 AS cor0
----
41

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

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

query I rowsort
SELECT DISTINCT col2 * 88 + + - col2 AS col0 FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT DISTINCT - 25 col1, + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-25
3

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

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

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

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

query I rowsort
SELECT + 58 + - col0 AS col0 FROM tab2 AS cor0
----
-17
-6
12

query I rowsort
SELECT DISTINCT + - col0 + 59 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND + + 77 / - col1
----

query I rowsort
SELECT col2 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT + SUM( ALL ( + col0 ) ) * COUNT( * ) * COUNT( * ) FROM tab1
----
2043

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT + SUM ( ALL ( + col0 ) ) * COUNT ( * ) * COUNT ( * ) FROM tab1
----
2043

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL 56 * COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL 56 * COUNT ( * ) FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-6486
SELECT - 28 AS col2, + ( - ( COUNT( * ) ) ) FROM tab1
----
-28
-3

skipif mysql # not compatible
query II rowsort label-6486
SELECT - 28 AS col2, + ( - ( COUNT ( * ) ) ) FROM tab1
----
-28
-3

query I rowsort
SELECT DISTINCT - col0 + col2 + col0 * + col0 * + col0 * - - col1 * col1 AS col2 FROM tab1
----
15353099
1664638316
25999641

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6488
SELECT ALL * FROM tab1 WHERE + 91 * - col2 / CAST( + - 55 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-6488
SELECT ALL * FROM tab1 WHERE + 91 * - col2 / CAST ( + - 55 AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT DISTINCT - col2 - - 63 DIV - - col2 FROM tab0
----
-4
-46
-99

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT - col2 - - 63 / - - col2 FROM tab0
----
-4
-46
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6490
SELECT DISTINCT 35 FROM tab0 WHERE NULL BETWEEN ( - + 30 * - - CAST( + ( 3 ) AS SIGNED ) ) AND 23
----

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT 35 FROM tab0 WHERE NULL BETWEEN ( - + 30 * - - CAST ( + ( 3 ) AS INTEGER ) ) AND 23
----

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

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

query II rowsort
SELECT - + 46, col2 - - 27 AS col2 FROM tab1 AS cor0
----
-46
123
-46
86
-46
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT - SUM( + 18 ) - + COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6494
SELECT - SUM ( + 18 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-57

query I rowsort
SELECT + - col2 - - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6496
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + - 71 / - + 1, CAST( - 57 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6496
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + - 71 / - + 1, CAST ( - 57 AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6497
SELECT COUNT( * ) * - - COUNT( * ), - 15 / + ( + + CAST( NULL AS SIGNED ) ) col0 FROM tab2
----
9
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6497
SELECT COUNT ( * ) * - - COUNT ( * ), - 15 / + ( + + CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
9
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 70 ) * - + 10 * 1 col1 FROM tab0
----
-700
-700
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - - MAX( col0 ) FROM tab1 WHERE NOT - col0 + col2 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-6500
SELECT - - MAX ( col0 ) FROM tab1 WHERE NOT - col0 + col2 IS NULL
----
91

query I rowsort
SELECT ALL + ( - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - - 78 + - - 44 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6503
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) / - - 22 + 21 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6503
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) / - - 22 + 21 IS NOT NULL
----

query I rowsort
SELECT ALL - 1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + - 9 + + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 87 NOT BETWEEN ( + - 22 ) AND NULL
----

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE ( + + 41 ) + - + col1 / - - col1 * - + 98 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6508
SELECT ALL + col2, col2 + - col2 + + col0 * + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6508
SELECT ALL + col2, col2 + - col2 + + col0 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - 94 * + + 55 AS col2 FROM tab2
----
-5170
-5170
-5170

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT COUNT( 67 ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6510
SELECT COUNT ( 67 ) * - COUNT ( * ) FROM tab0
----
-9

query II rowsort
SELECT - 3 AS col1, 26 * 35 FROM tab1
----
-3
910
-3
910
-3
910

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

skipif mysql # not compatible
query I rowsort label-6512
SELECT - MIN ( ALL 90 ) AS col0 FROM tab0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6513
SELECT col2 AS col0, + ( - CAST( col2 AS SIGNED ) ) * - col2 FROM tab1
----
59
3481
68
4624
96
9216

skipif mysql # not compatible
query II rowsort label-6513
SELECT col2 AS col0, + ( - CAST ( col2 AS INTEGER ) ) * - col2 FROM tab1
----
59
3481
68
4624
96
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6514
SELECT ALL CAST( - - SUM( - 75 ) AS SIGNED ) AS col2 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL CAST ( - - SUM ( - 75 ) AS INTEGER ) AS col2 FROM tab2
----
-225

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT + - SUM( - 20 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + - SUM ( - 20 ) FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT DISTINCT + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) * + 2 / + ( + + col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) * + 2 / + ( + + col0 ) AND NULL
----

query I rowsort
SELECT ALL + col2 * col2 * + 55 * - + col2 FROM tab2 AS cor0
----
-10731160
-3520000
-669185

query I rowsort
SELECT - 91 + - 64 AS col1 FROM tab1 AS cor0
----
-155
-155
-155

query I rowsort
SELECT - 24 * + - 78 + + col2 FROM tab0
----
1882
1919
1971

query I rowsort
SELECT + 33 + + + col2 AS col1 FROM tab2
----
56
73
91

query I rowsort
SELECT - 1 * col1 FROM tab2 WHERE NULL <> - 82
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT + - 77 * + CAST( 36 AS SIGNED ) FROM tab0 AS cor0
----
-2772

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + - 77 * + CAST ( 36 AS INTEGER ) FROM tab0 AS cor0
----
-2772

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

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

query II rowsort
SELECT DISTINCT + col1 * - col0 AS col1, col1 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

query I rowsort
SELECT + ( - 58 ) - - 7 AS col2 FROM tab1 AS cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6529
SELECT ALL + CAST( NULL AS DECIMAL ) * COUNT( * ) * - COUNT( * ) AS col1, COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-6529
SELECT ALL + CAST ( NULL AS REAL ) * COUNT ( * ) * - COUNT ( * ) AS col1, COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
NULL
-9

query I rowsort
SELECT ALL 84 + - - col1 FROM tab0
----
105
165
85

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

query I rowsort
SELECT DISTINCT + 55 * + 4 * + col0 AS col1 FROM tab0 AS cor0
----
19140
21340
3300

query II rowsort
SELECT 24 AS col1, - col1 + col0 FROM tab1 AS cor0
----
24
37
24
44
24
80

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - MAX( - 11 ) AS col1 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6538
SELECT - MAX ( - 11 ) AS col1 FROM tab2
----
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 < - col2 + + col1 + + col0
----
51
14
96
85
5
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT - col2 DIV - - ( + - col1 ) AS col1 FROM tab1 cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6541
SELECT - col2 / - - ( + - col1 ) AS col1 FROM tab1 cor0
----
1
11
6

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 - - - col0 * 51 FROM tab0 AS cor0
----
-1933
-4945
-6254

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT + MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6544
SELECT + MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-6545
SELECT DISTINCT + col0 DIV col0 + + 7 + - col2, col2 * col2 DIV - col0 col1 FROM tab2 cor0
----
-15
-11
-32
-25
-50
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6545
SELECT DISTINCT + col0 / col0 + + 7 + - col2, col2 * col2 / - col0 col1 FROM tab2 cor0
----
-15
-11
-32
-25
-50
-44

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

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

skipif mysql # not compatible
query I rowsort label-6547
SELECT - - MIN ( - + col2 ) FROM tab0 AS cor0
----
-99

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + col0 + col0 FROM tab1
----
116
175
229

query I rowsort
SELECT - col1 + + 41 AS col2 FROM tab0
----
-40
20
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT - CAST( col0 AS SIGNED ) + 38 AS col1 FROM tab2
----
-26
-37
-8

skipif mysql # not compatible
query I rowsort label-6552
SELECT - CAST ( col0 AS INTEGER ) + 38 AS col1 FROM tab2
----
-26
-37
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6554
SELECT + - MAX( DISTINCT - CAST( + 58 AS SIGNED ) ) FROM tab2 AS cor0
----
58

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

query II rowsort
SELECT 79 AS col2, 98 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
18 values hashing to 9b1c0dff51569f6e432404a19c255d94

query I rowsort
SELECT + col1 + 39 * - col2 + - col0 FROM tab0 AS cor0
----
-1767
-3957
-456

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

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

query I rowsort
SELECT 29 + - 73 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-44
-44
-44

query I rowsort
SELECT ALL 2 * col1 - col0 + + col2 AS col1 FROM tab2 cor0
----
117
130
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 69 AS col0, + 14 col2 FROM tab1 AS cor0
----
69
14
69
14
69
14

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

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

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

query I rowsort
SELECT DISTINCT - 94 * + 11 + ( col1 ) FROM tab0 WHERE NOT + col0 * - + 8 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + COUNT( * ) * + + 44 col1 FROM tab0
----
132

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

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

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

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

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

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6571
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) * 97 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) * 97 FROM tab2
----
-291

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NULL IN ( 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT MAX( col2 ) * - 7 AS col2 FROM tab1 AS cor0
----
-672

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT MAX ( col2 ) * - 7 AS col2 FROM tab1 AS cor0
----
-672

query II rowsort
SELECT + col0 * - - col2 * col1, - col2 AS col2 FROM tab0 AS cor0
----
18270
-10
57105
-47
9603
-99

query I rowsort
SELECT ALL - ( + col2 ) * + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT + 84 * + 98 FROM tab2 cor0
----
8232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT + - MIN( ALL - 41 ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + - MIN ( ALL - 41 ) FROM tab1 AS cor0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT DISTINCT - MAX( ALL col2 ) / + + 21 + + ( + 12 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT - MAX ( ALL col2 ) / + + 21 + + ( + 12 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
NULL

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

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

query I rowsort
SELECT DISTINCT 87 + + col1 FROM tab1
----
101
134
92

query I rowsort
SELECT ALL ( 88 ) AS col2 FROM tab2
----
88
88
88

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

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

query II rowsort
SELECT col2, col0 + ( - 6 ) + ( 79 ) - - ( col1 ) * + col2 * + col0 + - 68 - - col2 * + col2 * col0 * + col0 FROM tab2
----
23
1173373
40
6750789
58
19214030

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT 67 + - SUM( ALL - - col1 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT 67 + - SUM ( ALL - - col1 ) AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT ALL col0 DIV + 77 + - - col0 FROM tab0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL col0 / + 77 + - - col0 FROM tab0
----
15
88
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6589
SELECT CAST( NULL AS SIGNED ) col2, - MIN( - + col0 ) AS col1 FROM tab1
----
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6589
SELECT CAST ( NULL AS INTEGER ) col2, - MIN ( - + col0 ) AS col1 FROM tab1
----
NULL
91

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

query I rowsort
SELECT col0 + + - col0 - col0 * - col2 * + 90 AS col1 FROM tab0 AS cor0
----
63450
78300
864270

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT ALL + 69, + MAX( ALL col0 ) AS col2 FROM tab0 cor0
----
69
97

skipif mysql # not compatible
query II rowsort label-6592
SELECT ALL + 69, + MAX ( ALL col0 ) AS col2 FROM tab0 cor0
----
69
97

query I rowsort
SELECT - 43 + - + ( col0 ) + - - 51 FROM tab2 AS cor0
----
-38
-56
-67

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT 87 + + COUNT( * ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT 87 + + COUNT ( * ) AS col2 FROM tab1
----
90

query I rowsort
SELECT ALL ( - ( - 74 ) ) - + 79 * - + 28 AS col0 FROM tab2
----
2286
2286
2286

query I rowsort
SELECT ALL + - 83 * + ( + col1 ) FROM tab2 AS cor0 WHERE ( ( + col1 NOT BETWEEN - col1 AND + + col2 ) )
----
-4233
-5561
-6391

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6600
SELECT + - 21 - + - CAST( - col2 AS SIGNED ) + - ( - col0 ) DIV + col0 FROM tab1 cor0
----
-116
-79
-88

skipif mysql # not compatible
query I rowsort label-6600
SELECT + - 21 - + - CAST ( - col2 AS INTEGER ) + - ( - col0 ) / + col0 FROM tab1 cor0
----
-116
-79
-88

query I rowsort
SELECT DISTINCT - col2 - 16 FROM tab0 AS cor0
----
-115
-26
-63

query I rowsort
SELECT col2 - - ( - col0 ) + + - col0 FROM tab1 AS cor0
----
-111
-114
-6

query I rowsort
SELECT DISTINCT 78 * - 0 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 19 ) col1 FROM tab0
----
19
19
19

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT col1 * + - col2 * - ( - col2 ) + + - col1 * + col1 + + - ( - CAST( NULL AS SIGNED ) ) + - 13 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6607
SELECT col1 * + - col2 * - ( - col2 ) + + - col1 * + col1 + + - ( - CAST ( NULL AS INTEGER ) ) + - 13 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6612
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col0 * col2 - + 84 AS col1 FROM tab1 AS cor0
----
4812
4931
6104

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

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

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

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

query I rowsort
SELECT 1 * - - 81 AS col2 FROM tab1 WHERE 26 + + col1 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col1 AS col0 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT + 3 + + col0 AS col0 FROM tab1
----
54
88
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6620
SELECT ALL CAST( 84 AS SIGNED ) + - - col2 + - col0 - 36 * + col0 * 97 DIV col0 AS col0 FROM tab0
----
-3376
-3406
-3485

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL CAST ( 84 AS INTEGER ) + - - col2 + - col0 - 36 * + col0 * 97 / col0 AS col0 FROM tab0
----
-3376
-3406
-3485

query I rowsort
SELECT DISTINCT + col0 + - - 26 + - 83 + 52 AS col2 FROM tab1
----
46
80
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL - COUNT( * ) - - 43 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - COUNT ( * ) - - 43 FROM tab1 AS cor0
----
40

query I rowsort
SELECT - 18 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1377
-17
-357

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + 74 + - SUM( ALL - col2 ) FROM tab0 cor0
----
230

skipif mysql # not compatible
query I rowsort label-6625
SELECT + 74 + - SUM ( ALL - col2 ) FROM tab0 cor0
----
230

query II rowsort
SELECT ( + - col1 ) * + - col1 + col2 + - - 96 * + col1, + col0 FROM tab0 AS cor0
----
14384
15
196
97
2467
87

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

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

query I rowsort
SELECT + + 12 AS col2 FROM tab1 AS cor0
----
12
12
12

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 10 > + col1
----
15
81
47
87
21
10

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT col1 * - 8 AS col1 FROM tab1
----
-112
-376
-40

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 WHERE NOT - col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL + 26 * - - 82 + - + COUNT( * ) FROM tab0 AS cor0
----
2129

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + 26 * - - 82 + - + COUNT ( * ) FROM tab0 AS cor0
----
2129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT + - COUNT( * ) * CAST( + 88 AS SIGNED ) + + 4 AS col2 FROM tab0 AS cor0
----
-260

skipif mysql # not compatible
query I rowsort label-6637
SELECT + - COUNT ( * ) * CAST ( + 88 AS INTEGER ) + + 4 AS col2 FROM tab0 AS cor0
----
-260

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT + COUNT( * ) * 67 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + COUNT ( * ) * 67 FROM tab0 AS cor0
----
201

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

query I rowsort
SELECT DISTINCT + col1 * col0 * + 81 - - 60 + + - col0 FROM tab0 cor0
----
147960
7820
98460

query II rowsort
SELECT DISTINCT col2 AS col1, - 21 + - ( - col0 ) AS col0 FROM tab0 cor0
----
10
66
47
-6
99
76

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

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 97 ) NOT BETWEEN NULL AND NULL
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT MAX( ALL + + 88 ) * + - COUNT( * ) + COUNT( * ) DIV - - SUM( ALL col0 ) col0 FROM tab2
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6645
SELECT MAX ( ALL + + 88 ) * + - COUNT ( * ) + COUNT ( * ) / - - SUM ( ALL col0 ) col0 FROM tab2
----
-264

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + - 39 BETWEEN 89 + + col1 AND - + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT DISTINCT 16 DIV + + col0 + col2 FROM tab0 AS cor0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT 16 / + + col0 + col2 FROM tab0 AS cor0
----
10
48
99

query I rowsort
SELECT + + 57 + col0 AS col1 FROM tab0 cor0
----
144
154
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT - 92 * - + CAST( - + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-4324
-9108
-920

skipif mysql # not compatible
query I rowsort label-6651
SELECT - 92 * - + CAST ( - + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + - MIN( ALL + + 0 ) * 5 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-6652
SELECT + - MIN ( ALL + + 0 ) * 5 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 88 col2 FROM tab1
----
-5192
-5984
-8448

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab0, tab2 cor0
----
63

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6657
SELECT - col0 col2, ( ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT - col2 DIV 72 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT - col2 / 72 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + col1 col0 FROM tab2
----
-46
51
-64
77
-75
67

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6661
SELECT ALL - col0 AS col2, + 99 + - col0 * ( CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6661
SELECT ALL - col0 AS col2, + 99 + - col0 * ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + - 70 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6663
SELECT ALL 11 AS col2, col0 DIV - col1 FROM tab0
----
11
-4
11
-97
11
0

skipif mysql # not compatible
query II rowsort label-6663
SELECT ALL 11 AS col2, col0 / - col1 FROM tab0
----
11
-4
11
-97
11
0

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

query I rowsort
SELECT 41 * + ( + 8 ) AS col2 FROM tab1 AS cor0
----
328
328
328

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6666
SELECT - 78 DIV CAST( + - col1 AS SIGNED ) * - col0 + + ( col0 ) 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-6666
SELECT - 78 / CAST ( + - col1 AS INTEGER ) * - col0 + + ( col0 ) col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 69 FROM tab0 WHERE 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL - COUNT( + 4 ) col1 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-6668
SELECT ALL - COUNT ( + 4 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - + 47 * + 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE 57 + + + 82 = NULL
----

query I rowsort
SELECT - 15 + col1 AS col1 FROM tab1 AS cor0
----
-1
-10
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT 81 + + - SUM( - 75 ) FROM tab1 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-6672
SELECT 81 + + - SUM ( - 75 ) FROM tab1 AS cor0
----
306

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

skipif mysql # not compatible
query I rowsort label-6673
SELECT + col1 + - col2 + ( + col2 ) / - col2 AS col0 FROM tab0 cor0
----
-99
10
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL 93 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - + col1 AND col0 / 45 + 61 + CAST( NULL AS SIGNED ) * CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL 93 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - + col1 AND col0 / 45 + 61 + CAST ( NULL AS INTEGER ) * CAST ( + + col0 AS INTEGER )
----

query I rowsort
SELECT ALL + - col1 / 8 FROM tab0 AS cor0 WHERE 63 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + ( - + col0 ) * col2 + + 33 AS col0 FROM tab2 cor0
----
1091
2593
4383

query I rowsort
SELECT DISTINCT 39 * + col2 + - + ( + - col0 ) - 26 + + + 20 FROM tab1 AS cor0
----
2380
2737
3789

query II rowsort
SELECT ALL - col0 + - + col1 AS col2, - col1 FROM tab2 AS cor0
----
-141
-77
-142
-67
-97
-51

query I rowsort
SELECT col0 + - col0 - + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6680
SELECT ALL + 71 + - + col1 + + 3 DIV CAST( - ( - 91 ) AS SIGNED ) AS col1, + col2 + - col0 AS col0 FROM tab2
----
-6
-24
20
-23
4
-17

skipif mysql # not compatible
query II rowsort label-6680
SELECT ALL + 71 + - + col1 + + 3 / CAST ( - ( - 91 ) AS INTEGER ) AS col1, + col2 + - col0 AS col0 FROM tab2
----
-6
-24
20
-23
4
-17

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

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

query I rowsort
SELECT ALL - col2 + - + col0 AS col1 FROM tab0
----
-196
-62
-97

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

query III rowsort
SELECT * FROM tab0 WHERE 94 BETWEEN + col1 AND + + 27
----

query I rowsort
SELECT ALL - + col2 * col2 * + - col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-10000
-4879681
-96059601

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

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

query I rowsort
SELECT DISTINCT ( 34 ) FROM tab0 WHERE NULL IS NULL
----
34

query I rowsort
SELECT - AVG ( DISTINCT col1 ) FROM tab0 WHERE - col2 * - 38 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 42 AS col2 FROM tab2
----
106
117
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT ALL COUNT( * ) + + COUNT( * ) * + 56 AS col1 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL COUNT ( * ) + + COUNT ( * ) * + 56 AS col1 FROM tab2
----
171

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 BETWEEN - col2 - - 81 AND + 73 + 36
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 73 * + 64 < ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT COUNT( * ) / - MIN( - col2 ) AS col0 FROM tab1 WHERE ( col0 ) * + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT COUNT ( * ) / - MIN ( - col2 ) AS col0 FROM tab1 WHERE ( col0 ) * + col0 <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6697
SELECT ALL * FROM tab0 WHERE NOT col1 * + col1 > col0 + - col2 * + CAST( - col1 AS SIGNED )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-6697
SELECT ALL * FROM tab0 WHERE NOT col1 * + col1 > col0 + - col2 * + CAST ( - col1 AS INTEGER )
----
97
1
99

query I rowsort
SELECT DISTINCT + 93 FROM tab1 WHERE ( 90 ) NOT BETWEEN NULL AND NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + COUNT ( * ) - 8 FROM tab2
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6701
SELECT 66 + col2 DIV - ( CAST( col2 AS SIGNED ) ) col1 FROM tab1
----
65
65
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6701
SELECT 66 + col2 / - ( CAST ( col2 AS INTEGER ) ) col1 FROM tab1
----
65
65
65

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab1 WHERE col2 * ( - col1 * - col1 ) IS NOT NULL
----
-425
-4277
-714

query I rowsort
SELECT ALL 78 + - 16 FROM tab1
----
62
62
62

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 67 <= 62
----

query I rowsort
SELECT DISTINCT + col0 + 71 * 77 FROM tab0
----
5482
5554
5564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col0 FROM tab1 WHERE NOT + 87 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - 39 + col2 AS col1 FROM tab1
----
20
29
57

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

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

query I rowsort
SELECT col2 + 67 AS col2 FROM tab1
----
126
135
163

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col0 FROM tab2 cor0 WHERE NOT ( + col2 * 59 ) < - col1 + col0
----
71
71
71

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

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

query I rowsort
SELECT col1 * + col2 + + 22 FROM tab1 AS cor0
----
1366
317
3218

query I rowsort
SELECT + col1 * col1 AS col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
1
441
6561

query I rowsort
SELECT col2 + 65 FROM tab0
----
112
164
75

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) <> + 68
----

query I rowsort
SELECT col1 + 21 AS col1 FROM tab1
----
26
35
68

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

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

query I rowsort
SELECT ALL col2 * col2 + + col1 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT DISTINCT - + col1 * 88 - 79 AS col2 FROM tab1 AS cor0
----
-1311
-4215
-519

query I rowsort
SELECT - 78 FROM tab1 cor0 WHERE + 62 NOT IN ( + col2 )
----
-78
-78
-78

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT + col0 * + - col0 - + 16 DIV + ( - 37 ) AS col2 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-6729
SELECT + col0 * + - col0 - + 16 / + ( - 37 ) AS col2 FROM tab0
----
-225
-7569
-9409

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

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

query I rowsort
SELECT DISTINCT 82 + + - col0 AS col1 FROM tab2
----
18
36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + SUM( + + col0 ) - - 85 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-6732
SELECT + SUM ( + + col0 ) - - 85 FROM tab2
----
270

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

query I rowsort
SELECT - 1 + - 42 FROM tab0
----
-43
-43
-43

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 * + 84 > NULL
----

query I rowsort
SELECT ALL + col2 + - 90 AS col1 FROM tab0 AS cor0
----
-43
-80
9

query I rowsort
SELECT + col0 - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 7 - col2 + - col1 AS col0 FROM tab0 cor0
----
-107
-135
-38

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - + 88 + - 23 )
----

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

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

query I rowsort
SELECT DISTINCT 8 * - col2 + - col0 + - 15 * col1 FROM tab1 AS cor0
----
-1029
-1340
-632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT DISTINCT - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE + 61 IN ( + CAST( - col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE + 61 IN ( + CAST ( - col2 AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + 44 )
----

query II rowsort
SELECT + col2 AS col1, + col2 + + + 97 + col0 FROM tab1 AS cor0
----
59
241
68
256
96
244

query II rowsort
SELECT - 24, col1 * + 0 AS col0 FROM tab0 AS cor0
----
-24
0
-24
0
-24
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6750
SELECT DISTINCT + - 73 col1, CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-73
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6750
SELECT DISTINCT + - 73 col1, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-73
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6752
SELECT ALL CAST( 87 AS SIGNED ), col2 FROM tab2
----
87
23
87
40
87
58

skipif mysql # not compatible
query II rowsort label-6752
SELECT ALL CAST ( 87 AS INTEGER ), col2 FROM tab2
----
87
23
87
40
87
58

query I rowsort
SELECT ALL 91 * 64 FROM tab1
----
5824
5824
5824

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

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

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

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

query I rowsort
SELECT - - 62 * 27 + - - col0 AS col2 FROM tab0 AS cor0
----
1689
1761
1771

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

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

query I rowsort
SELECT + col1 + + 59 FROM tab0 WHERE + + col1 IS NOT NULL
----
140
60
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 74 - + - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT SUM( 91 ) FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT SUM ( 91 ) FROM tab2 AS cor0
----
273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( - 27 / - - 27 ) AND ( - col0 ) AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + col1 * + col2 - - + 69 FROM tab2 cor0
----
1242
3149
3955

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT ALL - 93 DIV col1 + 49 FROM tab0 cor0 WHERE NOT 21 >= - col0 DIV - col1 + + 58
----
-44
45
48

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL - 93 / col1 + 49 FROM tab0 cor0 WHERE NOT 21 >= - col0 / - col1 + + 58
----
-44
45
48

query I rowsort
SELECT + + col1 + + col2 + - + 76 * + - col2 AS col0 FROM tab0 AS cor0
----
3700
7624
791

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6770
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 + CAST( NULL AS SIGNED ) + - - ( + 9 ) + - 86 * col2 >= + 11 + col0 * 90
----

skipif mysql # not compatible
query III rowsort label-6770
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 + CAST ( NULL AS INTEGER ) + - - ( + 9 ) + - 86 * col2 >= + 11 + col0 * 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT SUM( DISTINCT col1 ) + COUNT( * ) AS col0 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT SUM ( DISTINCT col1 ) + COUNT ( * ) AS col0 FROM tab0
----
106

query II rowsort
SELECT 22 AS col1, 92 AS col1 FROM tab2
----
22
92
22
92
22
92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6774
SELECT ALL ( 4 ) + + COUNT( 44 ) - ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL ( 4 ) + + COUNT ( 44 ) - ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0, 16 )
----

query I rowsort
SELECT DISTINCT 11 - + 1 AS col1 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6780
SELECT DISTINCT 51 + ( - col1 ) + + col2 + 0 + + - col2 DIV + col1 AS col0 FROM tab1
----
127
71
94

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT 51 + ( - col1 ) + + col2 + 0 + + - col2 / + col1 AS col0 FROM tab1
----
127
71
94

query I rowsort
SELECT 43 * + 22 - - col1 FROM tab2 AS cor0
----
1013
1023
997

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

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

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab0 AS cor0 WHERE + 36 > + - col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6784
SELECT - + CAST( NULL AS SIGNED ), - 77 col2 FROM tab2 AS cor0
----
NULL
-77
NULL
-77
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6784
SELECT - + CAST ( NULL AS INTEGER ), - 77 col2 FROM tab2 AS cor0
----
NULL
-77
NULL
-77
NULL
-77

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

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

skipif mysql # not compatible
query I rowsort label-6786
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 46 + - - col1 NOT BETWEEN ( NULL ) AND - col0 * - 7
----
0

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

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

query I rowsort
SELECT + 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6789
SELECT ALL - - CAST( + + col1 AS SIGNED ) AS col1, + col1 DIV - col0 FROM tab0 AS cor0
----
1
0
21
0
81
-5

skipif mysql # not compatible
query II rowsort label-6789
SELECT ALL - - CAST ( + + col1 AS INTEGER ) AS col1, + col1 / - col0 FROM tab0 AS cor0
----
1
0
21
0
81
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1 WHERE 53 <= ( - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6793
SELECT - col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-6793
SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT ALL - col2 * + col1 + + + col1 FROM tab0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT MIN( 23 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6795
SELECT MIN ( 23 ) AS col1 FROM tab2
----
23

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 31 col2, + ( - - col0 ) FROM tab0
----
31
15
31
87
31
97

query II rowsort
SELECT col1 * + ( + - 7 ), col0 FROM tab0
----
-147
87
-567
15
-7
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 47 IS NOT NULL
----

query I rowsort
SELECT 5 + - - 62 * col2 FROM tab2 AS cor0
----
1431
2485
3601

query II rowsort
SELECT col0 + + col0 * + 30 * + - col0 - - + col1, + col1 FROM tab2
----
-122739
77
-168608
67
-63383
51

query I rowsort
SELECT + 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL col2 * + + col2 * col1 + - ( + 85 ) * col0 FROM tab0
----
-5295
1556
177654

query I rowsort
SELECT 95 + - + 27 FROM tab0
----
68
68
68

query I rowsort
SELECT ALL + + 25 * - - 3 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT - ( CAST( SUM( + 66 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6806
SELECT - ( CAST ( SUM ( + 66 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + COUNT( * ) - + MAX( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-6807
SELECT + COUNT ( * ) - + MAX ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT 42 - + col2 AS col2 FROM tab2 AS cor0
----
-16
19
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + + 25 + - ( - ( col0 ) ) col2, col0 FROM tab0
----
-7
15
102
87
23
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6810
SELECT DISTINCT - COUNT( * ) + 88 DIV MAX( ALL + col0 ) * + + 42, + COUNT( * ) AS col0 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-6810
SELECT DISTINCT - COUNT ( * ) + 88 / MAX ( ALL + col0 ) * + + 42, + COUNT ( * ) AS col0 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT - COUNT( ALL - col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6811
SELECT - COUNT ( ALL - col0 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT + col2 DIV - 69 col1 FROM tab1 WHERE NOT col2 IS NULL
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6812
SELECT + col2 / - 69 col1 FROM tab1 WHERE NOT col2 IS NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT + MAX( col2 ) AS col2 FROM tab2 WHERE NOT - col2 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT + MAX ( col2 ) AS col2 FROM tab2 WHERE NOT - col2 * - col1 IS NOT NULL
----
NULL

query II rowsort
SELECT + - col2 * - - 12 AS col0, col0 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-276
46
-480
64
-696
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col1 FROM tab1 WHERE NOT - 92 IS NOT NULL
----

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

query I rowsort
SELECT ( + 58 ) * - + col0 FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT DISTINCT - - 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT + CAST( + col2 AS SIGNED ) * + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6820
SELECT + CAST ( + col2 AS INTEGER ) * + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

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

query I rowsort
SELECT ALL + col2 + col1 + + col1 + 87 * + - col2 + + 50 * col1 * - - col0 * col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT 52 * 12 FROM tab1 AS cor0
----
624
624
624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6824
SELECT + - MAX( DISTINCT + 76 ) DIV ( + MIN( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6824
SELECT + - MAX ( DISTINCT + 76 ) / ( + MIN ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + - ( - - 23 ) * - 20 - + col2 - - col2 * + + col0 * + col1 + - ( 31 ) AS col1 FROM tab2 cor0
----
197509
291821
54364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 + + - col1 * col2 col0 FROM tab2 AS cor0
----
-1215
-3122
-3928

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 + col0 col2, 53 AS col1 FROM tab2
----
-2070
53
-4032
53
-5550
53

query I rowsort
SELECT DISTINCT + 82 + + col0 + - col2 FROM tab2
----
105
106
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL + 8 + - COUNT( * ) + + - COUNT( * ) * COUNT( * ) * + 93 * 95 FROM tab1 AS cor0
----
-79510

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + 8 + - COUNT ( * ) + + - COUNT ( * ) * COUNT ( * ) * + 93 * 95 FROM tab1 AS cor0
----
-79510

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6833
SELECT ALL + COUNT( CAST( NULL AS DECIMAL ) ) * - 30 + + + COUNT( - - 84 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6833
SELECT ALL + COUNT ( CAST ( NULL AS REAL ) ) * - 30 + + + COUNT ( - - 84 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 - + - 85 FROM tab1 AS cor0
----
144
153
181

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT MIN( + + col0 ) + + 63 AS col0, COUNT( - + col1 ) AS col1 FROM tab2 AS cor0
----
109
3

skipif mysql # not compatible
query II rowsort label-6835
SELECT MIN ( + + col0 ) + + 63 AS col0, COUNT ( - + col1 ) AS col1 FROM tab2 AS cor0
----
109
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 ) NOT IN ( col1 + col0, + col0, col1, + - col1, + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6838
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 + + 95 + CAST( NULL AS SIGNED ) = col0 + ( - + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-6838
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 + + 95 + CAST ( NULL AS INTEGER ) = col0 + ( - + col0 ) )
----

query I rowsort
SELECT + col0 * 82 * col0 AS col0 FROM tab2 AS cor0
----
173512
335872
461250

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

query I rowsort
SELECT ALL - + 38 AS col0 FROM tab1 AS cor0
----
-38
-38
-38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT ALL - 16 DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - 16 / + col0 AS col1 FROM tab1
----
0
0
0

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

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

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

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

query I rowsort
SELECT + 38 * - col1 AS col2 FROM tab2
----
-1938
-2546
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT + SUM( + + 34 ) AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-6848
SELECT + SUM ( + + 34 ) AS col1 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT - MIN( ALL + - col0 ) * - - SUM( + col1 ) + + 98 FROM tab0
----
10089

skipif mysql # not compatible
query I rowsort label-6849
SELECT - MIN ( ALL + - col0 ) * - - SUM ( + col1 ) + + 98 FROM tab0
----
10089

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6850
SELECT ALL - 71 DIV - - CAST( - - col0 AS SIGNED ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - 71 / - - CAST ( - - col0 AS INTEGER ) FROM tab2
----
-1
-1
0

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6854
SELECT SUM ( col0 ) col0 FROM tab2 AS cor0
----
185

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6859
SELECT * FROM tab1 WHERE - - col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6859
SELECT * FROM tab1 WHERE - - col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT ALL - col2 + + 32 AS col2 FROM tab2
----
-26
-8
9

query III rowsort
SELECT + 57, + col0, - col0 AS col1 FROM tab2
----
9 values hashing to 6c69e8e5571e8ea84ec1a68ae6735503

query II rowsort
SELECT - 76 * col0, + ( + col2 ) AS col1 FROM tab2
----
-3496
23
-4864
40
-5700
58

query I rowsort
SELECT ALL - 21 + 34 FROM tab1
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT DISTINCT - col2 + + col0 DIV - col0 AS col0 FROM tab0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - col2 + + col0 / - col0 AS col0 FROM tab0
----
-100
-11
-48

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT COUNT( * ) + - - 83, COUNT( * ) AS col1 FROM tab2 AS cor0
----
86
3

skipif mysql # not compatible
query II rowsort label-6867
SELECT COUNT ( * ) + - - 83, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - + 17 + COUNT( * ) * + - 27 FROM tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6868
SELECT - + 17 + COUNT ( * ) * + - 27 FROM tab1 cor0
----
-98

query I rowsort
SELECT col1 * + col0 * + 4 * - col0 AS col2 FROM tab1
----
-144500
-145656
-1556828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL - + COUNT( * ) + - 31 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL - + COUNT ( * ) + - 31 FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6872
SELECT col2 AS col0, CAST( NULL AS SIGNED ) * + CAST( 47 AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-6872
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) * + CAST ( 47 AS REAL ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT DISTINCT - CAST( 33 AS SIGNED ) * - - MIN( ALL + col1 ) FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - CAST ( 33 AS INTEGER ) * - - MIN ( ALL + col1 ) FROM tab1 AS cor0
----
-165

query I rowsort
SELECT col0 * 98 AS col1 FROM tab2 cor0
----
4508
6272
7350

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

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

query II rowsort
SELECT + - 18 * + col2 AS col2, 57 + - col2 * - - col1 + - 92 - + col2 * + - col2 + + + col0 AS col1 FROM tab2 AS cor0
----
-1044
-482
-414
-633
-720
-1451

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - MAX( - 59 ) AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - MAX ( - 59 ) AS col2 FROM tab0
----
59

query I rowsort
SELECT + + 26 FROM tab1 WHERE NOT NULL <> 28 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT ALL + 67 DIV - - 6 FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + 67 / - - 6 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6882
SELECT ALL col0 DIV 98 + CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT + + 13 * ( - + col0 ) FROM tab1 AS cor0
----
-1105
-1183
-663

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

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

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

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT 6 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

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

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

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

query I rowsort
SELECT - + 80 + - - col1 * + col0 FROM tab2 AS cor0
----
2266
4848
4945

query II rowsort
SELECT ALL + 59, col0 FROM tab1
----
59
51
59
85
59
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT 44 + + COUNT( * ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT 44 + + COUNT ( * ) FROM tab0
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL - 8 * + + 17 - ( + 2 ) + + + MAX( ALL - - col1 ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL - 8 * + + 17 - ( + 2 ) + + + MAX ( ALL - - col1 ) AS col1 FROM tab0
----
-57

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

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

query I rowsort
SELECT + col0 * 88 AS col2 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
74

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 NOT IN ( ( + - col0 ) - - 41 + col0 )
----

query II rowsort
SELECT DISTINCT + col0 * - + col0, - col0 + - - col0 - + - col2 AS col1 FROM tab1 AS cor0
----
-2601
96
-7225
59
-8281
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6900
SELECT + col0 AS col2, - 2 DIV col0 + - 69 FROM tab2 cor0
----
46
-69
64
-69
75
-69

skipif mysql # not compatible
query II rowsort label-6900
SELECT + col0 AS col2, - 2 / col0 + - 69 FROM tab2 cor0
----
46
-69
64
-69
75
-69

query I rowsort
SELECT ALL - col2 * - + 20 * col0 AS col0 FROM tab1 AS cor0
----
100300
123760
97920

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT DISTINCT - SUM( 73 ) AS col0 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - SUM ( 73 ) AS col0 FROM tab2 AS cor0
----
-219

query I rowsort
SELECT DISTINCT 63 * + col0 AS col1 FROM tab2
----
2898
4032
4725

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

query I rowsort
SELECT DISTINCT - col2 * - col0 * 37 FROM tab1
----
181152
185555
228956

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6907
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < CAST( - ( - col0 ) AS SIGNED ) * CAST( NULL AS SIGNED ) * - ( col2 ) / - - col2 + + col2 + 81 * + + col2 * + 38 * - col1 * + col0 + - - col2
----

skipif mysql # not compatible
query III rowsort label-6907
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < CAST ( - ( - col0 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) * - ( col2 ) / - - col2 + + col2 + 81 * + + col2 * + 38 * - col1 * + col0 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6908
SELECT ALL - CAST( - + col1 AS SIGNED ) DIV + 39 + col2 AS col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - CAST ( - + col1 AS INTEGER ) / + 39 + col2 AS col2 FROM tab2
----
24
41
59

query I rowsort
SELECT ALL - 97 AS col1 FROM tab0 cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6910
SELECT DISTINCT - 96 * - 47 * 45 + + CAST( + 29 AS SIGNED ) AS col1 FROM tab0
----
203069

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - 96 * - 47 * 45 + + CAST ( + 29 AS INTEGER ) AS col1 FROM tab0
----
203069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 48 col0 FROM tab2 WHERE NOT + col1 >= + 23 / ( - 23 )
----

query I rowsort
SELECT DISTINCT 96 * - col1 FROM tab1
----
-1344
-4512
-480

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT ALL + - 47 + - col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + - 47 + - col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - SUM( + + col0 ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - SUM ( + + col0 ) AS col2 FROM tab1 cor0
----
-227

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

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

query I rowsort
SELECT ALL + 23 + col0 FROM tab2 AS cor0
----
69
87
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT 34 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT 34 / col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT ( - 23 ) DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6922
SELECT ( - 23 ) / col1 AS col2 FROM tab2
----
0
0
0

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

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

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

query II rowsort
SELECT + col1 + + col1, 59 AS col0 FROM tab1
----
10
59
28
59
94
59

query I rowsort
SELECT - 68 + + col2 AS col0 FROM tab1
----
-9
0
28

query I rowsort
SELECT DISTINCT ( 18 ) + 32 AS col0 FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT + 17 + + - COUNT( * ) AS col2 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-6928
SELECT + 17 + + - COUNT ( * ) AS col2 FROM tab2
----
14

query I rowsort
SELECT + 35 + col2 * 57 AS col2 FROM tab1
----
3398
3911
5507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT ALL 99 - 65 DIV - COUNT( DISTINCT + col0 ) FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL 99 - 65 / - COUNT ( DISTINCT + col0 ) FROM tab0 cor0
----
120

query I rowsort
SELECT ALL + + col0 - + + 67 FROM tab0 AS cor0
----
-52
20
30

query I rowsort
SELECT DISTINCT + col2 - + + 69 FROM tab2 AS cor0
----
-11
-29
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= 59
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= 59
----
0

query III rowsort
SELECT + + 27, col2 + - col2 AS col1, - 21 AS col0 FROM tab0 AS cor0
----
9 values hashing to 1ef4bf8d062bb95d6df33725ba76b455

query I rowsort
SELECT + col0 + + 40 + + col2 * + 41 * - col0 - - 84 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT + + 78 AS col0 FROM tab1 AS cor0
----
78
78
78

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

query II rowsort
SELECT 31 AS col0, - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
31
59
31
68
31
96

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

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

query I rowsort
SELECT + 38 FROM tab0 AS cor0 WHERE NOT col1 > - col1
----

query I rowsort
SELECT 49 * + 69 AS col1 FROM tab2 AS cor0
----
3381
3381
3381

query II rowsort
SELECT + col1 AS col0, - col2 * + col2 AS col1 FROM tab1 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT ALL - 6 * ( + 81 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-486
-486
-486

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col0 FROM tab0 AS cor0 WHERE NOT + 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6946
SELECT 81 * + col2 + CAST( col1 AS SIGNED ) AS col0, + 21 AS col2 FROM tab1 AS cor0
----
4784
21
5555
21
7790
21

skipif mysql # not compatible
query II rowsort label-6946
SELECT 81 * + col2 + CAST ( col1 AS INTEGER ) AS col0, + 21 AS col2 FROM tab1 AS cor0
----
4784
21
5555
21
7790
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT DISTINCT COUNT( 88 ) + 51 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT COUNT ( 88 ) + 51 FROM tab1
----
54

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

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT ( - - ( 40 ) ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - + 44 * + 90 FROM tab0 AS cor0
----
-3961
-3981
-4041

query I rowsort
SELECT - 26 + - + col1 * + col2 FROM tab2 AS cor0
----
-1199
-3106
-3912

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * - 1 BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT - CAST( + - ( + col0 ) AS SIGNED ) + 52 FROM tab2 AS cor0
----
116
127
98

skipif mysql # not compatible
query I rowsort label-6955
SELECT - CAST ( + - ( + col0 ) AS INTEGER ) + 52 FROM tab2 AS cor0
----
116
127
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col1 * - col1 + + - col0 col0 FROM tab0 cor0
----
-195
-615
-6591

query II rowsort
SELECT ALL + col0 + + col0, col1 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND 47
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * - col2 col0 FROM tab2
----
-1080
-1566
-621

query II rowsort
SELECT ALL - col2 AS col2, col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 52 * + 66 * - col0 AS col0 FROM tab1
----
175032
291720
312312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6961
SELECT * FROM tab2 WHERE + col2 * - - col0 * CAST( ( - col2 ) AS SIGNED ) - - 49 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6961
SELECT * FROM tab2 WHERE + col2 * - - col0 * CAST ( ( - col2 ) AS INTEGER ) - - 49 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - 77 - - col2 AS col1 FROM tab0
----
-30
-67
22

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 94 >= 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT + 23 DIV - col0 - + + col2 FROM tab0 AS cor0
----
-10
-48
-99

skipif mysql # not compatible
query I rowsort label-6966
SELECT + 23 / - col0 - + + col2 FROM tab0 AS cor0
----
-10
-48
-99

query I rowsort
SELECT DISTINCT + - col2 * + col0 * + + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-18270
-57105
-9603

query I rowsort
SELECT 65 FROM tab2 AS cor0 WHERE NOT col0 = + col2
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - + 17
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT - COUNT( * ) * - 1 AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6972
SELECT - COUNT ( * ) * - 1 AS col2 FROM tab0 cor0
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - col0 NOT BETWEEN - col1 AND + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col0, + col1 FROM tab2 WHERE ( + 21 IS NOT NULL )
----
23
51
40
77
58
67

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

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

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

query I rowsort
SELECT DISTINCT ( col2 ) + + - 6 - + col0 FROM tab0
----
-4
-83
26

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 46 ) IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 98 + - - col1 col2 FROM tab2 AS cor0
----
4559
6349
7417

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

query I rowsort
SELECT + ( + - 66 ) FROM tab2
----
-66
-66
-66

query II rowsort
SELECT - 8 AS col2, + 50 FROM tab2
----
-8
50
-8
50
-8
50

query I rowsort
SELECT DISTINCT + 23 * - col2 * - - col2 * + col1 * col0 FROM tab2
----
-181350400
-28543782
-388794300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL + COUNT( * ) - 72 AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + COUNT ( * ) - 72 AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL - 37 * col1 * - col2 AS col0 FROM tab0 cor0
----
140859
3663
7770

query II rowsort
SELECT DISTINCT - col0 AS col0, - col1 * + 58 AS col2 FROM tab1 AS cor0
----
-51
-812
-85
-290
-91
-2726

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

query I rowsort
SELECT + col1 * ( - - col0 ) - + col2 FROM tab1
----
366
4209
618

query I rowsort
SELECT + col0 * + 17 + col1 FROM tab1
----
1450
1594
881

query I rowsort
SELECT ALL col0 * + + col2 + + col2 FROM tab0
----
752
880
9702

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 58 * + col0 - col1 <> NULL
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / 99 - col0 = NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * col2 * col0 < col0 * - col0 + - col1
----

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

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

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE 8 NOT IN ( + - col0 + 42, col2 / + col0, - col0, col0, 73, - + col2 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7006
SELECT + col2, col2 * + CAST( + 99 AS SIGNED ) FROM tab2 AS cor0
----
23
2277
40
3960
58
5742

skipif mysql # not compatible
query II rowsort label-7006
SELECT + col2, col2 * + CAST ( + 99 AS INTEGER ) FROM tab2 AS cor0
----
23
2277
40
3960
58
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7007
SELECT CAST( NULL AS SIGNED ) AS col2, SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
NULL
185

skipif mysql # not compatible
query II rowsort label-7007
SELECT CAST ( NULL AS INTEGER ) AS col2, SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
NULL
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT DISTINCT - - 14 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT - - 14 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + COUNT( * ) + - MIN( + + col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-7010
SELECT + COUNT ( * ) + - MIN ( + + col0 ) FROM tab2
----
-43

query I rowsort
SELECT DISTINCT col1 - + col2 * + col0 * - 89 AS col0 FROM tab0 WHERE NULL IS NULL
----
62826
77451
854668

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT col2 DIV - - 9 FROM tab0
----
1
11
5

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT col2 / - - 9 FROM tab0
----
1
11
5

query II rowsort
SELECT ALL + ( - ( - col2 ) ) + + - 90 AS col0, + col1 + 71 FROM tab2
----
-32
138
-50
148
-67
122

query I rowsort
SELECT DISTINCT - col0 + - col0 - - col1 FROM tab2
----
-41
-51
-83

query I rowsort
SELECT ALL 21 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
21
21
21

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

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

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

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

query I rowsort
SELECT DISTINCT 39 FROM tab1 WHERE - - col2 * - col2 * - col1 + - + col2 - ( col0 ) BETWEEN col1 AND - 61 * + - 77 * col0
----
39

query I rowsort
SELECT + ( col1 ) - - 70 FROM tab2
----
121
137
147

query III rowsort
SELECT * FROM tab0 WHERE 91 < - 85
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 >= + + 69 * + + col1
----

query I rowsort
SELECT + ( 49 ) + - 33 AS col2 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT 85 * + + col1 FROM tab2 AS cor0
----
4335
5695
6545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 + - col2 col2 FROM tab1 AS cor0
----
-60
-69
-97

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7027
SELECT DISTINCT - 67, 64 * CAST( - 45 AS SIGNED ) DIV col2 + + + col2 + 49 + + - col1 AS col0 FROM tab0 AS cor0
----
-67
-250
-67
-46
-67
118

skipif mysql # not compatible
query II rowsort label-7027
SELECT DISTINCT - 67, 64 * CAST ( - 45 AS INTEGER ) / col2 + + + col2 + 49 + + - col1 AS col0 FROM tab0 AS cor0
----
-67
-250
-67
-46
-67
118

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - - col2 NOT BETWEEN col1 AND ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND + col1 / - CAST ( + 63 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7030
SELECT DISTINCT * FROM tab1 WHERE + + col0 + + CAST( NULL AS SIGNED ) + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7030
SELECT DISTINCT * FROM tab1 WHERE + + col0 + + CAST ( NULL AS INTEGER ) + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL MIN ( ALL - - 77 ) AS col0 FROM tab0
----
77

query I rowsort
SELECT ALL + col0 * - - col0 * - col0 AS col0 FROM tab2
----
-262144
-421875
-97336

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7035
SELECT - ( + + 64 ) * - - ( + 86 ) AS col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-5504
NULL
-5504
NULL
-5504
NULL

skipif mysql # not compatible
query II rowsort label-7035
SELECT - ( + + 64 ) * - - ( + 86 ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-5504
NULL
-5504
NULL
-5504
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 AS col0, col2 col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT DISTINCT + + COUNT( * ) DIV + 62 - + 30 AS col1 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT + + COUNT ( * ) / + 62 - + 30 AS col1 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT - 6 * ( + 92 ) AS col2 FROM tab1 AS cor0
----
-552
-552
-552

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 54 + - - 91 IS NOT NULL )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7044
SELECT - col2 AS col2, - 82 * 54 * - - col0 + + ( ( + CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7044
SELECT - col2 AS col2, - 82 * 54 * - - col0 + + ( ( + CAST ( NULL AS REAL ) ) ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT 77 + - + 73 * + col1 + + - 42 AS col0 FROM tab0
----
-1498
-38
-5878

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7046
SELECT - col1 col0 FROM tab0 WHERE CAST( NULL AS DECIMAL ) - - 93 < + 9
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7046
SELECT - col1 col0 FROM tab0 WHERE CAST ( NULL AS REAL ) - - 93 < + 9
----

query I rowsort
SELECT ALL + + 63 FROM tab2 WHERE NOT NULL BETWEEN - col0 AND - 68
----

query I rowsort
SELECT DISTINCT col2 + + 47 AS col0 FROM tab2
----
105
70
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7049
SELECT - COUNT( DISTINCT - col0 ) + - 2, - 20 AS col2 FROM tab1
----
-5
-20

skipif mysql # not compatible
query II rowsort label-7049
SELECT - COUNT ( DISTINCT - col0 ) + - 2, - 20 AS col2 FROM tab1
----
-5
-20

query I rowsort
SELECT DISTINCT + col2 + + + ( - col1 ) FROM tab2
----
-28
-37
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 35 / - 93 NOT BETWEEN + 64 AND NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL COUNT( ALL + - 61 ) / CAST( NULL AS SIGNED ) * - 24 col0 FROM tab0 WHERE 87 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7052
SELECT ALL COUNT ( ALL + - 61 ) / CAST ( NULL AS INTEGER ) * - 24 col0 FROM tab0 WHERE 87 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 88 + col2 col1, + 84 * - + 84 * + - col2 FROM tab0 WHERE + 3 * - + ( - 52 ) >= ( col0 * + + col0 )
----

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

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

query I rowsort
SELECT col0 + - col2 - - + 75 AS col2 FROM tab2 AS cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT DISTINCT + + 8 * col2 * + col2 + + col0 * - col2 - - col0 - 24 * - + 32 FROM tab0 cor0
----
17750
69670
785

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

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

query I rowsort
SELECT - 77 * col1 AS col1 FROM tab0 AS cor0
----
-1617
-6237
-77

query II rowsort
SELECT col0 * col2 AS col0, 34 FROM tab2 AS cor0
----
1058
34
2560
34
4350
34

query I rowsort
SELECT + col0 * 82 * col0 FROM tab0
----
18450
620658
771538

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7064
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) * MIN( - - 27 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) * MIN ( - - 27 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT - 78, 97 * + col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT + - col0 DIV - 69 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7066
SELECT + - col0 / - 69 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT 59 * + - col0 FROM tab0 AS cor0
----
-5133
-5723
-885

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7069
SELECT ALL - + MIN( + ( col1 ) ) DIV + 99 + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - + MIN ( + ( col1 ) ) / + 99 + - COUNT ( * ) FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT - + col0 * - col2 + - col0 FROM tab0 AS cor0
----
690
783
9506

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE + col1 > NULL
----

query I rowsort
SELECT - col1 * - - col1 + + - 36 FROM tab0 AS cor0
----
-37
-477
-6597

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT COUNT( * ) + + + 22 col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7074
SELECT COUNT ( * ) + + + 22 col2 FROM tab1 AS cor0
----
25

query I rowsort
SELECT 46 + + - col1 FROM tab2 AS cor0
----
-21
-31
-5

query I rowsort
SELECT ALL col2 * - 20 FROM tab0
----
-1980
-200
-940

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7081
SELECT 68 * + CAST( NULL AS SIGNED ) * col2, + col0 FROM tab1 AS cor0 WHERE NULL <= col2 * col2 + + col0
----

skipif mysql # not compatible
query II rowsort label-7081
SELECT 68 * + CAST ( NULL AS INTEGER ) * col2, + col0 FROM tab1 AS cor0 WHERE NULL <= col2 * col2 + + col0
----

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

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

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + - ( 56 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * + + 35 + - + 89 FROM tab1 AS cor0
----
1556
401
86

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7086
SELECT + col2 + + CAST( NULL AS DECIMAL ) - - - 85 AS col0, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7086
SELECT + col2 + + CAST ( NULL AS REAL ) - - - 85 AS col0, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT - COUNT( * ) + MIN( + + ( + 58 ) ) FROM tab1 cor0
----
55

skipif mysql # not compatible
query I rowsort label-7087
SELECT - COUNT ( * ) + MIN ( + + ( + 58 ) ) FROM tab1 cor0
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-7088
SELECT + - 10 AS col1, 92 DIV + + col0 AS col0 FROM tab1 AS cor0
----
-10
1
-10
1
-10
1

skipif mysql # not compatible
query II rowsort label-7088
SELECT + - 10 AS col1, 92 / + + col0 AS col0 FROM tab1 AS cor0
----
-10
1
-10
1
-10
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - + col0, + col1 * + col1 * - col1 col0 FROM tab1
----
-2601
-2744
-7225
-125
-8281
-103823

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT DISTINCT - 46 * + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
-414

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT - 46 * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT - 80 * - COUNT( * ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-7092
SELECT - 80 * - COUNT ( * ) FROM tab2
----
240

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - - 0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - SUM( + 80 ) + - ( - COUNT( * ) ) AS col1 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-7096
SELECT - SUM ( + 80 ) + - ( - COUNT ( * ) ) AS col1 FROM tab2
----
-237

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

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

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

query I rowsort
SELECT + 58 * col0 FROM tab1 AS cor0
----
2958
4930
5278

query I rowsort
SELECT ALL 12 AS col0 FROM tab0 cor0
----
12
12
12

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

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

query I rowsort
SELECT ALL 38 * - col2 FROM tab2 AS cor0
----
-1520
-2204
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT - MIN( + - col1 ) col2 FROM tab0 AS cor0
----
81

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

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

query II rowsort
SELECT ALL - col0 + col0 + + 66 * + 13 AS col1, col0 FROM tab0
----
858
15
858
87
858
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT DISTINCT + + MAX( - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + + MAX ( - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT 24 - - 97 AS col2 FROM tab1
----
121

query I rowsort
SELECT ALL 72 + 57 * + + col2 FROM tab1
----
3435
3948
5544

query I rowsort
SELECT + col1 + - - ( - 3 ) FROM tab0
----
-2
18
78

query I rowsort
SELECT DISTINCT - col1 - 85 AS col1 FROM tab2 AS cor0
----
-136
-152
-162

query I rowsort
SELECT ALL col0 - - - col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT - - COUNT( * ) + + + 81 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7113
SELECT - - COUNT ( * ) + + + 81 FROM tab0 AS cor0
----
84

query II rowsort
SELECT DISTINCT 15 AS col1, col0 AS col2 FROM tab1 AS cor0
----
15
51
15
85
15
91

query I rowsort
SELECT DISTINCT + col1 * + 54 + col0 AS col0 FROM tab0 AS cor0
----
1221
151
4389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - 42 * + col0 * - 45 col0 FROM tab0
----
164440
183429
28397

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL = col1
----

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <= - 5
----
15
87
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT 79 * - 89 * + + COUNT( * ) FROM tab2
----
-21093

skipif mysql # not compatible
query I rowsort label-7121
SELECT 79 * - 89 * + + COUNT ( * ) FROM tab2
----
-21093

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7122
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) >= + + ( - 35 )
----

skipif mysql # not compatible
query III rowsort label-7122
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) >= + + ( - 35 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7125
SELECT + + 25 * - COUNT( DISTINCT - col0 ) AS col1, + COUNT( * ) + - + 23 FROM tab0 AS cor0
----
-75
-20

skipif mysql # not compatible
query II rowsort label-7125
SELECT + + 25 * - COUNT ( DISTINCT - col0 ) AS col1, + COUNT ( * ) + - + 23 FROM tab0 AS cor0
----
-75
-20

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7126
SELECT DISTINCT - - ( - + COUNT ( col0 ) ) * 56 col1 FROM tab2 AS cor0
----
-168

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

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

query I rowsort
SELECT ALL + col1 * 41 AS col0 FROM tab1
----
1927
205
574

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col2 ) NOT IN ( col2 )
----

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

query I rowsort
SELECT ( - 97 ) AS col2 FROM tab1 WHERE NOT ( 23 ) IS NULL
----
-97
-97
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT + 96 * COUNT( * ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT + 96 * COUNT ( * ) AS col2 FROM tab1
----
288

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT COUNT( * ) * - 95 col1 FROM tab2
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT COUNT ( * ) * - 95 col1 FROM tab2
----
-285

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

skipif mysql # not compatible
query I rowsort label-7140
SELECT 28 * + COUNT ( * ) FROM tab1
----
84

query I rowsort
SELECT 97 * ( - 88 ) FROM tab2
----
-8536
-8536
-8536

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

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT - 23 * - 51 + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT DISTINCT COUNT( * ) * + 90 - COUNT( * ) FROM tab0 WHERE col2 = - 96 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT COUNT ( * ) * + 90 - COUNT ( * ) FROM tab0 WHERE col2 = - 96 * + col2
----
0

query I rowsort
SELECT + 1 FROM tab0 WHERE 62 * - col1 IS NOT NULL
----
1
1
1

query I rowsort
SELECT - 86 * 78 AS col1 FROM tab2
----
-6708
-6708
-6708

query I rowsort
SELECT DISTINCT ( + 92 ) * - 87 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 20 + col1 FROM tab1
----
-15
-6
27

query I rowsort
SELECT DISTINCT col2 + + 13 FROM tab2
----
36
53
71

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT col0 BETWEEN - col0 * 30 AND NULL
----

query I rowsort
SELECT 26 + + 63 FROM tab1 WHERE NULL <= + col2 * - 28
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE ( col1 ) < col1
----
0

skipif mysql # not compatible
query I rowsort label-7154
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE ( col1 ) < col1
----
0

query I rowsort
SELECT 63 + - col1 FROM tab0
----
-18
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL COUNT( - col0 ) * 68 AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL COUNT ( - col0 ) * 68 AS col2 FROM tab0
----
204

query I rowsort
SELECT ALL 91 * - 27 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - ( + 90 ) ) FROM tab1
----
-90
-90
-90

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

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 61 / 61 ) IS NULL
----

query I rowsort
SELECT ALL + col2 - 23 FROM tab1 AS cor0
----
36
45
73

query I rowsort
SELECT DISTINCT 66 * 77 FROM tab0
----
5082

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) < - col2 * + 10
----

query I rowsort
SELECT DISTINCT - col2 * 66 FROM tab2 AS cor0
----
-1518
-2640
-3828

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

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL COUNT ( + col1 ) * 77 AS col0 FROM tab1 AS cor0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT + - col0 DIV 51 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7168
SELECT + - col0 / 51 FROM tab1 AS cor0
----
-1
-1
-1

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 90 ) BETWEEN ( - col0 ) AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL MIN( ALL 98 ) AS col2 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL MIN ( ALL 98 ) AS col2 FROM tab1 AS cor0
----
98

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

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

query I rowsort
SELECT DISTINCT + col0 / col1 - + 64 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT 49 * + COUNT( * ) AS col0 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-7176
SELECT 49 * + COUNT ( * ) AS col0 FROM tab0
----
147

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

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

query I rowsort
SELECT + col2 + ( col2 ) * col1 FROM tab2 WHERE NOT 36 * col2 IS NULL
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL MAX( ALL + + col2 ) + - COUNT( * ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL MAX ( ALL + + col2 ) + - COUNT ( * ) AS col0 FROM tab2
----
55

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

skipif mysql # not compatible
query I rowsort label-7180
SELECT - MIN ( + - 89 ) AS col2 FROM tab2
----
89

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + + 93 ) <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE NOT NULL BETWEEN 2 + 12 AND ( ( - 30 ) - col0 )
----

query I rowsort
SELECT - ( - ( - col2 ) ) * col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 < + 68 + - 45
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT 43 + + 19 + col2 AS col1 FROM tab0
----
109
161
72

query I rowsort
SELECT - col1 * + 94 + - - col1 FROM tab0
----
-1953
-7533
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT + COUNT( * ) * 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
378

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT + COUNT ( * ) * 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
378

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 38 * col1 col2 FROM tab2 AS cor0
----
-1938
-2546
-2926

onlyif mysql # aggregate syntax: 
query II rowsort label-7195
SELECT ALL + 61, COUNT( * ) + + - 10 col0 FROM tab1 AS cor0
----
61
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7195
SELECT ALL + 61, COUNT ( * ) + + - 10 col0 FROM tab1 AS cor0
----
61
-7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + 48 > - 94 * ( + col2 * - ( + col0 ) ) + - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT - + 86 + + col0 AS col1 FROM tab1 AS cor0
----
-1
-35
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 + + - ( - col0 ) * ( + col1 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1300
182
1912

query I rowsort
SELECT - col1 - - 95 FROM tab1 AS cor0
----
48
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT - COUNT( * ) * + COUNT( * ) - 59 - + + 73 AS col1 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-7202
SELECT - COUNT ( * ) * + COUNT ( * ) - 59 - + + 73 AS col1 FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL + 40 * MIN( DISTINCT + col2 ) + - 8 + 28 AS col2 FROM tab0
----
420

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + 40 * MIN ( DISTINCT + col2 ) + - 8 + 28 AS col2 FROM tab0
----
420

query I rowsort
SELECT - 54 FROM tab2 WHERE NOT ( 38 ) = NULL AND NULL IS NULL
----

query I rowsort
SELECT ALL 91 + + ( + - col0 ) + col1 + col0 FROM tab2
----
142
158
168

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT 14 DIV + 50 * col2 * - col1 + + 46 AS col1 FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-7206
SELECT 14 / + 50 * col2 * - col1 + + 46 AS col1 FROM tab2
----
46
46
46

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7209
SELECT COUNT( * ) DIV + ( + COUNT( * ) ) + - - 71 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-7209
SELECT COUNT ( * ) / + ( + COUNT ( * ) ) + - - 71 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT MIN( + + col1 ) + - COUNT( ALL 3 ) AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-7210
SELECT MIN ( + + col1 ) + - COUNT ( ALL 3 ) AS col2 FROM tab2
----
48

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 88 * + + 4 * col2
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT - - 60 * + SUM( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-11700

skipif mysql # not compatible
query I rowsort label-7215
SELECT - - 60 * + SUM ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-11700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - + ( + CAST( NULL AS SIGNED ) ) * col0 + + ( - col2 + 80 / - 46 ) AND + col2 * col2
----

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - + ( + CAST ( NULL AS INTEGER ) ) * col0 + + ( - col2 + 80 / - 46 ) AND + col2 * col2
----

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

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

query I rowsort
SELECT DISTINCT ( - 8 ) * + 4 FROM tab0
----
-32

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

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

query I rowsort
SELECT DISTINCT - - 28 * + ( + - col0 ) * - - col0 AS col2 FROM tab0 AS cor0
----
-211932
-263452
-6300

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT DISTINCT - col1 DIV - 49 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT - col1 / - 49 FROM tab2 cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( 22 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + - 94 AS col0 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT DISTINCT + 7 FROM tab0 AS cor0 WHERE ( + col1 / + + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 37 col0, - col0 AS col0 FROM tab2 AS cor0
----
37
-46
37
-64
37
-75

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

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

query I rowsort
SELECT ALL - col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab2
----
-185

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT 81 DIV + col0 + + 59 * + col0 col1 FROM tab0
----
5133
5723
890

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7231
SELECT 81 / + col0 + + 59 * + col0 col1 FROM tab0
----
5133
5723
890

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

skipif mysql # not compatible
query I rowsort label-7232
SELECT CAST ( + + 62 AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 20 ) NOT BETWEEN ( - col1 ) AND - 24
----

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

query I rowsort
SELECT col2 * + 74 AS col2 FROM tab2
----
1702
2960
4292

onlyif mysql # DIV for integer division: 
query II rowsort label-7236
SELECT DISTINCT - col1 col2, 78 DIV col1 FROM tab0 AS cor0
----
-1
78
-21
3
-81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7236
SELECT DISTINCT - col1 col2, 78 / col1 FROM tab0 AS cor0
----
-1
78
-21
3
-81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT DISTINCT col0 DIV col0 - col1 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT col0 / col0 - col1 FROM tab0 AS cor0
----
-20
-80
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7239
SELECT ALL col2 + + 23 DIV + + col0 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL col2 + + 23 / + + col0 FROM tab0
----
10
48
99

query I rowsort
SELECT - 14 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

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

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

query I rowsort
SELECT ALL 52 * + - 96 * ( 18 ) + + col2 FROM tab1
----
-89760
-89788
-89797

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7244
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = - col0 * + CAST( NULL AS SIGNED ) + + + col2
----

skipif mysql # not compatible
query III rowsort label-7244
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = - col0 * + CAST ( NULL AS INTEGER ) + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT - COUNT( 74 ) - - COUNT( - 27 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - COUNT ( 74 ) - - COUNT ( - 27 ) FROM tab1 AS cor0
----
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT 55 * + + 5 + - col1 * + - 44 AS col2 FROM tab0
----
1199
319
3839

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL + 74 + + COUNT( + col2 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + 74 + + COUNT ( + col2 ) FROM tab2
----
77

query I rowsort
SELECT col1 * - - col0 * + 42 - 82 AS col2 FROM tab0
----
3992
50948
76652

query I rowsort
SELECT DISTINCT 42 + - 86 FROM tab2
----
-44

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

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

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

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - SUM ( DISTINCT 50 ) AS col0 FROM tab0 AS cor0
----
-50

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

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

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

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

query I rowsort
SELECT ALL + ( - 2 ) FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT 74 * - COUNT( ALL + col0 ) AS col0 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT 74 * - COUNT ( ALL + col0 ) AS col0 FROM tab0
----
-222

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT DISTINCT - 96 * col0 DIV + - 43 FROM tab0
----
194
216
33

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT - 96 * col0 / + - 43 FROM tab0
----
194
216
33

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

query I rowsort
SELECT ALL + - 61 AS col2 FROM tab2 AS cor0
----
-61
-61
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL 79 * COUNT( * ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL 79 * COUNT ( * ) FROM tab0
----
237

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT 56 * + MIN( DISTINCT + + col0 ) AS col1 FROM tab0
----
840

skipif mysql # not compatible
query I rowsort label-7269
SELECT 56 * + MIN ( DISTINCT + + col0 ) AS col1 FROM tab0
----
840

query I rowsort
SELECT col0 * - 38 AS col0 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT CAST( - 17 AS SIGNED ) FROM tab2
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-7271
SELECT CAST ( - 17 AS INTEGER ) FROM tab2
----
-17
-17
-17

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7274
SELECT DISTINCT 25 AS col0, SUM( col2 ) AS col1 FROM tab0 AS cor0
----
25
156

skipif mysql # not compatible
query II rowsort label-7274
SELECT DISTINCT 25 AS col0, SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
25
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7275
SELECT - + 18 DIV + COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NOT 43 IS NULL )
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7275
SELECT - + 18 / + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NOT 43 IS NULL )
----
-6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * 97 col2 FROM tab2
----
3395
3395
3395

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

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

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

query II rowsort
SELECT ALL - col1, 40 * 11 AS col2 FROM tab2 cor0
----
-51
440
-67
440
-77
440

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

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

query I rowsort
SELECT 70 - + + 45 AS col2 FROM tab1 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 39 col0 FROM tab0 AS cor0
----
1833
3861
390

query II rowsort
SELECT - col2 * col0 - - - 88 + + + 18, - col2 + + 92 + + + col0 AS col1 FROM tab0 cor0
----
-775
60
-940
169
-9673
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7286
SELECT - col1 + - CAST( col2 AS SIGNED ) DIV + 26 AS col2 FROM tab1 cor0
----
-17
-49
-7

skipif mysql # not compatible
query I rowsort label-7286
SELECT - col1 + - CAST ( col2 AS INTEGER ) / + 26 AS col2 FROM tab1 cor0
----
-17
-49
-7

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

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

query I rowsort
SELECT - col2 + col0 FROM tab2 WHERE NOT 7 IS NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT + MAX( + + 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT + MAX ( + + 82 ) FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT ALL - MAX( - + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - MAX ( - + col2 ) AS col0 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7292
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / - col1 BETWEEN NULL AND - CAST( NULL AS SIGNED ) * - + col2 + + col0 + 45
----

skipif mysql # not compatible
query III rowsort label-7292
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / - col1 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * - + col2 + + col0 + 45
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7294
SELECT - COUNT( DISTINCT - - 96 ) DIV ( + MIN( DISTINCT + 71 ) ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7294
SELECT - COUNT ( DISTINCT - - 96 ) / ( + MIN ( DISTINCT + 71 ) ) AS col0 FROM tab2 cor0
----
0

query II rowsort
SELECT col2, 29 + col1 FROM tab1 AS cor0
----
59
34
68
76
96
43

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT ALL + col0 DIV col2 + - - 53 * - col2 FROM tab2 cor0
----
-1217
-2119
-3073

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + col0 / col2 + - - 53 * - col2 FROM tab2 cor0
----
-1217
-2119
-3073

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

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

query I rowsort
SELECT + 10 + col1 FROM tab2 AS cor0
----
61
77
87

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

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

query I rowsort
SELECT DISTINCT 11 * - + 99 + - 72 FROM tab1
----
-1161

query I rowsort
SELECT ALL + col0 * + col0 * + ( - 19 ) FROM tab1
----
-137275
-157339
-49419

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > - - col0
----
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 WHERE - col2 - - 22 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7304
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE - col2 - - 22 IS NOT NULL
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT DISTINCT - - AVG ( + - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - - AVG ( + - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL >= NULL
----
NULL

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

query I rowsort
SELECT ALL + col1 * + col0 + - col1 AS col0 FROM tab1
----
420
4230
700

query I rowsort
SELECT 4 + + ( + col2 ) AS col2 FROM tab2
----
27
44
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT CAST( + + 74 AS SIGNED ) + - + COUNT( * ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-7310
SELECT CAST ( + + 74 AS INTEGER ) + - + COUNT ( * ) FROM tab0
----
71

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 < + + col2
----

query I rowsort
SELECT + - 11 + + col1 + - col0 FROM tab2 AS cor0
----
-19
-6
2

query I rowsort
SELECT DISTINCT 26 - + + col1 FROM tab0 AS cor0
----
-55
25
5

query II rowsort
SELECT + - col0 AS col1, 23 FROM tab1 AS cor0
----
-51
23
-85
23
-91
23

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

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

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

query II rowsort
SELECT - 27 AS col1, 32 AS col0 FROM tab1
----
-27
32
-27
32
-27
32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT - 81 DIV + col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7319
SELECT - 81 / + col0 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT DISTINCT - 12 DIV + + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - 12 / + + col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 / + col1 + 79 * + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL - MIN( + - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - MIN ( + - col1 ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - + MAX( DISTINCT 12 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7323
SELECT - + MAX ( DISTINCT 12 ) FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - + MAX( DISTINCT + 16 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7324
SELECT - + MAX ( DISTINCT + 16 ) FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT - 53 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + col2 / + - 34 BETWEEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-7325
SELECT - 53 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + col2 / + - 34 BETWEEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AND + col2
----

query I rowsort
SELECT ALL ( - 66 ) FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - col2 + ( ( - col0 ) ) AS col2 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT COUNT( + 16 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7328
SELECT COUNT ( + 16 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( col2 ) + + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT CAST( - 92 AS SIGNED ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7330
SELECT CAST ( - 92 AS INTEGER ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE col1 - + + col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 25 * + + col2 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7333
SELECT DISTINCT + 90 + + - COUNT( DISTINCT - + col1 ) col2, SUM( + col0 ) DIV COUNT( * ) AS col1 FROM tab0
----
87
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7333
SELECT DISTINCT + 90 + + - COUNT ( DISTINCT - + col1 ) col2, SUM ( + col0 ) / COUNT ( * ) AS col1 FROM tab0
----
87
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT + COUNT( - - ( 30 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7334
SELECT + COUNT ( - - ( 30 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col0 + - - col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab0 WHERE 64 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7337
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21

query II rowsort
SELECT DISTINCT col2 AS col1, - col0 - + ( + + col0 ) AS col1 FROM tab0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT ALL - - 67 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL - 67 + + - col2 AS col1 FROM tab1
----
-126
-135
-163

query I rowsort
SELECT DISTINCT - + 13 + + col2 FROM tab0 AS cor0
----
-3
34
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7343
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) * - col2 - - 28 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7343
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) * - col2 - - 28 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 45 < + - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 26 * - 34 + + 13 FROM tab1 AS cor0
----
897

query I rowsort
SELECT DISTINCT - ( col2 ) / col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL <> + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL - SUM( ALL + col1 ) AS col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - SUM ( ALL + col1 ) AS col1 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT - + 80 * COUNT( * ) AS col0 FROM tab1 cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7348
SELECT - + 80 * COUNT ( * ) AS col0 FROM tab1 cor0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT DISTINCT + - col0 DIV + col2 FROM tab0 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT + - col0 / + col2 FROM tab0 cor0
----
-8
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN + col1 * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7351
SELECT - CAST( + + 63 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-7351
SELECT - CAST ( + + 63 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + + 26 * + + 19 - - 82 FROM tab1 AS cor0
----
576
576
576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 10 * 89 col2 FROM tab1
----
45390
75650
80990

query I rowsort
SELECT ALL 45 * + col0 AS col1 FROM tab2
----
2070
2880
3375

query I rowsort
SELECT ALL + 57 * col2 AS col0 FROM tab0
----
2679
5643
570

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 68 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT + SUM( ALL + + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7357
SELECT + SUM ( ALL + + col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - 74 + + + COUNT( - + col0 ) AS col1 FROM tab2 WHERE NOT NULL > - col1 + + + col2
----
-74

skipif mysql # not compatible
query I rowsort label-7358
SELECT - 74 + + + COUNT ( - + col0 ) AS col1 FROM tab2 WHERE NOT NULL > - col1 + + + col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT ALL col1 DIV + + ( - col1 ) - - col2 AS col1 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL col1 / + + ( - col1 ) - - col2 AS col1 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7360
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 51 + - 19 + - + col0 + + - 82 * ( - CAST( - - col1 AS DECIMAL ) ) * col2 + - 64 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 51 + - 19 + - + col0 + + - 82 * ( - CAST ( - - col1 AS REAL ) ) * col2 + - 64 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT - COUNT( * ) * - 45 AS col0 FROM tab2 cor0
----
135

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - COUNT ( * ) * - 45 AS col0 FROM tab2 cor0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7362
SELECT ALL + + ( - 84 ) DIV + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL + + ( - 84 ) / + - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT DISTINCT - 66 DIV - 96 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - 66 / - 96 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 67 * 93 AS col0 FROM tab1 AS cor0
----
6231
6231
6231

query I rowsort
SELECT DISTINCT col0 * - + 35 + 81 FROM tab0
----
-2964
-3314
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT + + 76 + + SUM( ALL col0 ) FROM tab1 AS cor0
----
303

skipif mysql # not compatible
query I rowsort label-7366
SELECT + + 76 + + SUM ( ALL col0 ) FROM tab1 AS cor0
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT - MIN( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT - MIN ( DISTINCT + - col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + 86 + + + col1 * - col0 FROM tab0 AS cor0
----
-11
-1129
-1741

query I rowsort
SELECT + 90 + + 53 + + 64 FROM tab2 AS cor0
----
207
207
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT + + MIN( DISTINCT + + ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + + MIN ( DISTINCT + + ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 93 IN ( col2 / - 71 )
----

query I rowsort
SELECT col2 + - - col0 + - 69 * 76 * + + ( + col0 ) + + - col0 AS col1 FROM tab0 AS cor0
----
-456218
-508569
-78613

query I rowsort
SELECT + col1 * + - 99 + + col0 - - 36 * col2 AS col0 FROM tab1 AS cor0
----
-2114
1714
2121

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT + COUNT( * ) + - 90 + + + COUNT( * ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7374
SELECT + COUNT ( * ) + - 90 + + + COUNT ( * ) FROM tab2 AS cor0
----
-84

query II rowsort
SELECT DISTINCT ( + col0 ) AS col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + 76 * + + 22 + - + 29 FROM tab0
----
1643
1643
1643

query I rowsort
SELECT - + col1 AS col1 FROM tab0 WHERE NULL <> + - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT + COUNT( * ) + + MAX( ALL col0 ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT + COUNT ( * ) + + MAX ( ALL col0 ) AS col0 FROM tab2
----
78

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE col1 >= + col0
----

query I rowsort
SELECT ALL - - 12 FROM tab0 WHERE NULL IS NULL
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * - - col2 col0 FROM tab0
----
1645
3465
350

query I rowsort
SELECT DISTINCT + col1 - + + 41 + col1 AS col2 FROM tab0
----
-39
1
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT ALL - + COUNT( * ) - + + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL - + COUNT ( * ) - + + COUNT ( * ) FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( + ( 35 ) + ( + + col0 ), col2, + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 80 FROM tab2 AS cor0 WHERE 43 IS NULL
----

query I rowsort
SELECT ALL + ( + col1 ) - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT + MIN( col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + MIN ( col1 ) FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - col2 col1 FROM tab1
----
-45
23
26

query II rowsort
SELECT ALL + 11, - col0 * - ( ( col2 ) ) * - + ( - 51 ) - + col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT - col1 DIV - - 57 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT - col1 / - - 57 AS col0 FROM tab2
----
-1
-1
0

query II rowsort
SELECT + col2 AS col2, + col1 - - col1 FROM tab2 AS cor0
----
23
102
40
154
58
134

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / col0 * - - col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + col2 ) <= 28
----
46
51
23

query II rowsort
SELECT 14, 4 AS col2 FROM tab0 AS cor0
----
14
4
14
4
14
4

query II rowsort
SELECT col1, 56 AS col0 FROM tab2 AS cor0
----
51
56
67
56
77
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT ALL + MAX( + CAST( - - ( + col2 ) AS SIGNED ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + MAX ( + CAST ( - - ( + col2 ) AS INTEGER ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - ( + 34 ) AS col0 FROM tab0 AS cor0
----
-34
-34
-34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <> ( - - col2 ) * - 52 - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col0 FROM tab1, tab2 cor0
----
32

query II rowsort
SELECT DISTINCT - col0 * - col1 AS col0, - col2 * - col2 FROM tab2
----
2346
529
4928
1600
5025
3364

query I rowsort
SELECT - 21 * + col0 - - 54 FROM tab1 AS cor0
----
-1017
-1731
-1857

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT ALL col2 * + + col2 DIV + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL col2 * + + col2 / + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - col1 + col2 + + col0 AS col0 FROM tab1 AS cor0
----
112
133
139

query I rowsort
SELECT DISTINCT ( + 6 ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab2 WHERE NULL = 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT + COUNT( * ) + 13 + 53 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7407
SELECT + COUNT ( * ) + 13 + 53 FROM tab1
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 65 ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT DISTINCT - - 27 * - col0 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL + MAX( + + col2 ) AS col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL + MAX ( + + col2 ) AS col1 FROM tab2 cor0
----
58

query I rowsort
SELECT ALL - + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT - SUM( ALL - col0 ) * + + COUNT( * ) col1 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7413
SELECT DISTINCT - SUM ( ALL - col0 ) * + + COUNT ( * ) col1 FROM tab2 AS cor0
----
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7415
SELECT - - 15 * + SUM( col1 ) * - CAST( NULL AS DECIMAL ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT - - 15 * + SUM ( col1 ) * - CAST ( NULL AS REAL ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1, + 7 + col0 FROM tab2
----
51
53
67
82
77
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT DISTINCT COUNT( * ) + 96 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT COUNT ( * ) + 96 FROM tab1
----
99

query I rowsort
SELECT col1 + - + col1 * col0 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT ALL - col2 + + col0 + + CAST( - col0 AS SIGNED ) * - col2 FROM tab0
----
673
947
9601

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - col2 + + col0 + + CAST ( - col0 AS INTEGER ) * - col2 FROM tab0
----
673
947
9601

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT - 15 * + COUNT( * ) + 42 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT - 15 * + COUNT ( * ) + 42 AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT COUNT( * ) + + 31 + + MIN( DISTINCT - col1 ) + - 71 + + COUNT( * ) - - - 0 * - + COUNT( * ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-7421
SELECT COUNT ( * ) + + 31 + + MIN ( DISTINCT - col1 ) + - 71 + + COUNT ( * ) - - - 0 * - + COUNT ( * ) FROM tab2
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT ALL + col0 DIV - - col1 + - 65 FROM tab0
----
-61
-65
32

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + col0 / - - col1 + - 65 FROM tab0
----
-61
-65
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT - col2 * + + col0 + - col1 + - ( + - 60 ) DIV + - col0 + - + 5 AS col1 FROM tab0 WHERE + col0 + - col1 + col2 NOT BETWEEN - col2 DIV + 40 AND + col2 - - 48
----
-795
-896
-9609

skipif mysql # not compatible
query I rowsort label-7423
SELECT - col2 * + + col0 + - col1 + - ( + - 60 ) / + - col0 + - + 5 AS col1 FROM tab0 WHERE + col0 + - col1 + col2 NOT BETWEEN - col2 / + 40 AND + col2 - - 48
----
-795
-896
-9609

query I rowsort
SELECT ALL + col1 * 75 - + 50 AS col2 FROM tab1
----
1000
325
3475

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL COUNT( * ) - ( - + 60 ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL COUNT ( * ) - ( - + 60 ) AS col0 FROM tab1
----
63

query I rowsort
SELECT ALL + ( - col1 ) - + col2 FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - col0 * - 88 * - 68 * + col1 - - 68 FROM tab0 AS cor0
----
-10932700
-580380
-7270492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 col2 FROM tab2 cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col0 - - + ( - + col1 ) * + - 80
----

query I rowsort
SELECT - 85 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT - - 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + 35 * + col0 * ( + 11 ) * - - col1 FROM tab2 AS cor0
----
1897280
1934625
903210

query I rowsort
SELECT - 91 * - + 36 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 88 + + - ( + - col0 ) / + col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL = - - 39 ) ) OR NOT + + 59 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL + CAST( NULL AS SIGNED ) / - - 15 AS col1 FROM tab1 AS cor0 WHERE + 79 NOT BETWEEN + col2 + + col2 AND - col1 + + - col1 + + col2 - ( - col1 ) / col2 * + + 37 * - - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 15 AS col1 FROM tab1 AS cor0 WHERE + 79 NOT BETWEEN + col2 + + col2 AND - col1 + + - col1 + + col2 - ( - col1 ) / col2 * + + 37 * - - col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col2 FROM tab0
----
52
52
52

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + 45 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 34 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL MIN( DISTINCT + 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL MIN ( DISTINCT + 13 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT DISTINCT - - ( + 2 ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7442
SELECT 14 DIV col2 * - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7442
SELECT 14 / col2 * - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7445
SELECT DISTINCT - col1 + - col0 + ( col1 ) DIV col2 DIV - - col0 + col0 + 15 * + ( + + col0 ) col2 FROM tab2
----
1058
639
883

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7445
SELECT DISTINCT - col1 + - col0 + ( col1 ) / col2 / - - col0 + col0 + 15 * + ( + + col0 ) col2 FROM tab2
----
1058
639
883

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT DISTINCT + SUM( + col1 ) AS col1, 60 + - 51 FROM tab1 WHERE NOT - 37 + + + col2 NOT BETWEEN - - col2 AND NULL
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7446
SELECT DISTINCT + SUM ( + col1 ) AS col1, 60 + - 51 FROM tab1 WHERE NOT - 37 + + + col2 NOT BETWEEN - - col2 AND NULL
----
NULL
9

query I rowsort
SELECT + ( 61 ) + + col2 FROM tab1 AS cor0
----
120
129
157

query I rowsort
SELECT 36 * - 62 + - ( + + ( - 54 ) ) FROM tab2 cor0
----
-2178
-2178
-2178

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + SUM( + col1 ) * - 82 FROM tab1 cor0 WHERE + 82 - + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT + SUM ( + col1 ) * - 82 FROM tab1 cor0 WHERE + 82 - + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT COUNT( + CAST( NULL AS SIGNED ) ) + + - ( + - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7450
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) + + - ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 * - col2 * col0 + - col2 FROM tab0 AS cor0
----
18260
57058
9504

query I rowsort
SELECT ALL - col2 + 47 * + 16 FROM tab1 AS cor0
----
656
684
693

query I rowsort
SELECT 19 * - 26 - - col1 AS col2 FROM tab0 AS cor0
----
-413
-473
-493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT - MAX( + - 77 ) DIV + 27 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7454
SELECT - MAX ( + - 77 ) / + 27 FROM tab2 AS cor0
----
2

query I rowsort
SELECT 58 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < + 46
----

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col2 FROM tab2
----
104
133
69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + - 20 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + SUM( 2 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7458
SELECT + SUM ( 2 ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7459
SELECT - COUNT( * ) AS col2, 15 * 64 * 37 FROM tab0 WHERE + 99 - - col2 IS NOT NULL
----
-3
35520

skipif mysql # not compatible
query II rowsort label-7459
SELECT - COUNT ( * ) AS col2, 15 * 64 * 37 FROM tab0 WHERE + 99 - - col2 IS NOT NULL
----
-3
35520

query I rowsort
SELECT ALL col0 - + col0 * col0 FROM tab2 AS cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT MIN( + 17 ) - + COUNT( + - col1 ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7461
SELECT MIN ( + 17 ) - + COUNT ( + - col1 ) AS col0 FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7462
SELECT - COUNT( + - CAST( + col1 AS SIGNED ) ) - 45 AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7462
SELECT - COUNT ( + - CAST ( + col1 AS INTEGER ) ) - 45 AS col0 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT + 10 AS col1 FROM tab0 cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7464
SELECT ALL 99 AS col1, - CAST( NULL AS SIGNED ) + - 3 FROM tab0
----
99
NULL
99
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-7464
SELECT ALL 99 AS col1, - CAST ( NULL AS INTEGER ) + - 3 FROM tab0
----
99
NULL
99
NULL
99
NULL

query I rowsort
SELECT ALL - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT AVG ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT 43 * COUNT( * ) * 70 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT 43 * COUNT ( * ) * 70 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 92 * - col2 * + col1 AS col1 FROM tab2
----
-107916
-283360
-357512

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 < 63 * + + 20 * 29 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT MAX( + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7470
SELECT MAX ( + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT COUNT( ALL - col0 ), + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7471
SELECT COUNT ( ALL - col0 ), + COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT ALL 49 + + - col0 * + col0 AS col0 FROM tab0
----
-176
-7520
-9360

query II rowsort
SELECT ALL + 71 * col2 AS col1, + col2 AS col1 FROM tab0 cor0
----
3337
47
7029
99
710
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 = + col2 + + - 29
----
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 = + col2 + + - 29
----
0

query I rowsort
SELECT ALL 9 + + 53 - - col0 FROM tab2 AS cor0
----
108
126
137

query I rowsort
SELECT DISTINCT + col1 * - ( - 80 ) FROM tab0 AS cor0
----
1680
6480
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 38 / + - ( - - 63 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 91 * + col2 AS col1 FROM tab0 AS cor0
----
4277
9009
910

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 >= col1
----

query I rowsort
SELECT + + ( + + col1 ) FROM tab0 WHERE + 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT - ( + 84 ) * COUNT( * ) AS col1 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - ( + 84 ) * COUNT ( * ) AS col1 FROM tab1
----
-252

query I rowsort
SELECT - 8 FROM tab2 WHERE col2 + 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col0 + - + col2 + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col0 + - + col2 + - col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT + ( + col2 ) / - + 82 * col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT + ( + col2 ) / - + 82 * col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT ALL - COUNT( ALL + + col1 ) AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) * + + 33 + + col0 + + 60 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - COUNT ( ALL + + col1 ) AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * + + 33 + + col0 + + 60 = NULL
----
0

query I rowsort
SELECT + 33 * col0 FROM tab0
----
2871
3201
495

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - 29 <> NULL
----

query I rowsort
SELECT ALL col0 * + - col2 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT ALL CAST( + + col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + col0 * + col2 AND - - 38 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT + COUNT( * ) * - 59 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7491
SELECT + COUNT ( * ) * - 59 FROM tab1 AS cor0
----
-177

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 FROM tab2 cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - 20 * + col2 + - - col0 + - col0 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT - col2 DIV - - col0 + col2 * - 84 AS col2 FROM tab1 AS cor0
----
-4956
-5712
-8065

skipif mysql # not compatible
query I rowsort label-7495
SELECT - col2 / - - col0 + col2 * - 84 AS col2 FROM tab1 AS cor0
----
-4956
-5712
-8065

query I rowsort
SELECT ALL col0 + + - col2 AS col0 FROM tab1 AS cor0 WHERE - col1 + col0 IS NOT NULL
----
-45
23
26

onlyif mysql # DIV for integer division: 
query II rowsort label-7497
SELECT DISTINCT 76 DIV - + 73 + + - 25 AS col1, + 92 AS col2 FROM tab1 AS cor0
----
-26
92

skipif mysql # not compatible
query II rowsort label-7497
SELECT DISTINCT 76 / - + 73 + + - 25 AS col1, + 92 AS col2 FROM tab1 AS cor0
----
-26
92

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - - col2 + - col1 + - ( ( - ( + + 79 ) ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - - 82 + + + ( + col0 ) FROM tab0
----
112
256
276

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * 18 + 13 + 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT COUNT( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7501
SELECT DISTINCT COUNT ( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 IS NOT NULL AND NOT NULL <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT ALL 73 + col1 - - col0 - - ( - col0 ) DIV col2 DIV + 67 col1 FROM tab1 AS cor0
----
138
163
211

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7503
SELECT ALL 73 + col1 - - col0 - - ( - col0 ) / col2 / + 67 col1 FROM tab1 AS cor0
----
138
163
211

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col0 FROM tab2 cor0 WHERE ( NOT - + col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 77 * + col0 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 38 / + col1 BETWEEN NULL AND 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT + COUNT( * ) + + MIN( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT + COUNT ( * ) + + MIN ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT + SUM( ALL - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + SUM ( ALL - col1 ) FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

query II rowsort
SELECT + 17 * - col2 * - - col2, col2 FROM tab2
----
-27200
40
-57188
58
-8993
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( - 33 ) AND - + col2 * + + col1 + + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT COUNT( col0 ) FROM tab0 WHERE NOT + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7512
SELECT COUNT ( col0 ) FROM tab0 WHERE NOT + col1 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7513
SELECT DISTINCT col1 AS col1, col2 DIV + col1 FROM tab1
----
14
6
47
1
5
11

skipif mysql # not compatible
query II rowsort label-7513
SELECT DISTINCT col1 AS col1, col2 / + col1 FROM tab1
----
14
6
47
1
5
11

query I rowsort
SELECT - 50 * - col0 AS col2 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT col2 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + 15 AS col1 FROM tab2
----
345
600
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7517
SELECT - COUNT( - 40 ) DIV 92 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7517
SELECT - COUNT ( - 40 ) / 92 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT ALL col1 DIV 75 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL col1 / 75 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT 28 * + - COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT 28 * + - COUNT ( * ) FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT - 21 * - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
189

skipif mysql # not compatible
query I rowsort label-7520
SELECT - 21 * - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL + COUNT( + + 12 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + COUNT ( + + 12 ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 56 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT 86 DIV - COUNT( * ) col2 FROM tab2
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7523
SELECT 86 / - COUNT ( * ) col2 FROM tab2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT CAST( - col1 AS SIGNED ) * + - col1 - - 15 AS col1 FROM tab1 AS cor0
----
211
2224
40

skipif mysql # not compatible
query I rowsort label-7524
SELECT CAST ( - col1 AS INTEGER ) * + - col1 - - 15 AS col1 FROM tab1 AS cor0
----
211
2224
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT DISTINCT - 95 DIV + + COUNT( ALL + col0 ) AS col1 FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT - 95 / + + COUNT ( ALL + col0 ) AS col1 FROM tab0 cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT ALL + + col1 AS col0 FROM tab2 AS cor0 WHERE - col2 * + CAST( NULL AS SIGNED ) > - 5
----

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + + col1 AS col0 FROM tab2 AS cor0 WHERE - col2 * + CAST ( NULL AS INTEGER ) > - 5
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 <= col2
----

query I rowsort
SELECT DISTINCT + col1 + + col0 + + - col2 * - 54 FROM tab1
----
3276
3810
5249

query I rowsort
SELECT DISTINCT + ( - 72 ) FROM tab2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7531
SELECT DISTINCT * FROM tab0 WHERE - CAST( - 90 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7531
SELECT DISTINCT * FROM tab0 WHERE - CAST ( - 90 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + ( 26 ) FROM tab1
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + + col2 <> - col1 AND NOT + ( col2 ) * + 22 + col0 > NULL
----

query I rowsort
SELECT col2 + + 81 FROM tab2
----
104
121
139

query I rowsort
SELECT ALL 69 + + col2 AS col0 FROM tab1
----
128
137
165

query I rowsort
SELECT ALL - 12 AS col1 FROM tab2 cor0
----
-12
-12
-12

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 86 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col0 col2 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT 55 - + + col2 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
255
3815
55

query I rowsort
SELECT - + col2 * - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL + ( + 0 ) FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - - col0 AS col1, 55 AS col2 FROM tab1 AS cor0
----
51
55
85
55
91
55

query II rowsort
SELECT DISTINCT + - col2 AS col2, - 15 AS col2 FROM tab0 AS cor0
----
-10
-15
-47
-15
-99
-15

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
1
21
81

query I rowsort
SELECT 4 * - - col2 AS col2 FROM tab1
----
236
272
384

query I rowsort
SELECT col0 * 60 * col1 AS col0 FROM tab2
----
140760
295680
301500

query II rowsort
SELECT - col2 * - col2, col2 FROM tab1
----
3481
59
4624
68
9216
96

query I rowsort
SELECT DISTINCT ( - 78 ) * + col1 AS col1 FROM tab0
----
-1638
-6318
-78

query II rowsort
SELECT DISTINCT ( - 41 ) AS col2, 52 FROM tab0 cor0
----
-41
52

query II rowsort
SELECT DISTINCT col1 * ( - 51 ), + col1 FROM tab2
----
-2601
51
-3417
67
-3927
77

query I rowsort
SELECT DISTINCT + col0 * - 6 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT DISTINCT - col1 * + - col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT ALL + col2 DIV - ( - 96 ) + + + col1 DIV 36 col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7553
SELECT ALL + col2 / - ( - 96 ) + + + col1 / 36 col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT + 87 * 49 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
4263
4263
4263

query I rowsort
SELECT + + 97 + col0 AS col2 FROM tab1 AS cor0
----
148
182
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT + + 82 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT + + 82 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 96 * + col2 FROM tab2 AS cor0 WHERE ( ( + col2 IS NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= col1 * col0 * + 71 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - - col1 + + 27 + - - col0 * col2 AS col0 FROM tab2 AS cor0
----
1113
2624
4386

query I rowsort
SELECT ALL + 18 - - col0 + + col1 FROM tab1 WHERE col2 + col0 + - - 1 / - 60 = col1 * col2 OR - col0 IS NOT NULL
----
108
156
83

query I rowsort
SELECT ALL + 48 + col1 + 63 AS col1 FROM tab1
----
116
125
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 62 + - ( + 10 ) col1 FROM tab0
----
-5404
-6024
-940

query I rowsort
SELECT 83 FROM tab0 WHERE - - col0 <> NULL
----

query I rowsort
SELECT DISTINCT 51 - + col2 * - + col2 AS col0 FROM tab2
----
1651
3415
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT DISTINCT + col0 + + CAST( - col1 AS SIGNED ) + - - ( + 3 ) FROM tab2
----
-10
-2
11

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT + col0 + + CAST ( - col1 AS INTEGER ) + - - ( + 3 ) FROM tab2
----
-10
-2
11

query I rowsort
SELECT + col0 * - col0 * + 13 FROM tab1 AS cor0
----
-107653
-33813
-93925

query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) * - + col1 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + col1 + 75 FROM tab0
----
156
76
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT + col2 + col0 + + + CAST( 93 AS SIGNED ) AS col1 FROM tab1
----
237
240
252

skipif mysql # not compatible
query I rowsort label-7569
SELECT + col2 + col0 + + + CAST ( 93 AS INTEGER ) AS col1 FROM tab1
----
237
240
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - + MIN( DISTINCT 63 ) FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7570
SELECT - + MIN ( DISTINCT 63 ) FROM tab2 cor0
----
-63

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) * - col2 = + col2 + - 34
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT DISTINCT + CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT + CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7573
SELECT ALL 43, + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-7573
SELECT ALL 43, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
43
NULL

query I rowsort
SELECT 73 * col1 FROM tab2
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL - 81 AS col2, col0 FROM tab0
----
-81
15
-81
87
-81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - SUM( 92 ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7577
SELECT - SUM ( 92 ) FROM tab1
----
-276

query I rowsort
SELECT 22 * + col1 AS col2 FROM tab0
----
1782
22
462

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 2 + 80 > + col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL - 98 + - col1 FROM tab1
----
-103
-112
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL + MAX( DISTINCT + - ( + + col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL + MAX ( DISTINCT + - ( + + col2 ) ) FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 38 col1 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 * - - 7 >= - 33 / + + col2
----
3

skipif mysql # not compatible
query I rowsort label-7583
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 * - - 7 >= - 33 / + + col2
----
3

query I rowsort
SELECT ALL + 67 / + 17 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL + 41 * MAX( ALL + + col1 ) FROM tab2 AS cor0
----
3157

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + 41 * MAX ( ALL + + col1 ) FROM tab2 AS cor0
----
3157

query I rowsort
SELECT ALL + + ( ( - + 31 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-31
-31
-31

query I rowsort
SELECT ALL + - 8 * col1 FROM tab2 AS cor0
----
-408
-536
-616

query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab0 WHERE ( + col1 * col2 IS NOT NULL )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT COUNT( * ) + + + 59 AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT COUNT ( * ) + + + 59 AS col0 FROM tab2
----
62

query I rowsort
SELECT col0 * + col0 + + ( - - col1 ) + 59 AS col0 FROM tab0
----
365
7649
9469

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT COUNT( * ) + + + 48 * - + COUNT( * ) AS col1, 80 AS col1 FROM tab1
----
-141
80

skipif mysql # not compatible
query II rowsort label-7591
SELECT COUNT ( * ) + + + 48 * - + COUNT ( * ) AS col1, 80 AS col1 FROM tab1
----
-141
80

query III rowsort
SELECT * FROM tab0 WHERE + - 58 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT DISTINCT - col2 * ( - col1 ) DIV + col0 + + col0 * + col2 AS col1 FROM tab0
----
872
958
9604

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT - col2 * ( - col1 ) / + col0 + + col0 * + col2 AS col1 FROM tab0
----
872
958
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE col0 * + ( - col0 ) + - 79 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * + ( - col0 ) + - 79 + col2 IS NOT NULL
----
3

query I rowsort
SELECT col0 * + + col0 + - 1 AS col2 FROM tab2 cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT + 84 * - 36 FROM tab1
----
-3024

query I rowsort
SELECT DISTINCT - col0 * + 38 FROM tab0
----
-3306
-3686
-570

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 27 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL + COUNT( * ) + - COUNT( col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL + COUNT ( * ) + - COUNT ( col0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7601
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7601
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 20 NOT BETWEEN + ( col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7603
SELECT - MIN( + CAST( + 47 AS SIGNED ) ) col2 FROM tab2
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7603
SELECT - MIN ( + CAST ( + 47 AS INTEGER ) ) col2 FROM tab2
----
-47

query I rowsort
SELECT DISTINCT col1 + 81 * + 82 AS col0 FROM tab1
----
6647
6656
6689

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL ( - col1 ) * + col0 + col0 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT ALL + col1 * 64 FROM tab1 WHERE NOT 97 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ( + SUM( ALL + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7608
SELECT ( + SUM ( ALL + col2 ) ) FROM tab1
----
223

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col1 * - 16 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + col0 col2 FROM tab1
----
129
135
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT + 27 DIV - col0 FROM tab2 WHERE col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 27 / - col0 FROM tab2 WHERE col1 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7612
SELECT COUNT( * ) DIV 46 + 87 AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-7612
SELECT COUNT ( * ) / 46 + 87 AS col2 FROM tab2
----
87

query III rowsort
SELECT ALL * FROM tab2 WHERE - 71 - - 86 * 36 BETWEEN col2 / - 59 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL SUM( col2 ) FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL SUM ( col2 ) FROM tab1 WHERE ( NULL ) BETWEEN NULL AND + 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + ( col2 + - col2 * col0 ) AS col0 FROM tab1 AS cor0
----
-4851
-5041
-6211

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT + 32 + COUNT( * ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT + 32 + COUNT ( * ) FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL MAX( ALL 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL MAX ( ALL 74 ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT - MAX( col2 ) * COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT - MAX ( col2 ) * COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL NOT BETWEEN ( - 83 ) AND 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT + ( COUNT( * ) ) + 67 * COUNT( * ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7622
SELECT + ( COUNT ( * ) ) + 67 * COUNT ( * ) FROM tab2 AS cor0
----
204

query I rowsort
SELECT ALL + + 14 + 25 AS col0 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT - 87 + 64 AS col1 FROM tab2 AS cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7625
SELECT - ( - 33 ) AS col2 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * - col2 ) <> ( col1 )
----

skipif mysql # not compatible
query I rowsort label-7625
SELECT - ( - 33 ) AS col2 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * - col2 ) <> ( col1 )
----

query I rowsort
SELECT ( col2 ) + - 4 AS col2 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + 97 + COUNT( * ) FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7627
SELECT + 97 + COUNT ( * ) FROM tab1 AS cor0
----
100

query I rowsort
SELECT - ( col2 ) + col0 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT 48 + - col2 AS col0 FROM tab2 AS cor0
----
-10
25
8

query I rowsort
SELECT col0 + 14 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + 18 FROM tab2 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - 86 + - + ( + 79 ) + col1 * col1 AS col0 FROM tab1
----
-140
2044
31

query III rowsort
SELECT * FROM tab0 WHERE col0 * - ( + col2 ) - - col1 NOT IN ( - 28 * col2 + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 6 * col2 col0 FROM tab2
----
-115
-200
-290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 + - 90 col2 FROM tab2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT + 91 DIV - 52 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7636
SELECT + 91 / - 52 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( - 29 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 58 - + + ( + col0 ) FROM tab1
----
-27
-33
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT DISTINCT + COUNT( * ) * + - 75 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT + COUNT ( * ) * + - 75 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT + ( col2 ) - - 28 * - ( 98 ) AS col0 FROM tab2 cor0
----
-2686
-2704
-2721

query I rowsort
SELECT DISTINCT - 59 * - 35 AS col1 FROM tab1 AS cor0
----
2065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7642
SELECT ALL SUM( DISTINCT - col1 ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL SUM ( DISTINCT - col1 ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT + SUM( DISTINCT - 62 ) * + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-558

skipif mysql # not compatible
query I rowsort label-7643
SELECT + SUM ( DISTINCT - 62 ) * + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-558

onlyif mysql # DIV for integer division: 
query II rowsort label-7644
SELECT DISTINCT - col0 AS col2, + 56 DIV col0 AS col0 FROM tab2
----
-46
1
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-7644
SELECT DISTINCT - col0 AS col2, + 56 / col0 AS col0 FROM tab2
----
-46
1
-64
0
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7645
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST( col2 AS SIGNED ) - 83 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7645
SELECT DISTINCT * FROM tab1 WHERE NOT ( + CAST ( col2 AS INTEGER ) - 83 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - col0 * + col1 AS col0 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE ( - ( 62 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE ( - ( 62 ) ) IS NULL
----
0

query I rowsort
SELECT + ( + 50 ) FROM tab1 cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col2, col0 * 99 FROM tab1 AS cor0
----
51
5049
85
8415
91
9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT ALL + CAST( + col2 AS SIGNED ) + + col1 col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7650
SELECT ALL + CAST ( + col2 AS INTEGER ) + + col1 col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE ( 8 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT - + ( - MIN( - 19 ) ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - + ( - MIN ( - 19 ) ) FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7653
SELECT - 31 * + + 10 AS col0, 27 DIV - + COUNT( * ) AS col0 FROM tab1
----
-310
-9

skipif mysql # not compatible
query II rowsort label-7653
SELECT - 31 * + + 10 AS col0, 27 / - + COUNT ( * ) AS col0 FROM tab1
----
-310
-9

query II rowsort
SELECT - col2 * col2, ( + + 51 ) * - 4 + + col1 AS col1 FROM tab2
----
-1600
-127
-3364
-137
-529
-153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7655
SELECT ALL 49 DIV + col1 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
1
NULL
3
NULL
9
NULL

skipif mysql # not compatible
query II rowsort label-7655
SELECT ALL 49 / + col1 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
1
NULL
3
NULL
9
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 67 / + - col2 + col2 ) BETWEEN ( 65 ) AND col1 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 68 / + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT MIN( + col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-7658
SELECT MIN ( + col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 * - col0 col0, + col2 + 36 FROM tab2
----
-1334
59
-1856
76
-2175
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL ( - MAX( + - 8 ) ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL ( - MAX ( + - 8 ) ) AS col2 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + MIN( ALL - - col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7661
SELECT + MIN ( ALL - - col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NOT ( + + col1 ) <= ( NULL )
----

query I rowsort
SELECT ALL - - 22 + - + col0 * 94 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + 24 * + col1 + - + col0 FROM tab0 AS cor0
----
-73
1929
417

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 42 * 96 ) AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 52 = col1 + + col0 * - col2
----
3

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 52 = col1 + + col0 * - col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + - COUNT( ALL 26 ) * - 27 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7667
SELECT + - COUNT ( ALL 26 ) * - 27 FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL - ( - col0 ) FROM tab0 AS cor0 WHERE + col2 + - 69 + col2 IN ( 53 )
----

query I rowsort
SELECT ALL 83 + col0 FROM tab0
----
170
180
98

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 3 ) IS NOT NULL
----

query I rowsort
SELECT ALL 73 - + 91 FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - COUNT( * ) * + + 29 col0 FROM tab0 cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7672
SELECT - COUNT ( * ) * + + 29 col0 FROM tab0 cor0
----
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( + + col1 * col0 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 / - col2 ) IS NULL
----

query I rowsort
SELECT col1 + col2 + + col2 AS col1 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7676
SELECT DISTINCT MAX( 40 ) AS col0, 30 FROM tab2
----
40
30

skipif mysql # not compatible
query II rowsort label-7676
SELECT DISTINCT MAX ( 40 ) AS col0, 30 FROM tab2
----
40
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7677
SELECT - CAST( + + CAST( - col1 AS SIGNED ) AS SIGNED ) * - + CAST( NULL AS DECIMAL ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT - CAST ( + + CAST ( - col1 AS INTEGER ) AS INTEGER ) * - + CAST ( NULL AS REAL ) + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT ALL COUNT( * ) AS col1, 80 FROM tab1
----
3
80

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL COUNT ( * ) AS col1, 80 FROM tab1
----
3
80

query I rowsort
SELECT ALL + col2 + - 82 AS col0 FROM tab0
----
-35
-72
17

query I rowsort
SELECT DISTINCT - 60 - 37 * + - col2 FROM tab0
----
1679
310
3603

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT + COUNT( * ) + COUNT( * ) FROM tab0 WHERE + - 82 NOT BETWEEN - - 49 + col0 + + col2 * - col2 AND ( + col0 )
----
2

skipif mysql # not compatible
query I rowsort label-7681
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE + - 82 NOT BETWEEN - - 49 + col0 + + col2 * - col2 AND ( + col0 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL + - SUM( + 87 ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + - SUM ( + 87 ) FROM tab2 AS cor0
----
-261

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT - 73 * - col2 AS col2, col0 FROM tab2
----
1679
46
2920
64
4234
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-7686
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT ALL + - col1 * + col0 * + 49 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7688
SELECT + CAST( - ( 56 ) AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7688
SELECT + CAST ( - ( 56 ) AS REAL ) FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN col1 AND NULL )
----

query I rowsort
SELECT DISTINCT + + ( - ( - col0 ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - ( - COUNT( - - col1 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7692
SELECT - ( - COUNT ( - - col1 ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 38 * - 71 AS col2 FROM tab1 AS cor0
----
2698
2698
2698

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + col1 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + ( + - 47 ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 47 * ( + + col0 ) + 58 + col2 + + 11 + - - 84 AS col1 FROM tab2 AS cor0
----
2338
3201
3736

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col1 / - col2 + - 45 + - col2 + + col1 IS NULL ) OR NOT NULL IS NULL
----

query I rowsort
SELECT - col2 + + + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 45 + col0 FROM tab1
----
110
135
183

query II rowsort
SELECT DISTINCT col1, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT col2, col1 * col1 FROM tab2
----
23
2601
40
5929
58
4489

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + + col1 * col1 + - - col1 / - col1 + - 20
----

query I rowsort
SELECT ALL + 91 * 25 AS col2 FROM tab1
----
2275
2275
2275

query II rowsort
SELECT ALL + col0, + 46 AS col2 FROM tab0 AS cor0
----
15
46
87
46
97
46

query I rowsort
SELECT - col1 * 63 FROM tab1 AS cor0
----
-2961
-315
-882

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND + col1
----

query II rowsort
SELECT + 66 AS col2, + 3 * 14 AS col1 FROM tab2 AS cor0
----
66
42
66
42
66
42

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 94 IN ( + col0 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7709
SELECT + SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + col2 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT col0 DIV 17 FROM tab1
----
3
5
5

skipif mysql # not compatible
query I rowsort label-7711
SELECT col0 / 17 FROM tab1
----
3
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7712
SELECT - 47 + + 14 + + - CAST( NULL AS DECIMAL ) + + + 93 + - + 96 + + col1 * col0 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT - 47 + + 14 + + - CAST ( NULL AS REAL ) + + + 93 + - + 96 + + col1 * col0 * col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 * col1 * - - 25 ) IN ( + col1 + - 17 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + - col0 + - + 31 AS col1 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL IN ( - col1 )
----
0

query I rowsort
SELECT DISTINCT - - 61 - col1 * col2 + + col2 FROM tab1 AS cor0 WHERE ( col1 ) + + + col1 IS NOT NULL
----
-1187
-175
-3067

query I rowsort
SELECT + 22 * - col0 * col0 + col2 FROM tab0 AS cor0
----
-166508
-206899
-4903

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - + 69 * + - 57 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
11799

skipif mysql # not compatible
query I rowsort label-7718
SELECT - + 69 * + - 57 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
11799

query I rowsort
SELECT DISTINCT col2 + + + 58 FROM tab2 AS cor0 WHERE NOT ( - ( + col0 ) ) IS NULL
----
116
81
98

query I rowsort
SELECT DISTINCT col1 + - 7 FROM tab1 AS cor0
----
-2
40
7

query I rowsort
SELECT ALL - 26 + - col1 AS col0 FROM tab1
----
-31
-40
-73

query I rowsort
SELECT 78 FROM tab0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col1 * - col1 + - + ( + col1 ) AS col2 FROM tab2
----
2550
4422
5852

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 BETWEEN - 8 * 29 / - 38 + - - col0 AND - ( 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT DISTINCT col2 + + - 90 DIV ( col1 ) FROM tab0 WHERE + 6 IS NOT NULL
----
46
6
9

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT col2 + + - 90 / ( col1 ) FROM tab0 WHERE + 6 IS NOT NULL
----
46
6
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 74 * 34 FROM tab2 AS cor0
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7729
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 col2 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - 88 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT - 65 DIV - COUNT( * ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-7733
SELECT - 65 / - COUNT ( * ) AS col1 FROM tab2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7734
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, ( col0 ) col0 FROM tab0 cor0
----
1
97
21
87
81
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL 47 * COUNT( * ) - + ( + 93 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL 47 * COUNT ( * ) - + ( + 93 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT - + ( + + 39 ) + col2 AS col0 FROM tab0 AS cor0
----
-29
60
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT + col1 / - CAST( NULL AS SIGNED ) + + + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + col1 / - CAST ( NULL AS INTEGER ) + + + col1 AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + + col2, 30, + 27 )
----

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col2 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT ALL col1 * + - col2, + col2 FROM tab0
----
-210
10
-3807
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7743
SELECT * FROM tab1 WHERE + - 99 * col2 / - + col1 * + col2 / + CAST( NULL AS SIGNED ) + + 39 * - - col1 IN ( 54 )
----

skipif mysql # not compatible
query III rowsort label-7743
SELECT * FROM tab1 WHERE + - 99 * col2 / - + col1 * + col2 / + CAST ( NULL AS INTEGER ) + + 39 * - - col1 IN ( 54 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7744
SELECT DISTINCT col1 DIV col1 * col2 + - col0 * 71 AS col1, + col2 FROM tab0
----
-1018
47
-6167
10
-6788
99

skipif mysql # not compatible
query II rowsort label-7744
SELECT DISTINCT col1 / col1 * col2 + - col0 * 71 AS col1, + col2 FROM tab0
----
-1018
47
-6167
10
-6788
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7745
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) <= + + col1 * - ( + - CAST( col2 AS SIGNED ) ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-7745
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) <= + + col1 * - ( + - CAST ( col2 AS INTEGER ) ) * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7746
SELECT col0 + - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT col0 + - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 98 * + col2 * col2 FROM tab0
----
-216482
-960498
-9800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 + - 9 col0 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - col0 + + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7750
SELECT col0 DIV - 89 + col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
46
91
5
85

skipif mysql # not compatible
query II rowsort label-7750
SELECT col0 / - 89 + col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
46
91
5
85

onlyif mysql # DIV for integer division: 
query II rowsort label-7751
SELECT ALL - + col2 DIV col1 + - - 37 AS col1, 65 * - col0 * + col1 FROM tab1 cor0
----
26
-27625
31
-46410
36
-278005

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL - + col2 / col1 + - - 37 AS col1, 65 * - col0 * + col1 FROM tab1 cor0
----
26
-27625
31
-46410
36
-278005

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT DISTINCT - 21 + col1 DIV - 65 AS col1 FROM tab2
----
-21
-22

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT - 21 + col1 / - 65 AS col1 FROM tab2
----
-21
-22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col0 / - + col2 AND col0
----

query I rowsort
SELECT DISTINCT + - col1 - - col2 FROM tab1 cor0
----
21
54
82

query II rowsort
SELECT DISTINCT - 14, - 48 + + + col2 AS col0 FROM tab0 AS cor0
----
-14
-1
-14
-38
-14
51

query II rowsort
SELECT ALL + + 35 AS col2, col0 FROM tab2 AS cor0
----
35
46
35
64
35
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7757
SELECT ALL - col0 col2, + 72 DIV 48 * 20 AS col0 FROM tab2 AS cor0
----
-46
20
-64
20
-75
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7757
SELECT ALL - col0 col2, + 72 / 48 * 20 AS col0 FROM tab2 AS cor0
----
-46
20
-64
20
-75
20

query I rowsort
SELECT + 11 + + col0 FROM tab0
----
108
26
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT DISTINCT col1 DIV - 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT col1 / - 85 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7760
SELECT - CAST( NULL AS SIGNED ) * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + - 39 AS col1 FROM tab0 WHERE NOT col2 <= - col2
----
-39

query I rowsort
SELECT - col0 * col0 + - col2 - col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL - COUNT( + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - COUNT ( + col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT - 4 AS col1 FROM tab1 cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col0 FROM tab1 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT - MIN( + 55 ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7766
SELECT - MIN ( + 55 ) AS col0 FROM tab2 AS cor0
----
-55

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7768
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT + + 28 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT + - SUM( col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT + - SUM ( col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT col1 + col2 * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - + SUM( ALL - 97 ) + + 3 AS col0 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-7773
SELECT - + SUM ( ALL - 97 ) + + 3 AS col0 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT + MIN( + col0 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7774
SELECT + MIN ( + col0 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + + 18 * - - col0 FROM tab2 AS cor0
----
1152
1350
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7776
SELECT + + COUNT( * ) + + - CAST( 40 AS SIGNED ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7776
SELECT + + COUNT ( * ) + + - CAST ( 40 AS INTEGER ) FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT - col1 + - + 72 AS col0 FROM tab1 AS cor0
----
-119
-77
-86

query I rowsort
SELECT DISTINCT + + 99 / - - col0 FROM tab1 WHERE 49 BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT ALL - col2 * col0 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL - col2 * col0 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - - ( - 59 ) ) + 47 - ( 38 ) FROM tab2
----
-50
-50
-50

query I rowsort
SELECT DISTINCT col2 + - + col1 * col0 AS col0 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT ALL col1 + + + ( - col2 ) FROM tab2
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - + col1 <= NULL
----

query I rowsort
SELECT - + 32 * - + col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
1888
2176
3072

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * ( - - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 * col2 * - col2 + + col1 FROM tab0 AS cor0
----
-103742
-970298
-979

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 40 * - - col2 - - 19 NOT IN ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE col2 * ( + col2 ) BETWEEN - col0 AND - ( col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7789
SELECT DISTINCT - col2 DIV - 1 AS col1, col1 * col2 * + - 25 AS col1 FROM tab1
----
59
-7375
68
-79900
96
-33600

skipif mysql # not compatible
query II rowsort label-7789
SELECT DISTINCT - col2 / - 1 AS col1, col1 * col2 * + - 25 AS col1 FROM tab1
----
59
-7375
68
-79900
96
-33600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7790
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( - + 2 AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( - + 2 AS REAL ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 49 - - + 5 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL + ( + 19 ) * COUNT( * ) + + 96 + + - 31 + - 86 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + ( + 19 ) * COUNT ( * ) + + 96 + + - 31 + - 86 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL ( - + COUNT( * ) ) * - - 26 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL ( - + COUNT ( * ) ) * - - 26 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL + 19 * + col2 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - + MIN( 73 ) AS col0 FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7796
SELECT - + MIN ( 73 ) AS col0 FROM tab2 cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * + col2 col2, col1 FROM tab0 AS cor0
----
-705
81
-870
21
-9603
1

query I rowsort
SELECT DISTINCT - + col1 + col1 AS col0 FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT - COUNT( 18 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - COUNT ( 18 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col1 AS col2, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 50 * + - ( - + col2 ) + - ( + col2 ) + 31 >= ( + col1 )
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7801
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) + ( + col0 ) / CAST( - + col0 AS SIGNED ) + CAST( - 81 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7801
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) + ( + col0 ) / CAST ( - + col0 AS INTEGER ) + CAST ( - 81 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT + + COUNT( * ) AS col0, 89 * - 2 * - 59 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + col0
----
0
10502

skipif mysql # not compatible
query II rowsort label-7802
SELECT + + COUNT ( * ) AS col0, 89 * - 2 * - 59 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + col0
----
0
10502

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT DISTINCT + 31 DIV ( - + col1 ) FROM tab0
----
-1
-31
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT + 31 / ( - + col1 ) FROM tab0
----
-1
-31
0

query I rowsort
SELECT ALL + 83 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
83
83
83

query III rowsort
SELECT * FROM tab0 WHERE NOT - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 87 AS col2, + 67 AS col2 FROM tab1
----
87
67
87
67
87
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7807
SELECT 13 DIV - - SUM( + - col0 ) col2, COUNT( * ) FROM tab2
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7807
SELECT 13 / - - SUM ( + - col0 ) col2, COUNT ( * ) FROM tab2
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT - col1 * + col0 * col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT - col1 * + col0 * col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT + 26 * + COUNT( * ) AS col2, COUNT( * ) FROM tab2
----
78
3

skipif mysql # not compatible
query II rowsort label-7809
SELECT + 26 * + COUNT ( * ) AS col2, COUNT ( * ) FROM tab2
----
78
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7810
SELECT ALL - CAST( + 69 AS DECIMAL ) / col1 FROM tab2 AS cor0 WHERE NOT + 58 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - CAST ( + 69 AS REAL ) / col1 FROM tab2 AS cor0 WHERE NOT + 58 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT ALL COUNT( * ), COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3
3

skipif mysql # not compatible
query II rowsort label-7811
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT DISTINCT - - COUNT( * ) * + - 85, + SUM( ALL + 80 ) col1 FROM tab1 cor0
----
-255
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7812
SELECT DISTINCT - - COUNT ( * ) * + - 85, + SUM ( ALL + 80 ) col1 FROM tab1 cor0
----
-255
240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7813
SELECT DISTINCT - col2 + 35, + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-12
NULL
-64
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-7813
SELECT DISTINCT - col2 + 35, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-12
NULL
-64
NULL
25
NULL

query I rowsort
SELECT - 75 * col1 * - - col1 + + + col0 FROM tab2 cor0
----
-195029
-336600
-444611

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT COUNT( DISTINCT - - 35 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT COUNT ( DISTINCT - - 35 ) FROM tab1
----
1

query I rowsort
SELECT - 22 AS col1 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL col1 + + 4 AS col2 FROM tab0
----
25
5
85

query I rowsort
SELECT + 57 + + col1 FROM tab0
----
138
58
78

query I rowsort
SELECT ALL - col1 + + 78 FROM tab0
----
-3
57
77

query I rowsort
SELECT DISTINCT col1 + - + 20 AS col1 FROM tab2
----
31
47
57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 52 + + ( + 99 ) < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + col2 * - - 24 AS col0 FROM tab0
----
1209
2377
261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT DISTINCT - CAST( - 37 AS SIGNED ) * + 74 FROM tab1
----
2738

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT - CAST ( - 37 AS INTEGER ) * + 74 FROM tab1
----
2738

query I rowsort
SELECT ALL + col0 + 95 AS col0 FROM tab1
----
146
180
186

query I rowsort
SELECT + col2 + + - col2 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT + COUNT( ALL - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT + COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 - + + ( - col2 ) FROM tab1
----
118
136
192

query I rowsort
SELECT ALL col1 - col0 + + 6 - + + 25 AS col0 FROM tab0
----
-115
-85
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + + col2 * + col2 - + 83 AS col0 FROM tab2 AS cor0
----
1517
3281
446

query I rowsort
SELECT - - 0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT col2 * + 31 AS col1 FROM tab1 AS cor0
----
1829
2108
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT - MIN( ALL - CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 8 * - col2 + - col2 FROM tab2 AS cor0
----
-207
-360
-522

query I rowsort
SELECT ALL 69 * + - col1 FROM tab2 AS cor0
----
-3519
-4623
-5313

query II rowsort
SELECT col2 AS col2, + 0 FROM tab0 AS cor0
----
10
0
47
0
99
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( - 53 ) + + - col1 + + + 34 * - + col0 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + SUM( + 71 ) AS col1 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + SUM ( + 71 ) AS col1 FROM tab1 AS cor0
----
213

query I rowsort
SELECT - 42 * + - col0 FROM tab0 AS cor0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL MIN( ALL + - 63 ) * + 65 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL MIN ( ALL + - 63 ) * + 65 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT ALL + col2 DIV + + ( - + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + col2 / + + ( - + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT CAST( NULL AS SIGNED ) * - - col1 * + 83 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT CAST ( NULL AS INTEGER ) * - - col1 * + 83 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT MAX( ALL 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-7844
SELECT MAX ( ALL 85 ) FROM tab0
----
85

query I rowsort
SELECT col1 * + + 46 FROM tab0
----
3726
46
966

query I rowsort
SELECT DISTINCT - ( - 82 ) FROM tab0
----
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - col2 ) BETWEEN ( NULL ) AND col1 + - col2 + + 11 * + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + 3 ) * col2 + + col0 + + col1 FROM tab2 cor0
----
166
261
316

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 68 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7850
SELECT + + col0 DIV col1 DIV 40 * - - col0 FROM tab0 AS cor0
----
0
0
194

skipif mysql # not compatible
query I rowsort label-7850
SELECT + + col0 / col1 / 40 * - - col0 FROM tab0 AS cor0
----
0
0
194

query I rowsort
SELECT + col1 * - - col1 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT COUNT( - - CAST( + 73 AS SIGNED ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7852
SELECT COUNT ( - - CAST ( + 73 AS INTEGER ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + col0
----

query I rowsort
SELECT 87 + + col2 + col0 + col0 + + 77 FROM tab2 AS cor0
----
279
332
372

query I rowsort
SELECT 33 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1182
-1794
-64

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 83 * + - col2 + - - 0 * col0 IN ( - ( + + ( + + 68 ) ), + col1 + - - col0 * + 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT - ( - 26 ) + + col2 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT - ( - 26 ) + + col2 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 72 + - col2 FROM tab1 cor0
----
4189
4828
6816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7860
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) / - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7860
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) / - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - + col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT ALL + - 72 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - - 54 AND + 61
----

query I rowsort
SELECT DISTINCT col1 + - 75 + col0 * - col2 * + - col1 FROM tab0
----
18216
57111
9529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT - ( - col2 ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7864
SELECT - ( - col2 ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 39 - + col0 FROM tab0 AS cor0
----
-126
-136
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7866
SELECT ALL - ( ( + COUNT( * ) ) ) - - + COUNT( * ) DIV - + COUNT( * ) col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7866
SELECT ALL - ( ( + COUNT ( * ) ) ) - - + COUNT ( * ) / - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT - + MAX( 62 ) AS col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT - + MAX ( 62 ) AS col2 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - + MAX( + - 17 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND 59 - ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT - + MAX ( + - 17 ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND 59 - ( col1 )
----
NULL

query I rowsort
SELECT DISTINCT 72 * - col2 + col2 AS col2 FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT ALL + ( + 75 ) DIV 13 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL + ( + 75 ) / 13 FROM tab0 AS cor0
----
5
5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 80 * + 51 IS NOT NULL
----

query I rowsort
SELECT - col0 * - 93 * - col1 AS col2 FROM tab1 AS cor0
----
-39525
-397761
-66402

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL - + ( - + ( MAX( - col2 ) ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - + ( - + ( MAX ( - col2 ) ) ) AS col2 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 6 >= - - col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT ALL - 52 DIV + + col2 + - - col0 FROM tab0 AS cor0
----
14
82
97

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - 52 / + + col2 + - - col0 FROM tab0 AS cor0
----
14
82
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col2 ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL 67 * - + COUNT( * ) AS col0 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL 67 * - + COUNT ( * ) AS col0 FROM tab0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT CAST( - - 71 AS SIGNED ) AS col1 FROM tab1
----
71
71
71

skipif mysql # not compatible
query I rowsort label-7879
SELECT CAST ( - - 71 AS INTEGER ) AS col1 FROM tab1
----
71
71
71

query I rowsort
SELECT col0 * - 50 * - - col1 FROM tab2
----
-117300
-246400
-251250

query II rowsort
SELECT 29 AS col1, 12 AS col0 FROM tab0
----
29
12
29
12
29
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT + 69 + + MAX( ( col0 ) ) + + MAX( ( + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + 69 + + MAX ( ( col0 ) ) + + MAX ( ( + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - ( - - 53 ) * COUNT( * ) AS col1 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-7883
SELECT - ( - - 53 ) * COUNT ( * ) AS col1 FROM tab2
----
-159

query I rowsort
SELECT ALL 65 * + col1 FROM tab2
----
3315
4355
5005

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab1 WHERE NOT + + col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT 97 * COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-7886
SELECT 97 * COUNT ( * ) FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT + 30 * + - SUM( col2 ) * + 61 + - 7 + + 27 FROM tab1 AS cor0
----
-408070

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT + 30 * + - SUM ( col2 ) * + 61 + - 7 + + 27 FROM tab1 AS cor0
----
-408070

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT MIN( ALL 43 ) AS col1 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT MIN ( ALL 43 ) AS col1 FROM tab0 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7889
SELECT DISTINCT + 61 DIV - + col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT + 61 / - + col0 FROM tab1 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col2 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT - + 29 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + ( - ( - 49 ) ) AS col1 FROM tab1 cor0
----
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * col2 = + 73
----

query I rowsort
SELECT - 29 + + 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + - col0 * col0 AS col1 FROM tab2 WHERE - 8 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT 77 + - col0 AS col2 FROM tab1 AS cor0 WHERE - 2 + col1 IS NOT NULL
----
-14
-8
26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 48 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT DISTINCT CAST( ( - 37 ) AS SIGNED ) FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT CAST ( ( - 37 ) AS INTEGER ) FROM tab0 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 69 - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 69 - col1 = NULL
----
0

query I rowsort
SELECT 37 + col0 + + col1 AS col1 FROM tab1
----
102
127
175

query I rowsort
SELECT - col1 + - - col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT - col1 DIV - 54 + + - col0 * - - col0 + - col2 AS col2 FROM tab2
----
-2139
-4135
-5682

skipif mysql # not compatible
query I rowsort label-7903
SELECT - col1 / - 54 + + - col0 * - - col0 + - col2 AS col2 FROM tab2
----
-2139
-4135
-5682

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT - COUNT( * ) - + 40 + + - 32 AS col1 FROM tab0 WHERE - - col2 > + col2 * - - 55
----
-72

skipif mysql # not compatible
query I rowsort label-7904
SELECT - COUNT ( * ) - + 40 + + - 32 AS col1 FROM tab0 WHERE - - col2 > + col2 * - - 55
----
-72

query I rowsort
SELECT DISTINCT col1 + + 79 AS col2 FROM tab2
----
130
146
156

query I rowsort
SELECT 31 * + - col1 + - 20 AS col0 FROM tab1
----
-1477
-175
-454

query I rowsort
SELECT ALL 38 + col2 FROM tab2
----
61
78
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7908
SELECT ALL * FROM tab1 WHERE + CAST( + col2 AS SIGNED ) NOT BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7908
SELECT ALL * FROM tab1 WHERE + CAST ( + col2 AS INTEGER ) NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE - col0 - - col1 IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT ALL - col1 + - - col1 * col0 DIV - 57 FROM tab1
----
-12
-122
-26

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - col1 + - - col1 * col0 / - 57 FROM tab1
----
-12
-122
-26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - - col2 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL + 94 - COUNT( * ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7912
SELECT ALL + 94 - COUNT ( * ) col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT MAX( ALL + 9 ) * 17 AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-7913
SELECT MAX ( ALL + 9 ) * 17 AS col0 FROM tab2
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7914
SELECT col0 * - + CAST( NULL AS SIGNED ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7914
SELECT col0 * - + CAST ( NULL AS INTEGER ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT + + MAX( + col2 ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
58
-3

skipif mysql # not compatible
query II rowsort label-7915
SELECT + + MAX ( + col2 ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
58
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - - MAX( ( - ( - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7917
SELECT - - MAX ( ( - ( - col1 ) ) ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - COUNT( - col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7918
SELECT - COUNT ( - col1 ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT - - 38 AS col1 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT - - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL - MIN( 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - MIN ( 47 ) FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT DISTINCT SUM( CAST( + - 69 AS SIGNED ) ) * - - 14 FROM tab0
----
-2898

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT SUM ( CAST ( + - 69 AS INTEGER ) ) * - - 14 FROM tab0
----
-2898

query II rowsort
SELECT DISTINCT + col0 AS col1, 62 FROM tab0
----
15
62
87
62
97
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 47 col1 FROM tab2
----
-2397
-3149
-3619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 39 * 37 col0 FROM tab0
----
-142857
-14430
-67821

query I rowsort
SELECT ALL - ( + col0 ) * + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT ALL 66 DIV COUNT( + 14 ) - - COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL 66 / COUNT ( + 14 ) - - COUNT ( * ) FROM tab2 AS cor0
----
25

query I rowsort
SELECT - 47 * + + 80 AS col0 FROM tab2 AS cor0
----
-3760
-3760
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT + - SUM( + - 10 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7929
SELECT + - SUM ( + - 10 ) FROM tab0 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL AND NOT col2 NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT 71 + 98 + - - ( - col0 ) FROM tab1
----
118
78
84

query III rowsort
SELECT * FROM tab2 WHERE - col1 * 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col1, ( - col0 ) AS col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT SUM( ALL - 7 ) + ( + + 76 ) AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7934
SELECT SUM ( ALL - 7 ) + ( + + 76 ) AS col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT col1 + - - col0 * + + 55 AS col1 FROM tab0 AS cor0
----
4806
5336
906

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT - 35 * COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT - 35 * COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 * + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL - - MAX( ALL + - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - - MAX ( ALL + - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT COUNT( DISTINCT + col0 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT COUNT ( DISTINCT + col0 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + col1 * 48 * 7 FROM tab1 AS cor0
----
15792
1680
4704

query I rowsort
SELECT ALL 48 * + 89 AS col2 FROM tab2
----
4272
4272
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL - MAX( - - 80 ) * - 28 FROM tab2
----
2240

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL - MAX ( - - 80 ) * - 28 FROM tab2
----
2240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7943
SELECT CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7943
SELECT CAST ( NULL AS REAL ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 68 + 99 + + col0 AS col2 FROM tab0
----
182
254
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 - + col2 col1, 69 * - 64 AS col1 FROM tab2
----
-1
-4416
-19
-4416
16
-4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 - + + 42 col0, 72 AS col1 FROM tab2
----
-109
72
-119
72
-93
72

query I rowsort
SELECT col0 - + col1 + + 59 * + + col0 - + 96 FROM tab0
----
5103
5723
723

query II rowsort
SELECT ALL col0, - col0 + + 33 FROM tab1 AS cor0
----
51
-18
85
-52
91
-58

query II rowsort
SELECT col1, + 38 * + col2 FROM tab1 AS cor0
----
14
3648
47
2584
5
2242

query I rowsort
SELECT ALL 47 + + + 21 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - 81 ) * + col1 AS col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7952
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + MAX( ALL CAST( ( + col2 ) AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + MAX ( ALL CAST ( ( + col2 ) AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT - CAST( + SUM( + col0 ) AS SIGNED ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7953
SELECT - CAST ( + SUM ( + col0 ) AS INTEGER ) FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7954
SELECT ALL * FROM tab2 WHERE NOT - CAST( - col1 AS SIGNED ) + + col0 + - col2 > col0
----

skipif mysql # not compatible
query III rowsort label-7954
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - col1 AS INTEGER ) + + col0 + - col2 > col0
----

query II rowsort
SELECT DISTINCT col0 * - + ( - col2 ) + + - 97, + col2 FROM tab2
----
2463
40
4253
58
961
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL MIN( ALL - 88 ) AS col1 FROM tab0 WHERE NOT - + col2 * + - col0 + + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL MIN ( ALL - 88 ) AS col1 FROM tab0 WHERE NOT - + col2 * + - col0 + + - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 81 + col0 + + col1 + - + ( - - col2 ) col2 FROM tab2 AS cor0
----
-3652
-5083
-5991

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 94 BETWEEN ( - 66 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + - 95 FROM tab2
----
-37
-55
-72

query II rowsort
SELECT + 56, col0 * - col1 AS col2 FROM tab0
----
56
-1215
56
-1827
56
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - COUNT( DISTINCT - + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7962
SELECT - COUNT ( DISTINCT - + col1 ) FROM tab0
----
-3

query I rowsort
SELECT ALL col1 - - + col2 AS col0 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 85 * + col2 AS col0 FROM tab0 AS cor0
----
3995
8415
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 - - - 40 col1 FROM tab0 AS cor0
----
-107
-107
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT - 0 + + 11 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) <= - col1 * - ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 0 + + 11 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <= - col1 * - ( + col1 )
----

query I rowsort
SELECT ALL col2 * + + 23 * - + col1 AS col0 FROM tab1
----
-30912
-6785
-73508

query I rowsort
SELECT col2 * - ( + + 41 ) + ( - col1 ) AS col0 FROM tab2
----
-1717
-2445
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT + ( + + COUNT( * ) ) * + COUNT( ALL + - 57 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + ( + + COUNT ( * ) ) * + COUNT ( ALL + - 57 ) AS col0 FROM tab0
----
9

query I rowsort
SELECT ( - + 0 ) * - 36 + - - col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + 78 * - col0 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col2, + col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7974
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + 70 = NULL
----

skipif mysql # not compatible
query III rowsort label-7974
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * + 70 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT - + 49 * MIN( DISTINCT + 1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - + 49 * MIN ( DISTINCT + 1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT DISTINCT COUNT( DISTINCT col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7977
SELECT DISTINCT COUNT ( DISTINCT col0 ) col2 FROM tab1
----
3

query I rowsort
SELECT - 7 * + 96 * 61 FROM tab2 cor0
----
-40992
-40992
-40992

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 4 - - 52 NOT BETWEEN + + col0 AND col1
----

query I rowsort
SELECT col2 * + + ( + 45 ) FROM tab1 AS cor0
----
2655
3060
4320

query II rowsort
SELECT - - col1 * - col2 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

query I rowsort
SELECT ( col2 ) + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7983
SELECT DISTINCT * FROM tab0 WHERE col1 + - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7983
SELECT DISTINCT * FROM tab0 WHERE col1 + - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT + COUNT( * ), + 66 AS col2 FROM tab1
----
3
66

skipif mysql # not compatible
query II rowsort label-7984
SELECT + COUNT ( * ), + 66 AS col2 FROM tab1
----
3
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 WHERE - - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT ALL CAST( + + col2 AS SIGNED ) + 52 FROM tab2
----
110
75
92

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL CAST ( + + col2 AS INTEGER ) + 52 FROM tab2
----
110
75
92

query I rowsort
SELECT DISTINCT + - 12 AS col2 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / - col0 + + 19 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - + COUNT( * ) * - COUNT( * ) * COUNT( * ) * 82 FROM tab1 AS cor0
----
2214

skipif mysql # not compatible
query I rowsort label-7989
SELECT - + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) * 82 FROM tab1 AS cor0
----
2214

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NOT ( ( col1 ) ) NOT BETWEEN - 18 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + + COUNT( * ) - + 45 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7991
SELECT + + COUNT ( * ) - + 45 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT SUM( - 88 ) * - COUNT( * ) FROM tab1, tab1 cor0
----
7128

skipif mysql # not compatible
query I rowsort label-7993
SELECT SUM ( - 88 ) * - COUNT ( * ) FROM tab1, tab1 cor0
----
7128

query I rowsort
SELECT DISTINCT col2 + - col0 - - + col1 * + col1 AS col1 FROM tab1
----
-1
2186
241

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - - COUNT( * ) + + COUNT( ALL + 43 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7995
SELECT - - COUNT ( * ) + + COUNT ( ALL + 43 ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 * + - col1 + 45 NOT BETWEEN + col2 + col2 * col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-7996
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 * + - col1 + 45 NOT BETWEEN + col2 + col2 * col2 AND NULL
----
3

query I rowsort
SELECT DISTINCT - + col0 - + col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT 5 * + + col1 FROM tab0 AS cor0
----
105
405
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT ALL 53 DIV + 26 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL 53 / + 26 AS col2 FROM tab1 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN - col1 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + 22 * - ( col0 ) + - 49 AS col1 FROM tab1 AS cor0
----
-15757
-9399
-94143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT DISTINCT - ( - CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT - ( - CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - 77 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8004
SELECT ALL - 55 DIV + col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL - 55 / + col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT ( - + 86 ) * - 58 FROM tab1
----
4988
4988
4988

query I rowsort
SELECT ALL ( - - col2 ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, 42 FROM tab1
----
59
42
68
42
96
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT SUM( DISTINCT col1 ) * COUNT( * ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT SUM ( DISTINCT col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
309

query I rowsort
SELECT ALL - ( col1 ) * - 74 * + 20 + + col0 AS col1 FROM tab0 AS cor0
----
119895
1577
31167

query II rowsort
SELECT DISTINCT + col2, + col0 AS col1 FROM tab1 AS cor0 WHERE + 30 IS NULL
----

query I rowsort
SELECT DISTINCT 88 * 71 AS col2 FROM tab1
----
6248

query III rowsort
SELECT * FROM tab2 WHERE NOT - 3 NOT BETWEEN NULL AND - + 38
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8014
SELECT DISTINCT - 85, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-85
3

skipif mysql # not compatible
query II rowsort label-8014
SELECT DISTINCT - 85, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-85
3

query I rowsort
SELECT ALL - + col0 * - col0 + + - col2 AS col1 FROM tab1 cor0
----
2505
7166
8213

query II rowsort
SELECT 0, col0 AS col0 FROM tab0 cor0
----
0
15
0
87
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT DISTINCT 58 DIV - - col1 FROM tab0 AS cor0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT 58 / - - col1 FROM tab0 AS cor0
----
0
2
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8018
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col1, - col0 * CAST( NULL AS SIGNED ) + 10 )
----

skipif mysql # not compatible
query III rowsort label-8018
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( col1, - col0 * CAST ( NULL AS INTEGER ) + 10 )
----

query I rowsort
SELECT - ( - + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE + + CAST( - - col0 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE + + CAST ( - - col0 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - - 49 * + MAX( - 47 ) + - 7 col2 FROM tab1 WHERE + + col2 * - col0 < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8021
SELECT - - 49 * + MAX ( - 47 ) + - 7 col2 FROM tab1 WHERE + + col2 * - col0 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 13 * col0 + - 19 AS col2 FROM tab1
----
1086
1164
644

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT 79 + - - 7 * - COUNT( * ) - 5 + + 63 * + SUM( col0 ) FROM tab1
----
14354

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT 79 + - - 7 * - COUNT ( * ) - 5 + + 63 * + SUM ( col0 ) FROM tab1
----
14354

query II rowsort
SELECT + col1 + + col1 AS col1, 45 * - col0 AS col2 FROM tab2
----
102
-2070
134
-3375
154
-2880

query I rowsort
SELECT + col0 + - - 44 AS col1 FROM tab0
----
131
141
59

query II rowsort
SELECT DISTINCT - col1 + col1 AS col2, col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT - + 91 AS col2 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - col2 * - + 80 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT + 31 * - col2 FROM tab1 WHERE NOT col2 - - col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8031
SELECT - COUNT( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT - COUNT ( CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL + 50 + 29 FROM tab0
----
79
79
79

query I rowsort
SELECT - 95 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8034
SELECT col1, - 34 * - CAST( + col0 AS SIGNED ) + + - col2 DIV + col0 AS col2, + col0 * 24 - col0 * - col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to d12c816e260e2f89f39717561d580188

skipif mysql # not compatible
query III rowsort label-8034
SELECT col1, - 34 * - CAST ( + col0 AS INTEGER ) + + - col2 / + col0 AS col2, + col0 * 24 - col0 * - col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to d12c816e260e2f89f39717561d580188

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT + COUNT( * ) * 38 * 28 + - COUNT( * ) col1 FROM tab1 AS cor0
----
3189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8035
SELECT + COUNT ( * ) * 38 * 28 + - COUNT ( * ) col1 FROM tab1 AS cor0
----
3189

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT - SUM( + col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8036
SELECT - SUM ( + col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT DISTINCT ( - 48 ) AS col2 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT + col0 * - col0 * col2 * col1 AS col1 FROM tab2
----
-12615680
-21858750
-2482068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT NULL <= - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8041
SELECT DISTINCT col1 / + - CAST( NULL AS DECIMAL ) + - col1 + ( + + col1 ) * 27 * - ( - 34 ) * - + 53 / - col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT col1 / + - CAST ( NULL AS REAL ) + - col1 + ( + + col1 ) * 27 * - ( - 34 ) * - + 53 / - col2 + + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * - + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT 33 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT ( + - COUNT( * ) ) + 17 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
8

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT ( + - COUNT ( * ) ) + 17 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT DISTINCT col1 / + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT col1 / + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 26 FROM tab1 AS cor0 WHERE NOT col0 * + 44 IS NULL
----
26
26
26

query I rowsort
SELECT + - col0 * + col1 + + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 80 * 92 AS col0 FROM tab2 cor0
----
7360
7360
7360

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 49 + + - col2 * - - 4 IS NULL
----

query I rowsort
SELECT - col2 * - ( - + 46 ) * + + 39 + + ( - col0 ) AS col2 FROM tab1 cor0
----
-105931
-122083
-172275

query I rowsort
SELECT + col1 * - 90 + 6 * + col2 FROM tab2 AS cor0
----
-4452
-5682
-6690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, ( - - col2 ) col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT COUNT( ALL - 33 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8054
SELECT COUNT ( ALL - 33 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT - 8, MIN( ALL - ( + 14 ) ) AS col1 FROM tab1
----
-8
-14

skipif mysql # not compatible
query II rowsort label-8055
SELECT - 8, MIN ( ALL - ( + 14 ) ) AS col1 FROM tab1
----
-8
-14

query I rowsort
SELECT DISTINCT - col1 * - col0 + + + 69 FROM tab2
----
2415
4997
5094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col2 FROM tab1
----
98
98
98

query I rowsort
SELECT ALL col0 * + col1 + + col0 + ( + 45 ) * + 49 * - 38 FROM tab2
----
-78690
-78798
-81398

query I rowsort
SELECT + 90 FROM tab2 WHERE - 70 BETWEEN ( - - ( - col2 ) ) * + 54 + + + col0 AND + col2
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT MIN( - 47 ) AS col0 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-8060
SELECT MIN ( - 47 ) AS col0 FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8061
SELECT + COUNT( * ) - + 85, - 24 AS col0 FROM tab0 AS cor0
----
-82
-24

skipif mysql # not compatible
query II rowsort label-8061
SELECT + COUNT ( * ) - + 85, - 24 AS col0 FROM tab0 AS cor0
----
-82
-24

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - + 51
----

query I rowsort
SELECT DISTINCT - 57 + - col0 + - 35 FROM tab0 AS cor0
----
-107
-179
-189

query I rowsort
SELECT + col1 - + col0 AS col0 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + SUM( - 54 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-486

skipif mysql # not compatible
query I rowsort label-8066
SELECT + SUM ( - 54 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-486

query I rowsort
SELECT DISTINCT - ( + 37 ) FROM tab2 AS cor0
----
-37

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab1 cor0 WHERE - 64 * + - col1 IS NOT NULL
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col1 * + col0 col0 FROM tab0 AS cor0 WHERE 56 * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + ( + - ( + col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8072
SELECT - COUNT( * ) AS col1, 56 FROM tab1 AS cor0 WHERE NOT - col0 * - + col0 <> + - 84
----
0
56

skipif mysql # not compatible
query II rowsort label-8072
SELECT - COUNT ( * ) AS col1, 56 FROM tab1 AS cor0 WHERE NOT - col0 * - + col0 <> + - 84
----
0
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * 1 <= + + col0 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 75 * + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT + MIN( - col0 ) * - - COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-8075
SELECT + MIN ( - col0 ) * - - COUNT ( * ) FROM tab0
----
-291

query I rowsort
SELECT - 48 * - col0 * + - 22 FROM tab1
----
-53856
-89760
-96096

query I rowsort
SELECT col1 * - 43 FROM tab2
----
-2193
-2881
-3311

query I rowsort
SELECT + col2 * + + 78 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT DISTINCT 67 * + + col0 AS col0 FROM tab1
----
3417
5695
6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT ALL CAST( + ( col1 ) AS SIGNED ) * + ( col1 ) FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL CAST ( + ( col1 ) AS INTEGER ) * + ( col1 ) FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT - COUNT( * ) * + 83 AS col1 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-8081
SELECT - COUNT ( * ) * + 83 AS col1 FROM tab1 AS cor0
----
-249

query I rowsort
SELECT ALL - - 70 AS col0 FROM tab2 cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - MAX( - - ( + col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8083
SELECT - MAX ( - - ( + col0 ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8084
SELECT ( col1 ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT ( col1 ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 57 ) * - 35 AS col0 FROM tab2
----
1995
1995
1995

query I rowsort
SELECT ALL 21 + col1 AS col2 FROM tab2
----
72
88
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8087
SELECT ALL CAST( NULL AS DECIMAL ) * 54 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL CAST ( NULL AS REAL ) * 54 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL - SUM( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 65 - col2 AS col1 FROM tab0
----
-34
18
55

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN + 48 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL + 41 + - COUNT( * ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL + 41 + - COUNT ( * ) FROM tab0
----
38

query I rowsort
SELECT - ( - 23 ) AS col1 FROM tab2
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab2 WHERE NOT + 78 * + ( + col2 ) IN ( 7 * - col0 )
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT - 37 FROM tab0 WHERE ( NULL ) NOT IN ( ( + 23 ) * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8094
SELECT - 37 FROM tab0 WHERE ( NULL ) NOT IN ( ( + 23 ) * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8095
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( 29 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8095
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( 29 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 82 * - 52 FROM tab2
----
-4264

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT + MIN( ALL col1 ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT + MIN ( ALL col1 ) AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
5

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT col0 / - col1 IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT - SUM( DISTINCT col1 ) + COUNT( * ) col1 FROM tab0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8100
SELECT - SUM ( DISTINCT col1 ) + COUNT ( * ) col1 FROM tab0
----
-100

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 18 IN ( - col2 * 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT - COUNT( DISTINCT + col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8102
SELECT - COUNT ( DISTINCT + col2 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 AS col1 FROM tab1 WHERE NOT col1 <= ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col1 AS col1 FROM tab0 WHERE ( col0 ) <= col2
----
100
128

query I rowsort
SELECT ALL col1 * + 86 AS col2 FROM tab2
----
4386
5762
6622

query III rowsort
SELECT * FROM tab0 WHERE + 31 * - col1 >= + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT 62 + + COUNT( * ) * - MAX( - 6 + - col2 ) AS col2 FROM tab1
----
257

skipif mysql # not compatible
query I rowsort label-8107
SELECT 62 + + COUNT ( * ) * - MAX ( - 6 + - col2 ) AS col2 FROM tab1
----
257

query I rowsort
SELECT 68 * col2 FROM tab0
----
3196
6732
680

query I rowsort
SELECT DISTINCT 28 + + col1 FROM tab1
----
33
42
75

query I rowsort
SELECT col1 + ( + 19 ) FROM tab0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT - COUNT( * ) FROM tab2 WHERE NOT col2 + - 61 IN ( + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-8111
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col2 + - 61 IN ( + col1 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8112
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8112
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 / + col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - 24 + - col1 )
----

query I rowsort
SELECT + 8 + ( + ( - col1 ) ) AS col0 FROM tab0
----
-13
-73
7

query I rowsort
SELECT ALL - col1 * - 11 FROM tab2
----
561
737
847

query III rowsort
SELECT * FROM tab0 WHERE + col0 = - col0 + col1
----

query I rowsort
SELECT ALL - 49 * - 39 FROM tab2 cor0
----
1911
1911
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT 27 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8118
SELECT 27 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 87 = ( - col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8120
SELECT * FROM tab1 WHERE NULL < ( 80 / - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8120
SELECT * FROM tab1 WHERE NULL < ( 80 / - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT 96 * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-864

skipif mysql # not compatible
query I rowsort label-8121
SELECT 96 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT + ( col1 ) DIV col0 col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8122
SELECT + ( col1 ) / col0 col0 FROM tab2
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 35 ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 18 - col1 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 + - col2 ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - 0 * + 74 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8128
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * ( 61 ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8128
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * ( 61 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT - COUNT( DISTINCT + 26 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT - COUNT ( DISTINCT + 26 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT MAX( + 90 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8130
SELECT MAX ( + 90 ) FROM tab1
----
90

query I rowsort
SELECT col1 * col2 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT - col2 * col0 + 45 AS col2 FROM tab0 WHERE NOT col1 * col2 >= ( - 82 * + col1 )
----

query I rowsort
SELECT 34 * + - col1 * - col2 AS col0 FROM tab2
----
104720
132124
39882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 WHERE ( - col1 ) BETWEEN col1 AND 41
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 98 AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 62 ) col2 FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT COUNT( * ) FROM tab2 WHERE NOT ( + 1 * col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( + 1 * col0 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + - col0 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - col0 + col0 + - ( col1 ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col2 + - col0 * - col1 * + 98 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col2 + - col0 * - col1 * + 98 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT DISTINCT + COUNT( - col1 ) - 79 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-79

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT + COUNT ( - col1 ) - 79 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-79

query I rowsort
SELECT ALL + + ( col1 ) * + 92 * + 80 FROM tab1 AS cor0
----
103040
345920
36800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT + COUNT( DISTINCT 33 ) + + + CAST( 16 AS SIGNED ) + - 66 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-8144
SELECT + COUNT ( DISTINCT 33 ) + + + CAST ( 16 AS INTEGER ) + - 66 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
215

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 / 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + + ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + + ( col1 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) * - - col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT - 69 * - AVG ( ALL + 33 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + - col2 - col2 * ( col2 * col0 ) ) AND 52 / 25 + - 60
----
NULL

query I rowsort
SELECT ALL + col1 + - 0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 91 / 26 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT ALL col2 * + + 15 AS col1 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - COUNT( * ) * 28 * 53 AS col0 FROM tab1 AS cor0
----
-4452

skipif mysql # not compatible
query I rowsort label-8152
SELECT - COUNT ( * ) * 28 * 53 AS col0 FROM tab1 AS cor0
----
-4452

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + 86 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT DISTINCT + 63 + + SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT + 63 + + SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-160

query I rowsort
SELECT - - col2 * + col2 + col2 AS col1 FROM tab2 WHERE - + 4 IS NOT NULL
----
1640
3422
552

query I rowsort
SELECT ALL - 11 + + - col1 AS col1 FROM tab0
----
-12
-32
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL COUNT( DISTINCT col2 ) col2 FROM tab0 WHERE - 3 - + - col1 NOT IN ( col0 + + 44 / - 27 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8157
SELECT ALL COUNT ( DISTINCT col2 ) col2 FROM tab0 WHERE - 3 - + - col1 NOT IN ( col0 + + 44 / - 27 )
----
3

query I rowsort
SELECT 87 AS col0 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT 49 + - 75 * + col2 AS col0 FROM tab1
----
-4376
-5051
-7151

query I rowsort
SELECT ALL col2 - 60 + - 83 AS col1 FROM tab0
----
-133
-44
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * col0 col2 FROM tab0 WHERE + col0 * col2 IS NULL AND NOT - col1 * col0 - - col2 IS NULL
----

query I rowsort
SELECT 92 - - 23 + - col1 AS col0 FROM tab0
----
114
34
94

query I rowsort
SELECT - 33 - 12 + - + col0 * 50 FROM tab1 AS cor0
----
-2595
-4295
-4595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT ALL - - 45 + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - - 45 + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT - + col1 DIV - - 57 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - + col1 / - - 57 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT ALL + col0 DIV + + col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + col0 / + + col2 FROM tab0 AS cor0
----
0
0
8

query I rowsort
SELECT 14 + - col2 FROM tab0 WHERE NOT - col1 NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query I rowsort
SELECT + 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT - MIN( ( + 60 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-60

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT - MIN ( ( + 60 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT DISTINCT COUNT( col1 ) FROM tab0 WHERE NOT ( col0 * + - col2 * + 14 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT COUNT ( col1 ) FROM tab0 WHERE NOT ( col0 * + - col2 * + 14 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT 79 * - 51 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-4029

query I rowsort
SELECT col2 * 41 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-104960
-178350
-43378

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT col0 IN ( - - 94 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT - MAX( + - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT - MAX ( + - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + COUNT( + + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + COUNT ( + + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col1 * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col1 * - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT - + 11 DIV + col1 FROM tab1 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT - + 11 / + col1 FROM tab1 AS cor0
----
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8180
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab0 AS cor0 WHERE 46 BETWEEN col1 AND col0
----
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + + - ( 36 ) + - col2 * - col1 / - 29 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( + - col0 ) col2 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8187
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
3

query II rowsort
SELECT DISTINCT + 57 AS col0, - col1 AS col1 FROM tab1
----
57
-14
57
-47
57
-5

query II rowsort
SELECT DISTINCT col1 * + 81 AS col0, col1 FROM tab0
----
1701
21
6561
81
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( NOT 74 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( NOT 74 IS NOT NULL )
----
-3

query I rowsort
SELECT ALL col0 * + 94 * + - col0 AS col2 FROM tab0
----
-21150
-711486
-884446

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL = 96 - - - ( + col1 ) + + col1 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL = 96 - - - ( + col1 ) + + col1 * - col1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 / - - col1 IS NOT NULL
----

query II rowsort
SELECT + col0, - 62 FROM tab0
----
15
-62
87
-62
97
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT COUNT( * ) FROM tab2 WHERE NOT + col2 + + col0 - col2 + - col2 * + 5 NOT BETWEEN NULL AND ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8195
SELECT COUNT ( * ) FROM tab2 WHERE NOT + col2 + + col0 - col2 + - col2 * + 5 NOT BETWEEN NULL AND ( + col2 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( col1 * - 98 )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT ALL - 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT + 92 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 5 * 26 AS col1, + col1 col0 FROM tab0 AS cor0
----
130
1
130
21
130
81

query II rowsort
SELECT + 40 * + + col1 AS col2, + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 55 AND + + col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 0 - - + col1 + + + col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT COUNT( * ) * CAST( - SUM( ALL - + 65 ) AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0
----
588

skipif mysql # not compatible
query I rowsort label-8204
SELECT COUNT ( * ) * CAST ( - SUM ( ALL - + 65 ) AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0
----
588

query I rowsort
SELECT 20 + - - col0 AS col1 FROM tab2
----
66
84
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8207
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8208
SELECT DISTINCT - col0 * - - 31 - - + CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8208
SELECT DISTINCT - col0 * - - 31 - - + CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col2 FROM tab1 WHERE + col1 < NULL
----

query II rowsort
SELECT ALL + - col1 AS col0, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT ALL col0 * + - 20 - + - 22 - + - col2 + + 64 FROM tab0 AS cor0
----
-1644
-167
-1755

query I rowsort
SELECT - col1 * - 9 AS col0 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + MIN( ALL + 21 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8213
SELECT + MIN ( ALL + 21 ) FROM tab1
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + col1 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - col1 + - col0, + 44 + + 8 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8215
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( - col1 + - col0, + 44 + + 8 )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 93 NOT BETWEEN NULL AND 25 OR NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT - COUNT( DISTINCT - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL - 61 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-61
-61
-61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 + 85 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 84 * col1 AS col1 FROM tab1
----
1176
3948
420

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - 6
----

query I rowsort
SELECT ALL - 22 + - + col1 FROM tab2
----
-73
-89
-99

query I rowsort
SELECT DISTINCT 51 * + 72 FROM tab1
----
3672

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 28 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8225
SELECT DISTINCT - + MIN( + - ( - col1 ) ) AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-8225
SELECT DISTINCT - + MIN ( + - ( - col1 ) ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT IN ( - col1, + col1 ) )
----

query I rowsort
SELECT col0 + + 69 FROM tab1
----
120
154
160

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT - ( + 84 ) + + col1 DIV + 72 FROM tab2 AS cor0
----
-83
-84
-84

skipif mysql # not compatible
query I rowsort label-8228
SELECT - ( + 84 ) + + col1 / + 72 FROM tab2 AS cor0
----
-83
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT - COUNT( * ) - - 11 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - COUNT ( * ) - - 11 FROM tab1 AS cor0
----
8

query II rowsort
SELECT DISTINCT - 70, + 39 AS col2 FROM tab2 AS cor0
----
-70
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT + - COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8231
SELECT + - COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT ALL col1 - + col1 DIV + col2 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL col1 - + col1 / + col2 FROM tab0 AS cor0
----
1
19
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 * 76 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8234
SELECT * FROM tab2 AS cor0 WHERE col0 + + - 59 * + 30 IN ( CAST( NULL AS SIGNED ) * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-8234
SELECT * FROM tab2 AS cor0 WHERE col0 + + - 59 * + 30 IN ( CAST ( NULL AS INTEGER ) * - + col0 )
----

query I rowsort
SELECT + 33 * - ( - + col2 ) AS col1 FROM tab0 AS cor0
----
1551
3267
330

query I rowsort
SELECT 8 * 47 * col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) NOT BETWEEN col1 AND - ( + 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8238
SELECT - col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8238
SELECT - col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

query II rowsort
SELECT DISTINCT - 8 + - 33 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
-41
10
-41
47
-41
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 * - col0 + 32 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * - - col2 / - col1 IS NULL
----

query I rowsort
SELECT ALL ( + 58 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 * + 93 + + col2 NOT BETWEEN - 59 AND ( - + ( - 99 ) ) )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT MAX( DISTINCT + - ( - col2 ) ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8244
SELECT MAX ( DISTINCT + - ( - col2 ) ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT col1 * 64 * + + 77 AS col2 FROM tab0
----
103488
399168
4928

query I rowsort
SELECT DISTINCT 69 * + 36 AS col0 FROM tab2
----
2484

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + + 96 <= + 17
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8248
SELECT + - SUM( DISTINCT - + CAST( NULL AS DECIMAL ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8248
SELECT + - SUM ( DISTINCT - + CAST ( NULL AS REAL ) ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NULL < 41
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NULL < 41
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 <> col2
----

query I rowsort
SELECT + 47 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + 96 * - - col0 AS col0 FROM tab0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT ALL 48, COUNT( * ) AS col1 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
48
0

skipif mysql # not compatible
query II rowsort label-8253
SELECT ALL 48, COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
48
0

query II rowsort
SELECT - + 20 AS col2, ( - col0 ) - 57 FROM tab1 AS cor0
----
-20
-108
-20
-142
-20
-148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT - col2 DIV + CAST( + 59 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT - col2 / + CAST ( + 59 AS INTEGER ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL - + MAX( - 93 ) FROM tab1 AS cor0 WHERE col0 >= col0
----
93

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - + MAX ( - 93 ) FROM tab1 AS cor0 WHERE col0 >= col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL + + SUM( ALL col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL + + SUM ( ALL col0 ) FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col0 col1 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT + ( + COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8260
SELECT DISTINCT + ( + COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col1 * - col2 + + + col2 - - 74
----

query I rowsort
SELECT + 27 * + 56 * 80 FROM tab1
----
120960
120960
120960

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - COUNT( DISTINCT + - col1 ) + + - COUNT( * ) + - 64 * - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - COUNT ( DISTINCT + - col1 ) + + - COUNT ( * ) + - 64 * - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1
----
183

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col0 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT - 56 + + COUNT( * ) AS col0 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT - 56 + + COUNT ( * ) AS col0 FROM tab0
----
-53

query III rowsort
SELECT * FROM tab1 WHERE + - col2 IN ( ( + col2 ) + col2 * - col2 + + 67 )
----

query I rowsort
SELECT col0 + + - col0 + + col2 AS col0 FROM tab0
----
10
47
99

query II rowsort
SELECT ALL - 55, + col0 * col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - 66 AND NULL
----

query II rowsort
SELECT + col0 + + 2 AS col1, ( - 39 ) AS col1 FROM tab1
----
53
-39
87
-39
93
-39

query II rowsort
SELECT + col1 + col0 AS col2, + 5 * + + col0 * col2 FROM tab2
----
141
12800
142
21750
97
5290

query II rowsort
SELECT - col1 + + col1 AS col1, 79 FROM tab2 AS cor0
----
0
79
0
79
0
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8272
SELECT * FROM tab2 cor0 WHERE CAST( - col0 AS SIGNED ) > - + 70 + + + 50
----

skipif mysql # not compatible
query III rowsort label-8272
SELECT * FROM tab2 cor0 WHERE CAST ( - col0 AS INTEGER ) > - + 70 + + + 50
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT 99 AS col0, + COUNT( * ) AS col1 FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-8273
SELECT 99 AS col0, + COUNT ( * ) AS col1 FROM tab0
----
99
3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 21 - col2 * + - col2 * - - 42 AS col0 FROM tab2
----
142506
22701
68040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT CAST( NULL AS SIGNED ) - 11 * COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8276
SELECT CAST ( NULL AS INTEGER ) - 11 * COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8277
SELECT col1 - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT col1 - - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
2300
4864
4950

query I rowsort
SELECT ALL + + col0 - - col2 * + - col2 + + col0 + + + col2 + col2 AS col0 FROM tab2 cor0
----
-1392
-3098
-391

query I rowsort
SELECT ALL - 20 - - 43 + - + col0 AS col0 FROM tab0 AS cor0
----
-64
-74
8

query I rowsort
SELECT col1 * - - col2 + 89 - col0 * - - col2 * 34 AS col1 FROM tab1 AS cor0
----
-165031
-170126
-207107

query I rowsort
SELECT DISTINCT + 22 FROM tab0 AS cor0 WHERE NULL IS NULL
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8284
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8284
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8285
SELECT - CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8285
SELECT - CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - MAX( - 92 ) AS col0 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - MAX ( - 92 ) AS col0 FROM tab0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT - 98 DIV col0 * - 90 FROM tab2
----
180
90
90

skipif mysql # not compatible
query I rowsort label-8287
SELECT - 98 / col0 * - 90 FROM tab2
----
180
90
90

query III rowsort
SELECT ALL * FROM tab1 WHERE + 55 * 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT - COUNT( + col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8289
SELECT - COUNT ( + col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT + col1 DIV - + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT + col1 / - + col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT - COUNT( - + 18 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8291
SELECT - COUNT ( - + 18 ) FROM tab2
----
-3

query I rowsort
SELECT - - ( + - ( + + 45 ) ) FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL + 37 * - + col0 FROM tab2 AS cor0
----
-1702
-2368
-2775

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE - col0 * + col0 + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + ( col1 ) * - col0 * + + 94 FROM tab1
----
-39950
-402038
-67116

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT ALL + - MAX( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT ALL + - MAX ( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - 23 * + 85 + col0 AS col0 FROM tab0 AS cor0
----
-1858
-1868
-1940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT + col0 + + 96 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + col0 + + 96 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + - col2 + col0 + 65 * - 5 * 68 - - col1 AS col0 FROM tab1 AS cor0
----
-21983
-22064
-22117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT col2 + col2 * + col0 * - col1 * - col1 * + col0 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT col2 + col2 * + col0 * - col1 * - col1 * + col0 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT - - CAST( NULL AS SIGNED ) + col1 + - col0 + + col0 + - 4 * - 49 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT - - CAST ( NULL AS INTEGER ) + col1 + - col0 + + col0 + - 4 * - 49 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 70 + - + col0 FROM tab2
----
-5
24
6

query I rowsort
SELECT ALL 92 + + 60 FROM tab2 WHERE - + col0 = ( 61 )
----

query I rowsort
SELECT ALL + col1 * + col1 + 28 AS col1 FROM tab2
----
2629
4517
5957

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - col0 IN ( col0, 98, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL + COUNT( * ) + - SUM( - col0 ) AS col0 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + COUNT ( * ) + - SUM ( - col0 ) AS col0 FROM tab1
----
230

query II rowsort
SELECT + col2 AS col0, 3 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT ALL + col1 / CAST( + col0 AS SIGNED ) AS col2 FROM tab1 WHERE ( NOT + col0 * + col1 * + - col1 * + col1 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + col1 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 WHERE ( NOT + col0 * + col1 * + - col1 * + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 WHERE NOT - 33 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 33 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT ALL CAST( col1 AS SIGNED ) - - 54 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1242
2160
3132

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL CAST ( col1 AS INTEGER ) - - 54 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1242
2160
3132

query I rowsort
SELECT ALL col2 * - col0 + - col1 * 20 FROM tab0 AS cor0
----
-1290
-2325
-9623

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + 74 < - 31 * col1
----

query I rowsort
SELECT 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT ALL col2 + + - CAST( NULL AS SIGNED ) + + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL col2 + + - CAST ( NULL AS INTEGER ) + + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + COUNT( * ) - - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL COUNT( * ) - - - 18 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL COUNT ( * ) - - - 18 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 <> - 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - ( + col0 ), 0 AS col2 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col1 < NULL
----

query I rowsort
SELECT ALL col1 - col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - - 48 AS col0 FROM tab1 AS cor0
----
2256
240
672

query I rowsort
SELECT ALL - - col0 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + + 61 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + + 61 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE NOT ( col2 + - col2 + - + col2 + - col1 + + + col1 * - col0 <= col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8325
SELECT DISTINCT - ( - CAST( - - col1 AS DECIMAL ) ) AS col2 FROM tab2 WHERE NOT + ( + col0 ) * CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT - ( - CAST ( - - col1 AS REAL ) ) AS col2 FROM tab2 WHERE NOT + ( + col0 ) * CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT 66 AS col0, MAX( + col0 ) AS col2 FROM tab2
----
66
75

skipif mysql # not compatible
query II rowsort label-8326
SELECT 66 AS col0, MAX ( + col0 ) AS col2 FROM tab2
----
66
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - 90 * 78 + - ( 59 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT + COUNT( + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8328
SELECT + COUNT ( + col2 ) FROM tab1
----
3

query II rowsort
SELECT + col0, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + ( - col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col0 + + + col1 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL + - MIN( ALL - 33 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + - MIN ( ALL - 33 ) FROM tab0 AS cor0
----
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - - col1 - 75 + col1 * + + col0 AND 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN 61 AND + - col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE ( NOT ( ( NULL ) = NULL ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NOT + + 71 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query II rowsort
SELECT DISTINCT - 9, + col1 * + + col2 - - - col1 AS col2 FROM tab1
----
-9
1330
-9
290
-9
3149

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL < ( NULL ) )
----

query II rowsort
SELECT DISTINCT + col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col1 * - + col1 col1 FROM tab0 AS cor0
----
1
-1
21
-441
81
-6561

query II rowsort
SELECT ( col0 ) AS col1, + col0 * col1 AS col0 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT ALL + MIN( + - 16 ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + MIN ( + - 16 ) FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - - COUNT( * ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8343
SELECT - - COUNT ( * ) AS col2 FROM tab2 WHERE + col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8344
SELECT col0 + - CAST( NULL AS SIGNED ) col2, - 95 AS col1 FROM tab2
----
NULL
-95
NULL
-95
NULL
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8344
SELECT col0 + - CAST ( NULL AS INTEGER ) col2, - 95 AS col1 FROM tab2
----
NULL
-95
NULL
-95
NULL
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col1, 99 col2 FROM tab0
----
-100
99
-128
99
-31
99

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - col0 + + col1 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col2 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - ( + - col2 ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + ( 27 ) AS col1 FROM tab0
----
27
27
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT col2 DIV - - 47 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8350
SELECT col2 / - - 47 AS col1 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8351
SELECT * FROM tab0 WHERE NOT + - CAST( + col0 AS SIGNED ) <= - + col1
----
15
81
47

skipif mysql # not compatible
query III rowsort label-8351
SELECT * FROM tab0 WHERE NOT + - CAST ( + col0 AS INTEGER ) <= - + col1
----
15
81
47

query I rowsort
SELECT DISTINCT - col0 * + + 38 FROM tab2
----
-1748
-2432
-2850

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 63 ) < 59 + + col2 + + + col2
----

query I rowsort
SELECT ALL - - 18 * + col1 + 95 * - 12 FROM tab0 AS cor0
----
-1122
-762
318

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT - COUNT( * ) * - - 16 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8355
SELECT - COUNT ( * ) * - - 16 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT - - 88, MIN( col0 ) AS col2 FROM tab2 AS cor0
----
88
46

skipif mysql # not compatible
query II rowsort label-8356
SELECT - - 88, MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
88
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL - COUNT( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - COUNT ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + 99 col1 FROM tab0 AS cor0
----
100
120
180

query I rowsort
SELECT DISTINCT ( - - col2 ) + - - 14 FROM tab0 cor0 WHERE NOT + col2 IN ( + col1, 72, + col0 * 9 + + col0, + - ( - col0 ) )
----
113
24
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL - MAX( DISTINCT + col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - MAX ( DISTINCT + col0 ) AS col2 FROM tab0 cor0
----
-97

query I rowsort
SELECT - col1 + 6 FROM tab0 AS cor0
----
-15
-75
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT 78 + - 53 + + - CAST( - - CAST( - 32 AS SIGNED ) AS SIGNED ) DIV - ( col1 ) AS col0 FROM tab0 AS cor0
----
-7
24
25

skipif mysql # not compatible
query I rowsort label-8362
SELECT 78 + - 53 + + - CAST ( - - CAST ( - 32 AS INTEGER ) AS INTEGER ) / - ( col1 ) AS col0 FROM tab0 AS cor0
----
-7
24
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT - COUNT( 80 ) * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - COUNT ( 80 ) * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0 * col1 + + + ( - - 39 ), col1, - - col2 + + ( 47 ) )
----

query I rowsort
SELECT DISTINCT + col1 + + - col1 - col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8366
SELECT * FROM tab0 WHERE + CAST( - 15 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8366
SELECT * FROM tab0 WHERE + CAST ( - 15 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT - COUNT( * ) * + COUNT( ALL - col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT - COUNT ( * ) * + COUNT ( ALL - col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT - MAX( + col0 ) + - ( - COUNT( * ) ) + + 99 col0 FROM tab0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8368
SELECT DISTINCT - MAX ( + col0 ) + - ( - COUNT ( * ) ) + + 99 col0 FROM tab0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <= 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT 65 + ( + COUNT( DISTINCT + 93 ) ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT 65 + ( + COUNT ( DISTINCT + 93 ) ) FROM tab0
----
66

query I rowsort
SELECT - 83 + + - col1 AS col1 FROM tab2 AS cor0
----
-134
-150
-160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8372
SELECT CAST( - 21 AS SIGNED ), + col0 FROM tab0
----
-21
15
-21
87
-21
97

skipif mysql # not compatible
query II rowsort label-8372
SELECT CAST ( - 21 AS INTEGER ), + col0 FROM tab0
----
-21
15
-21
87
-21
97

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT + 29 * - col2 + + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1348
-203
-2774

skipif mysql # not compatible
query I rowsort label-8374
SELECT + 29 * - col2 + + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1348
-203
-2774

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT MAX( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT MAX ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL col1 * - + ( + col1 ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT DISTINCT + col1 DIV 68 * - - col2 * col0 AS col2 FROM tab0 AS cor0
----
0
705

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + col1 / 68 * - - col2 * col0 AS col2 FROM tab0 AS cor0
----
0
705

query I rowsort
SELECT ALL 22 AS col1 FROM tab0 cor0
----
22
22
22

query II rowsort
SELECT - col2, - col1 AS col0 FROM tab0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT + COUNT( * ) * 77 AS col0 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + COUNT ( * ) * 77 AS col0 FROM tab0
----
231

query I rowsort
SELECT + 8 * 91 AS col2 FROM tab0
----
728
728
728

query I rowsort
SELECT ALL 56 * + col2 AS col1 FROM tab2
----
1288
2240
3248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8384
SELECT ALL + col0 * + + CAST( - col1 AS SIGNED ) AS col1, 4 FROM tab2
----
-2346
4
-4928
4
-5025
4

skipif mysql # not compatible
query II rowsort label-8384
SELECT ALL + col0 * + + CAST ( - col1 AS INTEGER ) AS col1, 4 FROM tab2
----
-2346
4
-4928
4
-5025
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND col0 / + col1
----

skipif mysql # not compatible
query I rowsort label-8385
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND col0 / + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT 1 DIV col2 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT 1 / col2 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT + 95 DIV 7 * - col0 * + 12 FROM tab2 cor0
----
-11700
-7176
-9984

skipif mysql # not compatible
query I rowsort label-8387
SELECT + 95 / 7 * - col0 * + 12 FROM tab2 cor0
----
-11700
-7176
-9984

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL + ( - - ( - - ( + + COUNT( * ) ) ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + ( - - ( - - ( + + COUNT ( * ) ) ) ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( col0 ), col2 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 <> - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT CAST( + - SUM( DISTINCT + col2 ) AS SIGNED ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8394
SELECT CAST ( + - SUM ( DISTINCT + col2 ) AS INTEGER ) AS col2 FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - + - col2 + - ( - - 56 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT - ( CAST( + 55 AS SIGNED ) ) FROM tab0 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-8396
SELECT - ( CAST ( + 55 AS INTEGER ) ) FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8397
SELECT COUNT( * ) AS col0, 38 * + + COUNT( * ) - + + COUNT( * ) FROM tab2 AS cor0 WHERE CAST( + 91 AS SIGNED ) IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-8397
SELECT COUNT ( * ) AS col0, 38 * + + COUNT ( * ) - + + COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( + 91 AS INTEGER ) IS NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8398
SELECT DISTINCT + CAST( 2 AS SIGNED ) AS col2, col0 * col1 FROM tab1 AS cor0
----
2
425
2
4277
2
714

skipif mysql # not compatible
query II rowsort label-8398
SELECT DISTINCT + CAST ( 2 AS INTEGER ) AS col2, col0 * col1 FROM tab1 AS cor0
----
2
425
2
4277
2
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col2 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - + 2 FROM tab2 cor0
----
-2

query I rowsort
SELECT - col1 + + + 50 + - 91 AS col1 FROM tab1 AS cor0
----
-46
-55
-88

query II rowsort
SELECT DISTINCT - 11 + + ( col0 ), + col0 * col1 AS col2 FROM tab0
----
4
1215
76
1827
86
97

query I rowsort
SELECT + col1 + - 44 AS col1 FROM tab0
----
-23
-43
37

query I rowsort
SELECT ALL - col0 + - col2 + - col2 + - col2 + + col1 * + col0 FROM tab0
----
-297
1059
1710

query II rowsort
SELECT 54 + - - col1 * col0, col1 AS col0 FROM tab2
----
2400
51
4982
77
5079
67

query I rowsort
SELECT DISTINCT - col2 * + - 66 + - + col0 AS col0 FROM tab2
----
1472
2576
3753

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ( + COUNT( * ) ) + 6 col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8407
SELECT ( + COUNT ( * ) ) + 6 col1 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 - + col2 - 13 col0 FROM tab0
----
-38
14
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT + COUNT( * ) * + + 11 AS col2 FROM tab2, tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8409
SELECT + COUNT ( * ) * + + 11 AS col2 FROM tab2, tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT col0 - + 81 + - col2 FROM tab2 AS cor0
----
-57
-58
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8411
SELECT * FROM tab0 AS cor0 WHERE + 73 + + CAST( - + col1 AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8411
SELECT * FROM tab0 AS cor0 WHERE + 73 + + CAST ( - + col1 AS INTEGER ) + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 14 * col0 + - 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 59 col1 FROM tab1 cor0
----
2773
295
826

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - 16 * + COUNT( * ) * - - 94 FROM tab0 AS cor0
----
-4512

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - 16 * + COUNT ( * ) * - - 94 FROM tab0 AS cor0
----
-4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col0 col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + COUNT( * ) + + - ( ( + COUNT( * ) ) ) FROM tab2 AS cor0 WHERE NOT col0 * - 78 * + + ( 13 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8416
SELECT + COUNT ( * ) + + - ( ( + COUNT ( * ) ) ) FROM tab2 AS cor0 WHERE NOT col0 * - 78 * + + ( 13 ) IS NULL
----
0

query II rowsort
SELECT ALL + col1 AS col2, - col0 * + 87 FROM tab1 AS cor0
----
14
-4437
47
-7917
5
-7395

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT DISTINCT COUNT( * ) AS col2, - MIN( + col1 ) FROM tab2 AS cor0
----
3
-51

skipif mysql # not compatible
query II rowsort label-8418
SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( + col1 ) FROM tab2 AS cor0
----
3
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab0
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT ALL + COUNT( col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL + COUNT ( col1 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col2 FROM tab0
----
-90
-90
-90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 5 + 47 <= NULL
----

query I rowsort
SELECT ALL - col1 * - col2 * - - col0 AS col2 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT DISTINCT + col2, + 26 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 - + - col2 ) NOT BETWEEN NULL AND - col2
----
15
81
47
97
1
99

query I rowsort
SELECT + + col1 * - 31 - - col0 AS col1 FROM tab2 AS cor0
----
-1535
-2002
-2323

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8428
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / + CAST( NULL AS SIGNED ) + - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8428
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / + CAST ( NULL AS INTEGER ) + - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT - + COUNT( * ) * + MAX( col0 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - + COUNT ( * ) * + MAX ( col0 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT + MAX( ALL + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT + MAX ( ALL + col1 ) AS col2 FROM tab1
----
47

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 18 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 56 + + 3 col2 FROM tab0
----
4875
5435
843

query I rowsort
SELECT DISTINCT + 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

query I rowsort
SELECT + 32 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL 8 + - MIN( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL 8 + - MIN ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT - col2 - - 25 FROM tab0 AS cor0
----
-22
-74
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + 49 AS col2 FROM tab2 AS cor0
----
46
49
64
49
75
49

query I rowsort
SELECT ALL + 15 * - - col1 - col2 - + 15 AS col0 FROM tab2 AS cor0
----
1100
727
932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 46 AS col1, + 76 col1 FROM tab1 AS cor0
----
46
76
46
76
46
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT DISTINCT + ( COUNT( * ) ) DIV 9 + 91 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT + ( COUNT ( * ) ) / 9 + 91 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL 75 * col2 FROM tab0 AS cor0
----
3525
7425
750

query I rowsort
SELECT DISTINCT + col1 * + 58 * + col0 AS col2 FROM tab2
----
136068
285824
291450

query I rowsort
SELECT 23 - + - col0 AS col1 FROM tab0
----
110
120
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8444
SELECT ALL + 13 + + ( - COUNT( + col1 ) ) col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
10
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8444
SELECT ALL + 13 + + ( - COUNT ( + col1 ) ) col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 WHERE NULL BETWEEN + col1 * - 60 AND NULL AND ( NOT + + col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 WHERE NULL BETWEEN + col1 * - 60 AND NULL AND ( NOT + + col2 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 + 81 AS col1 FROM tab2
----
104
121
139

query II rowsort
SELECT DISTINCT + col2 - - + 8, col2 AS col0 FROM tab1
----
104
96
67
59
76
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8448
SELECT + 58 DIV + + 10, + col2 FROM tab0 AS cor0
----
5
10
5
47
5
99

skipif mysql # not compatible
query II rowsort label-8448
SELECT + 58 / + + 10, + col2 FROM tab0 AS cor0
----
5
10
5
47
5
99

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col2 + ( + col2 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > - col2
----

query I rowsort
SELECT + + ( - 87 ) * col1 AS col1 FROM tab0 AS cor0
----
-1827
-7047
-87

query I rowsort
SELECT DISTINCT col0 * - ( 90 ) + - col1 + - - col0 * - - col1 AS col1 FROM tab0 WHERE NOT - - col2 * + + 67 / + 6 + + - 62 + - + col0 >= 23
----
-6024

query I rowsort
SELECT DISTINCT + 88 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - + MIN( DISTINCT - 77 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8454
SELECT - + MIN ( DISTINCT - 77 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8455
SELECT - col1 / - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT - col1 / - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 4 FROM tab1 cor0 WHERE NULL BETWEEN col0 * - col0 AND + col0
----

query II rowsort
SELECT ALL + 14, + col1 FROM tab2 AS cor0
----
14
51
14
67
14
77

query II rowsort
SELECT + + col1 AS col0, 97 - - 62 * - col0 + + + col0 AS col1 FROM tab0 cor0
----
1
-5820
21
-5210
81
-818

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT MIN( - 97 ) col2 FROM tab2
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8460
SELECT MIN ( - 97 ) col2 FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ( + MAX( + col0 ) ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8461
SELECT ( + MAX ( + col0 ) ) AS col2 FROM tab1
----
91

query II rowsort
SELECT ALL + 46 AS col0, 84 * + ( + 71 ) FROM tab2 WHERE ( NOT NULL <= NULL )
----

query I rowsort
SELECT 86 * + 47 FROM tab1
----
4042
4042
4042

query I rowsort
SELECT col1 + + col0 + - + col2 FROM tab0
----
-1
49
98

query II rowsort
SELECT ALL col2, 74 AS col2 FROM tab0
----
10
74
47
74
99
74

query I rowsort
SELECT - ( col1 ) + - + 7 FROM tab2
----
-58
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT - MIN( - + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT - MIN ( - + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT col0 + + col0 * - 59 - + 14 - 93 * ( + + col0 ) * col0 FROM tab1 AS cor0
----
-244865
-676869
-775425

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 - 78 + + 46 AS col1 FROM tab2 AS cor0
----
14
32
43

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT - col0 * - + col1 * + col1 * - 79 AS col0 FROM tab1 AS cor0 WHERE NULL < ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT + COUNT( ALL - col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + COUNT ( ALL - col1 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8474
SELECT * FROM tab1 AS cor0 WHERE + ( 68 ) * + col2 * - + 93 + - 29 < + col0 / + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8474
SELECT * FROM tab1 AS cor0 WHERE + ( 68 ) * + col2 * - + 93 + - 29 < + col0 / + CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col1 ) * + - 59 * - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 + - col1 IS NULL )
----
-11564
-130331
-1475

query I rowsort
SELECT + - 49 - + + col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + col1 + - + col2 + - - 32 col0, col2 * - col0 AS col2 FROM tab2
----
2355
-1058
4920
-2560
4999
-4350

query I rowsort
SELECT DISTINCT col2 * - 52 + - 11 + + 41 FROM tab1
----
-3038
-3506
-4962

query II rowsort
SELECT ALL col0, 90 + + col0 - - col1 AS col1 FROM tab2
----
46
187
64
231
75
232

query II rowsort
SELECT - col2 * - col1 * - 70, col2 * - 7 * - 61 AS col1 FROM tab2
----
-215600
17080
-272020
24766
-82110
9821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT + col0 / - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - ( + - col2 ) * - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT + col0 / - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - ( + - col2 ) * - col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL - SUM( ALL - - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - SUM ( ALL - - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT + - col2 * - 25 FROM tab1 AS cor0
----
1475
1700
2400

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT - COUNT( * ) * - + SUM( ALL + 53 ) AS col0 FROM tab2 AS cor0
----
477

skipif mysql # not compatible
query I rowsort label-8488
SELECT - COUNT ( * ) * - + SUM ( ALL + 53 ) AS col0 FROM tab2 AS cor0
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) + 33 * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 33 * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND + 55 / 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT 28 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + 1 AND + CAST( - + col0 AS SIGNED )
----
28
28
28

skipif mysql # not compatible
query I rowsort label-8491
SELECT 28 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + 1 AND + CAST ( - + col0 AS INTEGER )
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT 39 + - - COUNT( * ) FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-8492
SELECT 39 + - - COUNT ( * ) FROM tab2 cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8493
SELECT + 39 + col0 - - - col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
102
114
84

skipif mysql # not compatible
query I rowsort label-8493
SELECT + 39 + col0 - - - col1 / + col0 AS col0 FROM tab2 AS cor0
----
102
114
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + - MAX( DISTINCT - + col0 ) + + 37 AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8494
SELECT + - MAX ( DISTINCT - + col0 ) + + 37 AS col0 FROM tab1 AS cor0
----
88

query II rowsort
SELECT - col2 + + 41 AS col2, - col0 FROM tab2 AS cor0
----
-17
-75
1
-64
18
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT ALL + col0 + - - col2 + + + col0 - - + col1 * - ( + col0 ) DIV col0 FROM tab1
----
184
203
224

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + col0 + - - col2 + + + col0 - - + col1 * - ( + col0 ) / col0 FROM tab1
----
184
203
224

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT - ( - + COUNT( * ) ) col0 FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8497
SELECT DISTINCT - ( - + COUNT ( * ) ) col0 FROM tab1 WHERE - col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT - 17, - 51 AS col2 FROM tab1
----
-17
-51

query I rowsort
SELECT ALL col2 + + - ( + - col0 ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT DISTINCT - 65 AS col1, + COUNT( ALL - + 28 ) FROM tab2
----
-65
3

skipif mysql # not compatible
query II rowsort label-8500
SELECT DISTINCT - 65 AS col1, + COUNT ( ALL - + 28 ) FROM tab2
----
-65
3

query III rowsort
SELECT * FROM tab0 WHERE 8 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + col2 * 48
----

query I rowsort
SELECT DISTINCT + + col2 * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + + 5 * + col0 + - col2 * + col2 * - - col1 + 94 AS col0 FROM tab0 AS cor0
----
-1571
-178760
-9222

query II rowsort
SELECT 27, col2 FROM tab2
----
27
23
27
40
27
58

query II rowsort
SELECT 78, + col1 AS col0 FROM tab0 AS cor0
----
78
1
78
21
78
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL - - COUNT( * ) - + - 25 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - - COUNT ( * ) - + - 25 FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT - - col0 * - + col2 - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

query I rowsort
SELECT - ( - 47 ) AS col1 FROM tab2 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT + col0 FROM tab1 AS cor0 WHERE col1 * - CAST( NULL AS SIGNED ) * - 69 - - - 99 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8510
SELECT + col0 FROM tab1 AS cor0 WHERE col1 * - CAST ( NULL AS INTEGER ) * - 69 - - - 99 IS NULL
----
51
85
91

query I rowsort
SELECT ALL + col2 * col2 * + col0 FROM tab2 AS cor0
----
102400
24334
252300

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + 23 AS col0 FROM tab0 WHERE NOT - 84 NOT BETWEEN + - 35 AND + 61 * - col0 - - ( 63 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 45 IS NOT NULL
----

query II rowsort
SELECT + col2 * - col0, 24 AS col1 FROM tab2
----
-1058
24
-2560
24
-4350
24

query II rowsort
SELECT DISTINCT + col2 * - col1 AS col1, - col2 FROM tab1
----
-1344
-96
-295
-59
-3196
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + + col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 * - col0 AS col0, + col2 col0 FROM tab0 AS cor0
----
-225
47
-7569
10
-9409
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + MIN( DISTINCT - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8520
SELECT + MIN ( DISTINCT - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-8521
SELECT DISTINCT - - col0 AS col1, col0 DIV col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-8521
SELECT DISTINCT - - col0 AS col1, col0 / col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
0
85
1
91
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT - 41 DIV + 60 * + 57 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 41 / + 60 * + 57 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( + - 39 ) * 66 AS col2 FROM tab0 AS cor0
----
-2574
-2574
-2574

query I rowsort
SELECT - - col0 * - col0 AS col2 FROM tab2 cor0
----
-2116
-4096
-5625

query II rowsort
SELECT + col1 AS col2, 42 FROM tab2 AS cor0
----
51
42
67
42
77
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE col0 * - + 39 + + col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - COUNT( + - col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8528
SELECT - COUNT ( + - col1 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL - col2 + - col0 + col0 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 + + 17 FROM tab2
----
63
81
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT ALL + col1 DIV col0 + - col0 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + col1 / col0 + - col0 AS col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col1 ) col0 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-8533
SELECT col1 + - - col2, - col1 DIV + 39 AS col0 FROM tab2
----
117
-1
125
-1
74
-1

skipif mysql # not compatible
query II rowsort label-8533
SELECT col1 + - - col2, - col1 / + 39 AS col0 FROM tab2
----
117
-1
125
-1
74
-1

query I rowsort
SELECT + 71 + + - col2 * + 5 AS col1 FROM tab0 AS cor0
----
-164
-424
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT DISTINCT - 75 + - MAX( - ( + col2 ) ) AS col0 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - 75 + - MAX ( - ( + col2 ) ) AS col0 FROM tab0
----
-65

query I rowsort
SELECT ALL 91 * - 77 * + col2 + col0 FROM tab2
----
-161115
-280216
-406331

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( ( NOT ( + + col1 ) * + - 84 NOT BETWEEN NULL AND NULL ) ) )
----

query I rowsort
SELECT ALL 30 AS col1 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 * - col1 FROM tab2 AS cor0
----
1428
2849
603

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab1 cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT - ( SUM( DISTINCT - + col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8542
SELECT - ( SUM ( DISTINCT - + col2 ) ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL + - SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + - SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT - col1 DIV + + ( - col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8545
SELECT - col1 / + + ( - col2 ) FROM tab2
----
1
1
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 47 - - + ( + col1 ) IS NOT NULL
----

query II rowsort
SELECT 59 * - - 73 AS col1, col0 AS col0 FROM tab1
----
4307
51
4307
85
4307
91

query I rowsort
SELECT ALL + ( - - 56 ) AS col2 FROM tab0
----
56
56
56

query II rowsort
SELECT ALL 89 * 17 AS col1, 94 FROM tab2
----
1513
94
1513
94
1513
94

query I rowsort
SELECT ALL + 69 * - ( col0 ) FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8551
SELECT DISTINCT MIN( + col1 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT MIN ( + col1 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8553
SELECT DISTINCT 53 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-8553
SELECT DISTINCT 53 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 28
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL + + ( 31 ) * - CAST( NULL AS SIGNED ) + 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + + ( 31 ) * - CAST ( NULL AS INTEGER ) + 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + col1 + + - col0 AS col2 FROM tab1 AS cor0
----
-112
-133
-139

query I rowsort
SELECT ALL + 18 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
18
18
18

query I rowsort
SELECT ALL 95 * + 5 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8559
SELECT - + col1 * - + ( + 19 ) / + CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT - + col1 * - + ( + 19 ) / + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 33 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 29, - col0 * - col0 + + 45 AS col0 FROM tab2 WHERE + + 85 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * 58 + col2 NOT BETWEEN - - 77 * + col2 AND - ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + + col2 + - col2 * + col1 + col0 AS col0 FROM tab0
----
-101
-333
-7599

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8564
SELECT ALL - col2 - ( - - col2 ) FROM tab0 WHERE + 50 - - ( + CAST( NULL AS DECIMAL ) ) * col2 <= 47
----

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - col2 - ( - - col2 ) FROM tab0 WHERE + 50 - - ( + CAST ( NULL AS REAL ) ) * col2 <= 47
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 * + 64 * + col1 - + + col0 IS NULL
----

query I rowsort
SELECT 18 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 50 NOT IN ( 68 + + col2 * - 42 )
----

query I rowsort
SELECT 8 * col1 FROM tab2
----
408
536
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT ALL - CAST( MIN( DISTINCT 10 ) AS SIGNED ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - CAST ( MIN ( DISTINCT 10 ) AS INTEGER ) AS col0 FROM tab2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT ALL - col1 + + CAST( + 90 + - CAST( NULL AS SIGNED ) AS SIGNED ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - col1 + + CAST ( + 90 + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT 34 * 72 AS col1 FROM tab0 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8571
SELECT 34 * 72 AS col1 FROM tab0 WHERE NULL > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 - - 53 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col0 * - col1 FROM tab0 WHERE ( col0 ) < NULL
----

query I rowsort
SELECT DISTINCT + col1 - + 2 * col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT ALL SUM( 99 ) FROM tab2 WHERE NULL < ( - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL SUM ( 99 ) FROM tab2 WHERE NULL < ( - 12 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8576
SELECT DISTINCT * FROM tab0 WHERE - CAST( - ( - 92 ) AS SIGNED ) * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8576
SELECT DISTINCT * FROM tab0 WHERE - CAST ( - ( - 92 ) AS INTEGER ) * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + 80 col0 FROM tab1
----
139
148
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT DISTINCT 74 AS col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT 74 AS col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8579
SELECT - CAST( 83 AS SIGNED ) + + col0 AS col1 FROM tab0
----
-68
14
4

skipif mysql # not compatible
query I rowsort label-8579
SELECT - CAST ( 83 AS INTEGER ) + + col0 AS col1 FROM tab0
----
-68
14
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8580
SELECT * FROM tab2 WHERE - 61 * CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8580
SELECT * FROM tab2 WHERE - 61 * CAST ( col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8581
SELECT ALL - 31 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - 31 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col2 FROM tab0 WHERE + 23 + - col1 / - 64 IN ( 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT 90 DIV 25 + + 56 * + ( col0 ) FROM tab2
----
2579
3587
4203

skipif mysql # not compatible
query I rowsort label-8583
SELECT 90 / 25 + + 56 * + ( col0 ) FROM tab2
----
2579
3587
4203

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 5 ) < ( 18 + col2 )
----

query I rowsort
SELECT ALL 2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8587
SELECT DISTINCT - MIN( ALL + CAST( - CAST( 45 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - MIN ( ALL + CAST ( - CAST ( 45 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
45

query I rowsort
SELECT - 95 + ( + col2 + - col0 ) FROM tab1
----
-118
-121
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - SUM( ALL - col2 ) * - 69 AS col2 FROM tab1 cor0 WHERE 83 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - SUM ( ALL - col2 ) * - 69 AS col2 FROM tab1 cor0 WHERE 83 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8590
SELECT + 19 DIV + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8590
SELECT + 19 / + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL ( - 13 ) + - col2 FROM tab2 cor0
----
-36
-53
-71

query I rowsort
SELECT ALL 45 AS col1 FROM tab1 cor0 WHERE + 93 + 89 BETWEEN ( col1 ) AND ( + col0 - - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 55 + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 16 / - col1 + - ( col1 ) * - col2 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 50 <= NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT col2 / ( 30 * + 22 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * 60 AS col0 FROM tab0 AS cor0
----
-1260
-4860
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 70 * ( col1 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8599
SELECT CAST( NULL AS DECIMAL ) + + ( AVG ( ALL - col1 ) ) + MIN( DISTINCT - 62 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT CAST ( NULL AS REAL ) + + ( AVG ( ALL - col1 ) ) + MIN ( DISTINCT - 62 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT + MIN( col0 ) * + 63 + 83 FROM tab1
----
3296

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + MIN ( col0 ) * + 63 + 83 FROM tab1
----
3296

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT DISTINCT col0 DIV - col1 + 54 * - 7 FROM tab2
----
-378
-379

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT col0 / - col1 + 54 * - 7 FROM tab2
----
-378
-379

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL + COUNT( * ) * - COUNT( * ) + - 49 AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 49 AS col1 FROM tab0
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT + COUNT( * ) + - 27 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + COUNT ( * ) + - 27 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT + col0 - - + 51 * col0 FROM tab0
----
4524
5044
780

query I rowsort
SELECT DISTINCT col2 + - col1 AS col1 FROM tab2 WHERE col2 IS NOT NULL
----
-28
-37
-9

query I rowsort
SELECT + 24 + - col1 AS col0 FROM tab2
----
-27
-43
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + 42 + COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-8608
SELECT + 42 + COUNT ( * ) FROM tab1
----
45

query I rowsort
SELECT ALL ( + col1 ) * 40 - - col2 FROM tab2
----
2063
2738
3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 * + col2 IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8610
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 * + col2 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col0 + + col2 * col1 col1 FROM tab0 cor0
----
4032
7779
9508

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + col0 * + 99
----

query I rowsort
SELECT + 19 FROM tab2 cor0 WHERE col1 + col0 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT ALL + - MIN( - ( CAST( ( col0 ) AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + - MIN ( - ( CAST ( ( col0 ) AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT - col0 - + 63 + - col0 * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8615
SELECT - col0 - + 63 + - col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 93 + col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 82, col0 * - col1 * 14 col0 FROM tab2 AS cor0
----
82
-32844
82
-68992
82
-70350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8620
SELECT ALL - col0 + + 62 AS col0 FROM tab1 AS cor0 WHERE 83 + - ( + col2 ) * + 85 BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - col0 + + 62 AS col0 FROM tab1 AS cor0 WHERE 83 + - ( + col2 ) * + 85 BETWEEN NULL AND CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - SUM( ALL - + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8621
SELECT - SUM ( ALL - + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - 58 * + + 29 * + 36 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-60552
-60552
-60552

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + - MAX( ALL + + 71 ) AS col0 FROM tab1 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-8623
SELECT + - MAX ( ALL + + 71 ) AS col0 FROM tab1 cor0
----
-71

query I rowsort
SELECT - + col1 * - 21 AS col1 FROM tab0 AS cor0
----
1701
21
441

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT + + col1 > - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT - col2 * col0 DIV - col1 AS col1 FROM tab1
----
1003
131
349

skipif mysql # not compatible
query I rowsort label-8626
SELECT - col2 * col0 / - col1 AS col1 FROM tab1
----
1003
131
349

query I rowsort
SELECT ALL - col2 * + col2 * + + col1 + + 5 AS col0 FROM tab0
----
-178924
-2095
-9796

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + COUNT( * ) * + 27 + AVG ( DISTINCT - 0 ) FROM tab1 cor0 WHERE NOT ( + col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT + COUNT ( * ) * + 27 + AVG ( DISTINCT - 0 ) FROM tab1 cor0 WHERE NOT ( + col0 IS NOT NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / col2 IN ( + - col1 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL - MIN( - + 30 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - MIN ( - + 30 ) FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - col2 * col0 - - 72 col1 FROM tab1 AS cor0
----
249768
426347
563180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab1 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT MIN( DISTINCT + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8634
SELECT MIN ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col1 * - col0 + - 96 * + - ( + col0 ) * - 10 + + 53 AS col2 FROM tab2 AS cor0
----
-46453
-66315
-76972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT ALL - 67 * + 43 + col1 + CAST( - col1 AS SIGNED ) col1 FROM tab1
----
-2881
-2881
-2881

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8636
SELECT ALL - 67 * + 43 + col1 + CAST ( - col1 AS INTEGER ) col1 FROM tab1
----
-2881
-2881
-2881

query I rowsort
SELECT DISTINCT - col1 + + col2 + - 86 + + - col0 FROM tab0
----
-135
-184
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8638
SELECT ALL 70 AS col2, 72 * - COUNT( * ) AS col2 FROM tab2
----
70
-216

skipif mysql # not compatible
query II rowsort label-8638
SELECT ALL 70 AS col2, 72 * - COUNT ( * ) AS col2 FROM tab2
----
70
-216

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= 11
----

query I rowsort
SELECT ALL - col2 + 50 AS col2 FROM tab2 cor0
----
-8
10
27

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 / ( - - col2 ) / + col0 + - col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT - 55 + + + col2 AS col1 FROM tab0 cor0
----
-45
-8
44

query I rowsort
SELECT - 59 + + + col0 FROM tab2 cor0
----
-13
16
5

query I rowsort
SELECT DISTINCT + 94 * 76 FROM tab2 AS cor0
----
7144

query II rowsort
SELECT 57 AS col1, col2 FROM tab0 cor0
----
57
10
57
47
57
99

query I rowsort
SELECT ALL + 35 + 32 AS col2 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT ALL col1 - + 76 AS col0 FROM tab1
----
-29
-62
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( CAST( - col1 AS SIGNED ) < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( CAST ( - col1 AS INTEGER ) < NULL )
----
0

query I rowsort
SELECT DISTINCT col2 + - 58 AS col1 FROM tab0 WHERE - + ( + col1 ) < + col2
----
-11
-48
41

query II rowsort
SELECT 11 AS col2, col0 AS col2 FROM tab1 WHERE - col1 IS NOT NULL
----
11
51
11
85
11
91

query I rowsort
SELECT 54 FROM tab2, tab2 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT 39 - + 81 AS col0 FROM tab1
----
-42
-42
-42

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 8 IS NULL
----

query I rowsort
SELECT - + 99 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-198
-309
-3906

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 > - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT ALL - COUNT( + col1 ), - COUNT( + 37 ) AS col0 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8656
SELECT ALL - COUNT ( + col1 ), - COUNT ( + 37 ) AS col0 FROM tab1 AS cor0
----
-3
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8658
SELECT - 50 DIV + col0 AS col1 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT - 50 / + col0 AS col1 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT col2 * - + 13 FROM tab1 cor0
----
-1248
-767
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT + col1 DIV 57 - + col0 FROM tab2 cor0
----
-46
-63
-74

skipif mysql # not compatible
query I rowsort label-8660
SELECT + col1 / 57 - + col0 FROM tab2 cor0
----
-46
-63
-74

query I rowsort
SELECT DISTINCT + 70 * - 20 FROM tab2 AS cor0
----
-1400

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 + col0 > + + col2
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8663
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( - col2 ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8663
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( - col2 ) AND ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + col2 NOT BETWEEN col0 AND - col1 / col0 + col1 + + col2 * + col0 + col0
----
85
5
59

query I rowsort
SELECT ALL 33 FROM tab2 WHERE NOT col1 + + + 64 * 43 * 60 / - col2 NOT IN ( + col0 )
----

query II rowsort
SELECT ALL col1 AS col2, col0 + - 99 FROM tab2
----
51
-53
67
-24
77
-35

query I rowsort
SELECT DISTINCT 46 * + col0 FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT + 38 AS col2, SUM( - 76 ) AS col0 FROM tab2
----
38
-228

skipif mysql # not compatible
query II rowsort label-8668
SELECT + 38 AS col2, SUM ( - 76 ) AS col0 FROM tab2
----
38
-228

query I rowsort
SELECT - col1 * + 37 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT + - col0 AS col1 FROM tab0 WHERE NOT ( - col0 + + col1 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8670
SELECT + - col0 AS col1 FROM tab0 WHERE NOT ( - col0 + + col1 ) >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - SUM( ALL - + col2 ) * COUNT( * ) AS col1 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-8671
SELECT - SUM ( ALL - + col2 ) * COUNT ( * ) AS col1 FROM tab0
----
468

query II rowsort
SELECT ALL + col0 AS col1, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - ( - - col2 ) * + 7 + col0 >= + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - COUNT( * ) + + SUM( ALL + col1 ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8674
SELECT - COUNT ( * ) + + SUM ( ALL + col1 ) FROM tab2 AS cor0
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
20

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( - + 89 / + ( - - ( + ( + ( - + col2 ) ) ) ) - + 10 )
----

query I rowsort
SELECT ALL + + 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT + ( - + 95 ) FROM tab0 WHERE col0 <> - 82 + + ( 96 ) + + - col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT COUNT( * ) - + + 84 AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8679
SELECT COUNT ( * ) - + + 84 AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL + COUNT( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + COUNT ( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 BETWEEN - col0 - - col2 + + ( + + col1 ) AND + 43 / + col2 * - + 61 * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( - 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 92 ) < NULL
----

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + MIN( + 92 ) + - 90 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8685
SELECT + MIN ( + 92 ) + - 90 FROM tab0 cor0
----
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * - 6 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8687
SELECT ALL - 68 * CAST( NULL AS SIGNED ) / - - 27 + col0, - 69 * + + ( + col1 ) + - - col2 * - 31 * col1 + - 74 AS col0 FROM tab0 cor0
----
NULL
-123680
NULL
-3212
NULL
-8033

skipif mysql # not compatible
query II rowsort label-8687
SELECT ALL - 68 * CAST ( NULL AS INTEGER ) / - - 27 + col0, - 69 * + + ( + col1 ) + - - col2 * - 31 * col1 + - 74 AS col0 FROM tab0 cor0
----
NULL
-123680
NULL
-3212
NULL
-8033

query II rowsort
SELECT ALL + 86, 14 AS col2 FROM tab2
----
86
14
86
14
86
14

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 * col2 * - + col2 + - col2 * 32 AS col0, + ( + + col2 ) AS col2 FROM tab2
----
-103680
40
-25070
23
-254156
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT + MAX( 50 ) AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT + MAX ( 50 ) AS col1 FROM tab0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE - 14 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE - 14 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT MIN( col0 ) * - COUNT( * ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-8694
SELECT MIN ( col0 ) * - COUNT ( * ) FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL + COUNT( * ) * 38 AS col1 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + COUNT ( * ) * 38 AS col1 FROM tab1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT - ( + + COUNT( * ) ) + - 68 * + 64 FROM tab2 AS cor0 WHERE NULL IN ( + col0 + col0 )
----
-4352

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - ( + + COUNT ( * ) ) + - 68 * + 64 FROM tab2 AS cor0 WHERE NULL IN ( + col0 + col0 )
----
-4352

query I rowsort
SELECT - 63 * + 5 FROM tab1 AS cor0
----
-315
-315
-315

query I rowsort
SELECT - - 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
14
47
5

query I rowsort
SELECT - 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + 78 * - 41 >= + - col1 + + 44 + - 65 * + + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT DISTINCT - - col2 / - ( col2 ) * 97 * - CAST( NULL AS SIGNED ) + - 34 + col0 / col1 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT - - col2 / - ( col2 ) * 97 * - CAST ( NULL AS INTEGER ) + - 34 + col0 / col1 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + + 71 * col0 FROM tab1 cor0
----
30175
303667
50694

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT ALL + + 94 DIV - + col1 - 72 AS col2 FROM tab0 AS cor0
----
-166
-73
-76

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + + 94 / - + col1 - 72 AS col2 FROM tab0 AS cor0
----
-166
-73
-76

query II rowsort
SELECT col0 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT DISTINCT + col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT + col0 / + col0 AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 86 AND NULL
----

query I rowsort
SELECT - 29 + ( + col1 ) FROM tab0 AS cor0
----
-28
-8
52

query I rowsort
SELECT + - 9 + col1 - - - col2 AS col0 FROM tab1 AS cor0
----
-30
-63
-91

onlyif mysql # DIV for integer division: 
query III rowsort label-8710
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) = col2 + - col1 DIV - ( 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8710
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) = col2 + - col1 / - ( 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-420
-6480
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col1 + + col2 AS col1, + col1 - col2 col1, + col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 5541839114e73e76732d279c3a06a77c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT ALL ( CAST( + - AVG ( DISTINCT - 92 ) AS SIGNED ) ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL ( CAST ( + - AVG ( DISTINCT - 92 ) AS INTEGER ) ) FROM tab1
----
92

query I rowsort
SELECT - 88 * + ( + - col2 ) * + - col2 FROM tab0
----
-194392
-862488
-8800

query II rowsort
SELECT ALL col1 + + col0, 33 AS col0 FROM tab2
----
141
33
142
33
97
33

query I rowsort
SELECT + 55 * + + 90 AS col2 FROM tab1
----
4950
4950
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT DISTINCT 43 + COUNT( * ) + + MIN( - + col2 ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT 43 + COUNT ( * ) + + MIN ( - + col2 ) AS col1 FROM tab2
----
-12

query I rowsort
SELECT ALL - - 71 AS col0 FROM tab0 AS cor0 WHERE ( + col0 ) NOT BETWEEN col1 AND NULL
----
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 74 >= - ( ( + + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 * col1 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT - col0 DIV 12 AS col0 FROM tab1 AS cor0
----
-4
-7
-7

skipif mysql # not compatible
query I rowsort label-8721
SELECT - col0 / 12 AS col0 FROM tab1 AS cor0
----
-4
-7
-7

query II rowsort
SELECT 97 + - - 42, col0 FROM tab0 AS cor0
----
139
15
139
87
139
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT - 89 + + + COUNT( * ) + - 82 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-8723
SELECT - 89 + + + COUNT ( * ) + - 82 FROM tab2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT 86 + COUNT( * ) AS col2 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-8724
SELECT 86 + COUNT ( * ) AS col2 FROM tab1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 30 * - 51 IS NOT NULL AND + col1 BETWEEN NULL AND 40
----

query I rowsort
SELECT col0 * - col1 * - - col1 + - 92 AS col1 FROM tab0
----
-189
-38459
-98507

query I rowsort
SELECT ALL - col0 + 24 FROM tab2
----
-22
-40
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 + + + col1 ) AND col2 + - + 9
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8730
SELECT DISTINCT - - col1 - - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - - col1 - - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 79 + + ( + - col2 ) col0 FROM tab0 AS cor0
----
1138
6863
7564

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND + + col1
----

query I rowsort
SELECT - col2 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8734
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( + 58 AS DECIMAL ) NOT IN ( + col2 + + col0 + - - col1 * col1 * 98 + - + 30 + + CAST( + col0 AS SIGNED ) + + col1 * 37 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8734
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( + 58 AS REAL ) NOT IN ( + col2 + + col0 + - - col1 * col1 * 98 + - + 30 + + CAST ( + col0 AS INTEGER ) + + col1 * 37 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 + - col1 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
1181
1816
195

query I rowsort
SELECT + 4 * + col1 AS col0 FROM tab2 cor0
----
204
268
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL + COUNT( + CAST( col1 AS SIGNED ) ) + - COUNT( * ) * AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT 65 * - col1 + 61 NOT IN ( col2 * + - col1 * - col2 * 51 - - - 51 + - col2 * - 84, - col1 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL + COUNT ( + CAST ( col1 AS INTEGER ) ) + - COUNT ( * ) * AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT 65 * - col1 + 61 NOT IN ( col2 * + - col1 * - col2 * 51 - - - 51 + - col2 * - 84, - col1 + + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT + SUM( - col1 ) FROM tab1 WHERE NULL > ( - - ( + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT + SUM ( - col1 ) FROM tab1 WHERE NULL > ( - - ( + col2 ) )
----
NULL

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT + 18 * col1 = 5
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8740
SELECT CAST( + col1 AS SIGNED ) AS col0, - 96 * + col2 FROM tab0
----
1
-9504
21
-960
81
-4512

skipif mysql # not compatible
query II rowsort label-8740
SELECT CAST ( + col1 AS INTEGER ) AS col0, - 96 * + col2 FROM tab0
----
1
-9504
21
-960
81
-4512

query I rowsort
SELECT ALL col2 * + 92 AS col2 FROM tab2
----
2116
3680
5336

query I rowsort
SELECT DISTINCT + col0 * - - 69 FROM tab2
----
3174
4416
5175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT + + MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8743
SELECT + + MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT - MIN( + 23 ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8744
SELECT - MIN ( + 23 ) col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8745
SELECT ALL * FROM tab0 WHERE NOT + + CAST( + 0 AS SIGNED ) * col0 + - col0 * - 65 + - + col2 + + 83 / + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8745
SELECT ALL * FROM tab0 WHERE NOT + + CAST ( + 0 AS INTEGER ) * col0 + - col0 * - 65 + - + col2 + + 83 / + col0 IS NOT NULL
----

query I rowsort
SELECT 50 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 24 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - - ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT ALL + 95 DIV col0 * - - ( - + 73 ) * - 49 FROM tab2 AS cor0
----
3577
3577
7154

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + 95 / col0 * - - ( - + 73 ) * - 49 FROM tab2 AS cor0
----
3577
3577
7154

query II rowsort
SELECT ALL col0, 21 FROM tab1 AS cor0 WHERE NOT col0 - + ( 20 ) IS NULL
----
51
21
85
21
91
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT + - ( - 68 ) DIV + + col1 AS col0 FROM tab0 AS cor0
----
0
3
68

skipif mysql # not compatible
query I rowsort label-8752
SELECT + - ( - 68 ) / + + col1 AS col0 FROM tab0 AS cor0
----
0
3
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL + COUNT( * ) + MAX( + - col0 ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + COUNT ( * ) + MAX ( + - col0 ) AS col2 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT 72 * - 90 * - + COUNT( * ) col1 FROM tab1
----
19440

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8754
SELECT 72 * - 90 * - + COUNT ( * ) col1 FROM tab1
----
19440

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT col2 + 7 DIV - - col2 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8755
SELECT col2 + 7 / - - col2 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT - col2 + - col0 FROM tab0 WHERE - col2 * - + 24 / 17 * - col1 - - col0 <> - + col2 + - + col2
----
-196
-62
-97

query I rowsort
SELECT ( + - col1 ) + col0 - + - col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + col0 + + - col1 + - col1 FROM tab1
----
-3
23
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8759
SELECT col0 + + 64 / - + col1 / - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8759
SELECT col0 + + 64 / - + col1 / - CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT 20 + - COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8760
SELECT 20 + - COUNT ( * ) FROM tab2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT ALL + col2 DIV - + col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL + col2 / - + col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 / + + col1 NOT BETWEEN 9 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 / + + col1 NOT BETWEEN 9 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8764
SELECT SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT - col1 DIV - - col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8765
SELECT - col1 / - - col1 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 - + - col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 7 - + col2 AS col2 FROM tab0
----
-3
-40
-92

query I rowsort
SELECT + col0 * + - col0 - col2 FROM tab1
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + 8 - - - COUNT( * ) col2 FROM tab2
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8769
SELECT ALL + 8 - - - COUNT ( * ) col2 FROM tab2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8770
SELECT DISTINCT + 68 - + col2 AS col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-28
NULL
0
NULL
9
NULL

skipif mysql # not compatible
query II rowsort label-8770
SELECT DISTINCT + 68 - + col2 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-28
NULL
0
NULL
9
NULL

query I rowsort
SELECT - 73 * + 51 + + - 79 FROM tab0 AS cor0
----
-3802
-3802
-3802

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ( - MAX( ALL + 26 ) ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8772
SELECT ( - MAX ( ALL + 26 ) ) FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT ALL SUM( - ( + col2 ) ) AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-121
-3

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL SUM ( - ( + col2 ) ) AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-121
-3

query I rowsort
SELECT ALL 70 AS col1 FROM tab1 WHERE NOT - 2 >= - + 4 * - - 70 + - - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT + MIN( + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT + MIN ( + - col2 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT + col0 * - 30 FROM tab2
----
-1380
-1920
-2250

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 * 99 * + col1 + + col1 * - + 98 AND 5 + 36
----

query II rowsort
SELECT col1 AS col0, + 58 FROM tab0
----
1
58
21
58
81
58

query II rowsort
SELECT col0, + 16 * - 31 FROM tab0
----
15
-496
87
-496
97
-496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 34 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 43 AS col1, + col0 + - col1 FROM tab1 AS cor0
----
43
37
43
44
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT + - COUNT( + - col1 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8782
SELECT + - COUNT ( + - col1 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL SUM( + - col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL SUM ( + - col2 ) AS col0 FROM tab0 cor0
----
-156

query I rowsort
SELECT + - col0 * - - col0 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 81 * - 68 IS NULL
----

query I rowsort
SELECT col2 * - 25 * - 49 + - - 51 + + - col1 AS col0 FROM tab2 AS cor0
----
28175
48974
71034

query I rowsort
SELECT - + 69 + + col1 AS col0 FROM tab2 AS cor0
----
-18
-2
8

query I rowsort
SELECT - col1 * - - ( + 80 ) + + 54 FROM tab0 AS cor0
----
-1626
-26
-6426

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT - ( + ( + ( COUNT( * ) ) ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8789
SELECT - ( + ( + ( COUNT ( * ) ) ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 + + 27 AS col1 FROM tab2
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT - COUNT( * ) + 63 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT - COUNT ( * ) + 63 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL 35 + + COUNT( * ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL 35 + + COUNT ( * ) FROM tab1
----
38

query I rowsort
SELECT DISTINCT - col0 - col0 + - col2 * - col1 * - - col1 + + col2 + + + col0 FROM tab1 AS cor0
----
1449
150189
18861

query I rowsort
SELECT - 79 + 0 FROM tab0 AS cor0 WHERE - col1 BETWEEN - col1 + + 0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL ( + col1 ) * - CAST( 6 AS SIGNED ) col0 FROM tab1 AS cor0
----
-282
-30
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8795
SELECT ALL ( + col1 ) * - CAST ( 6 AS INTEGER ) col0 FROM tab1 AS cor0
----
-282
-30
-84

query I rowsort
SELECT - 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL 99 * + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL 99 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
300

query II rowsort
SELECT - - col2 AS col1, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 48 * - 31 * - 89 - + col2 IS NULL
----

query II rowsort
SELECT + + col2, - 50 AS col0 FROM tab1 AS cor0
----
59
-50
68
-50
96
-50

query II rowsort
SELECT DISTINCT - 12, col1 FROM tab1 cor0
----
-12
14
-12
47
-12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT COUNT( * ) * + 65 AS col0 FROM tab2 WHERE NOT col0 NOT IN ( - - 10, col2 * - + 58, + 26 * 95 * + col0 + + 29 / + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT COUNT ( * ) * + 65 AS col0 FROM tab2 WHERE NOT col0 NOT IN ( - - 10, col2 * - + 58, + 26 * 95 * + col0 + + 29 / + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT col0 DIV - - col2 AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8803
SELECT col0 / - - col2 AS col1 FROM tab0
----
0
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT ALL + 94 FROM tab2 WHERE NOT col2 < + CAST( NULL AS SIGNED ) * + 20
----

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + 94 FROM tab2 WHERE NOT col2 < + CAST ( NULL AS INTEGER ) * + 20
----

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 <> + col1 * - 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT + col0 DIV - col0 AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8807
SELECT + col0 / - col0 AS col1 FROM tab2 cor0
----
-1
-1
-1

query II rowsort
SELECT - 27 * + ( - 78 ) AS col1, + col0 * + + 92 FROM tab1
----
2106
4692
2106
7820
2106
8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8810
SELECT + 80 col0, col2 DIV - col0 FROM tab2 AS cor0
----
80
0
80
0
80
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8810
SELECT + 80 col0, col2 / - col0 FROM tab2 AS cor0
----
80
0
80
0
80
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( + col2, 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT COUNT( * ) FROM tab0 cor0 WHERE col1 - - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT COUNT ( * ) FROM tab0 cor0 WHERE col1 - - col2 <> NULL
----
0

query II rowsort
SELECT col1 AS col2, - 56 FROM tab2 AS cor0
----
51
-56
67
-56
77
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-8814
SELECT + ( + - col0 ) DIV - col0, + 0 AS col2 FROM tab0 cor0
----
1
0
1
0
1
0

skipif mysql # not compatible
query II rowsort label-8814
SELECT + ( + - col0 ) / - col0, + 0 AS col2 FROM tab0 cor0
----
1
0
1
0
1
0

query I rowsort
SELECT ALL + 44 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 59 * 17 FROM tab1
----
1003
1003
1003

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT + COUNT( * ), + 97 + SUM( DISTINCT - 83 ) AS col1 FROM tab2 WHERE + col1 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8817
SELECT + COUNT ( * ), + 97 + SUM ( DISTINCT - 83 ) AS col1 FROM tab2 WHERE + col1 IS NULL
----
0
NULL

query I rowsort
SELECT + col0 * + + 12 + - col0 * - ( + 64 ) FROM tab0
----
1140
6612
7372

query III rowsort
SELECT * FROM tab1 WHERE - col1 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 3 * - col0 * - + col2 * - + ( + ( - col0 ) ) FROM tab2 cor0
----
146004
491520
978750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT DISTINCT 80 * + + col2 * - CAST( NULL AS SIGNED ) + - + col2 + + col0 + - col0 * + col2 FROM tab0 AS cor0 WHERE NOT col1 * + col0 - - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT 80 * + + col2 * - CAST ( NULL AS INTEGER ) + - + col2 + + col0 + - col0 * + col2 FROM tab0 AS cor0 WHERE NOT col1 * + col0 - - + col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 26 > ( + col1 )
----
15
81
47

query I rowsort
SELECT DISTINCT - - 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= ( col2 ) * + 85 / - col2
----

query I rowsort
SELECT + col1 * + 4 FROM tab2 AS cor0
----
204
268
308

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 = 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL + + MAX( ALL + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL + + MAX ( ALL + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ( 31 ) FROM tab0 cor0
----
31
31
31

query II rowsort
SELECT DISTINCT - col2 AS col2, ( 56 ) AS col1 FROM tab0
----
-10
56
-47
56
-99
56

query II rowsort
SELECT + col2, 18 FROM tab1
----
59
18
68
18
96
18

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 * - - col0 + - 73 FROM tab2
----
23
2273
40
4855
58
4952

query II rowsort
SELECT + 1 AS col1, col2 AS col0 FROM tab2
----
1
23
1
40
1
58

query I rowsort
SELECT DISTINCT 63 - + 25 AS col1 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND ( - + 84 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 65 + + - col0 <> - - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + 65 ) AS col2 FROM tab0
----
-65
-65
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8836
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8836
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT + COUNT( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + COUNT ( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8838
SELECT DISTINCT COUNT( * ), + 83 AS col2 FROM tab1 AS cor0
----
3
83

skipif mysql # not compatible
query II rowsort label-8838
SELECT DISTINCT COUNT ( * ), + 83 AS col2 FROM tab1 AS cor0
----
3
83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - - - col0 + + + col1 BETWEEN NULL AND + - 86 + + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT - + COUNT( * ) AS col1, - ( + + 37 ) FROM tab2 AS cor0
----
-3
-37

skipif mysql # not compatible
query II rowsort label-8840
SELECT - + COUNT ( * ) AS col1, - ( + + 37 ) FROM tab2 AS cor0
----
-3
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - - col2 * + 51 * 64 + + + col0
----

query I rowsort
SELECT ALL + + 47 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL + COUNT( * ) AS col2 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL + COUNT ( * ) AS col2 FROM tab0, tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 6 > NULL
----

query I rowsort
SELECT - 16 + + col2 AS col0 FROM tab1 AS cor0
----
43
52
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT DISTINCT + + COUNT( + col0 ), ( - COUNT( DISTINCT col0 ) ) AS col0 FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8848
SELECT DISTINCT + + COUNT ( + col0 ), ( - COUNT ( DISTINCT col0 ) ) AS col0 FROM tab2 cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8849
SELECT + col1 + + col0 AS col1, + 52 * - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
141
NULL
142
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8849
SELECT + col1 + + col0 AS col1, + 52 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
141
NULL
142
NULL
97
NULL

query I rowsort
SELECT + 25 + + 13 + 39 * - 18 FROM tab0 AS cor0
----
-664
-664
-664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT + ( + CAST( - 68 AS SIGNED ) ) + - - ( + col2 ) FROM tab1 AS cor0
----
-9
0
28

skipif mysql # not compatible
query I rowsort label-8851
SELECT + ( + CAST ( - 68 AS INTEGER ) ) + - - ( + col2 ) FROM tab1 AS cor0
----
-9
0
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ALL + 61 * + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
6039

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL + 61 * + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
6039

query I rowsort
SELECT + col0 * - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - ( - 77 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + + COUNT( - 55 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8854
SELECT + + COUNT ( - 55 ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8855
SELECT DISTINCT + COUNT( * ) + COUNT( * ), + 50 AS col2 FROM tab2 AS cor0
----
6
50

skipif mysql # not compatible
query II rowsort label-8855
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ), + 50 AS col2 FROM tab2 AS cor0
----
6
50

query II rowsort
SELECT ALL + col2, col1 - + col1 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT ALL col2 + - 3 AS col2 FROM tab1
----
56
65
93

query I rowsort
SELECT + ( 94 ) FROM tab0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL col1 * + col0 - ( - 74 ) * - 34 AS col2 FROM tab0
----
-1301
-2419
-689

query I rowsort
SELECT ALL col2 + + 58 FROM tab0
----
105
157
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8862
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - - - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT + CAST ( NULL AS REAL ) - - - col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8863
SELECT + + 59 - CAST( NULL AS DECIMAL ) + - - CAST( SUM( + col0 ) AS SIGNED ) + + 71 * MIN( + + 69 ) + + 62 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT + + 59 - CAST ( NULL AS REAL ) + - - CAST ( SUM ( + col0 ) AS INTEGER ) + + 71 * MIN ( + + 69 ) + + 62 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + - COUNT( * ) + 71 AS col1 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8864
SELECT + - COUNT ( * ) + 71 AS col1 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL + + col0 - - - col2 * - 13 + + col0 AS col2 FROM tab2 AS cor0
----
391
648
904

query I rowsort
SELECT DISTINCT 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
99

query I rowsort
SELECT - 12 * + - col0 + - col2 AS col2 FROM tab2 AS cor0
----
529
728
842

onlyif mysql # aggregate syntax: 
query II rowsort label-8868
SELECT - SUM( ALL - col1 ), 81 AS col1 FROM tab1 AS cor0
----
66
81

skipif mysql # not compatible
query II rowsort label-8868
SELECT - SUM ( ALL - col1 ), 81 AS col1 FROM tab1 AS cor0
----
66
81

query I rowsort
SELECT ALL + col2 * + 24 FROM tab2 AS cor0
----
1392
552
960

query I rowsort
SELECT - 89 AS col0 FROM tab1 cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT COUNT( * ) * + 81 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT COUNT ( * ) * + 81 FROM tab2 AS cor0
----
243

query I rowsort
SELECT DISTINCT ( - + 65 ) AS col2 FROM tab1 AS cor0
----
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 21 ) col1 FROM tab1
----
-21

query I rowsort
SELECT DISTINCT - col2 * + 40 AS col2 FROM tab2
----
-1600
-2320
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT ALL 93 DIV + - col1 FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL 93 / + - col1 FROM tab1
----
-1
-18
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8876
SELECT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8876
SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab0
----
NULL
3

query I rowsort
SELECT ALL + col1 + + + 48 / + 54 + + 79 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 11, - col2 col2 FROM tab1
----
11
-59
11
-68
11
-96

query III rowsort
SELECT 78, ( + col2 ), + col0 AS col1 FROM tab0
----
9 values hashing to fe111f20918f7c3431304add843151b6

query II rowsort
SELECT + + 1 + + col1 * - col0 AS col0, - 0 + + col2 AS col0 FROM tab1 AS cor0
----
-424
59
-4276
68
-713
96

query I rowsort
SELECT - col2 * + - col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col1 col0 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8884
SELECT DISTINCT - ( + CAST( - col1 AS SIGNED ) ) col0, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8884
SELECT DISTINCT - ( + CAST ( - col1 AS INTEGER ) ) col0, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8885
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col2 * - 10 + + - col1 AS col2, + col0 * col0 AS col0 FROM tab0
----
NULL
225
NULL
7569
NULL
9409

skipif mysql # not compatible
query II rowsort label-8885
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col2 * - 10 + + - col1 AS col2, + col0 * col0 AS col0 FROM tab0
----
NULL
225
NULL
7569
NULL
9409

query I rowsort
SELECT ALL - col0 + + + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT + MAX( ALL + - 43 ) AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8887
SELECT + MAX ( ALL + - 43 ) AS col1 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT - col1 * col0 FROM tab1 AS cor0 WHERE - ( - 60 ) * - col0 + + - 51 * - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8889
SELECT ALL MIN( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN CAST( NULL AS SIGNED ) * - 36 AND - col1
----
-87

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN CAST ( NULL AS INTEGER ) * - 36 AND - col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL + + COUNT( DISTINCT + 38 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + + COUNT ( DISTINCT + 38 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 + + - 64 + + 73 / + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8891
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 + + - 64 + + 73 / + - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT DISTINCT - col1 * + - col1 * + - col0 + - col0 * - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT - col1 * + - col1 * + - col0 + - col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT - 38 + - 87, 92 AS col2 FROM tab1
----
-125
92
-125
92
-125
92

query I rowsort
SELECT DISTINCT + 26 + - + col0 FROM tab2
----
-20
-38
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + 69 - + 93 * + - col2 + - col1 col2 FROM tab1
----
10566
12534
13879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT + col0 + + + col0 + ( - col1 ) * + CAST( - ( 56 ) AS SIGNED ) * - 40 FROM tab2
----
-114148
-149930
-172352

skipif mysql # not compatible
query I rowsort label-8896
SELECT + col0 + + + col0 + ( - col1 ) * + CAST ( - ( 56 ) AS INTEGER ) * - 40 FROM tab2
----
-114148
-149930
-172352

query I rowsort
SELECT col0 + + + ( - - 92 ) AS col1 FROM tab2
----
138
156
167

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT DISTINCT ( + + 85 ) + - col2 + - 33 DIV - - col0 - - col1 AS col2 FROM tab1
----
3
31
64

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT ( + + 85 ) + - col2 + - 33 / - - col0 - - col1 AS col2 FROM tab1
----
3
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL - 99 + COUNT( ALL - col1 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL - 99 + COUNT ( ALL - col1 ) FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8900
SELECT DISTINCT + col2 + - - col0 + + - col2 DIV col0 FROM tab0
----
195
59
97

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT + col2 + - - col0 + + - col2 / col0 FROM tab0
----
195
59
97

query I rowsort
SELECT ALL + col2 - - col1 + col2 + + + col2 * 3 * 37 + + col1 FROM tab2 AS cor0
----
2701
4674
6688

query I rowsort
SELECT ALL - 37 - + ( + col2 ) FROM tab2 AS cor0
----
-60
-77
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT + 90 + - COUNT( * ) AS col2 FROM tab1 WHERE NOT - 13 <> NULL
----
90

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + 90 + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 13 <> NULL
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT ( + 55 ) DIV 27 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8904
SELECT ( + 55 ) / 27 AS col2 FROM tab2
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 64 AS col2 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT DISTINCT - 27 FROM tab0 AS cor0 WHERE col0 * - col1 * - ( - ( + - col2 ) ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 90 col0, 0 + + col1 FROM tab1 AS cor0
----
90
14
90
47
90
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8910
SELECT + 64 AS col2, SUM( - - 33 ) AS col2 FROM tab1 AS cor0
----
64
99

skipif mysql # not compatible
query II rowsort label-8910
SELECT + 64 AS col2, SUM ( - - 33 ) AS col2 FROM tab1 AS cor0
----
64
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT ALL - 25 col2, - COUNT( * ) FROM tab0 AS cor0
----
-25
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8911
SELECT ALL - 25 col2, - COUNT ( * ) FROM tab0 AS cor0
----
-25
-3

query I rowsort
SELECT - ( 38 ) AS col0 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT ALL + col2 * 17 DIV col0 FROM tab1
----
11
12
32

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + col2 * 17 / col0 FROM tab1
----
11
12
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + 57 col0 FROM tab0 WHERE NOT - col2 > - + 77 * - + 59
----
-30
-40
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT + CAST( + 86 AS SIGNED ) * col0 col0 FROM tab1 cor0
----
4386
7310
7826

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8915
SELECT + CAST ( + 86 AS INTEGER ) * col0 col0 FROM tab1 cor0
----
4386
7310
7826

query I rowsort
SELECT DISTINCT ( - 95 ) + - col2 + col0 AS col2 FROM tab1 AS cor0
----
-140
-69
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL + SUM( DISTINCT - 97 ) AS col2 FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + SUM ( DISTINCT - 97 ) AS col2 FROM tab2 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT DISTINCT + col1 / + CAST( NULL AS SIGNED ) + - + col0 - 99 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT + col1 / + CAST ( NULL AS INTEGER ) + - + col0 - 99 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 42 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL - COUNT( + + 81 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - COUNT ( + + 81 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8921
SELECT - 70 DIV + - 85 * - MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 70 / + - 85 * - MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + + 50 * + col1 * - 35 AS col1 FROM tab2 AS cor0
----
-4105500
-8624000
-8793750

query II rowsort
SELECT ALL - col2 AS col2, + 69 FROM tab0 AS cor0
----
-10
69
-47
69
-99
69

query I rowsort
SELECT ALL + 92 + + col1 AS col0 FROM tab2 AS cor0
----
143
159
169

query II rowsort
SELECT ALL col1, 55 FROM tab1
----
14
55
47
55
5
55

query I rowsort
SELECT 25 - + col1 FROM tab2
----
-26
-42
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-8927
SELECT DISTINCT col2 + - - col0 + - 27 + - col2 + + - col1 DIV col2 + col0 - - - col1 * + 20 AS col1, ( + - col1 ) AS col2 FROM tab2
----
-1218
-67
-1440
-77
-957
-51

skipif mysql # not compatible
query II rowsort label-8927
SELECT DISTINCT col2 + - - col0 + - 27 + - col2 + + - col1 / col2 + col0 - - - col1 * + 20 AS col1, ( + - col1 ) AS col2 FROM tab2
----
-1218
-67
-1440
-77
-957
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT 4 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT 4 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 cor0 WHERE - 67 IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 63 + + col1 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, col2 col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT - CAST( + + ( - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8932
SELECT - CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT 36 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT 36 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 * 57 - - col0 BETWEEN 18 AND + 43 / + col1 + + ( + - col0 ) * col0 * ( + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT ALL + MAX( DISTINCT - 32 ) AS col2 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + MAX ( DISTINCT - 32 ) AS col2 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT DISTINCT col2 * - 58 FROM tab2 AS cor0
----
-1334
-2320
-3364

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 39 ) = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE ( 72 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( 72 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT 0 * + MAX( DISTINCT - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT 0 * + MAX ( DISTINCT - col2 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT DISTINCT ( - + AVG ( CAST( NULL AS SIGNED ) ) ) / - AVG ( + + col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT ( - + AVG ( CAST ( NULL AS INTEGER ) ) ) / - AVG ( + + col2 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 38 + + + 33 FROM tab0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT 95 + + - 90 + + COUNT( * ) * - 72 AS col0 FROM tab2
----
-211

skipif mysql # not compatible
query I rowsort label-8942
SELECT 95 + + - 90 + + COUNT ( * ) * - 72 AS col0 FROM tab2
----
-211

query III rowsort
SELECT * FROM tab1 WHERE col1 / + - col0 IS NULL
----

query I rowsort
SELECT ( + + 77 ) + - col2 + + 77 + col2 AS col1 FROM tab0
----
154
154
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8945
SELECT CAST( - MAX( - col0 ) AS SIGNED ) + - 52 AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8945
SELECT CAST ( - MAX ( - col0 ) AS INTEGER ) + - 52 AS col0 FROM tab2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8946
SELECT COUNT( * ) + - - CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8946
SELECT COUNT ( * ) + - - CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - + 27 AS col2, col1 FROM tab2 AS cor0
----
-27
51
-27
67
-27
77

query I rowsort
SELECT ALL - - ( - + col0 ) * + + col1 FROM tab1 cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - - 60 ) + - - 85 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184dd874efc91366378cfe8644e8c122

query I rowsort
SELECT + col0 - - - col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - ( + ( - - col0 ) ) * + - col0 - + 96 AS col2 FROM tab2 cor0
----
2020
4000
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT + - MIN( col0 ) + - - 68 FROM tab0 cor0
----
53

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT + - MIN ( col0 ) + - - 68 FROM tab0 cor0
----
53

query I rowsort
SELECT ALL 57 * + + col1 FROM tab2 AS cor0
----
2907
3819
4389

query I rowsort
SELECT ALL col2 - + col1 + + 23 FROM tab0 AS cor0
----
-11
12
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col0 - - col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8955
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col0 - - col0 < NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + 7 / - col1 AND NULL
----

query I rowsort
SELECT + 39 + + - ( - col2 ) + + + col2 FROM tab1 AS cor0
----
157
175
231

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT ALL + col1 DIV - 88 + + 19 AS col2 FROM tab0 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + col1 / - 88 + + 19 AS col2 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT col0 + col1 * + 1 + - col2 AS col0 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8960
SELECT ALL 10 col1, + COUNT( col2 ) - 4 FROM tab0
----
10
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8960
SELECT ALL 10 col1, + COUNT ( col2 ) - 4 FROM tab0
----
10
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8961
SELECT ALL * FROM tab2 WHERE NOT - CAST( - 23 AS DECIMAL ) <> + 94 + + col1
----

skipif mysql # not compatible
query III rowsort label-8961
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - 23 AS REAL ) <> + 94 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT 76 DIV - 7 AS col1 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-8962
SELECT 76 / - 7 AS col1 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + - 68 FROM tab1 WHERE NOT - 9 <= NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 + - + 95 FROM tab2
----
-51
-44
-67
-28
-77
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT DISTINCT - - 38 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT - - 38 / - col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT 31 * + col0 * - col0 * + 1 FROM tab0 AS cor0
----
-234639
-291679
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL MAX( DISTINCT + 33 ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL MAX ( DISTINCT + 33 ) FROM tab2 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 + - 14 - - col1 * - col1 col1 FROM tab1 AS cor0
----
-143
-2156
28

query I rowsort
SELECT - 30 + + 42 AS col2 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col1 + + col2 + + + 12 AS col0 FROM tab0 AS cor0
----
-22
1
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT ALL ( + CAST( + 9 AS SIGNED ) ) FROM tab0 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL ( + CAST ( + 9 AS INTEGER ) ) FROM tab0 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + + ( + COUNT( * ) ) + 91 - COUNT( * ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + + ( + COUNT ( * ) ) + 91 - COUNT ( * ) FROM tab2 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8976
SELECT + CAST( NULL AS SIGNED ), col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8976
SELECT + CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT - col2 + - 29 * 90 - - - 40 AS col2 FROM tab2
----
-2673
-2690
-2708

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT col1 DIV - col1 FROM tab0 cor0 WHERE NOT + - col0 IS NOT NULL OR + - col1 + col0 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8978
SELECT col1 / - col1 FROM tab0 cor0 WHERE NOT + - col0 IS NOT NULL OR + - col1 + col0 IS NOT NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = - - ( + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT - 71 * col2 DIV 51 AS col1 FROM tab0 AS cor0
----
-13
-137
-65

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 71 * col2 / 51 AS col1 FROM tab0 AS cor0
----
-13
-137
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL COUNT( DISTINCT - 42 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL COUNT ( DISTINCT - 42 ) FROM tab2 AS cor0
----
1

query II rowsort
SELECT 87 + + col2 + + + col1 + 1 * ( 30 ) * col1 AS col2, col0 FROM tab0 AS cor0
----
217
97
2645
15
748
87

query I rowsort
SELECT DISTINCT - 62 * + 46 + col0 FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT + + 91 AS col2 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT 28 FROM tab1 cor0 WHERE - col1 >= ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 col2 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT 26 * - col2 + + + col2 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8988
SELECT DISTINCT + - 35 AS col2, 20 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-8988
SELECT DISTINCT + - 35 AS col2, 20 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-35
NULL

query I rowsort
SELECT - - 37 * col2 AS col1 FROM tab1 AS cor0
----
2183
2516
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT DISTINCT - 97 DIV + 17 col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8990
SELECT DISTINCT - 97 / + 17 col1 FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8991
SELECT - 84 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-84
NULL
-84
NULL
-84
NULL

skipif mysql # not compatible
query II rowsort label-8991
SELECT - 84 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-84
NULL
-84
NULL
-84
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 43 NOT BETWEEN col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 + - - col2 AS col0 FROM tab0 WHERE NOT 58 IS NOT NULL
----

query I rowsort
SELECT ALL - 72 AS col2 FROM tab2 WHERE NOT - 65 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + ( + - col1 ) AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT - col1 * + 59 * + + 9 FROM tab2
----
-27081
-35577
-40887

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT MIN( ALL + 37 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37

skipif mysql # not compatible
query I rowsort label-8997
SELECT MIN ( ALL + 37 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT DISTINCT CAST( NULL AS SIGNED ) * 84 col1 FROM tab1 cor0 WHERE NOT NULL >= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 84 col1 FROM tab1 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8999
SELECT - MAX( ( 70 ) ), - 35 AS col0 FROM tab0 AS cor0
----
-70
-35

skipif mysql # not compatible
query II rowsort label-8999
SELECT - MAX ( ( 70 ) ), - 35 AS col0 FROM tab0 AS cor0
----
-70
-35

query I rowsort
SELECT - 72 AS col2 FROM tab0 cor0 WHERE NOT 68 + - col1 < col2
----
-72

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 88 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9002
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT col1 >= col2 * + col0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9004
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) FROM tab1 cor0
----
1

query I rowsort
SELECT ALL - 39 + - 96 FROM tab0 AS cor0
----
-135
-135
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT 54 + + col1 + + - col1 + - col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT 54 + + col1 + + - col1 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * 69 + - col0 col0 FROM tab2
----
-1219
-1237
-1248

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT col0 DIV - 89 + + + col0 AS col1 FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-9009
SELECT col0 / - 89 + + + col0 AS col1 FROM tab0
----
15
87
96

query I rowsort
SELECT ALL - 10 + - + col1 - - ( col1 ) * 11 FROM tab1
----
130
40
460

query I rowsort
SELECT DISTINCT col1 + 92 AS col0 FROM tab0
----
113
173
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 88 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT MIN( ( + + col1 ) ) + + - 51 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT MIN ( ( + + col1 ) ) + + - 51 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT + 27 + + - MAX( + col0 ) + - COUNT( * ) col1 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9014
SELECT + 27 + + - MAX ( + col0 ) + - COUNT ( * ) col1 FROM tab0
----
-73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 58 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT + 13 + + 92 + + - MIN( ALL - col1 ) FROM tab2 AS cor0 WHERE + 73 * + col2 + - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT + 13 + + 92 + + - MIN ( ALL - col1 ) FROM tab2 AS cor0 WHERE + 73 * + col2 + - - col0 IS NULL
----
NULL

query I rowsort
SELECT + ( - 2 ) - - 10 FROM tab2
----
8
8
8

query I rowsort
SELECT DISTINCT col1 + - + col1 * + col2 FROM tab2
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT + col1 * + col1 - 87 + col2 * + + col2 * + + 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-9019
SELECT + col1 * + col1 - 87 + col2 * + + col2 * + + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - + col0 + + + col1 FROM tab0 WHERE 68 IS NOT NULL
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT 79 + + + SUM( ALL - + 82 ) FROM tab2
----
-167

skipif mysql # not compatible
query I rowsort label-9021
SELECT 79 + + + SUM ( ALL - + 82 ) FROM tab2
----
-167

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 65 * - 92 AS col1, - col1 - - 59 + + col0 * col1 * + col0 + + col1 + - col0 + - - 19 + col0 * + col1 * + col0 AS col0 FROM tab0 cor0
----
-5980
18799
-5980
317889
-5980
36513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 8 col0 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9026
SELECT + + COUNT( CAST( col0 AS DECIMAL ) ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9026
SELECT + + COUNT ( CAST ( col0 AS REAL ) ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9027
SELECT DISTINCT + col2 AS col0, col1 * - - CAST( NULL AS SIGNED ) + + + 63 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9027
SELECT DISTINCT + col2 AS col0, col1 * - - CAST ( NULL AS INTEGER ) + + + 63 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, col1 * - col0 FROM tab2
----
23
-2346
40
-4928
58
-5025

query I rowsort
SELECT ALL - 27 * col0 FROM tab2
----
-1242
-1728
-2025

query I rowsort
SELECT + 55 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
61
61
61

query II rowsort
SELECT col2, 87 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < + + col2 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT ALL 47 DIV + col0 col0 FROM tab2 WHERE NOT ( 72 ) IS NULL
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9035
SELECT ALL 47 / + col0 col0 FROM tab2 WHERE NOT ( 72 ) IS NULL
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT DISTINCT col2 * col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN ( - col1 + + col0 ) AND + 22
----

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT col2 * col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN ( - col1 + + col0 ) AND + 22
----

query I rowsort
SELECT ALL - 81 * 25 FROM tab1
----
-2025
-2025
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ( - MIN( - 86 ) ) AS col1 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-9038
SELECT ( - MIN ( - 86 ) ) AS col1 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT MIN( + col0 ) + COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9039
SELECT MIN ( + col0 ) + COUNT ( * ) FROM tab2
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col2 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / - col0 NOT IN ( col1 * + col2 )
----

query I rowsort
SELECT 62 * + col0 FROM tab2
----
2852
3968
4650

query I rowsort
SELECT 5 * 74 FROM tab2
----
370
370
370

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 81 FROM tab2 WHERE NULL BETWEEN col2 / - col2 AND 90
----

query I rowsort
SELECT ALL + 1 * + col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT 75 * - COUNT( * ) + - COUNT( * ) FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-9047
SELECT 75 * - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + MIN( + col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9048
SELECT + MIN ( + col0 ) col2 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT CAST( + 81 AS SIGNED ) FROM tab1
----
81
81
81

skipif mysql # not compatible
query I rowsort label-9049
SELECT CAST ( + 81 AS INTEGER ) FROM tab1
----
81
81
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 < 21
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9051
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + + CAST( NULL AS SIGNED ) = col2 * - 21
----

skipif mysql # not compatible
query III rowsort label-9051
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + + CAST ( NULL AS INTEGER ) = col2 * - 21
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9052
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + COUNT( * ) FROM tab1 WHERE NOT - ( col0 ) BETWEEN - ( col0 ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - ( col0 ) BETWEEN - ( col0 ) AND col1
----
0

query I rowsort
SELECT DISTINCT 68 * 91 FROM tab0
----
6188

query I rowsort
SELECT ALL 58 * + col1 FROM tab2
----
2958
3886
4466

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9057
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * + col2 NOT BETWEEN col1 AND + col0
----

skipif mysql # not compatible
query III rowsort label-9057
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * + col2 NOT BETWEEN col1 AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE 58 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col1
----

query I rowsort
SELECT 64 - col2 AS col1 FROM tab0 AS cor0
----
-35
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT - SUM( DISTINCT 1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT - SUM ( DISTINCT 1 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT 5 + - 61 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + ( col0 ) * + col0 + + col1 FROM tab2 AS cor0
----
2167
4173
5692

query I rowsort
SELECT ALL + 23 + + col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) BETWEEN 75 AND + col0
----
70

query I rowsort
SELECT DISTINCT col0 * col0 FROM tab1 WHERE NOT col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN ( NULL ) AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT - 76 DIV col0 col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9068
SELECT - 76 / col0 col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-9069
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT DISTINCT + 71 * 83 AS col2 FROM tab2 AS cor0
----
5893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT ALL + + 37 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2183
2516
3552

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL + + 37 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2183
2516
3552

query I rowsort
SELECT DISTINCT - col0 * 3 FROM tab0 AS cor0
----
-261
-291
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT MIN( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT MIN ( ALL - col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 92 + + col2 NOT BETWEEN - col2 + + col1 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9075
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 45 * col2 - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9075
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 45 * col2 - CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - ( ( - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9076
SELECT - ( ( - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT ALL + SUM( - col1 ) col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9077
SELECT ALL + SUM ( - col1 ) col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT ( + 16 ) NOT BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN - col2 + - col0 AND NULL
----

query I rowsort
SELECT ALL 68 FROM tab1 WHERE NOT - 62 * col2 NOT IN ( + col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT - COUNT( DISTINCT + col1 ) * COUNT( ALL + col0 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9082
SELECT - COUNT ( DISTINCT + col1 ) * COUNT ( ALL + col0 ) AS col1 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * + col1 + + col0 * + col0 <> ( + 97 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 66 * col2 * - 4 FROM tab2
----
10560
15312
6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9086
SELECT DISTINCT - 61 DIV COUNT( * ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - 61 / COUNT ( * ) FROM tab0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( col0 ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( col0 ) NOT IN ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT + 30 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT + 30 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL SUM( + + 45 ) col0 FROM tab2
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9090
SELECT ALL SUM ( + + 45 ) col0 FROM tab2
----
135

query I rowsort
SELECT + col2 * + + col0 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + col0 * + col1 FROM tab0 AS cor0 WHERE NOT ( ( 68 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 + col0 * 68 )
----

query I rowsort
SELECT - 12 + - col1 AS col2 FROM tab0 cor0
----
-13
-33
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col1 FROM tab2 cor0 WHERE + 93 > col1
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9096
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT * FROM tab1 WHERE + col1 * col0 NOT BETWEEN NULL AND ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 16, + col1 AS col1 FROM tab1 cor0
----
16
14
16
47
16
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT - + CAST( - col1 AS SIGNED ) * + + 63 - - col0 FROM tab2 AS cor0
----
3259
4296
4915

skipif mysql # not compatible
query I rowsort label-9099
SELECT - + CAST ( - col1 AS INTEGER ) * + + 63 - - col0 FROM tab2 AS cor0
----
3259
4296
4915

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL - 68 * 80 * + COUNT( * ) + - 16 + - ( COUNT( * ) ) FROM tab0 cor0
----
-16339

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - 68 * 80 * + COUNT ( * ) + - 16 + - ( COUNT ( * ) ) FROM tab0 cor0
----
-16339

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <= col0 * - 24
----

query II rowsort
SELECT DISTINCT col2 AS col1, col0 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
10
-1740
47
-1200
99
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN ( NULL ) AND - col2 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > + + 65 / 39
----

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > + + 65 / 39
----

query I rowsort
SELECT DISTINCT + ( - - 83 ) FROM tab2
----
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 70 BETWEEN - - col2 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 / - ( col1 ) + 74 / + col1 FROM tab2 WHERE + ( - + col0 ) * 67 >= ( col0 )
----

query I rowsort
SELECT - col1 + col1 FROM tab1 WHERE + col1 NOT IN ( + col0 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT DISTINCT MAX( DISTINCT + col1 ) + - COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT MAX ( DISTINCT + col1 ) + - COUNT ( * ) FROM tab1
----
44

query II rowsort
SELECT + col0 + - col2 AS col1, col2 FROM tab1
----
-45
96
23
68
26
59

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = col2 + - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT col2 + CAST( NULL AS SIGNED ) - col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9112
SELECT col2 + CAST ( NULL AS INTEGER ) - col1 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE + + col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col2 * + - 13 * col2 + - 88 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT ALL + 59 - - col1 FROM tab1
----
106
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT + COUNT( * ) * + + MIN( - 1 ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 66 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT + COUNT ( * ) * + + MIN ( - 1 ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 66 IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 62 + + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 62 + + col2 = NULL
----
0

query I rowsort
SELECT + col1 + 76 AS col2 FROM tab2 WHERE NOT col1 < ( col0 )
----
127
153

query I rowsort
SELECT ALL ( - 34 ) AS col2 FROM tab0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9122
SELECT col0 * + + CAST( + 52 AS SIGNED ), col2 FROM tab1
----
2652
96
4420
59
4732
68

skipif mysql # not compatible
query II rowsort label-9122
SELECT col0 * + + CAST ( + 52 AS INTEGER ), col2 FROM tab1
----
2652
96
4420
59
4732
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT col2 * 35 + col0 + + col0 + CAST( col0 AS SIGNED ) * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT col2 * 35 + col0 + + col0 + CAST ( col0 AS INTEGER ) * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 73 FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT + MAX( ALL col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT MAX( - + 5 ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT MAX ( - + 5 ) AS col1 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT ALL - - 39 FROM tab2 cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT + + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9128
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 44 AS col1, 50 * 84 FROM tab0 AS cor0
----
44
4200

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 59 = ( - 43 * - col1 + - 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 49 * - + col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9132
SELECT - CAST( CAST( 65 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-9132
SELECT - CAST ( CAST ( 65 AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 67 + - ( - col0 ) ) NOT IN ( - col2 * col2 )
----

query I rowsort
SELECT DISTINCT - col1 * 81 FROM tab0
----
-1701
-6561
-81

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE NOT ( + col2 / + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL + 82 AS col1 FROM tab0 cor0
----
82
82
82

query II rowsort
SELECT ALL col0, 22 FROM tab1 AS cor0
----
51
22
85
22
91
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9138
SELECT - - CAST( NULL AS SIGNED ) AS col1, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-9138
SELECT - - CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col2 * - 36 AS col1 FROM tab2 cor0 WHERE + col0 > ( - col2 - - col0 + col0 + - 45 )
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT - MIN( 85 ) AS col0 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT - MIN ( 85 ) AS col0 FROM tab1 AS cor0
----
-85

query II rowsort
SELECT ALL - - col1, 9 AS col1 FROM tab0 AS cor0
----
1
9
21
9
81
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT MIN( - 10 ) + + - SUM( + col2 ) FROM tab0
----
-166

skipif mysql # not compatible
query I rowsort label-9142
SELECT MIN ( - 10 ) + + - SUM ( + col2 ) FROM tab0
----
-166

query I rowsort
SELECT col0 + - col1 + + 19 AS col0 FROM tab1
----
56
63
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL - COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL - COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT - CAST( - - col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9145
SELECT - CAST ( - - col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - - 17 * - - col2 AS col0 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT ALL + col0 * - + col2 + + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-3404
-7488
-9375

query I rowsort
SELECT DISTINCT 44 * + + col1 FROM tab1 AS cor0
----
2068
220
616

query I rowsort
SELECT + 59 AS col1 FROM tab2 cor0
----
59
59
59

query III rowsort
SELECT * FROM tab1 WHERE 76 IS NULL
----

query I rowsort
SELECT DISTINCT + 85 * + - col0 + + ( + col0 ) FROM tab0
----
-1260
-7308
-8148

query I rowsort
SELECT - - 61 * + col1 + - - 10 AS col1 FROM tab2 AS cor0
----
3121
4097
4707

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT - + 22 DIV - + 81 * - col2 + - + 69 FROM tab0 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-9153
SELECT - + 22 / - + 81 * - col2 + - + 69 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT col2 + + + col1 + 32 AS col1 FROM tab2 cor0
----
106
149
157

query II rowsort
SELECT - col2 AS col1, - col1 - ( - 68 ) FROM tab1 AS cor0
----
-59
63
-68
21
-96
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( CAST( 31 AS SIGNED ) + - col2 * - + col0 )
----

skipif mysql # not compatible
query I rowsort label-9156
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( CAST ( 31 AS INTEGER ) + - col2 * - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - 63 col0 FROM tab1 AS cor0
----
3717
4284
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT DISTINCT + CAST( - 55 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + CAST ( - 55 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9159
SELECT + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 45 * ( - + col1 ) FROM tab2 AS cor0
----
-2295
-3015
-3465

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9161
SELECT DISTINCT + COUNT( + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + COUNT ( + + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL - COUNT( - 18 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL - COUNT ( - 18 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 54 + 71
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT + 81, COUNT( * ) AS col2 FROM tab2
----
81
3

skipif mysql # not compatible
query II rowsort label-9165
SELECT + 81, COUNT ( * ) AS col2 FROM tab2
----
81
3

query I rowsort
SELECT DISTINCT ( - col0 ) + col1 + + col2 * + ( 85 ) + - + ( + col1 ) AS col1 FROM tab1
----
4930
5689
8109

query I rowsort
SELECT ALL col2 + - 69 FROM tab0
----
-22
-59
30

query II rowsort
SELECT ALL 49 AS col1, + col1 * + 75 FROM tab2
----
49
3825
49
5025
49
5775

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9169
SELECT ALL * FROM tab2 WHERE NOT col0 IN ( + CAST( + CAST( - col2 AS SIGNED ) AS SIGNED ), col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9169
SELECT ALL * FROM tab2 WHERE NOT col0 IN ( + CAST ( + CAST ( - col2 AS INTEGER ) AS INTEGER ), col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - - 33 * + col0 AS col0 FROM tab0
----
2861
3102
448

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT 45 + + COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9171
SELECT 45 + + COUNT ( * ) FROM tab1
----
48

query I rowsort
SELECT - ( + 23 ) + 17 AS col0 FROM tab0 AS cor0
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND ( NOT - col0 <> NULL )
----

query I rowsort
SELECT ALL 18 * - col0 AS col0 FROM tab1 AS cor0
----
-1530
-1638
-918

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 75 * - 4 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( + col1 )
----

query I rowsort
SELECT DISTINCT + - ( - + col2 ) + - 10 * + col0 * + col2 - + 48 + + 85 * 22 FROM tab1 AS cor0
----
-47042
-48269
-59990

query I rowsort
SELECT DISTINCT - 27 * - 14 FROM tab0, tab1 AS cor0
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9180
SELECT ALL - ( - MAX( + 52 ) ) + + - COUNT( ALL col1 ) col0, - MAX( DISTINCT col2 ) DIV COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
49
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9180
SELECT ALL - ( - MAX ( + 52 ) ) + + - COUNT ( ALL col1 ) col0, - MAX ( DISTINCT col2 ) / COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
49
-19

query I rowsort
SELECT ALL col1 + - ( + + col0 ) FROM tab0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 + + + col2 - + 68 col2 FROM tab2
----
16
33
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= 55
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 14 / - - col1 NOT IN ( + col0, 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9185
SELECT DISTINCT - COUNT( * ) DIV - + 9 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT - COUNT ( * ) / - + 9 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab2 cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT ALL - + 75 DIV - - col2 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - + 75 / - - col2 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT - 34 * - + 57 * + - ( 73 ) FROM tab2 AS cor0
----
-141474
-141474
-141474

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + - 98 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - 95 + + COUNT( * ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 95 + + COUNT ( * ) FROM tab2 AS cor0
----
-92

query I rowsort
SELECT - + col1 * 28 FROM tab2 AS cor0
----
-1428
-1876
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL - ( - MAX( col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL - ( - MAX ( col2 ) ) FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 = 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - ( - col2 ) + - col2 * + 1 col2 FROM tab0
----
-175
-199
-41

query I rowsort
SELECT col1 * - + 83 * + col0 FROM tab2
----
-194718
-409024
-417075

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - COUNT( * ) col1 FROM tab1 WHERE + col0 + + + 18 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9197
SELECT - COUNT ( * ) col1 FROM tab1 WHERE + col0 + + + 18 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 22 * 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 68ef3a810d49363ee44327615941f2df

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT DISTINCT - ( + col2 ) - CAST( + 93 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-103
-140
-192

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - ( + col2 ) - CAST ( + 93 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-103
-140
-192

query I rowsort
SELECT DISTINCT - col0 - 75 FROM tab0 AS cor0
----
-162
-172
-90

query I rowsort
SELECT DISTINCT 89 FROM tab1 cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) - + col2 + - - col2 * col0 col1 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 84 + + col0 - + + col2 + 63 * col0 - + 12 + - - 96 / + 84 * - 82 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - + 19 ) * + 55 + - col2 AS col0 FROM tab0 AS cor0
----
-1055
-1092
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 81 col2 FROM tab0 AS cor0
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 12 <> - 62 * + + ( + 3 ) + col0 / - ( 99 )
----

query II rowsort
SELECT ALL + col0 AS col1, 5 FROM tab2
----
46
5
64
5
75
5

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - col2 BETWEEN - 82 * + col1 AND - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT - + col1 AS col0 FROM tab2 WHERE NOT + col0 BETWEEN + + col0 AND col0 * - + CAST( NULL AS SIGNED ) * - - CAST( + col0 AS SIGNED ) + 6
----

skipif mysql # not compatible
query I rowsort label-9210
SELECT - + col1 AS col0 FROM tab2 WHERE NOT + col0 BETWEEN + + col0 AND col0 * - + CAST ( NULL AS INTEGER ) * - - CAST ( + col0 AS INTEGER ) + 6
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 73 IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9212
SELECT CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9212
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT DISTINCT + 99 DIV + + 35 + - col1 FROM tab2 AS cor0
----
-49
-65
-75

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT + 99 / + + 35 + - col1 FROM tab2 AS cor0
----
-49
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT COUNT( + col2 ) * + - MAX( DISTINCT col2 ) + + MAX( + 84 ) FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-9214
SELECT COUNT ( + col2 ) * + - MAX ( DISTINCT col2 ) + + MAX ( + 84 ) FROM tab1 AS cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9215
SELECT ALL + 9 * + col2 * - CAST( col2 AS SIGNED ) + col1 DIV + CAST( ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-19886
-88209
-900

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + 9 * + col2 * - CAST ( col2 AS INTEGER ) + col1 / + CAST ( ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-19886
-88209
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9217
SELECT ALL + - col2 DIV col0 AS col2, - col1 col1 FROM tab0 AS cor0
----
-1
-1
-3
-81
0
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9217
SELECT ALL + - col2 / col0 AS col2, - col1 col1 FROM tab0 AS cor0
----
-1
-1
-3
-81
0
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9219
SELECT DISTINCT + + col1 * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + + col1 * + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - + 79 + - 89 + - col1 FROM tab2 AS cor0
----
1677
2994
4426

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT ( + + MIN( ALL + + 87 ) ) AS col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT ( + + MIN ( ALL + + 87 ) ) AS col0 FROM tab0 AS cor0
----
87

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT 87 AS col2, - 0 + + ( - col1 ) AS col1 FROM tab1
----
87
-14
87
-47
87
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT COUNT( + + 57 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT COUNT ( + + 57 ) FROM tab2
----
3

query I rowsort
SELECT + col0 + + 42 FROM tab2
----
106
117
88

query I rowsort
SELECT ALL - col2 + - - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT 14 * - - COUNT( * ) + + - 59 + COUNT( * ) AS col1 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT 14 * - - COUNT ( * ) + + - 59 + COUNT ( * ) AS col1 FROM tab2
----
-14

query I rowsort
SELECT + col0 + + ( col0 ) - + col1 AS col2 FROM tab1
----
135
165
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT DISTINCT COUNT( * ), - 95 AS col0 FROM tab0
----
3
-95

skipif mysql # not compatible
query II rowsort label-9229
SELECT DISTINCT COUNT ( * ), - 95 AS col0 FROM tab0
----
3
-95

query I rowsort
SELECT + 29 + 84 AS col1 FROM tab0
----
113
113
113

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT + 32 + - col2 DIV 46 AS col1 FROM tab0 AS cor0
----
30
31
32

skipif mysql # not compatible
query I rowsort label-9231
SELECT + 32 + - col2 / 46 AS col1 FROM tab0 AS cor0
----
30
31
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 92 FROM tab2 AS cor0 WHERE NULL > - 90 * + + col1 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - col2
----

query I rowsort
SELECT col2 * - ( col2 ) - - col0 + - col1 AS col2 FROM tab0
----
-2275
-34
-9705

onlyif mysql # DIV for integer division: 
query II rowsort label-9236
SELECT ( + ( - col0 ) ) - + + 86 AS col1, - col2 DIV + 88 + col2 FROM tab0
----
-101
47
-173
10
-183
98

skipif mysql # not compatible
query II rowsort label-9236
SELECT ( + ( - col0 ) ) - + + 86 AS col1, - col2 / + 88 + col2 FROM tab0
----
-101
47
-173
10
-183
98

query I rowsort
SELECT ALL 88 - + + ( - col1 ) - - col2 FROM tab1 AS cor0
----
152
198
203

query I rowsort
SELECT 53 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
53
53
53

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( 34 ) BETWEEN col2 AND - + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL NOT IN ( col2, col1 ) )
----

query I rowsort
SELECT ALL + - 45 AS col0 FROM tab2 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT COUNT( DISTINCT - 26 ) * - + COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9242
SELECT COUNT ( DISTINCT - 26 ) * - + COUNT ( * ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT + SUM( ALL + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT + SUM ( ALL + col1 ) AS col0 FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 WHERE NOT 14 * + 86 - - - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT - col2 DIV 51 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT - col2 / 51 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN ( ( + 59 ) - - + 13 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9247
SELECT DISTINCT ( - MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT ( - MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL MIN( ALL + 84 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL MIN ( ALL + 84 ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col2 - + 49 AS col1 FROM tab2
----
1009
2511
4301

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 * - - col2 / - 90 * ( col1 ) / col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 70 + 64 + - 6 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + + ( + col0 ) - - col1 FROM tab1 cor0
----
430
4324
728

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - - col1 + + + col1 - - 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 66 * - col2 * col0 + 14 * col1 FROM tab2 AS cor0
----
-167882
-286162
-69114

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT - MIN( DISTINCT + col1 ) + COUNT( * ) + + COUNT( * ) AS col2, + COUNT( * ) * + 52 AS col2 FROM tab2 AS cor0
----
-45
156

skipif mysql # not compatible
query II rowsort label-9255
SELECT - MIN ( DISTINCT + col1 ) + COUNT ( * ) + + COUNT ( * ) AS col2, + COUNT ( * ) * + 52 AS col2 FROM tab2 AS cor0
----
-45
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT DISTINCT + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2 - + 63 + + 40, ( + - col1 ) * + + col1 )
----

query I rowsort
SELECT ALL + - col0 * - - col1 + + 23 FROM tab0 AS cor0
----
-1192
-1804
-74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1
----

query II rowsort
SELECT - col0 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9261
SELECT + - ( - col0 ) AS col0, 73 DIV col1 FROM tab2 AS cor0
----
46
1
64
0
75
1

skipif mysql # not compatible
query II rowsort label-9261
SELECT + - ( - col0 ) AS col0, 73 / col1 FROM tab2 AS cor0
----
46
1
64
0
75
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9262
SELECT 81, col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
81
-1
81
-1
81
-1

skipif mysql # not compatible
query II rowsort label-9262
SELECT 81, col0 / - col0 AS col0 FROM tab0 AS cor0
----
81
-1
81
-1
81
-1

query II rowsort
SELECT - col0 * - col2, + col2 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT ALL + col0 * - ( + col1 ) + - - 81 FROM tab2
----
-2265
-4847
-4944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 + ( - col2 ) col0 FROM tab2
----
114
76
79

query I rowsort
SELECT DISTINCT - col2 * + 94 AS col0 FROM tab2 WHERE NOT - col2 / + + col1 + 98 IS NULL
----
-2162
-3760
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL 63 * - 11 * + COUNT( * ) * + + 19 * + - COUNT( * ) + + 23 FROM tab2
----
118526

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL 63 * - 11 * + COUNT ( * ) * + + 19 * + - COUNT ( * ) + + 23 FROM tab2
----
118526

query I rowsort
SELECT - - ( - col1 ) + + + col0 + 51 AS col1 FROM tab2 cor0
----
38
46
59

query I rowsort
SELECT DISTINCT 82 - + 5 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT + - 53 + + COUNT( * ), 74 AS col1 FROM tab0 AS cor0
----
-50
74

skipif mysql # not compatible
query II rowsort label-9270
SELECT + - 53 + + COUNT ( * ), 74 AS col1 FROM tab0 AS cor0
----
-50
74

query I rowsort
SELECT ( - col2 ) + - col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT CAST( NULL AS SIGNED ) + + ( col1 ) / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT CAST ( NULL AS INTEGER ) + + ( col1 ) / - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( col0 ) FROM tab2 AS cor0 WHERE NOT 21 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT - MAX( ALL 3 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - MAX ( ALL 3 ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT + + 86 AS col0, col0 FROM tab2 AS cor0
----
86
46
86
64
86
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - SUM( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - SUM ( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT + col0 AS col1, + col2 AS col2 FROM tab2 cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <= + - col1
----

query II rowsort
SELECT - - col2, col0 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + 30 * - COUNT( * ) + 40 - - + 84 + - MAX( ALL - col0 ) / 22 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT + 30 * - COUNT ( * ) + 40 - - + 84 + - MAX ( ALL - col0 ) / 22 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1 cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col2 col2, 4 AS col1 FROM tab1
----
-3481
4
-4624
4
-9216
4

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 98 - + col2 = NULL
----

query I rowsort
SELECT + col2 * + - 22 FROM tab0 WHERE NOT - 10 + + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - COUNT( col2 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9286
SELECT - COUNT ( col2 ) col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE NOT CAST( - col2 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9287
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9288
SELECT 28 DIV ( - COUNT( - col2 ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9288
SELECT 28 / ( - COUNT ( - col2 ) ) AS col2 FROM tab0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9289
SELECT COUNT( * ) * - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9290
SELECT ALL + CAST( + 89 AS SIGNED ) FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + CAST ( + 89 AS INTEGER ) FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT + ( - 37 ) * - 23 * col1 FROM tab2 AS cor0
----
43401
57017
65527

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - - col0 + - col2 - - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - - ( col2 ) + 92 FROM tab2 AS cor0
----
115
132
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + ( col2 ) ) AS col1, col1 col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT ALL MAX( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT - col1 + 39 * col2 / 2 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL MAX ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT - col1 + 39 * col2 / 2 IS NULL
----
96

query I rowsort
SELECT DISTINCT 37 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + 63 AS col0 FROM tab0 AS cor0
----
-2961
-6237
-630

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( + + col2 * + 30 * - 47 + 26 IS NOT NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT - 90 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT - 90 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL - col1 * + - col0 + - col0 AS col2 FROM tab0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT + MAX( ALL - col0 ) + + + 3 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9301
SELECT + MAX ( ALL - col0 ) + + + 3 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT 27 + - ( ( + COUNT( * ) ) ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9302
SELECT 27 + - ( ( + COUNT ( * ) ) ) AS col0 FROM tab1
----
24

query I rowsort
SELECT DISTINCT col2 * + col2 - - col1 AS col1 FROM tab1
----
3486
4671
9230

query II rowsort
SELECT + col1, + col2 * - 13 FROM tab2
----
51
-299
67
-754
77
-520

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 60 * + col0 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT - + col2 - - + 3 AS col1 FROM tab1 AS cor0
----
-56
-65
-93

query I rowsort
SELECT + col0 * - ( - 0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 12 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9310
SELECT ALL - 81 DIV - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 81 / - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
78

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE ( NULL ) >= - 71
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / + col2 + + + col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 54 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * + 86 FROM tab1
----
-1204
-4042
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL - COUNT( ALL 8 ) AS col0 FROM tab2 WHERE NOT + + 98 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - COUNT ( ALL 8 ) AS col0 FROM tab2 WHERE NOT + + 98 IS NOT NULL
----
0

query I rowsort
SELECT - 61 * - col2 AS col2 FROM tab1
----
3599
4148
5856

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT DISTINCT - col2 DIV + - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - col2 / + - col1 FROM tab2
----
0

query II rowsort
SELECT - col2, - 70 AS col0 FROM tab1
----
-59
-70
-68
-70
-96
-70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <= + ( col2 ) + + col1 / 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL - MAX( DISTINCT + 59 ) AS col1 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL - MAX ( DISTINCT + 59 ) AS col1 FROM tab2
----
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - col2 / - col0 + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT 61 AS col2, COUNT( * ) FROM tab2 AS cor0
----
61
3

skipif mysql # not compatible
query II rowsort label-9326
SELECT 61 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
61
3

query II rowsort
SELECT + col2 * col2 + 25 AS col0, - 72 + - col2 FROM tab2 AS cor0
----
1625
-112
3389
-130
554
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - + 18 * + COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9328
SELECT - + 18 * + COUNT ( * ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT + MIN( DISTINCT - ( + col0 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9329
SELECT + MIN ( DISTINCT - ( + col0 ) ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT ( - col1 ) * - + col1 + - - col0 AS col0 FROM tab2
----
2647
4564
5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 + - - col2 col1 FROM tab0
----
184
293
77

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 86 + - col0 AS col1 FROM tab0 AS cor0
----
-1
-11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9335
SELECT DISTINCT - ( + col0 ), - 83 + + col1 - - col0 DIV - CAST( - 63 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-32
-64
-5
-75
-15

skipif mysql # not compatible
query II rowsort label-9335
SELECT DISTINCT - ( + col0 ), - 83 + + col1 - - col0 / - CAST ( - 63 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-32
-64
-5
-75
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT + col1 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9336
SELECT + col1 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL - - col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 16 * + + col1 IN ( col0 * - ( - col0 ), + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT col1 DIV - - col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9339
SELECT col1 / - - col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 + - - col1 + + col2 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 0 < + 60 * - 65
----

query I rowsort
SELECT ALL - 46 * col0 * + col0 + col1 FROM tab0 AS cor0 WHERE NOT + col2 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9344
SELECT - - SUM( ALL - col1 ) + ( - ( + - COUNT( * ) ) ), + MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-63
-5

skipif mysql # not compatible
query II rowsort label-9344
SELECT - - SUM ( ALL - col1 ) + ( - ( + - COUNT ( * ) ) ), + MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-63
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT ALL MAX( - col1 ) AS col2, MIN( - 20 ) AS col1 FROM tab1
----
-5
-20

skipif mysql # not compatible
query II rowsort label-9345
SELECT ALL MAX ( - col1 ) AS col2, MIN ( - 20 ) AS col1 FROM tab1
----
-5
-20

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 48 IS NOT NULL
----

query I rowsort
SELECT + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query II rowsort
SELECT + 99, col0 FROM tab0 AS cor0
----
99
15
99
87
99
97

query II rowsort
SELECT DISTINCT col1 * + + col0, + 61 * - 68 AS col1 FROM tab2 AS cor0
----
2346
-4148
4928
-4148
5025
-4148

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT DISTINCT - + col2 DIV col2 + + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT - + col2 / col2 + + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9351
SELECT ALL + 68 DIV - + col0 + + - col1 + + col2 FROM tab1 AS cor0
----
21
54
81

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL + 68 / - + col0 + + - col1 + + col2 FROM tab1 AS cor0
----
21
54
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT SUM( 32 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9352
SELECT SUM ( 32 ) FROM tab0 AS cor0
----
96

query II rowsort
SELECT + col2 AS col2, - col1 * - 98 FROM tab2 AS cor0
----
23
4998
40
7546
58
6566

onlyif mysql # DIV for integer division: 
query I rowsort label-9354
SELECT - + col1 DIV - - col2 + - 38 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-39
-39
-40

skipif mysql # not compatible
query I rowsort label-9354
SELECT - + col1 / - - col2 + - 38 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-39
-39
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9355
SELECT ALL CAST( NULL AS SIGNED ) / - 19 AS col0, - 34 AS col0 FROM tab2 AS cor0
----
NULL
-34
NULL
-34
NULL
-34

skipif mysql # not compatible
query II rowsort label-9355
SELECT ALL CAST ( NULL AS INTEGER ) / - 19 AS col0, - 34 AS col0 FROM tab2 AS cor0
----
NULL
-34
NULL
-34
NULL
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT + ( - 6 ) + - - 45 FROM tab1 WHERE NOT col2 * + CAST( + 19 AS SIGNED ) IS NULL
----
39
39
39

skipif mysql # not compatible
query I rowsort label-9356
SELECT + ( - 6 ) + - - 45 FROM tab1 WHERE NOT col2 * + CAST ( + 19 AS INTEGER ) IS NULL
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT ALL - COUNT( * ) - + 4 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
-4

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - COUNT ( * ) - + 4 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT - CAST( - col2 AS SIGNED ) * - col1 + + col0 + - 94 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT - CAST ( - col2 AS INTEGER ) * - col1 + + col0 + - 94 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT DISTINCT MIN( ALL - col0 ) * CAST( NULL AS SIGNED ) + + 50 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT MIN ( ALL - col0 ) * CAST ( NULL AS INTEGER ) + + 50 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT 83 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT + col2 / 98 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ), col2, - 39, + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9361
SELECT + col2 / 98 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ), col2, - 39, + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT - + SUM( + + col0 ), ( 0 ) AS col2 FROM tab2 AS cor0
----
-185
0

skipif mysql # not compatible
query II rowsort label-9362
SELECT - + SUM ( + + col0 ), ( 0 ) AS col2 FROM tab2 AS cor0
----
-185
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 60 BETWEEN ( - + 82 * + col1 - - col2 ) AND NULL
----

query II rowsort
SELECT - col0 AS col2, ( - col0 ) FROM tab1
----
-51
-51
-85
-85
-91
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT - CAST( - 26 AS SIGNED ) * - 48 * - MAX( DISTINCT 32 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
39936

skipif mysql # not compatible
query I rowsort label-9365
SELECT - CAST ( - 26 AS INTEGER ) * - 48 * - MAX ( DISTINCT 32 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
39936

query II rowsort
SELECT DISTINCT col2, - 65 AS col1 FROM tab1
----
59
-65
68
-65
96
-65

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
52

query I rowsort
SELECT - 83 - + col1 AS col2 FROM tab0 AS cor0
----
-104
-164
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT DISTINCT + col1 - - ( - col2 ) DIV + 44 + + + col0 FROM tab0 AS cor0
----
108
95
96

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + col1 - - ( - col2 ) / + 44 + + + col0 FROM tab0 AS cor0
----
108
95
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT + MAX( DISTINCT 82 ) AS col1 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + MAX ( DISTINCT 82 ) AS col1 FROM tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT + + 69 FROM tab2 cor0
----
69

query I rowsort
SELECT col1 * 19 * - col1 * - - col2 + - col0 AS col0 FROM tab2
----
-1136683
-4506104
-4946953

query I rowsort
SELECT ALL col0 + 92 * - col1 AS col1 FROM tab1
----
-1237
-375
-4233

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - COUNT( + + col0 ) + - 89 AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9374
SELECT - COUNT ( + + col0 ) + - 89 AS col1 FROM tab2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9375
SELECT 19 * + - col1, col1 * CAST( NULL AS SIGNED ) - - col0 * + + col0 AS col1 FROM tab2
----
-1273
NULL
-1463
NULL
-969
NULL

skipif mysql # not compatible
query II rowsort label-9375
SELECT 19 * + - col1, col1 * CAST ( NULL AS INTEGER ) - - col0 * + + col0 AS col1 FROM tab2
----
-1273
NULL
-1463
NULL
-969
NULL

query I rowsort
SELECT ALL + - col2 + + col2 AS col1 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + 29 * 5 + + col1 FROM tab1
----
150
159
192

query I rowsort
SELECT DISTINCT col2 + + - col1 + - col0 * col2 FROM tab1
----
-4814
-4961
-6167

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT MAX( + 59 ) AS col1 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-9379
SELECT MAX ( + 59 ) AS col1 FROM tab0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9380
SELECT ALL - ( + ( col2 ) ) + + + 19 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL - ( + ( col2 ) ) + + + 19 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT COUNT( ALL - 29 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9381
SELECT COUNT ( ALL - 29 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + col2 * + col1 * 73 AS col2 FROM tab0 AS cor0
----
15330
277911
7227

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT - SUM( ALL + + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9383
SELECT - SUM ( ALL + + col2 ) AS col1 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - col1 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN 70 + - + col1 AND col2 + - + col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9386
SELECT ALL - - CAST( col2 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL - - CAST ( col2 AS INTEGER ) / col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 * ( + 24 ) FROM tab0 cor0
----
-2376
-5040
-91368

query I rowsort
SELECT ALL + - ( + col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab1 cor0
----
88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + + col1 = + + col1 - 80 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * + 39 * - 89 + - 30 IS NOT NULL
----

query I rowsort
SELECT ( + 97 ) FROM tab0
----
97
97
97

query II rowsort
SELECT ALL + 29 + col0, - 70 * 1 AS col0 FROM tab1
----
114
-70
120
-70
80
-70

query I rowsort
SELECT ALL 68 + + col2 * 13 FROM tab0
----
1355
198
679

query I rowsort
SELECT ( + 45 ) FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT col2 * - 26 AS col1 FROM tab2
----
-1040
-1508
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) < NULL )
----
0

query I rowsort
SELECT DISTINCT - + ( + - 11 ) FROM tab0 cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT ALL COUNT( * ) DIV 45 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL COUNT ( * ) / 45 AS col0 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, 76 AS col2 FROM tab2 AS cor0
----
51
76
67
76
77
76

query I rowsort
SELECT - 92 + - 87 FROM tab2 cor0
----
-179
-179
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - 96 + + SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 96 + + SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT + col1 * 8 AS col1 FROM tab0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 / - 12 IS NULL
----

query I rowsort
SELECT - col1 * - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL - COUNT( * ) * - + 70 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9407
SELECT ALL - COUNT ( * ) * - + 70 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + MAX( DISTINCT - 29 ) col0 FROM tab2 cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9408
SELECT + MAX ( DISTINCT - 29 ) col0 FROM tab2 cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT - MAX( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - MAX ( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT + - COUNT( * ) * + + 58 - + 62 AS col0 FROM tab0 AS cor0
----
-236

skipif mysql # not compatible
query I rowsort label-9410
SELECT + - COUNT ( * ) * + + 58 - + 62 AS col0 FROM tab0 AS cor0
----
-236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT - CAST( - + ( - - ( + COUNT( * ) ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9411
SELECT - CAST ( - + ( - - ( + COUNT ( * ) ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 99 - - + col1 - - 26 AS col0 FROM tab2 AS cor0
----
176
192
202

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE - col1 + - 86 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT MAX( ALL + - CAST( - 57 AS SIGNED ) ) AS col2 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-9414
SELECT MAX ( ALL + - CAST ( - 57 AS INTEGER ) ) AS col2 FROM tab1
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col0 FROM tab0
----
-70

query I rowsort
SELECT ALL 6 * - 51 + - 49 - + + col1 AS col0 FROM tab0 AS cor0
----
-356
-376
-436

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9417
SELECT + - col2 AS col0, - col2 + CAST( - 7 AS SIGNED ) FROM tab1 cor0
----
-59
-66
-68
-75
-96
-103

skipif mysql # not compatible
query II rowsort label-9417
SELECT + - col2 AS col0, - col2 + CAST ( - 7 AS INTEGER ) FROM tab1 cor0
----
-59
-66
-68
-75
-96
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT + COUNT( * ) AS col2, + COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-9418
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
3
9

query I rowsort
SELECT ALL + + ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + AVG ( + 55 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 3 * - 65 * + - col1 + + - ( 34 ) AS col1 FROM tab2 AS cor0
----
13031
14981
9911

query II rowsort
SELECT DISTINCT ( 93 ) * ( + col2 ), + 30 AS col1 FROM tab1 AS cor0
----
5487
30
6324
30
8928
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT DISTINCT + + CAST( - ( col1 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + + CAST ( - ( col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 * + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9426
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT col2 = NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> col1 - + 50
----

query I rowsort
SELECT + col2 + - 71 FROM tab0
----
-24
-61
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT DISTINCT CAST( - 16 AS SIGNED ) * + COUNT( * ) * 16 AS col2 FROM tab1
----
-768

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT CAST ( - 16 AS INTEGER ) * + COUNT ( * ) * 16 AS col2 FROM tab1
----
-768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT - ( col1 ) + + - 69 * - CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT - ( col1 ) + + - 69 * - CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * + 84 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col0 * - + col2 + 7 FROM tab0 AS cor0
----
-698
-863
-9596

query I rowsort
SELECT + 75 + 66 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL 94 + - + 71 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL 94 + - + 71 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 <= + + ( - + 50 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 90 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT 96 - + COUNT( DISTINCT col1 ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-9439
SELECT 96 - + COUNT ( DISTINCT col1 ) AS col2 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT COUNT( * ) - - - COUNT( * ) + - 43 AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-9440
SELECT COUNT ( * ) - - - COUNT ( * ) + - 43 AS col2 FROM tab1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9441
SELECT DISTINCT - 54 DIV + - 8 + + MAX( ALL - + col1 ) + - 14 + + MAX( ALL - col1 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT - 54 / + - 8 + + MAX ( ALL - + col1 ) + - 14 + + MAX ( ALL - col1 ) FROM tab1 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9442
SELECT ALL + col1 - - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + col1 - - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT - - col1 - + 15 - 78 FROM tab1 cor0
----
-46
-79
-88

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( - col2 + + col0 IS NULL ) )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * - - 98 * - col1 AS col0 FROM tab2
----
-114954
-301840
-380828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9446
SELECT DISTINCT + + 80 FROM tab1 WHERE NOT NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT + + 80 FROM tab1 WHERE NOT NULL < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( + + ( col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - 82 * COUNT( * ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-9448
SELECT - 82 * COUNT ( * ) FROM tab2
----
-246

query I rowsort
SELECT + col1 + - col1 * 74 FROM tab2 AS cor0
----
-3723
-4891
-5621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT - - ( + COUNT( ALL CAST( - + ( col2 ) AS SIGNED ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT - - ( + COUNT ( ALL CAST ( - + ( col2 ) AS INTEGER ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 < 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9452
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9452
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + - AVG ( - + 18 ) col0 FROM tab2 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + col1 * 58 - - - 72 + + - col1 FROM tab0
----
1135
4592
84

query I rowsort
SELECT ALL 74 + 8 + col1 + col1 * ( 63 ) - - 48 AS col2 FROM tab2
----
3394
4418
5058

query I rowsort
SELECT DISTINCT + col1 + col2 * ( + - 50 ) AS col0 FROM tab1 WHERE NOT + + col1 * 82 IS NULL
----
-2945
-3353
-4786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + + - col0 col2 FROM tab0 AS cor0
----
-12
-2
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT + col2 - - col2 - + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT MIN( + + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9460
SELECT MIN ( + + col1 ) FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

query I rowsort
SELECT ALL 63 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9463
SELECT DISTINCT - COUNT( * ) * 59 + + COUNT( * ) AS col0, SUM( ALL - + 95 ) FROM tab1 AS cor0
----
-174
-285

skipif mysql # not compatible
query II rowsort label-9463
SELECT DISTINCT - COUNT ( * ) * 59 + + COUNT ( * ) AS col0, SUM ( ALL - + 95 ) FROM tab1 AS cor0
----
-174
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, 20 col0 FROM tab0 AS cor0
----
-1
20
-21
20
-81
20

query I rowsort
SELECT ALL col0 / 66 FROM tab0 WHERE NOT - col0 <> - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9466
SELECT DISTINCT - COUNT( * ), + MIN( + ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 WHERE NOT - 34 NOT BETWEEN + + col0 AND + 85
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9466
SELECT DISTINCT - COUNT ( * ), + MIN ( + ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 WHERE NOT - 34 NOT BETWEEN + + col0 AND + 85
----
0
NULL

query I rowsort
SELECT ALL ( - col0 ) * - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query II rowsort label-9468
SELECT DISTINCT + 1 DIV col2, - 63 * 43 AS col1 FROM tab2
----
0
-2709

skipif mysql # not compatible
query II rowsort label-9468
SELECT DISTINCT + 1 / col2, - 63 * 43 AS col1 FROM tab2
----
0
-2709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, - col2 col1 FROM tab1
----
51
-96
85
-59
91
-68

query II rowsort
SELECT DISTINCT 85 - + col2, + 74 / + + col0 AS col0 FROM tab1 WHERE NOT - 3 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT 73 * COUNT( * ) * + 20 FROM tab0
----
4380

skipif mysql # not compatible
query I rowsort label-9471
SELECT 73 * COUNT ( * ) * + 20 FROM tab0
----
4380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * - col0 col1 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT DISTINCT - col2 * 17 AS col2 FROM tab2
----
-391
-680
-986

query II rowsort
SELECT col2, + 17 FROM tab0 AS cor0
----
10
17
47
17
99
17

query II rowsort
SELECT col0, + col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * - col2 * + col2 + 92 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT + MAX( ALL + col1 ), - 11 AS col1 FROM tab1
----
47
-11

skipif mysql # not compatible
query II rowsort label-9477
SELECT + MAX ( ALL + col1 ), - 11 AS col1 FROM tab1
----
47
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT - SUM( DISTINCT - + col1 ) * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT - SUM ( DISTINCT - + col1 ) * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT 31 * + - ( - 31 ) AS col0, 56 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT + - MIN( + 25 ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + - MIN ( + 25 ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL + 40 * + - col1 AS col0 FROM tab2 AS cor0
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + COUNT( * ) + 67 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
67

skipif mysql # not compatible
query I rowsort label-9482
SELECT + COUNT ( * ) + 67 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
67

query I rowsort
SELECT ALL - col1 + - + col2 * + col0 * - col2 AS col2 FROM tab2 cor0
----
102323
24283
252233

query I rowsort
SELECT + col0 FROM tab2 WHERE + - col2 * - 51 IS NULL
----

query II rowsort
SELECT DISTINCT + + 94, + 50 AS col0 FROM tab1 WHERE + - 69 NOT BETWEEN col0 AND col2
----
94
50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 BETWEEN + 12 AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT ( col0 ) DIV col2 DIV - - col1 + + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9487
SELECT ( col0 ) / col2 / - - col1 + + col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT + COUNT( * ) + + 29 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + COUNT ( * ) + + 29 FROM tab0
----
32

query I rowsort
SELECT 53 + col2 AS col1 FROM tab0
----
100
152
63

query I rowsort
SELECT - col2 * - 82 FROM tab1 cor0
----
4838
5576
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL COUNT( * ) - + 6 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL COUNT ( * ) - + 6 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + ( 6 ) / col1 AS col1 FROM tab2 WHERE ( col0 * + col0 ) BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9493
SELECT - CAST( NULL AS DECIMAL ) / - 16 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT - CAST ( NULL AS REAL ) / - 16 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT ALL + MAX( DISTINCT - col0 ) * - SUM( CAST( NULL AS SIGNED ) * + 17 - 41 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL + MAX ( DISTINCT - col0 ) * - SUM ( CAST ( NULL AS INTEGER ) * + 17 - 41 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9496
SELECT + 61 DIV - COUNT( * ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-9496
SELECT + 61 / - COUNT ( * ) FROM tab2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT - COUNT( ( col2 ) ) DIV 23 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT - COUNT ( ( col2 ) ) / 23 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE 59 IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT ALL - col2 + col1 AS col2 FROM tab1 WHERE ( 99 / CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - col2 + col1 AS col2 FROM tab1 WHERE ( 99 / CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( col1 )
----

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT ( MIN( ALL - 5 ) ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT ( MIN ( ALL - 5 ) ) AS col2 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT ( col0 ) NOT IN ( col2 + + 11 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 91 / - col0 ) NOT IN ( col0 + + col1 )
----

query I rowsort
SELECT - col1 / + col2 AS col0 FROM tab2 WHERE NOT NULL IN ( 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE - col0 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT 70 NOT BETWEEN ( - 69 ) AND ( col0 + col1 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT 52 + + COUNT( * ) AS col0 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-9510
SELECT 52 + + COUNT ( * ) AS col0 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT - SUM( ALL - col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9511
SELECT - SUM ( ALL - col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT 93 BETWEEN col2 AND - 95
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT ALL 45 + + col2 DIV 28 AS col2 FROM tab0
----
45
46
48

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL 45 + + col2 / 28 AS col2 FROM tab0
----
45
46
48

query I rowsort
SELECT ( + col2 ) + ( 8 ) FROM tab0
----
107
18
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT ALL - CAST( NULL AS SIGNED ) + - ( - col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( - col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 ) + - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 40 NOT IN ( - ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 14 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9520
SELECT ALL col1 FROM tab1 WHERE NOT NULL BETWEEN + 82 + - CAST( NULL AS DECIMAL ) / - 50 AND col2
----

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL col1 FROM tab1 WHERE NOT NULL BETWEEN + 82 + - CAST ( NULL AS REAL ) / - 50 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT ALL + col1 DIV + col2 + 44 FROM tab1
----
44
44
44

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + col1 / + col2 + 44 FROM tab1
----
44
44
44

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL + + SUM( - col2 ) * + COUNT( * ) FROM tab1 cor0
----
-669

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + + SUM ( - col2 ) * + COUNT ( * ) FROM tab1 cor0
----
-669

query III rowsort
SELECT * FROM tab0 cor0 WHERE 98 BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT DISTINCT - col1 DIV - 83 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - col1 / - 83 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 83 + + col0 AS col1 FROM tab1 AS cor0
----
134
168
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT - - CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9528
SELECT - - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL >= 27
----

query I rowsort
SELECT - - ( 84 ) AS col2 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT - + 29 * - 40 FROM tab2 AS cor0
----
1160
1160
1160

query I rowsort
SELECT ALL 57 AS col2 FROM tab1 AS cor0 WHERE NOT ( 18 + + col1 ) IS NOT NULL
----

query I rowsort
SELECT + 81 * + col1 AS col1 FROM tab2 AS cor0
----
4131
5427
6237

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) <> 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE 93 * - col0 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT - col1 BETWEEN - col0 AND + col0 OR + 94 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 11 ) / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + + 31 - col2 AS col2 FROM tab1
----
-33
-79
-84

query I rowsort
SELECT - AVG ( - col1 ) AS col0 FROM tab0 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT ALL 82 + + CAST( - col2 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
-14
14
23

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL 82 + + CAST ( - col2 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
-14
14
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 BETWEEN + 72 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * 55 FROM tab0 WHERE ( col1 * + col0 ) IS NOT NULL
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL - 39 + - + ( MIN( ALL col2 ) ) - - 10 col0 FROM tab0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9543
SELECT ALL - 39 + - + ( MIN ( ALL col2 ) ) - - 10 col0 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT MAX( ALL + 74 ) + 10 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT MAX ( ALL + 74 ) + 10 FROM tab0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9545
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + + col1 * + col1 * 48 + 85 FROM tab1 AS cor0
----
106117
1285
9493

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - 15 + - COUNT( * ) AS col1 FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 15 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 22 + - ( ( 50 ) ) AS col1 FROM tab1 AS cor0
----
-72
-72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT - 17 * col2 - + col1 + - ( col1 ) * ( col1 DIV col2 ) AS col0 FROM tab2 AS cor0
----
-1120
-544
-834

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 17 * col2 - + col1 + - ( col1 ) * ( col1 / col2 ) AS col0 FROM tab2 AS cor0
----
-1120
-544
-834

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + COUNT( + 67 ) FROM tab0 AS cor0 WHERE 69 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT + COUNT ( + 67 ) FROM tab0 AS cor0 WHERE 69 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 91 <> ( col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9553
SELECT + 92 col2 FROM tab0 WHERE NOT col2 BETWEEN col2 AND ( - ( CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9553
SELECT + 92 col2 FROM tab0 WHERE NOT col2 BETWEEN col2 AND ( - ( CAST ( NULL AS REAL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT + MAX( DISTINCT + - CAST( - + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9554
SELECT + MAX ( DISTINCT + - CAST ( - + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - ( 71 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT - 81 DIV - + col2 FROM tab0 cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9556
SELECT - 81 / - + col2 FROM tab0 cor0
----
0
1
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND NULL
----

query II rowsort
SELECT - 2 AS col0, col2 + - col1 + col0 FROM tab2 AS cor0
----
-2
18
-2
27
-2
66

query II rowsort
SELECT DISTINCT + col0, ( - + 13 ) FROM tab1 AS cor0
----
51
-13
85
-13
91
-13

query I rowsort
SELECT DISTINCT - + 65 * - col1 * + - 88 FROM tab2 AS cor0
----
-291720
-383240
-440440

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 22 / - 58 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT ( - col2 ) DIV col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9562
SELECT ( - col2 ) / col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + MAX( col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-9563
SELECT + MAX ( col0 ) FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT - COUNT( DISTINCT - 91 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT - COUNT ( DISTINCT - 91 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9565
SELECT MAX( DISTINCT + col1 ) DIV 26 AS col2 FROM tab1 AS cor0 WHERE NOT col2 = 91
----
1

skipif mysql # not compatible
query I rowsort label-9565
SELECT MAX ( DISTINCT + col1 ) / 26 AS col2 FROM tab1 AS cor0 WHERE NOT col2 = 91
----
1

query I rowsort
SELECT ALL + col1 * - - 63 FROM tab2 AS cor0
----
3213
4221
4851

query I rowsort
SELECT DISTINCT + 40 - col2 AS col2 FROM tab0 WHERE NULL IN ( + + 30 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9568
SELECT ALL + COUNT( * ) * - COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL + COUNT ( * ) * - COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 > + - col2
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 25 col2, - 80 AS col0 FROM tab0
----
1175
-80
2475
-80
250
-80

query I rowsort
SELECT ALL col2 * + 42 FROM tab0
----
1974
4158
420

query I rowsort
SELECT ( + col1 ) * - 2 AS col0 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9573
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT + COUNT( * ) + + COUNT( - col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT + COUNT ( * ) + + COUNT ( - col2 ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT + COUNT( - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9575
SELECT + COUNT ( - col2 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT COUNT( * ) * + 14 col0 FROM tab2
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9576
SELECT COUNT ( * ) * + 14 col0 FROM tab2
----
42

query I rowsort
SELECT 8 * + col2 FROM tab2
----
184
320
464

query I rowsort
SELECT DISTINCT col1 + - - 32 AS col0 FROM tab1
----
37
46
79

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE 5 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT 9 * 16 DIV col2 * - 26 FROM tab0 AS cor0
----
-26
-364
-78

skipif mysql # not compatible
query I rowsort label-9580
SELECT 9 * 16 / col2 * - 26 FROM tab0 AS cor0
----
-26
-364
-78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 38 * - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - 48 * SUM( - - 91 ) FROM tab1 AS cor0
----
-13104

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 48 * SUM ( - - 91 ) FROM tab1 AS cor0
----
-13104

onlyif mysql # DIV for integer division: 
query I rowsort label-9583
SELECT DISTINCT + 16 DIV - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + 16 / - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 + + - col1 + - ( - col0 ) * - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT ALL - + COUNT( * ) AS col2, SUM( col2 ) AS col0 FROM tab1 AS cor0
----
-3
223

skipif mysql # not compatible
query II rowsort label-9585
SELECT ALL - + COUNT ( * ) AS col2, SUM ( col2 ) AS col0 FROM tab1 AS cor0
----
-3
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9586
SELECT DISTINCT col0, + CAST( NULL AS SIGNED ) * col1 * col2 col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9586
SELECT DISTINCT col0, + CAST ( NULL AS INTEGER ) * col1 * col2 col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT 75 AS col2 FROM tab2 WHERE NULL = - + col0
----

query I rowsort
SELECT DISTINCT 92 - col1 FROM tab2
----
15
25
41

query I rowsort
SELECT ALL - 55 * 35 + - col0 FROM tab0
----
-1940
-2012
-2022

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT COUNT( * ) AS col1 FROM tab1 WHERE + col0 / - ( + col0 ) BETWEEN + col1 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE + col0 / - ( + col0 ) BETWEEN + col1 AND col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9591
SELECT COUNT( * ) col0, 56 + + - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
9
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9591
SELECT COUNT ( * ) col0, 56 + + - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
9
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT ALL MIN( DISTINCT ( - + 3 ) ) - COUNT( * ) * MIN( DISTINCT - 83 ) FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL MIN ( DISTINCT ( - + 3 ) ) - COUNT ( * ) * MIN ( DISTINCT - 83 ) FROM tab1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT - COUNT( * ) - MIN( + col1 ) + MAX( ALL ( col2 ) ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT - COUNT ( * ) - MIN ( + col1 ) + MAX ( ALL ( col2 ) ) FROM tab1
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 + - 37 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT col2 - - + col0 AS col2 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + - col1 + 59 * + 88 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT MAX( ALL + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT MAX ( ALL + col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT + COUNT( * ) * - + CAST( + 88 AS SIGNED ) FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-9600
SELECT + COUNT ( * ) * - + CAST ( + 88 AS INTEGER ) FROM tab0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + MIN( - 52 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9601
SELECT + MIN ( - 52 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL 0 + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + ( + + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL 0 + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + ( + + col2 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND 10 * + col0 * + 46
----

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND 10 * + col0 * + 46
----

query I rowsort
SELECT ALL + + ( 63 ) * + col1 / + col1 + - col1 + col2 FROM tab1 AS cor0 WHERE NOT + col2 + - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9606
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) * - ( - - col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - col2 * + CAST ( NULL AS REAL ) * - ( - - col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT + - CAST( col1 AS SIGNED ) * + + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9607
SELECT + - CAST ( col1 AS INTEGER ) * + + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - col0 + - 35 FROM tab2
----
-110
-81
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT - SUM( - 11 ) * + SUM( ALL - + col0 ) FROM tab2
----
-6105

skipif mysql # not compatible
query I rowsort label-9609
SELECT - SUM ( - 11 ) * + SUM ( ALL - + col0 ) FROM tab2
----
-6105

query I rowsort
SELECT ALL 98 + - 78 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL - MAX( DISTINCT + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL - MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT ALL - ( + + 55 ) AS col1 FROM tab1 cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL + - SUM( ALL - col0 ) AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN col0 - - + col1 * - col1 / col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + - SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0 WHERE col0 BETWEEN col0 - - + col1 * - col1 / col1 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 7 * 21 + - col0 + - col2 * + 35 * 53 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + 45 * - 67, - col1 col2 FROM tab2 AS cor0
----
-2957
-67
-2975
-77
-2992
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9616
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) <> CAST( NULL AS SIGNED ) * + col0 + - + ( + + CAST( NULL AS DECIMAL ) ) / - 71 * + col1 AND NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9616
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) <> CAST ( NULL AS INTEGER ) * + col0 + - + ( + + CAST ( NULL AS REAL ) ) / - 71 * + col1 AND NULL IS NOT NULL
----

query I rowsort
SELECT + 76 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - col2 + + + ( + col2 ) * + 77 AS col2 FROM tab0
----
3572
7524
760

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9619
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 / + col2 + col1 * + + col2 <= + col1 * + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 19 ) IS NOT NULL
----

query I rowsort
SELECT 49 * - + col1 AS col1 FROM tab2 cor0
----
-2499
-3283
-3773

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + col2 ) + + col2 + - col2 * + col0 IS NOT NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT DISTINCT + 57 + + col0 DIV ( + col0 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT + 57 + + col0 / ( + col0 ) FROM tab1
----
58

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT col1 - - col1 DIV CAST( col2 AS SIGNED ) FROM tab0
----
1
23
82

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT col1 - - col1 / CAST ( col2 AS INTEGER ) FROM tab0
----
1
23
82

query I rowsort
SELECT ALL + col1 + - ( - + 72 ) FROM tab0
----
153
73
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT col1 * - + CAST( NULL AS SIGNED ) * - col2 + + 83 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT col1 * - + CAST ( NULL AS INTEGER ) * - col2 + + 83 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 77 * - col0 AS col2 FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9630
SELECT DISTINCT - CAST( + 14 AS SIGNED ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT - CAST ( + 14 AS INTEGER ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE + col2 * - col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT + MAX( 65 ) AS col1 FROM tab2 WHERE NOT - 81 * + col0 * + col2 * + col0 IS NULL
----
65

skipif mysql # not compatible
query I rowsort label-9632
SELECT + MAX ( 65 ) AS col1 FROM tab2 WHERE NOT - 81 * + col0 * + col2 * + col0 IS NULL
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9633
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9633
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT DISTINCT + + ( + - MAX( - CAST( + + 14 AS SIGNED ) ) ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT + + ( + - MAX ( - CAST ( + + 14 AS INTEGER ) ) ) FROM tab2 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT + - 20 DIV + - col2 + - 19 FROM tab0 AS cor0
----
-17
-19
-19

skipif mysql # not compatible
query I rowsort label-9635
SELECT + - 20 / + - col2 + - 19 FROM tab0 AS cor0
----
-17
-19
-19

query II rowsort
SELECT - col2 AS col1, - col1 + - col0 - - - col2 * - 68 FROM tab2 AS cor0
----
-23
1467
-40
2579
-58
3802

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > + + ( - col0 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + 29 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9640
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + 29 ) IS NULL
----
-3

query I rowsort
SELECT col0 * col1 + + - col2 AS col1 FROM tab1
----
366
4209
618

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 IN ( - + col2 * + col0 + - + col2 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT col2 + + col0 DIV col1 * col2 FROM tab0
----
47
50
9702

skipif mysql # not compatible
query I rowsort label-9643
SELECT col2 + + col0 / col1 * col2 FROM tab0
----
47
50
9702

query II rowsort
SELECT ALL col1 + 65 * 99 * + col0 + - col2 AS col2, + col1 * - - 17 AS col1 FROM tab2
----
296038
867
411877
1309
482634
1139

query I rowsort
SELECT + + 75 + col2 AS col2 FROM tab2 cor0
----
115
133
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + 43 col2, - 8 FROM tab0 cor0
----
124
-8
44
-8
64
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL COUNT( * ) * - - 17 AS col0 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL COUNT ( * ) * - - 17 AS col0 FROM tab0
----
51

query I rowsort
SELECT DISTINCT - 61 * - col0 FROM tab1 AS cor0
----
3111
5185
5551

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9649
SELECT - + SUM( ALL col0 ) + ( - CAST( NULL AS DECIMAL ) ) * + MAX( ( + col1 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT - + SUM ( ALL col0 ) + ( - CAST ( NULL AS REAL ) ) * + MAX ( ( + col1 ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 67 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT DISTINCT - 22 DIV - col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - 22 / - col2 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT MIN( 0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9652
SELECT DISTINCT MIN ( 0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT - COUNT( * ) + COUNT( * ) - + 4 AS col2 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) - + 4 AS col2 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT COUNT( + 37 ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9654
SELECT COUNT ( + 37 ) FROM tab2 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT DISTINCT - ( + col1 ) + + col0 DIV + col2 AS col2 FROM tab2 WHERE NOT ( - - col0 + col0 ) IS NULL
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - ( + col1 ) + + col0 / + col2 AS col2 FROM tab2 WHERE NOT ( - - col0 + col0 ) IS NULL
----
-49
-66
-76

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL - ( + 97 ) AS col2 FROM tab0
----
-97
-97
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9658
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 <> ( CAST( - 19 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9658
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 <> ( CAST ( - 19 AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 21 = col0
----

query I rowsort
SELECT ( + ( col1 ) ) * ( 81 ) FROM tab2
----
4131
5427
6237

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 60 AS col1 FROM tab1 cor0
----
60
60
60

query I rowsort
SELECT AVG ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 * - - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 22 NOT BETWEEN NULL AND + - ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + col0 + - + 3 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 96 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL - col0 + col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT - 96 DIV + + 1 FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-9668
SELECT - 96 / + + 1 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT DISTINCT - col0 DIV - - ( + 26 ) FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT - col0 / - - ( + 26 ) FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - MIN( DISTINCT 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-9671
SELECT - MIN ( DISTINCT 63 ) FROM tab2
----
-63

query I rowsort
SELECT ALL ( + col1 ) + 57 FROM tab2
----
108
124
134

query II rowsort
SELECT + col0 AS col2, 78 * + + 82 * + 55 AS col2 FROM tab0
----
15
351780
87
351780
97
351780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, + col2 col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + col1 * - col0 + + 88 FROM tab2
----
-2258
-4840
-4937

query I rowsort
SELECT col1 * - + 84 FROM tab1
----
-1176
-3948
-420

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN col0 AND + 59
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL 62 - - MAX( col2 ) col2 FROM tab0
----
161

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9678
SELECT ALL 62 - - MAX ( col2 ) col2 FROM tab0
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-9679
SELECT ALL MAX( DISTINCT col2 ) * - COUNT( * ) * COUNT( * ) - MAX( ALL + 75 ) + + + 13, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-953
-3

skipif mysql # not compatible
query II rowsort label-9679
SELECT ALL MAX ( DISTINCT col2 ) * - COUNT ( * ) * COUNT ( * ) - MAX ( ALL + 75 ) + + + 13, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-953
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT - COUNT( * ) - + + MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - COUNT ( * ) - + + MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT - col1 - + col2 + + col0 * + 12 FROM tab2 AS cor0
----
478
651
775

query I rowsort
SELECT - col0 * + + ( + 16 ) * col0 AS col0 FROM tab0 AS cor0
----
-121104
-150544
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT 45 DIV - ( - + col0 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT 45 / - ( - + col0 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col0 * - - ( 48 ) AS col1 FROM tab1
----
2448
4080
4368

query II rowsort
SELECT + 2, 71 AS col1 FROM tab0 AS cor0
----
2
71
2
71
2
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT 18 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT 18 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - 64, col1 AS col2 FROM tab1 AS cor0
----
-64
14
-64
47
-64
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( col0 ) * col0 * + 3 + + - col1 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT ALL - - COUNT( * ) * + + 23 AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL - - COUNT ( * ) * + + 23 AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT ALL + - col0 * + + col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN 47 AND + + col2
----

query I rowsort
SELECT DISTINCT 55 + - 59 AS col2 FROM tab0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT DISTINCT - col2 DIV 99 * + + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - col2 / 99 * + + col1 FROM tab1
----
0

query I rowsort
SELECT ALL + col2 * - ( col0 ) + col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT DISTINCT MIN( DISTINCT + - col2 ) DIV COUNT( ALL + col2 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT MIN ( DISTINCT + - col2 ) / COUNT ( ALL + col2 ) FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT 0 + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT 0 + - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT col0 * + col2 + + + col2 + + 63 + - col1 AS col2 FROM tab0
----
734
922
9764

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + COUNT( * ) * - + COUNT( * ) + - 68 AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9698
SELECT + COUNT ( * ) * - + COUNT ( * ) + - 68 AS col0 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - 49 col0 FROM tab0 AS cor0 WHERE - 54 + 21 NOT IN ( - col0 )
----
15
-49
87
-49
97
-49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND + 20
----

query I rowsort
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE - 78 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + + ( + - col1 ) + col0 * + 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + + ( + - col1 ) + col0 * + 6 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 94 * col2 + - col2 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT col0 + - ( 44 ) * + 69 FROM tab0 AS cor0
----
-2939
-2949
-3021

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT MIN( ALL - col1 ) + - 96 + + ( - 9 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 < + col2 + - 74
----
-186

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT MIN ( ALL - col1 ) + - 96 + + ( - 9 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 < + col2 + - 74
----
-186

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 42 IS NULL
----

query I rowsort
SELECT ALL 31 AS col2 FROM tab0 cor0
----
31
31
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 90 NOT BETWEEN col1 + + 13 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 67 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 79 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9711
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 79 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT DISTINCT + + COUNT( * ), 16 AS col2 FROM tab1 cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-9712
SELECT DISTINCT + + COUNT ( * ), 16 AS col2 FROM tab1 cor0
----
3
16

query II rowsort
SELECT DISTINCT - + ( + - 49 ) AS col2, + 9 FROM tab0 AS cor0
----
49
9

query I rowsort
SELECT + 45 * + col0 * + + col0 AS col0 FROM tab0 AS cor0
----
10125
340605
423405

query II rowsort
SELECT - col1, + col2 + - 95 - - + 79 AS col2 FROM tab1 cor0
----
-14
80
-47
52
-5
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT ALL + MAX( + col2 ) AS col0, - 71 * + + COUNT( * ) * 70 AS col0 FROM tab2
----
58
-14910

skipif mysql # not compatible
query II rowsort label-9717
SELECT ALL + MAX ( + col2 ) AS col0, - 71 * + + COUNT ( * ) * 70 AS col0 FROM tab2
----
58
-14910

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - 78 col2 FROM tab0 AS cor0 WHERE 99 * + col1 + + 91 * + 70 IS NOT NULL
----
-125
-177
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT + + ( - COUNT( * ) ), MAX( ALL + ( + + ( + col2 ) ) ) AS col2 FROM tab2 AS cor0
----
-3
58

skipif mysql # not compatible
query II rowsort label-9720
SELECT + + ( - COUNT ( * ) ), MAX ( ALL + ( + + ( + col2 ) ) ) AS col2 FROM tab2 AS cor0
----
-3
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, - col2 + - - 18 FROM tab2
----
23
-5
40
-22
58
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT 21 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 18 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9722
SELECT 21 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 18 <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 52 + + col1 + 78 - 26 + + ( - col2 ) AS col0 FROM tab2
----
113
132
141

query I rowsort
SELECT ALL - ( - 81 ) FROM tab0
----
81
81
81

query I rowsort
SELECT ALL 64 * - col1 AS col1 FROM tab1
----
-3008
-320
-896

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT DISTINCT 55, + 21 - COUNT( * ) + ( 95 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 * ( + ( - col0 ) ) ) BETWEEN NULL AND NULL
----
55
116

skipif mysql # not compatible
query II rowsort label-9726
SELECT DISTINCT 55, + 21 - COUNT ( * ) + ( 95 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 * ( + ( - col0 ) ) ) BETWEEN NULL AND NULL
----
55
116

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT col2 DIV - 39 + col2 FROM tab1 AS cor0
----
58
67
94

skipif mysql # not compatible
query I rowsort label-9727
SELECT col2 / - 39 + col2 FROM tab1 AS cor0
----
58
67
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT 5 DIV + + col0 * col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9729
SELECT 5 / + + col0 * col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT - 36 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 36 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9731
SELECT - 40 * - col0 + + CAST( NULL AS SIGNED ) / - - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT - 40 * - col0 + + CAST ( NULL AS INTEGER ) / - - col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 49, col0 * + ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-49
1058
-49
2560
-49
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT DISTINCT 4 * + col0 + 99 + - col2 DIV - 53 AS col1 FROM tab1
----
304
440
464

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT 4 * + col0 + 99 + - col2 / - 53 AS col1 FROM tab1
----
304
440
464

query I rowsort
SELECT ALL - col1 + - + ( + - 91 ) - 32 * + + 93 * + col2 FROM tab0
----
-139862
-294534
-29690

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL IN ( 10, - 0 ) )
----

query I rowsort
SELECT ALL ( + 61 ) FROM tab2
----
61
61
61

query II rowsort
SELECT ALL col1, - 21 AS col2 FROM tab1 WHERE NOT col2 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 2 AS col0 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT ALL col2 - - 69 FROM tab0
----
116
168
79

query I rowsort
SELECT DISTINCT - col2 + + col1 + col1 * - ( + 8 ) AS col2 FROM tab1
----
-194
-397
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 col0 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT - + 51 AS col2 FROM tab2 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9743
SELECT ALL + COUNT( * ), 50 AS col1 FROM tab1 AS cor0
----
3
50

skipif mysql # not compatible
query II rowsort label-9743
SELECT ALL + COUNT ( * ), 50 AS col1 FROM tab1 AS cor0
----
3
50

query I rowsort
SELECT - ( - 33 ) AS col1 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT - - 65 AS col1 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT col0 * + col2 + - col1 AS col1 FROM tab1 AS cor0
----
4882
5010
6141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 26 NOT BETWEEN ( NULL ) AND 54 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT + - 2 col2 FROM tab0 WHERE NOT - - col1 + + CAST( - 15 AS SIGNED ) <> + 1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9748
SELECT + - 2 col2 FROM tab0 WHERE NOT - - col1 + + CAST ( - 15 AS INTEGER ) <> + 1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 90 * col2 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT - col1 DIV - col0 * col1 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9750
SELECT - col1 / - col0 * col1 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + col0 * 56 AS col2, col1 * col1 FROM tab2
----
2576
2601
3584
5929
4200
4489

query II rowsort
SELECT + col2, + col2 - col1 * col1 + - ( - - col0 ) FROM tab2
----
23
-2624
40
-5953
58
-4506

query I rowsort
SELECT + 36 * + col1 FROM tab0
----
2916
36
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT DISTINCT + CAST( - ( - ( + ( - - 22 ) ) ) AS SIGNED ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + CAST ( - ( - ( + ( - - 22 ) ) ) AS INTEGER ) FROM tab1 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab1 WHERE 15 / col1 + + 51 + - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL + - COUNT( * ) + - COUNT( * ) + 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) + 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT 88 DIV + ( col2 ) AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9757
SELECT 88 / + ( col2 ) AS col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT DISTINCT - 98 * + - 46 + + - CAST( col0 AS SIGNED ) FROM tab2
----
4433
4444
4462

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - 98 * + - 46 + + - CAST ( col0 AS INTEGER ) FROM tab2
----
4433
4444
4462

query I rowsort
SELECT 59 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 33 col0 FROM tab0 cor0
----
33
33
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - 95 > col0
----

query I rowsort
SELECT + 8 + - 22 + col0 * + 70 FROM tab0 AS cor0
----
1036
6076
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT MIN( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NULL > col0 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT MIN ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NULL > col0 * - 90
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 + - + 81 + - - 59 * col2 * + col0 <= - col1
----

query I rowsort
SELECT 95 + - + col2 * - col0 * + 2 * + 29 FROM tab2
----
148575
252395
61459

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT - 86 * + 97 + + MIN( DISTINCT + 72 ) AS col1 FROM tab2
----
-8270

skipif mysql # not compatible
query I rowsort label-9766
SELECT - 86 * + 97 + + MIN ( DISTINCT + 72 ) AS col1 FROM tab2
----
-8270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT DISTINCT + CAST( - - 20 AS SIGNED ) * - - 54 + COUNT( * ) * - 30 + - COUNT( * ) FROM tab2
----
987

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT + CAST ( - - 20 AS INTEGER ) * - - 54 + COUNT ( * ) * - 30 + - COUNT ( * ) FROM tab2
----
987

query I rowsort
SELECT DISTINCT 61 + + 17 AS col2 FROM tab1
----
78

query I rowsort
SELECT ALL + 9 - col1 AS col0 FROM tab0
----
-12
-72
8

query I rowsort
SELECT DISTINCT - col2 * - 35 AS col0 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + 27 * + COUNT( ALL + - col2 ) * + 78 FROM tab2
----
6318

skipif mysql # not compatible
query I rowsort label-9771
SELECT + 27 * + COUNT ( ALL + - col2 ) * + 78 FROM tab2
----
6318

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT - 0 AS col1, ( - ( COUNT( * ) ) ) AS col2 FROM tab0
----
0
-3

skipif mysql # not compatible
query II rowsort label-9772
SELECT - 0 AS col1, ( - ( COUNT ( * ) ) ) AS col2 FROM tab0
----
0
-3

query I rowsort
SELECT ALL 75 * + 30 FROM tab1 cor0
----
2250
2250
2250

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= 41
----
91
47
68

query I rowsort
SELECT ALL - 85 * + col0 + - ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-12012
-5049
-7650

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - col0 IS NULL OR - 87 / - + col1 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 * col0 AS col0, col0 * col1 * + 23 FROM tab1
----
425
9775
4277
98371
714
16422

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + MIN( DISTINCT - - 96 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9778
SELECT + MIN ( DISTINCT - - 96 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL 67 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT DISTINCT - + col2 * - - CAST( + ( - 90 ) AS SIGNED ) FROM tab0 AS cor0
----
4230
8910
900

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - + col2 * - - CAST ( + ( - 90 ) AS INTEGER ) FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT ALL - col1 DIV - + col1 col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9781
SELECT ALL - col1 / - + col1 col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT MIN( 21 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9782
SELECT MIN ( 21 ) FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col2 col0 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT col1 * col2 DIV + + col1 col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9784
SELECT col1 * col2 / + + col1 col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col1 * 90 * - col2 col0 FROM tab0
----
15
-342630
87
-18900
97
-8910

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT + col0 DIV + + 20 FROM tab0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-9786
SELECT + col0 / + + 20 FROM tab0
----
0
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT + SUM( + col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT + SUM ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col0 * - 42 * - 93 * + col1 AS col2 FROM tab0 cor0
----
378882
4745790
7136262

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 > + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT ALL - 76 + 92 DIV col2 AS col1 FROM tab1 AS cor0
----
-75
-75
-76

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - 76 + 92 / col2 AS col1 FROM tab1 AS cor0
----
-75
-75
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + 3 + - COUNT( - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT + 3 + - COUNT ( - col2 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + + 57 col1 FROM tab1
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + 70 * + COUNT( * ) + - 69 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-9794
SELECT + 70 * + COUNT ( * ) + - 69 FROM tab2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT DISTINCT - MIN( col1 ) FROM tab2 AS cor0 WHERE NOT 7 <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT - MIN ( col1 ) FROM tab2 AS cor0 WHERE NOT 7 <= + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 42 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 42 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 4 * + 14 AS col0 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9798
SELECT ALL + + col1 AS col0, - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9798
SELECT ALL + + col1 AS col0, - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT - + col1 DIV + + 11 AS col0 FROM tab0 AS cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-9799
SELECT - + col1 / + + 11 AS col0 FROM tab0 AS cor0
----
-1
-7
0

query I rowsort
SELECT DISTINCT 73 + + + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-4
22
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL SUM( + 77 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL SUM ( + 77 ) FROM tab0 AS cor0
----
231

query I rowsort
SELECT + col2 / - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT - - ( col1 ) DIV col1 + - - col2 AS col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-9803
SELECT - - ( col1 ) / col1 + - - col2 AS col2 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT ALL + col2 * - col1 * + 64 + + + col1 FROM tab0
----
-13419
-243567
-6335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9805
SELECT + 37 - 16 + 55 AS col0, - 46 * MAX( col1 ) * - + ( - 36 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-9805
SELECT + 37 - 16 + 55 AS col0, - 46 * MAX ( col1 ) * - + ( - 36 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
76
NULL

query I rowsort
SELECT ALL + col0 * 13 * - col2 FROM tab1
----
-63648
-65195
-80444

query I rowsort
SELECT + 51 - - col0 + + 84 FROM tab0
----
150
222
232

query I rowsort
SELECT DISTINCT - col2 + + col2 + - + 94 AS col1 FROM tab0
----
-94

query III rowsort
SELECT * FROM tab2 WHERE - 55 / col1 <= NULL
----

query I rowsort
SELECT DISTINCT col2 - + col1 * col0 AS col0 FROM tab1
----
-366
-4209
-618

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 - + col0 NOT BETWEEN + col2 AND + - col2 * - col1
----

query II rowsort
SELECT col0 AS col0, 69 AS col0 FROM tab2 AS cor0
----
46
69
64
69
75
69

query I rowsort
SELECT ALL 64 * - col0 AS col0 FROM tab0 AS cor0
----
-5568
-6208
-960

query I rowsort
SELECT ALL + col2 / - + col0 FROM tab0 cor0 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT - + COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT - + COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) * - 4 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 4 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 85 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + col2 * - col0 FROM tab1
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9821
SELECT CAST( - - col1 AS SIGNED ) + + col1 AS col0 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-9821
SELECT CAST ( - - col1 AS INTEGER ) + + col1 AS col0 FROM tab2
----
102
134
154

query I rowsort
SELECT - col2 + 14 AS col0 FROM tab1
----
-45
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT + 28 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 28 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
25

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - ( - col1 ) - - ( - + col2 ) * - col0 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9825
SELECT ALL - + 21 AS col0, CAST( + 5 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 661f8a66830a38670697641819bd1cd0

skipif mysql # not compatible
query II rowsort label-9825
SELECT ALL - + 21 AS col0, CAST ( + 5 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 661f8a66830a38670697641819bd1cd0

query I rowsort
SELECT ALL - col2 * - col2 * - col2 + + 81 FROM tab0
----
-103742
-919
-970218

query II rowsort
SELECT col0 * - + 2 * + col0, - ( + col2 ) * - ( + col1 ) * + - col0 - - col1 AS col1 FROM tab1
----
-14450
-25070
-16562
-290789
-5202
-68530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT CAST( + 20 AS SIGNED ) FROM tab0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-9828
SELECT CAST ( + 20 AS INTEGER ) FROM tab0
----
20
20
20

query I rowsort
SELECT col1 - - ( - ( - - col2 ) ) AS col1 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT + COUNT( * ) + 77 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9830
SELECT + COUNT ( * ) + 77 FROM tab2 AS cor0
----
80

query I rowsort
SELECT - + col0 + + col2 * - + 73 * + 36 FROM tab2 AS cor0
----
-105184
-152499
-60490

query I rowsort
SELECT - 59 + col2 + - col0 * + - 63 FROM tab1 AS cor0
----
3250
5355
5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT DISTINCT CAST( col0 AS SIGNED ) * col0 + + + col2 AS col0 FROM tab1 AS cor0
----
2697
7284
8349

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col0 + + + col2 AS col0 FROM tab1 AS cor0
----
2697
7284
8349

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( - - col2, - 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9835
SELECT CAST( NULL AS SIGNED ) + + COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN ( - + col2 ) AND - col1 )
----

query I rowsort
SELECT ALL + col0 - - - 68 AS col0 FROM tab0
----
-53
19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT SUM( - 26 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-9838
SELECT SUM ( - 26 ) FROM tab0
----
-78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / 89 + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9840
SELECT - - col1 AS col2, - col0 * - col2 + + col2 + - col1 - - col2 + + col0 DIV + col2 + col1 + + 78 * col0 * + col1 FROM tab0 AS cor0
----
1
17367
21
143404
81
95569

skipif mysql # not compatible
query II rowsort label-9840
SELECT - - col1 AS col2, - col0 * - col2 + + col2 + - col1 - - col2 + + col0 / + col2 + col1 + + 78 * col0 * + col1 FROM tab0 AS cor0
----
1
17367
21
143404
81
95569

query I rowsort
SELECT DISTINCT - + 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT COUNT( - - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9843
SELECT COUNT ( - - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - - col1 IN ( - ( + col2 ), + 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 / + - col1 FROM tab0 AS cor0 WHERE ( col0 ) <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT - - CAST( + 51 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-9847
SELECT - - CAST ( + 51 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
51
51
51

query II rowsort
SELECT - + col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) + + - 6 AS col1 FROM tab2 AS cor0
----
111
119
68

query I rowsort
SELECT DISTINCT 87 * col1 AS col1 FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL 72 + + + col0 FROM tab2
----
118
136
147

query I rowsort
SELECT col0 - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT - CAST( 22 AS SIGNED ) * - - SUM( DISTINCT + 69 ) + + + 17 * + - 77 col2 FROM tab0 AS cor0
----
-2827

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9855
SELECT - CAST ( 22 AS INTEGER ) * - - SUM ( DISTINCT + 69 ) + + + 17 * + - 77 col2 FROM tab0 AS cor0
----
-2827

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT - - COUNT( * ) + - 38 AS col2 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9857
SELECT - - COUNT ( * ) + - 38 AS col2 FROM tab0 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + - 29 * + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9858
SELECT + - 29 * + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT + + COUNT( * ) + - 92 + + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-9861
SELECT + + COUNT ( * ) + - 92 + + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query II rowsort
SELECT DISTINCT + 88 - - + col1, + col0 FROM tab2 WHERE NOT ( NULL NOT IN ( 63 * - + 57 ) )
----

query I rowsort
SELECT 46 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL ( + - 64 ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL ( + - 64 ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + - col1 ) NOT IN ( 42, 89 + - + col2 + - col1 * + 21 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 IN ( 30 * + ( - col1 ), col1 * + col0 * - - col0 / - col2, 95, + 2 )
----

query I rowsort
SELECT + 32 * 53 * + col0 FROM tab1 AS cor0
----
144160
154336
86496

query I rowsort
SELECT - - col0 - + - 62 AS col0 FROM tab0 cor0
----
149
159
77

query I rowsort
SELECT ALL 72 AS col1 FROM tab1 cor0
----
72
72
72

query I rowsort
SELECT 39 - col1 * - 99 AS col0 FROM tab2
----
5088
6672
7662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 * + col0 col2 FROM tab0
----
-15
1215
-87
1827
-97
97

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT ( 63 ) = col2
----
23
40
58

query I rowsort
SELECT DISTINCT - AVG ( ALL col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9875
SELECT + + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT + + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL SUM( ALL - 93 ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL SUM ( ALL - 93 ) FROM tab1 AS cor0
----
-279

query II rowsort
SELECT DISTINCT - col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT - 99 + - COUNT( * ) FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - 99 + - COUNT ( * ) FROM tab0 AS cor0
----
-102

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT 9 + - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9880
SELECT 9 + - COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN 32 AND NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT - + 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT COUNT( * ) AS col2 FROM tab1 WHERE - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE - col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT 31 * - ( + ( + COUNT( * ) ) ) + - COUNT( * ) AS col2 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9884
SELECT 31 * - ( + ( + COUNT ( * ) ) ) + - COUNT ( * ) AS col2 FROM tab2
----
-96

query I rowsort
SELECT DISTINCT - col2 * - - col0 + - col0 FROM tab0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - COUNT( * ) * COUNT( * ) * - 9 AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9886
SELECT - COUNT ( * ) * COUNT ( * ) * - 9 AS col0 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 45 FROM tab0 AS cor0 WHERE NULL <> - 23
----

query I rowsort
SELECT DISTINCT ( - - 55 ) AS col1 FROM tab1
----
55

query I rowsort
SELECT col0 - - - col2 AS col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT COUNT( col2 ) FROM tab0 WHERE - + 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9890
SELECT COUNT ( col2 ) FROM tab0 WHERE - + 75 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 >= - col2 * + 36 * 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 62 + + col2 AS col0 FROM tab1 AS cor0
----
121
130
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 10 - col2 col0 FROM tab1 AS cor0
----
-49
-58
-86

query I rowsort
SELECT DISTINCT col2 * + + col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - col2 FROM tab2 cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + col0 * + + col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT col0 DIV - + col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9897
SELECT col0 / - + col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + 7 * - ( + 45 ) AS col2 FROM tab0
----
-315
-315
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT col0 * col1 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT col0 * col1 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9900
SELECT SUM( ALL + col2 ) AS col1, 33 FROM tab1
----
223
33

skipif mysql # not compatible
query II rowsort label-9900
SELECT SUM ( ALL + col2 ) AS col1, 33 FROM tab1
----
223
33

query I rowsort
SELECT ALL - col2 * + + 97 * - + col0 FROM tab2
----
102626
248320
421950

query I rowsort
SELECT DISTINCT - col1 * - + col2 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-308367
-4410
-99

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 21 ) col1 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT DISTINCT + 92 * + col2 + + - 35 DIV col1 AS col2 FROM tab1
----
5421
6256
8830

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + 92 * + col2 + + - 35 / col1 AS col2 FROM tab1
----
5421
6256
8830

query I rowsort
SELECT ALL - - 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * 19 + + - col1 col2 FROM tab1 cor0
----
1720
1753
1762

query I rowsort
SELECT ALL col0 * + 91 AS col1 FROM tab0 AS cor0
----
1365
7917
8827

query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
1196
3120
3944

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 6, ( + 49 ) )
----

query I rowsort
SELECT ALL - col0 + - + col1 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-9912
SELECT + 75 AS col2, col0 * - col1 - col2 + - + col0 DIV + - col1 FROM tab0 AS cor0
----
75
-1262
75
-1833
75
-99

skipif mysql # not compatible
query II rowsort label-9912
SELECT + 75 AS col2, col0 * - col1 - col2 + - + col0 / + - col1 FROM tab0 AS cor0
----
75
-1262
75
-1833
75
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT SUM( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9913
SELECT SUM ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9914
SELECT 32 * CAST( + col0 AS SIGNED ) * 86 AS col2, 80 / - 88 * + CAST( NULL AS SIGNED ) * - col2 + + col0 AS col0 FROM tab1
----
140352
NULL
233920
NULL
250432
NULL

skipif mysql # not compatible
query II rowsort label-9914
SELECT 32 * CAST ( + col0 AS INTEGER ) * 86 AS col2, 80 / - 88 * + CAST ( NULL AS INTEGER ) * - col2 + + col0 AS col0 FROM tab1
----
140352
NULL
233920
NULL
250432
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 48, col2 * + 28 * + col2 + - + col0 col2 FROM tab0
----
48
2713
48
274331
48
61837

query II rowsort
SELECT 55 AS col2, col0 AS col1 FROM tab2
----
55
46
55
64
55
75

query II rowsort
SELECT - 67 AS col2, ( + col0 ) FROM tab0
----
-67
15
-67
87
-67
97

query I rowsort
SELECT ALL + col2 + + + 72 AS col1 FROM tab0
----
119
171
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - - col0 * + col1 + + + 21
----

query I rowsort
SELECT ALL - + col0 * + 1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT + + 1 + COUNT( * ) - + 51 AS col2 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9921
SELECT + + 1 + COUNT ( * ) - + 51 AS col2 FROM tab0 AS cor0
----
-47

query I rowsort
SELECT ( - - col0 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
46
64
75

query I rowsort
SELECT ALL 55 * - + col1 FROM tab1 AS cor0
----
-2585
-275
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT - col2 + + CAST( - + col1 AS SIGNED ) FROM tab0 cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-9924
SELECT - col2 + + CAST ( - + col1 AS INTEGER ) FROM tab0 cor0
----
-100
-128
-31

query I rowsort
SELECT 0 + - ( col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT MIN( DISTINCT + col0 ) + + COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT MIN ( DISTINCT + col0 ) + + COUNT ( * ) AS col1 FROM tab0
----
18

query I rowsort
SELECT ALL + 60 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT + MAX( - col0 ) - COUNT( * ) AS col0 FROM tab1 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + MAX ( - col0 ) - COUNT ( * ) AS col0 FROM tab1 cor0
----
-54

query I rowsort
SELECT col2 - - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + ( ( + ( col1 ) ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 82 + - col0 >= 30
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - 78 * + col0 * + col0 + + col2 FROM tab1 AS cor0
----
-202782
-563491
-645850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT ( - + COUNT( * ) ) DIV + COUNT( * ) + + + 58 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9934
SELECT ( - + COUNT ( * ) ) / + COUNT ( * ) + + + 58 FROM tab0 AS cor0
----
57

query II rowsort
SELECT ALL col1 AS col2, 30 * - 39 AS col0 FROM tab0
----
1
-1170
21
-1170
81
-1170

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL < ( + col0 * col2 )
----

query II rowsort
SELECT col0 AS col2, - col1 * - 61 * col0 - + - col2 AS col1 FROM tab0 AS cor0
----
15
74162
87
111457
97
6016

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NULL < + col1 + 1 + col0
----

query I rowsort
SELECT ALL - - 54 + - col1 FROM tab1 AS cor0
----
40
49
7

query I rowsort
SELECT DISTINCT + col1 * + + 59 - - - 20 AS col1 FROM tab2 cor0
----
2989
3933
4523

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = 26 + - 7 * + 84
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 89 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT - CAST( 20 AS SIGNED ) AS col1 FROM tab2
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-9944
SELECT - CAST ( 20 AS INTEGER ) AS col1 FROM tab2
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9945
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < CAST( NULL AS SIGNED ) + + 66 * + ( col0 + 20 )
----

skipif mysql # not compatible
query III rowsort label-9945
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < CAST ( NULL AS INTEGER ) + + 66 * + ( col0 + 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT SUM( DISTINCT + 90 ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9946
SELECT SUM ( DISTINCT + 90 ) AS col0 FROM tab2
----
90

query I rowsort
SELECT ALL - col0 + + 25 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9948
SELECT DISTINCT col2 * 55 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND CAST( NULL AS SIGNED ) - col2
----

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT col2 * 55 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER ) - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT DISTINCT + MIN( ALL - CAST( + col2 AS SIGNED ) ) * 50 FROM tab1
----
-4800

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + MIN ( ALL - CAST ( + col2 AS INTEGER ) ) * 50 FROM tab1
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT + MIN( ALL - 86 ) AS col2 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + MIN ( ALL - 86 ) AS col2 FROM tab0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL - MAX( + col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - MAX ( + col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - ( col2 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT ALL 75 DIV + 70 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL 75 / + 70 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT COUNT( - col0 ) * 54 + - 72 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-9956
SELECT COUNT ( - col0 ) * 54 + - 72 FROM tab1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT ALL COUNT( * ) DIV 52 FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL COUNT ( * ) / 52 FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT ALL ( - 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-9958
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ( - COUNT( * ) ) * - 0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9959
SELECT ( - COUNT ( * ) ) * - 0 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( col2 + - col1 / col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN 71 AND ( - ( - col1 ) - col2 )
----

query I rowsort
SELECT - col1 * 35 FROM tab0
----
-2835
-35
-735

query I rowsort
SELECT ALL ( col1 ) + + col1 AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT 39 * col2 AS col2 FROM tab2
----
1560
2262
897

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * col2 <= ( 94 + col2 * col1 )
----

query I rowsort
SELECT DISTINCT col1 + 63 AS col0 FROM tab1
----
110
68
77

query I rowsort
SELECT ALL 63 FROM tab1 WHERE NULL <= col2
----

query I rowsort
SELECT - 86 * col1 FROM tab1
----
-1204
-4042
-430

query III rowsort
SELECT * FROM tab2 WHERE 34 <= 20 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT col0 * 92 AS col0 FROM tab0 WHERE - col0 DIV - col2 NOT IN ( 30 DIV + col1 )
----
8004
8924

skipif mysql # not compatible
query I rowsort label-9970
SELECT col0 * 92 AS col0 FROM tab0 WHERE - col0 / - col2 NOT IN ( 30 / + col1 )
----
8004
8924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9971
SELECT ALL - 33 DIV - CAST( COUNT( * ) AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL - 33 / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
11

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN NULL AND 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + col1 - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN 60 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 <> ( - ( - 88 ) * + 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 21 * + ( + col2 ) AS col0 FROM tab0
----
2079
210
987

query I rowsort
SELECT ALL - col0 + - 13 * + 19 FROM tab2
----
-293
-311
-322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT + col1 / + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE 36 + + col1 * + 46 < NULL
----

skipif mysql # not compatible
query I rowsort label-9978
SELECT + col1 / + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE 36 + + col1 * + 46 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + col0 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 IN ( - col1 + 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE 49 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9982
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col2 col0 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9983
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col2 col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT 49 * + 0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT DISTINCT CAST( CAST( ( + col1 ) AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT CAST ( CAST ( ( + col1 ) AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9986
SELECT - MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL 62 * - ( MIN( 48 ) ) FROM tab0 cor0
----
-2976

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 62 * - ( MIN ( 48 ) ) FROM tab0 cor0
----
-2976

query I rowsort
SELECT DISTINCT + + 11 * + col2 FROM tab1 cor0
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL COUNT( + col2 ) + - 74 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----
-74

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL COUNT ( + col2 ) + - 74 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + MIN( 63 ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9990
SELECT + MIN ( 63 ) AS col0 FROM tab1 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( 41 + 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT DISTINCT - col2 DIV 19 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT - col2 / 19 FROM tab2 AS cor0
----
-1
-2
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + col2 * 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT ALL + + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL + + col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( + col2 + + col2 ) IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( + col2 + + col2 ) IN ( + col2 )
----
0

query I rowsort
SELECT - 51 * 55 FROM tab1 AS cor0
----
-2805
-2805
-2805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9997
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * col0 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT - ( - col0 ) * - col0 - 73 IS NOT NULL
----

