sqllogictest
Artifact Content
Not logged in

Artifact 5565c25d062c30aeb20b93574302eccee9b66f7e:


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)

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL - MAX( 32 ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - MAX ( 32 ) AS col0 FROM tab2
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * - col2 ) < ( - col2 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * - col2 ) < ( - col2 * CAST ( NULL AS REAL ) )
----

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

query I rowsort
SELECT ALL + col2 + 25 AS col1 FROM tab0 AS cor0
----
124
35
72

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
58

query I rowsort
SELECT col2 + 55 AS col1 FROM tab0
----
102
154
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8
SELECT ALL + col1 * - ( - col1 ) * col0 - - + CAST( + + col2 AS SIGNED ) + - 37 DIV + col0 + + - col1 * + 12 AS col0, + ( - + 53 ) + - col0 FROM tab0 AS cor0
----
184
-150
38125
-140
97488
-68

skipif mysql # not compatible
query II rowsort label-8
SELECT ALL + col1 * - ( - col1 ) * col0 - - + CAST ( + + col2 AS INTEGER ) + - 37 / + col0 + + - col1 * + 12 AS col0, + ( - + 53 ) + - col0 FROM tab0 AS cor0
----
184
-150
38125
-140
97488
-68

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

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

query I rowsort
SELECT - - ( + 88 ) + - - col2 FROM tab0 AS cor0
----
135
187
98

query II rowsort
SELECT DISTINCT - 5 * 43 - - 50 + + col0 + - 96 AS col1, - 16 + - col1 AS col1 FROM tab0 cor0
----
-164
-17
-174
-37
-246
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 83 ) IS NULL
----

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

query II rowsort
SELECT ALL + 91 * - col0 AS col0, 93 * 18 * + col0 AS col2 FROM tab2
----
-4186
77004
-5824
107136
-6825
125550

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + col0 * 86 / - - 39 + + + col2 + + col1 + + col0 NOT BETWEEN NULL AND col0
----

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

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + 41 / + + col2 * - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 / - col1 FROM tab0 cor0 WHERE NOT ( NULL NOT IN ( col0 / + 17 * + 77 ) )
----

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

query I rowsort
SELECT ALL + ( col2 ) + + + col1 FROM tab1 AS cor0
----
110
115
64

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

query I rowsort
SELECT - + 3 FROM tab1 AS cor0 WHERE NOT + 39 IS NULL
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT ALL - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-40
-58

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-25
SELECT DISTINCT + - ( - col2 ) col0, CAST( + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
59
5
68
47
96
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-25
SELECT DISTINCT + - ( - col2 ) col0, CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
59
5
68
47
96
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT DISTINCT + CAST( + col0 AS SIGNED ) col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-27
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) col1 FROM tab1
----
51
85
91

query II rowsort
SELECT ALL 60 + + 21 + col2, col1 AS col2 FROM tab1
----
140
5
149
47
177
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-29
SELECT CAST( - AVG ( ALL + CAST( + ( col2 ) AS SIGNED ) ) AS SIGNED ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-29
SELECT CAST ( - AVG ( ALL + CAST ( + ( col2 ) AS INTEGER ) ) AS INTEGER ) FROM tab2
----
-40

query I rowsort
SELECT 62 + col0 * 1 FROM tab1
----
113
147
153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-32
SELECT ALL - 96 DIV - + ( - col2 ) + + 77 DIV col1 + + + col1 + col0 AS col1 FROM tab0 cor0
----
102
175
94

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL - 96 / - + ( - col2 ) + + 77 / col1 + + + col1 + col0 AS col1 FROM tab0 cor0
----
102
175
94

query I rowsort
SELECT ALL - 80 * - 58 AS col0 FROM tab0
----
4640
4640
4640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-34
SELECT - CAST( - - col2 AS SIGNED ) * - col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-34
SELECT - CAST ( - - col2 AS INTEGER ) * - col2 FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT ALL - + col2 + + col2 DIV + - 4 FROM tab2 AS cor0
----
-28
-50
-72

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - + col2 + + col2 / + - 4 FROM tab2 AS cor0
----
-28
-50
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT + COUNT( * ) + 13 AS col0, MAX( ALL + ( + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE + 4 IS NULL
----
13
NULL

skipif mysql # not compatible
query II rowsort label-36
SELECT + COUNT ( * ) + 13 AS col0, MAX ( ALL + ( + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE + 4 IS NULL
----
13
NULL

query I rowsort
SELECT - col0 * 88 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 <= - ( - 37 )
----
-4048
-5632
-6600

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

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

query I rowsort
SELECT ALL + col0 * 53 FROM tab0
----
4611
5141
795

query I rowsort
SELECT DISTINCT col2 * + + 42 AS col2 FROM tab0
----
1974
4158
420

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-42
SELECT ALL - 85 AS col0, - 60 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + - + CAST( col1 AS SIGNED ) + + + col0 * + + col0 NOT IN ( - + 58 * CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-42
SELECT ALL - 85 AS col0, - 60 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + - + CAST ( col1 AS INTEGER ) + + + col0 * + + col0 NOT IN ( - + 58 * CAST ( + + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT DISTINCT 4 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT 4 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-12

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

skipif mysql # not compatible
query II rowsort label-44
SELECT DISTINCT + col2 / + col1 AS col2, - col2 AS col1 FROM tab0
----
0
-10
0
-47
99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-45
SELECT CAST( NULL AS SIGNED ) AS col1, 1 + 45 DIV + + CAST( + COUNT( - - 42 ) AS SIGNED ) FROM tab2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-45
SELECT CAST ( NULL AS INTEGER ) AS col1, 1 + 45 / + + CAST ( + COUNT ( - - 42 ) AS INTEGER ) FROM tab2
----
NULL
16

query II rowsort
SELECT ALL col2 AS col2, col1 + - col0 FROM tab2
----
23
5
40
13
58
-8

query I rowsort
SELECT DISTINCT - col0 + + col0 - - col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - 99 + 84 AS col0 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-50
SELECT + ( + col2 ) * + col2 + + CAST( + 29 AS SIGNED ) + - ( col2 ) * 88 * - col1 FROM tab2 AS cor0
----
103782
272669
345361

skipif mysql # not compatible
query I rowsort label-50
SELECT + ( + col2 ) * + col2 + + CAST ( + 29 AS INTEGER ) + - ( col2 ) * 88 * - col1 FROM tab2 AS cor0
----
103782
272669
345361

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT + COUNT( * ) + - MAX( - col2 ) AS col0 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-53
SELECT + COUNT ( * ) + - MAX ( - col2 ) AS col0 FROM tab0 cor0
----
13

query I rowsort
SELECT DISTINCT - 24 * - 50 + - col2 + col2 + col2 FROM tab1 AS cor0
----
1259
1268
1296

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-56
SELECT - MIN( - col2 ) DIV 71 + + COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-56
SELECT - MIN ( - col2 ) / 71 + + COUNT ( * ) FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-57
SELECT DISTINCT - 18 AS col0, - MAX( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-57
SELECT DISTINCT - 18 AS col0, - MAX ( ALL CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
-18
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + - + col2 col1 FROM tab1
----
-14
-23
-51

query II rowsort
SELECT - ( - + col0 ) AS col0, + 8 + + 53 AS col2 FROM tab2
----
46
61
64
61
75
61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-60
SELECT - CAST( + col2 AS SIGNED ) DIV + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-60
SELECT - CAST ( + col2 AS INTEGER ) / + col1 FROM tab0
----
-99
0
0

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

query III rowsort
SELECT * FROM tab0 WHERE col1 > ( 34 )
----
15
81
47

query I rowsort
SELECT ALL + col0 * ( + - col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT 39 + + + col0 AS col2 FROM tab1
----
124
130
90

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

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

query I rowsort
SELECT + col1 * - + col1 * 94 FROM tab1 AS cor0
----
-18424
-207646
-2350

query I rowsort
SELECT ALL - col2 * + 41 * + col1 + 64 FROM tab1 AS cor0
----
-12031
-130972
-55040

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 33, + 99 - - ( + + col2 ) )
----

query I rowsort
SELECT ALL + 85 / - - col2 - + 87 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 * + + ( 59 ) * col0 * - col1 AND NULL
----

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

query II rowsort
SELECT ALL - col2 * - 94 AS col0, 18 * - col1 * col0 FROM tab0
----
4418
-21870
9306
-1746
940
-32886

query I rowsort
SELECT 97 * - - col0 * - + 22 * col2 FROM tab1
----
-10448064
-10702010
-13205192

onlyif mysql # aggregate syntax: 
query II rowsort label-76
SELECT ALL MIN( ALL + col1 ) AS col2, - SUM( - 10 ) FROM tab1
----
5
30

skipif mysql # not compatible
query II rowsort label-76
SELECT ALL MIN ( ALL + col1 ) AS col2, - SUM ( - 10 ) FROM tab1
----
5
30

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

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

query I rowsort
SELECT DISTINCT + col1 * + 80 FROM tab0 AS cor0
----
1680
6480
80

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + col1 / + col1 - col1 + + col2 * - + col2 < + col2 AND NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT COUNT( * ) + + 15 AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-80
SELECT COUNT ( * ) + + 15 AS col0 FROM tab1
----
18

query II rowsort
SELECT + col0, + 12 FROM tab1
----
51
12
85
12
91
12

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-82
SELECT ALL AVG ( col1 ) * + + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - ( - 28 ) FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab2 AS cor0 WHERE col2 * - col0 NOT IN ( - 52, + 48 )
----
76

query II rowsort
SELECT DISTINCT - 63 + + ( + col1 ), 35 AS col1 FROM tab0 AS cor0
----
-42
35
-62
35
18
35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 > col2
----

query I rowsort
SELECT DISTINCT + col0 + col1 * - col2 AS col0 FROM tab1 cor0
----
-1293
-210
-3105

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

query I rowsort
SELECT + col2 * - + 10 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT DISTINCT MAX( ALL - col2 ) * 44 * - COUNT( * ) + - + ( 6 ) - 54 col1 FROM tab1 AS cor0
----
7728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-90
SELECT DISTINCT MAX ( ALL - col2 ) * 44 * - COUNT ( * ) + - + ( 6 ) - 54 col1 FROM tab1 AS cor0
----
7728

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

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT - + COUNT ( * ) / + - 62 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 0 * - 90 * - - col2 AS col2, + col1 col1 FROM tab1 cor0
----
0
14
0
47
0
5

query I rowsort
SELECT col2 + - 16 AS col0 FROM tab1
----
43
52
80

query I rowsort
SELECT - col2 * col2 + - 5 AS col2 FROM tab0
----
-105
-2214
-9806

query I rowsort
SELECT DISTINCT col2 + + col1 * + + 18 + - - col0 FROM tab0
----
1520
214
475

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

query I rowsort
SELECT + 57 - + 44 FROM tab1 AS cor0 WHERE ( NULL ) < + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT + MIN( 92 ) AS col0 FROM tab2, tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-98
SELECT + MIN ( 92 ) AS col0 FROM tab2, tab2 AS cor0
----
92

query I rowsort
SELECT ALL 3 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - 88 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-102
SELECT DISTINCT + + CAST( MIN( ALL 69 ) AS SIGNED ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + + CAST ( MIN ( ALL 69 ) AS INTEGER ) FROM tab2 AS cor0
----
69

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

skipif mysql # not compatible
query II rowsort label-103
SELECT - col1 / + + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 45 AS col2 FROM tab0 AS cor0
----
-3645
-45
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT + + col0 DIV - - col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-105
SELECT + + col0 / - - col1 AS col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT ALL ( - 0 ) AS col0 FROM tab2
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-110
SELECT * FROM tab1 WHERE 82 * + col2 + + 47 + + ( + col2 ) * - CAST( NULL AS SIGNED ) + - + 57 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-110
SELECT * FROM tab1 WHERE 82 * + col2 + + 47 + + ( + col2 ) * - CAST ( NULL AS INTEGER ) + - + 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 11 AS col0 FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 11 AS col0 FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT + col1 DIV + col1 + - - col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-112
SELECT + col1 / + col1 + - - col2 FROM tab2
----
24
41
59

query I rowsort
SELECT DISTINCT col2 * 71 + col1 + + col1 FROM tab1 AS cor0
----
4199
4922
6844

query I rowsort
SELECT DISTINCT col2 + + col1 * + ( - - 37 ) + - + col0 FROM tab0 AS cor0
----
3029
39
700

query I rowsort
SELECT + + 76 + + 51 + - col2 AS col2 FROM tab2 AS cor0
----
104
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT - - 37 + - MAX( ALL + 18 ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-116
SELECT - - 37 + - MAX ( ALL + 18 ) AS col2 FROM tab1 AS cor0
----
19

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE - 31 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT + - 22 + 85 - 29 * col2 FROM tab0 AS cor0
----
-1300
-227
-2808

onlyif mysql # DIV for integer division: 
query II rowsort label-119
SELECT DISTINCT - col2 - + col1 * - - col0 - + col0 + + + col2 + - col2 + + + 75 * + col1 + + + 58 DIV + 68 AS col0, - ( - 95 ) DIV + 88 + ( - col1 ) AS col0 FROM tab1
----
-194
-4
-911
-46
189
-13

skipif mysql # not compatible
query II rowsort label-119
SELECT DISTINCT - col2 - + col1 * - - col0 - + col0 + + + col2 + - col2 + + + 75 * + col1 + + + 58 / + 68 AS col0, - ( - 95 ) / + 88 + ( - col1 ) AS col0 FROM tab1
----
-194
-4
-911
-46
189
-13

query I rowsort
SELECT 94 - + 63 AS col2 FROM tab0 AS cor0
----
31
31
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 19 <> NULL
----

query I rowsort
SELECT ALL col0 - - + col0 + - col2 * + + col1 AS col0 FROM tab2 AS cor0
----
-1081
-2952
-3736

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

query II rowsort
SELECT - + 37 AS col2, - ( + - col2 ) * - col1 - 99 FROM tab2 WHERE NOT NULL >= + col2
----

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

skipif mysql # not compatible
query I rowsort label-125
SELECT + CAST ( + 89 AS INTEGER ) FROM tab2
----
89
89
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + - 19 * col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + - 19 * col1 IS NULL )
----
0

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

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + + ( + + SUM ( ( - - col2 ) ) ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + - col0 * + + col1 FROM tab1 AS cor0
----
-425
-4277
-714

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( - + 3 ) <> - + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-132
SELECT DISTINCT - MAX( ALL + col2 ), SUM( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
-58
121

skipif mysql # not compatible
query II rowsort label-132
SELECT DISTINCT - MAX ( ALL + col2 ), SUM ( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
-58
121

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-136
SELECT ALL COUNT( DISTINCT - col0 ) AS col0, COUNT( * ) DIV + COUNT( * ) FROM tab2
----
3
1

skipif mysql # not compatible
query II rowsort label-136
SELECT ALL COUNT ( DISTINCT - col0 ) AS col0, COUNT ( * ) / + COUNT ( * ) FROM tab2
----
3
1

query II rowsort
SELECT DISTINCT + col0 + 80, col2 AS col1 FROM tab2 AS cor0
----
126
23
144
40
155
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2, - 52 )
----

query II rowsort
SELECT DISTINCT - 49 + - + 49 AS col0, - 84 AS col1 FROM tab0 AS cor0
----
-98
-84

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

query II rowsort
SELECT DISTINCT + 9, + 20 + + + 47 AS col1 FROM tab2
----
9
67

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + 33 + + ( + ( + 19 ) ) IS NULL
----

query I rowsort
SELECT ALL - col1 * 80 AS col2 FROM tab1
----
-1120
-3760
-400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + col2 col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-145
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE + CAST( col1 AS SIGNED ) * + 68 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-145
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( col1 AS INTEGER ) * + 68 IS NOT NULL
----
3

query I rowsort
SELECT col0 + 35 FROM tab2 AS cor0 WHERE NULL IS NULL
----
110
81
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-147
SELECT + - CAST( NULL AS DECIMAL ) AS col1, col1 * + - col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-147
SELECT + - CAST ( NULL AS REAL ) AS col1, col1 * + - col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
-1173
NULL
-3080
NULL
-3886

query I rowsort
SELECT col1 * + col2 - col1 - + + col0 FROM tab1 AS cor0
----
1279
205
3058

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

query I rowsort
SELECT DISTINCT 87 - col0 FROM tab2
----
12
23
41

onlyif mysql # aggregate syntax: 
query II rowsort label-151
SELECT DISTINCT + COUNT( * ) * + 51 col1, 31 AS col0 FROM tab1
----
153
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-151
SELECT DISTINCT + COUNT ( * ) * + 51 col1, 31 AS col0 FROM tab1
----
153
31

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

query I rowsort
SELECT 88 + - col1 AS col0 FROM tab2
----
11
21
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-154
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - col0 * - + 94 AS col0 FROM tab2
----
198904
385024
528750

query I rowsort
SELECT 36 + + col0 FROM tab1
----
121
127
87

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

query I rowsort
SELECT + 19 FROM tab2 AS cor0 WHERE - 8 IS NOT NULL
----
19
19
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-160
SELECT ALL + - MIN( + + CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + - MIN ( + + CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-161
SELECT + 59, 21 * ( + - CAST( - 2 AS SIGNED ) ) * + 34 + + 33 AS col1 FROM tab1
----
59
1461
59
1461
59
1461

skipif mysql # not compatible
query II rowsort label-161
SELECT + 59, 21 * ( + - CAST ( - 2 AS INTEGER ) ) * + 34 + + 33 AS col1 FROM tab1
----
59
1461
59
1461
59
1461

query I rowsort
SELECT ALL + col1 * - 55 AS col2 FROM tab2
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT - + MAX( DISTINCT 78 ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-163
SELECT - + MAX ( DISTINCT 78 ) AS col1 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab0 AS cor0 WHERE NOT + 19 + col0 * + + 45 > + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-165
SELECT - + COUNT( * ) AS col2, - 20 AS col2 FROM tab1 AS cor0
----
-3
-20

skipif mysql # not compatible
query II rowsort label-165
SELECT - + COUNT ( * ) AS col2, - 20 AS col2 FROM tab1 AS cor0
----
-3
-20

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

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

query I rowsort
SELECT - - col2 * + - 4 AS col2 FROM tab2 AS cor0
----
-160
-232
-92

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT col1 DIV - - 79 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-169
SELECT col1 / - - 79 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + 0 * - ( + col0 ) - + + col0 + + 24 NOT BETWEEN - col2 AND - col1
----

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

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

query I rowsort
SELECT - col1 * - 76 + col0 FROM tab1 AS cor0
----
1115
3663
465

query I rowsort
SELECT - 29 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + COUNT( * ) * COUNT( * ) + 68 AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-175
SELECT + COUNT ( * ) * COUNT ( * ) + 68 AS col1 FROM tab2
----
77

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

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT - COUNT ( * ) + + MIN ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-178
SELECT ALL - 86 + + col1 + + col2 * + col1 + + CAST( NULL AS SIGNED ) + + col1 * - + col1 - + + col2 + - col2 / col1 AS col1, 34 AS col0 FROM tab1 AS cor0
----
NULL
34
NULL
34
NULL
34

skipif mysql # not compatible
query II rowsort label-178
SELECT ALL - 86 + + col1 + + col2 * + col1 + + CAST ( NULL AS INTEGER ) + + col1 * - + col1 - + + col2 + - col2 / col1 AS col1, 34 AS col0 FROM tab1 AS cor0
----
NULL
34
NULL
34
NULL
34

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

skipif mysql # not compatible
query I rowsort label-179
SELECT - ( - CAST ( NULL AS REAL ) ) * + + 14 + - col0 * + col1 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * - + col2 >= col1 + - - 88 + + col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT + COUNT( * ) FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT + COUNT ( * ) FROM tab0 WHERE NULL <> NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - col1 - + 71 / + - 79 * - - col2 BETWEEN 3 / 76 + 79 AND NULL
----

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

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

query I rowsort
SELECT ALL 85 * + + 70 AS col1 FROM tab1
----
5950
5950
5950

query I rowsort
SELECT - - 37 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + ( - 15 ) AS col0 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT 69 * - ( + col1 ) * + col1 FROM tab0
----
-30429
-452709
-69

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab0 cor0
----
59

query II rowsort
SELECT DISTINCT - col1, + ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + + 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-193
SELECT + - ( + - CAST( NULL AS DECIMAL ) ), col0 - - col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
144
NULL
147
NULL
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-193
SELECT + - ( + - CAST ( NULL AS REAL ) ), col0 - - col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
144
NULL
147
NULL
159

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

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

query I rowsort
SELECT ALL + 43 AS col0 FROM tab0 cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 AS cor0 WHERE NOT + 71 + - col2 - col0 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 22 * 31 AS col1 FROM tab2
----
682

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT MIN( DISTINCT + - 20 ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT MIN ( DISTINCT + - 20 ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT MIN( + col1 ) * - - 55 + - + COUNT( * ) AS col1 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-200
SELECT MIN ( + col1 ) * - - 55 + - + COUNT ( * ) AS col1 FROM tab0
----
52

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE col1 - - 63 IS NOT NULL
----
51
67
77

query II rowsort
SELECT col0 AS col0, + ( - 13 ) * col0 * - - col0 AS col1 FROM tab0
----
15
-2925
87
-98397
97
-122317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT + - CAST( - col0 AS SIGNED ) NOT IN ( + + col2, 30, 70, - 47, ( - + 14 ) / col1 / col2 )
----

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT + - CAST ( - col0 AS INTEGER ) NOT IN ( + + col2, 30, 70, - 47, ( - + 14 ) / col1 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT ( - 88 ) * + ( + + SUM( + 77 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-60984

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT ( - 88 ) * + ( + + SUM ( + 77 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-60984

query I rowsort
SELECT DISTINCT - 96 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT ALL CAST( NULL AS SIGNED ) * 80 + 9 / + - 32 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL CAST ( NULL AS INTEGER ) * 80 + 9 / + - 32 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 45 * col2 - col0 FROM tab2 AS cor0
----
1736
2535
989

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-209
SELECT * FROM tab2 cor0 WHERE - 17 < + col2 + + col0 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-209
SELECT * FROM tab2 cor0 WHERE - 17 < + col2 + + col0 + - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT 10 DIV COUNT( * ) - + 43 AS col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-210
SELECT 10 / COUNT ( * ) - + 43 AS col2 FROM tab2 AS cor0
----
-40

query II rowsort
SELECT DISTINCT + + col1 + - 21 AS col0, + 15 + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-20
113
0
123
60
111

query I rowsort
SELECT ALL - ( + 14 ) * col0 + - - ( col1 ) - + - col1 AS col1 FROM tab2 AS cor0
----
-542
-742
-916

query I rowsort
SELECT + col2 + + - 26 * col0 - - + 88 AS col0 FROM tab0
----
-2164
-2335
-255

query I rowsort
SELECT - ( + col1 ) + + - col2 FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT DISTINCT + COUNT( * ) * ( SUM( DISTINCT - + col1 ) ) AS col1 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT + COUNT ( * ) * ( SUM ( DISTINCT - + col1 ) ) AS col1 FROM tab0
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT - MAX( - 44 ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-216
SELECT - MAX ( - 44 ) FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT + MIN( + + col2 ) * - 72 col1 FROM tab2
----
-1656

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT + MIN ( + + col2 ) * - 72 col1 FROM tab2
----
-1656

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

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

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

query I rowsort
SELECT ALL - - 94 AS col1 FROM tab1 WHERE - col0 + col2 IS NOT NULL
----
94
94
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * - 68 * + col2 col1 FROM tab1
----
-345032
-397664
-561408

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

query I rowsort
SELECT + col1 * + ( col1 ) * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT col0 + col1 * - 62 FROM tab2 AS cor0 WHERE NOT NULL <= ( - 61 * col0 )
----

query I rowsort
SELECT DISTINCT - 56 * + + col1 AS col1 FROM tab0 AS cor0
----
-1176
-4536
-56

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

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

query I rowsort
SELECT DISTINCT - + ( - 78 ) * + col1 + + col0 FROM tab0 AS cor0
----
1725
175
6333

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-229
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - 25 AS DECIMAL ) / + 7 * - 93 + + - 38 <> - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-229
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - 25 AS REAL ) / + 7 * - 93 + + - 38 <> - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL COUNT( * ) * + - 99 AS col1 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL COUNT ( * ) * + - 99 AS col1 FROM tab0
----
-297

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 56 NOT BETWEEN NULL AND - + 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT DISTINCT col2 DIV - + 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT col2 / - + 92 FROM tab2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT COUNT( * ) * - 81 + - - MAX( - col2 ) FROM tab0 cor0
----
-253

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT COUNT ( * ) * - 81 + - - MAX ( - col2 ) FROM tab0 cor0
----
-253

query I rowsort
SELECT DISTINCT - - 53 - - 33 FROM tab2 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL IS NULL
----
16

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

skipif mysql # not compatible
query I rowsort label-239
SELECT - CAST ( + 47 AS INTEGER ) FROM tab0 WHERE ( col2 + col2 - + + ( + 98 ) / 53 * - - col2 - 60 / - - col1 IS NOT NULL )
----
-47
-47
-47

query I rowsort
SELECT + ( + col2 ) * ( + - 25 ) * col1 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-12078
-6120
-95880

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-241
SELECT + - 33 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT + - 33 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 43 + - col1 FROM tab2 AS cor0
----
-24
-34
-8

query I rowsort
SELECT - 15 * col0 + + - col1 FROM tab1 AS cor0
----
-1280
-1412
-779

query II rowsort
SELECT DISTINCT 84, ( + col2 ) * + - col2 AS col2 FROM tab1 AS cor0
----
84
-3481
84
-4624
84
-9216

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * 61 AS col0 FROM tab1
----
-3599
-4148
-5856

query II rowsort
SELECT ALL - col2, - ( - + 68 ) AS col1 FROM tab0
----
-10
68
-47
68
-99
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-249
SELECT + CAST( AVG ( ALL - + 46 ) AS SIGNED ) AS col0 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-249
SELECT + CAST ( AVG ( ALL - + 46 ) AS INTEGER ) AS col0 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT + 31 * + MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
465

skipif mysql # not compatible
query I rowsort label-250
SELECT + 31 * + MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
465

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

query I rowsort
SELECT 57 * - - 37 FROM tab0
----
2109
2109
2109

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

skipif mysql # not compatible
query I rowsort label-253
SELECT - + 52 * CAST ( NULL AS INTEGER ) * 97 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 75, - col1 col1 FROM tab1 AS cor0
----
75
-14
75
-47
75
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col0, + 57 * + col1 FROM tab2 AS cor0
----
46
2907
64
4389
75
3819

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

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

query I rowsort
SELECT - ( - 76 ) * + 13 - - col2 + - col1 + + 29 + + + col2 + col2 FROM tab1 cor0 WHERE NOT NULL >= + 97
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 88 * 76 AS col1 FROM tab2 AS cor0
----
6688

query I rowsort
SELECT ALL - col2 * - 73 * 35 AS col1 FROM tab1 cor0
----
150745
173740
245280

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

query I rowsort
SELECT - 83 * + - 89 FROM tab0
----
7387
7387
7387

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

query I rowsort
SELECT + 49 * + + col0 AS col2 FROM tab1
----
2499
4165
4459

query I rowsort
SELECT DISTINCT col2 * + + 53 AS col1 FROM tab0
----
2491
5247
530

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

skipif mysql # not compatible
query I rowsort label-268
SELECT - 67 + + - ( + COUNT ( * ) ) FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + 93 * 56 + - SUM( DISTINCT + col1 ) + + - COUNT( * ) col2 FROM tab0
----
5102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-269
SELECT + 93 * 56 + - SUM ( DISTINCT + col1 ) + + - COUNT ( * ) col2 FROM tab0
----
5102

query I rowsort
SELECT DISTINCT 14 + col0 + + 24 * - col2 * - col2 FROM tab1
----
111081
221249
83643

query I rowsort
SELECT - 84 + col2 * 12 AS col1 FROM tab1
----
1068
624
732

query I rowsort
SELECT + 27 * 34 FROM tab2 WHERE - - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - - - col1 < - 27
----
15
81
47

query I rowsort
SELECT DISTINCT - - col1 + 78 AS col0 FROM tab0 AS cor0
----
159
79
99

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT ALL col2 DIV 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL col2 / 95 FROM tab2
----
0
0
0

query I rowsort
SELECT ( ( col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-277
SELECT - ( col1 ) / CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT - ( col1 ) / CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT ALL 16 DIV - 98 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL 16 / - 98 AS col0 FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-282
SELECT 33 DIV + MAX( DISTINCT + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-282
SELECT 33 / + MAX ( DISTINCT + col0 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-283
SELECT - col2 DIV - CAST( 55 AS SIGNED ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-283
SELECT - col2 / - CAST ( 55 AS INTEGER ) AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - ( col0 ) * - col0 - - 57 AS col1 FROM tab1
----
2658
7282
8338

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > - col2 * + 85
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 17 * col1 >= 26
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN 21 * - 27 AND - col0 + - 71
----

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

query I rowsort
SELECT col2 + 10 AS col1 FROM tab0 WHERE 45 < 99
----
109
20
57

query I rowsort
SELECT - col2 + 67 FROM tab1
----
-1
-29
8

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 + + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT + MAX( DISTINCT 29 ) - COUNT( * ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT + MAX ( DISTINCT 29 ) - COUNT ( * ) AS col0 FROM tab1
----
26

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

skipif mysql # not compatible
query I rowsort label-293
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - 70 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT ALL + 83 AS col0 FROM tab0 WHERE ( CAST( 57 AS SIGNED ) ) * + 22 IS NULL
----

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL + 83 AS col0 FROM tab0 WHERE ( CAST ( 57 AS INTEGER ) ) * + 22 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 + - 4 ) > ( col0 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT - MAX( ALL 92 ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - MAX ( ALL 92 ) FROM tab0 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT - 82 DIV 33 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-298
SELECT - 82 / 33 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-2
-2
-2

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

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

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

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

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 ) WHERE ( NULL ) BETWEEN NULL AND 47
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT - col2 * CAST( ( + 58 ) AS SIGNED ) + 2 FROM tab0 AS cor0
----
-2724
-5740
-578

skipif mysql # not compatible
query I rowsort label-308
SELECT - col2 * CAST ( ( + 58 ) AS INTEGER ) + 2 FROM tab0 AS cor0
----
-2724
-5740
-578

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT + + col2 + - col1 DIV - col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-309
SELECT + + col2 + - col1 / - col1 FROM tab0 AS cor0
----
100
11
48

query I rowsort
SELECT DISTINCT 76 + + 99 FROM tab2 AS cor0
----
175

query I rowsort
SELECT + 46 + - 46 * col2 AS col1 FROM tab1 AS cor0
----
-2668
-3082
-4370

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

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT + 95 * + col1 + col0 DIV + col0 AS col0 FROM tab0 cor0
----
1996
7696
96

skipif mysql # not compatible
query I rowsort label-313
SELECT + 95 * + col1 + col0 / + col0 AS col0 FROM tab0 cor0
----
1996
7696
96

query I rowsort
SELECT - 32 * + 85 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-2720
-2720
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL COUNT( * ) + MIN( ALL 21 ) * - COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL COUNT ( * ) + MIN ( ALL 21 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-60

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-319
SELECT COUNT ( * ) / COUNT ( * ) * 83 AS col0 FROM tab1
----
83

query I rowsort
SELECT col2 * + - col1 * ( col2 * col0 ) FROM tab2
----
-1241034
-16904100
-7884800

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT MAX( + col1 ) * - 49 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT MAX ( + col1 ) * - 49 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( + 84 + + col2 * ( col0 ) )
----

query I rowsort
SELECT DISTINCT + 71 + col0 + + 2 FROM tab2
----
119
137
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT CAST( + + col2 AS SIGNED ) * col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-324
SELECT CAST ( + + col2 AS INTEGER ) * col0 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * + col0 col1 FROM tab0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL COUNT( * ) + + + 59 + + 66 FROM tab1 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL COUNT ( * ) + + + 59 + + 66 FROM tab1 AS cor0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT + 17 - - COUNT( * ) * + SUM( DISTINCT col1 + col1 ) FROM tab2 AS cor0
----
1187

skipif mysql # not compatible
query I rowsort label-327
SELECT + 17 - - COUNT ( * ) * + SUM ( DISTINCT col1 + col1 ) FROM tab2 AS cor0
----
1187

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT ( + col2 ) + + 58 DIV 90 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT ( + col2 ) + + 58 / 90 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-329
SELECT ALL + + CAST( 3 AS SIGNED ) * + col2 + col2 AS col2 FROM tab2 AS cor0
----
160
232
92

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL + + CAST ( 3 AS INTEGER ) * + col2 + col2 AS col2 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT + col2 * - 35 * 7 - col0 FROM tab2 AS cor0
----
-14285
-5681
-9864

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL - 10 * - + COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - 10 * - + COUNT ( * ) FROM tab2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + 18 + - + MAX( + col1 ) + + COUNT( * ) AS col2 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-332
SELECT + 18 + - + MAX ( + col1 ) + + COUNT ( * ) AS col2 FROM tab0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT ALL - col1 * + + col1 * 1 DIV + 1 AS col0 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL - col1 * + + col1 * 1 / + 1 AS col0 FROM tab2
----
-2601
-4489
-5929

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-335
SELECT COUNT( * ), + COUNT( - 50 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-335
SELECT COUNT ( * ), + COUNT ( - 50 ) FROM tab2
----
3
3

query I rowsort
SELECT + 57 * + 2 FROM tab0 AS cor0
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT 37 * + + COUNT( * ) + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-337
SELECT 37 * + + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT - + 93 DIV + 92 + + col1 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-338
SELECT - + 93 / + 92 + + col1 FROM tab0 AS cor0
----
0
20
80

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

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

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

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

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

query I rowsort
SELECT + col0 * - + col2 + col1 FROM tab1 cor0
----
-4882
-5010
-6141

query I rowsort
SELECT - 16 / 6 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT ALL + col0 AS col1 FROM tab1 WHERE CAST( - + col0 AS SIGNED ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + col0 AS col1 FROM tab1 WHERE CAST ( - + col0 AS INTEGER ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT SUM( 13 ) AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-346
SELECT SUM ( 13 ) AS col1 FROM tab2
----
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 55 * + - 54 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab0 cor0
----
59

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( col1 ) AND 31
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT - COUNT( DISTINCT 80 ) AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-351
SELECT - COUNT ( DISTINCT 80 ) AS col2 FROM tab1 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 + col2 - 58 AS col0, col2 col2 FROM tab1 AS cor0
----
-13
96
-81
68
-84
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-353
SELECT - 20 * + CAST( + 21 AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-353
SELECT - 20 * + CAST ( + 21 AS REAL ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL - 91 + + - COUNT( * ) FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL - 91 + + - COUNT ( * ) FROM tab2 cor0
----
-94

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <= + col2
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-357
SELECT DISTINCT 59 AS col0, + 75 * - COUNT( * ) FROM tab2
----
59
-225

skipif mysql # not compatible
query II rowsort label-357
SELECT DISTINCT 59 AS col0, + 75 * - COUNT ( * ) FROM tab2
----
59
-225

query I rowsort
SELECT 78 + 87 FROM tab1
----
165
165
165

query II rowsort
SELECT DISTINCT + col1 * + col2 AS col2, - 74 + - col0 AS col1 FROM tab1
----
1344
-125
295
-159
3196
-165

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN ( + 23 ) AND - ( - 84 ) + col2
----

query I rowsort
SELECT ALL - ( - 90 ) AS col1 FROM tab2 WHERE NOT + + ( + - 77 ) * + col1 >= ( NULL )
----

query I rowsort
SELECT ALL - 10 * - + 0 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + - + 67 FROM tab1
----
-16
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT COUNT( * ) FROM tab2 WHERE 42 * - + col2 * - col0 BETWEEN - col1 * 16 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT COUNT ( * ) FROM tab2 WHERE 42 * - + col2 * - col0 BETWEEN - col1 * 16 AND NULL
----
0

query I rowsort
SELECT ALL + 60 AS col0 FROM tab0 WHERE NOT + + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - col0 + col1 - - col1 AS col0 FROM tab1 AS cor0
----
-119
-134
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-367
SELECT ALL col2 * + - CAST( 58 AS SIGNED ) - + 3 + 84 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
17057
2571
317059

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL col2 * + - CAST ( 58 AS INTEGER ) - + 3 + 84 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
17057
2571
317059

query I rowsort
SELECT DISTINCT 69 + - col2 * + - 0 AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-369
SELECT col1 col2 FROM tab0 WHERE NOT - + col1 * - + CAST( - + col0 AS SIGNED ) * col1 / - + 63 IN ( col0 / - 80 )
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-369
SELECT col1 col2 FROM tab0 WHERE NOT - + col1 * - + CAST ( - + col0 AS INTEGER ) * col1 / - + 63 IN ( col0 / - 80 )
----
1
21
81

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

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

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

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

query I rowsort
SELECT DISTINCT + + col2 * - + col2 + + 14 FROM tab1 AS cor0
----
-3467
-4610
-9202

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT + 4 * - - MAX( 96 ) * 67 AS col2 FROM tab2
----
25728

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT + 4 * - - MAX ( 96 ) * 67 AS col2 FROM tab2
----
25728

onlyif mysql # aggregate syntax: 
query II rowsort label-375
SELECT ALL + 10 * + ( COUNT( * ) ), 49 * 37 AS col1 FROM tab1
----
30
1813

skipif mysql # not compatible
query II rowsort label-375
SELECT ALL + 10 * + ( COUNT ( * ) ), 49 * 37 AS col1 FROM tab1
----
30
1813

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT - COUNT( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT - COUNT ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 + + col2 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT ALL + - CAST( NULL AS SIGNED ) / + + col1 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-379
SELECT ALL + - CAST ( NULL AS INTEGER ) / + + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT 87 + + + col1 - + ( col2 ) DIV - - 34 FROM tab1
----
132
91
99

skipif mysql # not compatible
query I rowsort label-380
SELECT 87 + + + col1 - + ( col2 ) / - - 34 FROM tab1
----
132
91
99

query I rowsort
SELECT ALL - 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

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

skipif mysql # not compatible
query I rowsort label-382
SELECT + - 10 * + 47 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-467

query I rowsort
SELECT col0 + - 27 AS col0 FROM tab2 AS cor0
----
19
37
48

query I rowsort
SELECT - 44 + 34 * + col2 AS col1 FROM tab1 AS cor0
----
1962
2268
3220

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

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL 11 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
8

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

onlyif mysql # aggregate syntax: 
query II rowsort label-387
SELECT SUM( - - col2 ) AS col0, 46 * - 67 FROM tab0 AS cor0
----
156
-3082

skipif mysql # not compatible
query II rowsort label-387
SELECT SUM ( - - col2 ) AS col0, 46 * - 67 FROM tab0 AS cor0
----
156
-3082

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

query I rowsort
SELECT DISTINCT + col2 + + 70 AS col0 FROM tab0
----
117
169
80

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL MIN( col1 ) - COUNT( * ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL MIN ( col1 ) - COUNT ( * ) AS col1 FROM tab2
----
48

query II rowsort
SELECT - 38 AS col1, col0 * - 44 + - 54 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) >= + col2 + - col0 * col2 AND NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) >= + col2 + - col0 * col2 AND NULL BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ALL col2 + + + ( + - 42 ) * + col0 FROM tab1
----
-2046
-3511
-3754

query II rowsort
SELECT + col0 * - - col2 - - col1 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
786
81
891
21
9604
1

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL + COUNT( - 9 ) + 2 AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + COUNT ( - 9 ) + 2 AS col0 FROM tab2 AS cor0
----
5

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

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-90

query II rowsort
SELECT - ( - 58 ) AS col0, 3 + - - 63 AS col0 FROM tab2 AS cor0
----
58
66
58
66
58
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT - COUNT( ALL - CAST( + - col0 AS SIGNED ) ) * 70 AS col2 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-399
SELECT - COUNT ( ALL - CAST ( + - col0 AS INTEGER ) ) * 70 AS col2 FROM tab0 AS cor0
----
-210

query II rowsort
SELECT DISTINCT + ( - 12 ) * + col2 * - 10, col2 FROM tab1 AS cor0
----
11520
96
7080
59
8160
68

query I rowsort
SELECT ALL col2 * - - col1 * + - col1 * + col1 * - col1 FROM tab0 AS cor0
----
1944810
2023195887
99

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( 31 ) AND - col1
----

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

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - 85 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col1 * + - col2 FROM tab2 cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 31 * + COUNT( * ) col0 FROM tab0
----
93

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

query I rowsort
SELECT ALL col2 * + + 20 FROM tab0
----
1980
200
940

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-411
SELECT DISTINCT CAST( MAX( ALL + col0 ) AS SIGNED ) DIV - - 89 + COUNT( * ) - + 76 AS col2 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT CAST ( MAX ( ALL + col0 ) AS INTEGER ) / - - 89 + COUNT ( * ) - + 76 AS col2 FROM tab2
----
-73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-413
SELECT + 57 DIV - 89 * + + SUM( - col1 ) * + MAX( - - col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-413
SELECT + 57 / - 89 * + + SUM ( - col1 ) * + MAX ( - - col2 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT 80 * - - 87 FROM tab2
----
6960
6960
6960

query I rowsort
SELECT - + col0 + + col1 + col0 AS col0 FROM tab1 AS cor0
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - 71 / - - col1 AS col1 FROM tab1
----
-1
-14
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT - 98 DIV + col0 AS col1 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-417
SELECT - 98 / + col0 AS col1 FROM tab0
----
-1
-1
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT MAX( ALL - 31 ) AS col2 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-418
SELECT MAX ( ALL - 31 ) AS col2 FROM tab1
----
-31

query II rowsort
SELECT DISTINCT - col0 * + col2 + - col0 AS col2, + col0 FROM tab1
----
-4947
51
-5100
85
-6279
91

query I rowsort
SELECT ALL + + 23 AS col2 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL 51 * + col0 + + + col1 FROM tab0 cor0
----
4458
4948
846

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT MIN( + col0 ) FROM tab2 AS cor0 WHERE + col0 + - 46 * - col2 * + - col1 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-423
SELECT MIN ( + col0 ) FROM tab2 AS cor0 WHERE + col0 + - 46 * - col2 * + - col1 IS NOT NULL
----
46

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

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

query I rowsort
SELECT + ( - col1 ) + - + col1 AS col0 FROM tab0
----
-162
-2
-42

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

query I rowsort
SELECT DISTINCT + 16 - col0 * - col2 FROM tab0
----
721
886
9619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-428
SELECT + 62 + 60 AS col2, - AVG ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) col1 FROM tab2
----
122
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-428
SELECT + 62 + 60 AS col2, - AVG ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) col1 FROM tab2
----
122
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT + 15 - MIN( ALL + 24 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + 15 - MIN ( ALL + 24 ) FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * + + col0 * col2 col1 FROM tab0
----
6345
7830
86427

onlyif mysql # DIV for integer division: 
query II rowsort label-431
SELECT ALL 47 DIV col2 * 74 + + + col1 col2, - 61 FROM tab2
----
151
-61
199
-61
67
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-431
SELECT ALL 47 / col2 * 74 + + + col1 col2, - 61 FROM tab2
----
151
-61
199
-61
67
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 + - 53 ) <> col1 * + + 1 + + col2
----

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

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 + - col0 FROM tab2 AS cor0 WHERE NOT - col1 > + col0 + + + 61
----
46
-97
64
-141
75
-142

query I rowsort
SELECT DISTINCT + 3 * + col1 + + col1 FROM tab2 AS cor0
----
204
268
308

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT col2 BETWEEN col0 AND + 92 )
----
15
81
47

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 97 <= col1
----

query I rowsort
SELECT + 71 * col1 FROM tab1 AS cor0
----
3337
355
994

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / + col1 <= ( NULL )
----

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

query I rowsort
SELECT DISTINCT + 39 * - + col1 AS col2 FROM tab0 AS cor0
----
-3159
-39
-819

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

query I rowsort
SELECT ALL col1 + 82 FROM tab0 cor0 WHERE NOT - col0 / + - col0 < - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col2 ) col0 FROM tab1
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-446
SELECT + ( + - MIN ( - 92 ) ) AS col2 FROM tab1
----
92

query I rowsort
SELECT DISTINCT - col2 * - col2 + + + 57 FROM tab2
----
1657
3421
586

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-449
SELECT DISTINCT 23, + COUNT( * ) + - - CAST( NULL AS SIGNED ) / + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-449
SELECT DISTINCT 23, + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
23
NULL

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-453
SELECT col0, 88 DIV - 99 * col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-453
SELECT col0, 88 / - 99 * col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT ALL + col0 + - 66 * - col2 FROM tab0 AS cor0
----
3117
6631
747

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

skipif mysql # not compatible
query I rowsort label-455
SELECT MAX ( - col2 ) AS col2 FROM tab2 cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT DISTINCT 26 + + - col1 DIV + ( + 25 ) AS col2 FROM tab2 AS cor0
----
23
24

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT 26 + + - col1 / + ( + 25 ) AS col2 FROM tab2 AS cor0
----
23
24

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

query II rowsort
SELECT DISTINCT col2 + - col1, + 29 AS col2 FROM tab2 AS cor0
----
-28
29
-37
29
-9
29

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-460
SELECT + 6 - + + SUM( DISTINCT + col0 ) DIV COUNT( * ) FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-460
SELECT + 6 - + + SUM ( DISTINCT + col0 ) / COUNT ( * ) FROM tab2 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT MAX( DISTINCT col0 ) * + + COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT MAX ( DISTINCT col0 ) * + + COUNT ( * ) FROM tab1
----
273

query I rowsort
SELECT col0 + - - col0 AS col0 FROM tab0
----
174
194
30

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-464
SELECT DISTINCT col0 + + CAST( NULL AS DECIMAL ) AS col1, + col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-464
SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) AS col1, + col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL + col1 - + 62 AS col2 FROM tab0 AS cor0
----
-41
-61
19

query I rowsort
SELECT ALL col1 * + 91 - + 41 FROM tab2 AS cor0
----
4600
6056
6966

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT DISTINCT - 86 * - + col2 - + + col0 DIV - 51 AS col1 FROM tab2 AS cor0
----
1978
3441
4989

skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT - 86 * - + col2 - + + col0 / - 51 AS col1 FROM tab2 AS cor0
----
1978
3441
4989

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

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

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

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

query I rowsort
SELECT ALL col0 * - - col0 * - ( - col1 ) + + + 8 FROM tab1 WHERE NOT ( ( 64 < NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT DISTINCT col2 DIV + 42 col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-472
SELECT DISTINCT col2 / + 42 col1 FROM tab0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT - col0 * + - col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3375
-658503
-912673

skipif mysql # not compatible
query I rowsort label-473
SELECT - col0 * + - col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3375
-658503
-912673

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

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

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

query II rowsort
SELECT DISTINCT col0 + + + col0 AS col2, col2 * + col2 * - + 43 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + ( - - 94 ) AS col1 FROM tab1 cor0
----
94

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

query I rowsort
SELECT - col1 + 85 FROM tab0
----
4
64
84

query I rowsort
SELECT 31 + + col2 * - + 65 + + + 49 AS col0 FROM tab1
----
-3755
-4340
-6160

query II rowsort
SELECT ALL 37, + col2 FROM tab1
----
37
59
37
68
37
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col2 * 22 col0 FROM tab2
----
-1209
-455
-803

query I rowsort
SELECT DISTINCT + col2 - + - col2 AS col1 FROM tab0 WHERE NULL NOT IN ( - col0, + 65, - col0 - - + col2, + 34, 47 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 88 IS NOT NULL )
----

query II rowsort
SELECT - - col1 * col1, col0 * col1 FROM tab2 WHERE - 45 > + 45
----

onlyif mysql # aggregate syntax: 
query II rowsort label-487
SELECT ALL + 86 * - + 72 AS col1, SUM( DISTINCT - - col0 ) col2 FROM tab0 cor0
----
-6192
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-487
SELECT ALL + 86 * - + 72 AS col1, SUM ( DISTINCT - - col0 ) col2 FROM tab0 cor0
----
-6192
199

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

query I rowsort
SELECT DISTINCT - 97 - - col1 * + col2 AS col1 FROM tab0 AS cor0
----
113
2
3710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col0 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT DISTINCT MAX( ALL - col0 ) * COUNT( * ) AS col2 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT MAX ( ALL - col0 ) * COUNT ( * ) AS col2 FROM tab1
----
-153

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-493
SELECT DISTINCT + col1 * - + col1, CAST( NULL AS SIGNED ) + col0 + col0 AS col0 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

skipif mysql # not compatible
query II rowsort label-493
SELECT DISTINCT + col1 * - + col1, CAST ( NULL AS INTEGER ) + col0 + col0 AS col0 FROM tab0
----
-1
NULL
-441
NULL
-6561
NULL

query II rowsort
SELECT DISTINCT col2 * - 22 AS col2, + 50 AS col1 FROM tab0
----
-1034
50
-2178
50
-220
50

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - + 28 AND + 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT - + col0 * + - 60 DIV + 5 + - col0 FROM tab0 AS cor0
----
1067
165
957

skipif mysql # not compatible
query I rowsort label-497
SELECT - + col0 * + - 60 / + 5 + - col0 FROM tab0 AS cor0
----
1067
165
957

query I rowsort
SELECT 58 * - + col0 - + + 48 + col1 FROM tab1 AS cor0
----
-2992
-4973
-5279

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - col0 + + col2 * - - col0 - - 87 AS col1 FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT SUM( + 89 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
801

skipif mysql # not compatible
query I rowsort label-504
SELECT SUM ( + 89 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
801

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 * + + 94 BETWEEN + - 7 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 < 40 / + + col1
----
51
14
96
91
47
68

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

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

query I rowsort
SELECT - col1 * + - 46 + + + col1 FROM tab2 AS cor0
----
2397
3149
3619

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 37, 81 + + col1 col0, col1 FROM tab0 AS cor0
----
9 values hashing to 6b3bad58b91dc9143122e5fe3138983c

query I rowsort
SELECT DISTINCT + - col2 * - 37 - - col0 AS col0 FROM tab2 AS cor0
----
1544
2221
897

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT col1 DIV - col0 - + 57 DIV - col1 + + 80 + - col0 AS col0 FROM tab0 AS cor0
----
-5
40
60

skipif mysql # not compatible
query I rowsort label-513
SELECT col1 / - col0 - + 57 / - col1 + + 80 + - col0 AS col0 FROM tab0 AS cor0
----
-5
40
60

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

query I rowsort
SELECT 59 FROM tab1 WHERE NOT - - col1 NOT BETWEEN NULL AND - - col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT DISTINCT 53 DIV + - col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT 53 / + - col2 FROM tab2
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT 22 * + - col2 DIV - col2 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-518
SELECT 22 * + - col2 / - col2 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL SUM( ALL - - 79 ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL SUM ( ALL - - 79 ) FROM tab0
----
237

query II rowsort
SELECT + 20 AS col2, 18 FROM tab0
----
20
18
20
18
20
18

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - MAX( - + 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-527
SELECT - MAX ( - + 92 ) FROM tab2
----
92

query I rowsort
SELECT DISTINCT 72 + - ( + + ( - col2 ) ) * col1 FROM tab0
----
171
282
3879

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col2 ) + 83 NOT BETWEEN - 22 AND - col2 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + COUNT( * ) + - SUM( + - 52 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + COUNT ( * ) + - SUM ( + - 52 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * col1 - col0 + + - col2 < NULL
----

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

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE 2 > 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2, col2 )
----

query I rowsort
SELECT ALL + + 5 + + col2 FROM tab1 cor0
----
101
64
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL MIN( - - col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL MIN ( - - col1 ) AS col0 FROM tab2
----
51

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

query II rowsort
SELECT ALL col0, - col0 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-540
SELECT ALL 89 DIV + - COUNT( * ) + + + 9 AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL 89 / + - COUNT ( * ) + + + 9 AS col1 FROM tab2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT DISTINCT - col0 * - - col0 + - + col1 * 17 DIV col0 FROM tab1 AS cor0
----
-2605
-7226
-8289

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT - col0 * - - col0 + - + col1 * 17 / col0 FROM tab1 AS cor0
----
-2605
-7226
-8289

query I rowsort
SELECT ALL col2 - + + 19 FROM tab2 AS cor0
----
21
39
4

query II rowsort
SELECT ALL col0 * - - col2 + 5 AS col1, + col2 FROM tab0 AS cor0
----
710
47
875
10
9608
99

query I rowsort
SELECT ALL - - col0 + + 30 AS col1 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT - col1 * - col0 + + col2 * - - col2 AS col0 FROM tab1 AS cor0 WHERE NULL >= + 21 * - 34
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 / col0 + - col1 > - + col0
----
75
67
58

query I rowsort
SELECT col1 * + - 26 FROM tab1
----
-1222
-130
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT col2 FROM tab1 AS cor0 WHERE NOT col1 >= - + ( + CAST( col2 AS SIGNED ) ) * + ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-549
SELECT col2 FROM tab1 AS cor0 WHERE NOT col1 >= - + ( + CAST ( col2 AS INTEGER ) ) * + ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - + 73 IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 / + 48 * - + col2 FROM tab1 WHERE 58 BETWEEN - 55 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-555
SELECT ALL - 33 / + + 77 - CAST( NULL AS DECIMAL ) * + 47 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL - 33 / + + 77 - CAST ( NULL AS REAL ) * + 47 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - col2 AS col0, + col0 + + - col1 * - col1 AS col2 FROM tab0 cor0
----
-10
528
-47
6576
-99
98

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

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

query I rowsort
SELECT DISTINCT - - 62 + + col0 AS col1 FROM tab0 AS cor0
----
149
159
77

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - COUNT( * ) * + + 39 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-559
SELECT - COUNT ( * ) * + + 39 FROM tab1 AS cor0
----
-117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL - SUM( + col2 ) * + 5 - + 80 col2 FROM tab1 AS cor0
----
-1195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-561
SELECT ALL - SUM ( + col2 ) * + 5 - + 80 col2 FROM tab1 AS cor0
----
-1195

query I rowsort
SELECT ALL 39 * + col2 - col2 FROM tab1 AS cor0
----
2242
2584
3648

query I rowsort
SELECT DISTINCT - + 62 + - + col0 FROM tab1 AS cor0
----
-113
-147
-153

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

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

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

query I rowsort
SELECT ALL - + ( + col1 ) + 22 AS col2 FROM tab0 AS cor0
----
-59
1
21

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT - COUNT( * ) + + 49 * - COUNT( * ) + - 54 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-569
SELECT - COUNT ( * ) + + 49 * - COUNT ( * ) + - 54 FROM tab0 AS cor0
----
-204

query I rowsort
SELECT DISTINCT ( + col1 ) + - 52 FROM tab2 AS cor0
----
-1
15
25

query I rowsort
SELECT ALL + - 87 FROM tab1 cor0
----
-87
-87
-87

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

query I rowsort
SELECT - 57 * col0 AS col1 FROM tab1 AS cor0
----
-2907
-4845
-5187

query II rowsort
SELECT col1, - col2 * - ( col2 ) FROM tab2 AS cor0
----
51
529
67
3364
77
1600

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-577
SELECT + CAST( NULL AS DECIMAL ) * col2 * + 24 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT + CAST ( NULL AS REAL ) * col2 * + 24 AS col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col0 - + - ( col1 ) AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT + 21 - - col1 * col1 FROM tab1
----
217
2230
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-581
SELECT - CAST( - col1 AS SIGNED ) DIV 57 * + - col2 - + col0 AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-581
SELECT - CAST ( - col1 AS INTEGER ) / 57 * + - col2 - + col0 AS col0 FROM tab1
----
-51
-85
-91

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

query I rowsort
SELECT 27 - col1 * - col2 - + col1 + - 1 * + + col1 FROM tab0 AS cor0
----
124
195
3672

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 54 <= - col2
----

query I rowsort
SELECT + col1 + - 7 AS col0 FROM tab0 AS cor0
----
-6
14
74

query I rowsort
SELECT + 8 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 42 AS col1, 69 AS col2 FROM tab0
----
42
69
42
69
42
69

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 + 76 > - col2
----

query II rowsort
SELECT ALL + col1, + col2 * 54 FROM tab0 AS cor0
----
1
5346
21
540
81
2538

onlyif mysql # DIV for integer division: 
query II rowsort label-590
SELECT + col2 AS col2, - 8 DIV - 20 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-590
SELECT + col2 AS col2, - 8 / - 20 FROM tab2 AS cor0
----
23
0
40
0
58
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-592
SELECT DISTINCT + col1 col1, CAST( - col0 AS SIGNED ) DIV + col0 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL CAST( - + AVG ( col0 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-594
SELECT ALL CAST ( - + AVG ( col0 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT 78 * - MAX( ALL - col1 ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT 78 * - MAX ( ALL - col1 ) AS col2 FROM tab0
----
78

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

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT + 11 DIV col2 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-597
SELECT + 11 / col2 AS col0 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + col0 >= ( - - col0 )
----

query I rowsort
SELECT - 92 * + 68 AS col2 FROM tab2
----
-6256
-6256
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL + COUNT( * ) * + - MAX( ALL - 92 ) AS col2 FROM tab1 AS cor0 WHERE NULL > - col1 + 1 * - col1 / + - col0 * - col0 * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL + COUNT ( * ) * + - MAX ( ALL - 92 ) AS col2 FROM tab1 AS cor0 WHERE NULL > - col1 + 1 * - col1 / + - col0 * - col0 * - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - COUNT( ALL - - 12 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-601
SELECT - COUNT ( ALL - - 12 ) FROM tab0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL AND NOT - ( 86 ) IS NOT NULL )
----

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

query II rowsort
SELECT col1, col2 - - 48 FROM tab2
----
51
71
67
106
77
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - 70 + + col0 * 52 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-606
SELECT DISTINCT 11 * - SUM( ALL + - col0 ) col0 FROM tab1 AS cor0 WHERE CAST( - 89 AS SIGNED ) > ( + col1 * + col1 + + col2 - col2 * + + 90 )
----
2497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-606
SELECT DISTINCT 11 * - SUM ( ALL + - col0 ) col0 FROM tab1 AS cor0 WHERE CAST ( - 89 AS INTEGER ) > ( + col1 * + col1 + + col2 - col2 * + + 90 )
----
2497

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

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

query I rowsort
SELECT - 29 + - ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-125
-88
-97

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
85

query I rowsort
SELECT col1 + + col2 * - + col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT + col0 * - 79 FROM tab0
----
-1185
-6873
-7663

query I rowsort
SELECT + col1 * + + col1 + - col1 FROM tab0
----
0
420
6480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT ALL CAST( - col2 AS SIGNED ) - - col0 AS col2 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL CAST ( - col2 AS INTEGER ) - - col0 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT + 29 + + - col1 + col2 FROM tab2
----
-8
1
20

query I rowsort
SELECT ALL + 89 - - + 16 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL + 34 * COUNT( * ) col1 FROM tab2
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-616
SELECT ALL + 34 * COUNT ( * ) col1 FROM tab2
----
102

query II rowsort
SELECT DISTINCT - col0 * - 46 AS col0, col0 AS col0 FROM tab1
----
2346
51
3910
85
4186
91

query I rowsort
SELECT ALL 97 * - col1 AS col1 FROM tab2
----
-4947
-6499
-7469

onlyif mysql # aggregate syntax: 
query II rowsort label-619
SELECT + 91 AS col0, - MAX( DISTINCT - + 48 ) FROM tab0 AS cor0
----
91
48

skipif mysql # not compatible
query II rowsort label-619
SELECT + 91 AS col0, - MAX ( DISTINCT - + 48 ) FROM tab0 AS cor0
----
91
48

query I rowsort
SELECT 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL COUNT( + 15 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL COUNT ( + 15 ) FROM tab1
----
3

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

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

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

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

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

query I rowsort
SELECT + ( - col2 ) * + col0 * - col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT + + 0 * + - 5 * - - 34 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL MAX( + - col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-628
SELECT ALL MAX ( + - col1 ) col1 FROM tab2
----
-51

query I rowsort
SELECT 22 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 42 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT DISTINCT CAST( - 69 AS SIGNED ) + - col1 * - col1 * 18 FROM tab0
----
-51
118029
7869

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT CAST ( - 69 AS INTEGER ) + - col1 * - col1 * 18 FROM tab0
----
-51
118029
7869

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

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

query II rowsort
SELECT 81, + ( - col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
81
210
81
3807
81
99

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

skipif mysql # not compatible
query II rowsort label-635
SELECT + CAST ( NULL AS REAL ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 + ( + col1 ) col2 FROM tab0 cor0
----
100
120
180

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

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

query II rowsort
SELECT ALL - col0 AS col1, col0 AS col1 FROM tab2 AS cor0 WHERE ( + col1 * - 51 ) IS NOT NULL
----
-46
46
-64
64
-75
75

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-643
SELECT DISTINCT CAST( + col0 AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT CAST ( + col0 AS REAL ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-644
SELECT - SUM ( DISTINCT - 49 ) AS col0 FROM tab0 cor0
----
49

query I rowsort
SELECT + col1 * - - col2 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + MIN( DISTINCT + col2 ) - 23 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-646
SELECT + MIN ( DISTINCT + col2 ) - 23 FROM tab1
----
36

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

query I rowsort
SELECT DISTINCT - 73 - - col0 AS col0 FROM tab1
----
-22
12
18

query I rowsort
SELECT ALL - ( col0 ) * - col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL col2 * - 14 + col2 FROM tab2
----
-299
-520
-754

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-651
SELECT DISTINCT 95 DIV - ( CAST( - - col2 AS SIGNED ) ) FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT 95 / - ( CAST ( - - col2 AS INTEGER ) ) FROM tab0
----
-2
-9
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT DISTINCT 68 DIV - COUNT( * ) AS col1 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT 68 / - COUNT ( * ) AS col1 FROM tab1
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-654
SELECT DISTINCT - 73, + col2 DIV - 24 AS col1 FROM tab0 AS cor0
----
-73
-1
-73
-4
-73
0

skipif mysql # not compatible
query II rowsort label-654
SELECT DISTINCT - 73, + col2 / - 24 AS col1 FROM tab0 AS cor0
----
-73
-1
-73
-4
-73
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 + 72 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( + col2 ) NOT BETWEEN + col2 + 24 AND - col2 * - 43 )
----

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

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

query I rowsort
SELECT - + col0 * - col0 - + col2 - - col2 + + - col1 FROM tab2 AS cor0
----
2065
4019
5558

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT ( + - 2 ) + - MAX( - 56 ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT ( + - 2 ) + - MAX ( - 56 ) FROM tab2 cor0
----
54

query II rowsort
SELECT 77 AS col0, + col2 FROM tab0
----
77
10
77
47
77
99

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT MAX( + + col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-663
SELECT MAX ( + + col2 ) col0 FROM tab2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT - col2 DIV 37 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-664
SELECT - col2 / 37 AS col0 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT ALL - CAST( + COUNT( DISTINCT - 6 ) AS SIGNED ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - CAST ( + COUNT ( DISTINCT - 6 ) AS INTEGER ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT DISTINCT - col2 + - col2 DIV + 91 AS col0 FROM tab1 cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - col2 + - col2 / + 91 AS col0 FROM tab1 cor0
----
-59
-68
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-667
SELECT ALL - 83 AS col2, SUM( ALL + col2 ) FROM tab1 cor0
----
-83
223

skipif mysql # not compatible
query II rowsort label-667
SELECT ALL - 83 AS col2, SUM ( ALL + col2 ) FROM tab1 cor0
----
-83
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-668
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + + 68 + - COUNT( * ) col0 FROM tab1 AS cor0
----
65

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

query I rowsort
SELECT + 20 + 20 AS col1 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT col0 * col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 7 )
----

query I rowsort
SELECT DISTINCT 71 + + 4 AS col0 FROM tab1
----
75

query I rowsort
SELECT ALL col1 * - - 24 AS col2 FROM tab0
----
1944
24
504

query I rowsort
SELECT ALL - 7 * + 43 FROM tab2
----
-301
-301
-301

query I rowsort
SELECT DISTINCT + col1 * col1 * - 70 AS col0 FROM tab1
----
-13720
-154630
-1750

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

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

query I rowsort
SELECT ALL + 22 + - 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

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

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

query I rowsort
SELECT col2 + + col0 - - + 42 FROM tab2 AS cor0
----
111
146
175

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT - MIN( + - 32 ) + MIN( + + col0 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-681
SELECT - MIN ( + - 32 ) + MIN ( + + col0 ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT DISTINCT + 64 * - 85 FROM tab2 AS cor0
----
-5440

query I rowsort
SELECT + - col0 + + col2 + - col0 + 81 FROM tab2 AS cor0
----
-11
-7
12

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-686
SELECT col0 DIV col0 AS col1, - 1 FROM tab0
----
1
-1
1
-1
1
-1

skipif mysql # not compatible
query II rowsort label-686
SELECT col0 / col0 AS col1, - 1 FROM tab0
----
1
-1
1
-1
1
-1

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

query II rowsort
SELECT DISTINCT 78 AS col0, 10 AS col0 FROM tab2
----
78
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 65 col2 FROM tab2
----
-1495
-2600
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT 34 - + SUM( 46 ) AS col0 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-690
SELECT 34 - + SUM ( 46 ) AS col0 FROM tab2 AS cor0
----
-104

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-692
SELECT + col0 DIV + - col0 AS col1, + col0 AS col1 FROM tab1
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
query II rowsort label-692
SELECT + col0 / + - col0 AS col1, + col0 AS col1 FROM tab1
----
-1
51
-1
85
-1
91

query I rowsort
SELECT DISTINCT 96 + - 67 * - + col2 + col0 FROM tab2 AS cor0
----
1683
2840
4057

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT - SUM( + col0 ) * + 78 AS col2 FROM tab0 AS cor0
----
-15522

skipif mysql # not compatible
query I rowsort label-694
SELECT - SUM ( + col0 ) * + 78 AS col2 FROM tab0 AS cor0
----
-15522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT DISTINCT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 5 - + 1 * + 95 * - 79 AND NULL
----

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

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

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

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

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

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

query II rowsort
SELECT - 3 AS col0, 93 FROM tab1
----
-3
93
-3
93
-3
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, + 89 * col0 col1 FROM tab1 AS cor0
----
-59
7565
-68
8099
-96
4539

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

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

query I rowsort
SELECT DISTINCT ( col1 ) + 60 * + col2 FROM tab2
----
1431
2477
3547

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

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL COUNT ( * ) - COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col2 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 - ( col0 ) * - col1 FROM tab1
----
340
4186
663

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

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

query I rowsort
SELECT + col0 * + 50 FROM tab2 WHERE ( col0 ) <= ( col2 )
----

query I rowsort
SELECT 19 - - ( + col0 ) * - col0 FROM tab1
----
-2582
-7206
-8262

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT DISTINCT - 32 * - MIN( 32 * col0 ) FROM tab2
----
47104

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT - 32 * - MIN ( 32 * col0 ) FROM tab2
----
47104

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

skipif mysql # not compatible
query I rowsort label-714
SELECT - col2 + + 71 * ( - CAST ( NULL AS INTEGER ) + col1 ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 33 * - 67 + - col0 FROM tab1
----
-2262
-2296
-2302

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT - CAST( MAX( + 56 ) AS SIGNED ) FROM tab0 WHERE NOT - col2 IS NULL
----
-56

skipif mysql # not compatible
query I rowsort label-718
SELECT - CAST ( MAX ( + 56 ) AS INTEGER ) FROM tab0 WHERE NOT - col2 IS NULL
----
-56

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - 25 - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 94 NOT BETWEEN NULL AND 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ALL - MIN( 8 ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - MIN ( 8 ) AS col1 FROM tab0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-724
SELECT DISTINCT - 13 DIV + 79 - - COUNT( ALL - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - 13 / + 79 - - COUNT ( ALL - col1 ) FROM tab1
----
3

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

query I rowsort
SELECT - 42 * - 98 FROM tab1
----
4116
4116
4116

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-728
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col0 * + 95 FROM tab2 WHERE ( NULL ) = ( col2 )
----

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT + CAST ( NULL AS REAL ) + col0 * + 95 FROM tab2 WHERE ( NULL ) = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT + COUNT( * ) * MIN( DISTINCT 8 ) col0 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-729
SELECT + COUNT ( * ) * MIN ( DISTINCT 8 ) col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT + MAX( ALL col1 ) * + 62 FROM tab1
----
2914

skipif mysql # not compatible
query I rowsort label-730
SELECT + MAX ( ALL col1 ) * + 62 FROM tab1
----
2914

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

query I rowsort
SELECT - 32 * + col0 AS col0 FROM tab1
----
-1632
-2720
-2912

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN 79 AND col2
----
51
14
96

query I rowsort
SELECT - col1 FROM tab2 WHERE ( 53 ) BETWEEN + col0 * 23 AND ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 + 87 FROM tab2 cor0
----
133
151
162

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT ALL - 63 + - 4 DIV - 11 FROM tab2 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - 63 + - 4 / - 11 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( - 44 ) IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 55 + col0 > col0 + + col2 * 42
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 23 >= ( col2 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 74 ) AS col0 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + 41 - col1 * col0 AS col1 FROM tab0
----
-1174
-1786
-56

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-744
SELECT ALL + col1 / + col2 col1 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 * - col0 ) NOT BETWEEN ( 78 * ( 40 * + col2 ) ) AND - col2
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 61 * + 11 + - col1 > NULL
----

query I rowsort
SELECT col0 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT CAST( SUM( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
195

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 > col0 * - col2 - col1 * 43
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-754
SELECT ALL col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 85 + - CAST( NULL AS DECIMAL ) * - col1 NOT BETWEEN CAST( NULL AS SIGNED ) AND 85
----

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 85 + - CAST ( NULL AS REAL ) * - col1 NOT BETWEEN CAST ( NULL AS INTEGER ) AND 85
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-757
SELECT + - 80 DIV + COUNT( DISTINCT 94 + + 21 ) FROM tab1 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-757
SELECT + - 80 / + COUNT ( DISTINCT 94 + + 21 ) FROM tab1 cor0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT 77 * - SUM( ALL CAST( NULL AS SIGNED ) ) * 49 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT 77 * - SUM ( ALL CAST ( NULL AS INTEGER ) ) * 49 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL - col2 * - col1 AS col1 FROM tab2 WHERE 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - MIN( - 46 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-761
SELECT - MIN ( - 46 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT + ( - + ( - 75 ) ) FROM tab1
----
75
75
75

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 38 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 30 >= ( - col2 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE NULL NOT BETWEEN ( + col2 ) - + 53 / + 78 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-769
SELECT ALL + CAST( NULL AS SIGNED ) * 36 - - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 14 / + 97 )
----

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + CAST ( NULL AS INTEGER ) * 36 - - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 14 / + 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-770
SELECT ( - 37 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-770
SELECT ( - 37 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col1 * 51 col1 FROM tab1 AS cor0
----
203745
21675
60690

onlyif mysql # aggregate syntax: 
query II rowsort label-772
SELECT ALL 27 col2, SUM( DISTINCT - 41 ) FROM tab1
----
27
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-772
SELECT ALL 27 col2, SUM ( DISTINCT - 41 ) FROM tab1
----
27
-41

query I rowsort
SELECT 4 * - col1 FROM tab2
----
-204
-268
-308

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 55 BETWEEN - col1 / 23 AND col0
----
64
77
40
75
67
58

query I rowsort
SELECT ALL + + 46 + + col0 AS col0 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT - + col0 + - 52 AS col1 FROM tab1 AS cor0
----
-103
-137
-143

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

query I rowsort
SELECT - col1 * + ( + + col0 ) + col0 FROM tab1 AS cor0
----
-340
-4186
-663

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

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

query I rowsort
SELECT - col0 + + 4 FROM tab1 AS cor0
----
-47
-81
-87

query I rowsort
SELECT 6 + ( - col2 ) * + 86 AS col0 FROM tab2 AS cor0
----
-1972
-3434
-4982

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

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

query I rowsort
SELECT ALL 98 FROM tab2 WHERE NOT ( + col0 * + col1 ) IS NULL
----
98
98
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-784
SELECT - ( - + COUNT( * ) ) * 6 DIV + 24 AS col1 FROM tab1
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN ( + col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN ( + col1 ) AND NULL
----

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

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

query I rowsort
SELECT + col1 * + col2 - - 94 FROM tab0 AS cor0
----
193
304
3901

query I rowsort
SELECT ALL - - 14 + - + col1 AS col1 FROM tab0 AS cor0
----
-67
-7
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 + - - col1 * + + col1 col2 FROM tab2 AS cor0
----
2510
4398
5838

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

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

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

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

query I rowsort
SELECT DISTINCT 30 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT col0 + col1 FROM tab2 WHERE NOT - CAST( 79 AS SIGNED ) BETWEEN ( col2 ) AND 98 * - col2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-795
SELECT col0 + col1 FROM tab2 WHERE NOT - CAST ( 79 AS INTEGER ) BETWEEN ( col2 ) AND 98 * - col2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT col0 DIV 19 FROM tab0 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-796
SELECT col0 / 19 FROM tab0 AS cor0
----
0
4
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-797
SELECT ALL COUNT( * ) DIV - + ( + ( - COUNT( * ) ) ) + + 30 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL COUNT ( * ) / - + ( + ( - COUNT ( * ) ) ) + + 30 FROM tab2 AS cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + ( + 13 ) * + ( - 15 ) + - 5 * + 58 )
----

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

query I rowsort
SELECT - - col0 * - - col0 AS col1 FROM tab0 cor0
----
225
7569
9409

query II rowsort
SELECT DISTINCT col1 AS col2, col2 * + ( 48 ) + + 94 * - col2 FROM tab2 AS cor0
----
51
-1058
67
-2668
77
-1840

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-805
SELECT CAST ( - SUM ( DISTINCT - + 18 ) AS INTEGER ) AS col0 FROM tab2
----
18

query II rowsort
SELECT col1, + 5 AS col1 FROM tab0
----
1
5
21
5
81
5

query I rowsort
SELECT + col2 * - col0 - - 34 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + - col0 + col0 * + - col0 * + - 38 - + col1 * col2 IS NULL
----
-4862
-4981
-6154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT DISTINCT + col0 + + + col0 * ( ( col0 ) ) + - col2 FROM tab0 AS cor0 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT + col0 + + + col0 * ( ( col0 ) ) + - col2 FROM tab0 AS cor0 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT 94 * - - col0 * - + 88 FROM tab2
----
-380512
-529408
-620400

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-811
SELECT + 23 DIV COUNT( CAST( + col0 AS SIGNED ) ) * + CAST( CAST( AVG ( DISTINCT + col2 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
364

skipif mysql # not compatible
query I rowsort label-811
SELECT + 23 / COUNT ( CAST ( + col0 AS INTEGER ) ) * + CAST ( CAST ( AVG ( DISTINCT + col2 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
364

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-813
SELECT DISTINCT COUNT( * ) + 55 / + COUNT( * ) + ( - CAST( NULL AS SIGNED ) ), SUM( + 13 ) AS col2 FROM tab0 AS cor0
----
NULL
39

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT COUNT ( * ) + 55 / + COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ), SUM ( + 13 ) AS col2 FROM tab0 AS cor0
----
NULL
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - 52 col1 FROM tab2 AS cor0 WHERE + 43 + - 76 IS NOT NULL
----
-1196
-2080
-3016

query I rowsort
SELECT DISTINCT 43 + + 73 AS col2 FROM tab0 cor0
----
116

query I rowsort
SELECT - col2 + - 2 + - col2 FROM tab0 AS cor0
----
-200
-22
-96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT 56 DIV + + col1 + + 81 AS col0 FROM tab0
----
137
81
83

skipif mysql # not compatible
query I rowsort label-818
SELECT 56 / + + col1 + + 81 AS col0 FROM tab0
----
137
81
83

query I rowsort
SELECT ALL 13 - - - 5 FROM tab0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT DISTINCT 0 * + col2 DIV 5 * 61 * + - col2 * - 83 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT 0 * + col2 / 5 * 61 * + - col2 * - 83 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 57 col1 FROM tab1
----
-11
-2
-39

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT CAST( + col1 AS SIGNED ) + - 28 + col1 FROM tab1
----
-18
0
66

skipif mysql # not compatible
query I rowsort label-823
SELECT CAST ( + col1 AS INTEGER ) + - 28 + col1 FROM tab1
----
-18
0
66

query I rowsort
SELECT 88 + + 61 AS col2 FROM tab1
----
149
149
149

query I rowsort
SELECT ( col2 ) + 0 AS col1 FROM tab0
----
10
47
99

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

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

query I rowsort
SELECT ALL + 41 * + col1 AS col2 FROM tab0
----
3321
41
861

query I rowsort
SELECT ALL - 61 + - - 24 FROM tab2
----
-37
-37
-37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 BETWEEN col0 * - + 94 AND 62 - - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT col1, + col2 * + 2 AS col0 FROM tab2 AS cor0
----
51
46
67
116
77
80

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT DISTINCT col2 DIV ( - col0 ) * col1 AS col2 FROM tab0
----
-1
-243
0

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT col2 / ( - col0 ) * col1 AS col2 FROM tab0
----
-1
-243
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) > - col2 )
----

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

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

query II rowsort
SELECT ALL - 29 * col2 AS col1, - col1 * + - 34 FROM tab2 cor0
----
-1160
2618
-1682
2278
-667
1734

query I rowsort
SELECT - col1 * - 23 - - col1 + col1 AS col0 FROM tab0 AS cor0
----
2025
25
525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT - + 55 * SUM( - - 50 ) AS col0 FROM tab0 AS cor0
----
-8250

skipif mysql # not compatible
query I rowsort label-838
SELECT - + 55 * SUM ( - - 50 ) AS col0 FROM tab0 AS cor0
----
-8250

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + ( + col0 ) + - col1 + + + 76 ) IS NULL ) OR NOT ( + 78 * + col1 ) BETWEEN ( - col0 / - col1 + + col0 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 5 * - col0 AS col0 FROM tab0 AS cor0
----
-435
-485
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 9 * + col1 col1 FROM tab2 AS cor0
----
459
603
693

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-842
SELECT ALL CAST( - - col2 AS SIGNED ) DIV + 35 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL CAST ( - - col2 AS INTEGER ) / + 35 AS col1 FROM tab1
----
1
1
2

query I rowsort
SELECT DISTINCT - col2 * - - 12 AS col1 FROM tab2
----
-276
-480
-696

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

onlyif mysql # DIV for integer division: 
query II rowsort label-845
SELECT col0 AS col0, + 66 DIV col0 FROM tab0
----
15
4
87
0
97
0

skipif mysql # not compatible
query II rowsort label-845
SELECT col0 AS col0, + 66 / col0 FROM tab0
----
15
4
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT + 52 + + MAX( ALL col1 ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT + 52 + + MAX ( ALL col1 ) FROM tab2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-847
SELECT ALL col2 AS col1, CAST( NULL AS SIGNED ) * + - 20 * - - col2 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL col2 AS col1, CAST ( NULL AS INTEGER ) * + - 20 * - - col2 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT ( - ( - - COUNT( * ) ) ) + + - MIN( DISTINCT - col1 ) AS col2 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT ( - ( - - COUNT ( * ) ) ) + + - MIN ( DISTINCT - col1 ) AS col2 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT DISTINCT MIN( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 <= NULL
----

query I rowsort
SELECT + - col2 * + - 92 AS col0 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT + col2 * + - 74 FROM tab1
----
-4366
-5032
-7104

query II rowsort
SELECT ALL col1 AS col2, - col0 FROM tab0 WHERE NOT NULL IS NULL OR NOT col2 * col1 IS NULL
----
1
-97
21
-87
81
-15

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - 37 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) + col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT - 90 AS col1, - COUNT( + - col0 ) col0 FROM tab0 AS cor0
----
-90
-3

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-862
SELECT ALL + + ( - 17 ) - - COUNT ( * ) col2 FROM tab2 AS cor0
----
-14

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-864
SELECT ( COUNT( * ) ) DIV + - 62 * - 88 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-864
SELECT ( COUNT ( * ) ) / + - 62 * - 88 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT ALL ( - COUNT( * ) ) - - COUNT( DISTINCT - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL ( - COUNT ( * ) ) - - COUNT ( DISTINCT - col2 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE - + col2 IN ( 16 * col2 / - - 11 + + 53 + + ( ( + ( + col1 ) ) ) * + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT - ( + - COUNT( * ) ) - + 7 AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT - ( + - COUNT ( * ) ) - + 7 AS col0 FROM tab0
----
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 51 + - col0 < - 53
----

query III rowsort
SELECT * FROM tab0 WHERE + + col1 / + 4 + + 99 + col2 + 48 IS NULL
----

query I rowsort
SELECT - col1 * col1 * - 48 - + - col0 AS col0 FROM tab1
----
106123
1285
9459

query I rowsort
SELECT - col2 - + col2 + 11 * 17 * 46 + - 87 * + + col1 AS col0 FROM tab0 AS cor0
----
1461
6755
8317

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

query I rowsort
SELECT DISTINCT - col2 * + 17 AS col2 FROM tab0 AS cor0
----
-1683
-170
-799

query I rowsort
SELECT ALL - col1 + - col0 FROM tab2 WHERE NULL IN ( + col2 )
----

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 91 col0 FROM tab1 AS cor0
----
-5369
-6188
-8736

onlyif mysql # DIV for integer division: 
query II rowsort label-881
SELECT ALL - col0 DIV + col1, col2 + 61 * col1 * - - col2 AS col0 FROM tab0
----
-4
12820
-97
6138
0
232274

skipif mysql # not compatible
query II rowsort label-881
SELECT ALL - col0 / + col1, col2 + 61 * col1 * - - col2 AS col0 FROM tab0
----
-4
12820
-97
6138
0
232274

query III rowsort
SELECT * FROM tab1 WHERE NOT + 78 >= + col1 * + 67 OR + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - col2 / - col2 / + 10 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 + 17 + ( + 16 ) FROM tab2
----
108
79
97

query I rowsort
SELECT 12 * - + 27 + - + col2 FROM tab2
----
-347
-364
-382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT + - 42 * - col2 + CAST( - 74 AS SIGNED ) AS col1 FROM tab1 WHERE + - 7 IS NOT NULL
----
2404
2782
3958

skipif mysql # not compatible
query I rowsort label-886
SELECT + - 42 * - col2 + CAST ( - 74 AS INTEGER ) AS col1 FROM tab1 WHERE + - 7 IS NOT NULL
----
2404
2782
3958

onlyif mysql # DIV for integer division: 
query II rowsort label-887
SELECT DISTINCT - col2 + - 37 AS col2, - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-60
0
-77
0
-95
0

skipif mysql # not compatible
query II rowsort label-887
SELECT DISTINCT - col2 + - 37 AS col2, - col2 / - col1 AS col1 FROM tab2 AS cor0
----
-60
0
-77
0
-95
0

query I rowsort
SELECT ALL col1 + + 27 + 57 FROM tab2 AS cor0
----
135
151
161

query I rowsort
SELECT DISTINCT + 78 + - 80 AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT col1 * col2 * + + 45 FROM tab1 cor0 WHERE ( NULL ) <> col2
----

query I rowsort
SELECT DISTINCT - 59 FROM tab2 WHERE NOT + 48 < NULL
----

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

query I rowsort
SELECT ALL + 96 AS col1 FROM tab2 AS cor0 WHERE - col1 < + + col2 * 4
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT ALL + col1 + + + col2 DIV 94 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + col1 + + + col2 / 94 AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT DISTINCT + 83 + - col2 DIV col1 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT + 83 + - col2 / col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT 4 - + + 85 + + col2 AS col1 FROM tab1 cor0
----
-13
-22
15

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT - MAX( ALL - 1 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT - MAX ( ALL - 1 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> 33
----

skipif mysql # not compatible
query I rowsort label-898
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> 33
----

query I rowsort
SELECT ALL - 86 * + 16 - 9 FROM tab0
----
-1385
-1385
-1385

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

query I rowsort
SELECT ALL + col0 * + col2 - 26 + col2 * + 23 FROM tab2
----
1561
3454
5658

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

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

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

query I rowsort
SELECT ALL 79 * - 0 - - + col1 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT + 48 FROM tab0 WHERE NOT col1 > ( + 75 )
----
48
48

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT + COUNT( * ) * MIN( + 20 ) + - COUNT( * ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-908
SELECT + COUNT ( * ) * MIN ( + 20 ) + - COUNT ( * ) FROM tab2 AS cor0
----
57

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

query I rowsort
SELECT ALL + 70 + + 94 FROM tab1 AS cor0
----
164
164
164

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT ALL + 1 DIV - - ( - col0 ) + - 6 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL + 1 / - - ( - col0 ) + - 6 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT col0 + + 40 AS col0 FROM tab1 AS cor0
----
125
131
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - 1 + + 23 col0 FROM tab1
----
-51
22
-85
22
-91
22

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT + 13 * - + ( MIN( DISTINCT - col0 ) ) AS col1 FROM tab0
----
1261

skipif mysql # not compatible
query I rowsort label-916
SELECT + 13 * - + ( MIN ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
1261

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 IS NOT NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT DISTINCT CAST( col1 AS SIGNED ) + - 40 FROM tab0
----
-19
-39
41

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - 40 FROM tab0
----
-19
-39
41

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-921
SELECT DISTINCT - - ( - COUNT( * ) ) - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 WHERE NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT - - ( - COUNT ( * ) ) - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 WHERE NULL <= + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL + ( COUNT( * ) ) FROM tab2 WHERE ( - 41 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + ( COUNT ( * ) ) FROM tab2 WHERE ( - 41 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + - col0 + + 30 FROM tab2 AS cor0
----
-16
-34
-45

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

query I rowsort
SELECT - 6 + + + 50 AS col1 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT + 77 + + - col0 AS col1 FROM tab0 AS cor0
----
-10
-20
62

query II rowsort
SELECT + + 35 * + - col2 AS col2, 32 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT - SUM( ALL col0 ) FROM tab1 AS cor0 WHERE - 53 <> - - 11
----
-227

skipif mysql # not compatible
query I rowsort label-928
SELECT - SUM ( ALL col0 ) FROM tab1 AS cor0 WHERE - 53 <> - - 11
----
-227

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-930
SELECT COUNT( * ) DIV - 63 AS col2, MIN( ALL + ( col1 ) ) AS col1 FROM tab1 cor0
----
0
5

skipif mysql # not compatible
query II rowsort label-930
SELECT COUNT ( * ) / - 63 AS col2, MIN ( ALL + ( col1 ) ) AS col1 FROM tab1 cor0
----
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( ( + 8 ) ) AND 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT ALL - 65 + - - COUNT( * ) FROM tab0 WHERE ( + 57 ) IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL - 65 + - - COUNT ( * ) FROM tab0 WHERE ( + 57 ) IS NOT NULL
----
-62

query I rowsort
SELECT 98 * + + col0 AS col2 FROM tab2
----
4508
6272
7350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN col0 AND + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT ALL - 48 * - 17 + - SUM( - col1 ) FROM tab0 AS cor0 WHERE NOT + 99 + + col2 < + col1
----
919

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL - 48 * - 17 + - SUM ( - col1 ) FROM tab0 AS cor0 WHERE NOT + 99 + + col2 < + col1
----
919

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

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

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

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

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

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

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

query II rowsort
SELECT ALL col1 + + + col0, + 77 AS col1 FROM tab1
----
138
77
65
77
90
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT - SUM( - 10 ) * + 89 AS col2 FROM tab2 AS cor0
----
2670

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT - SUM ( - 10 ) * + 89 AS col2 FROM tab2 AS cor0
----
2670

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 + + 88 IS NOT NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT 30 + + CAST( - - ( + + col2 ) AS SIGNED ) FROM tab2
----
53
70
88

skipif mysql # not compatible
query I rowsort label-949
SELECT 30 + + CAST ( - - ( + + col2 ) AS INTEGER ) FROM tab2
----
53
70
88

query III rowsort
SELECT * FROM tab0 WHERE - - col0 <= - col0
----

query I rowsort
SELECT + ( - col2 ) + + 56 AS col2 FROM tab1
----
-12
-3
-40

query I rowsort
SELECT DISTINCT - col0 + + col1 + - - 33 + 30 FROM tab0
----
-3
-33
129

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <= + 81
----

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

query I rowsort
SELECT ALL - col0 * col0 - + col2 - - - ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-2711
-7289
-8396

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

query I rowsort
SELECT ALL + 53 * col0 FROM tab2
----
2438
3392
3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT - CAST( - - col2 AS SIGNED ) * + 70 FROM tab1
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-958
SELECT - CAST ( - - col2 AS INTEGER ) * + 70 FROM tab1
----
-4130
-4760
-6720

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

skipif mysql # not compatible
query I rowsort label-959
SELECT + COUNT ( * ) - + 2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT + + 58 * + - MIN( + 62 ) * - 15 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
53940

skipif mysql # not compatible
query I rowsort label-960
SELECT + + 58 * + - MIN ( + 62 ) * - 15 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
53940

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT - COUNT( * ) + - 34 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT - COUNT ( * ) + - 34 FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + COUNT( * ) * + - ( - + MAX( DISTINCT - col0 ) ) col1 FROM tab0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-962
SELECT DISTINCT + COUNT ( * ) * + - ( - + MAX ( DISTINCT - col0 ) ) col1 FROM tab0
----
-45

query I rowsort
SELECT ALL - 68 * - 48 FROM tab0 AS cor0
----
3264
3264
3264

onlyif mysql # DIV for integer division: 
query II rowsort label-964
SELECT col0 DIV + col0 AS col2, col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-964
SELECT col0 / + col0 AS col2, col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
15
1
87
1
97

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

query I rowsort
SELECT 34 + - 19 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * + 34 IS NOT NULL
----

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

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab1 WHERE ( NOT + 41 - + ( + col2 ) + col2 * 60 * - 29 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-969
SELECT - CAST( MIN( ALL + col0 ) AS SIGNED ) AS col2 FROM tab2
----
-46

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

query I rowsort
SELECT DISTINCT col2 * - 12 * + 21 FROM tab0
----
-11844
-24948
-2520

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

skipif mysql # not compatible
query I rowsort label-971
SELECT SUM ( DISTINCT - - ( - - col0 ) ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT - ( + - COUNT( 14 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT - ( + - COUNT ( 14 ) ) FROM tab0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 53 + col0 col0 FROM tab1 WHERE NOT - 52 * col0 + col2 IS NULL
----
104
138
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT ALL ( CAST( NULL AS SIGNED ) ) * col1 + - + 93 AS col1 FROM tab1 WHERE NOT ( 54 ) IN ( ( + col1 ), 9, + col0, - + 50 + - + 70 + + CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) - 35 )
----

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * col1 + - + 93 AS col1 FROM tab1 WHERE NOT ( 54 ) IN ( ( + col1 ), 9, + col0, - + 50 + - + 70 + + CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) - 35 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-976
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 4 + col2 * CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-976
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 4 + col2 * CAST ( NULL AS REAL ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + 91 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-977
SELECT + 91 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
273

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 69 <> + col1
----

query I rowsort
SELECT ALL col2 * + ( - - col2 ) AS col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT col0 + 97 + col1 FROM tab0
----
193
195
205

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

query I rowsort
SELECT DISTINCT - - col0 * + col2 + - col1 + - 91 + col2 * + - col0 * + - col1 AS col2 FROM tab1 cor0
----
296886
29994
73335

query I rowsort
SELECT ALL - 55 + 27 FROM tab2 AS cor0
----
-28
-28
-28

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

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

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

query I rowsort
SELECT DISTINCT 35 + + - col2 AS col1 FROM tab1 cor0
----
-24
-33
-61

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

query I rowsort
SELECT ALL - 46 * 22 * - - col0 + + + col1 FROM tab0 AS cor0
----
-15099
-88023
-98163

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-994
SELECT ALL 17 AS col0, COUNT( * ) * 25 AS col0 FROM tab0
----
17
75

skipif mysql # not compatible
query II rowsort label-994
SELECT ALL 17 AS col0, COUNT ( * ) * 25 AS col0 FROM tab0
----
17
75

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT DISTINCT 90 + - COUNT( * ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT 90 + - COUNT ( * ) AS col1 FROM tab2
----
87

query I rowsort
SELECT ALL + col2 * - + 43 * - - ( ( - col2 ) ) FROM tab2
----
144652
22747
68800

query II rowsort
SELECT + + col1 * + - 69 * + col0 + col0 AS col1, + col0 FROM tab2 AS cor0
----
-161828
46
-339968
64
-346650
75

query I rowsort
SELECT DISTINCT 68 + 20 AS col0 FROM tab1 AS cor0
----
88

query I rowsort
SELECT DISTINCT col2 - - col2 * - 78 FROM tab2 AS cor0
----
-1771
-3080
-4466

query I rowsort
SELECT DISTINCT + 41 - - 15 FROM tab0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT - 31 DIV - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1001
SELECT - 31 / - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1002
SELECT + - 92 / + - col2 col1 FROM tab1 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 69 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 = + - 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT DISTINCT + COUNT( * ) * MIN( col2 ), COUNT( * ) - - 98 AS col0 FROM tab2
----
69
101

skipif mysql # not compatible
query II rowsort label-1005
SELECT DISTINCT + COUNT ( * ) * MIN ( col2 ), COUNT ( * ) - - 98 AS col0 FROM tab2
----
69
101

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

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

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

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

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

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

query I rowsort
SELECT - 11 * 95 AS col2 FROM tab0
----
-1045
-1045
-1045

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT DISTINCT - 14, - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 - - - 13 IS NULL
----
-14
0

skipif mysql # not compatible
query II rowsort label-1012
SELECT DISTINCT - 14, - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 - - - 13 IS NULL
----
-14
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT ALL + - CAST( 35 AS SIGNED ) * - 32 * + - col2 - - col2 col0 FROM tab0 cor0
----
-110781
-11190
-52593

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1013
SELECT ALL + - CAST ( 35 AS INTEGER ) * - 32 * + - col2 - - col2 col0 FROM tab0 cor0
----
-110781
-11190
-52593

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT + 50 + + COUNT( * ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1014
SELECT + 50 + + COUNT ( * ) AS col2 FROM tab2
----
53

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1016
SELECT DISTINCT - - col2 * + col0 + - + 85 - + col1 + - col1 * - + col0 FROM tab0 WHERE NOT + + 19 IN ( + - 4 / col2, - 5, CAST( NULL AS DECIMAL ), - 99 + CAST( + col1 AS SIGNED ), - 22 )
----

skipif mysql # not compatible
query I rowsort label-1016
SELECT DISTINCT - - col2 * + col0 + - + 85 - + col1 + - col1 * - + col0 FROM tab0 WHERE NOT + + 19 IN ( + - 4 / col2, - 5, CAST ( NULL AS REAL ), - 99 + CAST ( + col1 AS INTEGER ), - 22 )
----

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - 34 / - + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT DISTINCT col2 DIV 24 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT col2 / 24 FROM tab0
----
0
1
4

query I rowsort
SELECT DISTINCT - - 61 + - col2 AS col2 FROM tab1 AS cor0
----
-35
-7
2

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1023
SELECT col1 - - - ( - CAST( + ( - + col2 ) AS SIGNED ) ) * + - col0 AS col2, 14 AS col1 FROM tab0
----
786
14
891
14
9604
14

skipif mysql # not compatible
query II rowsort label-1023
SELECT col1 - - - ( - CAST ( + ( - + col2 ) AS INTEGER ) ) * + - col0 AS col2, 14 AS col1 FROM tab0
----
786
14
891
14
9604
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT - MAX( 57 ) FROM tab2 AS cor0 WHERE NOT col1 + + col1 <> + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT - MAX ( 57 ) FROM tab2 AS cor0 WHERE NOT col1 + + col1 <> + 45
----
NULL

query II rowsort
SELECT DISTINCT 11, - col2 - + 29 AS col1 FROM tab1 AS cor0
----
11
-125
11
-88
11
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1027
SELECT - CAST( NULL AS DECIMAL ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT - CAST ( NULL AS REAL ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 74, + col0 AS col2 FROM tab0 AS cor0
----
74
15
74
87
74
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1031
SELECT CAST( + col0 AS SIGNED ) AS col2, col0 FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-1031
SELECT CAST ( + col0 AS INTEGER ) AS col2, col0 FROM tab0
----
15
15
87
87
97
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * - col1 col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # DIV for integer division: 
query II rowsort label-1034
SELECT DISTINCT - 71 DIV + 70 - + col2, col1 DIV - - col1 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-60
-294
-69
-3195
-97
-1343

skipif mysql # not compatible
query II rowsort label-1034
SELECT DISTINCT - 71 / + 70 - + col2, col1 / - - col1 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-60
-294
-69
-3195
-97
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT 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-1035
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + - ( 67 ) - + 78 * - col1
----

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

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

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

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

query I rowsort
SELECT + + col2 * + col2 + - col2 + - col0 FROM tab2 AS cor0
----
1496
3231
460

query I rowsort
SELECT + 27 + + + ( - col0 ) * + 88 + col2 AS col0 FROM tab0 AS cor0 WHERE NULL <= 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1041
SELECT * FROM tab1 AS cor0 WHERE + col1 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1041
SELECT * FROM tab1 AS cor0 WHERE + col1 >= - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1043
SELECT 71, SUM( ALL col2 ) DIV - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
71
-40

skipif mysql # not compatible
query II rowsort label-1043
SELECT 71, SUM ( ALL col2 ) / - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71
-40

query I rowsort
SELECT DISTINCT - 98 + - col1 FROM tab1 cor0
----
-103
-112
-145

query I rowsort
SELECT ALL 92 * + col1 * 17 AS col2 FROM tab0
----
126684
1564
32844

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

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

query I rowsort
SELECT ALL + col2 + - 15 * - - col0 AS col0 FROM tab2 AS cor0
----
-1067
-667
-920

query I rowsort
SELECT 7 + - - col2 * + col0 * + + col1 FROM tab0 AS cor0
----
18277
57112
9610

query I rowsort
SELECT + col2 + + col2 - + 17 * + 99 * + col2 AS col2 FROM tab2 AS cor0
----
-38663
-67240
-97498

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

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

query I rowsort
SELECT ALL - 83 - 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to baa67214220030200ab184c287372933

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - - COUNT( ALL + - col2 ) * + MAX( - - 70 ) AS col2 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1052
SELECT - - COUNT ( ALL + - col2 ) * + MAX ( - - 70 ) AS col2 FROM tab1 AS cor0
----
210

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

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

query I rowsort
SELECT - 64 * + - col1 FROM tab0 AS cor0
----
1344
5184
64

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

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

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

query I rowsort
SELECT DISTINCT + ( + col0 ) * + + col0 - + col0 AS col0 FROM tab1 AS cor0
----
2550
7140
8190

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

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

query I rowsort
SELECT ALL + ( - - col2 ) * - ( - + 16 ) FROM tab0 AS cor0
----
1584
160
752

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

query II rowsort
SELECT DISTINCT - 23, - 82 AS col2 FROM tab2
----
-23
-82

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

query II rowsort
SELECT col0, - 78 + - ( ( 5 ) ) FROM tab1
----
51
-83
85
-83
91
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 + col2 FROM tab0
----
15
62
87
97
97
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT MIN( ALL + col1 ) FROM tab1 WHERE NOT + col1 < ( + + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT MIN ( ALL + col1 ) FROM tab1 WHERE NOT + col1 < ( + + 88 )
----
NULL

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

query I rowsort
SELECT DISTINCT col2 + + - 89 AS col1 FROM tab1
----
-21
-30
7

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + col1 * - col2 col1 FROM tab2 AS cor0
----
-1084
-2991
-3797

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1072
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT SUM( + col1 ) - CAST( + - 3 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1075
SELECT SUM ( + col1 ) - CAST ( + - 3 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL + 20 + + col1 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT - col2 + + - col2 * - col0 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT ALL + - ( + 43 ) - - col1 AS col0 FROM tab2 AS cor0
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL + MIN( DISTINCT - - 73 ) * + COUNT( * ) AS col0 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL + MIN ( DISTINCT - - 73 ) * + COUNT ( * ) AS col0 FROM tab2
----
219

query I rowsort
SELECT col1 * - col1 + + - col0 AS col0 FROM tab1
----
-110
-2300
-247

query III rowsort
SELECT * FROM tab1 WHERE + 54 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1084
SELECT + col2 AS col1, + 20 + 16 DIV - 59 FROM tab0
----
10
20
47
20
99
20

skipif mysql # not compatible
query II rowsort label-1084
SELECT + col2 AS col1, + 20 + 16 / - 59 FROM tab0
----
10
20
47
20
99
20

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT - + SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
121

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

query I rowsort
SELECT ALL 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT + + COUNT( + col1 ) * + 15 * + MIN( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-4095

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1092
SELECT + + COUNT ( + col1 ) * + 15 * + MIN ( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-4095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1093
SELECT + MIN( DISTINCT + 90 ) * + - 96 + + CAST( + - ( + COUNT( DISTINCT - col1 ) ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-8643

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1093
SELECT + MIN ( DISTINCT + 90 ) * + - 96 + + CAST ( + - ( + COUNT ( DISTINCT - col1 ) ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-8643

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT 51 DIV - - col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-1094
SELECT 51 / - - col2 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT ALL - col0 * - col1 FROM tab0 WHERE - - col1 * - CAST( NULL AS SIGNED ) / - col0 BETWEEN col1 AND 39 * + + 37
----

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL - col0 * - col1 FROM tab0 WHERE - - col1 * - CAST ( NULL AS INTEGER ) / - col0 BETWEEN col1 AND 39 * + + 37
----

query I rowsort
SELECT ALL + 32 + - 66 FROM tab0
----
-34
-34
-34

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT + MAX ( - 78 ) FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT DISTINCT - COUNT( * ) + - 75 col1 FROM tab1 AS cor0
----
-78

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col2 * + - col0 - + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE + + 75 * + - 45 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * 42 FROM tab1
----
2478
2856
4032

query I rowsort
SELECT ALL + col2 * col2 * + 2 * + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1769472
410758
628864

onlyif mysql # DIV for integer division: 
query II rowsort label-1105
SELECT - col0, + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

skipif mysql # not compatible
query II rowsort label-1105
SELECT - col0, + col1 / - col1 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

query I rowsort
SELECT DISTINCT ( - col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ALL - 22 - + col1 FROM tab2 AS cor0
----
-73
-89
-99

query II rowsort
SELECT ALL col2 - 66 AS col2, 33 AS col2 FROM tab0 AS cor0
----
-19
33
-56
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1109
SELECT col2 * - 15 + + + 18 * col2 AS col2, - 6 FROM tab1 WHERE + col1 + + col2 > CAST( col0 AS SIGNED )
----
204
-6
288
-6

skipif mysql # not compatible
query II rowsort label-1109
SELECT col2 * - 15 + + + 18 * col2 AS col2, - 6 FROM tab1 WHERE + col1 + + col2 > CAST ( col0 AS INTEGER )
----
204
-6
288
-6

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

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

query I rowsort
SELECT DISTINCT 71 * + 94 FROM tab0
----
6674

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 48 * + col0 <= col2 * col2
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT 94 * - COUNT( * ) * - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22842

skipif mysql # not compatible
query I rowsort label-1115
SELECT 94 * - COUNT ( * ) * - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
22842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT - CAST( + + MIN( - col2 ) AS SIGNED ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1116
SELECT - CAST ( + + MIN ( - col2 ) AS INTEGER ) AS col0 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT ALL - - CAST( NULL AS SIGNED ) / 45 - - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - - CAST ( NULL AS INTEGER ) / 45 - - col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 23 AS col0 FROM tab0 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 13 * - ( + + 55 ) col0, 89 AS col0 FROM tab0 AS cor0
----
715
89
715
89
715
89

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( col1 ) <> - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT + - MIN( ALL + + 14 ) col2 FROM tab0 cor0
----
-14

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 35 AS col2, col1 * col2 + col0 col2 FROM tab2 AS cor0
----
35
1219
35
3144
35
3961

query I rowsort
SELECT + 43 * + + 27 * + - col0 FROM tab1
----
-105651
-59211
-98685

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

skipif mysql # not compatible
query I rowsort label-1127
SELECT col0 + + CAST ( - col0 AS INTEGER ) FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL + 15 + CAST( col0 AS SIGNED ) + - 46 * + - col0 - - col2 FROM tab2
----
2200
3063
3598

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + 15 + CAST ( col0 AS INTEGER ) + - 46 * + - col0 - - col2 FROM tab2
----
2200
3063
3598

query I rowsort
SELECT ALL col2 + - + 23 AS col2 FROM tab1
----
36
45
73

query I rowsort
SELECT - 90 + - col2 * + col2 AS col0 FROM tab0
----
-190
-2299
-9891

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL - COUNT( * ) + - 52 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL - COUNT ( * ) + - 52 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-159

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

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

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

query I rowsort
SELECT DISTINCT 96 + + col2 + - col2 AS col0 FROM tab2
----
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT CAST( + col1 AS SIGNED ) - + + ( - 73 ) * col2 * col0 FROM tab2 AS cor0
----
186957
317617
77285

skipif mysql # not compatible
query I rowsort label-1136
SELECT CAST ( + col1 AS INTEGER ) - + + ( - 73 ) * col2 * col0 FROM tab2 AS cor0
----
186957
317617
77285

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT - - CAST ( + ( col0 ) AS INTEGER ) + - + col1 AS col0 FROM tab0 cor0
----
-66
66
96

query I rowsort
SELECT ALL ( + + 71 ) + - 71 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - - col1 + - col0 FROM tab0 AS cor0
----
-153
-193
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1140
SELECT + - CAST( NULL AS DECIMAL ) + - col2 + - + CAST( - + 72 AS DECIMAL ) / + + col2 + - 53 * - col1 * - + col0 * - + 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT + - CAST ( NULL AS REAL ) + - col2 + - + CAST ( - + 72 AS REAL ) / + + col2 + - 53 * - col1 * - + col0 * - + 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT 27 * - + COUNT( * ) - 78 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT 27 * - + COUNT ( * ) - 78 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 21 = NULL
----

query I rowsort
SELECT DISTINCT col2 + - 8 FROM tab1 AS cor0
----
51
60
88

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1148
SELECT ALL col2 * - CAST( - - col0 AS SIGNED ) FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL col2 * - CAST ( - - col0 AS INTEGER ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1149
SELECT ALL * FROM tab1 WHERE NOT - - ( col2 ) * 68 NOT IN ( + col2, CAST( + 97 AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-1149
SELECT ALL * FROM tab1 WHERE NOT - - ( col2 ) * 68 NOT IN ( + col2, CAST ( + 97 AS INTEGER ), col2 )
----

query I rowsort
SELECT - ( + 92 ) AS col0 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - col2 * + + col1 * - col0 FROM tab1
----
25075
290836
68544

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1153
SELECT ALL + col2 DIV + - col0 AS col2, col2 * - 69 + + col0 FROM tab2
----
0
-1541
0
-2696
0
-3927

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL + col2 / + - col0 AS col2, col2 * - 69 + + col0 FROM tab2
----
0
-1541
0
-2696
0
-3927

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * - col1 / col1 * - - col0 <= - + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + COUNT( col2 ) FROM tab1 cor0 WHERE col1 IS NOT NULL AND + col0 + + - 53 + + 65 * col2 NOT IN ( col1, + col2 + 40, col1 / col2 )
----
3

skipif mysql # not compatible
query I rowsort label-1155
SELECT + COUNT ( col2 ) FROM tab1 cor0 WHERE col1 IS NOT NULL AND + col0 + + - 53 + + 65 * col2 NOT IN ( col1, + col2 + 40, col1 / col2 )
----
3

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

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

query I rowsort
SELECT ALL 6 * + + 75 AS col0 FROM tab2 AS cor0
----
450
450
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 56 + - col0 * + col1 col0, - col2 * - + col0 * 58 AS col2 FROM tab0 AS cor0
----
-1159
40890
-1771
50460
-41
556974

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE - 2 <= col2 / - col0
----
2

skipif mysql # not compatible
query I rowsort label-1159
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - 2 <= col2 / - col0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 67 AS col0, col1 col0 FROM tab2
----
-67
51
-67
67
-67
77

query I rowsort
SELECT + col2 * + 15 * 2 FROM tab1
----
1770
2040
2880

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

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

query I rowsort
SELECT ALL col0 * - + col2 FROM tab1 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT + 58 AS col0, - SUM( ALL col1 ) FROM tab0 cor0
----
58
-103

skipif mysql # not compatible
query II rowsort label-1164
SELECT + 58 AS col0, - SUM ( ALL col1 ) FROM tab0 cor0
----
58
-103

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

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

query I rowsort
SELECT DISTINCT + 53 * 78 AS col0 FROM tab1
----
4134

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

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 89 + 48 AS col1 FROM tab0
----
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT 32 * + COUNT ( * ) col0 FROM tab1
----
96

query I rowsort
SELECT + col0 * 22 AS col1 FROM tab0
----
1914
2134
330

query I rowsort
SELECT - 74 * 80 - col2 FROM tab0
----
-5930
-5967
-6019

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1175
SELECT + SUM ( ALL ( col0 ) ) FROM tab2
----
185

query III rowsort
SELECT * FROM tab2 WHERE - col1 * 67 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT col0 FROM tab0 WHERE CAST( - col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-1177
SELECT col0 FROM tab0 WHERE CAST ( - col1 AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT - 66 + - col0 * + col0 AS col1 FROM tab1
----
-2667
-7291
-8347

query I rowsort
SELECT ALL col1 * + col2 + + 91 FROM tab1
----
1435
3287
386

query I rowsort
SELECT + 12 FROM tab0 WHERE NULL >= col0
----

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

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

query I rowsort
SELECT ALL + col0 * 20 + 16 FROM tab0
----
1756
1956
316

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT col0 * - ( + col1 / 89 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 59 * + col0 FROM tab0 AS cor0
----
5133
5723
885

query I rowsort
SELECT DISTINCT - 25 * col1 AS col2 FROM tab2
----
-1275
-1675
-1925

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT ALL - 32 DIV 99 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - 32 / 99 FROM tab1
----
0
0
0

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

query I rowsort
SELECT 26 * 67 AS col1 FROM tab2
----
1742
1742
1742

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT + COUNT( DISTINCT - 45 ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
10

skipif mysql # not compatible
query I rowsort label-1189
SELECT + COUNT ( DISTINCT - 45 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 36 * + col1 col0 FROM tab2
----
1859
2470
2812

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

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 36 )
----

query I rowsort
SELECT ALL + 59 + - col2 AS col0 FROM tab2 AS cor0
----
1
19
36

query I rowsort
SELECT ALL - col2 * + 58 AS col2 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT + 37 AS col2 FROM tab0 AS cor0 WHERE 0 * ( + col1 * col1 ) <> + col1
----
37
37
37

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE ( + 2 * col1 ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - - col2 + 65 AS col0 FROM tab0 AS cor0
----
112
164
75

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

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

query I rowsort
SELECT ALL + col1 + 58 AS col0 FROM tab0 cor0
----
139
59
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT - SUM( ALL 52 ) * 70 FROM tab1 AS cor0
----
-10920

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - SUM ( ALL 52 ) * 70 FROM tab1 AS cor0
----
-10920

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

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

query I rowsort
SELECT DISTINCT col0 * + col0 * + col1 AS col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT 26 * col0 FROM tab2 WHERE NOT 14 = + col1
----
1196
1664
1950

query I rowsort
SELECT + 32 * + col1 + + 47 AS col0 FROM tab0
----
2639
719
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT + ( col2 ) DIV - col2 + col2 AS col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1206
SELECT + ( col2 ) / - col2 + col2 AS col2 FROM tab2
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL COUNT( - 1 ) + + 33 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL COUNT ( - 1 ) + + 33 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - 83 + - + COUNT( * ) * 39 AS col2 FROM tab2
----
-200

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 83 + - + COUNT ( * ) * 39 AS col2 FROM tab2
----
-200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + + col2 col1 FROM tab0 AS cor0 WHERE col0 = - col0 + + col1 / 20
----

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

skipif mysql # not compatible
query III rowsort label-1210
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 81 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL + - 61 + 55 + SUM( - col2 + + col1 ) col0 FROM tab1 AS cor0
----
-163

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1211
SELECT ALL + - 61 + 55 + SUM ( - col2 + + col1 ) col0 FROM tab1 AS cor0
----
-163

query I rowsort
SELECT ALL 8 + + col1 AS col0 FROM tab0 AS cor0 WHERE + col2 * col2 IS NOT NULL
----
29
89
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL + 90 * + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
810

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL + 90 * + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
810

query I rowsort
SELECT col2 - + + 4 FROM tab1
----
55
64
92

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

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

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 / 74 FROM tab1 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT DISTINCT - 84, + 40 AS col1 FROM tab0 cor0
----
-84
40

query I rowsort
SELECT col2 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 75 * 61 ) NOT BETWEEN NULL AND - col1
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT DISTINCT - SUM( CAST( NULL AS SIGNED ) ) * - 8 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT - SUM ( CAST ( NULL AS INTEGER ) ) * - 8 AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 * + + col2 col0 FROM tab0 AS cor0
----
-4089
-8613
-870

query I rowsort
SELECT DISTINCT col2 / col0 FROM tab2 WHERE - col0 + - col2 / ( + col2 ) IN ( col0 * + col2 )
----

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

query I rowsort
SELECT - col2 * + - 30 * ( col0 ) * + col2 AS col2 FROM tab1
----
12623520
14100480
8876550

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT - COUNT( ALL - col0 ) AS col1 FROM tab0 WHERE NOT ( + col2 + + + 20 + col2 ) IS NULL AND NOT + 93 * 51 + + ( - col1 ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1227
SELECT - COUNT ( ALL - col0 ) AS col1 FROM tab0 WHERE NOT ( + col2 + + + 20 + col2 ) IS NULL AND NOT + 93 * 51 + + ( - col1 ) NOT IN ( + col2 )
----
0

query I rowsort
SELECT ALL - + 45 FROM tab0 WHERE NULL IS NULL
----
-45
-45
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 27 ) NOT IN ( 74 )
----

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

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-40

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT - col0 + CAST( + + col1 AS SIGNED ) + + ( col2 ) + - col2 col2 FROM tab1 cor0
----
-37
-44
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1233
SELECT DISTINCT - col0 + CAST ( + + col1 AS INTEGER ) + + ( col2 ) + - col2 col2 FROM tab1 cor0
----
-37
-44
-80

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 42
----

query I rowsort
SELECT ALL - - 24 + col2 * - col0 FROM tab2 AS cor0
----
-1034
-2536
-4326

query I rowsort
SELECT + + col2 + 97 * - 79 AS col2 FROM tab1 AS cor0
----
-7567
-7595
-7604

query I rowsort
SELECT + col1 / + 45 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( 61 * col1 )
----

query I rowsort
SELECT DISTINCT - + 38 * - ( col2 ) - - - col0 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
2582
4311
6770

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT ALL - 59 + - - col2 DIV - col1 AS col1 FROM tab0 cor0
----
-158
-59
-59

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - 59 + - - col2 / - col1 AS col1 FROM tab0 cor0
----
-158
-59
-59

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

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

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

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

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

query I rowsort
SELECT ALL + 92 - 13 FROM tab1
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 * 8 col1 FROM tab0
----
-696
-696
-696

query I rowsort
SELECT ALL + col2 * - 66 * - col1 FROM tab2
----
203280
256476
77418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1248
SELECT ( - 4 ) / - col2 + + 13 + + - 93 - CAST( NULL AS SIGNED ) + col2 * ( col2 * + 5 ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT ( - 4 ) / - col2 + + 13 + + - 93 - CAST ( NULL AS INTEGER ) + col2 * ( col2 * + 5 ) * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT + MIN( 37 ) + - 98 AS col1 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT + MIN ( 37 ) + - 98 AS col1 FROM tab1
----
-61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * + 44 * ( + + col1 ) / - col0 + + col0 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - - ( - col2 ) + - col2 AS col1 FROM tab2 AS cor0 WHERE - 98 - + - col2 IS NOT NULL
----
-1640
-3422
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + + 39 + - - COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1252
SELECT + + 39 + - - COUNT ( * ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT - col2 - col1 * col0 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT + col1 DIV 76 * + 63 FROM tab2
----
0
0
63

skipif mysql # not compatible
query I rowsort label-1254
SELECT + col1 / 76 * + 63 FROM tab2
----
0
0
63

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT COUNT( * ) * + + ( - - 46 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-1257
SELECT COUNT ( * ) * + + ( - - 46 ) FROM tab1 AS cor0
----
138

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

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

query I rowsort
SELECT col1 * - col1 * + + ( col0 ) FROM tab1 cor0
----
-201019
-2125
-9996

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT col0 DIV + 75 - + 52 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-51
-52

skipif mysql # not compatible
query I rowsort label-1261
SELECT col0 / + 75 - + 52 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-51
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT DISTINCT - - 44 DIV - 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT - - 44 / - 69 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1264
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> CAST( 15 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1264
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> CAST ( 15 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - + 93 ) AS col0 FROM tab0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 64 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT SUM( - + 32 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1268
SELECT SUM ( - + 32 ) FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT DISTINCT - 52 DIV + col1 FROM tab0
----
-2
-52
0

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT - 52 / + col1 FROM tab0
----
-2
-52
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1270
SELECT ALL MAX( 20 ) DIV ( - 44 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL MAX ( 20 ) / ( - 44 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + + col2 col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

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

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

query I rowsort
SELECT - col1 + + 75 AS col0 FROM tab0 AS cor0
----
-6
54
74

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

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

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col2 * - col0 + + 55 FROM tab1 AS cor0
----
4951
5070
6243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1277
SELECT - ( - - col0 ) * - 91 + - CAST( - col1 AS SIGNED ) + + - ( + 18 ) AS col2 FROM tab1 cor0
----
4637
7722
8310

skipif mysql # not compatible
query I rowsort label-1277
SELECT - ( - - col0 ) * - 91 + - CAST ( - col1 AS INTEGER ) + + - ( + 18 ) AS col2 FROM tab1 cor0
----
4637
7722
8310

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col0 + + col0 * - - 27 col2 FROM tab0
----
2415
2715
339

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT - MIN( 81 ) AS col2 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - MIN ( 81 ) AS col2 FROM tab2
----
-81

query I rowsort
SELECT - col1 * + col0 + col2 * - 56 FROM tab1
----
-3729
-6090
-8085

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 87 + - 79 * - MIN( ALL + 86 ) AS col0 FROM tab2
----
6881

skipif mysql # not compatible
query I rowsort label-1284
SELECT 87 + - 79 * - MIN ( ALL + 86 ) AS col0 FROM tab2
----
6881

query I rowsort
SELECT DISTINCT - col1 * 15 + col1 AS col2 FROM tab0
----
-1134
-14
-294

query I rowsort
SELECT - 5 * - + 34 * - - col2 FROM tab2
----
3910
6800
9860

query I rowsort
SELECT + - col0 * - + col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - ( + 81 ) * + col1 + 37 FROM tab2 AS cor0
----
-4094
-5390
-6200

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

query I rowsort
SELECT ALL + + col2 * + + 77 FROM tab2 AS cor0 WHERE NOT + col1 * - 99 - - - 51 NOT BETWEEN - col0 AND NULL
----

query II rowsort
SELECT + col1 AS col0, col1 * col0 FROM tab1
----
14
714
47
4277
5
425

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

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

query I rowsort
SELECT ALL - + 69 + + - 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f218bdb65889c9327d4e159fdc9c98c0

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

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

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

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

query I rowsort
SELECT col2 * - 27 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-36384
-8024
-86360

query II rowsort
SELECT DISTINCT - 50, 99 + + + col1 AS col1 FROM tab1 cor0
----
-50
104
-50
113
-50
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL - - 69 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - - 69 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-207

query I rowsort
SELECT + 50 FROM tab0 AS cor0 WHERE NOT ( + col0 ) >= ( + col0 ) * - col1
----

query I rowsort
SELECT + col2 * - + col1 FROM tab0 cor0
----
-210
-3807
-99

query II rowsort
SELECT col0 * - col0 AS col0, - col0 - + + 92 FROM tab0
----
-225
-107
-7569
-179
-9409
-189

query I rowsort
SELECT DISTINCT ( + 2 ) AS col1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT DISTINCT ( - + COUNT( * ) ) AS col2, 68 + 65 * - + COUNT( * ) FROM tab1
----
-3
-127

skipif mysql # not compatible
query II rowsort label-1303
SELECT DISTINCT ( - + COUNT ( * ) ) AS col2, 68 + 65 * - + COUNT ( * ) FROM tab1
----
-3
-127

query II rowsort
SELECT DISTINCT - 25 * 81, col0 FROM tab0
----
-2025
15
-2025
87
-2025
97

query I rowsort
SELECT + ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - 32 * + ( - col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
157696
160800
75072

query II rowsort
SELECT col0 * + 44 AS col2, col2 + + - col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
3828
1750
4268
99
660
1247

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

query I rowsort
SELECT 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT DISTINCT - 33 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - 33 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - + COUNT( * ) - + 81 AS col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - + COUNT ( * ) - + 81 AS col1 FROM tab2 AS cor0
----
-84

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

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

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

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

query I rowsort
SELECT DISTINCT - ( - - col2 ) - + col2 FROM tab1 AS cor0
----
-118
-136
-192

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN ( + + col1 ) AND + 77 + 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1319
SELECT ALL CAST( - + col1 AS SIGNED ) - + 43 * + - col0 FROM tab0
----
3720
4170
564

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL CAST ( - + col1 AS INTEGER ) - + 43 * + - col0 FROM tab0
----
3720
4170
564

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

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

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

query I rowsort
SELECT + 53 + - 93 * - + col2 FROM tab0
----
4424
9260
983

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1323
SELECT * FROM tab1 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) * - col0 + + - CAST( + + col2 AS SIGNED ) - - col0 * - col2 + - + col1 * + 24 + col1 * + col1 - - 78 )
----

skipif mysql # not compatible
query III rowsort label-1323
SELECT * FROM tab1 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * - col0 + + - CAST ( + + col2 AS INTEGER ) - - col0 * - col2 + - + col1 * + 24 + col1 * + col1 - - 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT col1 DIV 93 + - + col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1324
SELECT col1 / 93 + - + col1 FROM tab0
----
-1
-21
-81

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

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

query I rowsort
SELECT ALL 24 * - 37 * + + col0 FROM tab1 AS cor0
----
-45288
-75480
-80808

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * - + 28 * 39 * - col0 * 36 * + + col1 AND col2
----

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

query I rowsort
SELECT - 64 * - 85 + - 26 + col0 FROM tab1 cor0
----
5465
5499
5505

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col2 col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - - 83 + + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
142
151
179

query I rowsort
SELECT col1 + + col1 FROM tab1 AS cor0 WHERE NOT 45 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT ALL 59 DIV + 40 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL 59 / + 40 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 91 * - col1 AS col1 FROM tab1 AS cor0
----
-1274
-4277
-455

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + + col1 * - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 78 / + + col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT DISTINCT MIN( DISTINCT + col1 ) col1, 10 AS col0 FROM tab0
----
1
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1339
SELECT DISTINCT MIN ( DISTINCT + col1 ) col1, 10 AS col0 FROM tab0
----
1
10

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

query I rowsort
SELECT col2 * + col2 + - 28 FROM tab0 AS cor0
----
2181
72
9773

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL = NULL
----

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

skipif mysql # not compatible
query I rowsort label-1343
SELECT + COUNT ( * ) - + + 63 * + + 1 FROM tab0
----
-60

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

query I rowsort
SELECT col0 - 22 + - 80 + + col1 * col0 * + 64 AS col1 FROM tab2
----
150088
315354
321573

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

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

query I rowsort
SELECT ALL + - 63 - 41 FROM tab0 AS cor0
----
-104
-104
-104

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 70 + + 37 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab2 WHERE ( NOT - col0 * + col2 + - - col2 + col2 >= - + col0 / 36 * 79 )
----
28
37
9

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

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

query I rowsort
SELECT ALL + 31 - - col1 * + - col1 AS col0 FROM tab2
----
-2570
-4458
-5898

query I rowsort
SELECT DISTINCT 51 - col1 FROM tab1
----
37
4
46

query I rowsort
SELECT - ( + + col1 ) * + 53 FROM tab1
----
-2491
-265
-742

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

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL + SUM ( ALL - - ( - col2 ) ) FROM tab2
----
-121

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

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

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

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1359
SELECT ALL CAST( - 42 AS SIGNED ), ( + col0 ) + + + col0 col0 FROM tab0
----
-42
174
-42
194
-42
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1359
SELECT ALL CAST ( - 42 AS INTEGER ), ( + col0 ) + + + col0 col0 FROM tab0
----
-42
174
-42
194
-42
30

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 >= + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1362
SELECT DISTINCT COUNT( * ) DIV - 71, 26 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
-8

skipif mysql # not compatible
query II rowsort label-1362
SELECT DISTINCT COUNT ( * ) / - 71, 26 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT - 53 DIV - - MAX( col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT - 53 / - - MAX ( col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1364
SELECT ALL + - 23 DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + - 23 / - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT + + 74 * + - MAX( - col0 ) FROM tab2 AS cor0
----
3404

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT + + 74 * + - MAX ( - col0 ) FROM tab2 AS cor0
----
3404

query I rowsort
SELECT + col1 * - col0 * - + col0 AS col0 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT - 3 * + + col1 AS col1 FROM tab0
----
-243
-3
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE + 36 IS NULL
----

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

query I rowsort
SELECT + col0 + - 41 * - 12 FROM tab2 cor0
----
538
556
567

query I rowsort
SELECT ALL + 10 - + ( + + 61 ) FROM tab0 AS cor0
----
-51
-51
-51

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

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

query I rowsort
SELECT ALL 88 + col2 AS col0 FROM tab1
----
147
156
184

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

query II rowsort
SELECT ALL - col2 AS col1, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 35 > 67
----
-23
23
-40
40
-58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 82 col0 FROM tab1 AS cor0
----
-129
-87
-96

query I rowsort
SELECT + + 48 * - 10 - - + col2 FROM tab2 AS cor0
----
-422
-440
-457

query I rowsort
SELECT ALL 20 + col2 FROM tab2 AS cor0
----
43
60
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - - COUNT( * ) - - 12 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - - COUNT ( * ) - - 12 FROM tab0 AS cor0
----
15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT COUNT( * ) * COUNT( + col1 ) * + 73 AS col1 FROM tab2
----
657

skipif mysql # not compatible
query I rowsort label-1383
SELECT COUNT ( * ) * COUNT ( + col1 ) * + 73 AS col1 FROM tab2
----
657

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 87 + - + 88 + 62 / + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT 0 AS col0, - ( MAX( DISTINCT + col1 ) ) AS col1 FROM tab0 WHERE NOT + 8 * + - col2 = NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1385
SELECT 0 AS col0, - ( MAX ( DISTINCT + col1 ) ) AS col1 FROM tab0 WHERE NOT + 8 * + - col2 = NULL
----
0
NULL

query I rowsort
SELECT ALL + - 17 AS col2 FROM tab0 AS cor0 WHERE NOT ( + 82 ) IN ( - col2, col0 - - + col0, 99 )
----
-17
-17
-17

query I rowsort
SELECT - col0 * + col2 * col1 * - col2 + + col1 * 71 AS col2 FROM tab0 cor0
----
184191
2689686
950768

onlyif mysql # aggregate syntax: 
query II rowsort label-1388
SELECT + 69 * - 1 AS col0, - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT 76 * + col2 * - + col0 + + 66 + - col0 <> NULL )
----
-69
0

skipif mysql # not compatible
query II rowsort label-1388
SELECT + 69 * - 1 AS col0, - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT 76 * + col2 * - + col0 + + 66 + - col0 <> NULL )
----
-69
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - 4 + + + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - 4 + + + COUNT ( * ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 + col0 FROM tab0 cor0
----
1
196
21
97
81
62

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

query I rowsort
SELECT + 14 * - 8 * + col0 AS col2 FROM tab1 AS cor0
----
-10192
-5712
-9520

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1396
SELECT DISTINCT + 63 col2, - COUNT ( * ) FROM tab1 AS cor0
----
63
-3

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 96 IS NOT NULL AND NOT NULL NOT BETWEEN NULL AND - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT MAX( DISTINCT + 75 ) FROM tab1, tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-1402
SELECT MAX ( DISTINCT + 75 ) FROM tab1, tab0 cor0
----
75

query I rowsort
SELECT col1 + + 50 * - col2 FROM tab1
----
-2945
-3353
-4786

query III rowsort
SELECT ALL * FROM tab1 WHERE - 91 NOT BETWEEN NULL AND - col2
----
51
14
96

query I rowsort
SELECT DISTINCT + 11 - + 9 * + ( - 49 ) AS col1 FROM tab2 AS cor0
----
452

query I rowsort
SELECT ( - + 41 ) FROM tab2 cor0
----
-41
-41
-41

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

query I rowsort
SELECT - 47 * col0 * + 35 FROM tab0 cor0
----
-143115
-159565
-24675

query I rowsort
SELECT DISTINCT - 17 - - 62 FROM tab1
----
45

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

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

query I rowsort
SELECT DISTINCT col0 * + 3 * + 12 AS col0 FROM tab0
----
3132
3492
540

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

query I rowsort
SELECT ALL + + 93 + + + col1 AS col0 FROM tab1 AS cor0
----
107
140
98

query I rowsort
SELECT - col2 + + col1 * - col0 * - 72 AS col1 FROM tab1 AS cor0
----
30541
307876
51312

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 81 + - col1 NOT BETWEEN + 94 AND + 57 * + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1417
SELECT ALL - + col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1417
SELECT ALL - + col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

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

query II rowsort
SELECT ALL + col2 AS col1, + 36 FROM tab0
----
10
36
47
36
99
36

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

query I rowsort
SELECT 25 * + - col0 FROM tab2
----
-1150
-1600
-1875

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1423
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT - ( + - 8 ) + + COUNT( * ) DIV - ( + SUM( ALL + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1426
SELECT - ( + - 8 ) + + COUNT ( * ) / - ( + SUM ( ALL + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col0 + + col0 + - 28 + 7 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL 14 * - col2 + - col0 + col0 FROM tab0 AS cor0
----
-1386
-140
-658

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

query I rowsort
SELECT col1 * + col0 * + + col1 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # DIV for integer division: 
query I rowsort label-1431
SELECT - 93 DIV + + 44 FROM tab1 cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1431
SELECT - 93 / + + 44 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1432
SELECT - col0 AS col0, col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1432
SELECT - col0 AS col0, col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1433
SELECT * FROM tab0 WHERE NULL < + 83 * - + ( CAST( - + 56 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1433
SELECT * FROM tab0 WHERE NULL < + 83 * - + ( CAST ( - + 56 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1434
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / + - col2 <> - + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1434
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / + - col2 <> - + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ALL 48 * + COUNT( * ) FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL 48 * + COUNT ( * ) FROM tab2
----
144

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1437
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col1 * - col1 FROM tab1
----
NULL
196
NULL
2209
NULL
25

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col1 * - col1 FROM tab1
----
NULL
196
NULL
2209
NULL
25

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

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - ( 95 ) + - COUNT ( * ) + COUNT ( * ) FROM tab0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT + + 34 + + COUNT( * ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1439
SELECT + + 34 + + COUNT ( * ) FROM tab0 AS cor0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT + COUNT( * ) + 17 AS col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1442
SELECT + COUNT ( * ) + 17 AS col2 FROM tab2 AS cor0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1443
SELECT 56 DIV - 69 + COUNT( * ), + COUNT( * ) * + 76 * - 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
-42408

skipif mysql # not compatible
query II rowsort label-1443
SELECT 56 / - 69 + COUNT ( * ), + COUNT ( * ) * + 76 * - 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
-42408

query I rowsort
SELECT 37 - - 11 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
48
48
48

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

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

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

query I rowsort
SELECT DISTINCT 72 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 14 AND col2
----

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

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

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

query I rowsort
SELECT DISTINCT col1 * + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1452
SELECT - 5 - - CAST( NULL AS SIGNED ), + MIN( ALL col1 ) * + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col1 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1452
SELECT - 5 - - CAST ( NULL AS INTEGER ), + MIN ( ALL col1 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col1 )
----
NULL
NULL

query I rowsort
SELECT ALL 68 AS col1 FROM tab1 WHERE ( NOT col2 >= - col1 * - - ( col2 ) + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 23 IS NOT NULL
----

query I rowsort
SELECT - 68 * - + col2 * - col2 FROM tab2
----
-108800
-228752
-35972

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT + 34 * COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1456
SELECT + 34 * COUNT ( * ) FROM tab0
----
102

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

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

query I rowsort
SELECT 6 * + col0 + + col1 + - 51 * + col2 FROM tab1 AS cor0
----
-2494
-2875
-4576

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 95 = - + 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT MIN( ALL - - 53 ) col2 FROM tab0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1460
SELECT MIN ( ALL - - 53 ) col2 FROM tab0
----
53

query I rowsort
SELECT DISTINCT - 26 + + col1 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT ALL + 90 * + col0 - + 6 + - 51 FROM tab2 AS cor0
----
4083
5703
6693

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

query I rowsort
SELECT - 53 AS col1 FROM tab2 cor0 WHERE - col1 < + col1 * - col0
----

query I rowsort
SELECT ALL 76 + col0 + - + 30 AS col2 FROM tab1 cor0
----
131
137
97

query I rowsort
SELECT DISTINCT - col2 + + + 40 FROM tab1 AS cor0
----
-19
-28
-56

query I rowsort
SELECT DISTINCT - ( + 89 ) AS col0 FROM tab0 AS cor0
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT DISTINCT + 47 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + 47 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
44

query II rowsort
SELECT + col0 + - 63 AS col2, - col2 + + col2 FROM tab0 AS cor0 WHERE ( NOT + 8 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT MAX( - - ( - 29 ) ) + + - COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-1471
SELECT MAX ( - - ( - 29 ) ) + + - COUNT ( * ) FROM tab0
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT COUNT( * ) * + 72 + - 10 AS col2 FROM tab0
----
206

skipif mysql # not compatible
query I rowsort label-1473
SELECT COUNT ( * ) * + 72 + - 10 AS col2 FROM tab0
----
206

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

skipif mysql # not compatible
query I rowsort label-1474
SELECT 67 + ( - 49 ) * - CAST ( NULL AS INTEGER ) * 75 * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 43 + + ( - col1 ) + 48 AS col1 FROM tab1
----
44
77
86

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

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

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

query I rowsort
SELECT - - 3 - - 51 FROM tab2 cor0
----
54
54
54

query I rowsort
SELECT ALL + col0 - 6 FROM tab0 AS cor0
----
81
9
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col2 * col0 / col0 * + - 92 / - col0 * + - 63 * - + 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT DISTINCT COUNT( * ) AS col1, + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
63

skipif mysql # not compatible
query II rowsort label-1482
SELECT DISTINCT COUNT ( * ) AS col1, + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
63

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + 42 + - COUNT( * ) * + - MIN( DISTINCT 1 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 42 + - COUNT ( * ) * + - MIN ( DISTINCT 1 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, - col1 * 18 + - + col1 FROM tab1 cor0
----
59
-95
68
-893
96
-266

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1489
SELECT DISTINCT - + ( - col1 ) / - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1490
SELECT + col1 DIV + col2 * + - 71, ( col2 ) FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-1490
SELECT + col1 / + col2 * + - 71, ( col2 ) FROM tab1 AS cor0
----
0
59
0
68
0
96

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

query I rowsort
SELECT - col0 * ( + 8 ) FROM tab0
----
-120
-696
-776

query I rowsort
SELECT DISTINCT 65 * + col2 FROM tab0
----
3055
6435
650

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

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

query I rowsort
SELECT ALL 50 * + 48 * - - 52 FROM tab2
----
124800
124800
124800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 30 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 10 + + 14 AS col2 FROM tab0
----
24

query I rowsort
SELECT ALL + col1 + - col2 + - + col2 FROM tab2 AS cor0
----
-3
-49
5

query I rowsort
SELECT ALL + - 53 * + col2 AS col2 FROM tab1 cor0
----
-3127
-3604
-5088

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

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

query I rowsort
SELECT DISTINCT - col2 * + - col2 + col0 AS col0 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT + - 90 * - 50 * - + 51 AS col1 FROM tab1 AS cor0
----
-229500
-229500
-229500

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT ALL - 88 DIV - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL - 88 / - col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT ALL 84 + COUNT( * ) + + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL 84 + COUNT ( * ) + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
90

query I rowsort
SELECT DISTINCT + 39 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3442
-4585
-9177

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

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + MIN ( + + 70 ) + - 72 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - + 36 AS col2 FROM tab0 AS cor0 WHERE + col2 <> + col0
----
-117
-37
-57

query I rowsort
SELECT ALL - col2 + - 13 * + + col0 AS col1 FROM tab2 AS cor0
----
-1033
-621
-872

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1512
SELECT - SUM( CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1512
SELECT - SUM ( CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT col2 + 63 FROM tab1 AS cor0
----
122
131
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT DISTINCT + MAX( - col0 ) + - - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT + MAX ( - col0 ) + - - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-54

query II rowsort
SELECT DISTINCT + 43 AS col2, 14 FROM tab0 AS cor0
----
43
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT + 49 - - - ( - 77 ) DIV 91 + - 71 DIV - SUM( + 45 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-1516
SELECT + 49 - - - ( - 77 ) / 91 + - 71 / - SUM ( + 45 ) FROM tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1517
SELECT DISTINCT + col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + + col2 <= 10
----

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + + col2 <= 10
----

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col2 FROM tab1
----
91

query II rowsort
SELECT ALL - 88 AS col2, 76 FROM tab0
----
-88
76
-88
76
-88
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT - SUM( ALL + col1 ) + - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-106

skipif mysql # not compatible
query I rowsort label-1520
SELECT - SUM ( ALL + col1 ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT 26 * + + CAST( - 10 AS SIGNED ) FROM tab2
----
-260
-260
-260

skipif mysql # not compatible
query I rowsort label-1521
SELECT 26 * + + CAST ( - 10 AS INTEGER ) FROM tab2
----
-260
-260
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1522
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0, + 14 AS col2 FROM tab0
----
-3
14

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0, + 14 AS col2 FROM tab0
----
-3
14

query I rowsort
SELECT ( - 35 ) * - + col1 FROM tab1
----
1645
175
490

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT + MAX( ALL - 0 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT + MAX ( ALL - 0 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * col2 col1 FROM tab0 AS cor0
----
1457
3069
310

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT - + col0 DIV - 46 col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1526
SELECT - + col0 / - 46 col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1527
SELECT DISTINCT - COUNT( * ) - - - 52 FROM tab1 AS cor0 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT - COUNT ( * ) - - - 52 FROM tab1 AS cor0 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1529
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - ( - 90 ) - col0 >= + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - ( - 90 ) - col0 >= + + CAST ( NULL AS INTEGER ) )
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 12 AS col2, + col2 col2 FROM tab2
----
12
23
12
40
12
58

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + + MAX( ALL + col2 ) FROM tab2 WHERE + + col0 * - 65 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + + MAX ( ALL + col2 ) FROM tab2 WHERE + + col0 * - 65 * - col1 IS NULL
----
NULL

query II rowsort
SELECT + col1 * - - ( + col1 ) * - col0 * - col0 + 46 AS col0, col0 AS col0 FROM tab1
----
180671
85
18292775
91
509842
51

query I rowsort
SELECT col2 + + + 90 FROM tab0
----
100
137
189

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT SUM( + 61 ) + + + 27 AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1544
SELECT SUM ( + 61 ) + + + 27 AS col1 FROM tab1 AS cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT col0 DIV + 65 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1545
SELECT col0 / + 65 FROM tab0
----
0
1
1

query I rowsort
SELECT + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT MAX( DISTINCT - ( col2 ) ) - - - 28 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1547
SELECT MAX ( DISTINCT - ( col2 ) ) - - - 28 FROM tab0 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 - ( - 71 ) col0 FROM tab2 AS cor0
----
127
127
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL + + ( MAX( ( - - 16 ) ) ) - + COUNT( * ) AS col2 FROM tab2 cor0
----
13

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL + + ( MAX ( ( - - 16 ) ) ) - + COUNT ( * ) AS col2 FROM tab2 cor0
----
13

query I rowsort
SELECT + col1 + + + col0 + + + col2 FROM tab2 AS cor0
----
120
181
200

query I rowsort
SELECT col2 * + 13 + - col1 + - col0 AS col0 FROM tab0 cor0
----
1189
22
515

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT + COUNT( * ) - + COUNT( DISTINCT + 88 ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT + COUNT ( * ) - + COUNT ( DISTINCT + 88 ) AS col1 FROM tab1
----
2

query I rowsort
SELECT + col1 + + 82 FROM tab1
----
129
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT + COUNT( * ) + - + ( 70 ) col0 FROM tab2
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1554
SELECT + COUNT ( * ) + - + ( 70 ) col0 FROM tab2
----
-67

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

query III rowsort
SELECT * FROM tab1 WHERE col0 * + col2 IS NULL
----

query I rowsort
SELECT + ( 32 ) + 58 * + 44 AS col0 FROM tab0
----
2584
2584
2584

query I rowsort
SELECT ALL ( + 27 ) AS col2 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT + 62 * COUNT( ALL + - col1 ) - - 78 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT + 62 * COUNT ( ALL + - col1 ) - - 78 FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-1560
SELECT 48 AS col2, + COUNT( * ) col0 FROM tab1
----
48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1560
SELECT 48 AS col2, + COUNT ( * ) col0 FROM tab1
----
48
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT 59 DIV - - col1 AS col0 FROM tab0
----
0
2
59

skipif mysql # not compatible
query I rowsort label-1561
SELECT 59 / - - col1 AS col0 FROM tab0
----
0
2
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT 76 * - + MIN( ALL 76 ) AS col1 FROM tab0 AS cor0
----
-5776

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT 76 * - + MIN ( ALL 76 ) AS col1 FROM tab0 AS cor0
----
-5776

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1563
SELECT - col2 * col0 * - col1 * - 91 - + - col1 / - + 26 * + col2 + - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1563
SELECT - col2 * col0 * - col1 * - 91 - + - col1 / - + 26 * + col2 + - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 <> - - 72
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 46 NOT IN ( + - col0, + col1 + - col1 / 15 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1571
SELECT ALL - col0 * - + CAST( NULL AS SIGNED ) + + 34 - - 57 AS col1, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1571
SELECT ALL - col0 * - + CAST ( NULL AS INTEGER ) + + 34 - - 57 AS col1, col2 AS col0 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1573
SELECT - MIN( ALL - - col2 ) DIV + 29 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1573
SELECT - MIN ( ALL - - col2 ) / + 29 FROM tab1 AS cor0
----
-2

query II rowsort
SELECT + - col0 AS col1, 54 AS col1 FROM tab1 AS cor0
----
-51
54
-85
54
-91
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT MAX( - 59 ) AS col1 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-1575
SELECT MAX ( - 59 ) AS col1 FROM tab0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT - 70 DIV + + col1 AS col0 FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-1576
SELECT - 70 / + + col1 AS col0 FROM tab1
----
-1
-14
-5

query I rowsort
SELECT 89 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * - 4 + - col1 + - 18 col1 FROM tab0 AS cor0
----
213
273
293

query I rowsort
SELECT ALL - col2 * col2 + - 58 * + - col1 FROM tab2 AS cor0
----
2429
2866
522

query I rowsort
SELECT DISTINCT 90 + - + 19 AS col1 FROM tab0
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1581
SELECT - + ( - ( + CAST( + + col0 AS SIGNED ) ) ) DIV + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-1581
SELECT - + ( - ( + CAST ( + + col0 AS INTEGER ) ) ) / + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-58
-67
-96

query I rowsort
SELECT DISTINCT - ( - ( 6 ) ) + - + 45 FROM tab1 AS cor0
----
-39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 53 / col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT - AVG ( - ( 62 ) ) * + 46 AS col1, 60 * SUM( - - col0 ) AS col0 FROM tab2 cor0 WHERE + 55 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1584
SELECT - AVG ( - ( 62 ) ) * + 46 AS col1, 60 * SUM ( - - col0 ) AS col0 FROM tab2 cor0 WHERE + 55 IS NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - - col0 * - col0 - + col2 + - - col0 col0 FROM tab0 AS cor0
----
-304
-7502
-9510

query I rowsort
SELECT ALL + 84 * - col2 FROM tab1
----
-4956
-5712
-8064

query I rowsort
SELECT DISTINCT 83 * 24 - + + col2 FROM tab1
----
1896
1924
1933

onlyif mysql # DIV for integer division: 
query II rowsort label-1588
SELECT DISTINCT col0 DIV + col1, + 41 col1 FROM tab1 AS cor0
----
1
41
17
41
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1588
SELECT DISTINCT col0 / + col1, + 41 col1 FROM tab1 AS cor0
----
1
41
17
41
3
41

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

skipif mysql # not compatible
query I rowsort label-1589
SELECT + 45 / 66 * + + COUNT ( * ) * - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1590
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT + col2 / - CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT - SUM( 91 ) col2 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1592
SELECT DISTINCT - SUM ( 91 ) col2 FROM tab1 AS cor0
----
-273

query I rowsort
SELECT ALL + + 11 AS col0 FROM tab1 cor0
----
11
11
11

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 11 ) col1 FROM tab0
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 = - col2
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL + col2 * + + ( 84 ) - - CAST( - col1 AS SIGNED ) + + - 27 AS col2 FROM tab1 AS cor0
----
4924
5638
8023

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + col2 * + + ( 84 ) - - CAST ( - col1 AS INTEGER ) + + - 27 AS col2 FROM tab1 AS cor0
----
4924
5638
8023

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT DISTINCT + 26 * + 80 - + COUNT( * ) DIV 4 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
2083

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT + 26 * + 80 - + COUNT ( * ) / 4 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2083

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1603
SELECT 71 + - 61 DIV + 32 + + + 34 AS col0, 26 * + MAX( + 91 ) AS col2 FROM tab0
----
104
2366

skipif mysql # not compatible
query II rowsort label-1603
SELECT 71 + - 61 / + 32 + + + 34 AS col0, 26 * + MAX ( + 91 ) AS col2 FROM tab0
----
104
2366

query I rowsort
SELECT ALL col2 * ( - col2 ) AS col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT DISTINCT 67 DIV + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT 67 / + col0 FROM tab2
----
0
1

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

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

query II rowsort
SELECT + ( 21 ) + - ( - - col0 ) AS col1, col0 AS col1 FROM tab2
----
-25
46
-43
64
-54
75

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

query I rowsort
SELECT ALL ( - + col1 ) + - 29 AS col1 FROM tab1 cor0
----
-34
-43
-76

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

query I rowsort
SELECT - + col1 / - + 87 AS col1 FROM tab2 WHERE + col1 IS NULL
----

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

query I rowsort
SELECT - col1 + - col1 + + + 62 FROM tab1 AS cor0
----
-32
34
52

query I rowsort
SELECT DISTINCT + + 86 + + + 16 AS col0 FROM tab0 cor0
----
102

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

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

query I rowsort
SELECT ALL + + col2 - + col0 * - col2 * + 96 FROM tab1 AS cor0
----
470112
481499
594116

query II rowsort
SELECT DISTINCT 53 + - col2, - 82 * - col0 AS col2 FROM tab1 AS cor0
----
-15
7462
-43
4182
-6
6970

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT COUNT( * ) * - 51 + + SUM( ALL + col1 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1619
SELECT COUNT ( * ) * - 51 + + SUM ( ALL + col1 ) FROM tab2 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 29, + col0 + - 19 col1 FROM tab0
----
29
-4
29
68
29
78

query I rowsort
SELECT + col1 * - col2 FROM tab1 WHERE NOT - - 46 BETWEEN + col2 AND 75
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + col0 * + - 2 AS col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT col2 * + - col0 * + col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL col1 * - + 72 FROM tab0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT SUM( ALL - col1 ) * + + 15 AS col0 FROM tab1
----
-990

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT SUM ( ALL - col1 ) * + + 15 AS col0 FROM tab1
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL COUNT( - 18 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COUNT ( - 18 ) FROM tab2
----
3

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE - col1 / + col1 <= NULL
----

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

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col0 + col0 / - col0 >= 87 + + 73
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 <= 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - MAX( 90 ) AS col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - MAX ( 90 ) AS col0 FROM tab1
----
-90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 8 col2 FROM tab1 WHERE NOT col2 IS NULL
----
408
680
728

query I rowsort
SELECT 30 - col1 AS col0 FROM tab2
----
-21
-37
-47

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1638
SELECT * FROM tab2 WHERE NULL NOT IN ( CAST( - ( + col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1638
SELECT * FROM tab2 WHERE NULL NOT IN ( CAST ( - ( + col1 ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT - COUNT( * ) + MIN( ALL - col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( - col0 ) BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - COUNT ( * ) + MIN ( ALL - col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( - col0 ) BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT - ( COUNT( * ) ) * 3 AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1640
SELECT - ( COUNT ( * ) ) * 3 AS col2 FROM tab2
----
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + 17 * 74 + + COUNT( * ) FROM tab1
----
1261

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + 17 * 74 + + COUNT ( * ) FROM tab1
----
1261

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1644
SELECT DISTINCT + col2 DIV ( 24 * - col2 ) FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT + col2 / ( 24 * - col2 ) FROM tab1 WHERE NULL IS NULL
----
0

query I rowsort
SELECT + 46 * - 21 AS col2 FROM tab2
----
-966
-966
-966

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL ( - MAX( - col0 ) ) * 96 AS col0 FROM tab0
----
1440

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL ( - MAX ( - col0 ) ) * 96 AS col0 FROM tab0
----
1440

query I rowsort
SELECT - 18 / + 72 FROM tab0 WHERE ( col0 + - col0 ) >= col2 + + col1
----

query I rowsort
SELECT ALL ( + ( 37 ) ) AS col0 FROM tab1
----
37
37
37

query I rowsort
SELECT ALL col2 * + 4 FROM tab2
----
160
232
92

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

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

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT - 95 / - col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT DISTINCT - COUNT( * ) + 42 FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - COUNT ( * ) + 42 FROM tab1 cor0
----
39

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

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

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

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

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

query I rowsort
SELECT - 96 + col0 * 12 AS col0 FROM tab1 cor0
----
516
924
996

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT col2 DIV + col0 + - 34 * col0 FROM tab2 AS cor0 WHERE NOT + 48 + + col2 = ( col2 )
----
-1564
-2176
-2550

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT col2 / + col0 + - 34 * col0 FROM tab2 AS cor0 WHERE NOT + 48 + + col2 = ( col2 )
----
-1564
-2176
-2550

query I rowsort
SELECT 65 * - col1 FROM tab0 AS cor0
----
-1365
-5265
-65

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

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

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

query I rowsort
SELECT 81 * col0 AS col2 FROM tab0 AS cor0
----
1215
7047
7857

query I rowsort
SELECT DISTINCT - 6 * 51 AS col2 FROM tab2 AS cor0
----
-306

query I rowsort
SELECT + 6 * col1 - + 9 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT DISTINCT + ( MIN( DISTINCT 69 ) ) FROM tab2 cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT DISTINCT + ( MIN ( DISTINCT 69 ) ) FROM tab2 cor0 WHERE col2 IS NULL
----
NULL

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

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

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

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

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

query I rowsort
SELECT ALL - 61 * + + col1 FROM tab0
----
-1281
-4941
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT ( + col2 * col2 ) IS NULL
----
23
40
58

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

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + col2 IN ( 57 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT 80 * COUNT( * ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-1675
SELECT 80 * COUNT ( * ) FROM tab1
----
240

query I rowsort
SELECT col2 + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab2 WHERE col2 BETWEEN 46 * - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab2 WHERE col2 BETWEEN 46 * - col2 AND NULL
----
0

query I rowsort
SELECT col1 * - col2 * 33 AS col0 FROM tab2
----
-101640
-128238
-38709

query I rowsort
SELECT + AVG ( 69 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 <> - col2 * col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( 14 )
----
85
5
59
91
47
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT ALL col0 DIV + + ( - 89 ) - - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL col0 / + + ( - 89 ) - - col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-1683
SELECT DISTINCT col1 AS col2, - 91 + - col1 DIV - 80 FROM tab1
----
14
-91
47
-91
5
-91

skipif mysql # not compatible
query II rowsort label-1683
SELECT DISTINCT col1 AS col2, - 91 + - col1 / - 80 FROM tab1
----
14
-91
47
-91
5
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT DISTINCT + 57 DIV 79 * + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT + 57 / 79 * + col2 FROM tab1
----
0

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

query I rowsort
SELECT ALL col1 * - 92 + + col2 AS col1 FROM tab2
----
-4669
-6106
-7044

query I rowsort
SELECT DISTINCT - col2 * + - col2 + + col2 AS col1 FROM tab1
----
3540
4692
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE col0 = + - col2
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE col0 = + - col2
----
0

query I rowsort
SELECT DISTINCT 35 + - + ( col0 ) AS col0 FROM tab0 AS cor0
----
-52
-62
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT col2 + + col2 * col1 DIV - 38 FROM tab1 AS cor0
----
-16
52
61

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT col2 + + col2 * col1 / - 38 FROM tab1 AS cor0
----
-16
52
61

query I rowsort
SELECT ALL + ( - col2 ) + 32 - + 29 FROM tab0 cor0
----
-44
-7
-96

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 72 * - ( + col1 ) * col0 NOT BETWEEN - col2 AND col0
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 56 < + col0
----
51
14
96

query I rowsort
SELECT + 85 FROM tab0 AS cor0 WHERE col2 * + - 72 NOT BETWEEN NULL AND ( + col1 * + 7 )
----

query I rowsort
SELECT + - 4 + + + col0 + + col1 + col1 AS col0 FROM tab1 cor0
----
181
75
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 + - col0 + - col1 col2 FROM tab1 AS cor0
----
-106
-33
-58

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1703
SELECT col1 + + - CAST( NULL AS SIGNED ), ( - - ( - 75 ) ) DIV + col0 - + 91 * - 29 AS col2 FROM tab2
----
NULL
2638
NULL
2638
NULL
2638

skipif mysql # not compatible
query II rowsort label-1703
SELECT col1 + + - CAST ( NULL AS INTEGER ), ( - - ( - 75 ) ) / + col0 - + 91 * - 29 AS col2 FROM tab2
----
NULL
2638
NULL
2638
NULL
2638

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - 75 + - MAX( DISTINCT + + col0 ) col2 FROM tab0
----
-172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1705
SELECT - 75 + - MAX ( DISTINCT + + col0 ) col2 FROM tab0
----
-172

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT + 14 - COUNT( * ) + + 51 AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-1708
SELECT + 14 - COUNT ( * ) + + 51 AS col2 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT + SUM( - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT + SUM ( - col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT 9 DIV col2 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT 9 / col2 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
0
0
0

query I rowsort
SELECT + col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= ( + ( 58 ) + - 85 )
----

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

skipif mysql # not compatible
query III rowsort label-1712
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > ( NULL )
----

query I rowsort
SELECT - 85 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + 69 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1714
SELECT - col0, - CAST( - 61 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query II rowsort label-1714
SELECT - col0, - CAST ( - 61 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT MAX( + ( col2 ) ) FROM tab1 AS cor0 WHERE ( ( CAST( - col2 AS SIGNED ) ) - 87 ) <= col1
----
96

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT MAX ( + ( col2 ) ) FROM tab1 AS cor0 WHERE ( ( CAST ( - col2 AS INTEGER ) ) - 87 ) <= col1
----
96

query I rowsort
SELECT + 19 * - - 64 AS col0 FROM tab0 cor0
----
1216
1216
1216

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * 42 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT - col1 DIV + - ( + col2 ) + - + col0 AS col0 FROM tab0 AS cor0
----
-14
-85
-97

skipif mysql # not compatible
query I rowsort label-1720
SELECT - col1 / + - ( + col2 ) + - + col0 AS col0 FROM tab0 AS cor0
----
-14
-85
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT + MAX( ALL - 90 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1721
SELECT + MAX ( ALL - 90 ) FROM tab1
----
-90

query II rowsort
SELECT ALL 92 AS col2, - 70 FROM tab1
----
92
-70
92
-70
92
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1723
SELECT + COUNT( * ) AS col0, + SUM( - + col0 ) AS col1 FROM tab1
----
3
-227

skipif mysql # not compatible
query II rowsort label-1723
SELECT + COUNT ( * ) AS col0, + SUM ( - + col0 ) AS col1 FROM tab1
----
3
-227

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 * - col2 col2 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 + col2 ) < col2
----

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

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

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

query I rowsort
SELECT ALL + 90 + - 23 AS col1 FROM tab1 AS cor0
----
67
67
67

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = - - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT - 12 * + 83 * COUNT( DISTINCT + - 18 ) FROM tab0
----
-996

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT - 12 * + 83 * COUNT ( DISTINCT + - 18 ) FROM tab0
----
-996

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1738
SELECT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) <> + + 30
----

skipif mysql # not compatible
query III rowsort label-1738
SELECT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) <> + + 30
----

query I rowsort
SELECT DISTINCT - - 51 FROM tab1 WHERE NOT col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1741
SELECT + COUNT( * ) - + 87 - 65 DIV - 25 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-1741
SELECT + COUNT ( * ) - + 87 - 65 / - 25 FROM tab1
----
-82

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

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

query I rowsort
SELECT ALL col2 + 3 AS col1 FROM tab0
----
102
13
50

query I rowsort
SELECT DISTINCT + col1 + + - 69 FROM tab0
----
-48
-68
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( + - ( - col1 ), + col0 * - 53 + col1 + col0 )
----

query I rowsort
SELECT - 54 + col0 FROM tab1 AS cor0
----
-3
31
37

query I rowsort
SELECT - 64 + - - ( + col1 ) + + col2 FROM tab0 AS cor0
----
-33
36
64

query I rowsort
SELECT ALL - - 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1750
SELECT DISTINCT - + col0 / + col2 col0 FROM tab0 AS cor0
----
-8
0

query I rowsort
SELECT DISTINCT 1 * - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ALL - SUM( ALL - 39 ) AS col2 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - SUM ( ALL - 39 ) AS col2 FROM tab2 AS cor0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT DISTINCT + col1 DIV + 51 col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1753
SELECT DISTINCT + col1 / + 51 col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - SUM( col1 ) * + + ( 48 ) + + - 95 FROM tab2 AS cor0
----
-9455

skipif mysql # not compatible
query I rowsort label-1754
SELECT - SUM ( col1 ) * + + ( 48 ) + + - 95 FROM tab2 AS cor0
----
-9455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT - + 52 * - - AVG ( col2 ) * 2 + 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-1755
SELECT - + 52 * - - AVG ( col2 ) * 2 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 > col2 / - col2
----

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

query II rowsort
SELECT col0, - ( 19 ) FROM tab1
----
51
-19
85
-19
91
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1760
SELECT ALL + col0 + - 22 * - + ( - ( + 59 ) ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + col0 + - 22 * - + ( - ( + 59 ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + + ( + col1 ) AS col1, 66 FROM tab0 AS cor0
----
108
66
96
66
98
66

query II rowsort
SELECT - 63 * - + 51 AS col1, - col0 + 83 FROM tab0
----
3213
-14
3213
-4
3213
68

query I rowsort
SELECT + col0 * + 98 AS col2 FROM tab1
----
4998
8330
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT ( col2 + + col1 ) BETWEEN - 50 AND NULL AND NOT ( NOT NULL IN ( + col0, - col0 / + col2 + 55 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT ( col2 + + col1 ) BETWEEN - 50 AND NULL AND NOT ( NOT NULL IN ( + col0, - col0 / + col2 + 55 ) )
----
NULL

query I rowsort
SELECT ALL + - 81 + - col2 FROM tab0 cor0
----
-128
-180
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col1 + col1 col2 FROM tab0 cor0
----
-420
-6480
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT COUNT( ALL + - 39 ) FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1767
SELECT COUNT ( ALL + - 39 ) FROM tab2 WHERE ( NOT NULL IS NULL )
----
0

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

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

query I rowsort
SELECT DISTINCT 68 * ( - col0 ) FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab2, tab2 AS cor0
----
20

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + + col0 AS col2, - 64 col2 FROM tab0
----
1215
-64
1827
-64
97
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT DISTINCT ( - - SUM( 21 ) ) * COUNT( + col1 ) AS col2 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT ( - - SUM ( 21 ) ) * COUNT ( + col1 ) AS col2 FROM tab2
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT 42 * + COUNT( * ), + 10 AS col2 FROM tab1
----
126
10

skipif mysql # not compatible
query II rowsort label-1776
SELECT 42 * + COUNT ( * ), + 10 AS col2 FROM tab1
----
126
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT - 56 * - MAX( - + 79 ) FROM tab2
----
-4424

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - 56 * - MAX ( - + 79 ) FROM tab2
----
-4424

query II rowsort
SELECT ALL col0 + + col2, col2 AS col0 FROM tab1
----
144
59
147
96
159
68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 >= + col0 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT - CAST ( + - col0 AS INTEGER ) col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL - COUNT( * ) FROM tab1 WHERE + col0 < col0
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL - COUNT ( * ) FROM tab1 WHERE + col0 < col0
----
0

query I rowsort
SELECT DISTINCT + 25 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT - ( - col1 ) * + ( 91 ) * + col1 + col0 AS col1 FROM tab1 cor0
----
17887
201110
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT + 59 + col2 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-1787
SELECT + + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT + 59 + col2 IS NULL
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 39 col2 FROM tab1 AS cor0
----
1833
195
546

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1790
SELECT DISTINCT 73 * - COUNT( * ) AS col0, + CAST( + + MIN( + - 1 ) AS SIGNED ) AS col0 FROM tab0
----
-219
-1

skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT 73 * - COUNT ( * ) AS col0, + CAST ( + + MIN ( + - 1 ) AS INTEGER ) AS col0 FROM tab0
----
-219
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 * - col0 col1 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1792
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 WHERE ( - 66 ) + - ( - CAST( + col2 AS SIGNED ) ) * + + 69 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 WHERE ( - 66 ) + - ( - CAST ( + col2 AS INTEGER ) ) * + + 69 = NULL
----
0

query I rowsort
SELECT ALL col2 * 21 * col0 FROM tab0
----
14805
18270
201663

query I rowsort
SELECT DISTINCT + ( + 65 ) FROM tab0
----
65

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - - ( col0 ) IN ( + col1 )
----
15
87
97

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

query I rowsort
SELECT DISTINCT col1 + + 55 * + 63 AS col0 FROM tab2 AS cor0
----
3516
3532
3542

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

query III rowsort
SELECT * FROM tab2 WHERE - 19 - - col2 <= 96 + + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE 91 BETWEEN NULL AND - + 18 + + 18
----

query I rowsort
SELECT ALL 94 + - - col2 + + - col1 * col1 FROM tab1 AS cor0
----
-2047
-6
128

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

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

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

query I rowsort
SELECT DISTINCT + col0 + ( + 70 ) FROM tab1 AS cor0
----
121
155
161

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

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

query I rowsort
SELECT ALL col1 - - - col0 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1808
SELECT ALL + col0 * + CAST( NULL AS SIGNED ), + 21 AS col2 FROM tab2
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
query II rowsort label-1808
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ), + 21 AS col2 FROM tab2
----
NULL
21
NULL
21
NULL
21

query I rowsort
SELECT + ( - ( ( + - col2 ) ) ) / + col0 + + + 92 * col0 FROM tab2 WHERE ( NULL ) NOT IN ( col1 * - 11, 18, - 47 / - ( - + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT 90 * + COUNT( * ) FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT 90 * + COUNT ( * ) FROM tab1
----
270

onlyif mysql # DIV for integer division: 
query II rowsort label-1811
SELECT ALL + + 21, - col2 DIV 93 + - - col0 AS col1 FROM tab1 AS cor0
----
21
50
21
85
21
91

skipif mysql # not compatible
query II rowsort label-1811
SELECT ALL + + 21, - col2 / 93 + - - col0 AS col1 FROM tab1 AS cor0
----
21
50
21
85
21
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col0 * + + col0 * + 91 * + - col2 < 60 + + 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT + col0 DIV 13 AS col2 FROM tab1 AS cor0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-1813
SELECT + col0 / 13 AS col2 FROM tab1 AS cor0
----
3
6
7

query II rowsort
SELECT - col0 AS col1, 45 * - col1 AS col0 FROM tab2 AS cor0
----
-46
-2295
-64
-3465
-75
-3015

query I rowsort
SELECT DISTINCT 96 * + 23 * + col0 AS col2 FROM tab1
----
112608
187680
200928

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + MIN( - ( + 77 ) ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-1816
SELECT + MIN ( - ( + 77 ) ) FROM tab1
----
-77

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

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

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 IS NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 12 * - col2 - - col1 col2 FROM tab2 AS cor0
----
-225
-403
-629

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

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

query I rowsort
SELECT DISTINCT 61 * - - ( - - col0 ) FROM tab0 AS cor0
----
5307
5917
915

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + + col2 col0 FROM tab1
----
118
136
192

query I rowsort
SELECT + 3 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT col1 * col0 + + 33 + 50 FROM tab1
----
4360
508
797

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col1 FROM tab1
----
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IN ( + 61 )
----

query I rowsort
SELECT - - 8 + col2 FROM tab2 AS cor0
----
31
48
66

query I rowsort
SELECT DISTINCT 65 + + 7 AS col0 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - 66 * - 52 * + + SUM( ALL + - col2 ) + + 29 FROM tab0 AS cor0
----
-535363

skipif mysql # not compatible
query I rowsort label-1834
SELECT - 66 * - 52 * + + SUM ( ALL + - col2 ) + + 29 FROM tab0 AS cor0
----
-535363

query II rowsort
SELECT DISTINCT - col2 + + + col2 AS col0, + col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + + SUM( DISTINCT - col2 ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + + SUM ( DISTINCT - col2 ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT + MAX( ALL - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1837
SELECT + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + 56 - + col1 FROM tab2 AS cor0
----
-11
-21
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col1 AND + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT 1 * + COUNT( * ) * - + COUNT( ALL - - col0 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1840
SELECT 1 * + COUNT ( * ) * - + COUNT ( ALL - - col0 ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) * + col0 * + 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 12 * - col1 IN ( ( 70 ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - 28 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 4 ) FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT ALL - 33, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-33
-3

skipif mysql # not compatible
query II rowsort label-1845
SELECT ALL - 33, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-33
-3

query I rowsort
SELECT + - 99 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 col0, - col2 * + - col1 * + col1 FROM tab1
----
-43
1475
-43
150212
-43
18816

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT ( col0 ) < - ( - col0 )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 49 * - + col1 ) BETWEEN NULL AND 20 * 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 18 + - col1 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 + 71 + col1 AS col2 FROM tab0 AS cor0
----
102
171
199

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT + - ( + SUM( - - 86 ) ) * ( + 41 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT + - ( + SUM ( - - 86 ) ) * ( + 41 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1854
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT DISTINCT + - col1 * - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT + - col1 * - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1856
SELECT + MIN( + col1 ) * + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1856
SELECT + MIN ( + col1 ) * + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * col0 col2 FROM tab0 AS cor0
----
18270
57105
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 + col0 / col2 ) AND + col2
----

query I rowsort
SELECT DISTINCT col0 * - col0 * 77 FROM tab1 AS cor0
----
-200277
-556325
-637637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 79 + - + col0 AS col1 FROM tab2
----
15
33
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1862
SELECT ALL - ( + CAST( 19 AS DECIMAL ) ) FROM tab2 WHERE col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - ( + CAST ( 19 AS REAL ) ) FROM tab2 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT + COUNT( * ) + ( + 80 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + COUNT ( * ) + ( + 80 ) FROM tab0
----
83

query II rowsort
SELECT DISTINCT + col0 + - col2, 98 AS col1 FROM tab2
----
17
98
23
98
24
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT MAX( - + col1 ) + - + COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1865
SELECT MAX ( - + col1 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-4

query I rowsort
SELECT + - 96 * - + 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c6cf989a44a04c131797da46c7cee63b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1867
SELECT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1867
SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab2 cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1869
SELECT - col1 col1 FROM tab1 cor0 WHERE col2 * - CAST( + col0 AS DECIMAL ) * col1 + - col1 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1869
SELECT - col1 col1 FROM tab1 cor0 WHERE col2 * - CAST ( + col0 AS REAL ) * col1 + - col1 <> NULL
----

query I rowsort
SELECT ALL 34 + + 42 AS col2 FROM tab0 AS cor0
----
76
76
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> col0 * + 76
----

query I rowsort
SELECT - + col0 - 94 - - - col0 FROM tab2 AS cor0
----
-186
-222
-244

query I rowsort
SELECT col1 - - + col1 + col1 + 41 FROM tab0 AS cor0
----
104
284
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / ( col1 ) + + - col1 - + - col0 + + 11 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / ( col1 ) + + - col1 - + - col0 + + 11 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 42 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT ALL - AVG ( DISTINCT - 87 ) * + COUNT( * ) FROM tab2 WHERE - col1 * 76 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - AVG ( DISTINCT - 87 ) * + COUNT ( * ) FROM tab2 WHERE - col1 * 76 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT - MAX( DISTINCT col2 ) * COUNT( * ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1877
SELECT - MAX ( DISTINCT col2 ) * COUNT ( * ) AS col2 FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL - MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 18 - + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT DISTINCT - col0 + - col1 FROM tab1 WHERE NOT - col0 >= - CAST( - col1 AS SIGNED )
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - col0 + - col1 FROM tab1 WHERE NOT - col0 >= - CAST ( - col1 AS INTEGER )
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-1881
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT - MIN( - 29 ) AS col0 FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT - MIN ( - 29 ) AS col0 FROM tab0 cor0
----
29

query I rowsort
SELECT - 40 + col1 FROM tab2 AS cor0 WHERE + 67 * - col0 IN ( + col1, - col2, ( 89 ) - + 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1296
1848
98

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT COUNT( ALL + + ( - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT COUNT ( ALL + + ( - col0 ) ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col0 + + - col2 * - col1 + + col0, col0 AS col0 FROM tab0
----
210
87
3807
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT + 56 + - COUNT( * ) AS col1, 36 AS col0 FROM tab2
----
53
36

skipif mysql # not compatible
query II rowsort label-1888
SELECT + 56 + - COUNT ( * ) AS col1, 36 AS col0 FROM tab2
----
53
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1889
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT - + col0 DIV - col2 + + col0 FROM tab0 AS cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-1890
SELECT - + col0 / - col2 + + col0 FROM tab0 AS cor0
----
15
95
97

query I rowsort
SELECT ALL + + 59 + + col1 * + + col2 AS col2 FROM tab0 cor0
----
158
269
3866

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1892
SELECT 51 - - col0, CAST( - ( + ( - col0 ) ) AS SIGNED ) AS col2 FROM tab2
----
115
64
126
75
97
46

skipif mysql # not compatible
query II rowsort label-1892
SELECT 51 - - col0, CAST ( - ( + ( - col0 ) ) AS INTEGER ) AS col2 FROM tab2
----
115
64
126
75
97
46

query I rowsort
SELECT - + 3 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - 5 * col1 - - col2 AS col1 FROM tab0
----
-358
-95
94

query I rowsort
SELECT DISTINCT + 41 + + col2 * - 71 FROM tab2
----
-1592
-2799
-4077

query I rowsort
SELECT 70 - - 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a8f8daa1a1bfedb1421594e2314a6b6d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + + 7, 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT DISTINCT - ( 54 ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - ( 54 ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 + + col0 + + + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL + MIN( + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL + MIN ( + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT + COUNT( + CAST( + col1 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1901
SELECT + COUNT ( + CAST ( + col1 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1902
SELECT - col0, - col2 DIV + col1 AS col0 FROM tab2
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
query II rowsort label-1902
SELECT - col0, - col2 / + col1 AS col0 FROM tab2
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1903
SELECT - 75 col0, - MAX( + col1 ) FROM tab1
----
-75
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1903
SELECT - 75 col0, - MAX ( + col1 ) FROM tab1
----
-75
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT - COUNT( * ) * - 4 AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT - COUNT ( * ) * - 4 AS col1 FROM tab0
----
12

query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab1 WHERE + + col2 > - col1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 93 col0, - 56 AS col1 FROM tab1
----
93
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT + col2 DIV + 96 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT + col2 / + 96 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 36 col2 FROM tab0 cor0
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT MAX( 2 ) AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT MAX ( 2 ) AS col2 FROM tab2
----
2

query I rowsort
SELECT + 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL col2 DIV 2 + - 40 AS col0 FROM tab0 AS cor0
----
-17
-35
9

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL col2 / 2 + - 40 AS col0 FROM tab0 AS cor0
----
-17
-35
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1912
SELECT DISTINCT - col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 col0 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT + CAST( + col1 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1914
SELECT + CAST ( + col1 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) <= + col2 * - col2
----

query I rowsort
SELECT + col1 * + - 70 FROM tab0
----
-1470
-5670
-70

query I rowsort
SELECT - 1 * - 33 FROM tab1
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 89 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 25 ) AS col1 FROM tab2
----
25
25
25

query II rowsort
SELECT 2 AS col1, col0 + col2 AS col2 FROM tab0
----
2
196
2
62
2
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT - COUNT( * ) + - + SUM( col2 ) AS col2 FROM tab0 WHERE ( NULL IS NULL )
----
-159

skipif mysql # not compatible
query I rowsort label-1921
SELECT - COUNT ( * ) + - + SUM ( col2 ) AS col2 FROM tab0 WHERE ( NULL IS NULL )
----
-159

query II rowsort
SELECT DISTINCT - 5, col1 * col1 * + 94 AS col0 FROM tab1
----
-5
18424
-5
207646
-5
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT 66 + + - 4 - - + MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1923
SELECT 66 + + - 4 - - + MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT - + ( - + COUNT( ALL - col2 ) ) + - AVG ( col1 ) * - 59 / + + 59 * 97 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0, + col1, 14 + - + 47 + - ( - - col0 ), - col2 / col1 * - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT - + ( - + COUNT ( ALL - col2 ) ) + - AVG ( col1 ) * - 59 / + + 59 * 97 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0, + col1, 14 + - + 47 + - ( - - col0 ), - col2 / col1 * - + col0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 + col2 - + col2 + + - col0 + 22 AS col0 FROM tab0 AS cor0
----
-44
-74
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 70 + + 58
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT COUNT( * ), AVG ( ALL col1 ) AS col2 FROM tab0 WHERE NULL <> col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1927
SELECT COUNT ( * ), AVG ( ALL col1 ) AS col2 FROM tab0 WHERE NULL <> col0
----
0
NULL

query I rowsort
SELECT 68 * + - 23 AS col1 FROM tab0
----
-1564
-1564
-1564

query I rowsort
SELECT DISTINCT 72 * + col2 AS col1 FROM tab0
----
3384
7128
720

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT - - col1 DIV 4 + - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
0
10
2

skipif mysql # not compatible
query I rowsort label-1930
SELECT - - col1 / 4 + - col1 / col1 AS col2 FROM tab1 AS cor0
----
0
10
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1931
SELECT col2 DIV - + 89, + col0 FROM tab1 AS cor0 WHERE NOT CAST( + 65 AS SIGNED ) + col2 IS NULL
----
-1
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-1931
SELECT col2 / - + 89, + col0 FROM tab1 AS cor0 WHERE NOT CAST ( + 65 AS INTEGER ) + col2 IS NULL
----
-1
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1933
SELECT ALL - - col0, CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL - - col0, CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT + + 52 * - 41 FROM tab2 AS cor0
----
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT - MAX( DISTINCT - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - MAX ( DISTINCT - col0 ) FROM tab0 cor0
----
15

query II rowsort
SELECT ALL col0 AS col0, 92 * + 65 FROM tab2 AS cor0
----
46
5980
64
5980
75
5980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT DISTINCT CAST( - col0 AS SIGNED ) * 15 FROM tab1
----
-1275
-1365
-765

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * 15 FROM tab1
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT 37 * - - MIN( DISTINCT - - col1 ) FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-1938
SELECT 37 * - - MIN ( DISTINCT - - col1 ) FROM tab0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1939
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / col0 * 74 - + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1939
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 / col0 * 74 - + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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 # CAST syntax: DECIMAL type: 
query I rowsort label-1941
SELECT + 26 * - CAST( NULL AS DECIMAL ) - - + 74 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT + 26 * - CAST ( NULL AS REAL ) - - + 74 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT - - 59 + MIN( + 51 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1942
SELECT - - 59 + MIN ( + 51 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
110

query III rowsort
SELECT * FROM tab0 WHERE + + 87 BETWEEN + col0 AND + col1
----

query I rowsort
SELECT - col2 * ( + - 78 ) FROM tab2
----
1794
3120
4524

query II rowsort
SELECT - + col0 AS col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT ALL - 68 + + 24 * - CAST( + col2 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-1402
-597
-988

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - 68 + + 24 * - CAST ( + col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-1402
-597
-988

query I rowsort
SELECT ALL - + col1 * col1 + + ( 87 ) + col1 FROM tab1 AS cor0
----
-2075
-95
67

query I rowsort
SELECT ALL col2 + - - col2 FROM tab0 cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1949
SELECT ALL + - 68 + - 97 DIV - col1 AS col2, col2 - + col0 AS col1 FROM tab2 AS cor0
----
-67
-17
-67
-23
-67
-24

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL + - 68 + - 97 / - col1 AS col2, col2 - + col0 AS col1 FROM tab2 AS cor0
----
-67
-17
-67
-23
-67
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT + 48 + + MIN( - + col2 ) FROM tab0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT + 48 + + MIN ( - + col2 ) FROM tab0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT 28 + + 42 + - 39 FROM tab0
----
31
31
31

query I rowsort
SELECT + 17 * - - 38 AS col1 FROM tab0
----
646
646
646

query I rowsort
SELECT ALL ( - - col0 ) + - - col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - MAX( DISTINCT + + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1954
SELECT - MAX ( DISTINCT + + col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT col2 * - - 65 AS col0 FROM tab1
----
3835
4420
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL - COUNT( * ) * COUNT( * ) col1 FROM tab0 cor0 WHERE NOT - col1 + + - col2 IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1956
SELECT ALL - COUNT ( * ) * COUNT ( * ) col1 FROM tab0 cor0 WHERE NOT - col1 + + - col2 IS NULL
----
-9

query I rowsort
SELECT ALL - col2 * + 80 + - - 8 + col1 * + - col1 FROM tab0 AS cor0
----
-10313
-1233
-7913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT - CAST( - AVG ( ALL col0 ) AS SIGNED ) FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1958
SELECT - CAST ( - AVG ( ALL col0 ) AS INTEGER ) FROM tab0 cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 * + ( col1 ) * + 68 BETWEEN - 65 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT CAST( + col0 AS SIGNED ) * col1 - - 95 * + + col0 FROM tab0 AS cor0
----
10092
2640
9312

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col1 - - 95 * + + col0 FROM tab0 AS cor0
----
10092
2640
9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT ALL - CAST( NULL AS SIGNED ) + - 47 * col1 AS col1 FROM tab2 WHERE NOT ( NOT - 70 < 40 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL - CAST ( NULL AS INTEGER ) + - 47 * col1 AS col1 FROM tab2 WHERE NOT ( NOT - 70 < 40 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT - MAX( DISTINCT - - 27 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - MAX ( DISTINCT - - 27 ) FROM tab1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL - col1 + - - col2 + - - col0 - + CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - col1 + - - col2 + - - col0 - + CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + 6 * 7 FROM tab2 AS cor0
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT COUNT( * ) * - + 76 * - MIN( + col1 ) FROM tab2 AS cor0
----
11628

skipif mysql # not compatible
query I rowsort label-1966
SELECT COUNT ( * ) * - + 76 * - MIN ( + col1 ) FROM tab2 AS cor0
----
11628

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT + + col2 DIV + ( - + ( + col1 ) ) FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-1967
SELECT + + col2 / + ( - + ( + col1 ) ) FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL + CAST( NULL AS SIGNED ) * col2 * col2 + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 * col2 + - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 85 * col2 * + 17 FROM tab2 AS cor0
----
33235
57800
83810

query I rowsort
SELECT DISTINCT 21 * - - col2 AS col0 FROM tab1
----
1239
1428
2016

query I rowsort
SELECT DISTINCT - col2 + + - ( + - col1 ) FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL col0 * col0 + + 7 + - - CAST( col0 AS SIGNED ) * - col1 * + col2 FROM tab2 AS cor0
----
-193017
-285818
-51835

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL col0 * col0 + + 7 + - - CAST ( col0 AS INTEGER ) * - col1 * + col2 FROM tab2 AS cor0
----
-193017
-285818
-51835

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - MAX( DISTINCT - col0 ) * - ( + MAX( + col2 ) ) FROM tab2 AS cor0
----
-2668

skipif mysql # not compatible
query I rowsort label-1973
SELECT - MAX ( DISTINCT - col0 ) * - ( + MAX ( + col2 ) ) FROM tab2 AS cor0
----
-2668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NULL > - col1 / - + col1
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
23
40
58

query I rowsort
SELECT + + 43 FROM tab1 WHERE + 78 + + 26 IS NOT NULL
----
43
43
43

query I rowsort
SELECT ALL + + col2 * - - col0 FROM tab1 WHERE NOT col2 IS NULL
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT CAST( 63 AS SIGNED ) FROM tab0 WHERE + 42 - 15 IS NOT NULL
----
63
63
63

skipif mysql # not compatible
query I rowsort label-1978
SELECT CAST ( 63 AS INTEGER ) FROM tab0 WHERE + 42 - 15 IS NOT NULL
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 >= 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + 17 AS col0 FROM tab1
----
-34
-68
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL - + CAST( NULL AS SIGNED ) * + col1 * CAST( NULL AS SIGNED ) + + - 89 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - + CAST ( NULL AS INTEGER ) * + col1 * CAST ( NULL AS INTEGER ) + + - 89 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1982
SELECT COUNT( * ) + + MAX( col2 ) * - + 11 * + - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
1917

skipif mysql # not compatible
query I rowsort label-1982
SELECT COUNT ( * ) + + MAX ( col2 ) * - + 11 * + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
1917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1983
SELECT + - COUNT( * ) DIV + 51 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT + - COUNT ( * ) / + 51 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col2 AS col0, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - SUM( DISTINCT - 97 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - SUM ( DISTINCT - 97 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT + - 7 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT + - 37 * - + ( col0 ) * ( - CAST( NULL AS SIGNED ) ) + + + 45 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT + - 37 * - + ( col0 ) * ( - CAST ( NULL AS INTEGER ) ) + + + 45 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) * + 39 AS col2 FROM tab1 AS cor0
----
2301
2652
3744

query I rowsort
SELECT DISTINCT - col1 * - - col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT + col1 / col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT + col1 / col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL 20 * COUNT( ALL col0 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL 20 * COUNT ( ALL col0 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT - 91 DIV 44 * col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 91 / 44 * col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT ALL 27 + + col0 * - - col1 + + 38 * 0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2373
4955
5052

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT COUNT( * ) * 67 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-1994
SELECT COUNT ( * ) * 67 FROM tab1
----
201

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1996
SELECT ALL ( - COUNT( * ) ) DIV - COUNT( + 45 ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1996
SELECT ALL ( - COUNT ( * ) ) / - COUNT ( + 45 ) col0 FROM tab1
----
1

query I rowsort
SELECT + 66 + + col2 + + col0 FROM tab1
----
210
213
225

query I rowsort
SELECT - 54 * col2 + + col2 FROM tab1
----
-3127
-3604
-5088

query I rowsort
SELECT - col0 + - col0 * - col0 + + col2 AS col1 FROM tab2
----
2093
4072
5608

query I rowsort
SELECT DISTINCT ( ( 19 ) ) + col0 AS col0 FROM tab0
----
106
116
34

query I rowsort
SELECT col0 + + 7 AS col2 FROM tab2
----
53
71
82

query I rowsort
SELECT + + col1 + - col1 + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - + col0 + - col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT DISTINCT + col0 DIV + 36 AS col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT + col0 / + 36 AS col0 FROM tab0 AS cor0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT COUNT( * ) DIV 37 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT COUNT ( * ) / 37 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 + + 45 FROM tab0 cor0
----
-36
24
44

query I rowsort
SELECT ALL - col2 + + col1 + - 19 FROM tab0 AS cor0
----
-117
-8
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE + ( + + 95 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col0 - + 32 AS col0 FROM tab0
----
-17
55
65

query II rowsort
SELECT col1 + - - col0 AS col1, - col0 FROM tab1
----
138
-91
65
-51
90
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT ALL COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * CAST( 85 AS SIGNED ) + ( + + 59 ) / + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2012
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * CAST ( 85 AS INTEGER ) + ( + + 59 ) / + + col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL - + ( + + col2 ) FROM tab1 AS cor0 WHERE 72 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT col2 * col0 DIV + - 13 AS col0 FROM tab2
----
-196
-334
-81

skipif mysql # not compatible
query I rowsort label-2014
SELECT col2 * col0 / + - 13 AS col0 FROM tab2
----
-196
-334
-81

query I rowsort
SELECT - 10 + 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col0 AND + col0 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2018
SELECT - + 50, CAST( NULL AS SIGNED ) + - + col0 col1 FROM tab0 cor0
----
-50
NULL
-50
NULL
-50
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2018
SELECT - + 50, CAST ( NULL AS INTEGER ) + - + col0 col1 FROM tab0 cor0
----
-50
NULL
-50
NULL
-50
NULL

query II rowsort
SELECT ALL col0, 69 FROM tab1 cor0
----
51
69
85
69
91
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT DISTINCT + COUNT( * ) AS col0, 24 FROM tab2 AS cor0
----
3
24

skipif mysql # not compatible
query II rowsort label-2020
SELECT DISTINCT + COUNT ( * ) AS col0, 24 FROM tab2 AS cor0
----
3
24

query III rowsort
SELECT * FROM tab1 WHERE - + 79 NOT BETWEEN - - col1 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2022
SELECT ALL - COUNT( * ) * - 21 * 19 + + 5 + + SUM( col0 ) * 77, - 7 AS col0 FROM tab1
----
18681
-7

skipif mysql # not compatible
query II rowsort label-2022
SELECT ALL - COUNT ( * ) * - 21 * 19 + + 5 + + SUM ( col0 ) * 77, - 7 AS col0 FROM tab1
----
18681
-7

query I rowsort
SELECT ALL - col2 * 26 + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT + - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2024
SELECT + - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT NULL > NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL - 36 + - ( - col2 ) + - + 99 * + + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - 36 + - ( - col2 ) + - + 99 * + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2027
SELECT 93 DIV + col0 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2027
SELECT 93 / + col0 AS col1 FROM tab2
----
1
1
2

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 4 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT 78 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL - 31 * 28 + + SUM( DISTINCT - + col1 ) col2 FROM tab1 AS cor0
----
-934

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2030
SELECT ALL - 31 * 28 + + SUM ( DISTINCT - + col1 ) col2 FROM tab1 AS cor0
----
-934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT + col1 * col1 - CAST( NULL AS SIGNED ) * - 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-2031
SELECT + col1 * col1 - CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 - + col0 + 61 AS col2 FROM tab0
----
2255
74
9765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col1, - ( + ( + - col0 ) ) * + - col2 col1 FROM tab1
----
1344
-4896
295
-5015
3196
-6188

query II rowsort
SELECT DISTINCT - col2, + ( + + col2 ) FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT DISTINCT 86 * - col2 FROM tab0
----
-4042
-8514
-860

query I rowsort
SELECT DISTINCT - col0 * + - 11 AS col2 FROM tab0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL SUM( col1 ) * 54 + - 63 FROM tab2
----
10467

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL SUM ( col1 ) * 54 + - 63 FROM tab2
----
10467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col1 FROM tab1
----
12

query I rowsort
SELECT DISTINCT - col2 * + - col0 - + - col1 * + col2 + + col0 + + col1 * col2 * - - col1 - + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 68 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 68 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 * + 14 * - col2 * + col1, + col1 col1 FROM tab2 AS cor0
----
-1625778
51
-4268880
77
-5385996
67

query II rowsort
SELECT + - 88 AS col2, - ( 65 ) + 45 AS col2 FROM tab0 AS cor0
----
-88
-20
-88
-20
-88
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - SUM( + 60 ) col1 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2043
SELECT ALL - SUM ( + 60 ) col1 FROM tab0 AS cor0
----
-180

query I rowsort
SELECT col2 * - 29 * + col1 FROM tab2
----
-112694
-34017
-89320

query I rowsort
SELECT ALL - 73 * - + col2 FROM tab0
----
3431
7227
730

query I rowsort
SELECT col1 * + + 40 FROM tab0
----
3240
40
840

query I rowsort
SELECT + ( + 94 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 - + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT - SUM( - - ( 12 ) ) AS col0 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2048
SELECT - SUM ( - - ( 12 ) ) AS col0 FROM tab0 cor0
----
-36

query I rowsort
SELECT ( + 18 ) AS col1 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT - CAST( + AVG ( + 22 ) AS SIGNED ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2050
SELECT - CAST ( + AVG ( + 22 ) AS INTEGER ) FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL - COUNT( ALL + + col1 ) + 81 + 88 col0 FROM tab0 AS cor0
----
166

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2051
SELECT ALL - COUNT ( ALL + + col1 ) + 81 + 88 col0 FROM tab0 AS cor0
----
166

query II rowsort
SELECT ALL + col1 * - - 67 + + - 90, - ( - 16 ) AS col1 FROM tab1
----
245
16
3059
16
848
16

query I rowsort
SELECT DISTINCT 7 + + col2 * + col1 AS col1 FROM tab2
----
1180
3087
3893

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + MIN( DISTINCT col2 ) - - COUNT( * ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2054
SELECT + MIN ( DISTINCT col2 ) - - COUNT ( * ) AS col2 FROM tab1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2055
SELECT - col0 DIV + 20 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-2055
SELECT - col0 / + 20 FROM tab2
----
-2
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT COUNT( - col0 ) FROM tab2 WHERE NOT + 78 + - col1 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT COUNT ( - col0 ) FROM tab2 WHERE NOT + 78 + - col1 * col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 34 col0 FROM tab0
----
2958
3298
510

query I rowsort
SELECT - 20 * + 40 AS col1 FROM tab2
----
-800
-800
-800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 37 ) IN ( 16 )
----

query I rowsort
SELECT DISTINCT + 7 * col1 + col0 AS col0 FROM tab1
----
120
149
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT COUNT( * ) * + 4 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT COUNT ( * ) * + 4 FROM tab1
----
12

query I rowsort
SELECT - col1 * col1 FROM tab1 WHERE NOT NULL < + col2 / 35
----

query I rowsort
SELECT - 44 * ( + col0 * col0 ) AS col2 FROM tab0
----
-333036
-413996
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT + CAST( + col1 AS SIGNED ) * - col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2064
SELECT + CAST ( + col1 AS INTEGER ) * - col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + COUNT( * ) * - 24 AS col1 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-2065
SELECT + COUNT ( * ) * - 24 AS col1 FROM tab0
----
-72

query I rowsort
SELECT + 51 * col2 AS col1 FROM tab2 WHERE ( NULL ) = + col2 / - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 35 ) <> - col1
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col1 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 37 ) FROM tab0
----
37
37
37

query III rowsort
SELECT * FROM tab1 WHERE 86 + - col0 * - 86 IN ( + ( - col1 ) * col1 )
----

query I rowsort
SELECT DISTINCT + col0 + - ( - col1 ) * col2 FROM tab1
----
1395
3287
380

query I rowsort
SELECT col2 - col1 AS col2 FROM tab2 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT ALL 10 * + col0 - 32 FROM tab0
----
118
838
938

query I rowsort
SELECT 62 AS col1 FROM tab0 WHERE - 79 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT - 92 + COUNT( * ) AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-2075
SELECT - 92 + COUNT ( * ) AS col0 FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 11 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT - MAX( ALL + ( + 23 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2077
SELECT - MAX ( ALL + ( + 23 ) ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT ALL - ( + col0 ) * col2 - 16 * - ( + col1 ) FROM tab2
----
-1328
-242
-3278

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL - COUNT( * ) + - 0 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - COUNT ( * ) + - 0 AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
3

query I rowsort
SELECT ALL + col0 * 8 FROM tab1 AS cor0
----
408
680
728

query I rowsort
SELECT + ( 39 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT DISTINCT 98 DIV + 2 + 66 * COUNT( * ) FROM tab0
----
247

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT 98 / + 2 + 66 * COUNT ( * ) FROM tab0
----
247

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE - 32 * col1 IS NULL
----

query I rowsort
SELECT ALL - + col2 * 44 + 85 FROM tab2 AS cor0
----
-1675
-2467
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE + 80 * col2 - col0 * + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 80 * col2 - col0 * + col1 IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < 5 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 6 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN col2 - col0 AND + col0
----

query I rowsort
SELECT ALL + 72 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
72
72
72

query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
2652
7310
8372

query I rowsort
SELECT DISTINCT - 9 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT 63 * + 83 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + col0 / col0 >= 70
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - ( col2 ) * - 15 + 2 AS col1 FROM tab0 AS cor0
----
1487
152
707

query I rowsort
SELECT DISTINCT + + 75 * + 69 AS col0 FROM tab2 AS cor0
----
5175

query I rowsort
SELECT - - 38 * - 51 FROM tab2 AS cor0
----
-1938
-1938
-1938

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * col0 + - col2 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT - col1 DIV ( + 43 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2098
SELECT - col1 / ( + 43 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 31 * 50 FROM tab2 AS cor0
----
1550

query I rowsort
SELECT col1 FROM tab0 WHERE - 70 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT - COUNT( DISTINCT + + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT - COUNT ( DISTINCT + + col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT COUNT( DISTINCT + col2 ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2102
SELECT COUNT ( DISTINCT + col2 ) * - COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE - 10 BETWEEN col1 AND col0 * 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT - COUNT( * ) * - ( + 32 ) + - COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT - COUNT ( * ) * - ( + 32 ) + - COUNT ( * ) FROM tab0
----
93

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN ( col0 / 26 ) AND - 50 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2106
SELECT - COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + COUNT( * ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2107
SELECT + COUNT ( * ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - 17 FROM tab2 WHERE NOT ( 65 ) BETWEEN 20 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 >= 88 / ( - 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( - ( 3 ) ) IS NULL
----

query I rowsort
SELECT - col2 + - col2 * + 65 FROM tab2 AS cor0
----
-1518
-2640
-3828

query I rowsort
SELECT 18 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT ALL - + 0 * col1 DIV ( col1 ) + 26 col2 FROM tab0 cor0
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2113
SELECT ALL - + 0 * col1 / ( col1 ) + 26 col2 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT + 68 * - - 30 + - 90 * + col2 AS col0 FROM tab2 cor0
----
-1560
-30
-3180

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - 87 + - - COUNT( * ) + 60 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 87 + - - COUNT ( * ) + 60 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2116
SELECT DISTINCT + 48 + + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT + 48 + + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT + COUNT( * ) + - + 16 AS col2 FROM tab2 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2117
SELECT + COUNT ( * ) + - + 16 AS col2 FROM tab2 cor0
----
-13

query I rowsort
SELECT DISTINCT + col2 + + col2 + col0 * col1 AS col1 FROM tab0
----
1309
1847
295

query I rowsort
SELECT col1 + + col1 * + 5 AS col0 FROM tab1
----
282
30
84

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NOT ( - col2 * - 58 ) < ( + col0 + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col1 col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - CAST( col1 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - CAST ( col1 AS INTEGER ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT MIN( - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT MIN ( - col0 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT + + col1 * + - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * col2 * + 78 + col2 * 33 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( + 78 + - 75 ) AND - col1 * + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 * - - 11 - - 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL - 19 * ( - COUNT( * ) ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - 19 * ( - COUNT ( * ) ) FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT ALL col2 * col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL col2 * col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT DISTINCT - MAX( - - col1 ) AS col0, 18 AS col1 FROM tab0
----
-81
18

skipif mysql # not compatible
query II rowsort label-2132
SELECT DISTINCT - MAX ( - - col1 ) AS col0, 18 AS col1 FROM tab0
----
-81
18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2133
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( NULL AS DECIMAL ) IN ( + 41 )
----

skipif mysql # not compatible
query III rowsort label-2133
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( NULL AS REAL ) IN ( + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL + COUNT( - 76 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + COUNT ( - 76 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * col1 col0, - col1 + - + col0 * 61 AS col2 FROM tab2 AS cor0
----
-2346
-2857
-4928
-3981
-5025
-4642

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - - MAX( DISTINCT + 4 ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2136
SELECT - - MAX ( DISTINCT + 4 ) AS col0 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT col0 * - - ( + col2 ) * + col2 + + col1 * - ( - col1 ) FROM tab1 AS cor0
----
295910
422993
470212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= ( - 25 )
----

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= ( - 25 )
----

query I rowsort
SELECT ALL + 46 * 82 AS col1 FROM tab0
----
3772
3772
3772

query I rowsort
SELECT DISTINCT + col2 + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT ALL - col2 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + col1 AS SIGNED ) * + - col0
----

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - col2 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + col1 AS INTEGER ) * + - col0
----

query II rowsort
SELECT - + col0, 82 + - col2 + - 1 + - col2 + + col2 * + col0 * - 47 AS col2 FROM tab0 AS cor0
----
-15
-33148
-87
-40829
-97
-451458

query I rowsort
SELECT ALL - - col2 * + 83 FROM tab1 AS cor0
----
4897
5644
7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT ALL CAST( + col0 AS SIGNED ) * - col2 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2144
SELECT ALL CAST ( + col0 AS INTEGER ) * - col2 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND - 73 * + 71
----

query I rowsort
SELECT - - col0 * - 34 + - col0 FROM tab0 AS cor0
----
-3045
-3395
-525

query I rowsort
SELECT - ( 6 ) + - + col1 AS col2 FROM tab2
----
-57
-73
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + COUNT( * ) * - 17 + - + 84 AS col1 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-2148
SELECT + COUNT ( * ) * - 17 + - + 84 AS col1 FROM tab0
----
-135

query I rowsort
SELECT col0 * - 39 * col2 + + col2 AS col1 FROM tab1
----
-190848
-195526
-241264

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 * + 34 + + col0 / + col1 + 17 + col1 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2151
SELECT * FROM tab1 WHERE + + col1 * + + col2 + - 85 * - CAST( NULL AS SIGNED ) + + ( 68 + - col1 * col1 ) IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-2151
SELECT * FROM tab1 WHERE + + col1 * + + col2 + - 85 * - CAST ( NULL AS INTEGER ) + + ( 68 + - col1 * col1 ) IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT - col2 * - - ( - col1 ) + CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
196
297
3822

skipif mysql # not compatible
query I rowsort label-2152
SELECT - col2 * - - ( - col1 ) + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT 37 / - + 62 * AVG ( col2 ) / COUNT( - col1 ) col2 FROM tab0 WHERE + 1 < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2153
SELECT 37 / - + 62 * AVG ( col2 ) / COUNT ( - col1 ) col2 FROM tab0 WHERE + 1 < NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - + 49 ) + - col0 FROM tab2
----
-113
-124
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT - 51 DIV - - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2155
SELECT - 51 / - - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT ALL 99 + + 66 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 99 + + 66 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT col0 * - - 74 <> - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < ( NULL ) AND - col0 * - col2 NOT IN ( - 47 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT + CAST( + 81 AS SIGNED ) <> 90
----

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT + CAST ( + 81 AS INTEGER ) <> 90
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2162
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query III rowsort label-2162
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS REAL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + - 68 col2 FROM tab2 AS cor0 WHERE NOT + col0 * 32 < + - col1 + - 56
----
3128
4352
5100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2165
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / 28 + + + 30 + + 97 * + col2 BETWEEN + CAST( NULL AS SIGNED ) AND + 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2165
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / 28 + + + 30 + + 97 * + col2 BETWEEN + CAST ( NULL AS INTEGER ) AND + 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( ( + + col0 * + + col2 ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-2166
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( ( + + col0 * + + col2 ) IS NULL )
----
-3

query I rowsort
SELECT ALL - col1 * + + 6 * - 15 - col2 * + 69 * - + 80 FROM tab2 AS cor0
----
131550
227730
326190

query I rowsort
SELECT ALL + 8 * + + col1 * 68 * - col0 AS col2 FROM tab2
----
-1276224
-2680832
-2733600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col0 col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT CAST( - ( - col0 ) AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT CAST ( - ( - col0 ) AS INTEGER ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT 41 * + + col0 FROM tab2
----
1886
2624
3075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, col0 + - 22 col0 FROM tab0
----
15
-7
87
65
97
75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> - - 9
----

query I rowsort
SELECT - 18 + - AVG ( 2 ) FROM tab1 WHERE NOT + - 51 + + + col2 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - - col0 + + ( + 88 )
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col2 * col0 * col2 + - + col0 + - + 7 + - - col2 FROM tab0 AS cor0
----
-182784
-2683910
-950702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 * ( col2 ) AS col0, col0 col2 FROM tab2 AS cor0
----
-1472
46
-2560
64
-3712
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * col0 ) = + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + 32 FROM tab1 AS cor0 WHERE NOT 15 IN ( + - 40 * col1 )
----
-19
-53
-59

query I rowsort
SELECT DISTINCT 9 * - 80 * - col2 + - ( 2 ) + + - 11 AS col2 FROM tab1 AS cor0
----
42467
48947
69107

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2181
SELECT ALL + - col0 + - - col2, CAST( NULL AS DECIMAL ) * + 65 AS col1 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-2181
SELECT ALL + - col0 + - - col2, CAST ( NULL AS REAL ) * + 65 AS col1 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

query I rowsort
SELECT ALL col2 + - + col1 AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT COUNT( ALL 65 ) AS col1, + 80 AS col0 FROM tab0 cor0
----
3
80

skipif mysql # not compatible
query II rowsort label-2183
SELECT COUNT ( ALL 65 ) AS col1, + 80 AS col0 FROM tab0 cor0
----
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT - - MAX( ALL + col0 ) FROM tab1 AS cor0 WHERE NULL IN ( col2, 98 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT - - MAX ( ALL + col0 ) FROM tab1 AS cor0 WHERE NULL IN ( col2, 98 + - col2 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2185
SELECT DISTINCT - col1 * + 17 * - col1 + + 4 + + - 27 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - col1 * + 17 * - col1 + + 4 + + - 27 * + + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + - 13 * - 3 * + col2 + - - col2 AS col0 FROM tab1 AS cor0
----
2360
2720
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + 84 + + col1 + + col2 FROM tab0 AS cor0
----
115
184
212

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL + MAX( ALL + col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2189
SELECT ALL + MAX ( ALL + col2 ) col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - + col0 + + col1 AS col2 FROM tab1 WHERE NULL < - col0 + 43 + - 80
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2192
SELECT DISTINCT + + ( + 10 ) + - 42 + + MAX( - col2 ) * + + CAST( NULL AS SIGNED ) * - 4 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2192
SELECT DISTINCT + + ( + 10 ) + - 42 + + MAX ( - col2 ) * + + CAST ( NULL AS INTEGER ) * - 4 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT ALL - 98 DIV + - 6 + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
112
114
124

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - 98 / + - 6 + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
112
114
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT + 97 DIV SUM( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 97 / SUM ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + + col2, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 34 + + + 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 99 col2, 38 FROM tab2 AS cor0
----
99
38
99
38
99
38

query I rowsort
SELECT ( + 73 ) * ( + + col2 ) + col1 AS col2 FROM tab2 cor0
----
1730
2997
4301

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL + MAX( DISTINCT - ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + MAX ( DISTINCT - ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col1 AND - 25 / + col0
----

query I rowsort
SELECT DISTINCT + 58 FROM tab1 WHERE col2 IS NOT NULL
----
58

query I rowsort
SELECT + col1 + + 34 AS col2 FROM tab1
----
39
48
81

query I rowsort
SELECT - 0 + 41 AS col1 FROM tab2
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) + + col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( - + ( col0 ) ) + + - col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT + ( - 49 ) * - 5 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
19845
245
5145

query I rowsort
SELECT DISTINCT + + 12 AS col2 FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT + 22 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2208
SELECT + 22 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT col0 - - col1 + - col0 + + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT col0 - - col1 + - col0 + + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2210
SELECT * FROM tab1 AS cor0 WHERE + ( + + CAST( + 32 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2210
SELECT * FROM tab1 AS cor0 WHERE + ( + + CAST ( + 32 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT + col2 + - 81 + - - 96 / col0 * + 25 * + col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT + col2 + - 81 + - - 96 / col0 * + 25 * + col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2212
SELECT - + ( - col1 ) * CAST( NULL AS SIGNED ) + + + 68 - - 15 + col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2212
SELECT - + ( - col1 ) * CAST ( NULL AS INTEGER ) + + + 68 - - 15 + col2, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT 43 + + 32 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT ALL + 16 + + col1 FROM tab2 AS cor0
----
67
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + COUNT( - + 2 ) AS col2 FROM tab0 AS cor0 WHERE ( col1 * - + col2 + col0 + - col2 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT + COUNT ( - + 2 ) AS col2 FROM tab0 AS cor0 WHERE ( col1 * - + col2 + col0 + - col2 > NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT ALL - 7 + 12 + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 7 + 12 + col2 / - col0 AS col0 FROM tab0 AS cor0
----
2
4
5

query I rowsort
SELECT ALL 41 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > 62
----

query I rowsort
SELECT + ( + col2 ) * - + ( - 32 ) + - 83 AS col0 FROM tab2
----
1197
1773
653

query I rowsort
SELECT + ( - 99 ) * - col2 FROM tab2
----
2277
3960
5742

query I rowsort
SELECT - 73 * 18 AS col2 FROM tab1
----
-1314
-1314
-1314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 88 FROM tab2
----
-4488
-5896
-6776

query I rowsort
SELECT DISTINCT col2 + - ( - col1 ) AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2 cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT DISTINCT col0 DIV - 6 AS col2 FROM tab2 AS cor0
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT col0 / - 6 AS col2 FROM tab2 AS cor0
----
-10
-12
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT - + MAX( col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT - + MAX ( col2 ) AS col2 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT + 85 DIV - SUM( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2228
SELECT + 85 / - SUM ( DISTINCT col2 ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL 92 * - + col2 FROM tab0
----
-4324
-9108
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 * + 47 - + 59, - 62 col1 FROM tab2 AS cor0
----
4030
-62
4030
-62
4030
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT COUNT( * ) + - COUNT( * ) + - 89 - + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-89

skipif mysql # not compatible
query I rowsort label-2231
SELECT COUNT ( * ) + - COUNT ( * ) + - 89 - + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-89

query II rowsort
SELECT ALL + col0, 9 AS col2 FROM tab1 AS cor0
----
51
9
85
9
91
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ALL - SUM( ALL - col2 ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2233
SELECT ALL - SUM ( ALL - col2 ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
669

query I rowsort
SELECT ALL - col1 * - ( - 87 ) AS col1 FROM tab1
----
-1218
-4089
-435

query I rowsort
SELECT col0 * + 67 AS col0 FROM tab0
----
1005
5829
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT + - col2 + + + col0 IN ( - 88 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT DISTINCT + CAST( 19 AS SIGNED ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + CAST ( 19 AS INTEGER ) FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT COUNT( * ) + SUM( - col0 ) AS col0 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT COUNT ( * ) + SUM ( - col0 ) AS col0 FROM tab0
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT 40 DIV + 99 * ( 23 ) AS col0 FROM tab1 AS cor0 WHERE ( 0 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2239
SELECT 40 / + 99 * ( 23 ) AS col0 FROM tab1 AS cor0 WHERE ( 0 ) IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - ( - - col0 ) ) col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2241
SELECT DISTINCT - col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-2241
SELECT DISTINCT - col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 68 * - col0 col0 FROM tab1 AS cor0
----
3417
5695
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT + COUNT( * ) + - 38 FROM tab0 WHERE 80 - - - 9 + - 74 + - col0 = NULL
----
-38

skipif mysql # not compatible
query I rowsort label-2243
SELECT + COUNT ( * ) + - 38 FROM tab0 WHERE 80 - - - 9 + - 74 + - col0 = NULL
----
-38

query I rowsort
SELECT ALL + ( + 2 ) AS col0 FROM tab2
----
2
2
2

query I rowsort
SELECT col2 * + col1 * 99 * + ( - 36 ) AS col1 FROM tab0 AS cor0
----
-13568148
-352836
-748440

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - - MAX( + + 92 ) col2 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2246
SELECT - - MAX ( + + 92 ) col2 FROM tab1 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 BETWEEN + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 73 * - 82 - + + 17 + - - 17 + + col1 + + - 86 * col0 * + 77 col0 FROM tab0 AS cor0
----
-105282
-582089
-648418

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( + col0, - col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL - MAX( + + 47 ) * + - MAX( + 82 ) * - 7 - - 86 FROM tab1 AS cor0
----
-26892

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - MAX ( + + 47 ) * + - MAX ( + 82 ) * - 7 - - 86 FROM tab1 AS cor0
----
-26892

query I rowsort
SELECT - col2 - + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 25 - - + col1 col0 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT DISTINCT + 80 - - + 88 FROM tab0
----
168

query I rowsort
SELECT ALL col2 - - 38 FROM tab0
----
137
48
85

query I rowsort
SELECT DISTINCT 15 * - col1 AS col1 FROM tab1
----
-210
-705
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2256
SELECT - - col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT - - col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 99 AS col0, - col1 col1 FROM tab1 AS cor0
----
99
-14
99
-47
99
-5

query I rowsort
SELECT DISTINCT + col1 * 60 AS col2 FROM tab1 AS cor0
----
2820
300
840

query I rowsort
SELECT ALL col2 * - - col1 * + 60 AS col1 FROM tab2
----
184800
233160
70380

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL col2 DIV - + col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL col2 / - + col1 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL - ( - - MAX( col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - ( - - MAX ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 + - 35 + - + col2, + 9 / + - col0 * - 50 )
----

query I rowsort
SELECT + 46 * + + 23 FROM tab1 AS cor0
----
1058
1058
1058

query I rowsort
SELECT DISTINCT - 81 * + - col0 + 33 + + + col2 FROM tab0 AS cor0
----
1295
7090
7989

query II rowsort
SELECT col1, - col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT 26 * 65 + - - COUNT( * ) col0 FROM tab2
----
1693

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2266
SELECT 26 * 65 + - - COUNT ( * ) col0 FROM tab2
----
1693

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < + 13
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 58, 94 / ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL COUNT( ALL ( + 54 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL COUNT ( ALL ( + 54 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col2 + + 55 AS col2 FROM tab0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL COUNT( * ) + + - MIN( col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL COUNT ( * ) + + - MIN ( col0 ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT + 95 * + COUNT( * ) + + COUNT( ALL - col0 ) AS col2 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-2272
SELECT + 95 * + COUNT ( * ) + + COUNT ( ALL - col0 ) AS col2 FROM tab2
----
288

query I rowsort
SELECT 26 AS col1 FROM tab2 WHERE NULL IS NULL
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, 80 AS col0 FROM tab2 AS cor0 WHERE - col0 / col0 * - col2 + + col2 IS NOT NULL
----
46
80
64
80
75
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT + SUM( DISTINCT 62 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2275
SELECT + SUM ( DISTINCT 62 ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
62

query I rowsort
SELECT 47 * - col1 * + col2 AS col0 FROM tab0
----
-178929
-4653
-9870

query I rowsort
SELECT - - 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - COUNT( * ) - MIN( ALL + 94 ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-2278
SELECT - COUNT ( * ) - MIN ( ALL + 94 ) FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT MAX( - ( + 22 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT MAX ( - ( + 22 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 47 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2281
SELECT - + CAST( + 77 AS SIGNED ) + + 5 + - col2 AS col1, col1 col1 FROM tab1 AS cor0
----
-131
5
-140
47
-168
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2281
SELECT - + CAST ( + 77 AS INTEGER ) + + 5 + - col2 AS col1, col1 col1 FROM tab1 AS cor0
----
-131
5
-140
47
-168
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= ( NULL )
----

query II rowsort
SELECT DISTINCT + 76 + + col2 AS col0, - 9 + + - col2 * + - col1 + - 88 FROM tab1 AS cor0
----
135
198
144
3099
172
1247

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> + 4
----

query II rowsort
SELECT col2, + col2 + + - col1 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
59
113
68
89
96
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL + MIN( - - col2 ) * - - ( + 40 ) AS col2 FROM tab1
----
2360

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + MIN ( - - col2 ) * - - ( + 40 ) AS col2 FROM tab1
----
2360

query I rowsort
SELECT ALL - - col2 + + 73 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2288
SELECT * FROM tab0 WHERE NOT + 28 + - - CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2288
SELECT * FROM tab0 WHERE NOT + 28 + - - CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT - MAX( - col1 ) FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT - MAX ( - col1 ) FROM tab2 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT + col1 * 5 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT ALL 93 + + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + + 72 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL 93 + + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + + 72 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - 94 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT + + 10 + CAST( + ( + + col1 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 - col2 * 13 * - + 38 IS NULL
----
61
77
87

skipif mysql # not compatible
query I rowsort label-2293
SELECT + + 10 + CAST ( + ( + + col1 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 - col2 * 13 * - + 38 IS NULL
----
61
77
87

query II rowsort
SELECT ALL 86, 98 + - + col2 AS col0 FROM tab0
----
86
-1
86
51
86
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2295
SELECT ALL COUNT( ALL + - 74 ) + - MAX( ALL - + col0 ) * + 67 * 4 AS col1, COUNT( * ) FROM tab1 AS cor0
----
13671
3

skipif mysql # not compatible
query II rowsort label-2295
SELECT ALL COUNT ( ALL + - 74 ) + - MAX ( ALL - + col0 ) * + 67 * 4 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
13671
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT - + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2296
SELECT - + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT - 25 DIV - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2297
SELECT - 25 / - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT - - 13 + + - col0 FROM tab2 cor0
----
-33
-51
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT + MAX( - col1 ) * - 11 + - COUNT( * ) + - 81 - + 76 FROM tab2 AS cor0
----
401

skipif mysql # not compatible
query I rowsort label-2299
SELECT + MAX ( - col1 ) * - 11 + - COUNT ( * ) + - 81 - + 76 FROM tab2 AS cor0
----
401

query I rowsort
SELECT ALL - 45 * col0 + + + col0 FROM tab1 AS cor0
----
-2244
-3740
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2301
SELECT DISTINCT - + 58 * + - MIN( ALL - - col1 ) col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + - 72 - col1 - - + col0 + - + ( - col2 ) * + + ( + CAST( NULL AS SIGNED ) ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2301
SELECT DISTINCT - + 58 * + - MIN ( ALL - - col1 ) col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + - 72 - col1 - - + col0 + - + ( - col2 ) * + + ( + CAST ( NULL AS INTEGER ) ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT ALL - col2 DIV - + 53 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - col2 / - + 53 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - COUNT( * ) * + - 91 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-2303
SELECT - COUNT ( * ) * + - 91 FROM tab0
----
273

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL 56 + COUNT( * ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL 56 + COUNT ( * ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - ( - + COUNT( * ) ) + 15 AS col2 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2306
SELECT - ( - + COUNT ( * ) ) + 15 AS col2 FROM tab1 cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT col0 + + - 69 - - col1 DIV - col1 col0 FROM tab0 AS cor0
----
-55
17
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2307
SELECT col0 + + - 69 - - col1 / - col1 col0 FROM tab0 AS cor0
----
-55
17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT - COUNT( * ) + 16 col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2308
SELECT - COUNT ( * ) + 16 col1 FROM tab1 AS cor0
----
13

query I rowsort
SELECT + col1 + + ( + 32 ) AS col0 FROM tab1 AS cor0
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT + MAX( DISTINCT - + col1 ) * + - 18 * + 64 FROM tab0
----
1152

skipif mysql # not compatible
query I rowsort label-2310
SELECT + MAX ( DISTINCT - + col1 ) * + - 18 * + 64 FROM tab0
----
1152

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT col2 DIV - + col2 + - + col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-2311
SELECT col2 / - + col2 + - + col1 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT ALL - 59 * - col1 AS col2 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT DISTINCT col1 + + 63 FROM tab0 AS cor0
----
144
64
84

query I rowsort
SELECT DISTINCT - col0 + + - col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT + col0 * - col2 * 52 FROM tab1 AS cor0
----
-254592
-260780
-321776

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 78 <> NULL
----

query II rowsort
SELECT ALL - 26 AS col2, col0 + col1 + - col0 + - - 42 * - - 93 + + col0 FROM tab1 AS cor0
----
-26
3971
-26
3996
-26
4044

onlyif mysql # DIV for integer division: 
query I rowsort label-2318
SELECT - col1 DIV col0 DIV + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2318
SELECT - col1 / col0 / + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2319
SELECT ALL CAST( NULL AS DECIMAL ) * + ( - col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL CAST ( NULL AS REAL ) * + ( - col0 ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 40 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 90 AS col1 FROM tab2 WHERE col1 + + col2 - + col0 / + 24 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 88, + 64 col2 FROM tab0
----
88
64

query II rowsort
SELECT - col2 AS col2, - col2 AS col2 FROM tab1
----
-59
-59
-68
-68
-96
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2324
SELECT DISTINCT + col0, - CAST( NULL AS DECIMAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2324
SELECT DISTINCT + col0, - CAST ( NULL AS REAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT + 22 AS col2, + 17 * col2 FROM tab1
----
22
1003
22
1156
22
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT 62 * + - COUNT( * ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-2326
SELECT 62 * + - COUNT ( * ) FROM tab2
----
-186

query II rowsort
SELECT ALL + col0 AS col2, 37 + + col0 FROM tab1
----
51
88
85
122
91
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT - 48 DIV - col2 - + - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
48
65
75

skipif mysql # not compatible
query I rowsort label-2328
SELECT - 48 / - col2 - + - ( - - col0 ) AS col1 FROM tab2 AS cor0
----
48
65
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = 60
----

query I rowsort
SELECT DISTINCT + - 61 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2331
SELECT DISTINCT MIN( ALL col2 ), CAST( - MAX( + - col0 ) AS SIGNED ) * 24 AS col0 FROM tab0
----
10
360

skipif mysql # not compatible
query II rowsort label-2331
SELECT DISTINCT MIN ( ALL col2 ), CAST ( - MAX ( + - col0 ) AS INTEGER ) * 24 AS col0 FROM tab0
----
10
360

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT MAX( + ( + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2332
SELECT MAX ( + ( + col0 ) ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT col1 * + - col0 - - col0 FROM tab2 cor0 WHERE + 11 <> + col1 * + ( - + 1 ) + - 23
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL COUNT( * ) + + COUNT( * ) + COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2334
SELECT ALL COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col2 + + 57 FROM tab1 AS cor0
----
-11
-2
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT DISTINCT + col2 DIV + 25 col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2336
SELECT DISTINCT + col2 / + 25 col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT col2 + + 91 FROM tab1
----
150
159
187

query II rowsort
SELECT DISTINCT 73, col2 AS col0 FROM tab0
----
73
10
73
47
73
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2339
SELECT DISTINCT + ( - COUNT( * ) ), - 20 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3
-20

skipif mysql # not compatible
query II rowsort label-2339
SELECT DISTINCT + ( - COUNT ( * ) ), - 20 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3
-20

query II rowsort
SELECT DISTINCT col0, 84 + - col1 AS col0 FROM tab2
----
46
33
64
7
75
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT MAX( ALL + + 40 ) col2 FROM tab2
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2341
SELECT MAX ( ALL + + 40 ) col2 FROM tab2
----
40

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + + - 70 IS NULL
----

query I rowsort
SELECT ( 24 ) - + col2 FROM tab2
----
-16
-34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT + 38 - MAX( DISTINCT + 55 ) AS col1 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT + 38 - MAX ( DISTINCT + 55 ) AS col1 FROM tab1
----
-17

query I rowsort
SELECT + + col1 + 57 AS col0 FROM tab1 WHERE + + 84 < - col1
----

query I rowsort
SELECT DISTINCT - col2 * + 13 + - 90 - + col0 * col1 AS col2 FROM tab1 AS cor0
----
-1282
-2052
-5251

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT 95 DIV 90 + + - col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-2347
SELECT 95 / 90 + + - col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2348
SELECT ALL CAST( NULL AS DECIMAL ) / + 49 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL CAST ( NULL AS REAL ) / + 49 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2349
SELECT COUNT( * ) DIV + 83 + - + COUNT( * ) * + 39 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT COUNT ( * ) / + 83 + - + COUNT ( * ) * + 39 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT - COUNT( * ) * + 90 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-2350
SELECT - COUNT ( * ) * + 90 FROM tab0
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 * + ( - col0 ) col0 FROM tab2
----
-3312
-4608
-5400

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 ) > + col1
----
97
1
99

query I rowsort
SELECT 0 * - 6 FROM tab1
----
0
0
0

query I rowsort
SELECT + 85 * - 95 AS col2 FROM tab2
----
-8075
-8075
-8075

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - - COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2355
SELECT - - COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 97 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 13 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT - MIN( ALL + + 94 ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT - MIN ( ALL + + 94 ) FROM tab2
----
-94

query I rowsort
SELECT 62 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 - + col1 col1 FROM tab1 AS cor0
----
112
133
139

query II rowsort
SELECT - + 95 AS col2, + 84 AS col1 FROM tab0 AS cor0
----
-95
84
-95
84
-95
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT - + 50 * + 23 - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1147

skipif mysql # not compatible
query I rowsort label-2361
SELECT - + 50 * + 23 - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1147

query I rowsort
SELECT ALL col2 - + col2 + - - col1 AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2363
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col1 + 46 NOT BETWEEN + CAST( + col1 AS DECIMAL ) - + 67 * + 2 AND - + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2363
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col1 + 46 NOT BETWEEN + CAST ( + col1 AS REAL ) - + 67 * + 2 AND - + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2364
SELECT * FROM tab1 WHERE - + 51 + col0 >= - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2364
SELECT * FROM tab1 WHERE - + 51 + col0 >= - - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL 90 + 43 AS col1 FROM tab0
----
133
133
133

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2366
SELECT * FROM tab0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2366
SELECT * FROM tab0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2367
SELECT ALL + ( - col2 ) AS col2, - CAST( NULL AS SIGNED ) FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2367
SELECT ALL + ( - col2 ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT col0 DIV + + col2 - + col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-2368
SELECT col0 / + + col2 - + col1 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT + - col2 + - - 84 AS col2 FROM tab2 AS cor0
----
26
44
61

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 12 * - col2 + + col0 - + col2 / - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 85 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT - 96 <= - 11 + + col1
----

query II rowsort
SELECT + 33 AS col0, + ( + - ( + 8 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to df96d33f0d0ca7dde4cde57930a815fe

query I rowsort
SELECT DISTINCT - + 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT + MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2375
SELECT + MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT + ( - col0 ) DIV - + 48 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2376
SELECT + ( - col0 ) / - + 48 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2377
SELECT ALL - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT COUNT( * ) DIV + COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2378
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
----
1

query II rowsort
SELECT - - 54 AS col2, col2 + + + col1 - col2 * + 90 + - 36 AS col0 FROM tab0 AS cor0
----
54
-4138
54
-8846
54
-905

query I rowsort
SELECT ALL - 86 * - + 56 FROM tab1
----
4816
4816
4816

query III rowsort
SELECT * FROM tab2 WHERE NOT + 39 NOT BETWEEN - col2 AND - col1 * col2
----

query I rowsort
SELECT ALL + + 18 AS col2 FROM tab1 WHERE + ( 0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT - - col2 + + col0 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NOT NULL AND NOT 42 IS NULL
----

query I rowsort
SELECT 83 - + 72 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + - 87 * - col1 * + ( 64 ) FROM tab1 AS cor0
----
261696
27840
77952

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2388
SELECT ALL + col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL + col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - COUNT( * ) - 74 FROM tab2 WHERE + col2 / + - 2 * - 98 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - COUNT ( * ) - 74 FROM tab2 WHERE + col2 / + - 2 * - 98 IS NOT NULL
----
-77

query I rowsort
SELECT - + col2 + - + col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT - 68 + + - ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - 68 + + - ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE 13 - col0 <> - col0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col2 - - + 92 AS col0 FROM tab0
----
102
139
191

query III rowsort
SELECT ALL * FROM tab0 WHERE 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2395
SELECT DISTINCT - COUNT( * ) AS col2, 95 FROM tab2
----
-3
95

skipif mysql # not compatible
query II rowsort label-2395
SELECT DISTINCT - COUNT ( * ) AS col2, 95 FROM tab2
----
-3
95

query I rowsort
SELECT ALL 87 * - + col0 FROM tab2
----
-4002
-5568
-6525

query II rowsort
SELECT col2 * + col2 AS col2, - col2 FROM tab1
----
3481
-59
4624
-68
9216
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * col1 * - 85 >= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, - 49 FROM tab0
----
15
-49
87
-49
97
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-2400
SELECT ALL col0 AS col1, col0 DIV - col2 + - - col2 FROM tab0 AS cor0
----
15
47
87
2
97
99

skipif mysql # not compatible
query II rowsort label-2400
SELECT ALL col0 AS col1, col0 / - col2 + - - col2 FROM tab0 AS cor0
----
15
47
87
2
97
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + - col0 + - ( + col0 )
----

query I rowsort
SELECT ALL - col1 - col1 FROM tab2 AS cor0 WHERE NOT col2 * - 33 IS NULL
----
-102
-134
-154

query I rowsort
SELECT DISTINCT 94 FROM tab1 AS cor0 WHERE NOT col2 / 6 IS NULL
----
94

query I rowsort
SELECT 78 FROM tab1 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2405
SELECT + col1 DIV ( - CAST( - + 12 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2405
SELECT + col1 / ( - CAST ( - + 12 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT 24 * + 33 FROM tab0
----
792

query I rowsort
SELECT ALL + 32 * 43 FROM tab2
----
1376
1376
1376

query II rowsort
SELECT 12, col2 AS col2 FROM tab0
----
12
10
12
47
12
99

query I rowsort
SELECT col1 * + 19 * 95 AS col1 FROM tab0
----
146205
1805
37905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2410
SELECT MAX( DISTINCT - col1 ) DIV - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2410
SELECT MAX ( DISTINCT - col1 ) / - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT MAX( - - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2411
SELECT MAX ( - - col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2412
SELECT - CAST( + - col0 AS SIGNED ) col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2412
SELECT - CAST ( + - col0 AS INTEGER ) col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT CAST( NULL AS SIGNED ) + - col0 * - col1 AS col1 FROM tab2 WHERE NOT + col0 * - ( ( col0 ) ) + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2413
SELECT CAST ( NULL AS INTEGER ) + - col0 * - col1 AS col1 FROM tab2 WHERE NOT + col0 * - ( ( col0 ) ) + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + col0 + 93 - col2 / - - col1 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 48 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - col2 ) * col1 + + + col0 FROM tab2 cor0
----
1219
3144
3961

query I rowsort
SELECT + col2 + - 5 FROM tab0 AS cor0
----
42
5
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - 71 + MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2418
SELECT - 71 + MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT - - col0 * + - col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( + col0 )
----

query I rowsort
SELECT ALL + ( + 67 ) * - ( - col2 ) FROM tab1 AS cor0
----
3953
4556
6432

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 3 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT DISTINCT + col0 * col2 DIV - col1 AS col2 FROM tab1
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + col0 * col2 / - col1 AS col2 FROM tab1
----
-1003
-131
-349

query I rowsort
SELECT + 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL - col0 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
2070
4032
5550

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 * + col0 < + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 * + col1 AS col1, + 42 FROM tab1 cor0
----
196
42
2209
42
25
42

query I rowsort
SELECT DISTINCT - - col1 + - - 90 AS col1 FROM tab1 AS cor0
----
104
137
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab1 cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 * - - ( - 62 ) NOT BETWEEN + + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2430
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 * - - ( - 62 ) NOT BETWEEN + + col0 AND NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL + col2 DIV 74 + + - col2 FROM tab0 AS cor0
----
-10
-47
-98

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + col2 / 74 + + - col2 FROM tab0 AS cor0
----
-10
-47
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2432
SELECT DISTINCT + 81 - - + 73 + - COUNT( * ) * + COUNT( * ), + COUNT( * ) AS col1 FROM tab2 AS cor0
----
145
3

skipif mysql # not compatible
query II rowsort label-2432
SELECT DISTINCT + 81 - - + 73 + - COUNT ( * ) * + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
145
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT - COUNT( * ) - + - 22 + 82 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-2433
SELECT - COUNT ( * ) - + - 22 + 82 FROM tab2
----
101

query III rowsort
SELECT * FROM tab1 WHERE ( - 99 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2435
SELECT col1 AS col0, CAST( - - 8 AS SIGNED ) / col0 - + col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2435
SELECT col1 AS col0, CAST ( - - 8 AS INTEGER ) / col0 - + col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT ALL - CAST( - 61 AS SIGNED ) AS col0 FROM tab1
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - CAST ( - 61 AS INTEGER ) AS col0 FROM tab1
----
61
61
61

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2437
SELECT DISTINCT col0, col1 + - + CAST( - col0 AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + col1 * ( + col1 )
----

skipif mysql # not compatible
query II rowsort label-2437
SELECT DISTINCT col0, col1 + - + CAST ( - col0 AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + col1 * ( + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 50 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 70 IN ( col2 * col2, + 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 34 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query II rowsort
SELECT ALL - col0, + col1 * + col1 AS col2 FROM tab0
----
-15
6561
-87
441
-97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2442
SELECT DISTINCT - 60 AS col0, SUM( + 5 ) FROM tab1 AS cor0
----
-60
15

skipif mysql # not compatible
query II rowsort label-2442
SELECT DISTINCT - 60 AS col0, SUM ( + 5 ) FROM tab1 AS cor0
----
-60
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT - CAST( - 49 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-2443
SELECT - CAST ( - 49 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT - ( CAST( - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2444
SELECT - ( CAST ( - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT + SUM( ALL + col2 ) col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2445
SELECT DISTINCT + SUM ( ALL + col2 ) col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT col1 * 45 * 24 AS col1 FROM tab2 AS cor0
----
55080
72360
83160

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT + 70 AS col0, SUM( col0 ) col1 FROM tab0 AS cor0
----
70
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2447
SELECT + 70 AS col0, SUM ( col0 ) col1 FROM tab0 AS cor0
----
70
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT DISTINCT - - 16 * - MAX( - 75 ) FROM tab2 AS cor0
----
1200

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT - - 16 * - MAX ( - 75 ) FROM tab2 AS cor0
----
1200

query I rowsort
SELECT DISTINCT + col1 * - ( + 52 ) + + - 50 FROM tab0 cor0 WHERE NOT NULL > - 37
----

query I rowsort
SELECT ( + col0 ) FROM tab2 AS cor0 WHERE NOT col2 / 19 BETWEEN + col1 AND NULL
----
46
64
75

query I rowsort
SELECT DISTINCT col0 * - col2 + + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + col0 + - 72 / - 95 + col0 BETWEEN NULL AND col1
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * + ( - - ( - - col1 ) ) * + + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 * + - 2 * + col1 FROM tab0
----
-18818
-317898
-36450

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT 92 + + COUNT( * ) - - SUM( + ( col2 ) ) * - + 30 AS col1 FROM tab0
----
-4585

skipif mysql # not compatible
query I rowsort label-2455
SELECT 92 + + COUNT ( * ) - - SUM ( + ( col2 ) ) * - + 30 AS col1 FROM tab0
----
-4585

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - ( - col1 ) + + 11 + col2
----

query I rowsort
SELECT 28 * - col1 * col2 AS col1 FROM tab2 AS cor0
----
-108808
-32844
-86240

query I rowsort
SELECT ALL 49 + col1 FROM tab2 AS cor0
----
100
116
126

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 40 + - - ( - col2 ) ) IN ( 50 * - col1, + col1 + - - col0 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > - col2 + - 87
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > - col2 + - 87
----
0

query I rowsort
SELECT DISTINCT + 27 + - col2 + + 74 + - ( + + 30 ) FROM tab2
----
13
31
48

query I rowsort
SELECT - col2 + + + 19 FROM tab2
----
-21
-39
-4

query I rowsort
SELECT + 2 + 74 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT + - col1 + - 34 FROM tab2 AS cor0
----
-101
-111
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT DISTINCT - + 35 * - CAST( NULL AS SIGNED ) + - + ( - + col1 ) - - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT - + 35 * - CAST ( NULL AS INTEGER ) + - + ( - + col1 ) - - - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - - col2 FROM tab1 cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col2 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + - COUNT( * ) col1 FROM tab2 AS cor0 WHERE - col2 + + - col1 * - + ( - + 71 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2468
SELECT + - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE - col2 + + - col1 * - + ( - + 71 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + 31 * + - col2 AS col1 FROM tab1
----
-1829
-2108
-2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 * col2 col0, col2 + - col0 + + col2 AS col0 FROM tab0
----
1551
79
3267
101
330
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT + SUM( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + SUM ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
-121

query II rowsort
SELECT - col0, + col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT col0 * + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 41 < - 59 * + 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL - + col1 * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - + col1 * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT + col0 + - + col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + - col1 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT - COUNT( * ) * + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2481
SELECT - COUNT ( * ) * + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT - MAX( - + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2482
SELECT - MAX ( - + col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - + col0
----

query II rowsort
SELECT ALL col0, 77 FROM tab2
----
46
77
64
77
75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2485
SELECT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT DISTINCT + col0 + + + col1 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT DISTINCT CAST( + 53 AS SIGNED ) * col0 AS col0 FROM tab2
----
2438
3392
3975

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT CAST ( + 53 AS INTEGER ) * col0 AS col0 FROM tab2
----
2438
3392
3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT col2 + 53 + - + 22 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2488
SELECT col2 + 53 + - + 22 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 89 + + - 80 AS col0 FROM tab0 AS cor0
----
-169

query I rowsort
SELECT DISTINCT - + ( col1 ) + - col0 * col2 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # DIV for integer division: 
query II rowsort label-2491
SELECT - col1 DIV + 20 + + - 88 + - - 65 AS col2, 25 FROM tab0 AS cor0
----
-23
25
-24
25
-27
25

skipif mysql # not compatible
query II rowsort label-2491
SELECT - col1 / + 20 + + - 88 + - - 65 AS col2, 25 FROM tab0 AS cor0
----
-23
25
-24
25
-27
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT - ( + ( + MAX( - col1 ) ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT - ( + ( + MAX ( - col1 ) ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2493
SELECT DISTINCT - 93 + + - COUNT( * ) + - - MAX( 46 ) DIV ( + + 35 ) AS col1 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - 93 + + - COUNT ( * ) + - - MAX ( 46 ) / ( + + 35 ) AS col1 FROM tab1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2494
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + col0 NOT BETWEEN NULL AND - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2494
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / + col0 NOT BETWEEN NULL AND - CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT - 58 * + + 47 FROM tab0 AS cor0 WHERE + 4 < - col1 + col2 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT DISTINCT col0 + + - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT col0 + + - col0 / col2 AS col0 FROM tab1 AS cor0
----
51
84
90

query I rowsort
SELECT ALL + col1 * - 79 + + + col2 FROM tab0 AS cor0
----
-1649
-6352
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + COUNT( * ) * - COUNT( * ) - - + 64 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2498
SELECT + COUNT ( * ) * - COUNT ( * ) - - + 64 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL + - COUNT( * ) - - 32 DIV + + 9 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + - COUNT ( * ) - - 32 / + + 9 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) + + + col1 + + ( - col2 ) * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) + + + col1 + + ( - col2 ) * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL MAX( - 99 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL MAX ( - 99 ) AS col1 FROM tab0
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2503
SELECT + 12 / CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT + 12 / CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 / + - col2 + + + 28 / 67 AS col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + + SUM( ALL - - 59 ) col1 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2505
SELECT ALL + + SUM ( ALL - - 59 ) col1 FROM tab0 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL COUNT( * ) + + 86 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL COUNT ( * ) + + 86 FROM tab2
----
89

query I rowsort
SELECT DISTINCT + 28 * + col0 + 22 * 68 AS col0 FROM tab2 WHERE ( + col2 ) NOT BETWEEN col0 + - col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + COUNT( DISTINCT + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2508
SELECT + COUNT ( DISTINCT + col1 ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT col0 DIV + col1 - col0 * - 72 FROM tab0
----
1080
6268
7081

skipif mysql # not compatible
query I rowsort label-2509
SELECT col0 / + col1 - col0 * - 72 FROM tab0
----
1080
6268
7081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2510
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) BETWEEN col1 AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-2510
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) BETWEEN col1 AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT - MAX( DISTINCT - ( col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2511
SELECT - MAX ( DISTINCT - ( col1 ) ) FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 = ( NULL )
----

query I rowsort
SELECT - col2 + 40 AS col1 FROM tab1 WHERE ( NULL ) <> + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL >= ( 77 )
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL >= ( 77 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT 8 + - COUNT( * ) AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-2515
SELECT 8 + - COUNT ( * ) AS col0 FROM tab2
----
5

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col1 NOT BETWEEN - col1 AND col2
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 54 NOT BETWEEN + col0 * 96 AND ( - col2 * 76 )
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE col2 NOT BETWEEN col2 AND - ( - col0 ) + + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - SUM( DISTINCT col1 ) col0 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2519
SELECT - SUM ( DISTINCT col1 ) col0 FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT col1 DIV - col0 + - 19 AS col1 FROM tab2
----
-19
-20
-20

skipif mysql # not compatible
query I rowsort label-2520
SELECT col1 / - col0 + - 19 AS col1 FROM tab2
----
-19
-20
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2521
SELECT DISTINCT CAST( NULL AS DECIMAL ) - col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT CAST ( NULL AS REAL ) - col1 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 84 * + 4 FROM tab1
----
336
336
336

query I rowsort
SELECT DISTINCT - col0 * 23 + col0 AS col2 FROM tab1
----
-1122
-1870
-2002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + 45 col0 FROM tab0
----
46
486
6606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2525
SELECT - COUNT( * ) + + 51 DIV 28 AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2525
SELECT - COUNT ( * ) + + 51 / 28 AS col1 FROM tab0
----
-2

query I rowsort
SELECT ALL 96 + + col0 FROM tab1 AS cor0
----
147
181
187

query I rowsort
SELECT DISTINCT 81 + - 67 * col0 AS col0 FROM tab0 AS cor0
----
-5748
-6418
-924

query I rowsort
SELECT ALL - 66 + 27 FROM tab0 cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT - ( CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2529
SELECT - ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - 54 - ( - 64 + col2 ) AS col0 FROM tab0
----
-37
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - ( COUNT( ALL + col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - ( COUNT ( ALL + col0 ) ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT + COUNT( * ) - - 93 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2533
SELECT + COUNT ( * ) - - 93 FROM tab1
----
96

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT OUTER JOIN tab0 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT col2 + 78 AS col2 FROM tab0
----
125
177
88

query I rowsort
SELECT 12 * col1 + col0 AS col0 FROM tab2
----
658
879
988

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN ( - 60 * col1 + + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2538
SELECT ALL + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT col1 + + col2 * 68 FROM tab1
----
4017
4671
6542

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT DISTINCT COUNT( * ) + + MAX( + 18 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT COUNT ( * ) + + MAX ( + 18 ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT 39 AS col0 FROM tab0 AS cor0 WHERE 19 IN ( col1 * - 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT ALL + - col0 DIV 28 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + - col0 / 28 FROM tab2 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL MAX( 53 ) AS col0 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL MAX ( 53 ) AS col0 FROM tab2 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + col1 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( NULL ) <> 22 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( NULL ) <> 22 + - 44
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT DISTINCT + MIN( ALL - 97 ) DIV - 7 AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + MIN ( ALL - 97 ) / - 7 AS col2 FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ( - ( COUNT( * ) ) ) * 56 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-2548
SELECT ( - ( COUNT ( * ) ) ) * 56 FROM tab0
----
-168

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 - col1 * col2 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL - MAX( ALL col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - MAX ( ALL col1 ) FROM tab2
----
-77

query I rowsort
SELECT - ( ( 56 ) ) * col0 AS col2 FROM tab2 WHERE NOT col0 * 6 NOT IN ( 28 - - 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT 60 + - COUNT( * ) * 77 AS col2 FROM tab1 WHERE NOT ( col2 + - 63 ) IS NULL
----
-171

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT 60 + - COUNT ( * ) * 77 AS col2 FROM tab1 WHERE NOT ( col2 + - 63 ) IS NULL
----
-171

query I rowsort
SELECT + col0 + col2 FROM tab0 WHERE NOT + col2 IS NULL
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT + 54 DIV - col0 - 0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + 54 / - col0 - 0 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * 96 NOT IN ( 40 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2556
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2556
SELECT - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 37 * - 89 FROM tab2
----
3293

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 95 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( 51 * - + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2560
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( 51 * - + col2 ) IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + - col2 ) > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2562
SELECT DISTINCT + 39, + COUNT( - - CAST( - col0 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2562
SELECT DISTINCT + 39, + COUNT ( - - CAST ( - col0 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
39
3

query I rowsort
SELECT ALL - col1 + + 36 * col1 + col1 AS col1 FROM tab2 AS cor0
----
1836
2412
2772

query I rowsort
SELECT DISTINCT 34 * col1 + + + 10 + col0 AS col1 FROM tab1 AS cor0
----
1699
265
537

query I rowsort
SELECT ALL col1 * - + col1 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT * 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 + + ( col1 ) * col2 col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2568
SELECT CAST( + MAX( ALL col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2568
SELECT CAST ( + MAX ( ALL col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 ) * 24 IN ( + 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( - 15 ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + MIN( ALL + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2571
SELECT + MIN ( ALL + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT col2 DIV col2 * + ( col2 ) * col0 AS col1 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2572
SELECT col2 / col2 * + ( col2 ) * col0 AS col1 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 69 col0 FROM tab2
----
-3519
-4623
-5313

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 NOT IN ( - - col2 * 98 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2575
SELECT ALL SUM( ALL - col2 ) DIV + - ( - ( CAST( + ( 55 ) AS SIGNED ) ) ) AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL SUM ( ALL - col2 ) / + - ( - ( CAST ( + ( 55 ) AS INTEGER ) ) ) AS col1 FROM tab2
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 57 - col1 * + col1 ) IS NULL AND NOT NULL IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2577
SELECT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2577
SELECT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT ALL - col1 - - - col0, - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-141
-64
-142
-75
-97
-46

query I rowsort
SELECT + + 70 + - col1 AS col0 FROM tab2 AS cor0
----
-7
19
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 59 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 28 * 9 + + AVG ( + col0 ) FROM tab1 AS cor0 WHERE 81 * + - 64 >= col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT col2 * + 33 + - 19 DIV + col1 FROM tab1 AS cor0
----
1944
2244
3167

skipif mysql # not compatible
query I rowsort label-2582
SELECT col2 * + 33 + - 19 / + col1 FROM tab1 AS cor0
----
1944
2244
3167

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT - 76 = ( col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT COUNT( * ) + - - 71 col1 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2584
SELECT COUNT ( * ) + - - 71 col1 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT - + MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT - + MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 + + col0 ) IS NOT NULL
----

query I rowsort
SELECT - 8 * - - 62 FROM tab2 AS cor0
----
-496
-496
-496

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 40 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + + 49 + ( + 97 ) + - MIN( ALL + col0 ) col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2590
SELECT ALL + + 49 + ( + 97 ) + - MIN ( ALL + col0 ) col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 * - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2592
SELECT - col0 AS col1, col0 + - + 41 DIV 21 AS col2 FROM tab2 AS cor0
----
-46
45
-64
63
-75
74

skipif mysql # not compatible
query II rowsort label-2592
SELECT - col0 AS col1, col0 + - + 41 / 21 AS col2 FROM tab2 AS cor0
----
-46
45
-64
63
-75
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col2 + - col2 * + - 82 - + col1 col2 FROM tab0 AS cor0
----
1009
7580
8216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT ALL - CAST( NULL AS SIGNED ) * + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - CAST ( NULL AS INTEGER ) * + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2595
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2595
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL + col1 * - + 74, col2 FROM tab2
----
-3774
23
-4958
58
-5698
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT MIN( - ( - 15 ) ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2597
SELECT MIN ( - ( - 15 ) ) FROM tab2
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL + COUNT( * ) * + ( ( + ( + 75 ) ) ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL + COUNT ( * ) * + ( ( + ( + 75 ) ) ) FROM tab0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL CAST( + - CAST( - col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL CAST ( + - CAST ( - col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query II rowsort
SELECT - col1 AS col2, 64 FROM tab1
----
-14
64
-47
64
-5
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + + COUNT( * ) AS col0, - 28 + COUNT( * ) FROM tab1 AS cor0
----
3
-25

skipif mysql # not compatible
query II rowsort label-2602
SELECT + + COUNT ( * ) AS col0, - 28 + COUNT ( * ) FROM tab1 AS cor0
----
3
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + col2 ) col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT - col0 DIV - 95 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2604
SELECT - col0 / - 95 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 55 + - + col0 FROM tab0 cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 45 * - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT ALL - 71 DIV + 89 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - 71 / + 89 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( 97 ) NOT IN ( col2 * + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT + - SUM( DISTINCT + - ( col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2609
SELECT + - SUM ( DISTINCT + - ( col0 ) ) FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT col0 + + 9 FROM tab2 AS cor0
----
55
73
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT ALL 60 * - + CAST( NULL AS SIGNED ) + + + SUM( + col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL 60 * - + CAST ( NULL AS INTEGER ) + + + SUM ( + col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT - + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2612
SELECT - + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE + col2 <= col1 / - col2
----
0

skipif mysql # not compatible
query I rowsort label-2613
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 <= col1 / - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT - col0 DIV + - ( + - col2 ) + col1 * 26 FROM tab2 AS cor0
----
1324
1741
2001

skipif mysql # not compatible
query I rowsort label-2614
SELECT - col0 / + - ( + - col2 ) + col1 * 26 FROM tab2 AS cor0
----
1324
1741
2001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col1 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT ALL COUNT( * ) AS col2, COUNT( * ) - + 39 FROM tab2
----
3
-36

skipif mysql # not compatible
query II rowsort label-2616
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) - + 39 FROM tab2
----
3
-36

query I rowsort
SELECT - col0 + - ( + ( col2 ) ) FROM tab0
----
-196
-62
-97

query II rowsort
SELECT + 84, ( + + col0 ) FROM tab0
----
84
15
84
87
84
97

query I rowsort
SELECT DISTINCT - + col1 - + ( + + 39 ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - 20 ) AS col2 FROM tab2
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + 23 * - 88 * - ( + COUNT( * ) ) FROM tab1
----
6072

skipif mysql # not compatible
query I rowsort label-2621
SELECT + 23 * - 88 * - ( + COUNT ( * ) ) FROM tab1
----
6072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col0 * - col0 - + col1 + col0 + 50 col0 FROM tab2 AS cor0
----
2184
4173
5741

query I rowsort
SELECT DISTINCT + 79 - col1 FROM tab1 AS cor0
----
32
65
74

query I rowsort
SELECT DISTINCT + - 74 * col0 + - col1 AS col2 FROM tab1 cor0
----
-3788
-6295
-6781

query I rowsort
SELECT + 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query II rowsort
SELECT + col0 AS col1, col2 FROM tab0 WHERE NOT - - col1 IS NULL
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT - MAX( ALL + 54 ) * + ( 53 ) AS col1 FROM tab2
----
-2862

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT - MAX ( ALL + 54 ) * + ( 53 ) AS col1 FROM tab2
----
-2862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 = + 49 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, 56 AS col1 FROM tab0
----
1
56
21
56
81
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL MIN( + 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL MIN ( + 30 ) FROM tab2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2632
SELECT - col2 col2, - CAST( - 55 AS SIGNED ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
55
-68
55
-96
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2632
SELECT - col2 col2, - CAST ( - 55 AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
55
-68
55
-96
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + ( MIN( col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2633
SELECT + ( MIN ( col1 ) ) FROM tab0
----
1

query I rowsort
SELECT - - col2 * - 92 FROM tab2 WHERE NOT + col0 * - 75 IS NOT NULL
----

query I rowsort
SELECT ALL - 33 + - 44 * col0 AS col1 FROM tab1
----
-2277
-3773
-4037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT col2 + col0 * col1 FROM tab0 AS cor0 WHERE NOT ( col0 * - CAST( + + col0 AS SIGNED ) + + + col1 / + col0 * 10 > NULL )
----

skipif mysql # not compatible
query I rowsort label-2636
SELECT col2 + col0 * col1 FROM tab0 AS cor0 WHERE NOT ( col0 * - CAST ( + + col0 AS INTEGER ) + + + col1 / + col0 * 10 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT CAST( col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2637
SELECT CAST ( col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - 66 * + - 74 FROM tab0 AS cor0
----
4884
4884
4884

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT ( + col1 ) + + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-2639
SELECT ( + col1 ) + + col0 / - col1 AS col2 FROM tab0 AS cor0
----
-96
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + SUM( + col2 ) + + + COUNT( * ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-2640
SELECT + SUM ( + col2 ) + + + COUNT ( * ) FROM tab1
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * col0 + - 42 AS col2 FROM tab0 WHERE + CAST( + + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col0 + - 42 AS col2 FROM tab0 WHERE + CAST ( + + col0 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT + + ( 52 ) FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL + + col0 + + 85 AS col2 FROM tab1 AS cor0 WHERE ( ( + - col1 ) ) * 70 IS NULL
----

query I rowsort
SELECT + ( - 11 ) AS col1 FROM tab0 cor0
----
-11
-11
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2646
SELECT ALL col0 + - col0 DIV col1 FROM tab0 cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL col0 + - col0 / col1 FROM tab0 cor0
----
0
15
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2647
SELECT 83 * - - MAX( - + ( - + 79 ) ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT 83 * - - MAX ( - + ( - + 79 ) ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col0, - col1 + + 15 FROM tab2 AS cor0
----
46
-36
64
-62
75
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 col1, col2 FROM tab2 AS cor0
----
-11
23
-11
40
-11
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT + COUNT( * ) col0, + ( - - ( - + ( + SUM( col2 ) ) ) ) FROM tab0 AS cor0
----
3
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2650
SELECT + COUNT ( * ) col0, + ( - - ( - + ( + SUM ( col2 ) ) ) ) FROM tab0 AS cor0
----
3
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL - COUNT( * ) * 43 col0 FROM tab0, tab1 cor0
----
-387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2651
SELECT ALL - COUNT ( * ) * 43 col0 FROM tab0, tab1 cor0
----
-387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT ALL + 26 * + - CAST( NULL AS SIGNED ) * + ( - 19 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + 26 * + - CAST ( NULL AS INTEGER ) * + ( - 19 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - + 31 FROM tab1
----
-116
-122
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT DISTINCT + col0 * 36 DIV + - col2 FROM tab1
----
-19
-48
-51

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + col0 * 36 / + - col2 FROM tab1
----
-19
-48
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 79 ) IN ( + + 57 )
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 16 + - col2 + col2 FROM tab2 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT COUNT( - col1 ) + + 20 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT COUNT ( - col1 ) + + 20 FROM tab1 AS cor0
----
23

query I rowsort
SELECT ALL - col0 - - col0 * + col0 FROM tab0 cor0
----
210
7482
9312

query II rowsort
SELECT DISTINCT col0 AS col0, 25 + + + col2 + col1 + 1 FROM tab0 AS cor0 WHERE ( - ( + 43 ) ) IS NOT NULL OR NOT col0 NOT BETWEEN - 43 AND NULL
----
15
154
87
57
97
126

query II rowsort
SELECT DISTINCT + col0, 30 FROM tab2
----
46
30
64
30
75
30

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 * + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT col1 DIV 53 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2663
SELECT col1 / 53 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT DISTINCT + COUNT( * ) * - 44 col2 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2664
SELECT DISTINCT + COUNT ( * ) * - 44 col2 FROM tab1 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT - COUNT( + col1 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2665
SELECT DISTINCT - COUNT ( + col1 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 57 * col0 AS col1 FROM tab0 AS cor0
----
-4959
-5529
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT - MAX( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT - MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( 3 ) FROM tab2
----
3

query II rowsort
SELECT col2 AS col0, col1 AS col0 FROM tab0 WHERE NOT + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT col2 + - CAST( NULL AS SIGNED ) / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT col2 + - CAST ( NULL AS INTEGER ) / - col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + 5, + col0 * - col0 col0 FROM tab2
----
51
-2116
69
-4096
80
-5625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2672
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 41 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT CAST ( NULL AS REAL ) + 41 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 97 * + 38 + + - 65 IS NULL
----

query I rowsort
SELECT DISTINCT + + ( col1 ) * + 61 * + - col1 + + 23 AS col0 FROM tab1 AS cor0
----
-11933
-134726
-1502

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + col1 + col0 * + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT + COUNT( * ) * + 87 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT + COUNT ( * ) * + 87 FROM tab2 AS cor0
----
261

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT COUNT( * ) * + 79 AS col0 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-2678
SELECT COUNT ( * ) * + 79 AS col0 FROM tab2
----
237

query I rowsort
SELECT 72 + + ( - - col1 ) + 23 * + col0 FROM tab1 AS cor0
----
1259
2032
2212

query I rowsort
SELECT DISTINCT + + 1 + + + col2 AS col0 FROM tab0 AS cor0
----
100
11
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2681
SELECT DISTINCT + col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 66 * - 75 + col2 FROM tab1 AS cor0
----
-4854
-4882
-4891

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE col1 * - col1 <> - col1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col2 * 48 * + col0 - col2 FROM tab1
----
234912
240661
296956

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE - 68 + - - col2 * + col2 >= col0 / 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * + + col1 AS col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT col2 * ( - col0 ) AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 1 FROM tab2 WHERE NOT + 19 + - col2 * 41 NOT BETWEEN col1 / + 27 + - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 71 * + 74 NOT BETWEEN NULL AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, 16 AS col1 FROM tab2
----
23
16
40
16
58
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT + 49 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2692
SELECT + 49 / - + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( + 28 ) * + col0 + - col2 * + - col0 * - col1 AS col0 FROM tab0
----
-12319
-20706
-57525

query I rowsort
SELECT col2 - col0 * - + 76 AS col2 FROM tab0
----
1187
6622
7471

query I rowsort
SELECT ALL - 70 * + - 5 FROM tab1
----
350
350
350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2696
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col0 + + col1 > CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2696
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - col0 + + col1 > CAST ( - col0 AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT - 24, + col0 AS col1 FROM tab1 AS cor0
----
-24
51
-24
85
-24
91

query I rowsort
SELECT ALL - + col2 * - col1 AS col0 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE 86 * - - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2700
SELECT - col1 - + col1 AS col1 FROM tab1 cor0 WHERE NOT - CAST( + - 4 AS DECIMAL ) IS NULL
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-2700
SELECT - col1 - + col1 AS col1 FROM tab1 cor0 WHERE NOT - CAST ( + - 4 AS REAL ) IS NULL
----
-10
-28
-94

query II rowsort
SELECT ALL + ( 69 ) AS col1, col0 FROM tab0 AS cor0
----
69
15
69
87
69
97

query II rowsort
SELECT - - col0 AS col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query II rowsort
SELECT - - 80 * col1 AS col0, col0 * - + col0 FROM tab0 AS cor0
----
1680
-7569
6480
-225
80
-9409

query I rowsort
SELECT DISTINCT + ( + + 61 ) FROM tab0 cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - - 56 * + COUNT( * ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-2705
SELECT - - 56 * + COUNT ( * ) FROM tab1 AS cor0
----
168

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab1 WHERE NOT 46 NOT IN ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2707
SELECT - 46 col0, CAST( - 30 AS SIGNED ) AS col1 FROM tab0
----
-46
-30
-46
-30
-46
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2707
SELECT - 46 col0, CAST ( - 30 AS INTEGER ) AS col1 FROM tab0
----
-46
-30
-46
-30
-46
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2708
SELECT DISTINCT * FROM tab1 WHERE - 60 + + + 30 - + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2708
SELECT DISTINCT * FROM tab1 WHERE - 60 + + + 30 - + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT DISTINCT + 70 DIV col1 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + 70 / col1 FROM tab1
----
1
14
5

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - 28 NOT BETWEEN col0 AND NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE - 39 >= col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * 77 * - col2 <= ( - - col0 * + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 col1 FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT MAX( + + col2 ) + COUNT( * ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT MAX ( + + col2 ) + COUNT ( * ) AS col1 FROM tab2
----
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 35 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 5 / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 4 FROM tab2 AS cor0 WHERE 7 IS NOT NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT ALL - - 93 - - COUNT( * ) AS col0, + MIN( 10 ) FROM tab0 AS cor0
----
96
10

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL - - 93 - - COUNT ( * ) AS col0, + MIN ( 10 ) FROM tab0 AS cor0
----
96
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2719
SELECT ALL - 87 - 14 DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL - 87 - 14 / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 55 + + 58 >= + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT - + ( - 48 ) - - - col2 + + - col1 * + col2 * CAST( + col1 AS SIGNED ) * ( 79 ) AS col1 FROM tab1 AS cor0
----
-116536
-11866768
-1486512

skipif mysql # not compatible
query I rowsort label-2721
SELECT - + ( - 48 ) - - - col2 + + - col1 * + col2 * CAST ( + col1 AS INTEGER ) * ( 79 ) AS col1 FROM tab1 AS cor0
----
-116536
-11866768
-1486512

query I rowsort
SELECT DISTINCT 47 - - - ( ( + - col2 ) ) AS col1 FROM tab2
----
105
70
87

query II rowsort
SELECT - - col2, col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
51
40
77
58
67

query I rowsort
SELECT col0 * - - col1 * col0 AS col2 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2725
SELECT ALL CAST( + 96 AS SIGNED ) * - + COUNT( - col0 ) DIV + COUNT( * ) AS col1, - MAX( ALL - 63 ) - + 16 - + CAST( NULL AS SIGNED ) + - AVG ( 54 ) AS col0 FROM tab0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL CAST ( + 96 AS INTEGER ) * - + COUNT ( - col0 ) / + COUNT ( * ) AS col1, - MAX ( ALL - 63 ) - + 16 - + CAST ( NULL AS INTEGER ) + - AVG ( 54 ) AS col0 FROM tab0
----
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) / - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) / - col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT + - MAX( - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2727
SELECT + - MAX ( - col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2728
SELECT CAST( ( - - COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2728
SELECT CAST ( ( - - COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2729
SELECT DISTINCT col1 AS col2, 51 + + 79 DIV - 36 AS col1 FROM tab2 AS cor0
----
51
49
67
49
77
49

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT col1 AS col2, 51 + + 79 / - 36 AS col1 FROM tab2 AS cor0
----
51
49
67
49
77
49

query I rowsort
SELECT - ( + + 81 ) FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT - col1 * - 72 FROM tab2
----
3672
4824
5544

query III rowsort
SELECT * FROM tab1 WHERE NOT 48 * 89 * col0 * 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col2, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ( + - col0 ) * - 58 FROM tab2 AS cor0
----
2668
3712
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT + col1 * + col1 * + col0 DIV + 1 col2 FROM tab2 AS cor0
----
119646
336675
379456

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2735
SELECT + col1 * + col1 * + col0 / + 1 col2 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL + 63 * + - MAX( + col0 ) * - SUM( DISTINCT - col1 ) - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col1 * + 62 + - col0 ) IS NULL
----
-921378

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + 63 * + - MAX ( + col0 ) * - SUM ( DISTINCT - col1 ) - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col1 * + 62 + - col0 ) IS NULL
----
-921378

query I rowsort
SELECT DISTINCT + 4 * - + 19 AS col2 FROM tab0 cor0
----
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 45 < - - col2 * + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 66 + - - ( + col1 ) + + - 13 AS col2 FROM tab2
----
-12
-2
-28

query I rowsort
SELECT DISTINCT - + 84 AS col1 FROM tab0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2742
SELECT DISTINCT * FROM tab1 WHERE CAST( + ( + col2 ) AS SIGNED ) / col2 * - - col2 NOT BETWEEN + 75 + + 82 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2742
SELECT DISTINCT * FROM tab1 WHERE CAST ( + ( + col2 ) AS INTEGER ) / col2 * - - col2 NOT BETWEEN + 75 + + 82 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT 65 * COUNT( * ) AS col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-2743
SELECT 65 * COUNT ( * ) AS col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
195

query III rowsort
SELECT * FROM tab2 WHERE 78 - - col1 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2745
SELECT * FROM tab0 WHERE - + ( - 49 ) * - + CAST( NULL AS SIGNED ) NOT IN ( 61 * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-2745
SELECT * FROM tab0 WHERE - + ( - 49 ) * - + CAST ( NULL AS INTEGER ) NOT IN ( 61 * - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN - col2 AND + ( col2 )
----

query I rowsort
SELECT ALL - col2 + - col1 + col1 + + col1 - - col0 FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT ALL - col1 + + - col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-102
-134
-154

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 92 col0 FROM tab0 AS cor0 WHERE + col1 * col1 < + col2
----
92

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE + - ( + ( - ( + 66 ) ) ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT COUNT( * ) FROM tab1 WHERE NOT - + col2 BETWEEN - - col0 AND CAST( + col1 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2752
SELECT COUNT ( * ) FROM tab1 WHERE NOT - + col2 BETWEEN - - col0 AND CAST ( + col1 AS INTEGER )
----
3

query I rowsort
SELECT - col2 * + col2 * + - col0 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT + col1 * 48 AS col0 FROM tab0
----
1008
3888
48

query I rowsort
SELECT 80 * 8 AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
640
640
640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2756
SELECT + 69 * SUM( col0 ) * - + COUNT( * ) AS col2, - COUNT( * ) * - COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
-46989
NULL

skipif mysql # not compatible
query II rowsort label-2756
SELECT + 69 * SUM ( col0 ) * - + COUNT ( * ) AS col2, - COUNT ( * ) * - COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
-46989
NULL

query I rowsort
SELECT DISTINCT - 39 * 49 AS col1 FROM tab1 AS cor0
----
-1911

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 <> col0 * + 49
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + 62 AS col2 FROM tab2
----
108
126
137

query I rowsort
SELECT ALL - ( + 86 ) + - 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 37bcc53ef7633ee53e59d399bacb8ffb

query I rowsort
SELECT DISTINCT ( - 12 ) + + + col1 * ( + col2 ) + col1 AS col0 FROM tab0 AS cor0
----
219
3876
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 14 * - col1 * - + col1 * - 13 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT + COUNT( * ) * - 57 AS col0 FROM tab2 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + COUNT ( * ) * - 57 AS col0 FROM tab2 cor0
----
-171

query I rowsort
SELECT ALL col1 * + col2 - + col2 FROM tab2 AS cor0
----
1150
3040
3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * - col1 col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT DISTINCT + + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT + + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT ALL + ( + col1 ) DIV 77 * + + col1 DIV - ( col2 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + ( + col1 ) / 77 * + + col1 / - ( col2 ) FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL col2 AS col2, col2 + + 88 FROM tab0 AS cor0
----
10
98
47
135
99
187

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT SUM( - col1 ) AS col2 FROM tab0 WHERE - + col2 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-2770
SELECT SUM ( - col1 ) AS col2 FROM tab0 WHERE - + col2 IS NOT NULL
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT COUNT( - - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT COUNT ( - - col1 ) AS col0 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2772
SELECT DISTINCT col0 DIV + col2, + 27 AS col1 FROM tab2
----
1
27
2
27

skipif mysql # not compatible
query II rowsort label-2772
SELECT DISTINCT col0 / + col2, + 27 AS col1 FROM tab2
----
1
27
2
27

query I rowsort
SELECT DISTINCT col2 + - 98 * - col1 AS col2 FROM tab0
----
197
2068
7985

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL MAX( + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL MAX ( + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT + COUNT( * ) AS col2, + 20 + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
3
11

skipif mysql # not compatible
query II rowsort label-2775
SELECT + COUNT ( * ) AS col2, + 20 + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
3
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT - MIN( DISTINCT + 4 ) AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - MIN ( DISTINCT + 4 ) AS col1 FROM tab0
----
-4

query II rowsort
SELECT ALL - col0 + - - col1 + - col1 - - col2 AS col1, - 84 AS col0 FROM tab2
----
-17
-84
-23
-84
-24
-84

query I rowsort
SELECT - 48 + + 66 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT ALL - 62 + - col2 - - 49 AS col0 FROM tab0 AS cor0
----
-112
-23
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT + CAST( + col2 AS SIGNED ) + - 46 * col2 FROM tab1 AS cor0
----
-2655
-3060
-4320

skipif mysql # not compatible
query I rowsort label-2780
SELECT + CAST ( + col2 AS INTEGER ) + - 46 * col2 FROM tab1 AS cor0
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + - 53 + - SUM( ALL + + col1 ) FROM tab2 AS cor0
----
-248

skipif mysql # not compatible
query I rowsort label-2781
SELECT + - 53 + - SUM ( ALL + + col1 ) FROM tab2 AS cor0
----
-248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT + ( - 64 ) * - - MAX( 40 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2560

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT + ( - 64 ) * - - MAX ( 40 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT ( + MIN( DISTINCT + + col2 ) ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT ( + MIN ( DISTINCT + + col2 ) ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT + + 48 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT + + 48 / - + col2 AS col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - + ( 97 ) * + 33 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query II rowsort
SELECT DISTINCT - 69 AS col0, ( + col2 ) * - col2 + + + col2 + col2 * 74 AS col1 FROM tab0
----
-69
-2376
-69
1316
-69
650

query II rowsort
SELECT DISTINCT + 12, + col2 AS col0 FROM tab2
----
12
23
12
40
12
58

query II rowsort
SELECT DISTINCT + 53, + col1 AS col0 FROM tab1
----
53
14
53
47
53
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN ( - col2 + + - col1 + + 20 ) AND col1
----
87
21
10
97
1
99

query I rowsort
SELECT + ( + - 71 ) AS col0 FROM tab0 AS cor0
----
-71
-71
-71

query II rowsort
SELECT col2 AS col0, ( 3 ) FROM tab1 AS cor0
----
59
3
68
3
96
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2793
SELECT DISTINCT col0 AS col0, - 47 DIV + col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-2793
SELECT DISTINCT col0 AS col0, - 47 / + col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2794
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT + 53 * + - col2 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 53 * + - col2 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + ( - 60 ) FROM tab2 AS cor0
----
-106
-124
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 col1 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - 82 + + MAX( DISTINCT + 82 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT - 82 + + MAX ( DISTINCT + 82 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT 49 + + MAX( - + col1 ) AS col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2799
SELECT 49 + + MAX ( - + col1 ) AS col1 FROM tab1 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT + + CAST( + col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2800
SELECT + + CAST ( + col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL - COUNT( * ) + - 16 AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - COUNT ( * ) + - 16 AS col1 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col1 BETWEEN 92 + - 74 * - 86 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0, - col0 AS col0 FROM tab0
----
15
-15
87
-87
97
-97

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE + 81 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE + + ( col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE + + ( col2 ) IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - + 19 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT col2 DIV - 91 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2807
SELECT col2 / - 91 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 77 * - col2 AS col0 FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL + SUM( - + col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + SUM ( - + col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - 85 + + ( - 99 ) + + 6 * + col1 AS col2 FROM tab0
----
-178
-58
302

query II rowsort
SELECT DISTINCT col1, + col1 - - col2 + + 84 - - col2 FROM tab0
----
1
283
21
125
81
259

query II rowsort
SELECT - col1 * + 68 * - 90 AS col2, 54 FROM tab1 cor0
----
287640
54
30600
54
85680
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( - col2 ) ) NOT BETWEEN + 81 * - - col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col0 + + ( + col1 ) * ( - col1 ) AS col1, - col0 FROM tab1 AS cor0
----
-110
-85
-2300
-91
-247
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT + COUNT( * ) DIV + - 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT + COUNT ( * ) / + - 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2816
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT 3 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2817
SELECT 3 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT - - col2 AS col0, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT - col1 * + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL + - col2, col1 AS col0 FROM tab1 cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT + - 71 DIV 7 * + ( + COUNT( * ) ) * - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2821
SELECT + - 71 / 7 * + ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT col1 * + 37 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1887
2479
2849

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 WHERE + 46 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 WHERE + 46 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT ( - COUNT( * ) ) AS col1, - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2824
SELECT ( - COUNT ( * ) ) AS col1, - COUNT ( * ) FROM tab1
----
-3
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL 92 + - MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 92 + - MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
45

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT - - ( + col1 ) DIV 50 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2828
SELECT - - ( + col1 ) / 50 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + + MIN( - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + + MIN ( - col2 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + + col2 * + - col2 ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 10 / 33 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE + ( + 12 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + ( + - ( - col2 ) ) + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT DISTINCT + ( - 45 ) + + + col1 AS col1, - 76 FROM tab1 AS cor0
----
-31
-76
-40
-76
2
-76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 30 > - + 6 + + col1
----

query I rowsort
SELECT - 23 * - - 7 + + col1 AS col2 FROM tab2 AS cor0
----
-110
-84
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - ( - + MIN( - col2 ) ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2839
SELECT - ( - + MIN ( - col2 ) ) col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2840
SELECT DISTINCT + CAST( MAX( - ( col0 ) ) AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2840
SELECT DISTINCT + CAST ( MAX ( - ( col0 ) ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
-46
NULL

query II rowsort
SELECT - 0 - + 93 AS col1, 33 + + col0 AS col1 FROM tab2
----
-93
108
-93
79
-93
97

query I rowsort
SELECT DISTINCT + 51 * + col0 FROM tab1
----
2601
4335
4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT + col0 + 90 - - col0 / 19 FROM tab1 WHERE col0 < + - 2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2843
SELECT + col0 + 90 - - col0 / 19 FROM tab1 WHERE col0 < + - 2 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 57 * + 8 AS col1 FROM tab0
----
-456
-456
-456

query I rowsort
SELECT - col2 + - 86 FROM tab1 AS cor0
----
-145
-154
-182

query I rowsort
SELECT 90 + - + col0 + - - col1 AS col1 FROM tab2 AS cor0
----
103
82
95

query I rowsort
SELECT DISTINCT + 7 + 81 * - col0 AS col1 FROM tab2 AS cor0
----
-3719
-5177
-6068

query I rowsort
SELECT DISTINCT - - col2 + - - ( - 38 ) FROM tab2 AS cor0
----
-15
2
20

query I rowsort
SELECT DISTINCT col0 * - + col1 * + col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT + 55 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT - - SUM( ALL - 45 ) FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - - SUM ( ALL - 45 ) FROM tab1 AS cor0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT DISTINCT - col2 * col0 * col0 / - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - col2 * col0 * col0 / - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT + + ( + - col0 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2853
SELECT + + ( + - col0 ) / - col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, - col1 col1 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT col0 * - - col1 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT ALL ( col1 ) + - - col1 DIV + + col0 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL ( col1 ) + - - col1 / + + col0 FROM tab0
----
1
21
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + - - 55 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + - - 55 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2859
SELECT DISTINCT CAST( NULL AS SIGNED ), 93 col2 FROM tab0 AS cor0
----
NULL
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2859
SELECT DISTINCT CAST ( NULL AS INTEGER ), 93 col2 FROM tab0 AS cor0
----
NULL
93

query I rowsort
SELECT + - 99 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-99
-99
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 * - 66 * - - ( 20 ) col1 FROM tab2 cor0
----
1396560
3379200
5742000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT - CAST( - col0 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-2863
SELECT - CAST ( - col0 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - - MAX( ALL - + col1 ) * - COUNT( * ) * - 73 + ( - - ( + COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-1092

skipif mysql # not compatible
query I rowsort label-2864
SELECT - - MAX ( ALL - + col1 ) * - COUNT ( * ) * - 73 + ( - - ( + COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-1092

query I rowsort
SELECT DISTINCT - ( + + 66 ) * - col2 * col1 + - 72 AS col1 FROM tab0 AS cor0
----
13788
251190
6462

onlyif mysql # DIV for integer division: 
query I rowsort label-2866
SELECT ALL col2 DIV + col1 + - 97 + - + col0 col0 FROM tab1 AS cor0
----
-142
-171
-187

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2866
SELECT ALL col2 / + col1 + - 97 + - + col0 col0 FROM tab1 AS cor0
----
-142
-171
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT col1 + 21 AS col2 FROM tab2 AS cor0
----
72
88
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT DISTINCT - - col0 + - CAST( - 60 AS SIGNED ) FROM tab1 AS cor0
----
111
145
151

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT - - col0 + - CAST ( - 60 AS INTEGER ) FROM tab1 AS cor0
----
111
145
151

query I rowsort
SELECT 52 + + - 9 AS col2 FROM tab2
----
43
43
43

query I rowsort
SELECT DISTINCT col2 * + ( - col0 ) AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT - ( 62 ) * - col1 + - 95 - ( - + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2872
SELECT - ( 62 ) * - col1 + - 95 - ( - + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT ALL MAX( + 40 ) * - SUM( DISTINCT + + col1 ), COUNT( * ) AS col1 FROM tab2
----
-7800
3

skipif mysql # not compatible
query II rowsort label-2873
SELECT ALL MAX ( + 40 ) * - SUM ( DISTINCT + + col1 ), COUNT ( * ) AS col1 FROM tab2
----
-7800
3

query III rowsort
SELECT * FROM tab1 WHERE + ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT + 46 DIV + 11 col0 FROM tab2
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2875
SELECT + 46 / + 11 col0 FROM tab2
----
4
4
4

query I rowsort
SELECT DISTINCT + 16 + col1 FROM tab0
----
17
37
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 WHERE + + col2 * col0 * col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2877
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 WHERE + + col2 * col0 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT + 78 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT + 78 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * - - 47 - - 94 + - col2 * + - 97 AS col1 FROM tab0 AS cor0
----
2444
5044
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT - + CAST( - col2 AS SIGNED ) * + 90 + ( + + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2880
SELECT - + CAST ( - col2 AS INTEGER ) * + 90 + ( + + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NOT 97 / - col2 <> - col1
----

query I rowsort
SELECT DISTINCT - - 2 AS col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL 15 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT col1 DIV + + col0 + + + 47 FROM tab2 AS cor0
----
47
48
48

skipif mysql # not compatible
query I rowsort label-2884
SELECT col1 / + + col0 + + + 47 FROM tab2 AS cor0
----
47
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT + col1 DIV col1 + + col2 + - - 7 FROM tab0 AS cor0
----
107
18
55

skipif mysql # not compatible
query I rowsort label-2885
SELECT + col1 / col1 + + col2 + - - 7 FROM tab0 AS cor0
----
107
18
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2886
SELECT ALL - COUNT( * ) AS col0, + CAST( - 49 AS SIGNED ) FROM tab1
----
-3
-49

skipif mysql # not compatible
query II rowsort label-2886
SELECT ALL - COUNT ( * ) AS col0, + CAST ( - 49 AS INTEGER ) FROM tab1
----
-3
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT CAST( + - 28 AS SIGNED ) FROM tab2
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-2887
SELECT CAST ( + - 28 AS INTEGER ) FROM tab2
----
-28
-28
-28

query II rowsort
SELECT col1 AS col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col1 * - - col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + 83 + + 62 AS col0 FROM tab2
----
145
145
145

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT DISTINCT - ( - - col1 ) DIV col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - ( - - col1 ) / col2 FROM tab0
----
-1
-2
0

query II rowsort
SELECT col1 * + - col2 AS col1, + 9 - - 22 FROM tab2 WHERE NOT NULL IN ( + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT ALL - col0 * 71 * + ( - col1 ) + + col0 DIV - col1 + + col0 FROM tab1
----
30243
303757
50742

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - col0 * 71 * + ( - col1 ) + + col0 / - col1 + + col0 FROM tab1
----
30243
303757
50742

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT DISTINCT + COUNT( * ), - 82 + ( + + 26 ) AS col0 FROM tab0 AS cor0
----
3
-56

skipif mysql # not compatible
query II rowsort label-2894
SELECT DISTINCT + COUNT ( * ), - 82 + ( + + 26 ) AS col0 FROM tab0 AS cor0
----
3
-56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2895
SELECT ALL CAST( col0 AS SIGNED ) + col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL CAST ( col0 AS INTEGER ) + col0 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 61 * col2 + - col2 * 67 AS col0 FROM tab0 cor0
----
-282
-594
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 IS NOT NULL OR + + 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT DISTINCT MAX( + + col0 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT MAX ( + + col0 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT + 55 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
55

query I rowsort
SELECT + + ( + - col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + + 73 - - + 37 FROM tab1 AS cor0
----
110
110
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT CAST( NULL AS SIGNED ) / + 19 - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT CAST ( NULL AS INTEGER ) / + 19 - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + + 44 - + - 83 + COUNT( * ) FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-2903
SELECT + + 44 - + - 83 + COUNT ( * ) FROM tab2 AS cor0
----
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 - - col1 col1 FROM tab1 cor0
----
124
82
91

query I rowsort
SELECT DISTINCT - + 36 * - + col1 - 3 FROM tab1 AS cor0
----
1689
177
501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT + CAST( + 27 AS SIGNED ) / - + CAST( NULL AS SIGNED ) - 47 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT + CAST ( + 27 AS INTEGER ) / - + CAST ( NULL AS INTEGER ) - 47 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + MAX( DISTINCT + + 0 ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2907
SELECT + MAX ( DISTINCT + + 0 ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= 85
----

skipif mysql # not compatible
query I rowsort label-2908
SELECT + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= 85
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT - col2 DIV - - 1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2909
SELECT - col2 / - - 1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + - col2 * + col0 + - + 52 FROM tab2 cor0
----
-1110
-2612
-4402

query I rowsort
SELECT DISTINCT - 30 * - col2 * - - col0 AS col2 FROM tab2 AS cor0
----
130500
31740
76800

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT + MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT ALL + col1 + - - col0, col2 + - 67 - - + 50 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE NOT NULL <= - col2 - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2915
SELECT - ( col2 ) * + col1 + + col2 DIV - + col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2915
SELECT - ( col2 ) * + col1 + + col2 / - + col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / col2 + - + col0 IS NOT NULL
----

query II rowsort
SELECT + col1 + + col2, + 71 AS col0 FROM tab0
----
100
71
128
71
31
71

query I rowsort
SELECT col0 * - col1 + + + 59 * - - col2 FROM tab1
----
-265
3056
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT DISTINCT + col1 + - 53 DIV + 58 - 72 col2 FROM tab2 AS cor0
----
-21
-5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2919
SELECT DISTINCT + col1 + - 53 / + 58 - 72 col2 FROM tab2 AS cor0
----
-21
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2920
SELECT - - CAST( - col2 AS SIGNED ) col2, col1 * + + col1 FROM tab1 AS cor0
----
-59
25
-68
2209
-96
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2920
SELECT - - CAST ( - col2 AS INTEGER ) col2, col1 * + + col1 FROM tab1 AS cor0
----
-59
25
-68
2209
-96
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - + COUNT( * ) + - 12 AS col1 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - + COUNT ( * ) + - 12 AS col1 FROM tab1 AS cor0
----
-15

query II rowsort
SELECT ALL - 55 + - 98, + col2 * + - 8 AS col2 FROM tab1 AS cor0
----
-153
-472
-153
-544
-153
-768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT ALL + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + col0 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 4 col0, + col1 AS col0 FROM tab0
----
4
1
4
21
4
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2926
SELECT + COUNT( * ) DIV - 35 + SUM( - + 9 ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2926
SELECT + COUNT ( * ) / - 35 + SUM ( - + 9 ) AS col1 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT COUNT( * ) col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2927
SELECT DISTINCT COUNT ( * ) col0 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT 45 + col0 * - CAST( + - col0 AS SIGNED ) * + 79 + + + col1 + + + 29 AS col0 FROM tab0
----
17930
598046
743386

skipif mysql # not compatible
query I rowsort label-2928
SELECT 45 + col0 * - CAST ( + - col0 AS INTEGER ) * + 79 + + + col1 + + + 29 AS col0 FROM tab0
----
17930
598046
743386

query I rowsort
SELECT ALL + 84 + - + col2 FROM tab0 AS cor0
----
-15
37
74

query I rowsort
SELECT - col2 * + + col0 + - col0 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT col1 + 3 - 71 AS col1 FROM tab1 AS cor0
----
-21
-54
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL + MIN( ALL - - col1 ) + - + 31 AS col2 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + MIN ( ALL - - col1 ) + - + 31 AS col2 FROM tab2 cor0
----
20

query I rowsort
SELECT DISTINCT col0 - + 65 AS col0 FROM tab2 AS cor0
----
-1
-19
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 - + col2 col2 FROM tab2
----
-118
-135
-153

query II rowsort
SELECT col1 AS col2, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT ( col2 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2937
SELECT + 40, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
40
NULL
40
NULL
40
NULL

skipif mysql # not compatible
query II rowsort label-2937
SELECT + 40, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
40
NULL
40
NULL
40
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2938
SELECT + COUNT( * ) DIV SUM( DISTINCT - 17 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT + COUNT ( * ) / SUM ( DISTINCT - 17 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT 28 FROM tab0 WHERE NOT NULL <= - + col0
----

query I rowsort
SELECT ALL + col1 * + 38 AS col0 FROM tab1 cor0
----
1786
190
532

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 11 NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 79 + col0 + - 93 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2 * + + col2
----

query I rowsort
SELECT DISTINCT col1 + - ( - ( - col2 ) ) + + 48 + - 22 FROM tab2 AS cor0
----
35
54
63

query II rowsort
SELECT DISTINCT col0 * - + col1 AS col1, - col0 FROM tab0 AS cor0
----
-1215
-15
-1827
-87
-97
-97

query I rowsort
SELECT ALL - 16 * + - col0 FROM tab1 AS cor0 WHERE NOT NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT - COUNT( * ) * - 87 AS col0 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - COUNT ( * ) * - 87 AS col0 FROM tab0 AS cor0
----
261

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col0 / col2 * + col2 / - + col1 NOT BETWEEN - 87 AND - col2
----

query I rowsort
SELECT + - col2 * - 53 * - ( + col1 ) FROM tab0 AS cor0
----
-11130
-201771
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT COUNT( * ) * + 62 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT COUNT ( * ) * + 62 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT COUNT( * ) + - + 28 AS col1 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT COUNT ( * ) + - + 28 AS col1 FROM tab2
----
-25

query I rowsort
SELECT + col1 FROM tab2 WHERE - + 3 < + - 4
----

query I rowsort
SELECT DISTINCT 77 + + 81 AS col2 FROM tab1 AS cor0
----
158

query I rowsort
SELECT - col0 * + ( - col1 ) AS col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 75 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL - 86 * SUM( 57 * 46 ) FROM tab0
----
-676476

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL - 86 * SUM ( 57 * 46 ) FROM tab0
----
-676476

query I rowsort
SELECT col0 + + 52 / col1 AS col0 FROM tab1 WHERE - col1 - 70 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT 38 * - COUNT( * ) col1 FROM tab1
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2958
SELECT DISTINCT 38 * - COUNT ( * ) col1 FROM tab1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT MIN( + col1 ) * 63 AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT MIN ( + col1 ) * 63 AS col0 FROM tab0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT + 18 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT + 18 / + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT DISTINCT - 14 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - 14 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 49 FROM tab2 WHERE ( 89 ) NOT BETWEEN + col1 AND ( + col0 )
----
49
49
49

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN NULL AND ( - col1 * col2 )
----

query I rowsort
SELECT DISTINCT - ( 13 ) AS col2 FROM tab0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) = col2 * + ( 8 ) - - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT COUNT( * ) + + COUNT( * ) FROM tab0 WHERE NOT - col0 * 12 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2968
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab0 WHERE NOT - col0 * 12 IS NOT NULL
----
0

query I rowsort
SELECT 62 * - 61 FROM tab0 AS cor0
----
-3782
-3782
-3782

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 16 <= - 78 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( CAST( NULL AS SIGNED ) ) + + 46 ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2971
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( CAST ( NULL AS INTEGER ) ) + + 46 ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( + 93 ) AND 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 70 NOT IN ( + col2 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + 27 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + 27 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT + - col2 + + col1 DIV - col1 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2975
SELECT + - col2 + + col1 / - col1 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT + SUM( DISTINCT + 35 ) + 71 AS col0 FROM tab1 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-2976
SELECT + SUM ( DISTINCT + 35 ) + 71 AS col0 FROM tab1 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 <= col0
----
2

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 <= col0
----
2

query I rowsort
SELECT DISTINCT 72 + - col0 AS col1 FROM tab1
----
-13
-19
21

query I rowsort
SELECT + col1 + 46 FROM tab1
----
51
60
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE NOT NULL BETWEEN ( 46 * - col1 ) AND NULL
----

query I rowsort
SELECT + col0 * - 73 FROM tab1
----
-3723
-6205
-6643

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE ( - ( + ( col0 ) ) ) BETWEEN - CAST( NULL AS SIGNED ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-2983
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE ( - ( + ( col0 ) ) ) BETWEEN - CAST ( NULL AS INTEGER ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 27 + - col0 AS col2 FROM tab1 AS cor0 WHERE col2 + + col2 IS NOT NULL
----
-112
-118
-78

query I rowsort
SELECT ALL + 23 * col0 * + - col1 * + col1 FROM tab2
----
-2751858
-7743525
-8727488

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL >= 23
----

query I rowsort
SELECT ALL + col0 * + col1 * - - col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT - col1 + + + col2 AS col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + + col1 + + 16 AS col0 FROM tab1 AS cor0
----
21
30
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 53 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * + + 56 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
2632
280
784

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 17 ) NOT IN ( - 92 * + col1 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + - MIN( + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2995
SELECT + - MIN ( + col0 ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = ( NULL )
----

query I rowsort
SELECT ALL - 18 * + 25 * + + col1 * col1 FROM tab2
----
-1170450
-2020050
-2668050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 23 * - col0 * - col2 col2 FROM tab1
----
12951484
5743008
9804325

query I rowsort
SELECT ( col1 ) * - col2 AS col1 FROM tab2 WHERE NOT ( col0 * col1 ) >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT DISTINCT CAST( + 30 AS SIGNED ) * col1 AS col1 FROM tab1
----
1410
150
420

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT CAST ( + 30 AS INTEGER ) * col1 AS col1 FROM tab1
----
1410
150
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3001
SELECT + MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL = ( col1 * - 15 * col0 ) AND NOT + ( - 20 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 44 * - + 50 AS col0 FROM tab2
----
-2200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT + col0 + 67 DIV + 38 AS col2 FROM tab1 WHERE NOT - - 74 IS NULL
----
52
86
92

skipif mysql # not compatible
query I rowsort label-3005
SELECT + col0 + 67 / + 38 AS col2 FROM tab1 WHERE NOT - - 74 IS NULL
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL COUNT( DISTINCT col0 ) FROM tab1 WHERE + ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL COUNT ( DISTINCT col0 ) FROM tab1 WHERE + ( + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3007
SELECT ALL - AVG ( + CAST( NULL AS DECIMAL ) ) * + 93 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - AVG ( + CAST ( NULL AS REAL ) ) * + 93 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + - 15 * - col1 + + 1 AS col2 FROM tab0 AS cor0
----
1216
16
316

query I rowsort
SELECT DISTINCT - 32 + - col1 AS col2 FROM tab2 cor0
----
-109
-83
-99

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 92 + - 71 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT - ( - - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3012
SELECT - ( - - COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT 9 DIV + 40 + + COUNT( + + 72 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT 9 / + 40 + + COUNT ( + + 72 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + 28 * + 96 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL - ( + 17 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - ( + 17 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT - col0 * 26 + + col2 + - col2 DIV - ( col0 ) AS col0 FROM tab0 AS cor0
----
-2252
-2422
-340

skipif mysql # not compatible
query I rowsort label-3016
SELECT - col0 * 26 + + col2 + - col2 / - ( col0 ) AS col0 FROM tab0 AS cor0
----
-2252
-2422
-340

query I rowsort
SELECT + 53 FROM tab1 cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( 39 * + 53 * + 56 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT COUNT( * ) * + 18 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3019
SELECT COUNT ( * ) * + 18 FROM tab1
----
54

query I rowsort
SELECT - col2 - 18 + col0 FROM tab2
----
-1
5
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL - 39 / + 11 AS col0 FROM tab0 WHERE NOT col0 * + col0 IN ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - 39 / + 11 AS col0 FROM tab0 WHERE NOT col0 * + col0 IN ( + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 4 - + col0 * - col2 FROM tab1
----
4900
5019
6192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - col1 ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - 58 * col1 FROM tab0 WHERE NULL <> col0 / - 68 - col1 + col0 + - col1
----

query I rowsort
SELECT ALL ( + - 57 ) AS col0 FROM tab1
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 + + col0 col0, - col2 AS col1 FROM tab1
----
107
-59
113
-68
73
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3027
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) + MAX( + ( 61 ) ) + + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) + MAX ( + ( 61 ) ) + + COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT DISTINCT + - col2 * + col0 + + + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT COUNT( * ), - 68 AS col0 FROM tab0 AS cor0
----
3
-68

skipif mysql # not compatible
query II rowsort label-3030
SELECT COUNT ( * ), - 68 AS col0 FROM tab0 AS cor0
----
3
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT ALL - - col2 AS col1 FROM tab2 WHERE NOT CAST( - 99 AS SIGNED ) > + + col2 + + col1
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - - col2 AS col1 FROM tab2 WHERE NOT CAST ( - 99 AS INTEGER ) > + + col2 + + col1
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 * - col0 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - + ( + + COUNT( * ) ) * - - COUNT( * ) - - + 8 col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT - + ( + + COUNT ( * ) ) * - - COUNT ( * ) - - + 8 col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3035
SELECT ALL - - col0 AS col0, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3035
SELECT ALL - - col0 AS col0, CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * + 47 col1, col0 FROM tab2 AS cor0
----
-1081
46
-1880
64
-2726
75

query II rowsort
SELECT col2, - 55 FROM tab1
----
59
-55
68
-55
96
-55

query I rowsort
SELECT ALL - 84 * - col1 AS col0 FROM tab2
----
4284
5628
6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT - + 2 / - CAST( + col1 AS SIGNED ) - col0 AS col1 FROM tab2 WHERE NOT - + col0 * + 39 - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3039
SELECT - + 2 / - CAST ( + col1 AS INTEGER ) - col0 AS col1 FROM tab2 WHERE NOT - + col0 * + 39 - + col2 IS NOT NULL
----

query II rowsort
SELECT - 78 AS col2, 30 AS col2 FROM tab1
----
-78
30
-78
30
-78
30

query I rowsort
SELECT + col0 * - + 25 AS col1 FROM tab0
----
-2175
-2425
-375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, + col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - 53 * + col1 AS col1 FROM tab1 AS cor0
----
-2491
-265
-742

query II rowsort
SELECT DISTINCT - 85 AS col2, col1 FROM tab2 AS cor0
----
-85
51
-85
67
-85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL - 46 * 36 * + MIN( ALL + + 29 ) FROM tab2 AS cor0
----
-48024

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL - 46 * 36 * + MIN ( ALL + + 29 ) FROM tab2 AS cor0
----
-48024

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT ALL + col2 DIV 77 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + col2 / 77 FROM tab1 cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3047
SELECT ALL - + COUNT( * ) DIV + COUNT( * ) AS col1, 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
87

skipif mysql # not compatible
query II rowsort label-3047
SELECT ALL - + COUNT ( * ) / + COUNT ( * ) AS col1, 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
87

query I rowsort
SELECT - - 13 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL MIN( DISTINCT col2 ) + + + 75 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL MIN ( DISTINCT col2 ) + + + 75 FROM tab0
----
85

query I rowsort
SELECT - col1 + + ( 43 ) - - ( + + col1 ) FROM tab1 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - - 10 + + COUNT( DISTINCT + ( col1 ) ) * 30 col1 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3051
SELECT - - 10 + + COUNT ( DISTINCT + ( col1 ) ) * 30 col1 FROM tab2 AS cor0
----
100

query II rowsort
SELECT + - 71 AS col0, 29 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - + 15
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 36
----

query I rowsort
SELECT col1 + - col2 + - 40 FROM tab1 AS cor0
----
-122
-61
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3055
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST( + - col0 AS SIGNED ) ) * ( ( - col1 ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3055
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( + - col0 AS INTEGER ) ) * ( ( - col1 ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - 71 col0 FROM tab0 AS cor0
----
-50
-70
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT 73 * - MAX( - col2 ) AS col0 FROM tab1
----
4307

skipif mysql # not compatible
query I rowsort label-3058
SELECT 73 * - MAX ( - col2 ) AS col0 FROM tab1
----
4307

query I rowsort
SELECT + + col1 AS col1 FROM tab0 WHERE + + col2 / col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT ALL - 8 / col2 + 68 FROM tab1 WHERE - + 54 + - col0 IN ( ( + col0 ) * - col0, + 12 * + CAST( NULL AS SIGNED ) / col1 )
----

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - 8 / col2 + 68 FROM tab1 WHERE - + 54 + - col0 IN ( ( + col0 ) * - col0, + 12 * + CAST ( NULL AS INTEGER ) / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT DISTINCT 49 + + + MAX( + col0 ) FROM tab0 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT 49 + + + MAX ( + col0 ) FROM tab0 AS cor0
----
146

query I rowsort
SELECT ALL + 42 + - - 31 FROM tab2 cor0
----
73
73
73

query I rowsort
SELECT DISTINCT 37 + + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
124
134
52

query II rowsort
SELECT 84 AS col1, + 86 FROM tab2
----
84
86
84
86
84
86

query II rowsort
SELECT + col0 AS col0, + 57 + + col2 FROM tab1
----
51
153
85
116
91
125

query I rowsort
SELECT - ( - + 88 ) AS col2 FROM tab0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL - ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 2 NOT IN ( - col1, + 26 * + 52 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - 40 AS col2 FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3071
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - 70 + - 59 * - col2 <> col1 + - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3071
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - 70 + - 59 * - col2 <> col1 + - CAST ( col2 AS INTEGER )
----

query II rowsort
SELECT ALL 72 AS col2, - 8 + col2 AS col1 FROM tab1 AS cor0
----
72
51
72
60
72
88

query I rowsort
SELECT DISTINCT - col0 * - - 68 * - + col2 AS col0 FROM tab0 cor0
----
47940
59160
653004

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT - - COUNT( - 25 ) * + ( + 57 ) AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - - COUNT ( - 25 ) * + ( + 57 ) AS col2 FROM tab2 AS cor0
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT + CAST( - 34 AS SIGNED ) FROM tab0 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-3075
SELECT + CAST ( - 34 AS INTEGER ) FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT ALL + COUNT( * ) AS col1, 84 FROM tab2 AS cor0
----
3
84

skipif mysql # not compatible
query II rowsort label-3076
SELECT ALL + COUNT ( * ) AS col1, 84 FROM tab2 AS cor0
----
3
84

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - + col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT DISTINCT + COUNT( * ) * - 67 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT + COUNT ( * ) * - 67 FROM tab0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + ( + + MIN( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3079
SELECT + ( + + MIN ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3080
SELECT DISTINCT - 89 * + + 71 AS col0, + COUNT( DISTINCT 18 ) AS col1 FROM tab0 AS cor0
----
-6319
1

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT - 89 * + + 71 AS col0, + COUNT ( DISTINCT 18 ) AS col1 FROM tab0 AS cor0
----
-6319
1

query I rowsort
SELECT ALL + col0 + col2 * - + col0 AS col1 FROM tab2 WHERE + - col1 <> col1
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3082
SELECT ALL 47 * 34 * CAST( + ( + col1 ) AS SIGNED ) + - 27 DIV - - col1 FROM tab1 cor0
----
22371
75106
7985

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL 47 * 34 * CAST ( + ( + col1 ) AS INTEGER ) + - 27 / - - col1 FROM tab1 cor0
----
22371
75106
7985

query I rowsort
SELECT DISTINCT col1 + - 23 AS col1 FROM tab0 cor0
----
-2
-22
58

query I rowsort
SELECT ALL + 38 - + 54 + - + 70 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col1 * - ( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE + col2 > NULL
----

query II rowsort
SELECT ALL + ( + 45 ) - - col0 AS col0, + col2 FROM tab1 AS cor0
----
130
59
136
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT MAX( DISTINCT + 40 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3087
SELECT MAX ( DISTINCT + 40 ) FROM tab0 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3088
SELECT DISTINCT + - 17 * - col1 col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 BETWEEN col1 AND + + 0 + CAST( NULL AS SIGNED ) * CAST( col1 AS DECIMAL ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3088
SELECT DISTINCT + - 17 * - col1 col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 BETWEEN col1 AND + + 0 + CAST ( NULL AS INTEGER ) * CAST ( col1 AS REAL ) ) )
----

query I rowsort
SELECT ALL + - col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL + + 19 - + 79 AS col0 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE 20 IS NOT NULL
----
51
67
77

query I rowsort
SELECT col0 - 63 * + col2 FROM tab1
----
-3632
-4193
-5997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT + col2 / CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) + + col0 + 16 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT + col2 / CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) + + col0 + 16 + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3094
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-3094
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - 43 + - col0 * + ( - col2 ) + 98 AS col2 FROM tab2
----
3349
5969
7329

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - 43 + - col0 * + ( - col2 ) + 98 AS col2 FROM tab2
----
3349
5969
7329

query III rowsort
SELECT * FROM tab0 WHERE + - col2 <= NULL
----

query II rowsort
SELECT + col2, + 37 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 58 AS col0 FROM tab0 cor0 WHERE NOT + 86 IS NOT NULL
----

query I rowsort
SELECT + col0 * + 6 AS col0 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - 0 / + + 91 * + 69 NOT BETWEEN + 41 + + ( - col2 ) + 9 AND + col2
----
99

query I rowsort
SELECT 6 * col2 * + col2 AS col0 FROM tab2 AS cor0
----
20184
3174
9600

query I rowsort
SELECT DISTINCT + - 82 + - 9 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87, - col0 * + col2 * + 99 col0 FROM tab0
----
87
-69795
87
-86130
87
-950697

query II rowsort
SELECT DISTINCT + col0, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL + MIN( + CAST( col2 AS SIGNED ) ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3107
SELECT ALL + MIN ( + CAST ( col2 AS INTEGER ) ) col0 FROM tab1
----
59

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 5 <> ( col0 )
----

query I rowsort
SELECT + col0 + - - 56 AS col2 FROM tab0
----
143
153
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT ALL CAST( ( + col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL CAST ( ( + col2 ) AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT DISTINCT - 56 + - col1 + - col0 DIV - 28 AS col2 FROM tab1
----
-100
-58
-69

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - 56 + - col1 + - col0 / - 28 AS col2 FROM tab1
----
-100
-58
-69

query I rowsort
SELECT DISTINCT 15 + - 65 AS col0 FROM tab1 AS cor0
----
-50

query II rowsort
SELECT col2, 77 * - col0 AS col0 FROM tab0 AS cor0
----
10
-6699
47
-1155
99
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - 54 col1 FROM tab0
----
101
153
64

query I rowsort
SELECT + 36 + - 62 * col0 AS col0 FROM tab0 AS cor0
----
-5358
-5978
-894

query II rowsort
SELECT ALL - col0 + 59 AS col0, col0 * col1 * 56 FROM tab1 cor0
----
-26
23800
-32
239512
8
39984

query I rowsort
SELECT DISTINCT + 40 * + col0 * - ( + 59 ) + - 2 FROM tab2 AS cor0
----
-108562
-151042
-177002

query I rowsort
SELECT DISTINCT + col2 + + 79 AS col1 FROM tab0 AS cor0
----
126
178
89

query I rowsort
SELECT - ( - ( - col1 ) ) + - col2 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3120
SELECT * FROM tab0 cor0 WHERE - CAST( 35 AS SIGNED ) * ( - col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3120
SELECT * FROM tab0 cor0 WHERE - CAST ( 35 AS INTEGER ) * ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT ALL COUNT( * ) col1 FROM tab0 AS cor0 WHERE ( - 4 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3121
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( - 4 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - 92 * - col2 - 35 col1 FROM tab2 AS cor0
----
147165
309453
48633

query I rowsort
SELECT + 85 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query II rowsort
SELECT col2, + col1 * + 59 AS col1 FROM tab2
----
23
3009
40
4543
58
3953

query I rowsort
SELECT ALL 1 - + col1 + - ( + col0 ) + - col1 + - col0 * + col1 AS col1 FROM tab0
----
-1391
-195
-1955

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL SUM( ALL - - 28 ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL SUM ( ALL - - 28 ) AS col2 FROM tab2
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 - - 92 col2 FROM tab0
----
165
165
165

query I rowsort
SELECT ALL - 28 * col2 FROM tab1
----
-1652
-1904
-2688

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - + 0
----

query I rowsort
SELECT ( + + 28 ) FROM tab0
----
28
28
28

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( - ( - col1 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT ALL + 96 DIV - 52 - - col2 AS col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL + 96 / - 52 - - col2 AS col1 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT DISTINCT - + col0 * - col1 * - 85 AS col2 FROM tab0 AS cor0
----
-103275
-155295
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT MAX( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3134
SELECT MAX ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT DISTINCT + col0 DIV 75 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + col0 / 75 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3137
SELECT - + 92, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-92
3

skipif mysql # not compatible
query II rowsort label-3137
SELECT - + 92, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-92
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 - - col1 / + 62 NOT BETWEEN ( NULL ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL + ( + ( 96 ) ) AS col2 FROM tab1 cor0
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT DISTINCT 8 DIV + col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT 8 / + col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT + MAX( DISTINCT - - 40 ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT + MAX ( DISTINCT - - 40 ) AS col2 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL - SUM( ALL - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - SUM ( ALL - col1 ) AS col2 FROM tab0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT ALL + MAX( ALL + col2 ) + + CAST( - - 71 AS SIGNED ) FROM tab1
----
167

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + MAX ( ALL + col2 ) + + CAST ( - - 71 AS INTEGER ) FROM tab1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT - 39 + + 10 + MIN( ALL + - 67 ) col1 FROM tab0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3148
SELECT DISTINCT - 39 + + 10 + MIN ( ALL + - 67 ) col1 FROM tab0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 32 >= + + col2 * + - 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + col2 + + col0 FROM tab2 AS cor0
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT - 8 * + - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3151
SELECT - 8 * + - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT col1 + - ( + + col0 ) DIV col2 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-3152
SELECT col1 + - ( + + col0 ) / col2 FROM tab2
----
49
66
76

query I rowsort
SELECT DISTINCT - col1 + col2 + + - col1 FROM tab0
----
-115
-32
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - - 59 + - - col2 AND - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col1 * - 63 + - - 71 FROM tab0 cor0
----
134
1394
5174

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL - COUNT( * ) + SUM( - 86 ) FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - COUNT ( * ) + SUM ( - 86 ) FROM tab1 AS cor0
----
-261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3157
SELECT ALL COUNT( DISTINCT 60 ) - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL COUNT ( DISTINCT 60 ) - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT 29 DIV + col2 - - 66 + col2 FROM tab0 AS cor0
----
113
165
78

skipif mysql # not compatible
query I rowsort label-3158
SELECT 29 / + col2 - - 66 + col2 FROM tab0 AS cor0
----
113
165
78

query I rowsort
SELECT ALL - - col1 + + - col2 + - col1 - - 87 * - + 83 FROM tab1 AS cor0
----
-7280
-7289
-7317

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT - - ( + COUNT( DISTINCT + col2 ) ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT - - ( + COUNT ( DISTINCT + col2 ) ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 32 )
----

query II rowsort
SELECT ALL - - col1 - col0, 93 AS col2 FROM tab0 AS cor0
----
-66
93
-96
93
66
93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 - - + ( - + col0 ) FROM tab0 cor0
----
-196
-62
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 36 * - col1 * - + 4 * col2 col0 FROM tab0 AS cor0
----
14355
30250
548255

query I rowsort
SELECT ALL ( 64 ) - ( - col0 ) + - + col2 AS col2 FROM tab2 AS cor0
----
81
87
88

query I rowsort
SELECT ALL + col1 * + + col2 * + + ( 45 ) - + col1 * col0 FROM tab2
----
133672
169845
50439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 48 col0, - col0 FROM tab0
----
4176
-87
4656
-97
720
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3169
SELECT - CAST( NULL AS DECIMAL ) * - + ( - col1 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3169
SELECT - CAST ( NULL AS REAL ) * - + ( - col1 ) col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col0 ) col2, col2 - + 53 AS col0 FROM tab0 AS cor0
----
15
-6
87
-43
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT COUNT( + 43 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3172
SELECT COUNT ( + 43 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE NOT - 39 = + col2
----
51
67
77

query I rowsort
SELECT DISTINCT - 57 * 79 FROM tab0 cor0
----
-4503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3175
SELECT ALL - 75 DIV COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - 75 / COUNT ( * ) FROM tab2 AS cor0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3176
SELECT DISTINCT MIN( CAST( NULL AS DECIMAL ) ) + - + 37 * - 20 * - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT MIN ( CAST ( NULL AS REAL ) ) + - + 37 * - 20 * - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + 20 AS col1, ( + col0 ) * + + col0 FROM tab2 AS cor0
----
20
2116
20
4096
20
5625

query I rowsort
SELECT + + col0 * 12 + + col2 + - col1 * - + col0 FROM tab0 cor0
----
1360
1442
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL - - MAX( + 59 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - - MAX ( + 59 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + 18 * + + COUNT( ALL + col2 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3180
SELECT + 18 * + + COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT COUNT( * ) + - 75 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3181
SELECT COUNT ( * ) + - 75 FROM tab2
----
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NOT ( NOT ( NULL ) NOT BETWEEN - 85 AND + 72 + col1 ) ) )
----

query I rowsort
SELECT 18 + - col2 AS col2 FROM tab0
----
-29
-81
8

query I rowsort
SELECT DISTINCT - col0 + 45 FROM tab0
----
-42
-52
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - SUM( + 69 ) AS col1 FROM tab2, tab2 AS cor0
----
-621

skipif mysql # not compatible
query I rowsort label-3185
SELECT - SUM ( + 69 ) AS col1 FROM tab2, tab2 AS cor0
----
-621

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - + 89 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 - - 22 AS col1 FROM tab2 AS cor0
----
-24
-42
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 59 ) col2 FROM tab0 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - + col2 + - col0 AS col2, + col0 col0 FROM tab0
----
-187
87
-2224
15
-9898
97

query I rowsort
SELECT 60 FROM tab2 AS cor0 WHERE col0 + + ( - - 5 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT + 9 DIV 76 * - 86 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT + 9 / 76 * - 86 AS col2 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT ALL + col1 - + 12 * + 84, + col2 * col2 + col1 + col0 AS col1 FROM tab2 AS cor0
----
-931
1741
-941
3506
-957
626

query I rowsort
SELECT DISTINCT + 73 * - - 75 FROM tab1 AS cor0
----
5475

onlyif mysql # aggregate syntax: 
query II rowsort label-3194
SELECT DISTINCT MIN( + col0 ), + ( + COUNT( * ) ) AS col1 FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-3194
SELECT DISTINCT MIN ( + col0 ), + ( + COUNT ( * ) ) AS col1 FROM tab2
----
46
3

query I rowsort
SELECT ALL - col2 * - 60 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT col2 * - col2 * + - col1 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + 0 + + + COUNT( * ) FROM tab1 WHERE NOT - - 48 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3197
SELECT + 0 + + + COUNT ( * ) FROM tab1 WHERE NOT - - 48 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 91 * - + 68 FROM tab1
----
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT SUM( ALL + ( - - col0 ) ) * + - COUNT( * ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-3199
SELECT SUM ( ALL + ( - - col0 ) ) * + - COUNT ( * ) FROM tab2
----
-555

query I rowsort
SELECT DISTINCT 27 * ( - col0 ) FROM tab2
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND col2
----
0

query I rowsort
SELECT ALL + ( + col1 ) * - col1 FROM tab0 AS cor0
----
-1
-441
-6561

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - 13 + - + 46 AS col0 FROM tab1
----
-59
-59
-59

query I rowsort
SELECT + ( + ( col2 ) ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 32 / + col2 > NULL
----

query I rowsort
SELECT ALL - col0 * 84 FROM tab1 AS cor0
----
-4284
-7140
-7644

query II rowsort
SELECT - + col1 * col2, col2 FROM tab1 AS cor0
----
-1344
96
-295
59
-3196
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT - + 43 DIV SUM( 91 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT - + 43 / SUM ( 91 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 43 / col0 + 84 + - + col0 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT MIN( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 42 AND - 27 + - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT MIN ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 42 AND - 27 + - + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - col0 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - - col1 * + 13 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT col2 / CAST( NULL AS SIGNED ) * + 39 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT col2 / CAST ( NULL AS INTEGER ) * + 39 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + - col0 col2 FROM tab2
----
-19
-8
10

query I rowsort
SELECT DISTINCT + ( col0 ) + - 11 + + col2 + - 74 AS col2 FROM tab2
----
-16
19
48

query II rowsort
SELECT ALL col1, + 96 + - col0 FROM tab1 AS cor0
----
14
45
47
5
5
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + + - ( + - col0 ) col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT ALL + - col1 DIV ( - 91 ) - - - col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + - col1 / ( - 91 ) - - - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-3221
SELECT ALL col2 DIV - + col0, + col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-3221
SELECT ALL col2 / - + col0, + col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT DISTINCT 64 + - ( 99 ) + - - 54 FROM tab2 cor0
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT + MIN( ( col2 ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 45 + + 8 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + MIN ( ( col2 ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 45 + + 8 AND - col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - - col1 AND NOT NULL NOT BETWEEN + 56 / + + col2 * - 65 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3226
SELECT - 78 DIV + 59 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3226
SELECT - 78 / + 59 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT + - ( + MAX( - + 29 ) ) * - 48 AS col2 FROM tab1 AS cor0
----
-1392

skipif mysql # not compatible
query I rowsort label-3227
SELECT + - ( + MAX ( - + 29 ) ) * - 48 AS col2 FROM tab1 AS cor0
----
-1392

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT col2 DIV - - col1 + + col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3228
SELECT col2 / - - col1 + + col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT - 34 DIV 90 * col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3229
SELECT - 34 / 90 * col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3230
SELECT col1 AS col1, + 65 * CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3230
SELECT col1 AS col1, + 65 * CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL ( - 28 ) AS col1 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT ALL - + col1 * 66 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT COUNT( ALL + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT COUNT ( ALL + + col0 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL + col2 * - 17 AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT 86 * - col2 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL 39 + - CAST( NULL AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3238
SELECT ALL 39 + - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( col0 ) * col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT col2 * - CAST( - 22 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1034
2178
220

skipif mysql # not compatible
query I rowsort label-3240
SELECT col2 * - CAST ( - 22 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1034
2178
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT DISTINCT + - CAST( - + col1 AS SIGNED ) * - + col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT + - CAST ( - + col1 AS INTEGER ) * - + col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL + MIN( ALL + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + MIN ( ALL + col0 ) AS col1 FROM tab2
----
46

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 14 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3244
SELECT DISTINCT 38, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-3244
SELECT DISTINCT 38, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
38
NULL

query II rowsort
SELECT - col0, + col0 + - 78 * + + col0 AS col0 FROM tab1
----
-51
-3927
-85
-6545
-91
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT DISTINCT COUNT( col2 ) + + COUNT( * ) * 8 AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT COUNT ( col2 ) + + COUNT ( * ) * 8 AS col0 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3247
SELECT ALL + - col1 + + 95 * + CAST( + col0 AS SIGNED ) AS col1, col2 AS col2 FROM tab1 AS cor0
----
4831
96
8070
59
8598
68

skipif mysql # not compatible
query II rowsort label-3247
SELECT ALL + - col1 + + 95 * + CAST ( + col0 AS INTEGER ) AS col1, col2 AS col2 FROM tab1 AS cor0
----
4831
96
8070
59
8598
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 21 + + ( - - 21 ) >= NULL )
----

query I rowsort
SELECT + 40 + + col2 + + col2 + - 69 AS col1 FROM tab1 AS cor0
----
107
163
89

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL 41 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col0 + 27 + + 48 FROM tab0 AS cor0
----
162
172
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + col1 + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 8 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col2 * - col2 + col0 * - col1 FROM tab1 AS cor0
----
-3906
-8901
-9930

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT ALL - col0 DIV col1 * + col1 FROM tab1
----
-42
-47
-85

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - col0 / col1 * + col1 FROM tab1
----
-42
-47
-85

query I rowsort
SELECT 18 * - col1 FROM tab1
----
-252
-846
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT - 15 DIV + 55 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT - 15 / + 55 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * - + 30 col1 FROM tab2 AS cor0
----
1380
1920
2250

query I rowsort
SELECT - + col0 + - ( 88 ) FROM tab2 AS cor0 WHERE ( NULL ) < 98
----

query I rowsort
SELECT - 80 FROM tab1 AS cor0 WHERE 19 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - ( - ( col2 ) ) - + col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT DISTINCT col1 + col0 * col0 + 0 DIV + - col2 FROM tab0 AS cor0
----
306
7590
9410

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT col1 + col0 * col0 + 0 / + - col2 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT + 42 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query II rowsort
SELECT DISTINCT col1 * + - col2 AS col0, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT ALL + - CAST( + 43 AS SIGNED ) FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + - CAST ( + 43 AS INTEGER ) FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL col2 * + - 26 AS col2 FROM tab0 AS cor0
----
-1222
-2574
-260

query II rowsort
SELECT DISTINCT - - 37, - 58 * col2 + - + col1 AS col2 FROM tab0 AS cor0
----
37
-2807
37
-5743
37
-601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col2 * - + ( - + 7 ) AS col0 FROM tab1
----
413
476
672

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( - - col2 ) IS NULL
----

query I rowsort
SELECT ALL - 4 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT + COUNT( col0 ), 62 AS col2 FROM tab0
----
3
62

skipif mysql # not compatible
query II rowsort label-3273
SELECT + COUNT ( col0 ), 62 AS col2 FROM tab0
----
3
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT DISTINCT - ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT 92 + + col0 FROM tab1
----
143
177
183

query I rowsort
SELECT ALL + + AVG ( DISTINCT + ( col0 ) ) + + 9 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * - 70 IS NULL
----

query I rowsort
SELECT ALL + + 83 * + col2 + - 9 FROM tab1 AS cor0
----
4888
5635
7959

query I rowsort
SELECT + 27 * + + 43 FROM tab2 AS cor0
----
1161
1161
1161

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT - ( + col0 ) + - - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + - 39 AS col1 FROM tab2
----
12
28
38

query III rowsort
SELECT * FROM tab0 WHERE 66 = NULL
----

query I rowsort
SELECT - 80 + col2 AS col0 FROM tab2
----
-22
-40
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL COUNT( * ) + + 0 col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3286
SELECT ALL COUNT ( * ) + + 0 col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col1 * col0 + + 40 FROM tab2 AS cor0
----
2386
4968
5065

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + 31 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - + 7 <= NULL
----

query I rowsort
SELECT ALL - 53 * - - col1 AS col1 FROM tab1
----
-2491
-265
-742

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT DISTINCT col1 DIV col2 col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3291
SELECT DISTINCT col1 / col2 col0 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL + - 97 * - 51 + - col0 AS col1 FROM tab1 AS cor0
----
4856
4862
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3293
SELECT DISTINCT - 36 / + COUNT( * ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - 36 / + COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 61 * - col0 AS col1 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT - ( - COUNT( DISTINCT + 21 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3295
SELECT - ( - COUNT ( DISTINCT + 21 ) ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT + - MAX( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3296
SELECT + - MAX ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + + SUM( DISTINCT - + col2 ) * - COUNT( * ) * - 86 FROM tab1 AS cor0
----
-57534

skipif mysql # not compatible
query I rowsort label-3297
SELECT + + SUM ( DISTINCT - + col2 ) * - COUNT ( * ) * - 86 FROM tab1 AS cor0
----
-57534

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT SUM( ALL + col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3298
SELECT DISTINCT SUM ( ALL + col2 ) col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL + COUNT( - ( + ( + col1 ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + COUNT ( - ( + ( + col1 ) ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT ALL + COUNT( * ) AS col1, 55 FROM tab1
----
3
55

skipif mysql # not compatible
query II rowsort label-3300
SELECT ALL + COUNT ( * ) AS col1, 55 FROM tab1
----
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - SUM( - + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - SUM ( - + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT ( + CAST( - 38 AS SIGNED ) ) FROM tab2
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-3302
SELECT ( + CAST ( - 38 AS INTEGER ) ) FROM tab2
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL - 80 + COUNT( * ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - 80 + COUNT ( * ) FROM tab0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3304
SELECT col0 AS col0, + CAST( - col2 AS SIGNED ) FROM tab1
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-3304
SELECT col0 AS col0, + CAST ( - col2 AS INTEGER ) FROM tab1
----
51
-96
85
-59
91
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - ( - col1 ) + col2 * col2 - - 36 + - col0 / col1 AND col1
----

query II rowsort
SELECT 89, col2 + + col0 AS col1 FROM tab0 AS cor0
----
89
196
89
62
89
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT + + COUNT( * ) AS col1, - 49 * SUM( col1 ) FROM tab2 AS cor0
----
3
-9555

skipif mysql # not compatible
query II rowsort label-3307
SELECT + + COUNT ( * ) AS col1, - 49 * SUM ( col1 ) FROM tab2 AS cor0
----
3
-9555

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MAX( DISTINCT + 13 ) - + 64 * - - 17 + - 27 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT + 13 ) - + 64 * - - 17 + - 27 FROM tab2
----
NULL

query I rowsort
SELECT + 46 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT + 45 / 50 + - - CAST( - + col0 AS SIGNED ) + col1 / 3 col2 FROM tab0 WHERE NULL < - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3311
SELECT + 45 / 50 + - - CAST ( - + col0 AS INTEGER ) + col1 / 3 col2 FROM tab0 WHERE NULL < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3312
SELECT - CAST( NULL AS SIGNED ) + + - col1 / + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT - CAST ( NULL AS INTEGER ) + + - col1 / + - col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 + + col1 AS col1, - 57 AS col2 FROM tab2 AS cor0
----
102
-57
134
-57
154
-57

query I rowsort
SELECT ALL - - col1 + - - col1 AS col2 FROM tab0 AS cor0
----
162
2
42

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col1, - col2 * + - ( col1 ), - + col1, - ( - + 30 ), - col2 )
----

query II rowsort
SELECT DISTINCT - + col2 + + - col0 + - + 53 * + 98, col2 AS col0 FROM tab2 cor0
----
-5263
23
-5298
40
-5327
58

query II rowsort
SELECT + 90 + 18 AS col1, col2 * 93 FROM tab0 AS cor0
----
108
4371
108
9207
108
930

query I rowsort
SELECT ALL - col1 * + col2 + - - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT - ( + 15 ) * - COUNT( * ) * 65 AS col2 FROM tab2 AS cor0 WHERE - 64 / - 11 * col1 BETWEEN 46 AND - + 50
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT - ( + 15 ) * - COUNT ( * ) * 65 AS col2 FROM tab2 AS cor0 WHERE - 64 / - 11 * col1 BETWEEN 46 AND - + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT MAX( + 53 ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-3320
SELECT MAX ( + 53 ) FROM tab1
----
53

query I rowsort
SELECT ( + + ( - + col1 ) ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL 6 AS col2, col0 + - - col0 AS col1 FROM tab1
----
6
102
6
170
6
182

query I rowsort
SELECT ALL - 41 + - - col0 * - 27 AS col1 FROM tab0
----
-2390
-2660
-446

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT COUNT( - + 58 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT COUNT ( - + 58 ) col2 FROM tab2
----
3

query I rowsort
SELECT ( + - col1 ) * - 31 AS col2 FROM tab0
----
2511
31
651

query I rowsort
SELECT ALL col0 * + - 36 FROM tab0
----
-3132
-3492
-540

query III rowsort
SELECT * FROM tab0 WHERE + - col2 / + col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT CAST( NULL AS SIGNED ) - + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT CAST ( NULL AS INTEGER ) - + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 47 + - 69 + + 86 + + col0 AS col0 FROM tab2
----
16
34
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT 89 * + - COUNT( * ) AS col2 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT 89 * + - COUNT ( * ) AS col2 FROM tab2
----
-267

query I rowsort
SELECT col1 * + - 16 FROM tab0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT MIN( DISTINCT - 10 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3332
SELECT MIN ( DISTINCT - 10 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL + ( MAX( + 10 ) ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + ( MAX ( + 10 ) ) FROM tab1
----
10

query I rowsort
SELECT + - AVG ( DISTINCT - 1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( + + 72 ) + - - 51 - + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL ( + - 83 ) FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3336
SELECT ALL + col2 col2, + 71 + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
10
-16
47
56
99
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3336
SELECT ALL + col2 col2, + 71 + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
10
-16
47
56
99
-26

query I rowsort
SELECT ALL ( - + col0 ) * + 45 FROM tab2
----
-2070
-2880
-3375

query I rowsort
SELECT ALL 93 * + + col0 AS col0 FROM tab1
----
4743
7905
8463

query II rowsort
SELECT DISTINCT - 46 * + - 0, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT ALL - 53 * 49 AS col0 FROM tab0
----
-2597
-2597
-2597

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3341
SELECT + 49 - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + + 97 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3341
SELECT + 49 - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + + 97 IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 * - col1 * + col1 * col2 / col1 / - 18 AS col1 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col0 ) + + - 93 AS col2 FROM tab1 cor0
----
-2
-42
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT DISTINCT - ( + col2 ) DIV - - 10 - + - 58 + col1 FROM tab0 cor0
----
135
50
78

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - ( + col2 ) / - - 10 - + - 58 + col1 FROM tab0 cor0
----
135
50
78

query I rowsort
SELECT DISTINCT 78 + + - 7 FROM tab1 AS cor0
----
71

query I rowsort
SELECT - + 35 - 13 FROM tab0 cor0
----
-48
-48
-48

query I rowsort
SELECT 6 - - col0 FROM tab0 AS cor0
----
103
21
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT ALL + CAST( NULL AS SIGNED ) * + - col1 + col2 + + - ( + 27 ) - + col0 * - - 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + CAST ( NULL AS INTEGER ) * + - col1 + col2 + + - ( + 27 ) - + col0 * - - 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 + - col1 FROM tab0
----
-119
-179
-99

query I rowsort
SELECT ALL + 87 * + + col1 * + 40 * - col2 FROM tab2
----
-10718400
-13523280
-4082040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT CAST( NULL AS SIGNED ) / - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT CAST ( NULL AS INTEGER ) / - col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col2 * 25 AS col0 FROM tab1 cor0
----
-33600
-7375
-79900

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3353
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) + + col2 - + 34 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3353
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) + + col2 - + 34 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + - 91 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT - col2 DIV 87 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3356
SELECT - col2 / 87 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 - + - col2 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT + col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3358
SELECT + col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 86 * - col1 FROM tab0
----
1806
6966
86

query I rowsort
SELECT ALL - 80 * + - 16 FROM tab2
----
1280
1280
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT ALL 90 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL 90 / col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE - 85 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 NOT BETWEEN ( - col0 / col1 / - + col2 + + col0 * - col0 ) AND 44 * - - col0
----

query I rowsort
SELECT DISTINCT - 85 + col2 - + - col0 * - 82 + 53 FROM tab2
----
-3781
-5240
-6124

query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query II rowsort label-3366
SELECT + col2 AS col2, + 85 DIV - col0 FROM tab0 AS cor0
----
10
0
47
-5
99
0

skipif mysql # not compatible
query II rowsort label-3366
SELECT + col2 AS col2, + 85 / - col0 FROM tab0 AS cor0
----
10
0
47
-5
99
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col2 AND + - col0 * col2 + + 8 * - 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, + ( - + 49 ) FROM tab1 AS cor0
----
59
-49
68
-49
96
-49

query I rowsort
SELECT ALL + col2 * + col1 + col2 * - col2 - - - col0 AS col0 FROM tab0 AS cor0
----
-9799
1583
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - + ( + 66 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1 + col1
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + - col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-3373
SELECT DISTINCT - col2 DIV - 48, col0 FROM tab2
----
0
46
0
64
1
75

skipif mysql # not compatible
query II rowsort label-3373
SELECT DISTINCT - col2 / - 48, col0 FROM tab2
----
0
46
0
64
1
75

query I rowsort
SELECT 54 + - - 4 * - col2 AS col2 FROM tab0
----
-134
-342
14

query I rowsort
SELECT + col0 + - ( - - col2 ) - - col2 + + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query II rowsort label-3376
SELECT DISTINCT - 57 + + col0 AS col0, - col0 DIV col1 * - - col1 FROM tab2 AS cor0
----
-11
0
18
-67
7
0

skipif mysql # not compatible
query II rowsort label-3376
SELECT DISTINCT - 57 + + col0 AS col0, - col0 / col1 * - - col1 FROM tab2 AS cor0
----
-11
0
18
-67
7
0

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab1 AS cor0 WHERE col0 < + col2 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT 42 + + MAX( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
119

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3378
SELECT DISTINCT 42 + + MAX ( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL COUNT( * ) - MIN( ALL + 27 ) FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL COUNT ( * ) - MIN ( ALL + 27 ) FROM tab1 cor0
----
-24

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE - col1 <= ( - + col1 * col0 )
----

query I rowsort
SELECT DISTINCT - + ( + 4 ) + + col2 FROM tab0 AS cor0
----
43
6
95

query I rowsort
SELECT ALL - + col2 - + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT - ( - SUM( - - 27 ) ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT - ( - SUM ( - - 27 ) ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL col1 - - 49 AS col1 FROM tab2
----
100
116
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT - - col2 - - col2 FROM tab1 WHERE NOT + col2 * + col0 + ( - col0 ) - + 4 + - CAST( NULL AS SIGNED ) * - 92 * col0 / + col0 * - 28 NOT BETWEEN NULL AND - 67
----

skipif mysql # not compatible
query I rowsort label-3385
SELECT - - col2 - - col2 FROM tab1 WHERE NOT + col2 * + col0 + ( - col0 ) - + 4 + - CAST ( NULL AS INTEGER ) * - 92 * col0 / + col0 * - 28 NOT BETWEEN NULL AND - 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - MIN( + 70 ) AS col2 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - MIN ( + 70 ) AS col2 FROM tab1
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

query II rowsort
SELECT ALL 34, col2 * 44 + + col0 * + + col0 AS col1 FROM tab0
----
34
13765
34
2293
34
8009

query I rowsort
SELECT ALL - ( - 9 ) FROM tab2
----
9
9
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3390
SELECT DISTINCT col1, CAST( NULL AS DECIMAL ) * + - 44 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3390
SELECT DISTINCT col1, CAST ( NULL AS REAL ) * + - 44 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT + COUNT( DISTINCT - + 93 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3391
SELECT + COUNT ( DISTINCT - + 93 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT - 63 AS col0, - COUNT( * ) FROM tab1
----
-63
-3

skipif mysql # not compatible
query II rowsort label-3392
SELECT - 63 AS col0, - COUNT ( * ) FROM tab1
----
-63
-3

query I rowsort
SELECT ALL - ( + - 38 ) AS col0 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT - - col0 * - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT DISTINCT + - MIN( + - CAST( + col1 AS SIGNED ) ) * 61 FROM tab1 AS cor0
----
2867

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + - MIN ( + - CAST ( + col1 AS INTEGER ) ) * 61 FROM tab1 AS cor0
----
2867

query I rowsort
SELECT + col1 - col1 FROM tab2 WHERE NOT col2 * col1 < col2 + col2
----
0
0
0

query I rowsort
SELECT ALL col2 - + col2 AS col1 FROM tab2 WHERE NOT col1 * col0 NOT BETWEEN - col0 AND 97
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT - CAST( 42 AS SIGNED ) * COUNT( * ) FROM tab1 WHERE ( col2 ) IN ( + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-3399
SELECT - CAST ( 42 AS INTEGER ) * COUNT ( * ) FROM tab1 WHERE ( col2 ) IN ( + 17 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 7 + col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col1 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL - MAX( DISTINCT + 38 ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL - MAX ( DISTINCT + 38 ) AS col1 FROM tab2
----
-38

query I rowsort
SELECT col2 - 34 * 57 FROM tab0
----
-1839
-1891
-1928

query I rowsort
SELECT col0 - 21 AS col0 FROM tab1
----
30
64
70

query I rowsort
SELECT 41 - + col1 FROM tab2 WHERE + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL 15 + - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL 15 + - COUNT ( * ) FROM tab0
----
12

query I rowsort
SELECT - col1 + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 87 + - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
10
20
36

query III rowsort
SELECT * FROM tab2 WHERE col2 + + 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - MIN( ALL - 65 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-3410
SELECT - MIN ( ALL - 65 ) FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - COUNT( ALL + 98 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3411
SELECT - COUNT ( ALL + 98 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT MAX( + 8 ) AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3413
SELECT MAX ( + 8 ) AS col0 FROM tab0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT ALL + MIN( 33 ) * CAST( 1 AS SIGNED ) - 6 AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL + MIN ( 33 ) * CAST ( 1 AS INTEGER ) - 6 AS col1 FROM tab1
----
27

query I rowsort
SELECT + 92 * 77 FROM tab0
----
7084
7084
7084

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) = + 80 + + col2 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 21 - 5 col2 FROM tab0
----
1822
2032
310

query I rowsort
SELECT ALL - col0 + + 64 AS col2 FROM tab1
----
-21
-27
13

query I rowsort
SELECT DISTINCT + 73 * col0 FROM tab0
----
1095
6351
7081

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 BETWEEN - col1 + - col0 / col0 AND ( col0 )
----
75
67
58

query I rowsort
SELECT DISTINCT + 36 + + 67 FROM tab2 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT + COUNT( * ) + ( - MAX( 55 ) ) AS col0 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3424
SELECT + COUNT ( * ) + ( - MAX ( 55 ) ) AS col0 FROM tab1 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT ( - col2 ) + 44 FROM tab1 AS cor0 WHERE ( + ( CAST( NULL AS SIGNED ) ) ) IS NULL
----
-15
-24
-52

skipif mysql # not compatible
query I rowsort label-3425
SELECT ( - col2 ) + 44 FROM tab1 AS cor0 WHERE ( + ( CAST ( NULL AS INTEGER ) ) ) IS NULL
----
-15
-24
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT + 38 + - ( AVG ( - col1 ) ) * ( + COUNT( * ) ) FROM tab2 WHERE NULL = ( - col1 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + 38 + - ( AVG ( - col1 ) ) * ( + COUNT ( * ) ) FROM tab2 WHERE NULL = ( - col1 * col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT DISTINCT + ( CAST( 58 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
58

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + ( CAST ( 58 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
58

query I rowsort
SELECT DISTINCT + ( + col0 ) + - col2 * - col1 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL COUNT( * ) - + 77 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL COUNT ( * ) - + 77 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT - + MIN( DISTINCT col2 ) + 26 AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT - + MIN ( DISTINCT col2 ) + 26 AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * 49 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT DISTINCT + col2 DIV - ( + 77 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT + col2 / - ( + 77 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + + 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-3434
SELECT + + SUM ( col1 ) col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + + SUM( - col2 ) AS col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3435
SELECT + + SUM ( - col2 ) AS col2 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-3436
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) * - ( - 6 ) col0 FROM tab1
----
-306
-510
-546

query I rowsort
SELECT ALL 34 FROM tab1 WHERE NOT - 12 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 43 FROM tab1 WHERE NOT - ( - 70 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * 98 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT COUNT( ALL + 26 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT COUNT ( ALL + 26 ) FROM tab2 cor0
----
3

query I rowsort
SELECT 20 AS col0 FROM tab2 cor0 WHERE NOT 92 NOT IN ( + col1 * col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3443
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( + 40 AS DECIMAL ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3443
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( + 40 AS REAL ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT + MIN( - 66 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3444
SELECT + MIN ( - 66 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL + + 33 * col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT 91, - 92 + - COUNT( * ) col0 FROM tab1 AS cor0
----
91
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3446
SELECT 91, - 92 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
91
-95

query I rowsort
SELECT ( 55 ) AS col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - + ( + 68 ) + col0 + 21 * col2 AS col2 FROM tab0 AS cor0
----
2108
229
934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT DISTINCT + 54 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT + 54 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 18 )
----

query I rowsort
SELECT + 10 + - col1 + + col0 FROM tab1 AS cor0
----
47
54
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3452
SELECT DISTINCT MIN( DISTINCT + - 57 ) * + ( COUNT( * ) ) + - ( ( ( - CAST( NULL AS DECIMAL ) ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT MIN ( DISTINCT + - 57 ) * + ( COUNT ( * ) ) + - ( ( ( - CAST ( NULL AS REAL ) ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 79 + + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
1137
2639
4429

onlyif mysql # aggregate syntax: 
query II rowsort label-3454
SELECT DISTINCT COUNT( * ) AS col1, ( + SUM( ALL col0 ) ) AS col0 FROM tab1 AS cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-3454
SELECT DISTINCT COUNT ( * ) AS col1, ( + SUM ( ALL col0 ) ) AS col0 FROM tab1 AS cor0
----
3
227

query I rowsort
SELECT DISTINCT + col1 + - ( - 46 ) * col0 FROM tab2 WHERE NOT + col2 + - 20 NOT IN ( col0 )
----

query I rowsort
SELECT 50 + + col2 FROM tab2
----
108
73
90

query III rowsort
SELECT * FROM tab1 WHERE + 18 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * 3 + col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + 38 + col0 AS col1 FROM tab2
----
1794
2496
2925

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3460
SELECT * FROM tab1 WHERE + col0 * col0 < - ( - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3460
SELECT * FROM tab1 WHERE + col0 * col0 < - ( - CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col2 + - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + + ( + col0 ) AS col1, 45 FROM tab0 AS cor0
----
15
45
87
45
97
45

query I rowsort
SELECT + - 43 - - + col0 - col1 * - - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-4320
-468
-757

query I rowsort
SELECT ALL + col1 * - + col1 - + + 92 AS col1 FROM tab1 AS cor0
----
-117
-2301
-288

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 WHERE ( + 42 - 87 + + ( - col1 ) ) IS NOT NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * col0 col1 FROM tab2 AS cor0
----
3128
4352
5100

query I rowsort
SELECT - 1 * - - 18 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3468
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + - - 90 * - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3468
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + - - 90 * - CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - + 14 ) FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT 41 * + + col0 FROM tab2 AS cor0
----
1886
2624
3075

query I rowsort
SELECT ALL - - 96 FROM tab2 cor0
----
96
96
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col1
----

query I rowsort
SELECT DISTINCT - col1 + 70 FROM tab1 WHERE - + col2 + + 83 + + 94 * - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT + 94 col2, + COUNT( * ) AS col0 FROM tab2
----
94
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3474
SELECT + 94 col2, + COUNT ( * ) AS col0 FROM tab2
----
94
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 BETWEEN ( - col1 + col2 * + 65 * 95 ) AND + 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3476
SELECT - 68, + CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab1
----
-68
NULL
-68
NULL
-68
NULL

skipif mysql # not compatible
query II rowsort label-3476
SELECT - 68, + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab1
----
-68
NULL
-68
NULL
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT MIN( ALL + 87 ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3477
SELECT MIN ( ALL + 87 ) AS col1 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT + ( - MAX( ALL 69 ) ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3478
SELECT + ( - MAX ( ALL 69 ) ) FROM tab0
----
-69

query II rowsort
SELECT DISTINCT col2 AS col0, ( ( ( - 20 ) ) ) AS col1 FROM tab2 AS cor0
----
23
-20
40
-20
58
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT DISTINCT + COUNT( DISTINCT - 13 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT + COUNT ( DISTINCT - 13 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col1 + - col1 * + col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3482
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT DISTINCT 74 * + COUNT( * ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT 74 * + COUNT ( * ) FROM tab0
----
222

query I rowsort
SELECT DISTINCT - + 72 + + col0 AS col2 FROM tab1 AS cor0
----
-21
13
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + + 81 * + 3 + + 14 + + COUNT( - + col0 ) * 49 FROM tab1 AS cor0
----
404

skipif mysql # not compatible
query I rowsort label-3486
SELECT + + 81 * + 3 + + 14 + + COUNT ( - + col0 ) * 49 FROM tab1 AS cor0
----
404

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3487
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( + 31 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3487
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( + 31 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - 7 + + + MAX( col2 ) AS col0 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-3488
SELECT - 7 + + + MAX ( col2 ) AS col0 FROM tab0
----
92

query II rowsort
SELECT - col0, col2 FROM tab2 WHERE 79 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + 28 - + col1 AS col0 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL 24 + - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
109
115
75

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 24 + - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
109
115
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 21 + col0 ) >= NULL
----

query I rowsort
SELECT - col2 * + - 91 AS col1 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT - 50 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT - + 81 * 63 * + col2 + + ( + + 98 ) FROM tab2 AS cor0
----
-117271
-204022
-295876

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1 + - col0 * - col0 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + + ( ( - - COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3497
SELECT + + ( ( - - COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT col1 DIV + + col1 + 40 FROM tab2 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3498
SELECT col1 / + + col1 + 40 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT ALL CAST( - ( ( - COUNT( * ) ) ) AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT - 50 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3499
SELECT ALL CAST ( - ( ( - COUNT ( * ) ) ) AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT - 50 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - 89 * + - 27 + col0 + - - 99 + + 18 + + col2 + - 90 * - col1 * - col1 + col0 * + col1 AS col0 FROM tab0 cor0
----
-35246
-586693
2723

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT - SUM( DISTINCT - + 89 ) AS col2 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT - SUM ( DISTINCT - + 89 ) AS col2 FROM tab1 AS cor0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT DISTINCT ( - ( + COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL 14 * - ( + - MIN( DISTINCT + - col0 ) ) AS col2 FROM tab2
----
-1050

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL 14 * - ( + - MIN ( DISTINCT + - col0 ) ) AS col2 FROM tab2
----
-1050

query I rowsort
SELECT DISTINCT - col1 * - 85 FROM tab1
----
1190
3995
425

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT DISTINCT col2 DIV + 84 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT col2 / + 84 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT + ( - ( + MIN( + - col1 ) ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT + ( - ( + MIN ( + - col1 ) ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL + COUNT( + 80 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT ALL + COUNT ( + 80 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + MIN( ALL - col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3511
SELECT + MIN ( ALL - col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
243

query I rowsort
SELECT DISTINCT + col2 * col1 * col0 AS col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL 73 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 * + - col0 * - col1 * - col2 FROM tab1 AS cor0
----
-1479425
-19776848
-6580224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 0 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3516
SELECT ALL COUNT( * ) AS col2, 81 col0 FROM tab2
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3516
SELECT ALL COUNT ( * ) AS col2, 81 col0 FROM tab2
----
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT - SUM( - + col2 ) * + + 34 + ( ( COUNT( * ) ) ) AS col0 FROM tab2
----
4117

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - SUM ( - + col2 ) * + + 34 + ( ( COUNT ( * ) ) ) AS col0 FROM tab2
----
4117

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT - col1 DIV col1 + 14 FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-3518
SELECT - col1 / col1 + 14 FROM tab0 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 71 AS col0, - 44 * - col1 + + ( - ( col0 ) ) col2 FROM tab0 AS cor0 WHERE + col2 + + col1 / - col1 * + 74 IS NOT NULL
----
-71
-53
-71
3549
-71
837

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL + - MAX( + col2 ) + ( CAST( + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + - MAX ( + col2 ) + ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-55

query II rowsort
SELECT ALL col0, - 17 + + col1 AS col0 FROM tab1 AS cor0
----
51
-3
85
-12
91
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT 73 DIV col0 * - col2 DIV - col0 + col2 FROM tab1 WHERE NOT 53 IS NULL
----
59
68
97

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT 73 / col0 * - col2 / - col0 + col2 FROM tab1 WHERE NOT 53 IS NULL
----
59
68
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3524
SELECT ALL + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT + col0 DIV - 85 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT + col0 / - 85 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3526
SELECT + CAST( + 16 AS SIGNED ) DIV col0 - ( + ( col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3526
SELECT + CAST ( + 16 AS INTEGER ) / col0 - ( + ( col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + 5 + + - col1 + - 97 col2 FROM tab0 AS cor0
----
-168
-413
-593

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT ALL col1 DIV + col2 + - - 62 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
62
63
64

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL col1 / + col2 + - - 62 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
62
63
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 * + col2 col0 FROM tab0 cor0
----
1584
160
752

query II rowsort
SELECT - 28, + col1 FROM tab1
----
-28
14
-28
47
-28
5

query I rowsort
SELECT + + col0 * - - 27 FROM tab2 cor0
----
1242
1728
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL + 74 * - COUNT( DISTINCT col0 ) * 81 FROM tab0 AS cor0
----
-17982

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + 74 * - COUNT ( DISTINCT col0 ) * 81 FROM tab0 AS cor0
----
-17982

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - - 70 * - - col2 * - 70
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 - 81 * - col1 / - + col0 < - 18
----
75
67
58

query I rowsort
SELECT ALL 38 * - col0 FROM tab1 AS cor0
----
-1938
-3230
-3458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * 42 / - 20 col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL MAX( + 35 ) AS col2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL MAX ( + 35 ) AS col2 FROM tab2
----
35

query I rowsort
SELECT ALL - 80 + - - col0 FROM tab0
----
-65
17
7

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + 17 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 78 * - col0 + - - col1 AS col2 FROM tab0
----
-1089
-6765
-7565

query II rowsort
SELECT DISTINCT + col0 + + - col0 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - + col1 * - CAST( col1 AS SIGNED ) + + 26 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3543
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - + col1 * - CAST ( col1 AS INTEGER ) + + 26 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - 99 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 99 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-102

query II rowsort
SELECT DISTINCT + col2 * col2 + col1 + + col0 * + col0 * col1 + + - col0 AS col2, - ( + + ( - col1 ) ) AS col0 FROM tab0 cor0
----
158983
21
19114
1
20500
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT + 84 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 84 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
87

query II rowsort
SELECT ALL col0 AS col2, 67 * col0 * + - col2 + col2 AS col0 FROM tab0
----
15
-47188
87
-58280
97
-643302

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3548
SELECT col2 + - + ( - + col1 ) + col2 DIV 12 + + CAST( col1 AS SIGNED ) FROM tab2
----
126
196
197

skipif mysql # not compatible
query I rowsort label-3548
SELECT col2 + - + ( - + col1 ) + col2 / 12 + + CAST ( col1 AS INTEGER ) FROM tab2
----
126
196
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT DISTINCT + col0 + - + CAST( NULL AS SIGNED ) - - col2 * 68 - - - col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + col0 + - + CAST ( NULL AS INTEGER ) - - col2 * 68 - - - col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + 23 * + - 23 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a3b52f7e14ec38663e00eef44d9829f5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 92 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + - 60 FROM tab1 WHERE + + col2 < NULL
----

query I rowsort
SELECT ALL - 10 * - + col1 * 63 * 6 FROM tab2 AS cor0 WHERE NULL > ( col0 ) + - 15
----

query I rowsort
SELECT ALL col2 + - - col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL 49 - 14 * + 99 FROM tab1 AS cor0
----
-1337
-1337
-1337

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - + 42 - - COUNT( * ) FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3557
SELECT - + 42 - - COUNT ( * ) FROM tab2 cor0
----
-39

query I rowsort
SELECT + 29 - - col1 AS col1 FROM tab1 cor0
----
34
43
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT SUM( ALL - + 36 ) + - COUNT( * ) AS col0 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-3559
SELECT SUM ( ALL - + 36 ) + - COUNT ( * ) AS col0 FROM tab1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL MIN( DISTINCT - 87 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL MIN ( DISTINCT - 87 ) FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL 88 * - - COUNT( * ) FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL 88 * - - COUNT ( * ) FROM tab2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + 76 + - - 11 * - COUNT( * ) AS col0 FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + 76 + - - 11 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
43

query II rowsort
SELECT col1, 57 FROM tab0 AS cor0
----
1
57
21
57
81
57

query II rowsort
SELECT - ( + 47 ), col1 AS col1 FROM tab2 AS cor0
----
-47
51
-47
67
-47
77

query II rowsort
SELECT 72 AS col0, col1 FROM tab1 AS cor0
----
72
14
72
47
72
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3566
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( col2 AS DECIMAL ) + + 69 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3566
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( col2 AS REAL ) + + 69 IS NOT NULL
----

query I rowsort
SELECT 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - ( + col0 ) + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 68 * + col0 col1, col2 AS col0 FROM tab0 cor0
----
1020
47
5916
10
6596
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT - - COUNT( ALL + col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3570
SELECT - - COUNT ( ALL + col1 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - 14 * + col1 * + col0 FROM tab0 AS cor0
----
-1358
-17010
-25578

query II rowsort
SELECT + col2, + 75 - - + col0 FROM tab1
----
59
160
68
166
96
126

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 BETWEEN - 53 AND - + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3575
SELECT + 78 AS col1, - col0 + CAST( - + 13 AS SIGNED ) AS col2 FROM tab1
----
78
-104
78
-64
78
-98

skipif mysql # not compatible
query II rowsort label-3575
SELECT + 78 AS col1, - col0 + CAST ( - + 13 AS INTEGER ) AS col2 FROM tab1
----
78
-104
78
-64
78
-98

query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab2 AS cor0 WHERE NOT 5 / - col0 + - 6 IS NULL
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3577
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND + + col1
----

skipif mysql # not compatible
query III rowsort label-3577
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT 38 AS col1, + SUM( - + col0 ) AS col0 FROM tab2 AS cor0
----
38
-185

skipif mysql # not compatible
query II rowsort label-3578
SELECT 38 AS col1, + SUM ( - + col0 ) AS col0 FROM tab2 AS cor0
----
38
-185

query I rowsort
SELECT + col2 * - - col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 55 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 55 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - + 83 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + + 10 col0 FROM tab0
----
107
297
825

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - - 33 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3583
SELECT - - 33 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT MAX( ( col2 ) ) + + 7 FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3584
SELECT MAX ( ( col2 ) ) + + 7 FROM tab1 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + COUNT( * ) * + 2 + - - MAX( + col1 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + COUNT ( * ) * + 2 + - - MAX ( + col1 ) FROM tab1 AS cor0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3586
SELECT - CAST( NULL AS DECIMAL ) + + 21 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT - CAST ( NULL AS REAL ) + + 21 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT COUNT( * ) + - 30 AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT COUNT ( * ) + - 30 AS col2 FROM tab1 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3588
SELECT + + col2 + - col2 DIV - 35 AS col1 FROM tab0 AS cor0
----
10
101
48

skipif mysql # not compatible
query I rowsort label-3588
SELECT + + col2 + - col2 / - 35 AS col1 FROM tab0 AS cor0
----
10
101
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT COUNT( + 31 ) + + - 19 AS col1 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3589
SELECT COUNT ( + 31 ) + + - 19 AS col1 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL + COUNT( * ) + - 45 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + COUNT ( * ) + - 45 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT DISTINCT - 90 - + col1 FROM tab1 AS cor0
----
-104
-137
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT + 82 AS col1, - COUNT( ALL col2 ) FROM tab2
----
82
-3

skipif mysql # not compatible
query II rowsort label-3592
SELECT + 82 AS col1, - COUNT ( ALL col2 ) FROM tab2
----
82
-3

query I rowsort
SELECT DISTINCT 97 - 7 FROM tab0
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( 87 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3595
SELECT DISTINCT COUNT( + CAST( - 24 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT COUNT ( + CAST ( - 24 AS INTEGER ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE col0 + - 28 <> - + col2 - + + ( - + 73 ) + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 77 - + col0 FROM tab1
----
-14
-8
26

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + + col1 + + - col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3599
SELECT CAST( NULL AS SIGNED ) * - SUM( ALL - col1 ) * + SUM( + col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT CAST ( NULL AS INTEGER ) * - SUM ( ALL - col1 ) * + SUM ( + col1 ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT + col0 DIV + 46 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3600
SELECT + col0 / + 46 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT ALL 79 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL 79 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + - col1 * 2 AS col1, - col2 col1 FROM tab0
----
-194
-99
-2430
-47
-3654
-10

query II rowsort
SELECT col0, - col1 FROM tab0 cor0 WHERE NOT 3 IS NULL
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3604
SELECT - + col0 DIV - 53 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3604
SELECT - + col0 / - 53 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT 18 * - - col1 AS col1 FROM tab0
----
1458
18
378

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3608
SELECT * FROM tab2 cor0 WHERE NOT col1 * - CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3608
SELECT * FROM tab2 cor0 WHERE NOT col1 * - CAST ( NULL AS INTEGER ) < ( NULL )
----

query II rowsort
SELECT DISTINCT - 88 AS col1, col0 FROM tab0 AS cor0
----
-88
15
-88
87
-88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT - + MIN( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT - + MIN ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - - 13 FROM tab0 cor0
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3613
SELECT ALL + CAST( NULL AS SIGNED ) col0, 80, - 17 AS col0 FROM tab2 AS cor0
----
9 values hashing to d5aa5275597b1b244ad90c688909bf2d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3613
SELECT ALL + CAST ( NULL AS INTEGER ) col0, 80, - 17 AS col0 FROM tab2 AS cor0
----
9 values hashing to d5aa5275597b1b244ad90c688909bf2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab1
----
84
84
84

query I rowsort
SELECT ALL 70 + + - col2 AS col0 FROM tab2
----
12
30
47

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN NULL AND + col1 * - ( + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 = col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col2 * ( + - col0 ) IN ( + 41, + 93 + - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT ALL - COUNT( * ) + + 42 AS col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - COUNT ( * ) + + 42 AS col1 FROM tab2 AS cor0
----
39

query I rowsort
SELECT ALL ( + - col2 ) * - col1 * + col1 + - - col1 FROM tab2
----
237237
260429
59874

query I rowsort
SELECT DISTINCT + - 82 + + 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 / - col0 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + + col0 AND NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT - 34 DIV - col0 + col2 * col0 + + - ( + - col1 ) FROM tab1 AS cor0
----
4910
5020
6235

skipif mysql # not compatible
query I rowsort label-3624
SELECT - 34 / - col0 + col2 * col0 + + - ( + - col1 ) FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT DISTINCT COUNT( * ) - - - 97 AS col0 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT COUNT ( * ) - - - 97 AS col0 FROM tab2 cor0
----
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 > 88
----
15
81
47
87
21
10

query I rowsort
SELECT + - 46 * - 45 AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 74 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT - MAX( DISTINCT - ( 65 ) ) AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT - MAX ( DISTINCT - ( 65 ) ) AS col2 FROM tab2 AS cor0
----
65

query I rowsort
SELECT - 65 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-65
-65
-65

query I rowsort
SELECT ALL + - col1 - + ( + col0 ) FROM tab0 AS cor0 WHERE + ( col1 ) * + col0 / + 81 * col1 + - + 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab2 WHERE 8 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE 8 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT ALL col2 DIV + + 13 AS col0 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL col2 / + + 13 AS col0 FROM tab2
----
1
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL ( + 26 ) FROM tab0 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT 85 + + 33 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT 85 + + 33 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
184

query III rowsort
SELECT - col0 + - 91 * + col1 * col0 * - + col2, col2 AS col0, + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 84c25fd80b1e6fcdf90af1171595ae65

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT COUNT( DISTINCT col0 ) FROM tab2 WHERE ( - ( + 94 ) - - col0 ) >= col0
----
0

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT COUNT ( DISTINCT col0 ) FROM tab2 WHERE ( - ( + 94 ) - - col0 ) >= col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3639
SELECT DISTINCT + col2 + - col1 * - + CAST( NULL AS SIGNED ) + col2 + - col2 * + 83, - 30 AS col0 FROM tab2
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-3639
SELECT DISTINCT + col2 + - col1 * - + CAST ( NULL AS INTEGER ) + col2 + - col2 * + 83, - 30 AS col0 FROM tab2
----
NULL
-30

query I rowsort
SELECT DISTINCT + col1 + + col2 * + col1 AS col0 FROM tab0
----
100
231
3888

query I rowsort
SELECT DISTINCT - 14 + + 95 AS col2 FROM tab1 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col0 ) < - col0 * + col2 - + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 WHERE NOT ( NOT col2 + 8 = + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3644
SELECT ALL + COUNT( * ) DIV 21 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL + COUNT ( * ) / 21 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT + 5 + - col1 AS col2 FROM tab2 AS cor0
----
-46
-62
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 53 col1 FROM tab2 cor0
----
-53

query I rowsort
SELECT ALL + col1 * + 13 FROM tab2
----
1001
663
871

query II rowsort
SELECT col2 AS col1, - col2 AS col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - 86 * - 70 AS col0 FROM tab0
----
6020
6020
6020

query I rowsort
SELECT ALL col0 * + + 19 * 40 AS col2 FROM tab2
----
34960
48640
57000

query I rowsort
SELECT + 52 * - col2 AS col2 FROM tab1
----
-3068
-3536
-4992

query II rowsort
SELECT DISTINCT 84, col1 AS col1 FROM tab0
----
84
1
84
21
84
81

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - - col0 NOT BETWEEN + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT ( CAST( - SUM( + col2 ) AS SIGNED ) ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3654
SELECT ( CAST ( - SUM ( + col2 ) AS INTEGER ) ) AS col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + COUNT( * ) * + 83 AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-3655
SELECT + COUNT ( * ) * + 83 AS col0 FROM tab0
----
249

query I rowsort
SELECT + col2 / - col0 AS col0 FROM tab2 WHERE NOT + 94 / + ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, + 1 FROM tab2
----
-46
1
-64
1
-75
1

query II rowsort
SELECT DISTINCT + col1, - 40 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT + + 29 / + AVG ( - col0 ) + + - COUNT( * ) * - 53 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT + + 29 / + AVG ( - col0 ) + + - COUNT ( * ) * - 53 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT DISTINCT - - ( - CAST( NULL AS SIGNED ) ) * + col2 + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - - ( - CAST ( NULL AS INTEGER ) ) * + col2 + col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 BETWEEN 41 * - col1 AND - col2
----

query I rowsort
SELECT col1 + + 83 * - 93 FROM tab0
----
-7638
-7698
-7718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col0, col1 col0 FROM tab2
----
-17
67
-23
51
-24
77

query I rowsort
SELECT col2 / + 13 * 18 * + 33 * + col0 + - + 34 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT DISTINCT - - COUNT( - CAST( + col0 AS SIGNED ) ) + 38 * COUNT( * ) AS col1 FROM tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT - - COUNT ( - CAST ( + col0 AS INTEGER ) ) + 38 * COUNT ( * ) AS col1 FROM tab1 cor0
----
117

query I rowsort
SELECT DISTINCT col0 * + col1 + - - col0 AS col1 FROM tab0 AS cor0
----
1230
1914
194

query I rowsort
SELECT - ( + col0 ) * - - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT 32 * - - CAST( NULL AS SIGNED ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT 32 * - - CAST ( NULL AS INTEGER ) + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 67 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT ALL + 38 * + - COUNT( * ) + + + 98 * COUNT( * ) DIV - MAX( - ( - ( - col1 ) ) ) FROM tab2 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + 38 * + - COUNT ( * ) + + + 98 * COUNT ( * ) / - MAX ( - ( - ( - col1 ) ) ) FROM tab2 AS cor0
----
-109

query I rowsort
SELECT col0 * - 48 AS col1 FROM tab0
----
-4176
-4656
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT 56 DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT 56 / - col0 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3675
SELECT + CAST( NULL AS DECIMAL ) + - col2 / - 74 AS col2, + ( + col0 ) - + + ( - 29 ) FROM tab0
----
NULL
116
NULL
126
NULL
44

skipif mysql # not compatible
query II rowsort label-3675
SELECT + CAST ( NULL AS REAL ) + - col2 / - 74 AS col2, + ( + col0 ) - + + ( - 29 ) FROM tab0
----
NULL
116
NULL
126
NULL
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT DISTINCT + 9 DIV - SUM( - col0 ) * - COUNT( * ) * 51 + - + COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + 9 / - SUM ( - col0 ) * - COUNT ( * ) * 51 + - + COUNT ( * ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col1 col1 FROM tab1
----
110
115
64

query I rowsort
SELECT col2 + - 96 * + col1 AS col0 FROM tab2 AS cor0
----
-4873
-6374
-7352

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col1 >= + - 64
----
3

skipif mysql # not compatible
query I rowsort label-3679
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 >= + - 64
----
3

query I rowsort
SELECT col2 + + + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

query II rowsort
SELECT - 70, 45 AS col1 FROM tab2 AS cor0
----
-70
45
-70
45
-70
45

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL = NULL
----

query II rowsort
SELECT + col0, col0 * col1 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT MIN( ALL - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3684
SELECT MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT + COUNT( * ) AS col0, 16 AS col0 FROM tab0 cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-3685
SELECT + COUNT ( * ) AS col0, 16 AS col0 FROM tab0 cor0
----
3
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT ALL - 49 FROM tab1 AS cor0 WHERE ( NOT ( ( NOT + 39 - + CAST( NULL AS SIGNED ) >= + - col0 ) ) )
----

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - 49 FROM tab1 AS cor0 WHERE ( NOT ( ( NOT + 39 - + CAST ( NULL AS INTEGER ) >= + - col0 ) ) )
----

query I rowsort
SELECT DISTINCT 68 * 59 * + + 62 AS col2 FROM tab1
----
248744

query I rowsort
SELECT + col1 * + + ( col1 ) FROM tab1
----
196
2209
25

query I rowsort
SELECT - ( - - col0 ) * - col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + 73 * + 54 * + - 53 * 2 AS col1 FROM tab1 AS cor0
----
-417852

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + + col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - 5 + + 35 AS col1 FROM tab0
----
30

query II rowsort
SELECT - col1 AS col0, + 77 AS col0 FROM tab2
----
-51
77
-67
77
-77
77

query I rowsort
SELECT + col2 + - + col0 AS col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL - 78 * + + MAX( ALL - col1 ) * - - 30 AS col1 FROM tab0 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL - 78 * + + MAX ( ALL - col1 ) * - - 30 AS col1 FROM tab0 AS cor0
----
2340

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT DISTINCT 81 DIV + col2 + 30 FROM tab0 AS cor0
----
30
31
38

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT 81 / + col2 + 30 FROM tab0 AS cor0
----
30
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + + + col2 col0 FROM tab1 AS cor0
----
109
72
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT + 16 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 16 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 + - col2 col2 FROM tab2 AS cor0
----
-14
-32
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT DISTINCT + COUNT( DISTINCT + col2 ) DIV - 30 + + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) / - 30 + + + COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT + - COUNT( * ) DIV - 92 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + - COUNT ( * ) / - 92 AS col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT MAX( ALL 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT MAX ( ALL 55 ) FROM tab2
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3703
SELECT col2 DIV col0 AS col1, + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-3703
SELECT col2 / col0 AS col1, + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT + ( ( col1 ) ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT + col2 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT + 41 * - - 19 + + COUNT( * ) AS col2 FROM tab0
----
782

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + 41 * - - 19 + + COUNT ( * ) AS col2 FROM tab0
----
782

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT 73 DIV + ( + col1 ) FROM tab0
----
0
3
73

skipif mysql # not compatible
query I rowsort label-3707
SELECT 73 / + ( + col1 ) FROM tab0
----
0
3
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT - ( - 24 ) - - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3708
SELECT - ( - 24 ) - - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
25

query II rowsort
SELECT 30 + col0 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
105
-58
76
-23
94
-40

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab2 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3711
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + col2 * + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3711
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 * + + col0 AND NULL
----

query I rowsort
SELECT + 26 + + col0 + + col0 AS col1 FROM tab2
----
118
154
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT - COUNT( - 49 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3713
SELECT - COUNT ( - 49 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 37 * - col0 FROM tab2 AS cor0
----
-1702
-2368
-2775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3715
SELECT ALL - ( - - CAST( + 29 AS SIGNED ) ) col1, col0 * - col1 + - col1 FROM tab2 cor0
----
-29
-2397
-29
-5005
-29
-5092

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3715
SELECT ALL - ( - - CAST ( + 29 AS INTEGER ) ) col1, col0 * - col1 + - col1 FROM tab2 cor0
----
-29
-2397
-29
-5005
-29
-5092

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT + - col2 DIV 44 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3717
SELECT + - col2 / 44 FROM tab0 cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - + MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3718
SELECT - + MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3719
SELECT - col2 AS col0, - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

skipif mysql # not compatible
query II rowsort label-3719
SELECT - col2 AS col0, - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT + 56 * + COUNT( * ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + 56 * + COUNT ( * ) FROM tab2
----
168

query II rowsort
SELECT DISTINCT col1, 14 AS col0 FROM tab1
----
14
14
47
14
5
14

query I rowsort
SELECT ALL + ( + + col1 ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3723
SELECT - CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3723
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT DISTINCT 62 AS col1, + COUNT( * ) FROM tab2
----
62
3

skipif mysql # not compatible
query II rowsort label-3724
SELECT DISTINCT 62 AS col1, + COUNT ( * ) FROM tab2
----
62
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * - + col1 col1 FROM tab0
----
-1995
-7695
-95

query I rowsort
SELECT DISTINCT + 3 - + - 76 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT IN ( - ( - 30 ), - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) <= - - col2
----

query I rowsort
SELECT - col2 * + 56 AS col2 FROM tab0 AS cor0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL MAX( + + ( + col0 ) ) + 46 FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL MAX ( + + ( + col0 ) ) + 46 FROM tab0 AS cor0
----
143

query I rowsort
SELECT ALL + col1 * + col1 + col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3733
SELECT DISTINCT 67 * - + CAST( + col0 AS SIGNED ) + col1 - + ( + col1 ) * - - col0 + + col2, + col2 FROM tab0 AS cor0 WHERE + 2 NOT BETWEEN col2 * col0 AND NULL
----
-2092
47
-6496
99
-7625
10

skipif mysql # not compatible
query II rowsort label-3733
SELECT DISTINCT 67 * - + CAST ( + col0 AS INTEGER ) + col1 - + ( + col1 ) * - - col0 + + col2, + col2 FROM tab0 AS cor0 WHERE + 2 NOT BETWEEN col2 * col0 AND NULL
----
-2092
47
-6496
99
-7625
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - 77 col1 FROM tab2 AS cor0
----
-128
-144
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT + col1 - - 64 + - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT + col1 - - 64 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3736
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3736
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0
----
3
-3

query I rowsort
SELECT col2 * + - col1 + ( - - 87 ) AS col1 FROM tab2
----
-1086
-2993
-3799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + 56 col0 FROM tab0
----
15
56
87
56
97
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT - - col0 * + + 22 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - - col0 * + + 22 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - + col1 * + 82 >= - + 88
----
97
1
99

query I rowsort
SELECT col1 * 24 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT DISTINCT col0 * - + 30 AS col0 FROM tab0 AS cor0
----
-2610
-2910
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT - CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3743
SELECT - CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + 28 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
28
10
28
47
28
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3745
SELECT + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query I rowsort
SELECT ALL - 96 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3748
SELECT + + ( - 31 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-31
3

skipif mysql # not compatible
query II rowsort label-3748
SELECT + + ( - 31 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-31
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT DISTINCT CAST( - MIN( ALL - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT CAST ( - MIN ( ALL - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col2 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT - COUNT( * ) DIV - 95 FROM tab0 AS cor0 WHERE NOT - col2 >= col1
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT - COUNT ( * ) / - 95 FROM tab0 AS cor0 WHERE NOT - col2 >= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL 21 * + COUNT( * ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL 21 * + COUNT ( * ) FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT - 5 + COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - 5 + COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL + COUNT( DISTINCT + + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + COUNT ( DISTINCT + + col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 8 + - col2 FROM tab0
----
-2
-39
-91

query II rowsort
SELECT - - col2, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL + COUNT( * ) + + 59 col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3757
SELECT ALL + COUNT ( * ) + + 59 col1 FROM tab1 AS cor0
----
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 67 * + 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT DISTINCT + 14 + - COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + 14 + - COUNT ( * ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT - 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + - + 56 col1 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - MAX( ALL + 4 ) AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3762
SELECT - MAX ( ALL + 4 ) AS col2 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col1 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT - COUNT( ALL - col0 ) + + - 0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT - COUNT ( ALL - col0 ) + + - 0 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3767
SELECT * FROM tab1 WHERE ( ( NOT - - CAST( NULL AS SIGNED ) >= + 14 ) )
----

skipif mysql # not compatible
query III rowsort label-3767
SELECT * FROM tab1 WHERE ( ( NOT - - CAST ( NULL AS INTEGER ) >= + 14 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT DISTINCT col2 * col2 DIV - 38 FROM tab0
----
-2
-257
-58

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT col2 * col2 / - 38 FROM tab0
----
-2
-257
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT ALL - col2 * col1 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - col2 * col1 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 * - - 47, col2 - - col1 AS col1 FROM tab0
----
4089
31
4559
100
705
128

query I rowsort
SELECT DISTINCT - 78 * - + col2 AS col0 FROM tab0
----
3666
7722
780

query I rowsort
SELECT ALL - 72 + - - 49 + + col2 * col2 FROM tab2
----
1577
3341
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT ALL CAST( + col0 AS SIGNED ) * + col2 + - col1 FROM tab2
----
1007
2483
4283

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL CAST ( + col0 AS INTEGER ) * + col2 + - col1 FROM tab2
----
1007
2483
4283

onlyif mysql # DIV for integer division: 
query II rowsort label-3774
SELECT ALL 99 DIV - col1 col2, + col1 AS col0 FROM tab2
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3774
SELECT ALL 99 / - col1 col2, + col1 AS col0 FROM tab2
----
-1
51
-1
67
-1
77

query I rowsort
SELECT col1 - + 66 AS col0 FROM tab1
----
-19
-52
-61

query II rowsort
SELECT DISTINCT - 10 * + 56, - col2 AS col2 FROM tab1 AS cor0
----
-560
-59
-560
-68
-560
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 8 * + - col1 * - + col0 col0 FROM tab0 AS cor0
----
14616
776
9720

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT - col0 * 38 * + - col2 * + col0 DIV - ( + col0 ) FROM tab0
----
-26790
-33060
-364914

skipif mysql # not compatible
query I rowsort label-3778
SELECT - col0 * 38 * + - col2 * + col0 / - ( + col0 ) FROM tab0
----
-26790
-33060
-364914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT + + CAST( - 8 AS SIGNED ) FROM tab1 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3779
SELECT + + CAST ( - 8 AS INTEGER ) FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col0 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL - + col1 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - + col1 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 AS col1 FROM tab2 cor0
----
64
64
64

query II rowsort
SELECT + col1, + 62 AS col2 FROM tab2 AS cor0
----
51
62
67
62
77
62

query I rowsort
SELECT ALL + 71 * + + col1 * col0 FROM tab1
----
30175
303667
50694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3785
SELECT ( - COUNT( - CAST( - col0 AS SIGNED ) ) ) AS col1, 13 + - COUNT( * ) col2 FROM tab0
----
-3
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3785
SELECT ( - COUNT ( - CAST ( - col0 AS INTEGER ) ) ) AS col1, 13 + - COUNT ( * ) col2 FROM tab0
----
-3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT - MAX( ALL + - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT - MAX ( ALL + - col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL + 32 AS col2 FROM tab1 WHERE - 51 + + ( - - ( 59 ) ) >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL + 9 * - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL + 9 * - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL col0 + + - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3789
SELECT ALL col0 + + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - ( + col2 ) ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - - 46 * col1 AS col1 FROM tab2 cor0
----
2346
3082
3542

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3792
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS DECIMAL ) ) < - col2
----

skipif mysql # not compatible
query III rowsort label-3792
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS REAL ) ) < - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT + 5 * 41 + 35 * + 3 DIV COUNT( * ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3793
SELECT + 5 * 41 + 35 * + 3 / COUNT ( * ) FROM tab1 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3794
SELECT + + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT SUM( ALL + - col0 ) * COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-3795
SELECT SUM ( ALL + - col0 ) * COUNT ( * ) FROM tab1
----
-681

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3796
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) - - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3796
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 85 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 > - col1 + + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL COUNT( * ) * - 2 + COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL COUNT ( * ) * - 2 + COUNT ( * ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT - COUNT( * ) - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3800
SELECT - COUNT ( * ) - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 60 ) / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT + 35 + + col0 AS col2 FROM tab2 cor0
----
110
81
99

query I rowsort
SELECT + 74 * col2 + col0 FROM tab0 AS cor0
----
3493
7423
827

query I rowsort
SELECT ALL - col2 * + - col2 + - 86 FROM tab1 AS cor0
----
3395
4538
9130

query I rowsort
SELECT 50 * 86 + + 34 AS col2 FROM tab1
----
4334
4334
4334

query I rowsort
SELECT DISTINCT + 45 * col2 * 71 AS col0 FROM tab2
----
127800
185310
73485

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT - ( + 95 ) + - - COUNT( * ) AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-3808
SELECT - ( + 95 ) + - - COUNT ( * ) AS col1 FROM tab2
----
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT DISTINCT + 65 * + col1 AS col1 FROM tab2 AS cor0
----
3315
4355
5005

query II rowsort
SELECT col0 AS col1, + col1 * col2 FROM tab0 AS cor0
----
15
3807
87
210
97
99

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL <= 6
----

query I rowsort
SELECT DISTINCT 82 * - 76 * ( ( - 12 ) ) AS col0 FROM tab0
----
74784

query I rowsort
SELECT - 2 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT + + ( + - col0 ) * 54 FROM tab1 AS cor0
----
-2754
-4590
-4914

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - ( - 96 )
----

query I rowsort
SELECT DISTINCT col0 * - 16 * + - 54 AS col2 FROM tab2 AS cor0
----
39744
55296
64800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 28 col1 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - ( 23 ) + + - MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3819
SELECT - ( 23 ) + + - MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT 55 * + 11 * + - col2 FROM tab1 AS cor0
----
-35695
-41140
-58080

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * + + 83 / - + col0 >= + ( - 94 )
----
NULL

query I rowsort
SELECT ALL + 30 * + - col0 AS col0 FROM tab0 AS cor0
----
-2610
-2910
-450

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3823
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3823
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - col2 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3824
SELECT * FROM tab2 WHERE - col1 + 21 NOT BETWEEN col0 AND - CAST( NULL AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3824
SELECT * FROM tab2 WHERE - col1 + 21 NOT BETWEEN col0 AND - CAST ( NULL AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 * col2 * + - col2 AS col0, + col1 AS col1 FROM tab2
----
-102400
77
-24334
51
-252300
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT 92 + + - ( + COUNT( * ) ) col2 FROM tab0, tab1 cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3826
SELECT DISTINCT 92 + + - ( + COUNT ( * ) ) col2 FROM tab0, tab1 cor0
----
83

query I rowsort
SELECT - - 59 + 87 FROM tab2 WHERE + + col2 IS NULL
----

query I rowsort
SELECT ALL 68 + - col2 AS col1 FROM tab2
----
10
28
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT - SUM( DISTINCT - col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3829
SELECT - SUM ( DISTINCT - col0 ) AS col0 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3830
SELECT ALL * FROM tab0 WHERE - - col1 <> ( CAST( 96 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3830
SELECT ALL * FROM tab0 WHERE - - col1 <> ( CAST ( 96 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + 15 col2 FROM tab1
----
-14
15
-47
15
-5
15

query II rowsort
SELECT - col1, + 67 AS col2 FROM tab2
----
-51
67
-67
67
-77
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + MIN( col1 ) AS col0 FROM tab2 WHERE - - 36 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-3833
SELECT + MIN ( col1 ) AS col0 FROM tab2 WHERE - - 36 IS NOT NULL
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT DISTINCT - + MIN( DISTINCT + - CAST( + 51 AS SIGNED ) ) + + 99 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT - + MIN ( DISTINCT + - CAST ( + 51 AS INTEGER ) ) + + 99 FROM tab0 AS cor0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 - - col0 col0 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL - + 80 + CAST( NULL AS SIGNED ) / - - SUM( ALL - col1 ) * + MAX( + - col2 ) / - + ( - + 32 ) + 39 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL - + 80 + CAST ( NULL AS INTEGER ) / - - SUM ( ALL - col1 ) * + MAX ( + - col2 ) / - + ( - + 32 ) + 39 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + 21 AS col2, + col0 FROM tab1 AS cor0
----
21
51
21
85
21
91

query I rowsort
SELECT ALL + 66 - - col0 FROM tab1 AS cor0
----
117
151
157

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col1 + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3840
SELECT * FROM tab1 WHERE NOT + 16 + + CAST( NULL AS SIGNED ) * + CAST( CAST( + 53 AS SIGNED ) * + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3840
SELECT * FROM tab1 WHERE NOT + 16 + + CAST ( NULL AS INTEGER ) * + CAST ( CAST ( + 53 AS INTEGER ) * + col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT COUNT( * ) FROM tab0 WHERE ( 51 * - CAST( NULL AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3842
SELECT COUNT ( * ) FROM tab0 WHERE ( 51 * - CAST ( NULL AS INTEGER ) ) IS NULL
----
3

query I rowsort
SELECT DISTINCT + ( - 70 ) FROM tab2 WHERE col2 IN ( 26 )
----

query I rowsort
SELECT DISTINCT 60 * - col1 + 8 FROM tab0
----
-1252
-4852
-52

query I rowsort
SELECT + 32 * col1 AS col0 FROM tab1
----
1504
160
448

query I rowsort
SELECT DISTINCT 13 FROM tab1 WHERE + col1 > - col0 * col0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col0 col2 FROM tab2 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 - col2 col1 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT col2 / col1 FROM tab1 WHERE NULL <= 75 * - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT COUNT( * ) + - 54 AS col1 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT COUNT ( * ) + - 54 AS col1 FROM tab0
----
-51

query I rowsort
SELECT - ( col1 ) * 58 AS col0 FROM tab1
----
-2726
-290
-812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT ALL COUNT( * ) DIV 28 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL COUNT ( * ) / 28 AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT DISTINCT - 51 DIV + col1 AS col2 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT - 51 / + col1 AS col2 FROM tab1
----
-1
-10
-3

query I rowsort
SELECT + ( 20 ) AS col1 FROM tab1
----
20
20
20

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col2 IN ( 20 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT DISTINCT + ( col1 ) DIV - col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + ( col1 ) / - col2 FROM tab0
----
-1
-2
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 < + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT ALL + ( + col1 ) DIV - col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + ( + col1 ) / - col2 AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT SUM( - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3859
SELECT SUM ( - col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT + 81 - col0 * col1 FROM tab0
----
-1134
-16
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT DISTINCT - COUNT( * ) + + 44 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT - COUNT ( * ) + + 44 FROM tab2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT - CAST( NULL AS SIGNED ) * 69 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT - CAST ( NULL AS INTEGER ) * 69 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 71 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 71 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3864
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 > - CAST( - 43 AS SIGNED ) * - 4
----

skipif mysql # not compatible
query III rowsort label-3864
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 > - CAST ( - 43 AS INTEGER ) * - 4
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 19
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col0 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT - col0 DIV + 80 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 41 < - col2
----
15
86
96

skipif mysql # not compatible
query I rowsort label-3867
SELECT - col0 / + 80 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 41 < - col2
----
15
86
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 21 AND 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT - MAX( ALL 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - MAX ( ALL 24 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT 47 * - 42 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 0c00e122164f2809377536220b95defc

query I rowsort
SELECT DISTINCT + 73 * - 25 FROM tab2
----
-1825

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 39 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT + COUNT( * ) + - MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT + COUNT ( * ) + - MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT DISTINCT + col2 + - col2 DIV 47 AS col1 FROM tab1 cor0
----
58
67
94

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + col2 + - col2 / 47 AS col1 FROM tab1 cor0
----
58
67
94

query I rowsort
SELECT ALL 14 + 35 * - col0 AS col0 FROM tab0 AS cor0
----
-3031
-3381
-511

query I rowsort
SELECT DISTINCT - - col0 * 15 AS col2 FROM tab0 cor0
----
1305
1455
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3877
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + 24 >= ( + CAST( NULL AS SIGNED ) * ( col2 ) - + col1 )
----

skipif mysql # not compatible
query III rowsort label-3877
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + 24 >= ( + CAST ( NULL AS INTEGER ) * ( col2 ) - + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 60 + + col2 * col0 )
----

query I rowsort
SELECT ALL + 13 * ( 62 + 28 ) FROM tab2 AS cor0
----
1170
1170
1170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 12 * ( + col2 ) col2 FROM tab1 AS cor0
----
1152
708
816

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT CAST( + col0 AS SIGNED ) * + col2 AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-3882
SELECT CAST ( + col0 AS INTEGER ) * + col2 AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + 59 + - COUNT( - 6 ) + + 57 AS col2 FROM tab1
----
113

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 59 + - COUNT ( - 6 ) + + 57 AS col2 FROM tab1
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT - CAST( + col1 AS SIGNED ) * + col1 + col1 FROM tab2
----
-2550
-4422
-5852

skipif mysql # not compatible
query I rowsort label-3884
SELECT - CAST ( + col1 AS INTEGER ) * + col1 + col1 FROM tab2
----
-2550
-4422
-5852

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 9 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT ALL - 0 + + ( + 73 ) DIV + 76 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - 0 + + ( + 73 ) / + 76 FROM tab0
----
0
0
0

query I rowsort
SELECT - 82 AS col2 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT 39 + 20 * col1 FROM tab0 AS cor0
----
1659
459
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3890
SELECT ALL + MIN( col1 ) - - CAST( + 5 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + MIN ( col1 ) - - CAST ( + 5 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + COUNT( * ) col0 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-3891
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) NOT IN ( + ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col0 / col0
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 55 FROM tab2, tab1 cor0
----
55

query I rowsort
SELECT DISTINCT + 48 * 51 + - col1 FROM tab1 cor0
----
2401
2434
2443

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL 54 * - col0 + - 78 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - + MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3899
SELECT - + MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL col2, 65 FROM tab1 AS cor0
----
59
65
68
65
96
65

query II rowsort
SELECT + col0, + 89 FROM tab0 AS cor0
----
15
89
87
89
97
89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - col1
----

query I rowsort
SELECT DISTINCT + 93 * - + 73 AS col2 FROM tab1
----
-6789

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3904
SELECT DISTINCT * FROM tab0 WHERE ( - + CAST( col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3904
SELECT DISTINCT * FROM tab0 WHERE ( - + CAST ( col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col2 ) BETWEEN - col2 + 35 * + ( - 18 ) AND 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT ( NOT ( NULL ) >= + col2 + - ( 34 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + + 34 * MIN( + 78 ) AS col1 FROM tab2 AS cor0
----
2652

skipif mysql # not compatible
query I rowsort label-3908
SELECT + + 34 * MIN ( + 78 ) AS col1 FROM tab2 AS cor0
----
2652

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3909
SELECT + CAST( + 47 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3909
SELECT + CAST ( + 47 AS INTEGER ) / col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3910
SELECT - + ( MAX( ALL - - 50 ) ) * - - ( CAST( NULL AS DECIMAL ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT - + ( MAX ( ALL - - 50 ) ) * - - ( CAST ( NULL AS REAL ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 * + + ( - - col2 ) + col1 col0 FROM tab2 cor0
----
-1789
-3123
-4573

query I rowsort
SELECT ALL + ( - 58 ) AS col1 FROM tab0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 - 34 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT DISTINCT + 56 + - col0 * CAST( + 23 AS SIGNED ) FROM tab1
----
-1117
-1899
-2037

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + 56 + - col0 * CAST ( + 23 AS INTEGER ) FROM tab1
----
-1117
-1899
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT COUNT( * ) + - 58 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-49

skipif mysql # not compatible
query I rowsort label-3916
SELECT COUNT ( * ) + - 58 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 WHERE NOT - 24 + + + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 24 + + + col0 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 6 + - + 34 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL + + 18 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + + 18 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3921
SELECT ALL * FROM tab1 AS cor0 WHERE + 26 NOT BETWEEN - - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3921
SELECT ALL * FROM tab1 AS cor0 WHERE + 26 NOT BETWEEN - - CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL MIN( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT + + COUNT( + 58 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT + + COUNT ( + 58 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col0 FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 / - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT ALL - COUNT( * ) * + 9 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - COUNT ( * ) * + 9 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ( + col1 ) * - col2 * col0 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query II rowsort label-3928
SELECT DISTINCT COUNT( * ), 36 AS col0 FROM tab0
----
3
36

skipif mysql # not compatible
query II rowsort label-3928
SELECT DISTINCT COUNT ( * ), 36 AS col0 FROM tab0
----
3
36

query I rowsort
SELECT ALL 74 + - 47 AS col0 FROM tab1
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + 56 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( col1 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * 37 * + col2 + - - col1 + - 58 - + 6 + - col1 AS col1 FROM tab0 AS cor0
----
362573
3636
81669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT ALL - 20 - - col0 + - CAST( + 46 AS SIGNED ) FROM tab2 AS cor0
----
-2
-20
9

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - 20 - - col0 + - CAST ( + 46 AS INTEGER ) FROM tab2 AS cor0
----
-2
-20
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 23 * - - ( 53 ) + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 * 77 IN ( + 19 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 + - + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3937
SELECT ALL 78 col2, col1 DIV - 86 FROM tab0 cor0
----
78
0
78
0
78
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3937
SELECT ALL 78 col2, col1 / - 86 FROM tab0 cor0
----
78
0
78
0
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - COUNT( ALL 1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3938
SELECT - COUNT ( ALL 1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT + ( + - col0 ) + - + col0 AS col1 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( + + 86 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT + 78 * col0 DIV - col0 FROM tab0 cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-3941
SELECT + 78 * col0 / - col0 FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + col2 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT - col1 DIV - - ( - col0 ) + col0 * + col2 + - col0 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - + col1 IS NOT NULL )
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3943
SELECT - col1 / - - ( - col0 ) + col0 * + col2 + - col0 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - + col1 IS NOT NULL )
----
0
0
5

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NULL >= 48 - + - 65 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + COUNT( * ) * + + 51 col1 FROM tab1
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3945
SELECT + COUNT ( * ) * + + 51 col1 FROM tab1
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE - 8 NOT IN ( + col1 )
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3948
SELECT * FROM tab0 WHERE NOT ( - col2 / + + ( + CAST( NULL AS SIGNED ) ) + col0 * - col2 ) <> col1 + col2 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3948
SELECT * FROM tab0 WHERE NOT ( - col2 / + + ( + CAST ( NULL AS INTEGER ) ) + col0 * - col2 ) <> col1 + col2 * - CAST ( NULL AS REAL )
----

query II rowsort
SELECT col0 AS col2, 24 FROM tab2
----
46
24
64
24
75
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + COUNT( * ) * 13 AS col1 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3950
SELECT + COUNT ( * ) * 13 AS col1 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL + COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT + COUNT( ALL - col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT + COUNT ( ALL - col1 ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 12 <> 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + col1 col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3955
SELECT ALL + COUNT( * ), + 92 AS col2 FROM tab0 cor0
----
3
92

skipif mysql # not compatible
query II rowsort label-3955
SELECT ALL + COUNT ( * ), + 92 AS col2 FROM tab0 cor0
----
3
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + col1 col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT col1 * + + col1 + - 10 + + + col1 * 87 * - 41 * + 2 - + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT col1 * + + col1 + - 10 + + + col1 * 87 * - 41 * + 2 - + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( - col2 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 47 * - + col0 + - col1 FROM tab1
----
-2411
-4000
-4324

query I rowsort
SELECT ALL + AVG ( ALL + col2 ) FROM tab1 AS cor0 WHERE 19 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - 61 + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-61

skipif mysql # not compatible
query I rowsort label-3961
SELECT - 61 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 15 * + 29 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT - - col1 - - CAST( NULL AS SIGNED ) + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3963
SELECT - - col1 - - CAST ( NULL AS INTEGER ) + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - + 25, + 76, - col0 )
----

query I rowsort
SELECT 26 + - - col2 FROM tab2 AS cor0
----
49
66
84

query I rowsort
SELECT - col1 + col2 * + col1 FROM tab1
----
1330
290
3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - 87 col2 FROM tab2
----
110
127
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + - - col0 col0 FROM tab2
----
-10
-21
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT col1 + - CAST( col2 AS SIGNED ) + - ( - 42 ) * + 41 AS col1 FROM tab0
----
1624
1733
1756

skipif mysql # not compatible
query I rowsort label-3969
SELECT col1 + - CAST ( col2 AS INTEGER ) + - ( - 42 ) * + 41 AS col1 FROM tab0
----
1624
1733
1756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT + COUNT( - + 4 ) * - MIN( ALL - CAST( 62 AS SIGNED ) ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + COUNT ( - + 4 ) * - MIN ( ALL - CAST ( 62 AS INTEGER ) ) FROM tab0
----
186

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 * - ( - + 10 ) * + + 15 + - + 40 + + + col1 * col1 + - 96 / col0 ) >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT - col2 DIV - + col2 + + + col2 + 32 FROM tab1 AS cor0
----
101
129
92

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT - col2 / - + col2 + + + col2 + 32 FROM tab1 AS cor0
----
101
129
92

query I rowsort
SELECT ALL - col0 + 82 AS col0 FROM tab0 AS cor0
----
-15
-5
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT 83 * - col2 DIV col2 FROM tab2 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-3974
SELECT 83 * - col2 / col2 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - COUNT( - + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3975
SELECT - COUNT ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 84 * + + col2 AS col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT DISTINCT - col2 * - ( + ( + col2 ) ) FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT + col1 * col2 + - - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-3978
SELECT + col1 * col2 + - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1395
3287
380

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - + col1 >= + col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT col0 * 48 + - 59 + + col1 FROM tab2 AS cor0
----
2200
3090
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT col0 DIV + - 11 FROM tab0 cor0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-3982
SELECT col0 / + - 11 FROM tab0 cor0
----
-1
-7
-8

query III rowsort
SELECT col2, 78, col1 AS col1 FROM tab1 AS cor0
----
9 values hashing to 103b53bb0203b662ffe9c8ecab6cebbb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 92 AS col0, + col0 + 4 col1 FROM tab0 AS cor0
----
-92
101
-92
19
-92
91

query I rowsort
SELECT AVG ( ALL + - 75 ) FROM tab0 AS cor0 WHERE NOT NULL >= - col2
----
NULL

query I rowsort
SELECT ALL col2 * + 18 AS col2 FROM tab1
----
1062
1224
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * + 60 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * + 60 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - ( - col2 ) AS col2 FROM tab2 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT - ( col0 ) * 4 - + col2 * 28 - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - ( col0 ) * 4 - + col2 * 28 - + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - + MAX( + 30 ) * COUNT( * ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3990
SELECT - + MAX ( + 30 ) * COUNT ( * ) FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT + 64 + COUNT( * ) AS col2, 35 AS col0 FROM tab2 AS cor0 WHERE NULL <> 6 * - 91
----
64
35

skipif mysql # not compatible
query II rowsort label-3991
SELECT + 64 + COUNT ( * ) AS col2, 35 AS col0 FROM tab2 AS cor0 WHERE NULL <> 6 * - 91
----
64
35

query III rowsort
SELECT * FROM tab1 WHERE + col2 >= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3993
SELECT DISTINCT + - col1 + - - col1 * + CAST( NULL AS SIGNED ) * - + col0 AS col1, - 42 FROM tab2 AS cor0
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-3993
SELECT DISTINCT + - col1 + - - col1 * + CAST ( NULL AS INTEGER ) * - + col0 AS col1, - 42 FROM tab2 AS cor0
----
NULL
-42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 >= + 51
----
15
81
47
87
21
10

query I rowsort
SELECT 80 + - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-19
33
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3996
SELECT ALL * FROM tab2 cor0 WHERE col0 * - CAST( NULL AS SIGNED ) * 90 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3996
SELECT ALL * FROM tab2 cor0 WHERE col0 * - CAST ( NULL AS INTEGER ) * 90 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 60 ) FROM tab1 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT ALL + MAX( + 49 ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + MAX ( + 49 ) FROM tab1 AS cor0
----
49

query I rowsort
SELECT - col0 FROM tab1 WHERE col0 + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL SUM( + col2 ) * + 68 FROM tab0
----
10608

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL SUM ( + col2 ) * + 68 FROM tab0
----
10608

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT COUNT( - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT COUNT ( - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT + col2 DIV - col1 - - 11 AS col1 FROM tab0
----
-88
11
11

skipif mysql # not compatible
query I rowsort label-4002
SELECT + col2 / - col1 - - 11 AS col1 FROM tab0
----
-88
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT ALL MAX( - CAST( + col0 AS SIGNED ) ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL MAX ( - CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL ( 36 ) + - MAX( ALL col0 ) + - 16 + COUNT( * ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL ( 36 ) + - MAX ( ALL col0 ) + - 16 + COUNT ( * ) FROM tab2
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4005
SELECT CAST( NULL AS DECIMAL ) + - col1 col2 FROM tab0 AS cor0 WHERE ( 21 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4005
SELECT CAST ( NULL AS REAL ) + - col1 col2 FROM tab0 AS cor0 WHERE ( 21 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4006
SELECT DISTINCT + + 8, + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col0 <= - ( + col0 )
----
8
0

skipif mysql # not compatible
query II rowsort label-4006
SELECT DISTINCT + + 8, + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col0 <= - ( + col0 )
----
8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT 35 * - MIN( DISTINCT ( 32 ) ) col1 FROM tab1
----
-1120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4007
SELECT 35 * - MIN ( DISTINCT ( 32 ) ) col1 FROM tab1
----
-1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 60 * - col0 FROM tab2 cor0
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT 5 * COUNT( * ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT 5 * COUNT ( * ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT + + MAX( ALL + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + + MAX ( ALL + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT - COUNT( - - 39 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - COUNT ( - - 39 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + + 89 * + + col1 + 26, col1 AS col1 FROM tab1 AS cor0
----
1272
14
4209
47
471
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 4 col1 FROM tab0 AS cor0
----
-324
-4
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT + COUNT( * ) AS col0, 73 FROM tab1
----
3
73

skipif mysql # not compatible
query II rowsort label-4015
SELECT + COUNT ( * ) AS col0, 73 FROM tab1
----
3
73

query I rowsort
SELECT col0 * col2 - col1 FROM tab1 WHERE NOT - col0 IN ( - + 54 + + - col2 + - col1 )
----
4882
5010
6141

query I rowsort
SELECT ALL + + 81 + col0 FROM tab0 WHERE - + col0 NOT BETWEEN col1 AND NULL
----
168
178
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col1 FROM tab0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 63 AS col0, col1 - - col2 + - col2 col2 FROM tab2
----
63
51
63
67
63
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 < 29 * col0 + + 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - + col2 - + col2 FROM tab1 cor0 WHERE NOT ( NOT ( - col1 + + col0 IS NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 81 AND + col0 * - col1
----

query II rowsort
SELECT DISTINCT + + 94 AS col0, - col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 55 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT CAST( NULL AS SIGNED ) + col1 + - - ( + col2 ) * 26 * - col2 AS col0 FROM tab2 WHERE + 61 + - 65 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4025
SELECT CAST ( NULL AS INTEGER ) + col1 + - - ( + col2 ) * 26 * - col2 AS col0 FROM tab2 WHERE + 61 + - 65 IS NULL
----

query I rowsort
SELECT ALL - ( - 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT col2 * - 56 + col1 FROM tab1
----
-3299
-3761
-5362

query I rowsort
SELECT DISTINCT + 30 * 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT col1 DIV + col2 + + col2 FROM tab0 AS cor0
----
12
48
99

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT col1 / + col2 + + col2 FROM tab0 AS cor0
----
12
48
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT ALL - 53 * CAST( col0 AS SIGNED ) + 81 + + 76 AS col2 FROM tab2 cor0
----
-2281
-3235
-3818

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - 53 * CAST ( col0 AS INTEGER ) + 81 + + 76 AS col2 FROM tab2 cor0
----
-2281
-3235
-3818

query I rowsort
SELECT DISTINCT 11 - col1 + - col2 FROM tab1 AS cor0
----
-104
-53
-99

query I rowsort
SELECT + - col2 * + + 45 - + 79 FROM tab2 AS cor0
----
-1114
-1879
-2689

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - + COUNT( * ) - COUNT( * ) + + SUM( col1 ) * + 35 FROM tab1 AS cor0
----
2304

skipif mysql # not compatible
query I rowsort label-4034
SELECT - + COUNT ( * ) - COUNT ( * ) + + SUM ( col1 ) * + 35 FROM tab1 AS cor0
----
2304

query I rowsort
SELECT ALL - - col1 - + - 74 AS col2 FROM tab0 AS cor0
----
155
75
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT - ( - 33 ) + + CAST( + - COUNT( * ) AS SIGNED ) * + 53 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4036
SELECT - ( - 33 ) + + CAST ( + - COUNT ( * ) AS INTEGER ) * + 53 FROM tab1 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL COUNT( * ) + - COUNT( * ) * 82 AS col0 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL COUNT ( * ) + - COUNT ( * ) * 82 AS col0 FROM tab2
----
-243

query II rowsort
SELECT ALL - col0 AS col0, - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT - col0, + 49 AS col1 FROM tab1 cor0
----
-51
49
-85
49
-91
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4040
SELECT - CAST( - col2 AS SIGNED ) DIV - col1 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-1
68
-11
59
-6
96

skipif mysql # not compatible
query II rowsort label-4040
SELECT - CAST ( - col2 AS INTEGER ) / - col1 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-1
68
-11
59
-6
96

query I rowsort
SELECT ALL + - 51 AS col2 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL SUM( ALL col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL SUM ( ALL col2 ) AS col2 FROM tab0
----
156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 38 IN ( col0, + 19 + col1 * - + 37, - col2 * 39 )
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + 48 + - 86 IS NOT NULL
----

query I rowsort
SELECT + 98 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - 96 * + 46 AS col2 FROM tab1
----
-4416
-4416
-4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 2 col0 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT + - col0 * - 53 AS col0 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT + col1 DIV col1 + + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4049
SELECT + col1 / col1 + + col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT - COUNT( DISTINCT + 32 ) * + + SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4050
SELECT - COUNT ( DISTINCT + 32 ) * + + SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT - - CAST( NULL AS SIGNED ) * + + 68 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT - - CAST ( NULL AS INTEGER ) * + + 68 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 45 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT - MIN( 82 ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4055
SELECT - MIN ( 82 ) AS col0 FROM tab0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - MIN( DISTINCT - 44 ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-4056
SELECT - MIN ( DISTINCT - 44 ) AS col0 FROM tab1
----
44

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT MAX( ALL col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4058
SELECT MAX ( ALL col0 ) col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) - - ( 37 ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - - ( 37 ) FROM tab1 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 * + + col1 + + col0 col0 FROM tab2
----
-1127
-1466
-1707

query I rowsort
SELECT ALL 71 + + 35 FROM tab1
----
106
106
106

query I rowsort
SELECT col2 + + col2 + - + col1 FROM tab1 cor0
----
113
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL MAX( ALL - col1 ) + - + COUNT( * ) + + 94 AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL MAX ( ALL - col1 ) + - + COUNT ( * ) + + 94 AS col2 FROM tab0 AS cor0
----
90

query I rowsort
SELECT + - col1 + col0 - - + 80 * + 46 AS col2 FROM tab2 AS cor0
----
3667
3675
3688

query II rowsort
SELECT DISTINCT + 32 + - 63 + + + 2 * col1 AS col1, - 89 AS col0 FROM tab2 AS cor0
----
103
-89
123
-89
71
-89

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE + 59 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= - + 19
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4068
SELECT ALL + MAX( ALL + - CAST( NULL AS DECIMAL ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4068
SELECT ALL + MAX ( ALL + - CAST ( NULL AS REAL ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT + MIN( ALL + - 95 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + MIN ( ALL + - 95 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 )
----
NULL

query I rowsort
SELECT DISTINCT 74 - + 64 + - col1 AS col0 FROM tab0 cor0
----
-11
-71
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 * - ( + 66 ) col0 FROM tab1
----
19470
210936
88704

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 / ( - - col2 ) / + ( 30 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * - 3 * + - col1 AS col2 FROM tab2
----
-11658
-3519
-9240

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL - + COUNT( * ) * + 42 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - + COUNT ( * ) * + 42 FROM tab2 AS cor0
----
-126

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4076
SELECT ALL - col0 DIV CAST( + 79 AS SIGNED ) DIV - col2 * + 17 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - col0 / CAST ( + 79 AS INTEGER ) / - col2 * + 17 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4077
SELECT ALL COUNT( * ) DIV - - COUNT( * ) - CAST( + 59 AS SIGNED ) FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL COUNT ( * ) / - - COUNT ( * ) - CAST ( + 59 AS INTEGER ) FROM tab0 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + ( col0 ) / - + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - 95 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL - - MIN( - - col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL - - MIN ( - - col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT DISTINCT + - 24 + 53 FROM tab0 AS cor0
----
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 4 ) + - + col1 IS NOT NULL
----

query I rowsort
SELECT + - col1 * 67 AS col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

query I rowsort
SELECT - + 69 * + 4 AS col2 FROM tab2 AS cor0
----
-276
-276
-276

query II rowsort
SELECT ALL + 18, 32 AS col2 FROM tab0 AS cor0
----
18
32
18
32
18
32

query II rowsort
SELECT DISTINCT + 52, + 57 AS col0 FROM tab0 AS cor0
----
52
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT - + COUNT( * ), SUM( col1 ) col2 FROM tab2 AS cor0
----
-3
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4088
SELECT - + COUNT ( * ), SUM ( col1 ) col2 FROM tab2 AS cor0
----
-3
195

query I rowsort
SELECT - + 36 AS col1 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT COUNT( * ) DIV 74 AS col1 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT COUNT ( * ) / 74 AS col1 FROM tab1, tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL + 39 * + COUNT( ALL + + ( col1 ) ) * + + ( - MAX( ALL - col1 ) ) + 89 col0 FROM tab0
----
206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4091
SELECT ALL + 39 * + COUNT ( ALL + + ( col1 ) ) * + + ( - MAX ( ALL - col1 ) ) + 89 col0 FROM tab0
----
206

query III rowsort
SELECT * FROM tab2 WHERE 98 / - 75 >= + ( - col2 ) * - col1 * col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col2 * + 17 + + + col1 + + ( + col0 ), - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - col0 ) * - 94 col0 FROM tab0
----
-1395
-8091
-9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 + col2 col0 FROM tab2
----
-10
-28
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT - col2 FROM tab1 WHERE - CAST( + 72 AS SIGNED ) + + 26 NOT IN ( - ( - - col0 ) )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4096
SELECT - col2 FROM tab1 WHERE - CAST ( + 72 AS INTEGER ) + + 26 NOT IN ( - ( - - col0 ) )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 49 * + + ( - 18 ) + - col2 AS col0 FROM tab2
----
-905
-922
-940

query II rowsort
SELECT ALL 94 * col0 AS col2, + col2 * + - 19 * - col0 AS col0 FROM tab2
----
4324
20102
6016
48640
7050
82650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4099
SELECT DISTINCT + SUM( CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT + SUM ( CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT 65 * - col1 AS col1 FROM tab0
----
-1365
-5265
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 <= NULL )
----

query I rowsort
SELECT ( + 92 ) * + - col0 + + + 29 + - col1 * + col2 - + 93 FROM tab2 cor0
----
-10850
-5469
-9032

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 60 NOT BETWEEN col0 * + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4105
SELECT ALL - CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT col1 * - + col0 * - - 0 + - col0 + + 64 FROM tab2 cor0
----
-11
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT + + COUNT( ALL - + ( + 54 ) ) + MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + + COUNT ( ALL - + ( + 54 ) ) + MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT - col1 * + + 53 + + col0 FROM tab0 AS cor0
----
-1026
-4278
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT DISTINCT + + MAX( ALL + + col0 ) - 27 + + - COUNT( - col1 ), + 92 AS col2 FROM tab2 AS cor0
----
45
92

skipif mysql # not compatible
query II rowsort label-4110
SELECT DISTINCT + + MAX ( ALL + + col0 ) - 27 + + - COUNT ( - col1 ), + 92 AS col2 FROM tab2 AS cor0
----
45
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - - ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4111
SELECT - - ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * + + 22 FROM tab1
----
1298
1496
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT - COUNT( ALL - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4113
SELECT - COUNT ( ALL - col2 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL - col1 * + 34 AS col2 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT + SUM( - + 32 ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + SUM ( - + 32 ) AS col1 FROM tab2
----
-96

query II rowsort
SELECT ALL + col2, 51 AS col0 FROM tab0 AS cor0
----
10
51
47
51
99
51

query I rowsort
SELECT DISTINCT - 10 + + 54 FROM tab2 WHERE NOT ( NOT ( + 61 + + ( - 64 ) ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT - SUM( ALL - + 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-4118
SELECT - SUM ( ALL - + 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
468

query I rowsort
SELECT + + 98 * col2 + + - 53 + col1 FROM tab2 AS cor0
----
2252
3944
5698

onlyif mysql # DIV for integer division: 
query I rowsort label-4120
SELECT + + col1 DIV 63 + + col0 + - ( + 68 ) AS col1 FROM tab0 AS cor0
----
-52
19
29

skipif mysql # not compatible
query I rowsort label-4120
SELECT + + col1 / 63 + + col0 + - ( + 68 ) AS col1 FROM tab0 AS cor0
----
-52
19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT MIN( ALL - 74 ) AS col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT MIN ( ALL - 74 ) AS col2 FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL + + CAST( - MIN( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + + CAST ( - MIN ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT 93 + 6 AS col0 FROM tab0
----
99
99
99

query I rowsort
SELECT DISTINCT + + col2 * ( + 23 ) FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT ALL COUNT( * ) AS col1, + 46 FROM tab0
----
3
46

skipif mysql # not compatible
query II rowsort label-4125
SELECT ALL COUNT ( * ) AS col1, + 46 FROM tab0
----
3
46

query III rowsort
SELECT * FROM tab0 WHERE - col1 >= - col2
----
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - - col1 + - col0 AND + + 38 * - col0 + 79 * - 67
----

query I rowsort
SELECT ALL col2 + - 92 FROM tab0
----
-45
-82
7

query II rowsort
SELECT col1, + 67 AS col0 FROM tab0
----
1
67
21
67
81
67

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col0 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + MAX( + 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4131
SELECT + MAX ( + 35 ) FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 + + - col1 col2 FROM tab1 AS cor0
----
-101
-110
-143

query I rowsort
SELECT col1 - col1 * 71 * + col1 FROM tab2 AS cor0
----
-184620
-318652
-420882

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / + 44 IS NULL
----

query I rowsort
SELECT + ( + 49 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT + ( - col2 ) + - col1 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4137
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4137
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT + COUNT( * ) + CAST( - - 50 AS SIGNED ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4138
SELECT + COUNT ( * ) + CAST ( - - 50 AS INTEGER ) FROM tab0
----
53

query II rowsort
SELECT + col2 + - col2 AS col2, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT - 9 + - + col0 - - + col0 + + col0 AS col1 FROM tab0
----
6
78
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT ALL - + col1 * + col2 + ( + 66 ) + + col0 + 20 DIV 59 DIV - 67 * + 15 FROM tab2 AS cor0
----
-1061
-2950
-3745

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL - + col1 * + col2 + ( + 66 ) + + col0 + 20 / 59 / - 67 * + 15 FROM tab2 AS cor0
----
-1061
-2950
-3745

onlyif mysql # aggregate syntax: 
query II rowsort label-4142
SELECT ALL MIN( - col0 ) col0, - COUNT( * ) FROM tab2 AS cor0
----
-75
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4142
SELECT ALL MIN ( - col0 ) col0, - COUNT ( * ) FROM tab2 AS cor0
----
-75
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * + col0 col2 FROM tab2
----
4370
6080
7125

query II rowsort
SELECT DISTINCT ( - col2 ) * - col1, col1 FROM tab1
----
1344
14
295
5
3196
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT DISTINCT - 74 DIV - 34 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - 74 / - 34 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT 71 * - - COUNT( * ) AS col0 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-4146
SELECT 71 * - - COUNT ( * ) AS col0 FROM tab1
----
213

query I rowsort
SELECT ALL col1 * + + 89 FROM tab0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT - MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-4148
SELECT - MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-97

query II rowsort
SELECT DISTINCT + col2, 56 * + col1 FROM tab0 AS cor0 WHERE NOT + 82 / - 60 + + 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 53 * + - col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND + 99 + - + col1 + + col1 + - 13 * + col2 - + + col0 - + 80
----

query II rowsort
SELECT col1, 83 * col0 * - 11 * 6 AS col0 FROM tab2
----
51
-251988
67
-410850
77
-350592

query III rowsort
SELECT * FROM tab0 WHERE NOT + 14 BETWEEN - - col0 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT SUM( + - col0 ) * - - 75 col0 FROM tab2
----
-13875

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4154
SELECT SUM ( + - col0 ) * - - 75 col0 FROM tab2
----
-13875

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT ALL + 96 DIV - col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + 96 / - col2 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT DISTINCT + 2 + + + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
23
3
83

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + 2 + + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
23
3
83

query I rowsort
SELECT + 67 + - + col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 44 FROM tab1 cor0
----
103
112
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT DISTINCT 25 * - 7 * COUNT( * ) + + 96 DIV + 15 AS col0 FROM tab0 AS cor0
----
-519

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT 25 * - 7 * COUNT ( * ) + + 96 / + 15 AS col0 FROM tab0 AS cor0
----
-519

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col2 < col1 )
----

query I rowsort
SELECT + col1 + + ( 88 ) FROM tab2
----
139
155
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT COUNT( * ) + + 55 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-4162
SELECT COUNT ( * ) + + 55 FROM tab0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT - CAST( NULL AS SIGNED ) + col1 * + 19 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT - CAST ( NULL AS INTEGER ) + col1 * + 19 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 68 ) + + ( - 64 ) col2 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT + MAX( ALL + 52 ) AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + MAX ( ALL + 52 ) AS col2 FROM tab1
----
52

query I rowsort
SELECT DISTINCT - + 28 + col2 FROM tab0 cor0
----
-18
19
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT ALL + + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT + MIN( + 18 ) * + + 0 AS col2, + 43 + + - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
NULL
43

skipif mysql # not compatible
query II rowsort label-4168
SELECT + MIN ( + 18 ) * + + 0 AS col2, + 43 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + - COUNT( + 88 ) * 31 AS col0 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4169
SELECT + - COUNT ( + 88 ) * 31 AS col0 FROM tab1 cor0
----
-93

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NOT - 39 > + + 62 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * col2 col1 FROM tab1
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT + SUM( DISTINCT - 87 ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + SUM ( DISTINCT - 87 ) AS col1 FROM tab1 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT - col1 DIV - 99 - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4173
SELECT - col1 / - 99 - col1 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT COUNT( * ), + SUM( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3
-195

skipif mysql # not compatible
query II rowsort label-4174
SELECT COUNT ( * ), + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
3
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 23 + + ( + - col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
-1035
NULL
-2537
NULL
-4327

skipif mysql # not compatible
query II rowsort label-4175
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 23 + + ( + - col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL
-1035
NULL
-2537
NULL
-4327

query II rowsort
SELECT + 61 AS col0, + ( + + col2 ) * ( + 17 ) FROM tab1 AS cor0
----
61
1003
61
1156
61
1632

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col2 + + - col0 * + + col0 ) AND NULL
----

query I rowsort
SELECT col0 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 <= 98 + + col2 + - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * col2 col1 FROM tab1 AS cor0
----
354
408
576

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IN ( + - col0 * + + col1 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT DISTINCT - col1 * + - CAST( NULL AS SIGNED ) FROM tab0 WHERE - 47 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - 47 + - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + 92 * + col1 AS col2 FROM tab2 AS cor0
----
4692
6164
7084

query I rowsort
SELECT DISTINCT col0 + - + ( - + 38 ) FROM tab1 AS cor0
----
123
129
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT - - 62 * + COUNT( * ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - - 62 * + COUNT ( * ) FROM tab2 AS cor0
----
186

query I rowsort
SELECT ALL + 68 * + 77 AS col1 FROM tab1
----
5236
5236
5236

query I rowsort
SELECT ALL + 1 + + col0 AS col0 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT ALL col1 DIV + + 67 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL col1 / + + 67 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + ( 71 ) FROM tab2 AS cor0 WHERE + col0 * - col0 NOT BETWEEN + - col0 * - - col0 + col0 AND 96
----
71
71
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4189
SELECT DISTINCT - + MIN( col2 ) DIV 32 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - + MIN ( col2 ) / 32 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col0 + - + col2 + - ( + col1 ) AS col1 FROM tab2 cor0
----
-28
-50
-53

query I rowsort
SELECT + + 74 FROM tab0 AS cor0 WHERE + 91 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 / + col2 + - col2 + + col0 * - 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL - + col2 FROM tab2 WHERE NOT + - col2 * + + col2 BETWEEN + - 9 AND - CAST( - 60 AS SIGNED )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - + col2 FROM tab2 WHERE NOT + - col2 * + + col2 BETWEEN + - 9 AND - CAST ( - 60 AS INTEGER )
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4194
SELECT - COUNT( ALL - col1 ) DIV - + SUM( - col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4194
SELECT - COUNT ( ALL - col1 ) / - + SUM ( - col0 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT - 57 + + COUNT( * ) + + COUNT( ALL - col2 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - 57 + + COUNT ( * ) + + COUNT ( ALL - col2 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 31 - col2 + col1 AS col1 FROM tab1
----
-23
-51
10

query I rowsort
SELECT DISTINCT 93 - - 9 + + 28 AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - 39 * + col0 * - col2 + - - col2 AS col2 FROM tab2 cor0
----
169708
41285
99880

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT + 46 * + col1 + + col1 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT - 70 * + - col1 AS col2 FROM tab0
----
1470
5670
70

query I rowsort
SELECT DISTINCT + - 38 * 97 * + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-195358

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + 27 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - 9 IS NULL
----
27
27
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4207
SELECT DISTINCT - col0, - col1 DIV + col0 col0 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4207
SELECT DISTINCT - col0, - col1 / + col0 col0 FROM tab1
----
-51
0
-85
0
-91
0

query I rowsort
SELECT 64 * - col2 FROM tab2 WHERE NOT NULL <> - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4209
SELECT DISTINCT col2 + - col1 + + 59 AS col1, col0 DIV - + col1 FROM tab1
----
113
-17
141
-3
80
-1

skipif mysql # not compatible
query II rowsort label-4209
SELECT DISTINCT col2 + - col1 + + 59 AS col1, col0 / - + col1 FROM tab1
----
113
-17
141
-3
80
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4210
SELECT MAX( 45 ) DIV 62 DIV - - 18 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4210
SELECT MAX ( 45 ) / 62 / - - 18 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 54 / - 38 * col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 54 / - 38 * col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - COUNT( * ) + - 82 col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4212
SELECT - COUNT ( * ) + - 82 col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----
-82

query I rowsort
SELECT DISTINCT - 75 + + - col1 AS col2 FROM tab0 AS cor0
----
-156
-76
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL + MAX( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT + col0 + + col2, col2 AS col1 FROM tab2 cor0
----
104
40
133
58
69
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT - col0 DIV - col2 + + 59 + - + col2 AS col1 FROM tab1
----
-37
-8
1

skipif mysql # not compatible
query I rowsort label-4216
SELECT - col0 / - col2 + + 59 + - + col2 AS col1 FROM tab1
----
-37
-8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT col1 * 14 DIV col2 + + + 0 - - + col1 DIV - col0 + - col0 FROM tab1
----
-49
-82
-84

skipif mysql # not compatible
query I rowsort label-4217
SELECT col1 * 14 / col2 + + + 0 - - + col1 / - col0 + - col0 FROM tab1
----
-49
-82
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL 9 * COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL 9 * COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT SUM( + col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4219
SELECT SUM ( + col1 ) col1 FROM tab1 AS cor0
----
66

query II rowsort
SELECT ALL + col0 AS col2, 46 FROM tab2
----
46
46
64
46
75
46

query II rowsort
SELECT DISTINCT col0 AS col1, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - col2, - col2 col2 FROM tab2
----
-1600
-40
-3364
-58
-529
-23

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT + + col1 * - 56 + - col2 + ( + col1 ) * + - CAST( - 71 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
114
16
637

skipif mysql # not compatible
query I rowsort label-4224
SELECT + + col1 * - 56 + - col2 + ( + col1 ) * + - CAST ( - 71 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
114
16
637

query II rowsort
SELECT - 12 AS col1, 68 * + 68 AS col0 FROM tab1 cor0
----
-12
4624
-12
4624
-12
4624

query II rowsort
SELECT + col2, + col1 + + col1 AS col0 FROM tab1 AS cor0
----
59
10
68
94
96
28

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 53 <= + col1
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4229
SELECT ALL - MAX( DISTINCT 84 ), - 66 AS col1 FROM tab2
----
-84
-66

skipif mysql # not compatible
query II rowsort label-4229
SELECT ALL - MAX ( DISTINCT 84 ), - 66 AS col1 FROM tab2
----
-84
-66

query II rowsort
SELECT ALL - ( + col2 ), + col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL 51 + ( - col0 ) AS col1 FROM tab0
----
-36
-46
36

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 50 BETWEEN NULL AND col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT DISTINCT + + col0 + - + col2 DIV col2 AS col1 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + + col0 + - + col2 / col2 AS col1 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT COUNT( * ) + + 35 AS col0 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-4235
SELECT COUNT ( * ) + + 35 AS col0 FROM tab0
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / + 1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 79 + - col1 + + 3 IS NULL
----

query I rowsort
SELECT - col1 * + col0 + + 35 + - + 77 FROM tab2 AS cor0
----
-2388
-4970
-5067

query I rowsort
SELECT DISTINCT + 63 - col0 * - + col0 FROM tab1 AS cor0
----
2664
7288
8344

query I rowsort
SELECT - ( - 29 ) FROM tab2 cor0
----
29
29
29

query II rowsort
SELECT - col2, - 5 AS col2 FROM tab1 cor0
----
-59
-5
-68
-5
-96
-5

query I rowsort
SELECT ALL 54 FROM tab0 AS cor0 WHERE NULL IS NULL
----
54
54
54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4243
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4243
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE ( NULL ) < col2
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL NOT BETWEEN + - col2 * - 47 AND - col1 + + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT col0 * - CAST( - ( + col2 ) AS SIGNED ) AS col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT col0 * - CAST ( - ( + col2 ) AS INTEGER ) AS col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT COUNT( * ) FROM tab0 WHERE - - col1 + - + col1 + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4247
SELECT COUNT ( * ) FROM tab0 WHERE - - col1 + - + col1 + + col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT DISTINCT + col2 * - CAST( + + col2 AS SIGNED ) + 7 + col1 FROM tab1 WHERE NOT - + col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + col2 * - CAST ( + + col2 AS INTEGER ) + 7 + col1 FROM tab1 WHERE NOT - + col0 = NULL
----

query I rowsort
SELECT col0 * + col1 * 56 AS col1 FROM tab2 AS cor0
----
131376
275968
281400

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - MIN( DISTINCT - col1 ) * + 14 FROM tab0 AS cor0
----
1134

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - MIN ( DISTINCT - col1 ) * + 14 FROM tab0 AS cor0
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL - + MAX( DISTINCT - + 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - + MAX ( DISTINCT - + 65 ) FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT + - col2 * - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
-33135
-8700
-950697

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * - col2 col2 FROM tab1
----
-236
-272
-384

query I rowsort
SELECT ALL + col0 * - 47 AS col2 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT DISTINCT 89 DIV - 94 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT 89 / - 94 AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - ( + + 59 ) AND + 95
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT - COUNT( col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - COUNT ( col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 / col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - 64 * - COUNT( * ) FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4261
SELECT - 64 * - COUNT ( * ) FROM tab1 AS cor0
----
192

query I rowsort
SELECT DISTINCT - col0 * ( + - col1 ) AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT col2 * - 72 - - 5 FROM tab2 AS cor0
----
-1651
-2875
-4171

query I rowsort
SELECT ( - + 17 ) AS col1 FROM tab2
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4266
SELECT ALL CAST( NULL AS SIGNED ), - col0 * - - col2 AS col2 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL CAST ( NULL AS INTEGER ), - col0 * - - col2 AS col2 FROM tab0
----
NULL
-705
NULL
-870
NULL
-9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 - - col2 + + - col1 > col0 * + col2 + col1 - col2 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT + CAST( NULL AS SIGNED ) * - col0 * + 40 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT + CAST ( NULL AS INTEGER ) * - col0 * + 40 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col2, 43 FROM tab1
----
59
43
68
43
96
43

query I rowsort
SELECT DISTINCT + 67 * col1 FROM tab2
----
3417
4489
5159

query I rowsort
SELECT DISTINCT 96 + - 98 AS col2 FROM tab1
----
-2

query I rowsort
SELECT col0 + - 57 FROM tab2
----
-11
18
7

query I rowsort
SELECT - + 70 FROM tab0 WHERE NULL IN ( - + col2, col2, - - ( - - col2 ) )
----

query I rowsort
SELECT + col1 * - - 47 + 45 FROM tab1
----
2254
280
703

query I rowsort
SELECT ALL + 46 + + + col2 FROM tab0 AS cor0
----
145
56
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 89 col2, - col2 AS col1 FROM tab1 AS cor0
----
-89
-59
-89
-68
-89
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT DISTINCT + COUNT( * ) + - + 17 * + 38 - - - COUNT( * ) FROM tab0 AS cor0
----
-646

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + COUNT ( * ) + - + 17 * + 38 - - - COUNT ( * ) FROM tab0 AS cor0
----
-646

query I rowsort
SELECT ALL + + col2 - + col2 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 27 + 6 AS col2 FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT ALL - 36 + + - ( - - COUNT( - 88 ) ) DIV + 25 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - 36 + + - ( - - COUNT ( - 88 ) ) / + 25 FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4283
SELECT + 35 + col1 DIV - + col2 AS col0 FROM tab1 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-4283
SELECT + 35 + col1 / - + col2 AS col0 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT DISTINCT + 44 DIV - col2 - - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT + 44 / - col2 - - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT ALL 7 - - col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL 7 - - col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 59 FROM tab2
----
110
126
136

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab2 WHERE NOT col0 + col1 IS NULL
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col1 FROM tab2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT col2 DIV - - col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4289
SELECT col2 / - - col2 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT 71 + - 93 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 29 col2 FROM tab2
----
-1334
-1856
-2175

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
10
47
99

query I rowsort
SELECT 79 - col2 FROM tab1
----
-17
11
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT ALL CAST( 46 AS SIGNED ) FROM tab2
----
46
46
46

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL CAST ( 46 AS INTEGER ) FROM tab2
----
46
46
46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT + SUM( + 8 ) AS col1 FROM tab0 WHERE ( 27 ) IN ( col2 + + col0 / + CAST( col2 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT + SUM ( + 8 ) AS col1 FROM tab0 WHERE ( 27 ) IN ( col2 + + col0 / + CAST ( col2 AS INTEGER ) )
----
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT ( 31 ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE + 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 55 * col2 AS col0 FROM tab0
----
2585
5445
550

query I rowsort
SELECT DISTINCT + 42 * + col2 AS col1 FROM tab2 WHERE NOT + 44 - 50 IS NULL
----
1680
2436
966

query I rowsort
SELECT 55 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col2 * 70 AND col1 + - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - COUNT( * ) * 56 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-4302
SELECT - COUNT ( * ) * 56 FROM tab0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT - COUNT( DISTINCT + col0 ) * - MIN( DISTINCT + 76 ) col2 FROM tab2
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4303
SELECT - COUNT ( DISTINCT + col0 ) * - MIN ( DISTINCT + 76 ) col2 FROM tab2
----
228

query I rowsort
SELECT ALL - 69 * col1 + col0 * - col0 FROM tab0
----
-5814
-9018
-9478

query I rowsort
SELECT 21 FROM tab0 WHERE ( - col2 * + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT MAX( 1 ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4306
SELECT MAX ( 1 ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4307
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) + 91 / - ( 84 - 48 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) + 91 / - ( 84 - 48 ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT 64 * COUNT( ALL col2 ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-4308
SELECT 64 * COUNT ( ALL col2 ) FROM tab1
----
192

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + 16 AS col1 FROM tab2
----
-24
-42
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT + MIN( col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + MIN ( col0 ) AS col1 FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 WHERE col1 = + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ( + SUM( ALL - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4313
SELECT ( + SUM ( ALL - col2 ) ) FROM tab1
----
-223

query I rowsort
SELECT - 82 + + col0 FROM tab1
----
-31
3
9

query I rowsort
SELECT + col1 * + 65 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT DISTINCT + MAX( col1 ) + + CAST( NULL AS SIGNED ) * - MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + MAX ( col1 ) + + CAST ( NULL AS INTEGER ) * - MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT MAX( 51 ) - 76 AS col1 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4317
SELECT MAX ( 51 ) - 76 AS col1 FROM tab1 AS cor0
----
-25

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL 39 * + col2 + - col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
1818
303
3764

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT DISTINCT 3 * - col0 + - 53 * + 91 AS col2 FROM tab0
----
-4868
-5084
-5114

query I rowsort
SELECT DISTINCT 95 + + ( 61 + 60 ) FROM tab2 AS cor0 WHERE 14 * 85 < col0
----

query I rowsort
SELECT - - 93 * col2 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT ALL + 51 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
51
51

query I rowsort
SELECT ALL - 38 + col1 AS col2 FROM tab0 AS cor0
----
-17
-37
43

query I rowsort
SELECT + ( ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 12 NOT BETWEEN col0 AND col2 * col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab0 cor0
----
-54
-54
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 74 * + col0
----

query I rowsort
SELECT 99 AS col2 FROM tab2 AS cor0 WHERE - col0 * col2 - + 34 NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL - 19 * ( col1 ) FROM tab2 AS cor0
----
-1273
-1463
-969

query I rowsort
SELECT ALL - 22 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 81 * col2 AS col0 FROM tab1 AS cor0 WHERE ( 46 ) NOT BETWEEN ( ( col1 ) ) AND ( - col2 )
----
4779
5508
7776

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab0 WHERE - col1 IS NOT NULL
----
174
194
30

query I rowsort
SELECT - 49 AS col0 FROM tab0 WHERE NOT + col1 IN ( col0 )
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4337
SELECT ALL * FROM tab2 WHERE ( col2 + CAST( NULL AS SIGNED ) ) BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4337
SELECT ALL * FROM tab2 WHERE ( col2 + CAST ( NULL AS INTEGER ) ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - col0 * col0 * - col1 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( + 65 ) < ( - col0 * 28 )
----
-3

skipif mysql # not compatible
query I rowsort label-4339
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( + 65 ) < ( - col0 * 28 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT + CAST( + 41 AS SIGNED ) * - 68 AS col1 FROM tab2
----
-2788
-2788
-2788

skipif mysql # not compatible
query I rowsort label-4340
SELECT + CAST ( + 41 AS INTEGER ) * - 68 AS col1 FROM tab2
----
-2788
-2788
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT SUM( DISTINCT col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT SUM ( DISTINCT col0 ) FROM tab2 cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 96 ) BETWEEN - CAST( 5 AS SIGNED ) AND 30
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4342
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 96 ) BETWEEN - CAST ( 5 AS INTEGER ) AND 30
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col0 NOT BETWEEN col0 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col2 * - - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4346
SELECT ALL + 33 AS col0, CAST( NULL AS SIGNED ) + - ( 35 ) FROM tab1
----
33
NULL
33
NULL
33
NULL

skipif mysql # not compatible
query II rowsort label-4346
SELECT ALL + 33 AS col0, CAST ( NULL AS INTEGER ) + - ( 35 ) FROM tab1
----
33
NULL
33
NULL
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + ( + + ( - ( COUNT( * ) ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + ( + + ( - ( COUNT ( * ) ) ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - - col1 * col2 * ( col1 ) + + col2 FROM tab0 cor0
----
198
308414
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL - 94 * + COUNT( * ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - 94 * + COUNT ( * ) FROM tab0 AS cor0
----
-282

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col1 * - col0 BETWEEN ( NULL ) AND ( + ( 25 ) )
----

query I rowsort
SELECT ALL - - 66 * + - col0 * - - 2 FROM tab2 cor0
----
-6072
-8448
-9900

query I rowsort
SELECT ALL - 9 AS col1 FROM tab1 AS cor0 WHERE NOT 97 / - 66 + - col0 IS NULL
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + 37
----

query I rowsort
SELECT + 71 * - col1 + - + col0 FROM tab2 AS cor0
----
-3667
-4832
-5531

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT + 72 DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 72 / + + col0 AS col2 FROM tab0 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT col1 - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 40 * - + 60 FROM tab2
----
2400

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - col1 IS NULL
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4360
SELECT DISTINCT - ( - col2 ) AS col0, - CAST( 75 AS SIGNED ) - col0 FROM tab0
----
10
-162
47
-90
99
-172

skipif mysql # not compatible
query II rowsort label-4360
SELECT DISTINCT - ( - col2 ) AS col0, - CAST ( 75 AS INTEGER ) - col0 FROM tab0
----
10
-162
47
-90
99
-172

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + + ( + col1 ) ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 AS cor0 WHERE ( - col1 ) <> col0 * + + 97
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + ( ( col1 ) ) ) + + col2 > + 39
----
15
81
47
97
1
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= NULL OR NOT + - col0 IN ( 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - + 98 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - 3 - - 24 AS col2 FROM tab2
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col0 FROM tab1
----
96
96
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 59 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 20 + - col2 + + - 82 AS col0 FROM tab0 AS cor0
----
-109
-161
-72

query II rowsort
SELECT - 7 * - 89 + - 46, col2 + 16 * - col1 AS col1 FROM tab0 AS cor0
----
577
-1249
577
-326
577
83

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL >= ( col0 - 38 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + COUNT( + 98 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4372
SELECT + COUNT ( + 98 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT + - COUNT( * ) DIV - + 60 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4373
SELECT + - COUNT ( * ) / - + 60 AS col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT MAX( + - 7 ) * - COUNT( DISTINCT - col1 ) - MAX( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT MAX ( + - 7 ) * - COUNT ( DISTINCT - col1 ) - MAX ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT DISTINCT + 91, COUNT( * ) col1 FROM tab2 AS cor0
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4375
SELECT DISTINCT + 91, COUNT ( * ) col1 FROM tab2 AS cor0
----
91
3

query II rowsort
SELECT col2 AS col2, + col1 + + col2 + - col0 * + col1 * col0 FROM tab2 AS cor0
----
23
-107842
40
-315275
58
-376750

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT DISTINCT - 8 DIV - 26 * + - col1 * col2 DIV + 22 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - 8 / - 26 * + - col1 * col2 / + 22 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT + col1 AS col1, + col0, + col0 AS col2 FROM tab2
----
9 values hashing to f83fc17c7f2d54813d812eda14b325ea

query I rowsort
SELECT - ( 11 ) AS col1 FROM tab0
----
-11
-11
-11

query III rowsort
SELECT * FROM tab2 WHERE NOT - 91 - - col2 + + col2 * col2 * col2 IS NOT NULL
----

query I rowsort
SELECT + 59 + + 25 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT ALL - ( ( - CAST( + ( COUNT( * ) ) AS SIGNED ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - ( ( - CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) ) FROM tab0
----
3

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT ( ( NOT ( NOT + col1 IS NULL ) ) )
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + 29, col2 FROM tab0 AS cor0
----
29
10
29
47
29
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4385
SELECT - col1 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT - col1 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + - 68 * - + col0 FROM tab1 AS cor0
----
332928
341020
420784

query I rowsort
SELECT DISTINCT + - 38 AS col2 FROM tab2 WHERE NOT + col1 >= ( - 82 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - ( 43 ) ) + - 71 col2 FROM tab1 AS cor0
----
-114
-114
-114

query I rowsort
SELECT ALL + col0 + + - col2 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
2369
4952
5042

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4390
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 / - ( - CAST( NULL AS SIGNED ) ) / 30 + - 30 + col1 * + 26 )
----

skipif mysql # not compatible
query III rowsort label-4390
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 / - ( - CAST ( NULL AS INTEGER ) ) / 30 + - 30 + col1 * + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - ( - + col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - ( - + col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - 74 + + + COUNT( * ) * - 93 FROM tab0 AS cor0
----
-353

skipif mysql # not compatible
query I rowsort label-4392
SELECT - 74 + + + COUNT ( * ) * - 93 FROM tab0 AS cor0
----
-353

query I rowsort
SELECT - - col0 + col0 * + + 32 AS col0 FROM tab0 AS cor0
----
2871
3201
495

query I rowsort
SELECT - + col2 * - - 23 + + - col1 + 1 * - 99 + - 49 AS col2 FROM tab2 cor0 WHERE 92 NOT BETWEEN col1 AND - col1
----
-1145
-1549
-728

query I rowsort
SELECT 46 + 77 AS col2 FROM tab1 AS cor0
----
123
123
123

query I rowsort
SELECT col1 * + + 70 + - col0 + + + col0 FROM tab2 AS cor0
----
3570
4690
5390

query I rowsort
SELECT - - col1 + + + 50 AS col0 FROM tab0 AS cor0
----
131
51
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( - 1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL - COUNT( ALL - + col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - COUNT ( ALL - + col2 ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT ALL + - col0, ( - col0 ) AS col1 FROM tab2 WHERE col0 BETWEEN - - col0 AND - - col0
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT DISTINCT - col0 * - 38 AS col0 FROM tab2
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL MAX( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL MAX ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4403
SELECT + col0 - ( CAST( NULL AS SIGNED ) ) / + 51 - + ( + col0 ) AS col1, + col2 + col0 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

skipif mysql # not compatible
query II rowsort label-4403
SELECT + col0 - ( CAST ( NULL AS INTEGER ) ) / + 51 - + ( + col0 ) AS col1, + col2 + col0 FROM tab0 AS cor0
----
NULL
196
NULL
62
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4404
SELECT + col0 DIV + - 8 AS col2, + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-10
5
-11
47
-6
14

skipif mysql # not compatible
query II rowsort label-4404
SELECT + col0 / + - 8 AS col2, + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-10
5
-11
47
-6
14

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col0 * - col1 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + - 42 * + 59 < NULL
----

query I rowsort
SELECT 52 + - + col2 FROM tab2
----
-6
12
29

query I rowsort
SELECT 89 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT col1 * + - ( + + col0 ) AS col0 FROM tab2 cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 34 + + + 17 / + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - col2 + - col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4412
SELECT ALL ( + CAST( + col0 AS SIGNED ) ) AS col1, 62 col0 FROM tab2
----
46
62
64
62
75
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4412
SELECT ALL ( + CAST ( + col0 AS INTEGER ) ) AS col1, 62 col0 FROM tab2
----
46
62
64
62
75
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 46 ) col2 FROM tab2
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT SUM( DISTINCT col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4414
SELECT SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT DISTINCT + 57 DIV + 17 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + 57 / + 17 AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4416
SELECT DISTINCT 72 AS col0, - col1 * - CAST( NULL AS DECIMAL ) + 7 FROM tab0 AS cor0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4416
SELECT DISTINCT 72 AS col0, - col1 * - CAST ( NULL AS REAL ) + 7 FROM tab0 AS cor0
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT + MIN( - 3 ) + - + MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4417
SELECT + MIN ( - 3 ) + - + MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + ( + + MAX( + col0 ) ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + ( + + MAX ( + col0 ) ) FROM tab0 AS cor0
----
88

query I rowsort
SELECT 90 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - 91 * + 98 + COUNT( * ) - - COUNT( + col1 ) AS col0 FROM tab2 AS cor0
----
-8912

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - 91 * + 98 + COUNT ( * ) - - COUNT ( + col1 ) AS col0 FROM tab2 AS cor0
----
-8912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT ALL CAST( + 29 AS SIGNED ) + + col0 AS col2 FROM tab0 cor0
----
116
126
44

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL CAST ( + 29 AS INTEGER ) + + col0 AS col2 FROM tab0 cor0
----
116
126
44

query I rowsort
SELECT + - ( + col0 ) * - col0 + - col1 * + col1 FROM tab2 AS cor0
----
-1833
-485
1136

query I rowsort
SELECT + col0 * + col2 + + col1 + + - 38 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-24
-33
9

query II rowsort
SELECT ALL - ( - 0 ) * 19 AS col2, 3 + col2 FROM tab1 WHERE NOT + + col2 + - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT SUM( ALL col2 ) + + COUNT( * ) + + ( MAX( 90 ) ) AS col1 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-4425
SELECT SUM ( ALL col2 ) + + COUNT ( * ) + + ( MAX ( 90 ) ) AS col1 FROM tab0
----
249

query I rowsort
SELECT - 9 + - 8 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT DISTINCT col2 * - + ( - - col0 ) * + col1 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT NULL BETWEEN col2 - - ( - - 71 ) AND NULL ) )
----

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE col2 + - col0 - - + 22 - + col2 * - col2 + + - 84 * + ( + + col1 ) NOT BETWEEN NULL AND ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 4 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 67 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 cor0
----
39

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 cor0 WHERE ( NOT - col1 + + 15 * + + col1 / + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 cor0 WHERE NOT ( 45 ) IS NULL
----
51
67
77

query I rowsort
SELECT + 65 AS col1 FROM tab1 cor0
----
65
65
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4436
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT 31 ) * - CAST( NULL AS SIGNED ) / + SUM( col2 ), - 77 AS col1 FROM tab1 cor0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-4436
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT 31 ) * - CAST ( NULL AS INTEGER ) / + SUM ( col2 ), - 77 AS col1 FROM tab1 cor0
----
NULL
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT ALL 67 DIV - COUNT( - col1 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL 67 / - COUNT ( - col1 ) FROM tab1
----
-22

query I rowsort
SELECT - col0 / - 74 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 * + + 2, - 79, col2 )
----

query I rowsort
SELECT ALL ( - + 76 ) FROM tab0
----
-76
-76
-76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + col0 * + + col1 NOT IN ( 21, col1, 28 * + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 IS NOT NULL
----

query II rowsort
SELECT ALL + + col1 + - + ( col2 ) + + col0 AS col1, col2 AS col1 FROM tab2 AS cor0
----
101
40
74
23
84
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL <= ( 87 * 88 * 28 + - col1 * - - col0 ) )
----

query I rowsort
SELECT ALL + col0 - - + col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4446
SELECT DISTINCT - 52 FROM tab2 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
-52

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - 52 FROM tab2 cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4447
SELECT ALL + CAST( NULL AS DECIMAL ) + + col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL + CAST ( NULL AS REAL ) + + col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT ALL CAST( + - 59 AS SIGNED ) FROM tab1 cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL CAST ( + - 59 AS INTEGER ) FROM tab1 cor0
----
-59
-59
-59

query I rowsort
SELECT ALL + 70 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL - ( + SUM( col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - ( + SUM ( col0 ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT + + 4 + col0 FROM tab1 cor0
----
55
89
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL 8 * - SUM( - 29 ) AS col1 FROM tab0 AS cor0
----
696

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL 8 * - SUM ( - 29 ) AS col1 FROM tab0 AS cor0
----
696

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 <> + - col1 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE - col2 BETWEEN NULL AND ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT col0 - col2 - + - CAST( - col0 AS SIGNED ) col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4455
SELECT col0 - col2 - + - CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT COUNT( * ) * MAX( DISTINCT 78 ) - + + SUM( - 72 ) + - 41 FROM tab2
----
409

skipif mysql # not compatible
query I rowsort label-4456
SELECT COUNT ( * ) * MAX ( DISTINCT 78 ) - + + SUM ( - 72 ) + - 41 FROM tab2
----
409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ( - + AVG ( - col0 ) ) + + - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) FROM tab0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ( - + AVG ( - col0 ) ) + + - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT DISTINCT ( - SUM( DISTINCT + col2 ) ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT ( - SUM ( DISTINCT + col2 ) ) AS col2 FROM tab0
----
-156

query II rowsort
SELECT col2 - + col2, + col2 AS col0 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT col1 * + col1 * - col1 - + col2 FROM tab2
----
-132674
-300821
-456573

query I rowsort
SELECT ALL ( - ( + 74 ) ) FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - ( + 51 ) FROM tab2 cor0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 99 ) AS col1, col0 col1 FROM tab2
----
99
46
99
64
99
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL ( + + COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL ( + + COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 51 <> NULL
----

query I rowsort
SELECT DISTINCT ( + 30 ) * - 9 FROM tab1 cor0
----
-270

query I rowsort
SELECT ALL - 86 * - col1 AS col1 FROM tab1 AS cor0
----
1204
4042
430

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> - + 48 - + + col1 + + + col1 - + 90 - 6
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 76
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT MAX( ALL + col2 ) DIV MIN( col1 ) DIV - COUNT( * ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT MAX ( ALL + col2 ) / MIN ( col1 ) / - COUNT ( * ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ( + + 47 ) AS col0 FROM tab0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab1
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + MIN( 40 ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-4473
SELECT + MIN ( 40 ) AS col2 FROM tab2
----
40

query I rowsort
SELECT DISTINCT col1 * + col0 + col2 * + + 93 FROM tab0
----
2757
5586
9304

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL 25 + - COUNT( * ) AS col2 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL 25 + - COUNT ( * ) AS col2 FROM tab2
----
22

query I rowsort
SELECT ALL + 21 + + col0 FROM tab2 AS cor0
----
67
85
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN col2 * - 2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT 82 * col2 DIV - 22 AS col1 FROM tab1
----
-219
-253
-357

skipif mysql # not compatible
query I rowsort label-4478
SELECT 82 * col2 / - 22 AS col1 FROM tab1
----
-219
-253
-357

query I rowsort
SELECT DISTINCT - col1 + - ( - 31 ) AS col2 FROM tab1
----
-16
17
26

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab1 WHERE NOT + col0 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 = + + col2 + + ( + col0 ) * + 36
----

query I rowsort
SELECT DISTINCT + - col0 + + ( col0 ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT DISTINCT + col1 DIV 57 * - col2 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + col1 / 57 * - col2 - - col2 AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT DISTINCT - - 96 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - - 96 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT + - SUM( col1 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT + - SUM ( col1 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 38 + + 51 AS col2 FROM tab2
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT DISTINCT - ( 50 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - ( 50 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 37 col2 FROM tab2 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - MIN( - col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-4490
SELECT - MIN ( - col2 ) FROM tab1 cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 14, - ( - col2 ) * + col0 - + - col0 col0 FROM tab0 AS cor0
----
14
720
14
957
14
9700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4492
SELECT DISTINCT CAST( + + 75 AS SIGNED ) AS col2, - col0 col2 FROM tab1
----
75
-51
75
-85
75
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4492
SELECT DISTINCT CAST ( + + 75 AS INTEGER ) AS col2, - col0 col2 FROM tab1
----
75
-51
75
-85
75
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4493
SELECT DISTINCT + - 97, SUM( DISTINCT col1 ) * + - 90 AS col1 FROM tab0 WHERE NOT 26 IS NOT NULL
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-4493
SELECT DISTINCT + - 97, SUM ( DISTINCT col1 ) * + - 90 AS col1 FROM tab0 WHERE NOT 26 IS NOT NULL
----
-97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * + col2 * + col0 col2 FROM tab0 cor0
----
-2115
-2610
-28809

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4495
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-4495
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4496
SELECT ALL - CAST( NULL AS SIGNED ) * + - col1 AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4496
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col1 AS col2, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT + + COUNT( * ) * + 50 FROM tab2 cor0
----
150

skipif mysql # not compatible
query I rowsort label-4497
SELECT + + COUNT ( * ) * + 50 FROM tab2 cor0
----
150

query I rowsort
SELECT DISTINCT - col1 * - col1 + - 90 FROM tab0 AS cor0
----
-89
351
6471

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + MIN( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4500
SELECT + MIN ( DISTINCT - col1 ) AS col0 FROM tab2
----
-77

query II rowsort
SELECT ALL - col1 * - + col1, + col0 AS col0 FROM tab0
----
1
97
441
87
6561
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL + MAX( DISTINCT - - col1 ) * + 11 * + - 5 FROM tab1 AS cor0
----
-2585

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + MAX ( DISTINCT - - col1 ) * + 11 * + - 5 FROM tab1 AS cor0
----
-2585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col0 AS col2, - col0 * + - ( + + 48 ) col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2601
2448
-7225
4080
-8281
4368

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT + + col1 DIV 55 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + + col1 / 55 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT ALL + + col1 DIV + 86 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + + col1 / + 86 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT ALL + col0 * + col1 + - col2 + + - col0 DIV 70 * col2 * + ( + 6 ) AS col1 FROM tab2
----
2323
4619
4888

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + col0 * + col1 + - col2 + + - col0 / 70 * col2 * + ( + 6 ) AS col1 FROM tab2
----
2323
4619
4888

query I rowsort
SELECT 12 + 73 AS col1 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT col1 + - + 57 FROM tab0 AS cor0
----
-36
-56
24

query I rowsort
SELECT DISTINCT - col1 + - col0 - 99 FROM tab1 AS cor0
----
-164
-189
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT COUNT( - 54 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4511
SELECT COUNT ( - 54 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT ALL + - CAST( - - COUNT( * ) AS SIGNED ) - + + CAST( 88 AS SIGNED ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + - CAST ( - - COUNT ( * ) AS INTEGER ) - + + CAST ( 88 AS INTEGER ) FROM tab1 cor0
----
-91

query I rowsort
SELECT + + 49 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 83, col2 * col1, + col0 + - col1 )
----

query I rowsort
SELECT ALL - col2 - col1 + col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT + 45 * col2 FROM tab1
----
2655
3060
4320

query I rowsort
SELECT col1 * - ( + + col0 ) AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL MAX( + col1 ) col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4517
SELECT ALL MAX ( + col1 ) col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT MIN( - col2 ) * ( - 24 ) AS col2 FROM tab0
----
2376

skipif mysql # not compatible
query I rowsort label-4518
SELECT MIN ( - col2 ) * ( - 24 ) AS col2 FROM tab0
----
2376

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + - + 92 BETWEEN + + col2 * + col2 + - - 25 - 81 + - - 75 + + - 92 + + col0 / - - col0 * 98 * + col2 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 27 * - + col2 FROM tab2
----
-1080
-1566
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT + SUM( ALL - col1 ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT + SUM ( ALL - col1 ) AS col0 FROM tab2 cor0
----
-195

query II rowsort
SELECT col1, - ( + 52 ) * + - col0 * - col0 / - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT + ( - - col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + col1 - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + col1 - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL - MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 62 * - 10 AS col2 FROM tab1 AS cor0
----
620
620
620

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 44 + 14 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL + ( - - MIN( - + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL + ( - - MIN ( - + col1 ) ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + col2 FROM tab0 WHERE + col1 * col2 <= - - 75
----

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + col2 FROM tab0 WHERE + col1 * col2 <= - - 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col1 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT + MAX( ALL + col2 ) + 33 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-4531
SELECT + MAX ( ALL + col2 ) + 33 FROM tab1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT + 26 + + col2 * - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + 26 + + col2 * - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 98 + - ( - col2 ) FROM tab2
----
-40
-58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 51 col0, - col0 + col2 col2 FROM tab0
----
51
-77
51
2
51
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT - - col0 + + col2 + - 83 * - 57 * - 74 / - CAST( NULL AS SIGNED ) * - 86 FROM tab2 WHERE col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-4535
SELECT - - col0 + + col2 + - 83 * - 57 * - 74 / - CAST ( NULL AS INTEGER ) * - 86 FROM tab2 WHERE col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT - 83 + + + col0 + - - col1 + col2 / + 65 * + 89 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - 83 + + + col0 + - - col1 + col2 / + 65 * + 89 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE col1 * - col2 - + col1 IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + 76 + - - col2 * - 53 + + - 40 AS col2, + col0 * + col0 AS col0 FROM tab0 AS cor0
----
-2455
225
-494
7569
-5211
9409

query I rowsort
SELECT ALL ( - col1 ) * - 77 + + - col0 FROM tab2 AS cor0
----
3881
5084
5865

query I rowsort
SELECT - - col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT DISTINCT - - 69 + + 9, + 81 * + col1 AS col2 FROM tab1 AS cor0
----
78
1134
78
3807
78
405

query III rowsort
SELECT * FROM tab0 WHERE + + col0 < - col2
----

query III rowsort
SELECT * FROM tab0 WHERE - + 17 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 6 + + 37 + + + col2 FROM tab1 AS cor0
----
102
111
139

query I rowsort
SELECT + - 81 FROM tab0 AS cor0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4546
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL + CAST( 54 AS SIGNED ) FROM tab2
----
54
54
54

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL + CAST ( 54 AS INTEGER ) FROM tab2
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4548
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / + col1 * + col0 = - 18 + col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-4548
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / + col1 * + col0 = - 18 + col1 * + col1
----

query II rowsort
SELECT DISTINCT col1, col1 + - col0 FROM tab2
----
51
5
67
-8
77
13

query I rowsort
SELECT DISTINCT 9 * - col0 AS col2 FROM tab0
----
-135
-783
-873

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT SUM( + 41 ) AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-4552
SELECT SUM ( + 41 ) AS col2 FROM tab0 AS cor0
----
123

query I rowsort
SELECT - - 28 * + 70 FROM tab2 AS cor0
----
1960
1960
1960

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 88 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 53 FROM tab1 AS cor0
----
-15
-43
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 82 ) NOT BETWEEN col2 AND 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 + - col1 + - + 26 col1 FROM tab0 AS cor0
----
-104
-24
-44

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT ALL 81 * col0 + col1 DIV + 67 + - col0 FROM tab2 AS cor0
----
3680
5121
6001

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 81 * col0 + col1 / + 67 + - col0 FROM tab2 AS cor0
----
3680
5121
6001

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - col0 ) <= - + col1
----
15
81
47

query I rowsort
SELECT - 37 * + col1 + col1 FROM tab0 AS cor0
----
-2916
-36
-756

query II rowsort
SELECT DISTINCT col0 AS col1, + 33 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( NULL IS NULL )
----
-3

query I rowsort
SELECT ALL + ( col1 ) * - col2 - - 70 + + col1 + - col0 FROM tab1
----
-1311
-305
-3170

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL + MAX( DISTINCT col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL + MAX ( DISTINCT col1 ) FROM tab2
----
77

query II rowsort
SELECT ALL - 8, col2 AS col0 FROM tab2
----
-8
23
-8
40
-8
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 - - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 82 + - ( - col0 ) AS col0 FROM tab0
----
169
179
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL - - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL - - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * + ( + col1 ) AS col2 FROM tab2 cor0
----
1173
3080
3886

query II rowsort
SELECT ALL + col0, col1 FROM tab0 AS cor0 WHERE + 55 + - 33 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND 62 + col0
----

query I rowsort
SELECT DISTINCT + 26 + + col1 * col0 * - col0 AS col1 FROM tab2 cor0
----
-107890
-315366
-376849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT col0 * col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT col0 * col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 80 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT - + 91 AS col2 FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT DISTINCT - - 47 * col0 DIV - col2 + - 94 FROM tab0 AS cor0
----
-109
-140
-502

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - - 47 * col0 / - col2 + - 94 FROM tab0 AS cor0
----
-109
-140
-502

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT COUNT( * ) + + COUNT( DISTINCT + 50 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
1

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT COUNT ( * ) + + COUNT ( DISTINCT + 50 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
1

query I rowsort
SELECT DISTINCT - col1 * + ( - 89 ) FROM tab1
----
1246
4183
445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4580
SELECT MAX( ALL - + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4580
SELECT MAX ( ALL - + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1
----
47

query I rowsort
SELECT 40 * - - col1 FROM tab0
----
3240
40
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT ALL CAST( col0 AS SIGNED ) * col1 + - 70 * ( - + col1 ) AS col1 FROM tab0
----
167
3297
6885

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL CAST ( col0 AS INTEGER ) * col1 + - 70 * ( - + col1 ) AS col1 FROM tab0
----
167
3297
6885

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT + COUNT( * ) * - 77 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-4583
SELECT + COUNT ( * ) * - 77 FROM tab1
----
-231

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + col0 + - + 5 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > + col0 * + 29 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT col2 DIV - - 12 FROM tab1
----
4
5
8

skipif mysql # not compatible
query I rowsort label-4586
SELECT col2 / - - 12 FROM tab1
----
4
5
8

query I rowsort
SELECT - - 37 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 9 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-4589
SELECT ALL ( + + 96 ) + - + col1 + + - 63 DIV - col2 AS col0 FROM tab0
----
16
81
95

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL ( + + 96 ) + - + col1 + + - 63 / - col2 AS col0 FROM tab0
----
16
81
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT col0 DIV 33 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT col0 / 33 FROM tab0
----
0
2

query I rowsort
SELECT ALL col2 + + 8 AS col2 FROM tab2 AS cor0
----
31
48
66

query I rowsort
SELECT ALL - - 36 AS col0 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT + - col2 * + 88 FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + COUNT( * ) * - 13 AS col0 FROM tab0 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + COUNT ( * ) * - 13 AS col0 FROM tab0 cor0
----
-39

query I rowsort
SELECT + ( - - 97 ) + - 5 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT + + SUM( - 97 ) AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + + SUM ( - 97 ) AS col1 FROM tab0 AS cor0
----
-291

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + - 7 + + - col0 * - 29 + 15 FROM tab0 cor0
----
2531
2821
443

query I rowsort
SELECT ALL - col0 * + 39 + + 96 * + col2 FROM tab2 AS cor0
----
1344
2643
414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE col1 BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4600
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE col1 BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT DISTINCT - col0 DIV col0 * + col1 col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4601
SELECT DISTINCT - col0 / col0 * + col1 col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT col0 + - 34 AS col2, col2 AS col2 FROM tab1
----
17
96
51
59
57
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4603
SELECT ALL CAST( NULL AS SIGNED ) + + + 10 + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL CAST ( NULL AS INTEGER ) + + + 10 + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 25 + COUNT( * ) AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 25 + COUNT ( * ) AS col1 FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + COUNT( * ) + + MIN( DISTINCT - + 67 ) AS col0 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-4605
SELECT + COUNT ( * ) + + MIN ( DISTINCT - + 67 ) AS col0 FROM tab0
----
-64

query I rowsort
SELECT - 91 + - 98 FROM tab1
----
-189
-189
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ALL - 81 + + col2 + col1 + col0 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - 81 + + col2 + col1 + col0 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT COUNT( * ) - - CAST( AVG ( ALL + 49 ) AS SIGNED ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-4608
SELECT COUNT ( * ) - - CAST ( AVG ( ALL + 49 ) AS INTEGER ) FROM tab2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT DISTINCT + CAST( col0 AS SIGNED ) col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4609
SELECT DISTINCT + CAST ( col0 AS INTEGER ) col0 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 56, col0 * col0, - - col0 - - - col2, ( + col0 ), col1 - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4611
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - CAST( 54 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4611
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - CAST ( 54 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 71 * 41 - + col2 NOT BETWEEN ( + - ( + 7 ) ) AND ( NULL )
----

query I rowsort
SELECT + col1 * + 26 FROM tab0 AS cor0
----
2106
26
546

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4614
SELECT + COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * + col1 * + col2 * + col0 col1 FROM tab1 AS cor0
----
2357050
27338584
6443136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 33 ) AS col2 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4618
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL ( + - col1 ) + - - col2 AS col1 FROM tab0 WHERE ( - col1 - - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + col2 + col2 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 70 * - ( col0 ) AS col2 FROM tab1
----
-3570
-5950
-6370

query I rowsort
SELECT DISTINCT + ( + 6 ) FROM tab0, tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT MAX( col0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - 40 + + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4623
SELECT MAX ( col0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - 40 + + col1
----
NULL

query I rowsort
SELECT ALL + + col1 * + col0 + - col0 + col1 FROM tab1 AS cor0
----
345
4233
677

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT - MIN( - + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4625
SELECT - MIN ( - + col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT - + col2 * + 22 AS col0 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT COUNT( - - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4627
SELECT COUNT ( - - col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT ( + col2 ) DIV 42 AS col1 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT ( + col2 ) / 42 AS col1 FROM tab1 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL ( - COUNT( * ) ) * + 10 * + COUNT( * ) * - + MIN( DISTINCT ( - col0 ) ) AS col0 FROM tab0
----
-8730

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL ( - COUNT ( * ) ) * + 10 * + COUNT ( * ) * - + MIN ( DISTINCT ( - col0 ) ) AS col0 FROM tab0
----
-8730

query I rowsort
SELECT DISTINCT col1 * + col1 + + ( + col0 ) AS col0 FROM tab0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + MAX( - col2 ) + - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4631
SELECT + MAX ( - col2 ) + - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT - 64 + 43 AS col0 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT DISTINCT - - col0 + + - col0 * - col0 FROM tab2 AS cor0
----
2162
4160
5700

query I rowsort
SELECT DISTINCT - - col0 * - - col2 * col2 + - col0 AS col1 FROM tab2 cor0
----
102336
24288
252225

query I rowsort
SELECT ALL ( + col0 ) + - 4 * + 41 FROM tab0 AS cor0
----
-149
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 + col1 col1 FROM tab1 AS cor0
----
108
141
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + + col1 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4638
SELECT - CAST( NULL AS SIGNED ) + + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT - 95 - - COUNT( * ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - 95 - - COUNT ( * ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT ALL - - ( - + 58 ) * - 52 * col0 + col1 * + - 77 AS col1 FROM tab0 cor0
----
260775
292475
39003

query I rowsort
SELECT DISTINCT - col1 * - + 56 - col0 AS col0 FROM tab0 AS cor0
----
-41
1089
4521

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT + 70 DIV + 83 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT + 70 / + 83 AS col0 FROM tab1
----
0

query I rowsort
SELECT + col0 - - ( + col1 ) FROM tab0
----
108
96
98

query I rowsort
SELECT - col2 * + + 62 * - col0 FROM tab0 WHERE - col0 IS NOT NULL
----
43710
53940
595386

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT 88 + + MIN( ALL + 19 ) FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT 88 + + MIN ( ALL + 19 ) FROM tab2
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT col1 * - + 60 - - col1 DIV + 30 FROM tab1
----
-2819
-300
-840

skipif mysql # not compatible
query I rowsort label-4647
SELECT col1 * - + 60 - - col1 / + 30 FROM tab1
----
-2819
-300
-840

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT ( - - 70 ) - + COUNT( * ), 95 col0 FROM tab1
----
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4648
SELECT ( - - 70 ) - + COUNT ( * ), 95 col0 FROM tab1
----
67
95

query I rowsort
SELECT DISTINCT + - 85 - + col1 AS col1 FROM tab2 AS cor0
----
-136
-152
-162

query III rowsort
SELECT ALL * FROM tab0 WHERE - 93 BETWEEN - - col0 / + col2 * - 85 * - + 15 + + - 76 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT - + CAST( NULL AS SIGNED ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4651
SELECT - + CAST ( NULL AS INTEGER ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT COUNT( 77 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4653
SELECT COUNT ( 77 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col1 * - col0 col1 FROM tab0 cor0
----
-38367
-97
-98415

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < + col2 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - MAX( - 86 ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - MAX ( - 86 ) FROM tab2 AS cor0
----
86

query I rowsort
SELECT ALL - 29 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col2 AS col0, 13 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
13
68
13
96
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT DISTINCT - CAST( ( - - 22 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - CAST ( ( - - 22 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-22

query III rowsort
SELECT * FROM tab1 WHERE NOT - 57 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 70 * + col1 AS col2 FROM tab1
----
-3290
-350
-980

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4662
SELECT * FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4662
SELECT * FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT DISTINCT 79 + COUNT( * ) AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT 79 + COUNT ( * ) AS col1 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT + SUM( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4664
SELECT + SUM ( DISTINCT - col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT 27 * + + col0 FROM tab1
----
1377
2295
2457

query I rowsort
SELECT DISTINCT + + 40 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 35 FROM tab1 AS cor0 WHERE NOT col0 + + col2 - - 99 * col2 > - col2 + - col0 * - col2 + - + 52 * col2 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - 87 + + MAX( - col0 ) AS col0 FROM tab2 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - 87 + + MAX ( - col0 ) AS col0 FROM tab2 AS cor0
----
-133

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 46 + col2 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - 25 * col1 + + - 95 AS col0 FROM tab1 AS cor0
----
-1270
-220
-445

query I rowsort
SELECT ALL 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT MIN( - 73 ) AS col1 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT MIN ( - 73 ) AS col1 FROM tab1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT + COUNT( * ) + 69 DIV + + 52 col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4673
SELECT + COUNT ( * ) + 69 / + + 52 col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 * - - col2 + + 54 FROM tab2
----
-197106
-291454
-53927

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT + 46 * + 85 + 99 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
4006

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + 46 * + 85 + 99 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
4006

query I rowsort
SELECT DISTINCT - + col2 + + 17 FROM tab0 AS cor0
----
-30
-82
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL + MAX( 16 ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + MAX ( 16 ) FROM tab1 AS cor0
----
16

query I rowsort
SELECT col1 + + ( 93 ) FROM tab1 AS cor0
----
107
140
98

query I rowsort
SELECT DISTINCT 67 + ( + col1 ) FROM tab1 AS cor0
----
114
72
81

query II rowsort
SELECT ALL col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - COUNT( * ) + - 94 FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4681
SELECT - COUNT ( * ) + - 94 FROM tab1 cor0
----
-97

query I rowsort
SELECT ALL + - col0 * - - 60 - col0 AS col2 FROM tab0 AS cor0
----
-5307
-5917
-915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT COUNT( * ) DIV - 35 + + COUNT( - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4683
SELECT COUNT ( * ) / - 35 + + COUNT ( - col2 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT ALL + 55 * col2 DIV + + 87 FROM tab1
----
37
42
60

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + 55 * col2 / + + 87 FROM tab1
----
37
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT - 86 * - 25 * + COUNT( * ) FROM tab0
----
6450

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - 86 * - 25 * + COUNT ( * ) FROM tab0
----
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT + + MIN( ALL + + col1 ) AS col2 FROM tab0 WHERE NOT + - 76 + 8 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + + MIN ( ALL + + col1 ) AS col2 FROM tab0 WHERE NOT + - 76 + 8 IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT ALL - CAST( col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - CAST ( col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT DISTINCT - + col2 DIV 44 + - + col0 + + - col2 AS col2 FROM tab2 cor0
----
-104
-134
-69

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - + col2 / 44 + - + col0 + + - col2 AS col2 FROM tab2 cor0
----
-104
-134
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COUNT( * ) * + MIN( ALL + - 26 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COUNT ( * ) * + MIN ( ALL + - 26 ) FROM tab1
----
78

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE 78 < NULL
----

query I rowsort
SELECT + 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query II rowsort
SELECT DISTINCT + + 72 AS col1, 94 FROM tab0 AS cor0
----
72
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT DISTINCT - - 58 DIV + + COUNT( * ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - - 58 / + + COUNT ( * ) FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT DISTINCT - COUNT( * ) col1, COUNT( - 23 ) col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4694
SELECT DISTINCT - COUNT ( * ) col1, COUNT ( - 23 ) col2 FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col0, 46 * col1 AS col2 FROM tab1 AS cor0
----
51
644
85
230
91
2162

query II rowsort
SELECT + - col2 AS col0, col1 * col2 FROM tab2 AS cor0
----
-23
1173
-40
3080
-58
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL + MAX( - + ( - 17 ) ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + MAX ( - + ( - 17 ) ) FROM tab1
----
17

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE col0 * + col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT - + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4700
SELECT - + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4701
SELECT - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + - ( - CAST( + col2 AS SIGNED ) ), - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4701
SELECT - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - ( - CAST ( + col2 AS INTEGER ) ), - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL - ( + COUNT( ALL + col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL - ( + COUNT ( ALL + col1 ) ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE 80 < col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 94 + - 36 FROM tab2 AS cor0
----
58

query II rowsort
SELECT + + 37 AS col0, + col2 AS col1 FROM tab2 AS cor0
----
37
23
37
40
37
58

query I rowsort
SELECT ALL - 61 * + 34 * - col1 - + + col1 + - col1 FROM tab1 AS cor0
----
10360
29008
97384

query I rowsort
SELECT DISTINCT - - 23 - + 66 AS col0 FROM tab0 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4708
SELECT 8 AS col0, AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4708
SELECT 8 AS col0, AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
8
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL - - ( col0 ) - ( - CAST( NULL AS SIGNED ) ) * + col0 + col0 + - col0 + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL - - ( col0 ) - ( - CAST ( NULL AS INTEGER ) ) * + col0 + col0 + - col0 + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + 17 AS col2 FROM tab0
----
1377
17
357

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL 96 * + COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 96 * + COUNT ( * ) FROM tab2
----
288

query I rowsort
SELECT 79 - - 73 AS col1 FROM tab0
----
152
152
152

query II rowsort
SELECT DISTINCT ( + col0 ) AS col0, 94 FROM tab2
----
46
94
64
94
75
94

query I rowsort
SELECT DISTINCT + 87 * - 92 FROM tab1
----
-8004

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT - col0 * - - col2 * col1 DIV col1 AS col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4715
SELECT - col0 * - - col2 * col1 / col1 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL 81 * - col0 FROM tab1
----
-4131
-6885
-7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 * + - 35 * col2 * - 93, col0 col2 FROM tab0
----
3059700
15
6444900
97
651000
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4719
SELECT + 88 AS col0, - 35 DIV - ( + col0 ) + - col0 FROM tab2 AS cor0
----
88
-46
88
-64
88
-75

skipif mysql # not compatible
query II rowsort label-4719
SELECT + 88 AS col0, - 35 / - ( + col0 ) + - col0 FROM tab2 AS cor0
----
88
-46
88
-64
88
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT ALL + col2 DIV col1 * + + 23 FROM tab0 AS cor0
----
0
0
2277

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + col2 / col1 * + + 23 FROM tab0 AS cor0
----
0
0
2277

query II rowsort
SELECT DISTINCT 16 AS col0, col2 FROM tab2 AS cor0
----
16
23
16
40
16
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT - 95 DIV - 43 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 95 / - 43 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + ( + 97 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 62 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 62 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT + COUNT( * ) * + SUM( + 29 ) col2 FROM tab2
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4725
SELECT + COUNT ( * ) * + SUM ( + 29 ) col2 FROM tab2
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * - - col0 + - col1 + - col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT - MIN( 84 ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4727
SELECT - MIN ( 84 ) FROM tab2 AS cor0
----
-84

query I rowsort
SELECT DISTINCT - col0 * col2 * + + 20 / - col2 FROM tab2 WHERE ( col1 IN ( + + col0 ) )
----

query I rowsort
SELECT + 66 + + 1 * - 64 * - 22 + + col1 AS col0 FROM tab0
----
1475
1495
1555

query I rowsort
SELECT DISTINCT + 59 + + 81 * + - 47 * + col2 FROM tab1
----
-224554
-258817
-365413

query II rowsort
SELECT col0 * - col1 + - col1 AS col0, + col0 * 26 FROM tab2
----
-2397
1196
-5005
1664
-5092
1950

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 * - col1 <= - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 5 >= 18 + + - 8
----

query II rowsort
SELECT - - 84 AS col0, - col0 * + col0 + - col1 AS col0 FROM tab1 AS cor0
----
84
-2615
84
-7230
84
-8328

query I rowsort
SELECT ALL 43 FROM tab1 AS cor0 WHERE NOT + col0 > ( + 75 * - 2 + 80 * + + col1 )
----
43
43
43

query I rowsort
SELECT ALL + ( + ( col1 ) ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - ( + COUNT( ALL col0 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT - ( + COUNT ( ALL col0 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ( col0 ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT ( - col2 ) DIV ( col0 + 51 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT ( - col2 ) / ( col0 + 51 ) FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL MIN( ALL - col1 ) + 12 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL MIN ( ALL - col1 ) + 12 FROM tab1
----
-35

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + - col0 * col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / col0 < + col0 * + col2
----

query I rowsort
SELECT - 20 * + 46 AS col2 FROM tab0
----
-920
-920
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT MIN( col1 ) AS col0 FROM tab0 WHERE ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT MIN ( col1 ) AS col0 FROM tab0 WHERE ( NULL ) < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4746
SELECT ALL MIN( DISTINCT col1 ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL MIN ( DISTINCT col1 ) / + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT + col2 FROM tab0 WHERE col0 < NULL
----

query I rowsort
SELECT DISTINCT 61 FROM tab0 WHERE NOT + ( - 78 ) NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col2 col1 FROM tab0 WHERE ( - col0 - + col1 ) BETWEEN - col2 AND col1
----
-98

query I rowsort
SELECT DISTINCT + ( + 40 ) AS col2 FROM tab1
----
40

query I rowsort
SELECT 82 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
82
82
82

query I rowsort
SELECT 64 * col2 AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
3008
6336
640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) / + col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) / + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 89 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-4755
SELECT 89 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 > col0 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT + COUNT( 98 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4757
SELECT + COUNT ( 98 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT MIN( ALL col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4758
SELECT MIN ( ALL col2 ) FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 58 FROM tab0 AS cor0
----
2726
5742
580

query I rowsort
SELECT + 54 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL + SUM( + 83 ) AS col2 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + SUM ( + 83 ) AS col2 FROM tab0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT SUM( DISTINCT col2 ) FROM tab2 WHERE NOT 69 + + 71 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT SUM ( DISTINCT col2 ) FROM tab2 WHERE NOT 69 + + 71 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT DISTINCT col1 * - col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) + + 47 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT col1 * - col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + + 47 IS NOT NULL
----

query I rowsort
SELECT + col1 * - 82 + - col0 FROM tab2 AS cor0
----
-4228
-5569
-6378

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL COUNT( DISTINCT 40 ) + 65 col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4766
SELECT ALL COUNT ( DISTINCT 40 ) + 65 col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE 34 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE 34 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 + - 72 FROM tab2 AS cor0
----
-21
-5
5

query I rowsort
SELECT + - col0 * 90 + - col1 AS col2 FROM tab2 AS cor0
----
-4191
-5837
-6817

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT - + COUNT( * ) * + 60 AS col2 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT - + COUNT ( * ) * + 60 AS col2 FROM tab0 AS cor0
----
-180

query I rowsort
SELECT ALL - ( + ( - 4 ) ) FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL MIN( ALL ( + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 < + col1 - 10
----
51

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL MIN ( ALL ( + col0 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 < + col1 - 10
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4773
SELECT CAST( NULL AS DECIMAL ) * + COUNT( * ) + 30 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT CAST ( NULL AS REAL ) * + COUNT ( * ) + 30 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col1 + 95 AS col1 FROM tab2 AS cor0
----
18
28
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT + + COUNT( * ) + COUNT( * ) col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4775
SELECT + + COUNT ( * ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL col1 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - 99 = col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT - 7 * + COUNT( - col0 / - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4778
SELECT - 7 * + COUNT ( - col0 / - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT ALL + 11 DIV + 46 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + 11 / + 46 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT COUNT( 57 ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT COUNT ( 57 ) * - COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + SUM( col0 ) * COUNT( * ) AS col2 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-4781
SELECT + SUM ( col0 ) * COUNT ( * ) AS col2 FROM tab0
----
597

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT ALL - col1 DIV + + 88 * 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - col1 / + + 88 * 98 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - 9 AS col1 FROM tab2
----
37
55
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab2 WHERE + col0 - - ( 38 + - 54 ) NOT IN ( - 30 * - ( ( - 56 ) ) )
----
58
58
58

query I rowsort
SELECT - 32 AS col0 FROM tab0 WHERE 42 NOT IN ( - col0 )
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE + col2 < col1
----
2

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE + col2 < col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + - MAX( + col2 ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + - MAX ( + col2 ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-61

query I rowsort
SELECT ALL + 10 + - + col2 AS col1 FROM tab0 AS cor0
----
-37
-89
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 * - col0 + - col0 ) <= NULL
----

query I rowsort
SELECT - col1 + + + 88 - col1 FROM tab2 cor0
----
-14
-46
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT ALL - COUNT( DISTINCT col2 ) - 32 DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - COUNT ( DISTINCT col2 ) - 32 / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT col0 * 38 + col0 AS col0 FROM tab1
----
1989
3315
3549

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( + 85 * col0 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 55 AS col2, 94 AS col2 FROM tab2
----
55
94
55
94
55
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + COUNT( * ) + - COUNT( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4795
SELECT ALL + COUNT ( * ) + - COUNT ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - - MIN( col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4796
SELECT - - MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT + col1 DIV - ( - - col2 ) FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT + col1 / - ( - - col2 ) FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + 55 <> + ( - col0 ) / col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - - 1 * - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4799
SELECT - - 1 * - + COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) + + - 39 * - COUNT( * ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) + + - 39 * - COUNT ( * ) FROM tab1 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 41 * + + col1 / + col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( ( + 64 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4803
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( ( + 64 ) ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT + MAX( DISTINCT + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT + MAX ( DISTINCT + + col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL col1 * - - col1 AS col0 FROM tab2
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - - 16 ) col2, + ( + col0 ) * - col0 - + col0 FROM tab0
----
-16
-240
-16
-7656
-16
-9506

query I rowsort
SELECT ALL - col2 + 40 AS col0 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL + COUNT( ALL col1 ) * 49 + - 60 AS col1 FROM tab0 WHERE NOT NULL <= + col1
----
-60

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL + COUNT ( ALL col1 ) * 49 + - 60 AS col1 FROM tab0 WHERE NOT NULL <= + col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - col2 = ( 63 )
----

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - col2 = ( 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - - MAX( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4810
SELECT - - MAX ( - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT 34 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT COUNT( ALL col0 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4813
SELECT COUNT ( ALL col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - 20 * - - col0 AS col2 FROM tab0
----
-1740
-1940
-300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL COUNT( * ) * - 68 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL COUNT ( * ) * - 68 FROM tab2 AS cor0
----
-204

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 67 * col0 * + 21 <= + col0 - - 69 * + col2
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE NULL IN ( col1 / + col1 + - + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4819
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 + - 40 - - 50 * + 0 / - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 + - 40 - - 50 * + 0 / - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 79 + 56 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT 63 + - col2 FROM tab2
----
23
40
5

query I rowsort
SELECT DISTINCT + 14 + col2 AS col2 FROM tab2
----
37
54
72

query I rowsort
SELECT 11 + col1 FROM tab0
----
12
32
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT ALL - 73 DIV - col2 AS col0 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - 73 / - col2 AS col0 FROM tab2 AS cor0
----
1
1
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 59 / col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) - - 65 FROM tab2 AS cor0
----
116
132
142

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) - - 65 FROM tab2 AS cor0
----
116
132
142

query II rowsort
SELECT + col0, 34 + + col2 FROM tab2 cor0
----
46
57
64
74
75
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT - CAST( col1 AS SIGNED ) - + - ( + col1 ) + col0 + - - col2 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-4828
SELECT - CAST ( col1 AS INTEGER ) - + - ( + col1 ) + col0 + - - col2 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE - ( + col2 ) <> ( + - col1 + - 65 + + col1 * col0 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4830
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4830
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL - COUNT( * ) * MIN( col0 ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - COUNT ( * ) * MIN ( col0 ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT - + 24 * - col0 AS col1 FROM tab2 AS cor0
----
1104
1536
1800

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( 0 ) NOT BETWEEN NULL AND - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 46 BETWEEN + col1 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT DISTINCT - + MIN( 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT - + MIN ( 40 ) FROM tab2 AS cor0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4836
SELECT col2 DIV + 55 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4836
SELECT col2 / + 55 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL + SUM( 98 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
882

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + SUM ( 98 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
882

query II rowsort
SELECT ALL 59 AS col0, 17 FROM tab0, tab2 cor0
----
18 values hashing to 204468204e7b417d8fd8c4e7bd521d21

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT 69 * + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
15663

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT 69 * + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
15663

query I rowsort
SELECT ALL + col2 + + 17 FROM tab1 AS cor0
----
113
76
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 <> + + 51 / + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col0 + - - col1 * - 4 FROM tab1 AS cor0
----
-5
-97
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT - + CAST( - col0 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4844
SELECT - + CAST ( - col0 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 - - ( - col2 ) + col1 + + col1 + col0 FROM tab1 AS cor0
----
185
79
95

query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 FROM tab2 WHERE col0 * - 88 IS NULL
----

query I rowsort
SELECT ALL + 48 + - 12 + + col1 FROM tab0
----
117
37
57

query I rowsort
SELECT 39 - + col0 AS col2 FROM tab1
----
-12
-46
-52

query I rowsort
SELECT ALL + col2 + + 81 FROM tab0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + + COUNT( * ) - + - 88 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4850
SELECT + + COUNT ( * ) - + - 88 FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL 91 + - col0 AS col1 FROM tab2 AS cor0
----
16
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, col1 * + - 88 * + col1 * - + col0 * - col2 + + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, col1 * + - 88 * + col1 * - + col0 * - col2 + + + col1 )
----
0

query I rowsort
SELECT col0 + + + col1 * - + col1 FROM tab0 AS cor0
----
-354
-6546
96

query II rowsort
SELECT + col2 + + 14 + - ( - col2 ) * 48, col2 FROM tab2 AS cor0
----
1141
23
1974
40
2856
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 - col2 col1 FROM tab0 AS cor0
----
-136
-47
-84

query I rowsort
SELECT ALL col1 - + + col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT + + COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + + COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL 76, col1 * + col2 AS col0 FROM tab0
----
76
210
76
3807
76
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + 90 IS NOT NULL
----

query I rowsort
SELECT - 36 * + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-3132
-3492
-540

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col1, - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL + + MIN( + - CAST( NULL AS SIGNED ) ) + - - 58 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + + MIN ( + - CAST ( NULL AS INTEGER ) ) + - - 58 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 45 <= NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT SUM( - + ( - + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4866
SELECT SUM ( - + ( - + col0 ) ) FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 - 78 - - 93 / + - col0 + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 / + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT - col2 * + col2 * col2, col0 AS col0 FROM tab0 AS cor0
----
-1000
87
-103823
15
-970299
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT - ( - COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4872
SELECT - ( - COUNT ( * ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - + 83 - COUNT( * ) + - - 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-65

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - + 83 - COUNT ( * ) + - - 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT - CAST( 9 AS SIGNED ) FROM tab0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4874
SELECT - CAST ( 9 AS INTEGER ) FROM tab0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 64 * + col0 + + 55 FROM tab2 AS cor0
----
-2889
-4041
-4745

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 21 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 AS cor0 WHERE NOT 47 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + col0 ) BETWEEN col1 AND + + col0
----

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab2 cor0 WHERE ( NOT ( NOT ( ( NOT NULL IS NOT NULL ) ) ) )
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 + + col0 col1 FROM tab1 AS cor0
----
22
56
62

query I rowsort
SELECT + col1 * + col0 * + col0 + + col0 FROM tab1 AS cor0
----
36210
36465
389298

query I rowsort
SELECT col0 + - - col0 AS col1 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( - 93 ) < col1 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( - 93 ) < col1 + + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT ALL 14 - CAST( - ( - ( - COUNT( * ) ) ) AS SIGNED ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL 14 - CAST ( - ( - ( - COUNT ( * ) ) ) AS INTEGER ) AS col0 FROM tab2
----
17

query I rowsort
SELECT - 53 + 78 * 21 AS col2 FROM tab1
----
1585
1585
1585

query II rowsort
SELECT col2 + - col0 AS col1, 1 AS col1 FROM tab0
----
-77
1
2
1
32
1

query I rowsort
SELECT + col1 + + col2 + + - col2 FROM tab2
----
51
67
77

query II rowsort
SELECT col1 + 16, col1 FROM tab1
----
21
5
30
14
63
47

query III rowsort
SELECT * FROM tab1 WHERE + col0 - + 92 + col1 BETWEEN 59 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL - + ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL - + ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT + CAST( + - 4 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4892
SELECT + CAST ( + - 4 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT ALL + CAST( NULL AS SIGNED ) / 23 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL + CAST ( NULL AS INTEGER ) / 23 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - col1 + - + col0 AND + col1
----
97
1
99

query I rowsort
SELECT + ( + + col1 ) * + col0 + col0 AS col1 FROM tab2 cor0
----
2392
4992
5100

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * - 51 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL + MAX( ALL - + col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT ALL + MAX ( ALL - + col1 ) col1 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col0 * + + col2 AS col0, col2 col0 FROM tab0 AS cor0
----
-10575
47
-75690
10
-931491
99

query I rowsort
SELECT - col0 * col1 FROM tab0 WHERE NOT + ( - col2 ) >= col1
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4900
SELECT 77 AS col0, + COUNT( * ) AS col0 FROM tab1
----
77
3

skipif mysql # not compatible
query II rowsort label-4900
SELECT 77 AS col0, + COUNT ( * ) AS col0 FROM tab1
----
77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT ALL 59 DIV + - 41 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL 59 / + - 41 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT ALL + col2 DIV + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL + col2 / + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + SUM( - 29 ) AS col1 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-4903
SELECT + SUM ( - 29 ) AS col1 FROM tab2
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 65 col1 FROM tab0 AS cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + 3 NOT BETWEEN - 70 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL 59 + + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL 59 + + COUNT ( * ) FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - 45 * + - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
10215

skipif mysql # not compatible
query I rowsort label-4907
SELECT - 45 * + - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
10215

query I rowsort
SELECT - - 37 * + col2 AS col2 FROM tab2 AS cor0
----
1480
2146
851

query I rowsort
SELECT DISTINCT col2 * + - col1 + - col1 AS col1 FROM tab2
----
-1224
-3157
-3953

query II rowsort
SELECT ( - + 10 ) * + 66 AS col2, 52 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 95 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + - COUNT( * ) * MAX( DISTINCT col1 ) FROM tab1 cor0 WHERE - col1 * col2 + - - col2 IS NOT NULL
----
-141

skipif mysql # not compatible
query I rowsort label-4911
SELECT + - COUNT ( * ) * MAX ( DISTINCT col1 ) FROM tab1 cor0 WHERE - col1 * col2 + - - col2 IS NOT NULL
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT + + COUNT( - + 66 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4912
SELECT + + COUNT ( - + 66 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 16 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - MAX( - + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4914
SELECT - MAX ( - + col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL col0 * - 70 * col2 / 77 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL - col2 * + ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
178929
2100
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 82 - - 53 col2 FROM tab1 cor0
----
140
149
182

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + col0 * + + 98 * + - col0 AS col1 FROM tab1
----
-3540250
-3568572
-38142286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 - - 20 col1 FROM tab1
----
52
52
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - + col0 * col2 - col1, - 52, - col2 * col2 )
----

query II rowsort
SELECT ALL col0 * - - ( - 18 ) AS col2, - col0 FROM tab2
----
-1152
-64
-1350
-75
-828
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, 15 * ( - 77 ) - - - col0 FROM tab1 AS cor0
----
-59
-1240
-68
-1246
-96
-1206

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL - - COUNT( * ) * - COUNT( * ) col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4924
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) col0 FROM tab1 cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 17
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT ALL + col1 DIV ( + col1 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + col1 / ( + col1 ) FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 * - - col2 * col2 col1 FROM tab2 WHERE NOT + 24 < + - col1 + + + col1 + + 50 - + col2 / - 60
----

query I rowsort
SELECT col2 * 37 * - + col0 FROM tab2
----
-160950
-39146
-94720

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT DISTINCT COUNT( * ) * - ( + - 55 ) * - COUNT( * ) + 37 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-4418

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT COUNT ( * ) * - ( + - 55 ) * - COUNT ( * ) + 37 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-4418

onlyif mysql # aggregate syntax: 
query II rowsort label-4930
SELECT ALL + - COUNT( 66 ) AS col0, + COUNT( ALL - - 79 ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4930
SELECT ALL + - COUNT ( 66 ) AS col0, + COUNT ( ALL - - 79 ) AS col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT - col1 * col2 * - 13 * + col0 FROM tab2 AS cor0
----
2562560
3788850
701454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT DISTINCT CAST( NULL AS SIGNED ) * 84 * + - COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 84 * + - COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT ALL COUNT( + + 82 ), MAX( - - col0 ) col1 FROM tab2 AS cor0
----
3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4933
SELECT ALL COUNT ( + + 82 ), MAX ( - - col0 ) col1 FROM tab2 AS cor0
----
3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT MAX( + - 60 ) * - ( - COUNT( * ) ) FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT MAX ( + - 60 ) * - ( - COUNT ( * ) ) FROM tab2
----
-180

query I rowsort
SELECT ALL col2 * + - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT ( - 24 ) + + + CAST( + AVG ( DISTINCT - + col1 ) AS SIGNED ) AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-4937
SELECT ( - 24 ) + + + CAST ( + AVG ( DISTINCT - + col1 ) AS INTEGER ) AS col0 FROM tab2
----
-89

query I rowsort
SELECT DISTINCT + + 68 + - 94 AS col2 FROM tab1 cor0
----
-26

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 + + 0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT - + COUNT( ALL - 6 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT - + COUNT ( ALL - 6 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT - ( MAX( - 44 ) ) * + 20 FROM tab2
----
880

skipif mysql # not compatible
query I rowsort label-4941
SELECT - ( MAX ( - 44 ) ) * + 20 FROM tab2
----
880

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 95 + + 77 * - 50 * - 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE ( NOT col2 = NULL )
----

skipif mysql # not compatible
query I rowsort label-4943
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE ( NOT col2 = NULL )
----

query I rowsort
SELECT DISTINCT - col1 - - ( + 37 ) - 43 AS col2 FROM tab2 AS cor0
----
-57
-73
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT + CAST( NULL AS SIGNED ) + - CAST( + - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT + CAST ( NULL AS INTEGER ) + - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + + col2 - - 34 AS col2 FROM tab2 AS cor0
----
-3
25
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT - 75 + + 50 * + COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4947
SELECT - 75 + + 50 * + COUNT ( * ) FROM tab2
----
75

query I rowsort
SELECT + ( - col2 ) + + - 29 FROM tab0
----
-128
-39
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL SUM( ALL - - 17 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL SUM ( ALL - - 17 ) FROM tab0
----
51

query III rowsort
SELECT + col1 * + 59 AS col0, - col0, col0 FROM tab1
----
9 values hashing to 1b2895dc4e11aa75d1d2194e61edcaf6

query I rowsort
SELECT + 73 * ( + - col2 ) * + - col0 FROM tab0
----
51465
63510
701019

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT - COUNT( * ) * + COUNT( col1 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4952
SELECT - COUNT ( * ) * + COUNT ( col1 ) AS col2 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 67 NOT IN ( - col1 * - 78 * + - col2 * + col1 * col1, + 18 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + 17 >= - + 64
----

query II rowsort
SELECT ALL 90, col0 FROM tab1
----
90
51
90
85
90
91

query II rowsort
SELECT DISTINCT col1 AS col1, col2 * - col2 AS col2 FROM tab0
----
1
-9801
21
-100
81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT - + col2 * 34 AS col2 FROM tab1 AS cor0
----
-2006
-2312
-3264

query II rowsort
SELECT DISTINCT - 71 AS col2, col0 + - 65 - + - col1 - - col2 AS col0 FROM tab2 AS cor0
----
-71
116
-71
135
-71
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 / - col0 > - - 95
----
-3

skipif mysql # not compatible
query I rowsort label-4960
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 / - col0 > - - 95
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL - 66 + + ( ( - CAST( - - col0 AS SIGNED ) ) ) * + col2 FROM tab2 cor0 WHERE NOT NULL <> - col1 + + 22
----

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - 66 + + ( ( - CAST ( - - col0 AS INTEGER ) ) ) * + col2 FROM tab2 cor0 WHERE NOT NULL <> - col1 + + 22
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4962
SELECT ALL + 17, SUM( + - col2 ) col2 FROM tab0 AS cor0
----
17
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4962
SELECT ALL + 17, SUM ( + - col2 ) col2 FROM tab0 AS cor0
----
17
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 99 AS col0, - 41 col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 0 * - 30 AND NULL
----

query I rowsort
SELECT + - ( + + 74 ) + + - col0 - col2 * + ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-1293
-3218
-4035

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT ALL - COUNT( * ) * MAX( - + 93 ), 1 AS col2 FROM tab0 AS cor0
----
279
1

skipif mysql # not compatible
query II rowsort label-4965
SELECT ALL - COUNT ( * ) * MAX ( - + 93 ), 1 AS col2 FROM tab0 AS cor0
----
279
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 * - - col0 + + - ( 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 86
----

query III rowsort
SELECT * FROM tab0 WHERE - 29 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 94 * + 27 * + + col1 / col1 * - + 55 AS col0 FROM tab2 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT ALL + ( + 60 ) AS col1 FROM tab2
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + - 66 * - + col2 FROM tab2
----
1569
2717
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT 90 + + - COUNT( * ) * 69 col2 FROM tab2 cor0
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4973
SELECT 90 + + - COUNT ( * ) * 69 col2 FROM tab2 cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 BETWEEN + col0 * - col2 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 BETWEEN + col0 * - col2 AND ( NULL )
----
0

query I rowsort
SELECT ALL col2 + col0 + + - col0 + + - col1 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT 24 FROM tab1 AS cor0 WHERE 16 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT DISTINCT + col2 / col0 - + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT + col2 / col0 - + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4978
SELECT + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT - 69 - col2 AS col1 FROM tab0 AS cor0
----
-116
-168
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, - col1 AS col2 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - ( ( - + col0 ) ) FROM tab0
----
15
87
97

query II rowsort
SELECT col0, - col0 AS col1 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT MIN( ALL + col2 ) * SUM( + - col1 ) * + - 12 AS col1 FROM tab1
----
46728

skipif mysql # not compatible
query I rowsort label-4983
SELECT MIN ( ALL + col2 ) * SUM ( + - col1 ) * + - 12 AS col1 FROM tab1
----
46728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT CAST( NULL AS SIGNED ) * MIN( ALL + ( col2 ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT CAST ( NULL AS INTEGER ) * MIN ( ALL + ( col2 ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT 70 * - COUNT( DISTINCT - + col2 ) AS col0 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT 70 * - COUNT ( DISTINCT - + col2 ) AS col0 FROM tab2
----
-210

query II rowsort
SELECT DISTINCT col0 AS col1, 78 FROM tab0
----
15
78
87
78
97
78

query I rowsort
SELECT ALL col2 * 72 * col0 FROM tab1
----
352512
361080
445536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT - 58 DIV COUNT( col0 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4988
SELECT - 58 / COUNT ( col0 ) FROM tab0
----
-19

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4990
SELECT ALL - 19 AS col1, CAST( NULL AS SIGNED ) + col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-19
NULL
-19
NULL
-19
NULL

skipif mysql # not compatible
query II rowsort label-4990
SELECT ALL - 19 AS col1, CAST ( NULL AS INTEGER ) + col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-19
NULL
-19
NULL
-19
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 45 * 15 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + COUNT( ALL + - 76 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4992
SELECT ALL + COUNT ( ALL + - 76 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 0 / - - 99 * - + 7 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + 68 + COUNT( * ) FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT + 52 IS NOT NULL
----
68

skipif mysql # not compatible
query I rowsort label-4994
SELECT + 68 + COUNT ( * ) FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT + 52 IS NOT NULL
----
68

query I rowsort
SELECT + 55 * - 2 AS col0 FROM tab2
----
-110
-110
-110

query I rowsort
SELECT + col2 / - + 79 AS col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + ( + 37 )
----

query I rowsort
SELECT + ( - - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4999
SELECT - - col2 * CAST( NULL AS DECIMAL ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4999
SELECT - - col2 * CAST ( NULL AS REAL ) + + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL - SUM( DISTINCT 74 ) AS col2 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - SUM ( DISTINCT 74 ) AS col2 FROM tab0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col0 col1 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab0 WHERE + ( + + col0 ) <= - col2
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE NULL BETWEEN + col0 * col2 + - + 78 AND + 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT CAST( NULL AS SIGNED ) + - 70 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT CAST ( NULL AS INTEGER ) + - 70 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + + 27 FROM tab2
----
102
73
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5006
SELECT COUNT( * ) + - 12 * - 65 * - + ( 35 ) / CAST( NULL AS SIGNED ) + + 2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT COUNT ( * ) + - 12 * - 65 * - + ( 35 ) / CAST ( NULL AS INTEGER ) + + 2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 17 * ( col0 ) + - 24 + - - col0 FROM tab1
----
1506
1614
894

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT 94 + + + ( - + SUM( DISTINCT + col2 ) ) AS col2 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT 94 + + + ( - + SUM ( DISTINCT + col2 ) ) AS col2 FROM tab1
----
-129

query II rowsort
SELECT - ( - + col0 ) * + + 12, col0 FROM tab0 AS cor0
----
1044
87
1164
97
180
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 75 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 85 / - + 23 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT - + col2 DIV - + col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5013
SELECT - + col2 / - + col1 FROM tab0 AS cor0
----
0
0
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5014
SELECT ALL - + ( + COUNT( * ) ), 11 * + SUM( - col2 ) * 8 + 54 * - 60 AS col2 FROM tab1 AS cor0
----
-3
-22864

skipif mysql # not compatible
query II rowsort label-5014
SELECT ALL - + ( + COUNT ( * ) ), 11 * + SUM ( - col2 ) * 8 + 54 * - 60 AS col2 FROM tab1 AS cor0
----
-3
-22864

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL ( + COUNT( + + 26 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL ( + COUNT ( + + 26 ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - SUM( + - 62 ) FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - SUM ( + - 62 ) FROM tab2
----
186

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( 43 ) + - 48 <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT 75 * + MAX( DISTINCT - 43 ) FROM tab1
----
-3225

skipif mysql # not compatible
query I rowsort label-5019
SELECT 75 * + MAX ( DISTINCT - 43 ) FROM tab1
----
-3225

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT - col0 DIV + + ( - col0 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - col0 / + + ( - col0 ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT - ( - - 11 ) DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT - ( - - 11 ) / + + col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 + + 99 AS col0 FROM tab2 AS cor0
----
23
76
40
59
58
41

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT MAX( + - col0 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT DISTINCT MAX ( + - col0 ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - - MAX( ALL + col2 ) + - - COUNT( * ) + + COUNT( * ) - + MIN( ALL - 16 ) FROM tab0 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5025
SELECT - - MAX ( ALL + col2 ) + - - COUNT ( * ) + + COUNT ( * ) - + MIN ( ALL - 16 ) FROM tab0 AS cor0
----
121

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + ( col2 ) <= - - col1 + + col1 * - 95
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5027
SELECT DISTINCT - + 20, - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-5027
SELECT DISTINCT - + 20, - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
-20
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT COUNT( * ) * + + MIN( ALL + 19 ) AS col2 FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-5029
SELECT COUNT ( * ) * + + MIN ( ALL + 19 ) AS col2 FROM tab2 cor0
----
57

query I rowsort
SELECT DISTINCT col1 / - 61 + - + ( - col0 ) + - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + col1 * 7 + + + col0 AS col1 FROM tab1 AS cor0
----
120
149
420

query I rowsort
SELECT + 5 * - ( + + col1 ) AS col2 FROM tab2 AS cor0
----
-255
-335
-385

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= col2 + + 78
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col1 >= - ( - 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - 68
----

query I rowsort
SELECT DISTINCT col2 + - - col2 * + 22 FROM tab0
----
1081
2277
230

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT ALL + ( - 32 ) DIV - + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + ( - 32 ) / - + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT + col1 * - ( - 56 ) AS col2 FROM tab0
----
1176
4536
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT ALL col1 DIV 48 + + col2 + col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL col1 / 48 + + col2 + col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL - 95 + - col1 * + col1 * - col2 FROM tab2
----
237065
260267
59728

query I rowsort
SELECT + + 97 + - col2 FROM tab0 cor0
----
-2
50
87

query I rowsort
SELECT 79 FROM tab2 AS cor0 WHERE + col2 IN ( col2 )
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - - + col2 col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 47 + - 8 AS col2 FROM tab2 AS cor0
----
39

query I rowsort
SELECT - + ( - 71 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5048
SELECT * FROM tab0 WHERE - - 43 = - CAST( 90 AS SIGNED ) * - + col0 / - - CAST( - col2 AS SIGNED ) * 90 + - col0 + + 89 - + - col0
----

skipif mysql # not compatible
query III rowsort label-5048
SELECT * FROM tab0 WHERE - - 43 = - CAST ( 90 AS INTEGER ) * - + col0 / - - CAST ( - col2 AS INTEGER ) * 90 + - col0 + + 89 - + - col0
----

query I rowsort
SELECT ALL - col1 * 72 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5050
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5051
SELECT DISTINCT - - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query II rowsort
SELECT ALL + col2 AS col2, + 5 AS col0 FROM tab1 AS cor0
----
59
5
68
5
96
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT + + COUNT( + 79 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + + COUNT ( + 79 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + 74
----
-87
-97

query I rowsort
SELECT ALL + ( - 13 ) * + 62 * - + 82 FROM tab2 AS cor0
----
66092
66092
66092

query I rowsort
SELECT DISTINCT + ( 77 ) AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT ALL col1 * - - 70 FROM tab0
----
1470
5670
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - 60 col1 FROM tab1
----
-2820
-300
-840

query I rowsort
SELECT 65 * + + col0 FROM tab1
----
3315
5525
5915

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT ALL - 39 DIV - - col1 AS col2 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - 39 / - - col1 AS col2 FROM tab1
----
-2
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + COUNT( * ) * 79 * ( + + 50 ) AS col1 FROM tab2
----
11850

skipif mysql # not compatible
query I rowsort label-5061
SELECT + COUNT ( * ) * 79 * ( + + 50 ) AS col1 FROM tab2
----
11850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5062
SELECT 44 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT 44 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT DISTINCT - col2 DIV - 82 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - col2 / - 82 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT ALL col0 DIV + col0 col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5064
SELECT ALL col0 / + col0 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col0 FROM tab0
----
62
62
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5066
SELECT - COUNT( * ) DIV 24 + + 75 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5066
SELECT - COUNT ( * ) / 24 + + 75 FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL ( + 52 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 81 * col0 - + col2 + - - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 32 col0 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT - SUM( DISTINCT + - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - SUM ( DISTINCT + - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - MAX( 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5070
SELECT - MAX ( 8 ) FROM tab2 AS cor0
----
-8

query I rowsort
SELECT ALL + 85 + 8 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + 81 - + col0 FROM tab1 AS cor0
----
-10
-4
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5073
SELECT ALL col1 AS col0, + 4 + + col2 * col1 * - + CAST( - + 4 AS SIGNED ) AS col1 FROM tab1
----
14
5380
47
12788
5
1184

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL col1 AS col0, + 4 + + col2 * col1 * - + CAST ( - + 4 AS INTEGER ) AS col1 FROM tab1
----
14
5380
47
12788
5
1184

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + col1 - - col1 FROM tab0
----
129
177
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5076
SELECT - col2 DIV + 6, - col1 col1 FROM tab0
----
-1
-21
-16
-1
-7
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5076
SELECT - col2 / + 6, - col1 col1 FROM tab0
----
-1
-21
-16
-1
-7
-81

query I rowsort
SELECT col0 - + col0 + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT + ( + 55 ) FROM tab2 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + COUNT( + - 26 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5079
SELECT + COUNT ( + - 26 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ( + col0 ) / - col0 * - col1 * - - col2 * + - col2 + + 12 + + + ( - - col0 ) AS col0, ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT col2 * ( + 88 ) < - ( 4 )
----
-59
-68
-96

query I rowsort
SELECT 62 AS col0 FROM tab2 cor0
----
62
62
62

query I rowsort
SELECT + 9 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 27 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT + 74 DIV - col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT + 74 / - col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

query II rowsort
SELECT col1 AS col1, 43 + - col2 AS col1 FROM tab2
----
51
20
67
-15
77
3

query I rowsort
SELECT DISTINCT 60 * ( - - 66 ) AS col2 FROM tab0
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + SUM( ALL + 41 ) AS col2 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-5087
SELECT + SUM ( ALL + 41 ) AS col2 FROM tab2 AS cor0
----
123

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - col1 BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > + col0
----
0

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > + col0
----
0

query I rowsort
SELECT DISTINCT col2 + - col0 * + 18 AS col0 FROM tab0 AS cor0
----
-1556
-1647
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5091
SELECT + 19 DIV - ( SUM( DISTINCT 80 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 19 / - ( SUM ( DISTINCT 80 ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * - col2 * - + 21 FROM tab0
----
205821
2100
46389

query I rowsort
SELECT DISTINCT - 83 * + col0 FROM tab0
----
-1245
-7221
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - 56 + SUM( + ( - + 14 ) ) FROM tab1 cor0 WHERE NULL IS NULL
----
-98

skipif mysql # not compatible
query I rowsort label-5094
SELECT - 56 + SUM ( + ( - + 14 ) ) FROM tab1 cor0 WHERE NULL IS NULL
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT ALL - col0 DIV + col1 + + - 72 * + - ( + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
4146
4804
6858

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - col0 / + col1 + + - 72 * + - ( + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
4146
4804
6858

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ( - - COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5096
SELECT ( - - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL col0 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-144
-7548
-9408

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE NOT col2 + + + 81 NOT BETWEEN 62 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5100
SELECT ALL + - ( + 18 ) DIV + MIN( ALL ( - 12 ) ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1
-3

skipif mysql # not compatible
query II rowsort label-5100
SELECT ALL + - ( + 18 ) / + MIN ( ALL ( - 12 ) ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5101
SELECT * FROM tab0 AS cor0 WHERE col0 - - col2 / - CAST( + + 32 AS SIGNED ) * + 85 + col0 IN ( 76, + col2 + + col2 + - - col2, col1 + - - 39, + ( CAST( NULL AS SIGNED ) ) + col0, - - col1 * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-5101
SELECT * FROM tab0 AS cor0 WHERE col0 - - col2 / - CAST ( + + 32 AS INTEGER ) * + 85 + col0 IN ( 76, + col2 + + col2 + - - col2, col1 + - - 39, + ( CAST ( NULL AS INTEGER ) ) + col0, - - col1 * - + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5102
SELECT DISTINCT + SUM( + col0 ) DIV - 60 AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT + SUM ( + col0 ) / - 60 AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL 26 AS col0, + 61 FROM tab2
----
26
61
26
61
26
61

query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT 39 * col0 - - 92 FROM tab1
----
2081
3407
3641

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 / - col2 * col2 / - 14 <= NULL
----

query I rowsort
SELECT ALL - 43 + + - col0 AS col0 FROM tab0 AS cor0
----
-130
-140
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5108
SELECT col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT col1 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 66 AS col2 FROM tab1
----
3894
4488
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5111
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) - + 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - - CAST ( NULL AS REAL ) - + 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT - COUNT( * ) DIV + + 49 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT - COUNT ( * ) / + + 49 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT ( + COUNT( DISTINCT + CAST( + 5 AS SIGNED ) ) ) * - 78 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5114
SELECT ( + COUNT ( DISTINCT + CAST ( + 5 AS INTEGER ) ) ) * - 78 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT + - ( + 27 ) FROM tab1 AS cor0
----
-27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 98 IN ( + col1, + 67 + - col1 )
----

query I rowsort
SELECT DISTINCT ( - ( 19 ) ) AS col2 FROM tab2 AS cor0
----
-19

query II rowsort
SELECT - - 24 + - 97, 25 * + - col2 FROM tab0 AS cor0 WHERE NOT - col1 / - col0 NOT BETWEEN NULL AND 51
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT DISTINCT + 32 AS col2, - 25 + MIN( + 35 ) FROM tab2 AS cor0
----
32
10

skipif mysql # not compatible
query II rowsort label-5119
SELECT DISTINCT + 32 AS col2, - 25 + MIN ( + 35 ) FROM tab2 AS cor0
----
32
10

query I rowsort
SELECT DISTINCT + - col2 + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col0 + + + ( 48 ) + + ( 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - ( - COUNT( * ) ) * - COUNT( * ) * COUNT( * ) * - 35 FROM tab0
----
945

skipif mysql # not compatible
query I rowsort label-5121
SELECT - ( - COUNT ( * ) ) * - COUNT ( * ) * COUNT ( * ) * - 35 FROM tab0
----
945

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT + SUM( DISTINCT + col2 ), 17 + MAX( - - 37 ) col1 FROM tab0
----
156
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5122
SELECT + SUM ( DISTINCT + col2 ), 17 + MAX ( - - 37 ) col1 FROM tab0
----
156
54

query I rowsort
SELECT 58 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT - col2 * - 99 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 44 + - + col0 FROM tab1
----
-41
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT + ( + 81 ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - 65
----
0

skipif mysql # not compatible
query I rowsort label-5126
SELECT + ( + 81 ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL SUM( 42 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL SUM ( 42 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-378

query II rowsort
SELECT DISTINCT - col1 * + col1, col2 FROM tab1 cor0
----
-196
96
-2209
68
-25
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5129
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ), - col2 AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-5129
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ), - col2 AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5130
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5131
SELECT DISTINCT + 66 + col1 DIV CAST( 21 AS SIGNED ) FROM tab2 AS cor0
----
68
69

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + 66 + col1 / CAST ( 21 AS INTEGER ) FROM tab2 AS cor0
----
68
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + 31 * - 74 AS col1 FROM tab0 cor0 WHERE NOT + 22 = - + 18 * - - col2 * + - col1
----
2294
2294
2294

query I rowsort
SELECT - - ( 91 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
91
91
91

query I rowsort
SELECT ALL - - 79 - + col1 * - col0 + 92 FROM tab1 AS cor0
----
4448
596
885

query I rowsort
SELECT col2 + + + col2 AS col1 FROM tab1 cor0
----
118
136
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 * ( + ( - + col1 ) ) - + + 4 col2 FROM tab0 AS cor0
----
-1705
-25
-445

query I rowsort
SELECT - + col1 + 65 FROM tab1 AS cor0
----
18
51
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - 75 * + MAX( DISTINCT - - col0 ) AS col2 FROM tab0
----
-7275

skipif mysql # not compatible
query I rowsort label-5139
SELECT - 75 * + MAX ( DISTINCT - - col0 ) AS col2 FROM tab0
----
-7275

onlyif mysql # DIV for integer division: 
query II rowsort label-5140
SELECT ( + - ( - col0 ) ) DIV 91, col2 + + col1 col2 FROM tab0
----
0
128
0
31
1
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5140
SELECT ( + - ( - col0 ) ) / 91, col2 + + col1 col2 FROM tab0
----
0
128
0
31
1
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab2 AS cor0
----
46
46
46

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 53 / - 21 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - - 15 AS col0 FROM tab0 cor0
----
1305
1455
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col1 + - col2 col2 FROM tab0 AS cor0 WHERE NULL >= 64 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL + SUM( + CAST( - 79 AS SIGNED ) ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + SUM ( + CAST ( - 79 AS INTEGER ) ) FROM tab0 AS cor0
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 4 col0 FROM tab0 AS cor0
----
-4
-4
-4

query II rowsort
SELECT ALL - ( - + col0 ) AS col2, + col2 - + col0 * + col0 FROM tab2 AS cor0
----
46
-2093
64
-4056
75
-5567

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5148
SELECT + + CAST( - 57 AS SIGNED ) col1, 76 FROM tab0 AS cor0
----
-57
76
-57
76
-57
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5148
SELECT + + CAST ( - 57 AS INTEGER ) col1, 76 FROM tab0 AS cor0
----
-57
76
-57
76
-57
76

query II rowsort
SELECT DISTINCT + + ( col0 ) AS col2, - col1 * + + col2 + + - col1 AS col2 FROM tab0 AS cor0
----
15
-3888
87
-231
97
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL - MIN( + + 96 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - MIN ( + + 96 ) AS col1 FROM tab1
----
-96

query II rowsort
SELECT + 53, - 59 AS col2 FROM tab1 AS cor0
----
53
-59
53
-59
53
-59

query II rowsort
SELECT - col2 AS col0, - 36 + - 40 FROM tab2 AS cor0
----
-23
-76
-40
-76
-58
-76

query I rowsort
SELECT - 57 * + 91 AS col1 FROM tab2 AS cor0
----
-5187
-5187
-5187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT - 25 DIV + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 25 / + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT - 84 col1, - MAX( - + ( - col0 ) ) + - + COUNT( + + 99 ) * + - 72 FROM tab1
----
-84
125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5156
SELECT - 84 col1, - MAX ( - + ( - col0 ) ) + - + COUNT ( + + 99 ) * + - 72 FROM tab1
----
-84
125

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 11 > NULL
----

query I rowsort
SELECT DISTINCT + col0 + 22 FROM tab0
----
109
119
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 96 IS NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 16 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5162
SELECT AVG ( + - CAST( + - col1 AS DECIMAL ) ) FROM tab2 AS cor0 WHERE col1 / + 3 IN ( + ( - + 3 ), 95 / - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT AVG ( + - CAST ( + - col1 AS REAL ) ) FROM tab2 AS cor0 WHERE col1 / + 3 IN ( + ( - + 3 ), 95 / - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 13 + 34 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - 91 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT + + 95, - COUNT( * ) - + 33 * - - COUNT( - col0 ) AS col0 FROM tab2 AS cor0
----
95
-102

skipif mysql # not compatible
query II rowsort label-5164
SELECT + + 95, - COUNT ( * ) - + 33 * - - COUNT ( - col0 ) AS col0 FROM tab2 AS cor0
----
95
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 col1 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT - COUNT( ALL + col1 ) + - 48 col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5166
SELECT - COUNT ( ALL + col1 ) + - 48 col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT ALL - 66 * 48 + - col2 FROM tab1 AS cor0
----
-3227
-3236
-3264

query I rowsort
SELECT DISTINCT 99 * col2 AS col1 FROM tab1
----
5841
6732
9504

query II rowsort
SELECT - col2 + 16 AS col2, - col2 AS col1 FROM tab0
----
-31
-47
-83
-99
6
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT - SUM( ALL + ( - col1 ) ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - SUM ( ALL + ( - col1 ) ) AS col1 FROM tab1
----
66

query I rowsort
SELECT ALL + 17 + 19 AS col0 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT ALL + col1 - - col1 + - - col2 DIV 64 FROM tab0 AS cor0
----
162
3
42

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + col1 - - col1 + - - col2 / 64 FROM tab0 AS cor0
----
162
3
42

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + ( - MIN( DISTINCT col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5174
SELECT + ( - MIN ( DISTINCT col2 ) ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT ALL - CAST( NULL AS SIGNED ) + 84 + + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - CAST ( NULL AS INTEGER ) + 84 + + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col0 ) col2, - col2 AS col1 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT ALL - col2 - + 73 AS col2 FROM tab1 cor0
----
-132
-141
-169

query II rowsort
SELECT DISTINCT 41 AS col1, + 18 * + col2 AS col2 FROM tab0
----
41
1782
41
180
41
846

query I rowsort
SELECT ALL col0 * 62 * 84 - - col2 AS col0 FROM tab0
----
453106
505275
78167

query I rowsort
SELECT ALL - 45 * - 46 FROM tab1
----
2070
2070
2070

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL >= col2 )
----

query II rowsort
SELECT - 83, + col2 AS col2 FROM tab0 AS cor0
----
-83
10
-83
47
-83
99

query I rowsort
SELECT DISTINCT + 25 * + + col1 + - - 38 FROM tab2 cor0
----
1313
1713
1963

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL MIN( 18 ) AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL MIN ( 18 ) AS col0 FROM tab1
----
18

query III rowsort
SELECT ALL * FROM tab2 WHERE - 72 > - col1 * 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT DISTINCT + CAST( ( ( COUNT( * ) ) ) AS SIGNED ) + 58 AS col2 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT + CAST ( ( ( COUNT ( * ) ) ) AS INTEGER ) + 58 AS col2 FROM tab1
----
61

query I rowsort
SELECT + col1 + + 48 AS col1 FROM tab0 WHERE col2 BETWEEN ( ( col0 ) ) AND ( + 48 )
----
129

query I rowsort
SELECT 12 AS col0 FROM tab1 WHERE col2 + + col0 IN ( - 91 )
----

query I rowsort
SELECT DISTINCT - col0 - 43 FROM tab0
----
-130
-140
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col1 FROM tab0 WHERE NOT ( col0 + - 33 ) <= ( col1 )
----
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT DISTINCT col2 + 77 DIV - col0 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT col2 + 77 / - col0 FROM tab2
----
22
39
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT 6 DIV col1 + + col0 * - col0 FROM tab1
----
-2601
-7224
-8281

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT 6 / col1 + + col0 * - col0 FROM tab1
----
-2601
-7224
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT DISTINCT + col1 DIV col0 + col1 * + col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT + col1 / col0 + col1 * + col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + - 24 AS col2 FROM tab2
----
-70
-88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT - ( COUNT( DISTINCT - ( col1 ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5198
SELECT - ( COUNT ( DISTINCT - ( col1 ) ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 - col2 * col1 AS col1 FROM tab1 WHERE NOT col0 NOT BETWEEN ( 95 ) AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 54 FROM tab1 WHERE NOT + ( col2 ) * col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 54 FROM tab1 WHERE NOT + ( col2 ) * col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 3 >= ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT - COUNT( 43 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT - COUNT ( 43 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT COUNT( * ) * + ( + COUNT( * ) * - CAST( + 16 AS SIGNED ) ) AS col2 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5203
SELECT COUNT ( * ) * + ( + COUNT ( * ) * - CAST ( + 16 AS INTEGER ) ) AS col2 FROM tab2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT COUNT( * ) * + 58 AS col2 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-5204
SELECT COUNT ( * ) * + 58 AS col2 FROM tab2
----
174

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 76 * + 7 + - 56 FROM tab1
----
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( 54 )
----

skipif mysql # not compatible
query I rowsort label-5207
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( 54 )
----

query I rowsort
SELECT 41 * 79 AS col2 FROM tab0
----
3239
3239
3239

query I rowsort
SELECT - col0 FROM tab2 WHERE - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT DISTINCT + 51 + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT + 51 + COUNT ( * ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT MIN( DISTINCT + col0 ) + COUNT( * ) AS col2 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5211
SELECT MIN ( DISTINCT + col0 ) + COUNT ( * ) AS col2 FROM tab2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT ALL col1 DIV ( col1 ) - ( ( + 34 ) + col0 ) FROM tab0
----
-120
-130
-48

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL col1 / ( col1 ) - ( ( + 34 ) + col0 ) FROM tab0
----
-120
-130
-48

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + ( 79 ) FROM tab2
----
4029
5293
6083

query I rowsort
SELECT ALL - 22 + - col1 AS col1 FROM tab1 AS cor0
----
-27
-36
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col0 FROM tab0 AS cor0 WHERE - col1 + 4 * 63 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT + 46 - COUNT( * ) AS col1 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT + 46 - COUNT ( * ) AS col1 FROM tab2 cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5218
SELECT * FROM tab0 WHERE - CAST( - col1 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5218
SELECT * FROM tab0 WHERE - CAST ( - col1 AS INTEGER ) > ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) <> ( + 98 )
----

query I rowsort
SELECT DISTINCT 93 FROM tab0 AS cor0 CROSS JOIN tab2
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL + - col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + - col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - 68 FROM tab2 cor0
----
-22
-4
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 - - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 - - col1 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * 10 BETWEEN ( 10 * - 19 ) AND ( NULL )
----

query I rowsort
SELECT ALL - 41 + col0 AS col1 FROM tab1 AS cor0
----
10
44
50

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab1 AS cor0 WHERE 25 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( CAST( col1 AS SIGNED ) ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5228
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( CAST ( col1 AS INTEGER ) ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT SUM( ALL col2 ) + COUNT( * ) * - 17 col1 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5229
SELECT SUM ( ALL col2 ) + COUNT ( * ) * - 17 col1 FROM tab2 AS cor0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5230
SELECT ALL + + SUM( ALL - CAST( col1 AS SIGNED ) ) + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + + SUM ( ALL - CAST ( col1 AS INTEGER ) ) + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 87 - - col2 FROM tab0 AS cor0
----
134
186
97

query I rowsort
SELECT DISTINCT + ( 43 ) + + col0 AS col1 FROM tab0 AS cor0
----
130
140
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 60 )
----

query I rowsort
SELECT - col2 * - - 88 AS col0 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT DISTINCT - 84 * col2 * col0 AS col0 FROM tab0
----
-59220
-73080
-806652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL ( ( - CAST( NULL AS SIGNED ) ) ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL ( ( - CAST ( NULL AS INTEGER ) ) ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT - COUNT( * ) * - - 36 AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - COUNT ( * ) * - - 36 AS col1 FROM tab2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-5238
SELECT DISTINCT 30 DIV + 21 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5238
SELECT DISTINCT 30 / + 21 col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab2 WHERE NOT NULL IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - col2 ) NOT BETWEEN ( 50 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT + CAST( col1 AS SIGNED ) * - 21 FROM tab1 AS cor0
----
-105
-294
-987

skipif mysql # not compatible
query I rowsort label-5241
SELECT + CAST ( col1 AS INTEGER ) * - 21 FROM tab1 AS cor0
----
-105
-294
-987

query I rowsort
SELECT DISTINCT - col1 * + 45 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
171330
4552
9537

query I rowsort
SELECT + 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT + COUNT( * ) + - 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-5244
SELECT + COUNT ( * ) + - 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT - + 68 * ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-612

skipif mysql # not compatible
query I rowsort label-5245
SELECT - + 68 * ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-612

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 NOT IN ( + 22 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + col1 + + + col1 * 11 AS col2 FROM tab2 AS cor0
----
1734
3927
4623

query I rowsort
SELECT ALL + + 82 AS col2 FROM tab1 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 62 col0, 61 * - + 2 FROM tab0 AS cor0
----
-62
-122

query I rowsort
SELECT + col0 + + ( - col1 ) * - col2 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT ALL + ( col2 ) * + 84 * ( col1 ) AS col1 FROM tab2 AS cor0
----
258720
326424
98532

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - - ( + col1 ) ) * - col0 > - 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + + col2 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 6 FROM tab1 AS cor0 WHERE + 23 * col2 <> - col0
----
6
6
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5256
SELECT + MIN( - col0 ) DIV - SUM( 84 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5256
SELECT + MIN ( - col0 ) / - SUM ( 84 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - - col2 + col2 ) NOT IN ( col0 / - col2 ) OR NOT ( 62 * - col0 + - col0 * + col2 ) BETWEEN 41 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT 31 DIV + + col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5258
SELECT 31 / + + col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE ( + col1 * + + ( + col0 ) ) BETWEEN col1 * + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE ( + col1 * + + ( + col0 ) ) BETWEEN col1 * + col0 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) >= NULL
----

query II rowsort
SELECT - col2 - col1 AS col2, col1 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-117
-5929
-125
-4489
-74
-2601

query I rowsort
SELECT - col1 * col2 + - 79 FROM tab0 AS cor0
----
-178
-289
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL + MIN( - - col2 ) - - + COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + MIN ( - - col2 ) - - + COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT DISTINCT COUNT( * ), 42 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5264
SELECT DISTINCT COUNT ( * ), 42 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
42

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL > - col2 + + col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT - CAST( NULL AS SIGNED ) * AVG ( - - 3 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - CAST ( NULL AS INTEGER ) * AVG ( - - 3 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 40 - - 6 + + 91 FROM tab2 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col2 FROM tab0 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT COUNT( * ) AS col1, + SUM( DISTINCT - 96 ) col0 FROM tab0 AS cor0
----
3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5269
SELECT COUNT ( * ) AS col1, + SUM ( DISTINCT - 96 ) col0 FROM tab0 AS cor0
----
3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + MIN( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5270
SELECT + MIN ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) * - 80 * - col1 NOT BETWEEN col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( + + 11 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( + + 11 * col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col2 AND - 29
----

query I rowsort
SELECT ALL ( + 88 ) AS col0 FROM tab0
----
88
88
88

query I rowsort
SELECT + col0 * + col1 * + - col1 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( - 33, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT + 45 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5278
SELECT + 45 / + col0 FROM tab0
----
0
0
3

query II rowsort
SELECT DISTINCT - + 27, col0 FROM tab1 AS cor0
----
-27
51
-27
85
-27
91

query II rowsort
SELECT DISTINCT col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT + 38 FROM tab0 cor0 WHERE NOT NULL = - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( 79 ) - col2 * + col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT - ( + - ( + 87 ) ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT 9 >= col1 - + 20
----
2001
3480
5046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 * - 78 col2 FROM tab0 AS cor0
----
-1326
-1326
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 11 + - ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 11 + - ( col2 ) )
----
0

query I rowsort
SELECT DISTINCT 65 * + col1 FROM tab0
----
1365
5265
65

query I rowsort
SELECT DISTINCT ( + + 28 ) * - col1 + - col0 FROM tab1
----
-1407
-225
-443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col0 FROM tab1 AS cor0 WHERE col0 / col2 * + col0 * - - 95 <> NULL
----

query I rowsort
SELECT + + col0 + - col2 + + col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col1 + - col2 * + + 37 + - + col2 AS col2 FROM tab1 AS cor0
----
-2237
-2537
-3634

query III rowsort
SELECT * FROM tab1 WHERE + - 41 + - - 15 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT DISTINCT - MAX( DISTINCT - - 13 ) DIV 53 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT - MAX ( DISTINCT - - 13 ) / 53 FROM tab2
----
0

query I rowsort
SELECT ALL + ( + + ( col2 ) ) AS col2 FROM tab0
----
10
47
99

query II rowsort
SELECT - col0 * + col2 + - col0 AS col2, col0 FROM tab0
----
-720
15
-957
87
-9700
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT + ( COUNT( * ) ) + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5295
SELECT + ( COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT DISTINCT - ( + ( + ( col0 ) ) ) - + 26 FROM tab1 AS cor0
----
-111
-117
-77

query I rowsort
SELECT 15 - - + col2 FROM tab2
----
38
55
73

query I rowsort
SELECT ALL 4 - 86 * + 58 + + col1 FROM tab0
----
-4903
-4963
-4983

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 46 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL 56 * col0 AS col2 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT DISTINCT col0 * col2 * - + 59 AS col2 FROM tab2 AS cor0
----
-151040
-256650
-62422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT + CAST( - 83 AS SIGNED ) * + SUM( ALL + + col1 ) AS col2 FROM tab2 cor0
----
-16185

skipif mysql # not compatible
query I rowsort label-5303
SELECT + CAST ( - 83 AS INTEGER ) * + SUM ( ALL + + col1 ) AS col2 FROM tab2 cor0
----
-16185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT + CAST( + + col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5304
SELECT + CAST ( + + col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + MIN( - 4 ) AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5305
SELECT + MIN ( - 4 ) AS col2 FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + MIN( + - 33 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5306
SELECT + MIN ( + - 33 ) FROM tab2 AS cor0
----
-33

query I rowsort
SELECT 79 * + col0 AS col2 FROM tab1 AS cor0
----
4029
6715
7189

query I rowsort
SELECT ALL + ( - - col1 ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-5309
SELECT ALL 91 AS col0, 27 DIV + col1 * + ( - - 98 ) FROM tab2
----
91
0
91
0
91
0

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL 91 AS col0, 27 / + col1 * + ( - - 98 ) FROM tab2
----
91
0
91
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + + col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5311
SELECT + COUNT( * ), ( + 58 ) col2 FROM tab1 AS cor0
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5311
SELECT + COUNT ( * ), ( + 58 ) col2 FROM tab1 AS cor0
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT + SUM( + col0 ) * - 44 FROM tab0 AS cor0
----
-8756

skipif mysql # not compatible
query I rowsort label-5312
SELECT + SUM ( + col0 ) * - 44 FROM tab0 AS cor0
----
-8756

query I rowsort
SELECT ( + 82 ) * + 77 FROM tab1 AS cor0
----
6314
6314
6314

query I rowsort
SELECT + col0 * - col2 + + col0 AS col1 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT + + col2 + - 26 + + col2 AS col1 FROM tab1 cor0
----
110
166
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT DISTINCT ( + 42 ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-5316
SELECT DISTINCT ( + 42 ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
42
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT - CAST( + - col1 AS SIGNED ) * - col1 col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5317
SELECT - CAST ( + - col1 AS INTEGER ) * - col1 col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT 26 * + + col1 AS col0 FROM tab2 AS cor0
----
1326
1742
2002

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 61 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL - COUNT( * ) + + COUNT( * ) * + MIN( ALL col1 ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * + MIN ( ALL col1 ) AS col2 FROM tab1
----
12

query I rowsort
SELECT + col0 * ( - + col0 ) AS col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - col2 + 90 * - ( - col0 ) FROM tab0 AS cor0
----
1303
7820
8631

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 IN ( - + col0 * col0, col0 * - 75 / + col1, 6, - 93 )
----
3

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 IN ( - + col0 * col0, col0 * - 75 / + col1, 6, - 93 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT + col0 DIV - - col1 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5324
SELECT + col0 / - - col1 FROM tab0 cor0
----
0
4
97

query I rowsort
SELECT - col1 * + + col1 + 61 * + + col2 * col0 * - + col2 FROM tab2 AS cor0
----
-1486975
-15394789
-6252329

query I rowsort
SELECT + 61 * - + col1 FROM tab1 AS cor0 WHERE NOT + col1 + + col1 * - + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 31 NOT BETWEEN + ( + col2 ) AND + 45
----

query I rowsort
SELECT + - 58 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-58
-58
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 62 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT col0 > ( col0 )
----
-59
-68
-96

query II rowsort
SELECT ALL - + col1, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col2 IN ( 72 * + - col0 / + + 21, - 24 )
----

query I rowsort
SELECT col2 + - 29 - + 64 + + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 23 IS NULL
----
-104
-127
5

query I rowsort
SELECT - + 68 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> + - 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT - MIN( 1 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - MIN ( 1 ) FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 41 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, 98 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT MAX( ALL 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-5339
SELECT MAX ( ALL 41 ) FROM tab2
----
41

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 41 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + - col2 < + - col0
----
51
14
96

query II rowsort
SELECT 16, + col0 AS col2 FROM tab0
----
16
15
16
87
16
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5344
SELECT ALL * FROM tab2 AS cor0 WHERE + 8 NOT BETWEEN NULL AND + + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5344
SELECT ALL * FROM tab2 AS cor0 WHERE + 8 NOT BETWEEN NULL AND + + col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL - + COUNT( * ) + - 62 AS col0 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - + COUNT ( * ) + - 62 AS col0 FROM tab2 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT DISTINCT col2 + - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT col2 + - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT - - 51 + + + CAST( NULL AS SIGNED ) + + + 93 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT - - 51 + + + CAST ( NULL AS INTEGER ) + + + 93 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 + + ( + 43 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT - COUNT( * ) DIV - + COUNT( * ) + + COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5349
SELECT - COUNT ( * ) / - + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
4

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT COUNT( * ) + - + 91 AS col2 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-5351
SELECT COUNT ( * ) + - + 91 AS col2 FROM tab0
----
-88

query I rowsort
SELECT ALL 78 * col1 AS col2 FROM tab2
----
3978
5226
6006

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5353
SELECT ALL * FROM tab0 WHERE NOT 64 / - 91 <= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5353
SELECT ALL * FROM tab0 WHERE NOT 64 / - 91 <= - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 + - + 46 + col1 * col1 FROM tab1
----
201
2254
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5355
SELECT DISTINCT COUNT( * ) + - - 95 + + 73 + + 5 + + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT COUNT ( * ) + - - 95 + + 73 + + 5 + + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
177

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE + - col1 + - ( + - ( col2 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 52 + - ( col2 ) FROM tab0 AS cor0
----
-47
42
5

query I rowsort
SELECT DISTINCT - 18 * - col2 AS col2 FROM tab2 AS cor0
----
1044
414
720

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL MIN( + + col2 ) * 24 + + - 20 + + + 52 AS col0 FROM tab1
----
1448

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL MIN ( + + col2 ) * 24 + + - 20 + + + 52 AS col0 FROM tab1
----
1448

query I rowsort
SELECT DISTINCT 88 + col2 + - 85 * - - 55 FROM tab2 WHERE NOT - + col1 BETWEEN NULL AND + col2 * - ( + col0 ) + 75 * + - col0 + + col1
----
-4529
-4547
-4564

query I rowsort
SELECT ALL 57 AS col1 FROM tab0 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5362
SELECT + 70 * + col0 * - CAST( NULL AS SIGNED ) / - + col2 * - col2 col1, + col0 + + col0 FROM tab0 cor0 WHERE NOT - 30 BETWEEN col0 AND + + 58 - - 27
----
NULL
174
NULL
194
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5362
SELECT + 70 * + col0 * - CAST ( NULL AS INTEGER ) / - + col2 * - col2 col1, + col0 + + col0 FROM tab0 cor0 WHERE NOT - 30 BETWEEN col0 AND + + 58 - - 27
----
NULL
174
NULL
194
NULL
30

query I rowsort
SELECT - 19 * col0 FROM tab0 AS cor0
----
-1653
-1843
-285

query I rowsort
SELECT ALL + + col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 col1 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT MAX( DISTINCT + ( - 85 ) ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-5367
SELECT MAX ( DISTINCT + ( - 85 ) ) FROM tab2
----
-85

query I rowsort
SELECT DISTINCT - 14 FROM tab2 WHERE + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT - MAX( DISTINCT 8 ) + ( + 44 ) + - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5369
SELECT DISTINCT - MAX ( DISTINCT 8 ) + ( + 44 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query II rowsort
SELECT col2 AS col2, ( - - 97 ) FROM tab1
----
59
97
68
97
96
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 NOT BETWEEN + 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL - MIN( ALL 57 ) + - COUNT( * ) AS col2 FROM tab0 WHERE - 66 / + col1 + - col0 - - + 49 + - - col0 * col0 + + - 67 + col2 + + 14 IS NOT NULL
----
-60

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - MIN ( ALL 57 ) + - COUNT ( * ) AS col2 FROM tab0 WHERE - 66 / + col1 + - col0 - - + 49 + - - col0 * col0 + + - 67 + col2 + + 14 IS NOT NULL
----
-60

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( ( NULL BETWEEN - col1 AND NULL ) )
----

query II rowsort
SELECT ALL + col0 AS col2, 75 * + - 57 AS col2 FROM tab0 AS cor0
----
15
-4275
87
-4275
97
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 + + col0 col2 FROM tab2 AS cor0
----
25
43
54

query I rowsort
SELECT - col0 + + + col1 AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT 11 + + col0 AS col2 FROM tab2 AS cor0
----
57
75
86

query I rowsort
SELECT ( + col2 ) * + 63 FROM tab2 AS cor0
----
1449
2520
3654

query I rowsort
SELECT DISTINCT - col1 * col0 + + 39 FROM tab0 AS cor0
----
-1176
-1788
-58

query I rowsort
SELECT ALL - 84 + - - 51 AS col2 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - ( - 24 ) FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + + col1 * + - 42 + - ( + 25 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 * 45 IS NULL
----

query I rowsort
SELECT ALL 75 * - col2 AS col2 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT col1 - - - 62 AS col0 FROM tab0
----
-41
-61
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT 2 * 44 * - COUNT( * ) FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT 2 * 44 * - COUNT ( * ) FROM tab0
----
-264

query III rowsort
SELECT * FROM tab0 WHERE + 9 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT - - 81 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - - 81 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
243

query II rowsort
SELECT DISTINCT - 5 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
-5
-1
-5
-21
-5
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + MIN( - - col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5391
SELECT + MIN ( - - col1 ) AS col0 FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT + col1 * + 10 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5393
SELECT * FROM tab0 WHERE NOT + - col0 * - col2 * CAST( - 7 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5393
SELECT * FROM tab0 WHERE NOT + - col0 * - col2 * CAST ( - 7 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT + + COUNT( * ) * + 49 AS col1, + 20 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
147
60

skipif mysql # not compatible
query II rowsort label-5394
SELECT + + COUNT ( * ) * + 49 AS col1, + 20 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
147
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT ALL - - col2 * + col0 DIV + - col0 + - + 52 + - col0 FROM tab1 AS cor0
----
-196
-199
-211

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - - col2 * + col0 / + - col0 + - + 52 + - col0 FROM tab1 AS cor0
----
-196
-199
-211

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + col0 <= - - col0 + + col2 OR NOT - + 48 * + - 87 IS NOT NULL
----

query I rowsort
SELECT - col1 * 64 AS col0 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col2 AS col1 FROM tab2 cor0
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT SUM( ( + + col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5399
SELECT SUM ( ( + + col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col2 / + 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + 67 col2 FROM tab1 AS cor0
----
3149
335
938

query I rowsort
SELECT - 47 * - ( - - col2 ) AS col0 FROM tab2
----
1081
1880
2726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT SUM( ALL - 70 ) DIV + 17 AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-5404
SELECT SUM ( ALL - 70 ) / + 17 AS col2 FROM tab1
----
-12

query I rowsort
SELECT col0 * col1 * - col1 + + col0 FROM tab0
----
-38280
-98400
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - SUM( DISTINCT 91 ) + - + 81 + - 84 FROM tab0
----
-256

skipif mysql # not compatible
query I rowsort label-5406
SELECT - SUM ( DISTINCT 91 ) + - + 81 + - 84 FROM tab0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT - ( - SUM( + col1 ) ) * + + COUNT( * ) + - 92 FROM tab2
----
493

skipif mysql # not compatible
query I rowsort label-5407
SELECT - ( - SUM ( + col1 ) ) * + + COUNT ( * ) + - 92 FROM tab2
----
493

query I rowsort
SELECT ALL 76 * - col0 + - col1 + col2 FROM tab0
----
-1174
-6623
-7274

query I rowsort
SELECT ALL - 35 + - col2 FROM tab0 AS cor0
----
-134
-45
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <= - - ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT + - col0 * + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + - col0 * + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + 97
----

query I rowsort
SELECT + 60 + + col2 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1233
3140
3946

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT ALL - col2 DIV - ( + - col0 ) + col0 - - ( + col2 ) * + 87 FROM tab2 AS cor0
----
2047
3544
5121

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL - col2 / - ( + - col0 ) + col0 - - ( + col2 ) * + 87 FROM tab2 AS cor0
----
2047
3544
5121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col0 col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - 74 + - 60 AS col0 FROM tab2 cor0
----
-134
-134
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL SUM( DISTINCT - col1 ) * ( 67 ) + + 40 AS col0 FROM tab0
----
-6861

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL SUM ( DISTINCT - col1 ) * ( 67 ) + + 40 AS col0 FROM tab0
----
-6861

query I rowsort
SELECT - 33 * col1 FROM tab2 WHERE NOT ( - 20 > NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 * - col2 <> col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT - 23, SUM( 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 < - col0
----
-23
117

skipif mysql # not compatible
query II rowsort label-5422
SELECT - 23, SUM ( 39 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 < - col0
----
-23
117

query I rowsort
SELECT ALL + - col0 * col2 + - col0 + - - col1 - + col1 + - 13 * + 50 AS col0 FROM tab0 AS cor0
----
-10350
-1370
-1607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col1 FROM tab2 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - 74 - col2 IS NOT NULL
----

query I rowsort
SELECT + 71 + col1 AS col1 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT - 75 + + col1 AS col0 FROM tab0 AS cor0
----
-54
-74
6

query II rowsort
SELECT ALL - ( + col2 ) + 81, - col1 AS col1 FROM tab0 AS cor0
----
-18
-1
34
-81
71
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - COUNT( * ) + 25 AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5429
SELECT - COUNT ( * ) + 25 AS col0 FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT + col1 * + - CAST( NULL AS SIGNED ) + - 41 + + col2 * - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT + col1 * + - CAST ( NULL AS INTEGER ) + - 41 + + col2 * - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 19 * - + col2 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT DISTINCT MAX( DISTINCT + col0 ) * 49 AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
4459
3

skipif mysql # not compatible
query II rowsort label-5432
SELECT DISTINCT MAX ( DISTINCT + col0 ) * 49 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4459
3

query I rowsort
SELECT DISTINCT - + col2 * - col0 * 45 AS col2 FROM tab0 AS cor0
----
31725
39150
432135

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + + COUNT( * ) * + + 85 FROM tab0 cor0
----
255

skipif mysql # not compatible
query I rowsort label-5434
SELECT + + COUNT ( * ) * + + 85 FROM tab0 cor0
----
255

query II rowsort
SELECT ALL - - col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5436
SELECT ALL - 8 DIV + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - 8 / + col2 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT + col1, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * col0 + + - col2 IS NULL
----

query II rowsort
SELECT + col1, col1 * + col0 AS col0 FROM tab2
----
51
2346
67
5025
77
4928

query I rowsort
SELECT DISTINCT - col2 + - 47 + 18 - + 71 - - col0 FROM tab2
----
-76
-77
-83

query I rowsort
SELECT DISTINCT 21 + col0 FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE + col0 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT - + 5 + SUM( ALL + col0 ) AS col1 FROM tab0 cor0
----
194

skipif mysql # not compatible
query I rowsort label-5443
SELECT - + 5 + SUM ( ALL + col0 ) AS col1 FROM tab0 cor0
----
194

query I rowsort
SELECT DISTINCT ( + 71 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( col0 <> CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NOT ( col0 <> CAST ( - + col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 + + + 12 FROM tab1
----
108
71
80

query I rowsort
SELECT ALL - 55 FROM tab0 AS cor0 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT ALL col0 - 93 + + 34 * + 87 AS col2 FROM tab1 AS cor0
----
2916
2950
2956

query II rowsort
SELECT ALL - + 27 + - - col1 AS col1, col2 FROM tab1 AS cor0
----
-13
96
-22
59
20
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - ( - COUNT( * ) ) - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT - ( - COUNT ( * ) ) - COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 62 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 < - col0
----

query I rowsort
SELECT DISTINCT - col1 + + + 83 AS col0 FROM tab0 AS cor0
----
2
62
82

query I rowsort
SELECT + 25 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5455
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5455
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT - 25 FROM tab2 WHERE NOT NULL > + + col2
----

query II rowsort
SELECT + 15 AS col0, - col1 FROM tab2
----
15
-51
15
-67
15
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN - 80 + - - CAST( NULL AS SIGNED ) + + 97 * col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col2 NOT BETWEEN - 80 + - - CAST ( NULL AS INTEGER ) + + 97 * col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5459
SELECT 69 * - ( - col0 ) AS col0, - col1 * 69 DIV + - ( - col1 ) FROM tab0
----
1035
-69
6003
-69
6693
-69

skipif mysql # not compatible
query II rowsort label-5459
SELECT 69 * - ( - col0 ) AS col0, - col1 * 69 / + - ( - col1 ) FROM tab0
----
1035
-69
6003
-69
6693
-69

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = col0 * 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT - CAST( 81 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-5461
SELECT - CAST ( 81 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT DISTINCT + 5 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5462
SELECT DISTINCT + 5 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL - + 88 AS col2 FROM tab0 AS cor0
----
-88
-88
-88

query II rowsort
SELECT 20 * - 50 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
-1000
15
-1000
87
-1000
97

query I rowsort
SELECT + ( + ( + ( col2 ) ) ) * 33 * - col0 FROM tab1 AS cor0
----
-161568
-165495
-204204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5466
SELECT ALL + + col2 * + - CAST( col2 AS SIGNED ) + + - col2 DIV - CAST( + 10 AS SIGNED ) FROM tab0 AS cor0
----
-2205
-9792
-99

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + + col2 * + - CAST ( col2 AS INTEGER ) + + - col2 / - CAST ( + 10 AS INTEGER ) FROM tab0 AS cor0
----
-2205
-9792
-99

query I rowsort
SELECT ALL + - 24 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - 2 * - - 9 * - + col2 AS col1 FROM tab2 AS cor0
----
1044
414
720

query I rowsort
SELECT ALL ( - col1 ) * + col0 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT 49 * + col0 * + col2 AS col1 FROM tab1 AS cor0
----
239904
245735
303212

query I rowsort
SELECT ALL - + 12 AS col2 FROM tab1 cor0
----
-12
-12
-12

query I rowsort
SELECT col0 + col2 * - + col1 + - col1 FROM tab2
----
-1178
-3093
-3878

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - + 3 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT col2 * - CAST( + - col1 AS SIGNED ) + col0 AS col2 FROM tab1
----
1395
3287
380

skipif mysql # not compatible
query I rowsort label-5474
SELECT col2 * - CAST ( + - col1 AS INTEGER ) + col0 AS col2 FROM tab1
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT + col0 * col1 + - CAST( + 47 AS SIGNED ) AS col2 FROM tab1
----
378
4230
667

skipif mysql # not compatible
query I rowsort label-5475
SELECT + col0 * col1 + - CAST ( + 47 AS INTEGER ) AS col2 FROM tab1
----
378
4230
667

query I rowsort
SELECT DISTINCT + 88 * + col2 * + + col0 * + 77 FROM tab0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + 66 + COUNT( ALL + + 38 ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5477
SELECT + 66 + COUNT ( ALL + + 38 ) AS col0 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT MAX( - col1 ) + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5478
SELECT MAX ( - col1 ) + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE + + col1 < NULL
----

query I rowsort
SELECT + col1 + + + col0 * 34 FROM tab2
----
1615
2253
2617

query I rowsort
SELECT DISTINCT - col1 + col0 * col0 FROM tab1
----
2587
7220
8234

query I rowsort
SELECT ALL - col0 + 61 AS col2 FROM tab1
----
-24
-30
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT DISTINCT - 58 + COUNT( * ) AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT - 58 + COUNT ( * ) AS col0 FROM tab0
----
-55

query III rowsort
SELECT ALL * FROM tab0 WHERE - 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 - - - 92 FROM tab1 cor0
----
-45
-78
-87

query II rowsort
SELECT + col1 - - - 50 + + + ( 40 ), + col2 AS col1 FROM tab1
----
-5
59
37
68
4
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT COUNT( * ) + - 95 AS col1 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-5488
SELECT COUNT ( * ) + - 95 AS col1 FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT - COUNT( * ) AS col0, COUNT( * ) FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND - col0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5489
SELECT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND - col0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5490
SELECT - col1 + - col1 * col0 DIV - col2 + + 35 FROM tab1 AS cor0
----
28
37
50

skipif mysql # not compatible
query I rowsort label-5490
SELECT - col1 + - col1 * col0 / - col2 + + 35 FROM tab1 AS cor0
----
28
37
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5491
SELECT ALL 14 DIV + + 23 + - CAST( + 97 AS SIGNED ) AS col0 FROM tab0 cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL 14 / + + 23 + - CAST ( + 97 AS INTEGER ) AS col0 FROM tab0 cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL + CAST( + - 24 AS SIGNED ) FROM tab2 cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + CAST ( + - 24 AS INTEGER ) FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT + 80 FROM tab1 AS cor0 WHERE NOT + 55 IS NULL
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - + SUM( + col1 ) col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5494
SELECT - + SUM ( + col1 ) col1 FROM tab0 cor0
----
-103

query II rowsort
SELECT - - col0 AS col0, - col2 * - - col1 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5496
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST( - 34 AS DECIMAL ) ) NOT BETWEEN NULL AND - 27 + 97 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5496
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - CAST ( - 34 AS REAL ) ) NOT BETWEEN NULL AND - 27 + 97 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT DISTINCT - SUM( DISTINCT - - col2 ) col2 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5497
SELECT DISTINCT - SUM ( DISTINCT - - col2 ) col2 FROM tab2
----
-121

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < - 81
----

query II rowsort
SELECT + col2 * 68 AS col1, + col1 AS col0 FROM tab2
----
1564
51
2720
77
3944
67

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 + + col1 + col0 AND - col2
----

query I rowsort
SELECT + - 88 + - col0 AS col1 FROM tab0 AS cor0
----
-103
-175
-185

query II rowsort
SELECT DISTINCT - col0 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5503
SELECT + 79 AS col0, + MAX( + 98 ) FROM tab1 AS cor0
----
79
98

skipif mysql # not compatible
query II rowsort label-5503
SELECT + 79 AS col0, + MAX ( + 98 ) FROM tab1 AS cor0
----
79
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT DISTINCT 22 col0, COUNT( ALL - 47 ) * 87 AS col2 FROM tab0 AS cor0
----
22
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5504
SELECT DISTINCT 22 col0, COUNT ( ALL - 47 ) * 87 AS col2 FROM tab0 AS cor0
----
22
261

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - 5 * + COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5505
SELECT - 5 * + COUNT ( * ) FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 AS col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT 14 - + - col0 * - 66 AS col2 FROM tab0
----
-5728
-6388
-976

query I rowsort
SELECT ALL + 53 * + col1 FROM tab2
----
2703
3551
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT ALL col0 + - ( 0 ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT - 83 - - 59 + - ( 19 ) + - 3 AS col0 FROM tab2
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT 21 - + COUNT( * ) * - SUM( - col0 ) + 29 FROM tab1
----
-631

skipif mysql # not compatible
query I rowsort label-5513
SELECT 21 - + COUNT ( * ) * - SUM ( - col0 ) + 29 FROM tab1
----
-631

query I rowsort
SELECT ALL + 5 * col1 * + ( 23 ) * 85 + + - 11 - - col1 - + 93 + 61 * - col2 AS col1 FROM tab1
----
130904
45177
455220

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + + 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 74 + - col2 AS col1 FROM tab0 cor0
----
-121
-173
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT + + CAST( - 38 AS SIGNED ) + - 99 AS col2 FROM tab0 AS cor0
----
-137
-137
-137

skipif mysql # not compatible
query I rowsort label-5517
SELECT + + CAST ( - 38 AS INTEGER ) + - 99 AS col2 FROM tab0 AS cor0
----
-137
-137
-137

query I rowsort
SELECT ALL col2 * - + col2 * + + col1 + + col2 * + - col1 FROM tab0 AS cor0
----
-182736
-2310
-9900

query I rowsort
SELECT 20 * - - col0 + + - 90 AS col1 FROM tab1 AS cor0
----
1610
1730
930

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 95 < NULL
----

query I rowsort
SELECT DISTINCT + 8 * + 99 * 25 AS col1 FROM tab0
----
19800

query I rowsort
SELECT ALL 4 FROM tab2 AS cor0 WHERE NOT col2 >= ( + col0 )
----
4
4
4

query I rowsort
SELECT + 6 * + col1 AS col0 FROM tab1 AS cor0
----
282
30
84

query II rowsort
SELECT - col0, + 75 AS col0 FROM tab0 cor0
----
-15
75
-87
75
-97
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT ALL - - MIN( ALL + - col2 ) DIV - + COUNT( - 90 ) AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - - MIN ( ALL + - col2 ) / - + COUNT ( - 90 ) AS col1 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT DISTINCT - ( - - COUNT( * ) ) DIV + - 80 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT - ( - - COUNT ( * ) ) / + - 80 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) IS NULL AND NOT col2 + + 73 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * + + col1 * + + col2 * col0 col1 FROM tab0 AS cor0
----
-1114470
-3483405
-585783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5529
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT + SUM( ALL - + 63 ) FROM tab1 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5530
SELECT + SUM ( ALL - + 63 ) FROM tab1 cor0
----
-189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5531
SELECT ALL - 47 * + CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5531
SELECT ALL - 47 * + CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, - col0 * 76 AS col0 FROM tab2
----
23
-3496
40
-4864
58
-5700

query II rowsort
SELECT DISTINCT col0, + 48 AS col1 FROM tab2 AS cor0
----
46
48
64
48
75
48

query II rowsort
SELECT ALL 58 AS col1, col1 FROM tab2 AS cor0
----
58
51
58
67
58
77

query I rowsort
SELECT + - 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT DISTINCT col2 + + 55 + + CAST( + + col2 AS SIGNED ) + col2 * + col1 * + col1 + 78 FROM tab2
----
237373
260611
60002

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT col2 + + 55 + + CAST ( + + col2 AS INTEGER ) + col2 * + col1 * + col1 + 78 FROM tab2
----
237373
260611
60002

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT - 25 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-25
-25
-25

query I rowsort
SELECT ALL + 62 * + - col1 + + + 32 AS col2 FROM tab2 AS cor0
----
-3130
-4122
-4742

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 95 * + 21 AND - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT - ( 99 ) * + CAST( NULL AS SIGNED ) + - col1 * 14 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT - ( 99 ) * + CAST ( NULL AS INTEGER ) + - col1 * 14 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ( 85 ) + - + COUNT( * ) * - + 53 FROM tab1
----
244

skipif mysql # not compatible
query I rowsort label-5542
SELECT ( 85 ) + - + COUNT ( * ) * - + 53 FROM tab1
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - COUNT( DISTINCT - col2 ) + 71 + COUNT( * ) * - 3 AS col1 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5543
SELECT - COUNT ( DISTINCT - col2 ) + 71 + COUNT ( * ) * - 3 AS col1 FROM tab2
----
59

query I rowsort
SELECT ALL - ( + 95 ) FROM tab2
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT DISTINCT - 93 AS col2, + 69 * COUNT( * ) AS col0 FROM tab1
----
-93
207

skipif mysql # not compatible
query II rowsort label-5545
SELECT DISTINCT - 93 AS col2, + 69 * COUNT ( * ) AS col0 FROM tab1
----
-93
207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5546
SELECT DISTINCT + AVG ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + AVG ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - - col0 / 86 * - - col0 * + 6 + - - col0 * - col0 + col1 + - 38
----

query II rowsort
SELECT col1 AS col0, + 18 AS col2 FROM tab1
----
14
18
47
18
5
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 35 * + col1 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = + 78
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * 1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5555
SELECT - 90 DIV COUNT( * ) FROM tab1 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 90 / COUNT ( * ) FROM tab1 cor0
----
-30

query I rowsort
SELECT + ( 92 ) FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT ALL - - col1 * - - 51 AS col2 FROM tab0 AS cor0
----
1071
4131
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT ALL CAST( + 80 AS SIGNED ) * 81 AS col0 FROM tab1 AS cor0
----
6480
6480
6480

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL CAST ( + 80 AS INTEGER ) * 81 AS col0 FROM tab1 AS cor0
----
6480
6480
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + COUNT( * ) * + 75 AS col0 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + COUNT ( * ) * + 75 AS col0 FROM tab1
----
225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5561
SELECT + + 74 * CAST( NULL AS DECIMAL ) + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT + + 74 * CAST ( NULL AS REAL ) + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 15, col2 FROM tab2
----
-15
23
-15
40
-15
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT ALL + 96 DIV + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + 96 / + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

query I rowsort
SELECT DISTINCT + 39 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
1943
2538
2939

query II rowsort
SELECT col2 * + 59 * col2 AS col1, - col0 * + - 79 FROM tab0 AS cor0
----
130331
1185
578259
7663
5900
6873

query I rowsort
SELECT DISTINCT - col1 + col1 * + - 23 AS col2 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT DISTINCT 69 DIV + ( - 90 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5568
SELECT DISTINCT 69 / + ( - 90 ) col2 FROM tab2
----
0

query I rowsort
SELECT + + 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + col1 + + 49 AS col0 FROM tab0
----
130
50
70

query I rowsort
SELECT DISTINCT + col0 * col0 * - ( - 13 ) + - + 70 FROM tab0
----
122247
2855
98327

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + ( COUNT( * ) ) + - - 33 AS col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + ( COUNT ( * ) ) + - - 33 AS col2 FROM tab1 AS cor0
----
36

query I rowsort
SELECT - ( - 11 ) AS col0 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL - - CAST( NULL AS SIGNED ) - + col2 + + 72 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5574
SELECT ALL - - CAST ( NULL AS INTEGER ) - + col2 + + 72 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( + 44 ) * - 46 AS col2 FROM tab0 cor0
----
-2024

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 <> + 71 + ( + 3 ) / 49 * - 12 * - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT + 57 * - - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5577
SELECT + 57 * - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT + COUNT( ALL col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5578
SELECT + COUNT ( ALL col2 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL + MAX( ALL col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + MAX ( ALL col1 ) FROM tab1 AS cor0
----
47

query II rowsort
SELECT col1 AS col0, col1 + - col2 AS col0 FROM tab1 AS cor0
----
14
-82
47
-21
5
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - COUNT( * ) * 76 + + + 27 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-5581
SELECT - COUNT ( * ) * 76 + + + 27 FROM tab2
----
-201

query I rowsort
SELECT DISTINCT - AVG ( 91 ) AS col0 FROM tab1 WHERE NOT col2 * - 39 BETWEEN NULL AND - - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL MIN( + + 1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL MIN ( + + 1 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT - + ( + 59 ) AS col0 FROM tab2 AS cor0
----
-59
-59
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND 64 )
----

query I rowsort
SELECT col1 * - + col0 * - + col1 * ( + col2 ) FROM tab1 AS cor0
----
125375
13669292
959616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col0 + + col0 < + 15
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5587
SELECT + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * - col0 + + col0 < + 15
----
46
64
75

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab0 cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT + col1 / - CAST( NULL AS SIGNED ) * + - 19 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT + col1 / - CAST ( NULL AS INTEGER ) * + - 19 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + + 74 * - - col1 * + - 60 * - col0 AS col0 FROM tab1 AS cor0
----
160395000
161678160
1728079080

query I rowsort
SELECT 24 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 WHERE NOT + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT col2 + - CAST( NULL AS SIGNED ) - - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT col2 + - CAST ( NULL AS INTEGER ) - - + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col0 + + - 38 AS col0 FROM tab2
----
2308
4890
4987

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT COUNT( + 42 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT COUNT ( + 42 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5596
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + 18 * + 55 - - COUNT( * ) FROM tab1
----
990

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + 18 * + 55 - - COUNT ( * ) FROM tab1
----
990

query I rowsort
SELECT + 4 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT - 21 + + ( col2 ) FROM tab0 AS cor0
----
-11
26
78

query I rowsort
SELECT DISTINCT col2 - col1 - - + col2 - 38 AS col0 FROM tab1 AS cor0
----
140
51
75

query I rowsort
SELECT col0 + col2 * + + col2 * 90 AS col2 FROM tab0 cor0
----
198825
882187
9087

query II rowsort
SELECT ALL 27, + col2 AS col2 FROM tab1
----
27
59
27
68
27
96

query II rowsort
SELECT DISTINCT 82 AS col1, - col2 FROM tab2
----
82
-23
82
-40
82
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ALL + 36 + - - ( - 89 ) + - 5 * + + COUNT( * ) AS col2 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + 36 + - - ( - 89 ) + - 5 * + + COUNT ( * ) AS col2 FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT COUNT( ALL - + 98 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5605
SELECT COUNT ( ALL - + 98 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col0 >= - - 83 / - 4
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 24 AS col1 FROM tab1 WHERE NOT - col0 BETWEEN col0 + - col1 AND ( - + 84 )
----
1416
1632
2304

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - MAX( DISTINCT 34 ) FROM tab0 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5610
SELECT - MAX ( DISTINCT 34 ) FROM tab0 cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL + 90 * - COUNT( * ) AS col0 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL + 90 * - COUNT ( * ) AS col0 FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL - COUNT( * ) * ( COUNT( * ) ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-90

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - COUNT ( * ) * ( COUNT ( * ) ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT - ( COUNT( DISTINCT + col1 ) ) + 61 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 84 AND - col0 + - col2 * 0
----
61

skipif mysql # not compatible
query I rowsort label-5613
SELECT - ( COUNT ( DISTINCT + col1 ) ) + 61 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 84 AND - col0 + - col2 * 0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT - 20 * 95 AS col2, - COUNT( * ) * + 21 AS col2 FROM tab2 AS cor0
----
-1900
-63

skipif mysql # not compatible
query II rowsort label-5614
SELECT - 20 * 95 AS col2, - COUNT ( * ) * + 21 AS col2 FROM tab2 AS cor0
----
-1900
-63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 IN ( + ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5616
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED ) AND NOT NULL > 50
----

skipif mysql # not compatible
query III rowsort label-5616
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST ( NULL AS INTEGER ) AND NOT NULL > 50
----

query II rowsort
SELECT + col1, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * - - 37 * + 51 * + col2 FROM tab0 AS cor0
----
186813
396270
7183809

onlyif mysql # aggregate syntax: 
quer