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: 
query I rowsort label-5619
SELECT - MIN( - + col1 ) * - 66 + + - 32 * + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
-6174

skipif mysql # not compatible
query I rowsort label-5619
SELECT - MIN ( - + col1 ) * - 66 + + - 32 * + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-6174

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT MIN( ALL 6 ) * + 77 AS col0 FROM tab0
----
462

skipif mysql # not compatible
query I rowsort label-5620
SELECT MIN ( ALL 6 ) * + 77 AS col0 FROM tab0
----
462

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

query I rowsort
SELECT + col1 * + + ( - - 62 ) FROM tab1
----
2914
310
868

query I rowsort
SELECT - + col0 * + col1 AS col2 FROM tab0 WHERE NOT ( + ( - col0 ) ) * + 98 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + SUM ( - col1 ) * - + CAST ( NULL AS INTEGER ) + + 17 FROM tab1
----
NULL

query I rowsort
SELECT + 58 * + 77 AS col2 FROM tab2 AS cor0
----
4466
4466
4466

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

query I rowsort
SELECT + 46 * + 84 AS col2 FROM tab0
----
3864
3864
3864

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

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

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

query I rowsort
SELECT ALL + ( 41 ) * col0 AS col2 FROM tab0
----
3567
3977
615

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT DISTINCT - col1 DIV col1 + + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - col1 / col1 + + col1 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL 36 + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL COUNT( - col2 ) * + 45 AS col1 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL COUNT ( - col2 ) * + 45 AS col1 FROM tab1
----
135

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT - 80 NOT BETWEEN col0 / col2 AND col0
----

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

skipif mysql # not compatible
query I rowsort label-5635
SELECT - col0 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL >= CAST( ( 4 ) AS SIGNED ) + col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5636
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL >= CAST ( ( 4 ) AS INTEGER ) + col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT MIN( 50 ) AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5637
SELECT MIN ( 50 ) AS col0 FROM tab0
----
50

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5640
SELECT col0 / - ( 89 ) col2 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT - 95 DIV + COUNT( * ) AS col0 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-5641
SELECT - 95 / + COUNT ( * ) AS col0 FROM tab2
----
-31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT - 68 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT - 68 / col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT 29 DIV col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT 29 / col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT + ( - ( + ( col0 ) ) ) AS col0 FROM tab1 WHERE col1 NOT IN ( - col1 / - 91 + col2 )
----
-51
-85
-91

query I rowsort
SELECT ALL col1 + - 85 FROM tab2
----
-18
-34
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT - ( - 86 ) DIV + 57 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5647
SELECT - ( - 86 ) / + 57 AS col2 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT 16 DIV 56 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5648
SELECT 16 / 56 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - - col2 * 64 AS col0 FROM tab2
----
1518
2624
3787

query I rowsort
SELECT + ( ( - col2 ) ) + col2 * + col2 AS col2 FROM tab1
----
3422
4556
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT 27 - - col1 DIV - col0 AS col2 FROM tab0
----
22
27
27

skipif mysql # not compatible
query I rowsort label-5651
SELECT 27 - - col1 / - col0 AS col2 FROM tab0
----
22
27
27

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

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 WHERE NOT - col1 + 41 IS NULL
----
-225
-7569
-9409

query I rowsort
SELECT 76 * col1 - - col1 FROM tab0 WHERE 6 * 21 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT DISTINCT - 8 DIV col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT - 8 / col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5658
SELECT ALL + col0 DIV + 87 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + col0 / + 87 FROM tab1 cor0
----
0
0
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT - MAX( DISTINCT col1 ) FROM tab0 WHERE ( - 0 ) BETWEEN ( - col2 * col1 ) AND + col0
----
-81

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT - MAX ( DISTINCT col1 ) FROM tab0 WHERE ( - 0 ) BETWEEN ( - col2 * col1 ) AND + col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT ALL + col0 DIV 23 AS col2 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + col0 / 23 AS col2 FROM tab1
----
2
3
3

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( col2 + col2 * - col1 ) BETWEEN ( 70 ) AND NULL
----
51
67
77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL 62 + - COUNT( * ) * - 97 FROM tab2 AS cor0 WHERE ( - col1 * - col0 + 11 ) <= col0
----
62

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL 62 + - COUNT ( * ) * - 97 FROM tab2 AS cor0 WHERE ( - col1 * - col0 + 11 ) <= col0
----
62

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 65 <> ( col1 / col2 )
----

query I rowsort
SELECT - 67 + + 69 - + col0 * + 38 * - 34 FROM tab2
----
59434
82690
96902

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

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL + MAX ( DISTINCT 81 ) FROM tab2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5672
SELECT ALL + COUNT( * ) + - COUNT( DISTINCT - 9 ) DIV 78 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5672
SELECT ALL + COUNT ( * ) + - COUNT ( DISTINCT - 9 ) / 78 FROM tab1
----
3

query I rowsort
SELECT + col1 + - col2 + + col2 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT 82 + + + 2 * + 76 FROM tab0
----
234

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( - col2 * + 34 + col1 ) OR NULL IS NOT NULL
----

query I rowsort
SELECT ALL 0 + - 66 * - col2 FROM tab2
----
1518
2640
3828

query I rowsort
SELECT - col2 + + - ( col2 ) * + col1 FROM tab1
----
-1440
-3264
-354

query I rowsort
SELECT - col1 - - 64 AS col1 FROM tab2 WHERE NULL NOT IN ( 45 + - col0 )
----

query I rowsort
SELECT DISTINCT + col0 + + col0 + col1 FROM tab0
----
111
195

query I rowsort
SELECT - 2 + + + col1 FROM tab2
----
49
65
75

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

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

query I rowsort
SELECT col1 * 9 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) < ( col0 * col1 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT + 80 + + COUNT( * ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT + 80 + + COUNT ( * ) FROM tab2
----
83

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

query I rowsort
SELECT DISTINCT - col0 * 96 * - - col1 FROM tab0
----
-116640
-175392
-9312

query I rowsort
SELECT DISTINCT + + 12 * - - 88 + + col2 * + 7 FROM tab2 AS cor0
----
1217
1336
1462

query I rowsort
SELECT ALL + - 19 * + col0 - + - col1 AS col1 FROM tab1 cor0
----
-1610
-1682
-955

query I rowsort
SELECT + 38 * + 51 * + + col2 + col1 * 60 + - col1 FROM tab2 AS cor0
----
116357
47583
82063

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

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

query I rowsort
SELECT ALL - + col1 + col2 * + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-179010
-2121
-9802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * + 85 * col1 + - col1 col1 FROM tab0 AS cor0
----
117789
454329
5609

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 16 + + - 24 * col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5694
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 16 + + - 24 * col0 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5695
SELECT 27, col2 DIV - - 18 col2 FROM tab2 AS cor0
----
27
1
27
2
27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5695
SELECT 27, col2 / - - 18 col2 FROM tab2 AS cor0
----
27
1
27
2
27
3

query I rowsort
SELECT DISTINCT - col0 * - + 82 * ( col0 ) AS col0 FROM tab0
----
18450
620658
771538

query I rowsort
SELECT ALL + 10 AS col0 FROM tab0 WHERE NOT + 7 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5698
SELECT - MAX( DISTINCT - col1 ) + + CAST( NULL AS SIGNED ) * - 25 FROM tab0 WHERE NOT 81 <= ( + ( col1 ) ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT - MAX ( DISTINCT - col1 ) + + CAST ( NULL AS INTEGER ) * - 25 FROM tab0 WHERE NOT 81 <= ( + ( col1 ) ) * - 77
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 23 NOT BETWEEN col1 - 1 AND - 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + - 60 FROM tab1
----
-3060
-5100
-5460

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

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

query I rowsort
SELECT ( 67 ) AS col0 FROM tab0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT COUNT( * ) * 95 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT COUNT ( * ) * 95 FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1 - col1 * col0
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1 - col1 * col0
----
0

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

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

query III rowsort
SELECT * FROM tab2 WHERE 39 IS NOT NULL AND ( col1 + - 66 * col1 ) BETWEEN + 35 * - 26 AND + col1 * + col1
----

query I rowsort
SELECT ALL + 47 * - col0 AS col2 FROM tab1
----
-2397
-3995
-4277

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 49 / - 87 * + col1 + col0 * - col2 + 37 / col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT ALL + - col0 * 89 AS col1 FROM tab2 AS cor0
----
-4094
-5696
-6675

query I rowsort
SELECT DISTINCT + 98 FROM tab0 WHERE NOT - 87 IS NULL
----
98

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 = + col0 / 6 * + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5716
SELECT DISTINCT ( 59 ) DIV + - 19 AS col1, + 86 + + - MAX( DISTINCT + col2 ) DIV MIN( DISTINCT col1 * col0 ) FROM tab0
----
-3
85

skipif mysql # not compatible
query II rowsort label-5716
SELECT DISTINCT ( 59 ) / + - 19 AS col1, + 86 + + - MAX ( DISTINCT + col2 ) / MIN ( DISTINCT col1 * col0 ) FROM tab0
----
-3
85

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 12 col2 FROM tab2
----
-11
-28
-46

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> ( 27 * - - ( - + 7 ) )
----

query I rowsort
SELECT - 79 * + 26 FROM tab0 cor0
----
-2054
-2054
-2054

query I rowsort
SELECT + 60 * - - col1 FROM tab0
----
1260
4860
60

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

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

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

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

query I rowsort
SELECT col2 + + + col1 AS col0 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL - col2 * col1 * - + col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - - 25 * 23 )
----

query I rowsort
SELECT 10 * + ( - col1 ) AS col2 FROM tab0 WHERE NULL IN ( col2 + - + 23 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 13 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 57 + - ( col2 ) ) BETWEEN ( + col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5733
SELECT - MIN( - - col0 ) AS col2, - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-5733
SELECT - MIN ( - - col0 ) AS col2, - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
3

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 88 / + 70 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT + 51 / - col1 * 56 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 12 * - - 97 FROM tab0 AS cor0
----
1164
1164
1164

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

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

query I rowsort
SELECT ALL 16 * + 7 * - col0 AS col2 FROM tab0
----
-10864
-1680
-9744

query I rowsort
SELECT ALL col2 * + - col2 AS col1 FROM tab1
----
-3481
-4624
-9216

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

query II rowsort
SELECT DISTINCT + col1, 85 FROM tab0
----
1
85
21
85
81
85

query II rowsort
SELECT DISTINCT + 21 AS col2, - col1 + col1 FROM tab1
----
21
0

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - col2 AND - col1
----

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

query I rowsort
SELECT ALL - 32 * - col2 * - col2 - + col0 FROM tab0 AS cor0
----
-313729
-3287
-70703

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

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

query I rowsort
SELECT DISTINCT + ( - + col1 ) + + + col0 + + + ( + 6 ) AS col1 FROM tab2
----
-7
1
14

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 46 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL + MIN( 2 ) FROM tab0, tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + MIN ( 2 ) FROM tab0, tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT col0 * col0 + + 72 FROM tab1
----
2673
7297
8353

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

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

query I rowsort
SELECT ALL col1 + - 70 AS col0 FROM tab2 AS cor0
----
-19
-3
7

query I rowsort
SELECT ALL - + col0 * - - col2 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

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

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

query I rowsort
SELECT + 45 + 56 FROM tab2 AS cor0
----
101
101
101

query I rowsort
SELECT ALL - col0 * - 92 FROM tab2
----
4232
5888
6900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL CAST( 53 AS SIGNED ) + - 91 FROM tab0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL CAST ( 53 AS INTEGER ) + - 91 FROM tab0
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT - col1 DIV + - 8 FROM tab1
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT - col1 / + - 8 FROM tab1
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - COUNT( * ) + - 43 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-5764
SELECT - COUNT ( * ) + - 43 FROM tab0
----
-46

query I rowsort
SELECT ALL 75 + col2 * + - col2 * - col0 * - - col0 AS col2 FROM tab2
----
1119439
18922575
6553675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col0 ) + + 17 col0, 90 FROM tab0
----
-70
90
-80
90
2
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT ALL col0 DIV - 39 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL col0 / - 39 FROM tab0
----
-2
-2
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT ALL - 92 DIV - - COUNT( - - col1 ) + + + COUNT( * ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - 92 / - - COUNT ( - - col1 ) + + + COUNT ( * ) AS col1 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL + + MAX( + 96 ) - - 65 FROM tab0 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + + MAX ( + 96 ) - - 65 FROM tab0 AS cor0
----
161

query I rowsort
SELECT ALL - - 6 FROM tab1 AS cor0 WHERE - 21 BETWEEN - col0 * - col0 + - ( + + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ( COUNT( DISTINCT + col0 ) ) AS col2 FROM tab2 cor0 WHERE 47 NOT IN ( + ( + col2 ) + + ( - - col0 ) * - - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5772
SELECT ( COUNT ( DISTINCT + col0 ) ) AS col2 FROM tab2 cor0 WHERE 47 NOT IN ( + ( + col2 ) + + ( - - col0 ) * - - col2 )
----
3

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

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

query I rowsort
SELECT + 22 * - + col2 + col2 + 97 AS col0 FROM tab1
----
-1142
-1331
-1919

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + - col2 / + 22 AND ( + - col1 + - + col0 + col0 + col2 * - col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT - + 25 AS col0 FROM tab2 AS cor0
----
-25

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

query I rowsort
SELECT ALL col1 * + col1 FROM tab1 AS cor0 WHERE 57 BETWEEN + + 87 * col2 AND NULL
----

query I rowsort
SELECT ALL + ( - + 21 ) * - col1 AS col1 FROM tab1 AS cor0
----
105
294
987

query III rowsort
SELECT ALL * FROM tab2 WHERE - + ( col2 ) / - 57 BETWEEN col2 / - col2 + + - col2 - + col0 AND + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT 98 - - 57 * MAX( + col2 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT 98 - - 57 * MAX ( + col2 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

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

query I rowsort
SELECT 30 * col2 * + col0 + - col0 AS col2 FROM tab1 cor0
----
146829
150365
185549

query I rowsort
SELECT DISTINCT + 91 * - col1 - 18 + + col0 FROM tab0 AS cor0
----
-12
-1842
-7374

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5790
SELECT DISTINCT MIN( ALL + 15 ) DIV - - SUM( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT MIN ( ALL + 15 ) / - - SUM ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT + - 71 * + CAST( NULL AS SIGNED ) + + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + - 71 * + CAST ( NULL AS INTEGER ) + + 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - 94 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
94
94
94

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 NOT IN ( + + col2, + 36 * col1 / - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + SUM( ALL + + 64 ) AS col1 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + SUM ( ALL + + 64 ) AS col1 FROM tab2
----
192

query I rowsort
SELECT DISTINCT + col2 + - - col1 * + 22 AS col2 FROM tab0
----
121
1829
472

query I rowsort
SELECT + 38 + + - col2 * + col0 * - col0 FROM tab1
----
249734
426313
563146

query I rowsort
SELECT ALL - ( + col2 ) + - 90 FROM tab0 AS cor0
----
-100
-137
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT 68 - - + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT 68 - - + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL 76 - 66 FROM tab2 AS cor0
----
10
10
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT - MAX( DISTINCT - 44 ) AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT - MAX ( DISTINCT - 44 ) AS col0 FROM tab0
----
44

query I rowsort
SELECT + col0 * + - col2 * + - 4 AS col1 FROM tab0 AS cor0
----
2820
3480
38412

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5808
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT IN ( + col2 + - 33 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-5808
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( + col2 + - 33 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL + SUM( + 98 ) AS col1 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL + SUM ( + 98 ) AS col1 FROM tab1
----
294

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col0 AS col2, + 73 AS col0, - col0 * + col1 col1 FROM tab1
----
9 values hashing to 1a22a63dc90a24b875f91bcde1d924ca

query I rowsort
SELECT col1 * - - col1 + + col0 AS col0 FROM tab2
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT COUNT( * ) + + 34 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-5813
SELECT COUNT ( * ) + + 34 FROM tab0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT col0 * - col2 + + CAST( - col1 AS SIGNED ) * + col0 + + + ( - col1 ) col0 FROM tab1
----
-10512
-5445
-5624

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5814
SELECT DISTINCT col0 * - col2 + + CAST ( - col1 AS INTEGER ) * + col0 + + + ( - col1 ) col0 FROM tab1
----
-10512
-5445
-5624

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL + 82 + - - COUNT( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + 82 + - - COUNT ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
85

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5817
SELECT col2 DIV 52 DIV + col2 * + - 29 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT col2 / 52 / + col2 * + - 29 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT COUNT( 55 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5818
SELECT COUNT ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND ( NOT NULL < + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL - MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * - 65 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * - 65 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT + + 66 * - - 99 + + COUNT( * ) FROM tab1 AS cor0
----
6537

skipif mysql # not compatible
query I rowsort label-5821
SELECT + + 66 * - - 99 + + COUNT ( * ) FROM tab1 AS cor0
----
6537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT 82 * + col0 / 73 + - CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT 82 * + col0 / 73 + - CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT 97 + + COUNT( * ) FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT 97 + + COUNT ( * ) FROM tab2
----
100

query I rowsort
SELECT 76 * - col1 * + col0 * - col0 AS col2 FROM tab0
----
12080124
1385100
715084

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

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

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

query I rowsort
SELECT ALL - col1 + + 77 AS col2 FROM tab0
----
-4
56
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT - col1 DIV + 11 FROM tab1 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT - col1 / + 11 FROM tab1 cor0
----
-1
-4
0

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

query I rowsort
SELECT - 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT + 77 * col0 * ( + col0 ) * col1 + + + 45 + - + 76 FROM tab1 AS cor0
----
2781594
2803847
29968908

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - - MIN( ALL + col2 ) * 36 AS col0 FROM tab0 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - - MIN ( ALL + col2 ) * 36 AS col0 FROM tab0 AS cor0
----
360

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col2 FROM tab2 AS cor0 WHERE - col2 < + col1
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5839
SELECT - 39, + SUM( + col0 ) - + ( + COUNT( * ) ) DIV + - ( + SUM( col1 ) ) col2 FROM tab1
----
-39
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5839
SELECT - 39, + SUM ( + col0 ) - + ( + COUNT ( * ) ) / + - ( + SUM ( col1 ) ) col2 FROM tab1
----
-39
227

query I rowsort
SELECT DISTINCT 39 * + col2 + + + col1 + 32 + 81 FROM tab1
----
2419
2812
3871

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

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + - 56 * + 90
----

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

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

query I rowsort
SELECT DISTINCT - col1 * 85 - + col2 + + col0 FROM tab1 AS cor0
----
-1235
-3972
-399

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5847
SELECT ( - - CAST( - col1 AS SIGNED ) ) + + + col1 DIV col0 DIV - 14 + - 67 FROM tab2 AS cor0
----
-118
-134
-144

skipif mysql # not compatible
query I rowsort label-5847
SELECT ( - - CAST ( - col1 AS INTEGER ) ) + + + col1 / col0 / - 14 + - 67 FROM tab2 AS cor0
----
-118
-134
-144

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

query I rowsort
SELECT DISTINCT 79 + + + 57 AS col2 FROM tab1
----
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col0 col0 FROM tab2
----
-51
46
-67
75
-77
64

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

query II rowsort
SELECT DISTINCT - col0 + - col2 * + col0 + - 88, + col1 - - 20 AS col2 FROM tab0 AS cor0
----
-1045
41
-808
101
-9788
21

query II rowsort
SELECT + + ( col0 ), + 33 AS col2 FROM tab0 cor0
----
15
33
87
33
97
33

query I rowsort
SELECT + 83 + 50 FROM tab0 AS cor0 WHERE + col2 * ( - - col2 ) IS NOT NULL
----
133
133
133

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

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

query I rowsort
SELECT ALL + col0 * - - col0 - - + col1 AS col2 FROM tab1
----
2615
7230
8328

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL + COUNT( 46 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL + COUNT ( 46 ) FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-5859
SELECT ( ( COUNT ( * ) ) ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT col0 DIV ( + + 78 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT col0 / ( + + 78 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + 31 * + col0 FROM tab0
----
2697
3007
465

query I rowsort
SELECT DISTINCT 9 * 49 FROM tab2 AS cor0
----
441

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5864
SELECT + 21 DIV + 30 * + + col0 + + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5864
SELECT + 21 / + 30 * + + col0 + + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT - SUM( ALL + 82 ) AS col1 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-5865
SELECT - SUM ( ALL + 82 ) AS col1 FROM tab0
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT ALL 85 DIV - col1 AS col1 FROM tab0
----
-1
-4
-85

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL 85 / - col1 AS col1 FROM tab0
----
-1
-4
-85

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

query I rowsort
SELECT col2 * - + 82 FROM tab0 AS cor0
----
-3854
-8118
-820

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT - COUNT( * ) + + + 17 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5873
SELECT - COUNT ( * ) + + + 17 FROM tab0
----
14

query I rowsort
SELECT DISTINCT col2 + - 8 AS col0 FROM tab2
----
15
32
50

query I rowsort
SELECT + col1 + - - ( + 84 ) AS col1 FROM tab2
----
135
151
161

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL 16 + COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL 16 + COUNT ( * ) FROM tab1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT + ( + col1 ) DIV - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + ( + col1 ) / - col2 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL SUM( ALL + 91 ) + 12 AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL SUM ( ALL + 91 ) + 12 AS col2 FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT + COUNT( * ), + COUNT( * ) col1 FROM tab2, tab1 AS cor0
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5879
SELECT + COUNT ( * ), + COUNT ( * ) col1 FROM tab2, tab1 AS cor0
----
9
9

query I rowsort
SELECT ALL - - col0 * + 57 * + + col1 + - + 70 - + col2 AS col0 FROM tab0 AS cor0
----
104059
5360
69138

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5883
SELECT ALL + MIN( DISTINCT - 35 ) DIV + ( + 69 ) + - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + MIN ( DISTINCT - 35 ) / + ( + 69 ) + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

query II rowsort
SELECT DISTINCT + + col2 - + col0 + 11, col0 FROM tab1 AS cor0
----
-12
91
-15
85
56
51

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

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

query I rowsort
SELECT ALL col1 - - col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL col0 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
210
7482
9312

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL IN ( + + col2 * - col1, + col0, + - col2 ) )
----

query I rowsort
SELECT DISTINCT - 86 - - + col1 * 67 FROM tab1 AS cor0
----
249
3063
852

query II rowsort
SELECT DISTINCT + col0 * - - col1 * + ( + - col2 ) - 29 AS col2, + 21 FROM tab2 AS cor0
----
-197149
21
-291479
21
-53987
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN 94 AND NULL
----

query I rowsort
SELECT + 36 AS col0 FROM tab2 WHERE NULL <> - 63 * - col2
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5898
SELECT DISTINCT - 73, + 17 DIV col1 - + col2 DIV - - col1 + + 10 AS col0 FROM tab2 AS cor0
----
-73
10

skipif mysql # not compatible
query II rowsort label-5898
SELECT DISTINCT - 73, + 17 / col1 - + col2 / - - col1 + + 10 AS col0 FROM tab2 AS cor0
----
-73
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5899
SELECT + CAST( - - 33 AS SIGNED ) DIV + - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT + CAST ( - - 33 AS INTEGER ) / + - col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 43 + - ( + col1 ) + + col1 / 5 < - col1
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * 42 AS col1 FROM tab1
----
-1974
-210
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL CAST( NULL AS SIGNED ) * - 56 + + - COUNT( * ) - + COUNT( * ) AS col2 FROM tab0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-5909
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 38 + - - col2 FROM tab2
----
61
78
96

query I rowsort
SELECT 82 + - 1 FROM tab0 AS cor0
----
81
81
81

query II rowsort
SELECT - - col1 + ( col1 ), 94 * + - col2 AS col1 FROM tab2 AS cor0
----
102
-2162
134
-5452
154
-3760

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

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

query I rowsort
SELECT 33 + + col1 FROM tab1 cor0
----
38
47
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT DISTINCT - col1 + + + col2 * - col0 * - - col2 DIV - - col2 FROM tab0
----
-786
-891
-9604

skipif mysql # not compatible
query I rowsort label-5917
SELECT DISTINCT - col1 + + + col2 * - col0 * - - col2 / - - col2 FROM tab0
----
-786
-891
-9604

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5918
SELECT - col2 - col2 / col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - col2 + + - CAST( + + col2 AS SIGNED ) = + col2 * + col2
----

skipif mysql # not compatible
query II rowsort label-5918
SELECT - col2 - col2 / col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - col2 + + - CAST ( + + col2 AS INTEGER ) = + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL - 59 + + MIN( ALL - - 72 ) AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL - 59 + + MIN ( ALL - - 72 ) AS col2 FROM tab2
----
13

query I rowsort
SELECT DISTINCT - + col2 + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-116
-46
-80

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

query I rowsort
SELECT col1 * + - ( - col0 ) FROM tab0 AS cor0
----
1215
1827
97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT DISTINCT - 77 + + COUNT( * ) DIV + 23 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - 77 + + COUNT ( * ) / + 23 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col2 * + col2 - 47 FROM tab0 AS cor0
----
2162
53
9754

query I rowsort
SELECT 12 * - col0 AS col0 FROM tab1
----
-1020
-1092
-612

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

query I rowsort
SELECT 30 * 18 FROM tab2
----
540
540
540

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

query I rowsort
SELECT col2 * + 75 AS col0 FROM tab0
----
3525
7425
750

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + + 21 > col1 + + col2 + - - 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL - 6 + MIN( ALL + + col1 ) + + MAX( - col1 ) col2 FROM tab2 AS cor0 WHERE NOT 80 IS NULL
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5933
SELECT ALL - 6 + MIN ( ALL + + col1 ) + + MAX ( - col1 ) col2 FROM tab2 AS cor0 WHERE NOT 80 IS NULL
----
-6

query I rowsort
SELECT col1 + + col1 + + col1 + col1 * - - 83 + 3 FROM tab0 WHERE NOT col2 * - col0 < - - ( - 48 )
----

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

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

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

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

query I rowsort
SELECT ALL + col2 * + + 13 FROM tab2 AS cor0
----
299
520
754

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 IN ( + - col1 + - col2 + - + 6 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 60 * col2 + - col0 - + + 81 AS col1 FROM tab0 cor0
----
2724
432
5762

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - + 17 NOT BETWEEN + + 4 AND + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * col1 + 43 AS col0 FROM tab0
----
44
484
6604

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT DISTINCT col2 DIV + + col0 + - 50 AS col2 FROM tab1
----
-49
-50

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT col2 / + + col0 + - 50 AS col2 FROM tab1
----
-49
-50

query I rowsort
SELECT 51 + col0 - col1 * col1 + - - 58 * - col0 * col1 FROM tab2
----
-138572
-291638
-295813

query II rowsort
SELECT ALL + col2 + - - 15 AS col1, 2 * ( 74 ) FROM tab0
----
114
148
25
148
62
148

query I rowsort
SELECT DISTINCT 22 + 37 * + 76 * + col0 AS col1 FROM tab0
----
244666
272786
42202

query I rowsort
SELECT DISTINCT - 96 + + - 14 AS col1 FROM tab1 cor0 WHERE NOT col2 - + col1 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 + + 70 - + - col2 * col2 FROM tab1 AS cor0
----
1498
3256
7942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * 53, - 23 col1 FROM tab2 AS cor0
----
-2703
-23
-3551
-23
-4081
-23

query II rowsort
SELECT ALL + col1 AS col0, + col1 + + 80 AS col2 FROM tab0
----
1
81
21
101
81
161

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT 88 AS col0, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
88
9

skipif mysql # not compatible
query II rowsort label-5952
SELECT 88 AS col0, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
88
9

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

skipif mysql # not compatible
query I rowsort label-5953
SELECT ( COUNT ( - col1 ) ) + COUNT ( * ) FROM tab0
----
6

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

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT ( + COUNT ( ALL 30 ) ) FROM tab2
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, 11 FROM tab0 cor0
----
1
11
21
11
81
11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT + 86 * + - 15 AS col0 FROM tab1 cor0
----
-1290

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

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

query I rowsort
SELECT col0 * + + 34 - + ( + col1 ) AS col0 FROM tab0 AS cor0
----
2937
3297
429

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

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

query I rowsort
SELECT ALL col2 * + - 50 AS col2 FROM tab2
----
-1150
-2000
-2900

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

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

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

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

query I rowsort
SELECT col2 * + 95 * col0 FROM tab1
----
465120
476425
587860

query II rowsort
SELECT ALL + + col2 AS col1, col0 AS col2 FROM tab2 WHERE NOT + 29 IS NULL
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ALL MAX( - col1 ) * - 91 FROM tab2
----
4641

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL MAX ( - col1 ) * - 91 FROM tab2
----
4641

onlyif mysql # DIV for integer division: 
query II rowsort label-5970
SELECT ALL - 15 DIV - col1 AS col1, col0 DIV col0 AS col0 FROM tab1
----
0
1
1
1
3
1

skipif mysql # not compatible
query II rowsort label-5970
SELECT ALL - 15 / - col1 AS col1, col0 / col0 AS col0 FROM tab1
----
0
1
1
1
3
1

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

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

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

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT + 1 * + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
18

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

query I rowsort
SELECT DISTINCT - + 76 + - 37 AS col0 FROM tab2 AS cor0
----
-113

query I rowsort
SELECT DISTINCT 87 + + + col0 AS col1 FROM tab1 AS cor0
----
138
172
178

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5976
SELECT * FROM tab2 AS cor0 WHERE CAST( + col1 AS DECIMAL ) * + 6 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5976
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col1 AS REAL ) * + 6 IS NULL
----

query I rowsort
SELECT col1 * - col2 * + - ( - col1 ) * 27 FROM tab1 AS cor0
----
-39825
-4055724
-508032

query I rowsort
SELECT 89 * + col1 - + 15 AS col2 FROM tab2 AS cor0
----
4524
5948
6838

query I rowsort
SELECT DISTINCT 84 FROM tab2 cor0 WHERE NOT 49 * - + 57 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
18

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col0 col1 FROM tab2
----
2300
4864
4950

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col2 - col2 IS NULL
----

query I rowsort
SELECT ALL col1 * col0 - col0 AS col2 FROM tab2 AS cor0
----
2300
4864
4950

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT ALL 23 - - COUNT( * ) AS col2, - 31 AS col2 FROM tab0 AS cor0
----
26
-31

skipif mysql # not compatible
query II rowsort label-5987
SELECT ALL 23 - - COUNT ( * ) AS col2, - 31 AS col2 FROM tab0 AS cor0
----
26
-31

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

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

skipif mysql # not compatible
query I rowsort label-5989
SELECT - MAX ( ALL - - ( - col0 ) ) AS col1 FROM tab2
----
46

query II rowsort
SELECT DISTINCT - col0 * 65 AS col1, - col1 AS col2 FROM tab1
----
-3315
-14
-5525
-5
-5915
-47

query I rowsort
SELECT ALL ( - 8 ) * col1 FROM tab0
----
-168
-648
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * 85 AS col0, 91 col2 FROM tab2
----
4335
91
5695
91
6545
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT DISTINCT + 39 * MIN( - col0 ) AS col0 FROM tab2
----
-2925

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT + 39 * MIN ( - col0 ) AS col0 FROM tab2
----
-2925

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5994
SELECT ALL + 52 DIV CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + 52 / CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 92 * + - col0 AS col1, + 63 col0 FROM tab1 AS cor0
----
-4692
63
-7820
63
-8372
63

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

query I rowsort
SELECT - ( - - 32 ) AS col1 FROM tab2 AS cor0
----
-32
-32
-32

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-59
-68
-96

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

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

skipif mysql # not compatible
query I rowsort label-6002
SELECT MIN ( ALL - - 15 ) AS col0 FROM tab1
----
15

query II rowsort
SELECT DISTINCT - 63, + col0 * + 90 + - 29 AS col1 FROM tab2
----
-63
4111
-63
5731
-63
6721

query I rowsort
SELECT DISTINCT + col0 * - 54 * + + 20 FROM tab1
----
-55080
-91800
-98280

query I rowsort
SELECT - 79 * - + col2 AS col0 FROM tab1
----
4661
5372
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 36 col2 FROM tab1
----
2124
2448
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 WHERE + 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT - MIN( ALL 53 ) * - COUNT( * ) AS col2, - 11 FROM tab2 AS cor0
----
159
-11

skipif mysql # not compatible
query II rowsort label-6008
SELECT - MIN ( ALL 53 ) * - COUNT ( * ) AS col2, - 11 FROM tab2 AS cor0
----
159
-11

query I rowsort
SELECT DISTINCT + 15 * + col1 + - 45 FROM tab0 AS cor0 WHERE NOT - col0 * - ( - col2 ) IS NULL
----
-30
1170
270

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT + 26 / + + 74 / + col2 IS NULL
----
23
40
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT - AVG ( ALL - 65 ) * - ( + 16 ) * ( - + 58 ) FROM tab2 WHERE NULL BETWEEN NULL AND - ( + col1 ) * + - col2 / - - CAST( - + col1 AS SIGNED ) - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT - AVG ( ALL - 65 ) * - ( + 16 ) * ( - + 58 ) FROM tab2 WHERE NULL BETWEEN NULL AND - ( + col1 ) * + - col2 / - - CAST ( - + col1 AS INTEGER ) - + col2
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-14
-47
-5

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

skipif mysql # not compatible
query III rowsort label-6014
SELECT * FROM tab2 AS cor0 WHERE CAST ( + 53 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 68 * - ( ( + + 99 ) ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT - 16 + - 45 * + col1 + + col1 AS col0 FROM tab2
----
-2260
-2964
-3404

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6021
SELECT COUNT ( * ) col2, - ( + 89 ) col2 FROM tab2
----
3
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6022
SELECT ALL - 69 / CAST( NULL AS DECIMAL ) + 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL - 69 / CAST ( NULL AS REAL ) + 61 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6023
SELECT - COUNT( * ) DIV + + CAST( + 26 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT - COUNT ( * ) / + + CAST ( + 26 AS INTEGER ) FROM tab0
----
0

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

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

query I rowsort
SELECT ALL + 41 * col0 - + ( col2 ) AS col0 FROM tab2 AS cor0
----
1863
2584
3017

query I rowsort
SELECT DISTINCT + col1 - - 26 FROM tab2 AS cor0
----
103
77
93

query I rowsort
SELECT ALL - + 23 - + 66 AS col0 FROM tab2 cor0
----
-89
-89
-89

query I rowsort
SELECT col0 * 87 AS col2 FROM tab2 AS cor0
----
4002
5568
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL + MAX( DISTINCT - + 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL + MAX ( DISTINCT - + 40 ) FROM tab0
----
-40

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6033
SELECT + col0 col0, + CAST ( + 73 AS INTEGER ) FROM tab2 AS cor0
----
46
73
64
73
75
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * col1 * 89 - + ( + col0 ) col0 FROM tab2 AS cor0
----
-417634
-548671
-630540

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

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

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

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

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

query I rowsort
SELECT ALL col2 + - col2 - + + 62 FROM tab1
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6039
SELECT ALL - 61 * ( CAST( col0 AS SIGNED ) ) AS col0 FROM tab0
----
-5307
-5917
-915

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - 61 * ( CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0
----
-5307
-5917
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT DISTINCT + COUNT( * ) * - 67 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT + COUNT ( * ) * - 67 FROM tab2 AS cor0
----
-201

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT 70 + col2 DIV - col1 FROM tab1 AS cor0
----
59
64
69

skipif mysql # not compatible
query I rowsort label-6042
SELECT 70 + col2 / - col1 FROM tab1 AS cor0
----
59
64
69

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

query I rowsort
SELECT ALL - 27 + - 91 FROM tab1 cor0
----
-118
-118
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6045
SELECT + - col2 * + CAST( - + 45 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2655
3060
4320

skipif mysql # not compatible
query I rowsort label-6045
SELECT + - col2 * + CAST ( - + 45 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2655
3060
4320

onlyif mysql # DIV for integer division: 
query II rowsort label-6046
SELECT DISTINCT + col1 col0, 5 DIV - + 79 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6046
SELECT DISTINCT + col1 col0, 5 / - + 79 FROM tab2 AS cor0
----
51
0
67
0
77
0

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

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

query I rowsort
SELECT - - ( - 62 ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT DISTINCT 25 DIV + + 92 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT 25 / + + 92 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT ALL - 62 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-62
-62
-62

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

skipif mysql # not compatible
query I rowsort label-6052
SELECT + CAST ( col0 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 79 + - + col2 AS col1 FROM tab1
----
-17
11
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6054
SELECT DISTINCT + 22 DIV - + 45 + + col1 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + 22 / - + 45 + + col1 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + 33 + - col2 FROM tab0
----
-14
-66
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT + 47 AS col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) <> + col2 / - 36 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6056
SELECT + 47 AS col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <> + col2 / - 36 / CAST ( NULL AS INTEGER )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - col1 ) IS NULL OR NOT NULL BETWEEN - + 3 * col1 AND NULL
----

query I rowsort
SELECT + - col0 * + - ( - - 20 ) * + 19 + + 31 FROM tab2 cor0
----
17511
24351
28531

query I rowsort
SELECT DISTINCT + - 46 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL + MIN( - - col0 ) * - COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + MIN ( - - col0 ) * - COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT - 86 * - col2 AS col0 FROM tab0
----
4042
8514
860

query I rowsort
SELECT DISTINCT col2 * - 60 FROM tab2
----
-1380
-2400
-3480

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

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

query II rowsort
SELECT DISTINCT - col2, - col2 AS col2 FROM tab2 WHERE + col0 BETWEEN - col2 AND - - col0
----
-23
-23
-40
-40
-58
-58

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6069
SELECT 60 + - + SUM( ALL + - col1 ) - - COUNT( * ) DIV + - 35 AS col2 FROM tab0
----
163

skipif mysql # not compatible
query I rowsort label-6069
SELECT 60 + - + SUM ( ALL + - col1 ) - - COUNT ( * ) / + - 35 AS col2 FROM tab0
----
163

query III rowsort
SELECT ALL * FROM tab2 WHERE 39 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 50 + + + col2 + + + col0 AS col1 FROM tab0
----
112
147
246

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT + 51 + - SUM( + col2 ) + - 37 * - - COUNT( * ) AS col1 FROM tab2
----
-181

skipif mysql # not compatible
query I rowsort label-6072
SELECT + 51 + - SUM ( + col2 ) + - 37 * - - COUNT ( * ) AS col1 FROM tab2
----
-181

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND 30
----

query I rowsort
SELECT ALL 75 * - + 31 AS col1 FROM tab0 AS cor0
----
-2325
-2325
-2325

onlyif mysql # DIV for integer division: 
query I rowsort label-6075
SELECT 14 DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6075
SELECT 14 / - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 * col2 - + - ( - - col2 ) FROM tab0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT col1 - - ( - col1 ) AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE + col1 NOT IN ( + col0 )
----
59
68
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 + - 21 col0 FROM tab0 cor0
----
-19
-98
11

query I rowsort
SELECT ALL + col0 - + col1 * - + col2 + + - 0 + 95 AS col2 FROM tab2 AS cor0
----
1314
3239
4056

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

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

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + 77 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL - MIN( ALL + - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - MIN ( ALL + - col1 ) AS col2 FROM tab1
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL - 56 * - - MAX( - col0 ) + COUNT( * ) FROM tab0 cor0
----
843

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - 56 * - - MAX ( - col0 ) + COUNT ( * ) FROM tab0 cor0
----
843

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

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

query II rowsort
SELECT DISTINCT 24, col1 AS col0 FROM tab1 AS cor0
----
24
14
24
47
24
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT ALL - - 83 * - SUM( ALL + col0 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-16517
3

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL - - 83 * - SUM ( ALL + col0 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-16517
3

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 + 98 ) NOT IN ( + 87 * + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab1 WHERE NOT ( - 70 ) IN ( col0 )
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT - 9 * + MIN( DISTINCT - col0 * CAST( NULL AS SIGNED ) ) FROM tab1 WHERE col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT - 9 * + MIN ( DISTINCT - col0 * CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL 93 + - col0 * col1 AS col0 FROM tab2 WHERE NOT + 54 BETWEEN ( NULL ) AND col1
----
-2253

query I rowsort
SELECT 27 * col1 - col0 FROM tab0
----
-70
2172
480

query I rowsort
SELECT DISTINCT + col0 * + col1 + - col1 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6104
SELECT DISTINCT * FROM tab0 WHERE col0 <> CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6104
SELECT DISTINCT * FROM tab0 WHERE col0 <> CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL - SUM( DISTINCT + 85 ) + - COUNT( * ) AS col0 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL - SUM ( DISTINCT + 85 ) + - COUNT ( * ) AS col0 FROM tab0
----
-88

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

query I rowsort
SELECT - ( - col2 ) FROM tab1 WHERE NOT - 19 - + col2 / 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - 25 + COUNT( * ) AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
-22

skipif mysql # not compatible
query I rowsort label-6108
SELECT - 25 + COUNT ( * ) AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6109
SELECT + MAX( CAST( - col0 AS SIGNED ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6109
SELECT + MAX ( CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-15

query I rowsort
SELECT ALL 49 * - col1 - col0 FROM tab2
----
-2545
-3358
-3837

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) <= - 29
----

query I rowsort
SELECT DISTINCT 27 + col2 * + col1 FROM tab1
----
1371
322
3223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6114
SELECT ALL * FROM tab1 WHERE ( col0 ) IN ( col0 - CAST( col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6114
SELECT ALL * FROM tab1 WHERE ( col0 ) IN ( col0 - CAST ( col2 AS REAL ) )
----

query I rowsort
SELECT + 23 AS col1 FROM tab2 WHERE NOT col1 >= - 97
----

query I rowsort
SELECT DISTINCT + col2 + - col0 * - 57 FROM tab0
----
4969
5628
902

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > - col2 / ( - 46 )
----

query I rowsort
SELECT ALL - col2 * 47 AS col1 FROM tab1
----
-2773
-3196
-4512

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

query I rowsort
SELECT DISTINCT - 14 * col2 AS col1 FROM tab1
----
-1344
-826
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT MIN( - 8 ) * - COUNT( * ) + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-6121
SELECT MIN ( - 8 ) * - COUNT ( * ) + COUNT ( * ) FROM tab2
----
27

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT 40 * COUNT( DISTINCT 11 ) + 5 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6125
SELECT 40 * COUNT ( DISTINCT 11 ) + 5 FROM tab1
----
45

query III rowsort
SELECT * FROM tab0 WHERE - col1 <= ( NULL )
----

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

query I rowsort
SELECT ALL + + ( 92 ) - 58 * col2 FROM tab0 AS cor0
----
-2634
-488
-5650

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE 11 BETWEEN NULL AND + CAST( + 10 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE 11 BETWEEN NULL AND + CAST ( + 10 AS INTEGER )
----

query I rowsort
SELECT - 89 - 11 FROM tab2 AS cor0
----
-100
-100
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT - MIN( DISTINCT col2 ) - 15 AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6132
SELECT - MIN ( DISTINCT col2 ) - 15 AS col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - + 87 - 22 AS col2 FROM tab2 AS cor0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT ALL + col1 - 6 DIV - 65 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + col1 - 6 / - 65 AS col1 FROM tab1 AS cor0
----
14
47
5

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

query I rowsort
SELECT + + col1 - - 34 AS col0 FROM tab1 cor0
----
39
48
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT + MIN( col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6138
SELECT + MIN ( col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col1 * 97
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL - COUNT( - col0 ) * 69 AS col1 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - COUNT ( - col0 ) * 69 AS col1 FROM tab1
----
-207

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

query I rowsort
SELECT ALL + 71 * + + col1 * + col1 AS col0 FROM tab0
----
31311
465831
71

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

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

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

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

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

query I rowsort
SELECT - col2 * - col0 * - 29 FROM tab0 AS cor0
----
-20445
-25230
-278487

query I rowsort
SELECT + 98 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
119
179
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN + 80 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN + 80 AND - col2
----
0

query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab0, tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT COUNT( * ) + 17 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-6152
SELECT COUNT ( * ) + 17 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
26

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

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL MIN ( + + 62 ) AS col1 FROM tab0
----
62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT DISTINCT 80 DIV - 27 AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT 80 / - 27 AS col0 FROM tab2 AS cor0
----
-2

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 < - 41
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT ( + - 70 / + - 4 ) BETWEEN 52 + + 51 AND NULL
----
51
67
77

query I rowsort
SELECT 94 + + + 53 AS col2 FROM tab0
----
147
147
147

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - 7 ) NOT IN ( 3 * + col0 )
----

query I rowsort
SELECT col1 + + 12 AS col2 FROM tab2
----
63
79
89

query II rowsort
SELECT ALL + 32 + col0 AS col1, 7 AS col2 FROM tab0
----
119
7
129
7
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT 34 + 98 - - - CAST( NULL AS SIGNED ) * - 75 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT 34 + 98 - - - CAST ( NULL AS INTEGER ) * - 75 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 70 + - + col0 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + 23 * + + col1 ) IN ( - 38 )
----

query I rowsort
SELECT ( + col1 ) + - + col2 + - - ( col2 ) FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - col2 * col2 + + 60 AS col1 FROM tab2
----
-1540
-3304
-469

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

query I rowsort
SELECT 23 * col2 FROM tab1 AS cor0 WHERE - col1 * - + ( - 33 ) BETWEEN col1 - + ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL - - COUNT( ALL + ( - 88 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - - COUNT ( ALL + ( - 88 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - ( - 19 ) + 52 * + 28 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT ALL - 43 / - MAX( col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col1 * - - col2 * col1 + CAST( NULL AS SIGNED ) ) AND col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - 24 * MIN( ALL + col0 + - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - 24 * MIN ( ALL + col0 + - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 < + col1
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

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

skipif mysql # not compatible
query I rowsort label-6178
SELECT - + COUNT ( + - CAST ( + 48 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL 65 + COUNT( * ) - + 79 AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL 65 + COUNT ( * ) - + 79 AS col1 FROM tab0
----
-11

query I rowsort
SELECT ALL + 16 * - 42 FROM tab1 WHERE NOT ( - col0 - + col2 ) IN ( col1 * col0 + - col0 )
----
-672
-672
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + MIN( - + col0 ) + 15 * + + 75 AS col1 FROM tab2
----
1050

skipif mysql # not compatible
query I rowsort label-6181
SELECT + MIN ( - + col0 ) + 15 * + + 75 AS col1 FROM tab2
----
1050

query I rowsort
SELECT - - 2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT DISTINCT + col2 * - col1 + col2 + + col2 + col2 DIV col2 AS col1 FROM tab2 AS cor0
----
-1126
-2999
-3769

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT + col2 * - col1 + col2 + + col2 + col2 / col2 AS col1 FROM tab2 AS cor0
----
-1126
-2999
-3769

query I rowsort
SELECT ALL + + col0 * + 50 * + - ( 29 ) AS col2 FROM tab0 AS cor0
----
-126150
-140650
-21750

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT + MAX( DISTINCT 45 ) * - 82 AS col0 FROM tab2
----
-3690

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + MAX ( DISTINCT 45 ) * - 82 AS col0 FROM tab2
----
-3690

query II rowsort
SELECT DISTINCT + col2 AS col2, + 1 - + col2 FROM tab0
----
10
-9
47
-46
99
-98

query I rowsort
SELECT 62 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 29 * + + col1 FROM tab1
----
1363
145
406

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT CAST( NULL AS SIGNED ) / col0 + + 34 AS col0 FROM tab2 WHERE NOT + col0 * col1 NOT BETWEEN col0 AND col1 * 12
----

skipif mysql # not compatible
query I rowsort label-6193
SELECT CAST ( NULL AS INTEGER ) / col0 + + 34 AS col0 FROM tab2 WHERE NOT + col0 * col1 NOT BETWEEN col0 AND col1 * 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT + COUNT( ALL + 83 ) * SUM( 0 ) AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND + + col1 / - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT + COUNT ( ALL + 83 ) * SUM ( 0 ) AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN NULL AND + + col1 / - 7 )
----
NULL

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

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 15 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( ( col0 ) ) * - 92 + - 52
----

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

query II rowsort
SELECT ALL col2 AS col2, col2 * - + col1 * + - 61 FROM tab0 AS cor0
----
10
12810
47
232227
99
6039

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT + 22 / + 65 + - - 48 + + ( 15 ) FROM tab0 AS cor0 WHERE col0 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6201
SELECT + 22 / + 65 + - - 48 + + ( 15 ) FROM tab0 AS cor0 WHERE col0 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - ( - col2 ) * + - 38 AS col0 FROM tab1 AS cor0
----
-2242
-2584
-3648

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT ALL - 48 + - col2 DIV - col1 * + col1 FROM tab0 AS cor0
----
-48
-48
51

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - 48 + - col2 / - col1 * + col1 FROM tab0 AS cor0
----
-48
-48
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 65 * + + col0 - + - col1 ) BETWEEN + col2 + + col1 / + col0 AND - col0
----

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

query I rowsort
SELECT - col2 * 51 FROM tab2 cor0
----
-1173
-2040
-2958

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT - 42 DIV - col2 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6207
SELECT - 42 / - col2 FROM tab0 cor0
----
0
0
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6208
SELECT COUNT( * ) DIV - - 2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6208
SELECT COUNT ( * ) / - - 2 AS col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + 4 * 20 FROM tab0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT ALL col0 + - 91 DIV - + 30 + + col2 AS col2 FROM tab2
----
107
136
72

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL col0 + - 91 / - + 30 + + col2 AS col2 FROM tab2
----
107
136
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6211
SELECT ALL * FROM tab1 WHERE NULL <> - - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6211
SELECT ALL * FROM tab1 WHERE NULL <> - - CAST ( col1 AS INTEGER )
----

query II rowsort
SELECT col0 AS col0, - col0 * + 14 + 89 + - 56 FROM tab2
----
46
-611
64
-863
75
-1017

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT ALL col2 + 54 DIV + col2 AS col2 FROM tab0
----
15
48
99

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL col2 + 54 / + col2 AS col2 FROM tab0
----
15
48
99

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

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

query I rowsort
SELECT - 75 + - col2 AS col1 FROM tab2
----
-115
-133
-98

query I rowsort
SELECT - ( + col2 ) + + 70 FROM tab2 cor0
----
12
30
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6219
SELECT - + MIN( DISTINCT + + 69 ) DIV + + 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-2

skipif mysql # not compatible
query I rowsort label-6219
SELECT - + MIN ( DISTINCT + + 69 ) / + + 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-2

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL >= NULL )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6223
SELECT - col2 DIV + ( + col2 ) + + col1, 12 AS col0 FROM tab0 AS cor0
----
0
12
20
12
80
12

skipif mysql # not compatible
query II rowsort label-6223
SELECT - col2 / + ( + col2 ) + + col1, 12 AS col0 FROM tab0 AS cor0
----
0
12
20
12
80
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT col0 * + - 56 * + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
2576
3584
4200

skipif mysql # not compatible
query I rowsort label-6224
SELECT col0 * + - 56 * + col1 / - col1 AS col2 FROM tab2 AS cor0
----
2576
3584
4200

query I rowsort
SELECT ALL 24 * + col1 AS col0 FROM tab0 AS cor0
----
1944
24
504

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - - 84 * - COUNT( * ) FROM tab2 cor0
----
-252

skipif mysql # not compatible
query I rowsort label-6232
SELECT - - 84 * - COUNT ( * ) FROM tab2 cor0
----
-252

query I rowsort
SELECT + - col0 * - col0 * + col2 * - col0 FROM tab2 AS cor0
----
-10485760
-2238728
-24468750

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * + + col2, col0 * 79, - col2, + col1 )
----

query I rowsort
SELECT ALL - + col2 * col2 + - col1 * 61 AS col0 FROM tab1 cor0
----
-10070
-3786
-7491

query II rowsort
SELECT 7 AS col0, col2 * col2 + + col1 AS col0 FROM tab0
----
7
121
7
2290
7
9802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND - + 29
----
-14
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT COUNT( * ) * + - 91 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT COUNT ( * ) * + - 91 FROM tab2
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 * + + 2 * + + col1 + - col0 col2 FROM tab1 AS cor0
----
-1971
-285
-611

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT - 41 DIV 35 + + 9 + + - 80 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-6242
SELECT - 41 / 35 + + 9 + + - 80 FROM tab0 AS cor0
----
-72
-72
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT + col1 * col0 DIV - col2 + col2 - col2 AS col0 FROM tab1 cor0
----
-62
-7
-7

skipif mysql # not compatible
query I rowsort label-6244
SELECT + col1 * col0 / - col2 + col2 - col2 AS col0 FROM tab1 cor0
----
-62
-7
-7

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

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

query II rowsort
SELECT col0 + - col1 AS col2, - ( - ( col2 ) ) AS col0 FROM tab1
----
37
96
44
68
80
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6247
SELECT + 32 + - CAST( NULL AS SIGNED ), - COUNT( * ) + 22 AS col0 FROM tab0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6247
SELECT + 32 + - CAST ( NULL AS INTEGER ), - COUNT ( * ) + 22 AS col0 FROM tab0
----
NULL
19

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT MAX( 92 ) + - COUNT( * ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT MAX ( 92 ) + - COUNT ( * ) FROM tab1
----
89

query I rowsort
SELECT DISTINCT + + AVG ( + - 85 ) * ( - 77 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col2 - + + col2 * col0 AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT + col1 + + + col2 DIV - 3 col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - - col2 AND 97 - - col0
----
-32
18
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6255
SELECT + col1 + + + col2 / - 3 col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - - col2 AND 97 - - col0
----
-32
18
66

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

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

query II rowsort
SELECT DISTINCT - - 21 AS col0, + 70 + + - col2 AS col0 FROM tab0 cor0
----
21
-29
21
23
21
60

query I rowsort
SELECT + col1 * col2 * + - col1 FROM tab0 AS cor0
----
-308367
-4410
-99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * - - col0 / col0 * - 36 col0 FROM tab1 AS cor0 WHERE NOT + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ( - COUNT( DISTINCT + + 66 ) ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6263
SELECT ( - COUNT ( DISTINCT + + 66 ) ) AS col2 FROM tab0
----
-1

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 27 ) IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6268
SELECT - CAST( col2 AS SIGNED ) * 98 FROM tab2 AS cor0
----
-2254
-3920
-5684

skipif mysql # not compatible
query I rowsort label-6268
SELECT - CAST ( col2 AS INTEGER ) * 98 FROM tab2 AS cor0
----
-2254
-3920
-5684

query I rowsort
SELECT DISTINCT + col1 + - col2 + + 27 AS col1 FROM tab2 AS cor0
----
36
55
64

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

skipif mysql # not compatible
query I rowsort label-6270
SELECT MAX ( ALL - - col0 ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-273

query II rowsort
SELECT + 48 * - col0 AS col0, col1 FROM tab0 AS cor0
----
-4176
21
-4656
1
-720
81

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 96 - - - 53 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - + col0 AND - 71
----

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

skipif mysql # not compatible
query I rowsort label-6276
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT DISTINCT - 63 * ( - 5 ) * - 42 FROM tab2 AS cor0
----
-13230

onlyif mysql # DIV for integer division: 
query II rowsort label-6278
SELECT ALL ( + col2 ) DIV + - col1, - col1 AS col2 FROM tab1 AS cor0
----
-1
-47
-11
-5
-6
-14

skipif mysql # not compatible
query II rowsort label-6278
SELECT ALL ( + col2 ) / + - col1, - col1 AS col2 FROM tab1 AS cor0
----
-1
-47
-11
-5
-6
-14

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

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

query I rowsort
SELECT ALL 98 * + 21 FROM tab1 AS cor0
----
2058
2058
2058

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

query I rowsort
SELECT 87 + 35 + - - col1 AS col0 FROM tab0 AS cor0 WHERE + col2 + col0 NOT IN ( + + col0 )
----
123
143
203

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - 72 ) <= + - col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - col2 * - - col2 + + 46 FROM tab2 AS cor0 WHERE NOT - 93 + - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT - - ( col0 ) * - - CAST( 56 AS SIGNED ) FROM tab1 AS cor0
----
2856
4760
5096

skipif mysql # not compatible
query I rowsort label-6285
SELECT - - ( col0 ) * - - CAST ( 56 AS INTEGER ) FROM tab1 AS cor0
----
2856
4760
5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6286
SELECT DISTINCT + + SUM( - col0 ) DIV + + 4 col1 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6286
SELECT DISTINCT + + SUM ( - col0 ) / + + 4 col1 FROM tab0 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-6287
SELECT ALL col1 AS col0, 51 DIV - col2 * - - col0 + - col2 * + col1 FROM tab1
----
14
-1344
47
-3196
5
-295

skipif mysql # not compatible
query II rowsort label-6287
SELECT ALL col1 AS col0, 51 / - col2 * - - col0 + - col2 * + col1 FROM tab1
----
14
-1344
47
-3196
5
-295

query I rowsort
SELECT - col2 * - col2 + + col0 + + + col1 * + - col0 FROM tab0
----
-1640
1009
9801

query I rowsort
SELECT DISTINCT + col1 + - - col1 AS col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - SUM( ALL - 34 ) + - - 20 * - - COUNT( * ) col1 FROM tab1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6290
SELECT - SUM ( ALL - 34 ) + - - 20 * - - COUNT ( * ) col1 FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT 69 + - 42 * + - COUNT( * ) * - 15 AS col2 FROM tab0 AS cor0
----
-1821

skipif mysql # not compatible
query I rowsort label-6291
SELECT 69 + - 42 * + - COUNT ( * ) * - 15 AS col2 FROM tab0 AS cor0
----
-1821

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT DISTINCT SUM( 7 ) AS col0 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT SUM ( 7 ) AS col0 FROM tab2 AS cor0
----
21

query III rowsort
SELECT + col2 * - col2 AS col2, 50 * - col1 * + 53, ( col1 ) + col0 * - 78 + col2 - + 34 AS col1 FROM tab2 AS cor0
----
9 values hashing to 357a0f8021badf501f349a46e01dc39c

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT MAX( 77 ) col0 FROM tab1 cor0
----
77

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

query II rowsort
SELECT + col0 * + col0, - col2 FROM tab1 AS cor0 WHERE NOT ( + col0 ) * - 82 * - 38 / 56 * - col2 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6298
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 / + - CAST( NULL AS DECIMAL ) - + - 24 - - 74 )
----

skipif mysql # not compatible
query III rowsort label-6298
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 / + - CAST ( NULL AS REAL ) - + - 24 - - 74 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 64 = 82 * - col0 + - col0
----

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

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

query I rowsort
SELECT col0 + + ( + col2 ) AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT + 21 + col2 AS col0 FROM tab1
----
117
80
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT COUNT( * ) * ( - 68 ) + + 59 FROM tab1
----
-145

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT COUNT ( * ) * ( - 68 ) + + 59 FROM tab1
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6305
SELECT DISTINCT CAST( - - 21 AS SIGNED ) + - - SUM( col0 ) FROM tab0
----
220

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT CAST ( - - 21 AS INTEGER ) + - - SUM ( col0 ) FROM tab0
----
220

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 54 IN ( col1 )
----

query I rowsort
SELECT 71 * + - ( 84 ) AS col1 FROM tab2
----
-5964
-5964
-5964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 + - + 40 col0 FROM tab0 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + + 49 * 86 IS NULL
----

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

query I rowsort
SELECT ALL + 22 - col1 AS col0 FROM tab2 AS cor0
----
-29
-45
-55

query I rowsort
SELECT - - col1 + + - col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + 67 + - col2 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
27
44
9

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

query I rowsort
SELECT - + 48 FROM tab2 WHERE ( - col0 * - + col1 ) = - col1
----

query I rowsort
SELECT DISTINCT - 18 * - 6 AS col2 FROM tab2
----
108

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

skipif mysql # not compatible
query I rowsort label-6318
SELECT - MAX ( + + col2 ) AS col1 FROM tab1
----
-96

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

skipif mysql # not compatible
query I rowsort label-6319
SELECT MIN ( - col1 ) * + 75 FROM tab0
----
-6075

onlyif mysql # aggregate syntax: 
query II rowsort label-6320
SELECT COUNT( * ) col2, 55 FROM tab2
----
3
55

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

query I rowsort
SELECT ALL - ( - col2 ) + ( - - col2 ) FROM tab0
----
198
20
94

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

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

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

query II rowsort
SELECT DISTINCT + 59 AS col1, + col1 * 68 * - - col1 AS col1 FROM tab1 AS cor0
----
59
13328
59
150212
59
1700

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

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

query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT DISTINCT MAX( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 16 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 16 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col2 AS col2, + 86 col2, - - col1 FROM tab1 AS cor0
----
9 values hashing to d9e6193657df37d9c15f92b3d0a19a32

query I rowsort
SELECT - + 4 * 33 + - col2 FROM tab0 cor0
----
-142
-179
-231

onlyif mysql # aggregate syntax: 
query II rowsort label-6332
SELECT + - MIN( DISTINCT 8 ) AS col0, ( 15 ) AS col2 FROM tab2 cor0
----
-8
15

skipif mysql # not compatible
query II rowsort label-6332
SELECT + - MIN ( DISTINCT 8 ) AS col0, ( 15 ) AS col2 FROM tab2 cor0
----
-8
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT 15 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6333
SELECT 15 / + - col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 * - + col2 IN ( - - col2 - - 78 * - col2, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT + COUNT( * ) + - SUM( ALL - col0 ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + COUNT ( * ) + - SUM ( ALL - col0 ) FROM tab1
----
230

query I rowsort
SELECT ALL + 17 + - col0 FROM tab0
----
-70
-80
2

query I rowsort
SELECT ALL + col0 * + 50 - - col0 + - col1 + - + col2 * + col0 * - ( - ( + col0 ) ) * + + col2 FROM tab1 AS cor0
----
-23968229
-25145895
-38286750

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT - - MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - - MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL 22 * + + 20 + - 14 * MIN( ALL + 57 ) * MAX( + 23 ) FROM tab1 AS cor0
----
-17914

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL 22 * + + 20 + - 14 * MIN ( ALL + 57 ) * MAX ( + 23 ) FROM tab1 AS cor0
----
-17914

query I rowsort
SELECT + col0 - + col1 + + col1 * - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-375
-6627
95

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6343
SELECT DISTINCT MAX( - 46 ) AS col0, + ( - MIN( 6 ) ) AS col0 FROM tab2 AS cor0
----
-46
-6

skipif mysql # not compatible
query II rowsort label-6343
SELECT DISTINCT MAX ( - 46 ) AS col0, + ( - MIN ( 6 ) ) AS col0 FROM tab2 AS cor0
----
-46
-6

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT + ( - 25 ) > col2
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= col2
----

query I rowsort
SELECT - 76 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + - col1 + + 11 * 27 IS NOT NULL )
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ( + COUNT( * ) ) + - 39 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-6347
SELECT ( + COUNT ( * ) ) + - 39 FROM tab0
----
-36

query I rowsort
SELECT col1 + - 29 * col1 AS col0 FROM tab1
----
-1316
-140
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * + col2 col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ( col0 ) + - + col2 FROM tab1
----
-45
23
26

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

query II rowsort
SELECT + 41 + - - col0 AS col2, - 96 AS col0 FROM tab0
----
128
-96
138
-96
56
-96

query I rowsort
SELECT ALL - col1 + - 83 AS col1 FROM tab0
----
-104
-164
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, ( + col0 ) * - + 5 + 94 FROM tab2
----
-46
-136
-64
-226
-75
-281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT COUNT( * ) - - 76 AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-6357
SELECT COUNT ( * ) - - 76 AS col1 FROM tab0
----
79

query I rowsort
SELECT 5 * + + ( + - col1 ) FROM tab0 WHERE - col2 IS NOT NULL
----
-105
-405
-5

query I rowsort
SELECT ALL + col2 - - 12 AS col1 FROM tab0 AS cor0
----
111
22
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT + COUNT( * ) - MAX( DISTINCT ( col2 ) ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT + COUNT ( * ) - MAX ( DISTINCT ( col2 ) ) FROM tab0 AS cor0
----
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col1 - + col1 col1 FROM tab1 cor0
----
182
20
2162

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT DISTINCT - col0 DIV + - 11 - - col2 FROM tab0 AS cor0
----
107
17
48

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - col0 / + - 11 - - col2 FROM tab0 AS cor0
----
107
17
48

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL COUNT( ALL 14 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL COUNT ( ALL 14 ) FROM tab2
----
3

query II rowsort
SELECT col1, - col1 * 46 FROM tab0
----
1
-46
21
-966
81
-3726

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

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

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

query I rowsort
SELECT DISTINCT - 23 * - col1 AS col2 FROM tab1
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT + ( - ( + 9 ) ) * COUNT( * ) FROM tab1 WHERE NOT - 24 IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-6374
SELECT + ( - ( + 9 ) ) * COUNT ( * ) FROM tab1 WHERE NOT - 24 IS NULL
----
-27

query I rowsort
SELECT - col0 * + ( + 43 ) FROM tab0
----
-3741
-4171
-645

query I rowsort
SELECT ALL - 29 * col0 FROM tab0
----
-2523
-2813
-435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT - CAST( - AVG ( - - col2 ) AS SIGNED ) * MAX( DISTINCT - col0 ) col1 FROM tab0
----
-780

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6377
SELECT - CAST ( - AVG ( - - col2 ) AS INTEGER ) * MAX ( DISTINCT - col0 ) col1 FROM tab0
----
-780

query II rowsort
SELECT DISTINCT col0, 18 FROM tab0
----
15
18
87
18
97
18

query II rowsort
SELECT ALL + col2, + 69 * - col1 + - ( + 24 ) * + - col2 FROM tab1
----
59
1071
68
-1611
96
1338

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT - - col2 DIV - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6380
SELECT - - col2 / - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col1 * + col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col1, 99 * - - col1 + - col1 + + ( 96 ) + 81 - col1 AS col0 FROM tab2 AS cor0
----
51
5124
67
6676
77
7646

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

query I rowsort
SELECT col2 * + 93 * + col1 * - - 70 AS col0 FROM tab2 AS cor0
----
20050800
25297860
7636230

query I rowsort
SELECT DISTINCT - col0 * 57 * col0 AS col1 FROM tab0 AS cor0
----
-12825
-431433
-536313

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL + ( + 93 ) * - MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
8463

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL + ( + 93 ) * - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
8463

query I rowsort
SELECT DISTINCT col2 * - col1 * - col1 AS col0 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6388
SELECT 19 * col1 DIV col0 + + col1 AS col0, col2 - + col0 FROM tab1 AS cor0
----
19
45
56
-23
6
-26

skipif mysql # not compatible
query II rowsort label-6388
SELECT 19 * col1 / col0 + + col1 AS col0, col2 - + col0 FROM tab1 AS cor0
----
19
45
56
-23
6
-26

query I rowsort
SELECT ALL + + 69 * + + col1 FROM tab2 AS cor0
----
3519
4623
5313

query I rowsort
SELECT ALL col0 * + + ( - 60 ) AS col1 FROM tab2
----
-2760
-3840
-4500

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT DISTINCT + 23 DIV - col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT + 23 / - col0 AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 91 >= NULL
----

query I rowsort
SELECT - 68 + 10 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL 45 - - ( - col1 ) AS col2 FROM tab1 AS cor0
----
-2
31
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6396
SELECT ALL + AVG ( DISTINCT col1 ) * 78 + MIN( + CAST( NULL AS SIGNED ) ) * - SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL + AVG ( DISTINCT col1 ) * 78 + MIN ( + CAST ( NULL AS INTEGER ) ) * - SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6397
SELECT * FROM tab0 WHERE - 69 + - + ( - - CAST( NULL AS DECIMAL ) ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6397
SELECT * FROM tab0 WHERE - 69 + - + ( - - CAST ( NULL AS REAL ) ) + + col1 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT + - 39 - - - 78 * + MAX( + 31 ) FROM tab2 AS cor0
----
-2457

skipif mysql # not compatible
query I rowsort label-6400
SELECT + - 39 - - - 78 * + MAX ( + 31 ) FROM tab2 AS cor0
----
-2457

onlyif mysql # DIV for integer division: 
query II rowsort label-6401
SELECT 44 AS col2, col2 DIV ( col0 ) FROM tab1 AS cor0
----
44
0
44
0
44
1

skipif mysql # not compatible
query II rowsort label-6401
SELECT 44 AS col2, col2 / ( col0 ) FROM tab1 AS cor0
----
44
0
44
0
44
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6403
SELECT + col0 * - col1 * CAST( NULL AS SIGNED ) * col0 * - col2, + col1 + + col2 AS col2 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-6403
SELECT + col0 * - col1 * CAST ( NULL AS INTEGER ) * col0 * - col2, + col1 + + col2 AS col2 FROM tab2
----
NULL
117
NULL
125
NULL
74

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

query I rowsort
SELECT DISTINCT - - 72 * + col0 - + - col0 FROM tab1 WHERE NOT + 87 * col0 + + col1 IS NULL
----
3723
6205
6643

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT - 62 * col2 DIV - - ( + col2 ) AS col2 FROM tab1
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-6406
SELECT - 62 * col2 / - - ( + col2 ) AS col2 FROM tab1
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col1 ) AS col2, + 45 - col1 col0 FROM tab0
----
1
44
21
24
81
-36

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT MIN ( col2 ) col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - 78 + + col2 AS col1 FROM tab0
----
-31
-68
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6412
SELECT ALL + 84 + + 14 DIV + COUNT( * ) + + - COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + 84 + + 14 / + COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
85

query I rowsort
SELECT DISTINCT 14 + - - col2 * + + col2 + col1 FROM tab1
----
3500
4685
9244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 8, - 67 + 71 + - col0 col1 FROM tab0 cor0
----
-8
-11
-8
-83
-8
-93

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

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 10 / + 84 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col0 * col1 AS col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + - col0 ) AS col0 FROM tab2 AS cor0 WHERE 50 > NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT NULL >= - 19 + + 98
----

query I rowsort
SELECT DISTINCT ( 44 ) AS col1 FROM tab2 AS cor0
----
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 68 = - - 58 * - col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 * - col2 - + 59 * + - col2 col0, - 41 AS col2 FROM tab0 AS cor0
----
15642
-41
4982
-41
690
-41

query II rowsort
SELECT ALL + + col1, - col2 * - - 56 AS col2 FROM tab2 AS cor0
----
51
-1288
67
-3248
77
-2240

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT DISTINCT - 29 DIV ( - col0 ) DIV + col2 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - 29 / ( - col0 ) / + col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT + col0 * - col1 + + + col2 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL 14 + - ( - MAX( ALL - 50 ) ) AS col2 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 14 + - ( - MAX ( ALL - 50 ) ) AS col2 FROM tab0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 58 col2 FROM tab2
----
-104
-122
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT MIN( ALL 51 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6428
SELECT MIN ( ALL 51 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6429
SELECT ALL - 28 + col2 + + col1 DIV + col1 FROM tab2
----
-4
13
31

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - 28 + col2 + + col1 / + col1 FROM tab2
----
-4
13
31

query I rowsort
SELECT DISTINCT - + 14 * - - col0 * - col1 - - + 6 * + - col0 * + col1 - col2 FROM tab1 AS cor0
----
3341
34148
5616

query I rowsort
SELECT 50 - + ( col0 ) AS col2 FROM tab1 AS cor0
----
-1
-35
-41

query I rowsort
SELECT + col1 * + 21 - + ( col1 ) + col2 FROM tab1 cor0
----
1008
159
376

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT - col2 IS NULL OR NOT - ( + col1 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col1 * + - 14 + + col0 FROM tab0
----
111
1149
381

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

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

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

query I rowsort
SELECT DISTINCT 86 * - 14 FROM tab2 AS cor0
----
-1204

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6440
SELECT ALL + CAST( - 20 AS SIGNED ) DIV col2 * col0 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - SUM( DISTINCT + - 2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-6441
SELECT - SUM ( DISTINCT + - 2 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT DISTINCT + - ( - + col1 ) DIV - 63 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + - ( - + col1 ) / - 63 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - + 9 * + col1 FROM tab1 AS cor0
----
-126
-423
-45

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 62 * + 87 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + col2 AS col1, 33 * + col1 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-23
1660
-40
2501
-58
2153

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

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

query I rowsort
SELECT DISTINCT 58 * + col2 AS col0 FROM tab0
----
2726
5742
580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6449
SELECT ALL 52, CAST( - ( 46 ) AS SIGNED ) * col2 AS col1 FROM tab2 cor0
----
52
-1058
52
-1840
52
-2668

skipif mysql # not compatible
query II rowsort label-6449
SELECT ALL 52, CAST ( - ( 46 ) AS INTEGER ) * col2 AS col1 FROM tab2 cor0
----
52
-1058
52
-1840
52
-2668

onlyif mysql # aggregate syntax: 
query II rowsort label-6450
SELECT ALL COUNT( * ) AS col0, MIN( - - col0 ) AS col0 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-6450
SELECT ALL COUNT ( * ) AS col0, MIN ( - - col0 ) AS col0 FROM tab0 AS cor0
----
3
15

query I rowsort
SELECT DISTINCT 70 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NULL = - 62
----

query II rowsort
SELECT + 78 * 31 * col1, col1 * - col2 AS col1 FROM tab2 AS cor0
----
123318
-1173
162006
-3886
186186
-3080

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6456
SELECT + col1 * - col1 AS col1, - col0 * col0 DIV col1 + + col2 * - col1 FROM tab0 AS cor0
----
-1
-9508
-441
-570
-6561
-3809

skipif mysql # not compatible
query II rowsort label-6456
SELECT + col1 * - col1 AS col1, - col0 * col0 / col1 + + col2 * - col1 FROM tab0 AS cor0
----
-1
-9508
-441
-570
-6561
-3809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6457
SELECT + MAX( + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-51

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

query I rowsort
SELECT + + 96 * - 34 * + - 90 FROM tab0 AS cor0
----
293760
293760
293760

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - COUNT( * ) * - 34 col2 FROM tab0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6459
SELECT DISTINCT - COUNT ( * ) * - 34 col2 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL MAX( DISTINCT + col2 ) + COUNT( * ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL MAX ( DISTINCT + col2 ) + COUNT ( * ) AS col2 FROM tab2
----
61

query I rowsort
SELECT ALL + col2 * + col2 * + - col2 + - col2 FROM tab2
----
-12190
-195170
-64040

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - + COUNT( * ) + + 35 col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + col0 ) / + col1 * col1
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6464
SELECT - + COUNT ( * ) + + 35 col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + col0 ) / + col1 * col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL + MAX( ALL + 55 ) AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL + MAX ( ALL + 55 ) AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL - 18 + - + COUNT( * ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - 18 + - + COUNT ( * ) FROM tab0
----
-21

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

query II rowsort
SELECT - col0 * - - 40 + - 25 AS col2, + 14 AS col1 FROM tab0 AS cor0
----
-3505
14
-3905
14
-625
14

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT 91 * - MIN( DISTINCT - 68 ) FROM tab0
----
6188

skipif mysql # not compatible
query I rowsort label-6470
SELECT 91 * - MIN ( DISTINCT - 68 ) FROM tab0
----
6188

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
75

query I rowsort
SELECT - 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6473
SELECT DISTINCT - col0 * + - CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6473
SELECT DISTINCT - col0 * + - CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT + ( col0 ) AS col2, 74 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
46
74
64
74
75
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT SUM( - + 46 ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT SUM ( - + 46 ) FROM tab2 AS cor0
----
-138

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6478
SELECT + + 41 DIV - COUNT( * ) AS col2, - 86 FROM tab1 AS cor0
----
-13
-86

skipif mysql # not compatible
query II rowsort label-6478
SELECT + + 41 / - COUNT ( * ) AS col2, - 86 FROM tab1 AS cor0
----
-13
-86

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6480
SELECT ALL * FROM tab1 WHERE NULL <> - - col1 + + col0 + col1 * + + CAST( 43 AS SIGNED ) + + - col1 / col0 + + + col0
----

skipif mysql # not compatible
query III rowsort label-6480
SELECT ALL * FROM tab1 WHERE NULL <> - - col1 + + col0 + col1 * + + CAST ( 43 AS INTEGER ) + + - col1 / col0 + + + col0
----

query I rowsort
SELECT DISTINCT - 12 * col1 AS col2 FROM tab1
----
-168
-564
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT ALL - col2 DIV - - 33 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL - col2 / - - 33 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT 60 * 44 FROM tab0
----
2640
2640
2640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col2 FROM tab0 WHERE NOT - col0 * - + ( col2 ) + + - col0 * + col1 IS NULL
----
-1
-21
-81

query I rowsort
SELECT - 55 * col2 AS col1 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT - 46 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL <= NULL )
----

query I rowsort
SELECT DISTINCT + 7 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col2 / - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - ( + 77 ) * COUNT( * ) + - - 70 FROM tab1
----
-161

skipif mysql # not compatible
query I rowsort label-6488
SELECT - ( + 77 ) * COUNT ( * ) + - - 70 FROM tab1
----
-161

query I rowsort
SELECT 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

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

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

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

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

query I rowsort
SELECT ALL - 57 + col1 * - ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-156
-267
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + COUNT( * ) + - 29 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6493
SELECT + COUNT ( * ) + - 29 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT 67 + + + 77 + SUM( col0 ) col2 FROM tab0 AS cor0
----
343

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6494
SELECT 67 + + + 77 + SUM ( col0 ) col2 FROM tab0 AS cor0
----
343

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6496
SELECT col1 DIV - 6 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT col1 / - 6 FROM tab1
----
-2
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT + 58 * - COUNT( * ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + 58 * - COUNT ( * ) FROM tab2
----
-174

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

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

query I rowsort
SELECT ALL col1 * + 12 AS col2 FROM tab2
----
612
804
924

query I rowsort
SELECT + 58 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

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

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

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

query II rowsort
SELECT ALL + + 22 AS col2, + 55 FROM tab1 AS cor0
----
22
55
22
55
22
55

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6506
SELECT col2 DIV + CAST( + col0 AS SIGNED ) - + - col2 AS col2 FROM tab1 cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-6506
SELECT col2 / + CAST ( + col0 AS INTEGER ) - + - col2 AS col2 FROM tab1 cor0
----
59
68
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT + 4 DIV - 54 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-6507
SELECT + 4 / - 54 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 8 * + + col0 AS col2 FROM tab0 AS cor0
----
-120
-696
-776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT ALL - 0 * + + CAST( - - col2 AS SIGNED ) 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-6509
SELECT ALL - 0 * + + CAST ( - - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6510
SELECT DISTINCT + 16 AS col0, COUNT( * ) - 13 FROM tab2 AS cor0
----
16
-10

skipif mysql # not compatible
query II rowsort label-6510
SELECT DISTINCT + 16 AS col0, COUNT ( * ) - 13 FROM tab2 AS cor0
----
16
-10

query I rowsort
SELECT DISTINCT col2 * + col0 * col1 * - + col1 AS col2 FROM tab0
----
-383670
-4625505
-9603

query I rowsort
SELECT DISTINCT - 51 * + col0 AS col1 FROM tab0
----
-4437
-4947
-765

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

query I rowsort
SELECT ALL - - col1 * + - ( - + 56 ) + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-3556
-4112
-4735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6515
SELECT DISTINCT + + col1 * + 34 + + col0 + col2 AS col1, - col2 * - CAST( + col0 AS SIGNED ) * - + col0 AS col2 FROM tab0 AS cor0
----
230
-931491
2816
-10575
811
-75690

skipif mysql # not compatible
query II rowsort label-6515
SELECT DISTINCT + + col1 * + 34 + + col0 + col2 AS col1, - col2 * - CAST ( + col0 AS INTEGER ) * - + col0 AS col2 FROM tab0 AS cor0
----
230
-931491
2816
-10575
811
-75690

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT - MIN( DISTINCT + col0 ) * - 11 + 54, + COUNT( * ) AS col1 FROM tab0 cor0
----
219
3

skipif mysql # not compatible
query II rowsort label-6516
SELECT - MIN ( DISTINCT + col0 ) * - 11 + 54, + COUNT ( * ) AS col1 FROM tab0 cor0
----
219
3

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

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT SUM ( ALL + 67 ) FROM tab1
----
201

query I rowsort
SELECT ALL 71 + + col2 AS col2 FROM tab2
----
111
129
94

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6520
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - MIN( + 98 ) AS col0, - 78 FROM tab2 AS cor0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-6520
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - MIN ( + 98 ) AS col0, - 78 FROM tab2 AS cor0
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - MAX( - col0 ) * - 43 AS col0 FROM tab0 AS cor0
----
-645

skipif mysql # not compatible
query I rowsort label-6521
SELECT - MAX ( - col0 ) * - 43 AS col0 FROM tab0 AS cor0
----
-645

query I rowsort
SELECT 20 - + col1 FROM tab1
----
-27
15
6

query I rowsort
SELECT ( - col0 ) + 66 AS col1 FROM tab1 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6524
SELECT * FROM tab2 WHERE - col1 IN ( ( - 45 ), 97, + col1, + col0, + col0, - col0, ( + - CAST( 73 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6524
SELECT * FROM tab2 WHERE - col1 IN ( ( - 45 ), 97, + col1, + col0, + col0, - col0, ( + - CAST ( 73 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT ALL MIN( DISTINCT - - col1 ) + - MAX( ALL col0 ) col1 FROM tab1
----
-86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT - 4 + + - COUNT( col1 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-6526
SELECT - 4 + + - COUNT ( col1 ) FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL + MAX( ALL + 35 ) AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + MAX ( ALL + 35 ) AS col2 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT ALL 5 + 92 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL 5 + 92 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT + COUNT( * ) * + 98 col2 FROM tab1 AS cor0
----
294

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

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

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

query III rowsort
SELECT ALL 36, col2 AS col0, col1 FROM tab2 AS cor0
----
9 values hashing to db8841d831a41e0598206b867fa6c70b

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT SUM( + 81 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
729

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT SUM ( + 81 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
729

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

skipif mysql # not compatible
query I rowsort label-6534
SELECT - SUM ( DISTINCT ( 95 ) ) AS col1 FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL + + MAX( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL + + MAX ( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 * - 49 * - 35 col2 FROM tab2
----
2744000
5769260
907235

onlyif mysql # DIV for integer division: 
query II rowsort label-6538
SELECT ALL + col2, 28 DIV - 64 AS col0 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-6538
SELECT ALL + col2, 28 / - 64 AS col0 FROM tab1
----
59
0
68
0
96
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + ( + 37 ) * + 21 * + - COUNT( * ) + + 36 AS col1 FROM tab0
----
-2295

skipif mysql # not compatible
query I rowsort label-6541
SELECT + ( + 37 ) * + 21 * + - COUNT ( * ) + + 36 AS col1 FROM tab0
----
-2295

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

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

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL 95 / - col1 FROM tab0
----
-1
-4
-95

query I rowsort
SELECT ALL - 23 + 44 AS col0 FROM tab2
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + ( - - col2 ) * + col2, col0 col2 FROM tab2 AS cor0
----
1600
64
3364
75
529
46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT ALL + 79 * 62 + - CAST( + + 64 AS SIGNED ) FROM tab1 AS cor0
----
4834
4834
4834

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + 79 * 62 + - CAST ( + + 64 AS INTEGER ) FROM tab1 AS cor0
----
4834
4834
4834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col2 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6549
SELECT COUNT( * ) DIV SUM( col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT COUNT ( * ) / SUM ( col2 ) AS col2 FROM tab1
----
0

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

query I rowsort
SELECT ALL col1 + + 0 FROM tab0
----
1
21
81

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

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

query I rowsort
SELECT - col2 * - 67 AS col2 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT ALL + 35 + col1 FROM tab2
----
102
112
86

query I rowsort
SELECT 59 + 88 FROM tab1
----
147
147
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + col1 col2 FROM tab2
----
1428
1876
2156

query I rowsort
SELECT - 85 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( 35 * + col1 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT DISTINCT 3 DIV col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT 3 / col2 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6560
SELECT DISTINCT - 92 DIV - COUNT( * ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT - 92 / - COUNT ( * ) FROM tab2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6561
SELECT ALL * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) <= col2 + col1
----

skipif mysql # not compatible
query III rowsort label-6561
SELECT ALL * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) <= col2 + col1
----

query I rowsort
SELECT col1 + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
28
37
9

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

skipif mysql # not compatible
query I rowsort label-6563
SELECT + CAST ( NULL AS INTEGER ) - - 37 * COUNT ( * ) FROM tab0 WHERE ( col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT DISTINCT COUNT( DISTINCT + 31 ) DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT COUNT ( DISTINCT + 31 ) / - COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT - 77 + 46 FROM tab0 WHERE ( CAST( col1 AS SIGNED ) ) NOT IN ( ( col0 ) )
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-6565
SELECT - 77 + 46 FROM tab0 WHERE ( CAST ( col1 AS INTEGER ) ) NOT IN ( ( col0 ) )
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6566
SELECT * FROM tab2 WHERE NOT ( 8 / - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6566
SELECT * FROM tab2 WHERE NOT ( 8 / - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT ALL + col2 - + CAST( + 39 + ( col0 ) AS SIGNED ) FROM tab1
----
-62
-65
6

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + col2 - + CAST ( + 39 + ( col0 ) AS INTEGER ) FROM tab1
----
-62
-65
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 / - col2 < + 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6571
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < CAST( NULL AS SIGNED ) / + ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-6571
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER ) / + ( - col2 )
----

query I rowsort
SELECT + col2 * col0 FROM tab1 cor0 WHERE NOT col0 + 0 NOT IN ( - 50 )
----

query I rowsort
SELECT ( col1 ) * 78 AS col1 FROM tab0 AS cor0
----
1638
6318
78

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

skipif mysql # not compatible
query I rowsort label-6574
SELECT - 76 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6575
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( + 14 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( + 14 ) IS NULL
----
3

query I rowsort
SELECT - col1 / 59 FROM tab0 WHERE NOT NULL >= ( + col1 )
----

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

query I rowsort
SELECT + col2 * 39 AS col0 FROM tab2 AS cor0
----
1560
2262
897

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL - ( 99 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL - ( 99 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-297

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

query I rowsort
SELECT ALL col0 + + 72 * - col1 FROM tab2
----
-3626
-4749
-5480

query I rowsort
SELECT ALL + 50 + col0 FROM tab1
----
101
135
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) + 91 * + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + 91 * + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

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

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

query I rowsort
SELECT - col2 + 53 AS col2 FROM tab2 AS cor0
----
-5
13
30

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT - col1 DIV + 59 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6593
SELECT - col1 / + 59 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-1
0

query I rowsort
SELECT ALL - + ( - 58 ) - + col0 AS col1 FROM tab1 AS cor0
----
-27
-33
7

query I rowsort
SELECT col0 - - 27 FROM tab2 AS cor0 WHERE 28 * - 26 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 - + ( - 25 ) col0 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - - col0 - + - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT DISTINCT - + CAST( - - col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT - + CAST ( - - col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6600
SELECT * FROM tab2 WHERE NOT + ( + col2 ) - - 30 <> 44 + - CAST( col1 AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-6600
SELECT * FROM tab2 WHERE NOT + ( + col2 ) - - 30 <> 44 + - CAST ( col1 AS INTEGER ) * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT NULL <= + 92
----

query I rowsort
SELECT 12 * - 77 AS col1 FROM tab2
----
-924
-924
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT DISTINCT MIN( + 24 ) FROM tab2 WHERE NOT + col2 - + col0 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-6603
SELECT DISTINCT MIN ( + 24 ) FROM tab2 WHERE NOT + col2 - + col0 IS NULL
----
24

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 62 * - 34 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + 80 * - 17 >= NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL + COUNT( * ) + MIN( - ( - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 38 ) AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + COUNT ( * ) + MIN ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 38 ) AND + col1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 60 IS NULL
----

query I rowsort
SELECT ALL + - 6 + 46 AS col0 FROM tab0 AS cor0
----
40
40
40

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * - 20 col1 FROM tab2 AS cor0 WHERE NOT col1 / + 17 IS NULL
----
-460
-460
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT ALL col2 DIV - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL col2 / - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL COUNT( 99 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL COUNT ( 99 ) FROM tab2 cor0
----
3

query I rowsort
SELECT + col2 + + col0 - + ( - col0 ) * col0 * 14 FROM tab1 AS cor0
----
101294
116093
36561

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

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

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

query I rowsort
SELECT + AVG ( ALL + col1 ) AS col0 FROM tab0 WHERE ( ( NULL ) < + 55 + 24 )
----
NULL

query II rowsort
SELECT col1, - ( + 40 ) FROM tab0
----
1
-40
21
-40
81
-40

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE col0 + + 56 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT + ( CAST( + col0 AS SIGNED ) ) * + col2 - - 22 * 64 AS col1 FROM tab0
----
11011
2113
2278

skipif mysql # not compatible
query I rowsort label-6627
SELECT + ( CAST ( + col0 AS INTEGER ) ) * + col2 - - 22 * 64 AS col1 FROM tab0
----
11011
2113
2278

query I rowsort
SELECT - col2 + + - 75 FROM tab2
----
-115
-133
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT + ( + + col0 ) + col2 DIV - - col1 * + 94 * col0 + + 11 FROM tab2
----
57
75
86

skipif mysql # not compatible
query I rowsort label-6629
SELECT + ( + + col0 ) + col2 / - - col1 * + 94 * col0 + + 11 FROM tab2
----
57
75
86

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
14
47
5

query I rowsort
SELECT - 15 AS col2 FROM tab1 cor0 WHERE 52 + + col2 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT ALL - - CAST( - + col0 AS SIGNED ) * - + 52 col2 FROM tab0 AS cor0
----
4524
5044
780

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6634
SELECT ALL - - CAST ( - + col0 AS INTEGER ) * - + 52 col2 FROM tab0 AS cor0
----
4524
5044
780

query I rowsort
SELECT + + col2 * - - col0 + - - col2 AS col2 FROM tab0 cor0
----
752
880
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + ( + col1 ) * + col0 AS col2 FROM tab2
----
-46
2346
-64
4928
-75
5025

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

query II rowsort
SELECT + col0 * + col0 * + col0, col1 AS col1 FROM tab1
----
132651
14
614125
5
753571
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - ( + col0 ) ), col1 col0 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL + + MAX( ALL 97 ) FROM tab0 WHERE NOT NULL <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + + MAX ( ALL 97 ) FROM tab0 WHERE NOT NULL <> + col1
----
NULL

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

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

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

query I rowsort
SELECT + 59 * + col0 + + 57 AS col1 FROM tab0 AS cor0
----
5190
5780
942

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + 35 col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
35
85
35
91
35

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

skipif mysql # not compatible
query I rowsort label-6647
SELECT - - col1 / + 49 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6649
SELECT + COUNT( * ) DIV - 6 * + MAX( col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT + COUNT ( * ) / - 6 * + MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - col2 ) * + - 40 - - ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
4059
5687
610

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

query I rowsort
SELECT 54 * + + col1 AS col0 FROM tab0
----
1134
4374
54

query I rowsort
SELECT col2 * - col1 * - col1 AS col2 FROM tab1
----
1475
150212
18816

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6654
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( + 29 AS DECIMAL ) + ( col2 ) AND + col1 + - + 37 * - + ( - col0 ) + 92
----

skipif mysql # not compatible
query III rowsort label-6654
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( + 29 AS REAL ) + ( col2 ) AND + col1 + - + 37 * - + ( - col0 ) + 92
----

query I rowsort
SELECT ALL - col2 + 86 * 39 AS col2 FROM tab2
----
3296
3314
3331

query I rowsort
SELECT DISTINCT + col1 + - col2 * ( + + 78 ) FROM tab1
----
-4597
-5257
-7474

query I rowsort
SELECT col0 / - 50 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 + - + 99 - - + col2 FROM tab0 AS cor0
----
-68
1
29

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT - 10 DIV + 59 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6662
SELECT - 10 / + 59 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT ALL 36, 19 AS col1 FROM tab1 AS cor0
----
36
19
36
19
36
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - + COUNT( * ) * - MIN( col0 ) AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6664
SELECT - + COUNT ( * ) * - MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
153

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

query I rowsort
SELECT - + 42 AS col1 FROM tab1 cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6667
SELECT MAX( - CAST( col2 AS SIGNED ) ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6667
SELECT MAX ( - CAST ( col2 AS INTEGER ) ) FROM tab0 cor0
----
-10

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6669
SELECT ALL 99, CAST( 96 AS SIGNED ) col0 FROM tab0 cor0
----
99
96
99
96
99
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6669
SELECT ALL 99, CAST ( 96 AS INTEGER ) col0 FROM tab0 cor0
----
99
96
99
96
99
96

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 64 + + + ( col1 ) >= - - 89
----
15
81
47

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

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

query I rowsort
SELECT - col1 * + col2 * + ( - - col2 ) FROM tab0 WHERE NOT NULL NOT IN ( 72, col2 )
----

query II rowsort
SELECT - col2, - ( + col1 ) FROM tab2 WHERE NOT - col0 - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 cor0 WHERE NOT + 59 / - col1 <> NULL
----

query I rowsort
SELECT + + col2 * - col1 * 91 FROM tab1 AS cor0
----
-122304
-26845
-290836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 71 * - col0, - col2 * + col0 col1 FROM tab0 AS cor0
----
1065
-705
6177
-870
6887
-9603

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6679
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + 36 * col0 * - CAST( NULL AS SIGNED ) * + col2
----

skipif mysql # not compatible
query III rowsort label-6679
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + 36 * col0 * - CAST ( NULL AS INTEGER ) * + col2
----

query I rowsort
SELECT 3 + - 48 FROM tab0 AS cor0
----
-45
-45
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL + MAX( DISTINCT col1 ) * 67 AS col2 FROM tab1 cor0
----
3149

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL + MAX ( DISTINCT col1 ) * 67 AS col2 FROM tab1 cor0
----
3149

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT + col2 * + + 5 + - 80 / + - col1 * col0 + + col0 <> ( - - col2 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT COUNT( * ) * - CAST( - 36 AS SIGNED ) AS col1 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-6685
SELECT COUNT ( * ) * - CAST ( - 36 AS INTEGER ) AS col1 FROM tab1
----
108

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

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

query I rowsort
SELECT + 57 + - col0 + col2 FROM tab1 WHERE col1 IS NOT NULL
----
102
31
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT - - 92 * - - COUNT( * ) col1, 82 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6689
SELECT - - 92 * - - COUNT ( * ) col1, 82 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
82

query I rowsort
SELECT ALL 63 + - 8 - + 15 FROM tab2 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT + col1 + col1 - - 32 FROM tab1 AS cor0
----
126
42
60

query I rowsort
SELECT ALL - col2 - + 17 AS col0 FROM tab2 AS cor0
----
-40
-57
-75

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6696
SELECT DISTINCT - + COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-6697
SELECT col1 * - col1, + ( - col2 ) DIV + col2 AS col1 FROM tab1 WHERE NOT 79 IN ( + col0 )
----
-196
-1
-2209
-1
-25
-1

skipif mysql # not compatible
query II rowsort label-6697
SELECT col1 * - col1, + ( - col2 ) / + col2 AS col1 FROM tab1 WHERE NOT 79 IN ( + col0 )
----
-196
-1
-2209
-1
-25
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6698
SELECT ALL 90 col2, + COUNT( * ) FROM tab0
----
90
3

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 97 + + - col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 57 - + + 56 * 39 <= NULL
----

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 IN ( + 27, + ( - 79 ) * col1 * - - col2, + - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - - col0 * + 44 FROM tab0
----
31020
38280
422532

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 28 * - + 36 IS NULL
----

query I rowsort
SELECT - 78 AS col1 FROM tab1 WHERE NOT - 63 IS NULL
----
-78
-78
-78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT IN ( + col2 + + 60 )
----

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT IN ( + col2 + + 60 )
----

query II rowsort
SELECT + 79 AS col0, + 87 FROM tab0 AS cor0
----
79
87
79
87
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + + 38 col0 FROM tab2 AS cor0
----
-1520
-2204
-874

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 72 col0, + col1 * - col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( + - 35 ) <> - col0 )
----
72
-1173
72
-3080
72
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 cor0 WHERE 50 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6715
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 cor0 WHERE 50 IS NOT NULL
----
9

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

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

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

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
96

query I rowsort
SELECT DISTINCT - 25 + col0 - col1 FROM tab0 AS cor0
----
-91
41
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL - COUNT( * ) + - 26 * + COUNT( + - col0 ) + - - AVG ( 85 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - COUNT ( * ) + - 26 * + COUNT ( + - col0 ) + - - AVG ( 85 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT MIN( - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6721
SELECT MIN ( - col0 ) FROM tab1 cor0
----
-91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - + col0 - + - col2 + - col1 * col2, 86 col0 FROM tab1 AS cor0
----
-11409
86
-3849
86
-7461
86

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT - 37 + - ( + - MAX( DISTINCT 86 ) ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - 37 + - ( + - MAX ( DISTINCT 86 ) ) FROM tab0
----
49

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

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

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

query I rowsort
SELECT col2 * - 8 AS col0 FROM tab0
----
-376
-792
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT + col0 DIV + + col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6730
SELECT + col0 / + + col0 AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT 56 * 76 * - COUNT( * ) AS col2 FROM tab0
----
-12768

skipif mysql # not compatible
query I rowsort label-6731
SELECT 56 * 76 * - COUNT ( * ) AS col2 FROM tab0
----
-12768

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 30 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + + col2 + col0 AS col0 FROM tab1 AS cor0
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT COUNT( ALL + ( col0 ) ) * MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6734
SELECT COUNT ( ALL + ( col0 ) ) * MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
141

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6741
SELECT COUNT( * ) * + + 13 + + 72 + - + 62 + CAST( - + 15 AS SIGNED ) * + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6741
SELECT COUNT ( * ) * + + 13 + + 72 + - + 62 + CAST ( - + 15 AS INTEGER ) * + COUNT ( * ) FROM tab0
----
4

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

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

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

query I rowsort
SELECT + 11 + 15 FROM tab1
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT COUNT( 72 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6745
SELECT COUNT ( 72 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6746
SELECT * FROM tab0 WHERE NOT - 14 NOT IN ( - CAST( 29 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6746
SELECT * FROM tab0 WHERE NOT - 14 NOT IN ( - CAST ( 29 AS INTEGER ) )
----

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

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

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

query I rowsort
SELECT 47 + + - col1 AS col0 FROM tab0
----
-34
26
46

query I rowsort
SELECT col0 + + 91 * - ( + + col0 ) AS col1 FROM tab1
----
-4590
-7650
-8190

query I rowsort
SELECT ALL - ( 32 ) FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 col2, col0 * ( + col1 ) * + + 43 - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

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

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

query I rowsort
SELECT + 7 + 40 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
47
47
47

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

query I rowsort
SELECT + 95 FROM tab0 cor0 WHERE col0 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT ALL ( ( + col2 ) ) - + ( + 91 ) AS col0 FROM tab0
----
-44
-81
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / + - col0 <> col1
----

query I rowsort
SELECT col0 * + col2 * + col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL AND + - 77 + - col2 - + col2 + + 30 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6765
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL AND + - 77 + - col2 - + col2 + + 30 IS NULL
----
0

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

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

query I rowsort
SELECT DISTINCT + 81 * + col0 * + - col1 FROM tab2
----
-190026
-399168
-407025

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6770
SELECT + 88 + + - CAST( SUM( - - col2 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 58 * 68 IS NULL
----
-68

skipif mysql # not compatible
query I rowsort label-6770
SELECT + 88 + + - CAST ( SUM ( - - col2 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 58 * 68 IS NULL
----
-68

query I rowsort
SELECT ALL 16 FROM tab2 AS cor0 WHERE NULL IN ( + col0 * - - col1 )
----

query II rowsort
SELECT DISTINCT col0 * + - col1 * - col0, 71 AS col2 FROM tab1
----
36125
71
36414
71
389207
71

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

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

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

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

query II rowsort
SELECT + col1, col0 + + + col0 AS col0 FROM tab0 cor0
----
1
194
21
174
81
30

query I rowsort
SELECT - ( ( + - col1 ) ) FROM tab1
----
14
47
5

query I rowsort
SELECT col1 * col1 AS col1 FROM tab0 WHERE NOT - 73 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( + + col1 ) + 75 > + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 86 / - ( + + col0 ) + - col2 / - col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + - 95 * + col2 * + - 75 AND + col2 * + 5 + - 32
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT - COUNT( * ) + + ( + 20 ) AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6782
SELECT - COUNT ( * ) + + ( + 20 ) AS col2 FROM tab1 AS cor0
----
17

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6785
SELECT col2 AS col0, 0 DIV + + 78 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-6785
SELECT col2 AS col0, 0 / + + 78 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query III rowsort label-6786
SELECT ALL + col0 AS col0, col0 AS col1, + - col0 DIV + 12 FROM tab2 WHERE NOT - col1 >= + 46
----
9 values hashing to 260391a79da9ec423910e32bab887b7c

skipif mysql # not compatible
query III rowsort label-6786
SELECT ALL + col0 AS col0, col0 AS col1, + - col0 / + 12 FROM tab2 WHERE NOT - col1 >= + 46
----
9 values hashing to 260391a79da9ec423910e32bab887b7c

query I rowsort
SELECT DISTINCT col1 - 11 AS col0 FROM tab0 AS cor0
----
-10
10
70

query I rowsort
SELECT - + col0 - 51 AS col0 FROM tab1 AS cor0
----
-102
-136
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL - 53 - + COUNT( * ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - 53 - + COUNT ( * ) FROM tab2 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL MIN( ALL + ( col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL MIN ( ALL + ( col2 ) ) FROM tab1
----
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT + 74 + - COUNT( ALL + col1 ) AS col2 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-6792
SELECT + 74 + - COUNT ( ALL + col1 ) AS col2 FROM tab2
----
71

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT DISTINCT COUNT ( ALL + - 26 ) col2 FROM tab0
----
3

query I rowsort
SELECT + col0 * + 4 FROM tab2
----
184
256
300

query I rowsort
SELECT ALL 93 * - + ( - col2 ) AS col1 FROM tab2
----
2139
3720
5394

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

query I rowsort
SELECT - 81 * ( - col1 ) AS col0 FROM tab2
----
4131
5427
6237

query II rowsort
SELECT 23 AS col2, - 31 AS col1 FROM tab1
----
23
-31
23
-31
23
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL COUNT( + col1 ) * - COUNT( DISTINCT - 4 ) * 48 AS col1 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL COUNT ( + col1 ) * - COUNT ( DISTINCT - 4 ) * 48 AS col1 FROM tab0 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT - 96 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 96 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT - + MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-6802
SELECT - + MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
-51

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT - 72 DIV 65 * 89 AS col0 FROM tab1 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT - 72 / 65 * 89 AS col0 FROM tab1 cor0
----
-89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT + + COUNT( * ) * - MIN( - 2 ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6807
SELECT + + COUNT ( * ) * - MIN ( - 2 ) FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6808
SELECT DISTINCT col0 * + col0 * + - 80 / - CAST( col0 AS SIGNED ) - - 37 + + 83 + + col0 + + CAST( - ( + col0 ) AS SIGNED ) col2, + col2 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6808
SELECT DISTINCT col0 * + col0 * + - 80 / - CAST ( col0 AS INTEGER ) - - 37 + + 83 + + col0 + + CAST ( - ( + col0 ) AS INTEGER ) col2, + col2 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + - 39 * + col2 AS col0 FROM tab1 AS cor0
----
-2301
-2652
-3744

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + 10 * 92 AND ( - 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 + col2 * + col1 col0 FROM tab2
----
1124
3031
3837

query I rowsort
SELECT col2 * + 21 * - col1 * col0 * col2 AS col1 FROM tab0
----
-19964637
-3836700
-56362635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - + col2 + 57 + - - col0 col2 FROM tab2 AS cor0
----
126
145
149

query II rowsort
SELECT - col0 + + col2 AS col0, + 9 FROM tab2
----
-17
9
-23
9
-24
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT COUNT( * ) + - 18 + - + 83 AS col1 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-6816
SELECT COUNT ( * ) + - 18 + - + 83 AS col1 FROM tab0
----
-98

query I rowsort
SELECT - 70 + col2 FROM tab2
----
-12
-30
-47

query I rowsort
SELECT 20 * + - 50 FROM tab1 WHERE NULL IS NULL
----
-1000
-1000
-1000

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + 53 * - - 9 + - 17 + - - ( 41 ) * - col0 / - - col0 - - col1 IN ( + + col0 + - 90, + ( 84 ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL - 79 - COUNT( * ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - 79 - COUNT ( * ) FROM tab2 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + - col2 * 78 + + - 30 + + col1 + col0 - col0 FROM tab2 cor0
----
-1773
-3073
-4487

query I rowsort
SELECT DISTINCT 23 - + - 6 AS col2 FROM tab1 AS cor0
----
29

query I rowsort
SELECT 74 * + col0 FROM tab1
----
3774
6290
6734

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT + 54 * COUNT( * ) * - - 9 FROM tab0
----
1458

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + 54 * COUNT ( * ) * - - 9 FROM tab0
----
1458

query II rowsort
SELECT + 95, + col2 AS col2 FROM tab0
----
95
10
95
47
95
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT COUNT( * ) FROM tab2 WHERE NOT col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT COUNT ( * ) FROM tab2 WHERE NOT col1 = NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - - 89 AS col1 FROM tab2
----
4539
5963
6853

query I rowsort
SELECT - ( 91 ) * + + col2 FROM tab0 AS cor0
----
-4277
-9009
-910

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( 13 + - 63 + - col0 * + col0, - ( col1 ), - ( + col2 ) * + + col2, - - col0 / 6, 26, - col2 + + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col0 col1 FROM tab2 AS cor0
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 15 col1 FROM tab1 AS cor0
----
-210
-705
-75

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

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

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col2 FROM tab2 AS cor0
----
-2139
-4136
-5683

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( + 40 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT ALL - MAX( DISTINCT + 28 ) * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6836
SELECT ALL - MAX ( DISTINCT + 28 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * - col0 * - 89 FROM tab0 AS cor0
----
-108135
-162603
-8633

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT DISTINCT - 48 DIV 55 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6838
SELECT DISTINCT - 48 / 55 col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT col1 DIV - 29 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6839
SELECT col1 / - 29 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT ALL + 65 + + col2 - - col0 FROM tab2
----
134
169
198

query I rowsort
SELECT DISTINCT + 21 + + col0 AS col2 FROM tab2
----
67
85
96

query I rowsort
SELECT ALL ( + 7 ) + - 79 AS col2 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT - 31 + - + col0 AS col2 FROM tab1 AS cor0
----
-116
-122
-82

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

query I rowsort
SELECT ALL col0 - - ( 14 ) * - 42 FROM tab2 WHERE NOT col0 IS NULL
----
-513
-524
-542

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT COUNT( * ) * 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
405

skipif mysql # not compatible
query I rowsort label-6846
SELECT COUNT ( * ) * 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
405

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6848
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE - col0 + CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE - col0 + CAST ( NULL AS REAL ) = NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6850
SELECT + 99 DIV - 14 + + 29 col2, 44 AS col2 FROM tab0 AS cor0
----
22
44
22
44
22
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6850
SELECT + 99 / - 14 + + 29 col2, 44 AS col2 FROM tab0 AS cor0
----
22
44
22
44
22
44

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

query I rowsort
SELECT ALL 88 * + 55 FROM tab0
----
4840
4840
4840

query I rowsort
SELECT ALL + 37 FROM tab2 WHERE ( + + 72 ) NOT BETWEEN col2 AND col0
----
37
37

query I rowsort
SELECT 43 * + col0 AS col2 FROM tab2
----
1978
2752
3225

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab1 WHERE NOT + + 5 * + col2 IS NOT NULL
----

query I rowsort
SELECT 2 * + 54 AS col1 FROM tab0
----
108
108
108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6857
SELECT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6857
SELECT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) <> ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6858
SELECT - col2 / CAST( NULL AS DECIMAL ) * 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT - col2 / CAST ( NULL AS REAL ) * 67 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6859
SELECT DISTINCT - + COUNT( ALL + 24 ) * - + ( - + 89 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 10 NOT IN ( + - col1 * + - col0, col0, - + col0, + + col1 + + + col0 + - CAST( NULL AS SIGNED ), - col2 + + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT - + COUNT ( ALL + 24 ) * - + ( - + 89 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 10 NOT IN ( + - col1 * + - col0, col0, - + col0, + + col1 + + + col0 + - CAST ( NULL AS INTEGER ), - col2 + + 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT 85 * COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-6860
SELECT 85 * COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6861
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * + 83 ) < - col0 + - + ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6861
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * + 83 ) < - col0 + - + ( + + CAST ( NULL AS INTEGER ) )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + COUNT( * ) * + 15 AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + COUNT ( * ) * + 15 AS col1 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT DISTINCT - + 27 * 94 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - + 27 * 94 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL 58 * - - col2 AS col1 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - ( + + COUNT( * ) ) * MAX( - 24 ) AS col0 FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - ( + + COUNT ( * ) ) * MAX ( - 24 ) AS col0 FROM tab2 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL 57 * - 82 + + COUNT( * ) * - 92 * - - 38 FROM tab1 AS cor0
----
-15162

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 57 * - 82 + + COUNT ( * ) * - 92 * - - 38 FROM tab1 AS cor0
----
-15162

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT DISTINCT - COUNT( * ) * - + SUM( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-681

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT - COUNT ( * ) * - + SUM ( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
-681

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

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT COUNT ( * ) / + COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 19 * col0 FROM tab2
----
-1216
-1425
-874

query I rowsort
SELECT ALL - + ( AVG ( ALL col0 ) ) FROM tab0 WHERE - 43 / col0 IS NULL
----
NULL

query I rowsort
SELECT ALL 15 * - 44 + col1 AS col0 FROM tab2
----
-583
-593
-609

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NULL ) ) OR - + ( + col1 ) <= - col1
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 55 * - 53 * - 74 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + - COUNT ( * ) / 24 AS col0 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6880
SELECT - ( col1 ) AS col1, 24 AS col2, + - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
9 values hashing to d5d504af08eb0ed5e6aa21fff3b3e7b5

skipif mysql # not compatible
query III rowsort label-6880
SELECT - ( col1 ) AS col1, 24 AS col2, + - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
9 values hashing to d5d504af08eb0ed5e6aa21fff3b3e7b5

query I rowsort
SELECT - 48 * + ( + 86 ) FROM tab0 cor0
----
-4128
-4128
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6882
SELECT DISTINCT CAST( + col0 AS SIGNED ), col2 * + + col0 * col0 AS col2 FROM tab2 AS cor0
----
46
48668
64
163840
75
326250

skipif mysql # not compatible
query II rowsort label-6882
SELECT DISTINCT CAST ( + col0 AS INTEGER ), col2 * + + col0 * col0 AS col2 FROM tab2 AS cor0
----
46
48668
64
163840
75
326250

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col0 col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL 10 * - - col1 AS col1 FROM tab2
----
510
670
770

onlyif mysql # DIV for integer division: 
query II rowsort label-6887
SELECT + col2 AS col0, col1 DIV - col0 - - 55 FROM tab0
----
10
55
47
50
99
55

skipif mysql # not compatible
query II rowsort label-6887
SELECT + col2 AS col0, col1 / - col0 - - 55 FROM tab0
----
10
55
47
50
99
55

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6891
SELECT + COUNT ( * ), MIN ( + + 66 ) AS col0 FROM tab0 AS cor0
----
3
66

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 25 + + 17 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 25 / 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - col0 ) * - 5 FROM tab0
----
435
485
75

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + + col0 * + col2 col0 FROM tab1 AS cor0
----
295885
420784
470016

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT ALL - ( - col2 ) * - col0 - + col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col0 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + + col1 col2 FROM tab1
----
-27
-60
-69

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

query I rowsort
SELECT DISTINCT 75 * col1 AS col1 FROM tab2
----
3825
5025
5775

query II rowsort
SELECT ALL - 53 * col2, col2 FROM tab1
----
-3127
59
-3604
68
-5088
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6908
SELECT ALL COUNT( * ) DIV - 21 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL COUNT ( * ) / - 21 AS col2 FROM tab2 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT ALL + COUNT( * ) AS col2, 59 - + 35 FROM tab2 AS cor0
----
3
24

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL + COUNT ( * ) AS col2, 59 - + 35 FROM tab2 AS cor0
----
3
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL - + 83 - + COUNT( * ) AS col0 FROM tab1 WHERE col1 / - col2 <> + 74
----
-86

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL - + 83 - + COUNT ( * ) AS col0 FROM tab1 WHERE col1 / - col2 <> + 74
----
-86

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

query III rowsort
SELECT * FROM tab1 WHERE - 58 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 16 * + ( + - 27 ) * - + 26 + + col0 * 84 FROM tab1
----
-3541
-4087
-6934

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

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

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

query II rowsort
SELECT ALL - col0, col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-51
14
-85
5
-91
47

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

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

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

query I rowsort
SELECT 98 * - - col2 FROM tab0
----
4606
9702
980

query I rowsort
SELECT col0 * + col0 * + + col0 FROM tab1
----
132651
614125
753571

query II rowsort
SELECT ALL col2 * + - col2, - col1 AS col1 FROM tab2
----
-1600
-77
-3364
-67
-529
-51

query I rowsort
SELECT 47 - + 64 AS col1 FROM tab1
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6926
SELECT ALL * FROM tab0 WHERE NULL <> + col0 - - col2 + 10 + - CAST( - - ( - 73 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6926
SELECT ALL * FROM tab0 WHERE NULL <> + col0 - - col2 + 10 + - CAST ( - - ( - 73 ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - SUM( - - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT - SUM ( - - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + 54 * col1 + 32 FROM tab0 cor0
----
1166
4406
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT - 31 DIV - - col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6929
SELECT - 31 / - - col0 FROM tab0
----
-2
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL - 86 * ( - - COUNT( DISTINCT - col1 ) ) AS col2 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL - 86 * ( - - COUNT ( DISTINCT - col1 ) ) AS col2 FROM tab1
----
-258

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6934
SELECT DISTINCT - + SUM( + CAST( + ( + - col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - + SUM ( + CAST ( + ( + - col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
156

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE - + col0 NOT BETWEEN + - 97 * - col2 - - ( + + 62 ) AND NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT DISTINCT col0 * + col0 DIV ( + - col0 ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT col0 * + col0 / ( + - col0 ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + col0 * + - ( 5 ) AS col1 FROM tab2
----
-230
-320
-375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ( MAX( col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6943
SELECT ( MAX ( col2 ) ) AS col2 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - 59 * col1 col1 FROM tab1
----
51
-826
85
-295
91
-2773

query I rowsort
SELECT + col2 * - 22 * - col2 AS col0 FROM tab0
----
215622
2200
48598

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

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

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

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

query I rowsort
SELECT - 72 * 49 + col0 * - col2 FROM tab1 cor0
----
-8424
-8543
-9716

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT - COUNT( + 36 ) FROM tab2 AS cor0 WHERE NOT col1 / - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT - COUNT ( + 36 ) FROM tab2 AS cor0 WHERE NOT col1 / - col0 IS NULL
----
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

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

query I rowsort
SELECT ALL + 39 - col2 FROM tab1 AS cor0
----
-20
-29
-57

query II rowsort
SELECT + col2 - - 54 AS col2, + 15 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
101
-33135
153
-147015
64
-1500

query I rowsort
SELECT + + col2 - 37 AS col0 FROM tab1 AS cor0
----
22
31
59

query I rowsort
SELECT DISTINCT + col2 * + ( - 12 ) FROM tab2
----
-276
-480
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT 37 DIV - col1 AS col2 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT 37 / - col1 AS col2 FROM tab1
----
-2
-7
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( - + 74 ) <> - 86 * + 17 + + col2
----

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE + + col2 <= col0 / - col2
----

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

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

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

query II rowsort
SELECT + col1 * 34 - - + col2 AS col1, + col2 FROM tab0 AS cor0
----
133
99
2801
47
724
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL + + COUNT( col0 ) AS col1 FROM tab2 AS cor0 WHERE + 82 + + col2 / - 86 * col2 + - - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL + + COUNT ( col0 ) AS col1 FROM tab2 AS cor0 WHERE + 82 + + col2 / - 86 * col2 + - - col1 IS NOT NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT - MIN( - col2 ) * - 27 + 85 col1 FROM tab1
----
-2507

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6966
SELECT - MIN ( - col2 ) * - 27 + 85 col1 FROM tab1
----
-2507

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

query I rowsort
SELECT DISTINCT - col1 * col2 + - col1 * col1 AS col2 FROM tab2
----
-3774
-8375
-9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT + CAST( col0 AS SIGNED ) + 93 AS col1 FROM tab1
----
144
178
184

skipif mysql # not compatible
query I rowsort label-6969
SELECT + CAST ( col0 AS INTEGER ) + 93 AS col1 FROM tab1
----
144
178
184

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

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

query I rowsort
SELECT ALL - col0 * - col1 FROM tab0 WHERE NULL IS NULL
----
1215
1827
97

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT - col0 * col1 IS NULL
----
-14
-47
-5

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

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

query I rowsort
SELECT - ( + 88 ) AS col0 FROM tab2
----
-88
-88
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6975
SELECT CAST( COUNT( * ) AS SIGNED ) * 50 AS col1 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-6975
SELECT CAST ( COUNT ( * ) AS INTEGER ) * 50 AS col1 FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT DISTINCT SUM( - col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6976
SELECT DISTINCT SUM ( - col1 ) col1 FROM tab1
----
-66

query I rowsort
SELECT col2 - - 47 AS col0 FROM tab2
----
105
70
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( 35 ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( 35 ) AND + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT + col0 DIV + col2 FROM tab1 WHERE ( col1 ) NOT IN ( col0 + + col0 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6979
SELECT + col0 / + col2 FROM tab1 WHERE ( col1 ) NOT IN ( col0 + + col0 )
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT DISTINCT 8 * + CAST( 84 * col0 AS SIGNED ) AS col0 FROM tab2
----
30912
43008
50400

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT 8 * + CAST ( 84 * col0 AS INTEGER ) AS col0 FROM tab2
----
30912
43008
50400

query I rowsort
SELECT DISTINCT - col1 + 42 AS col1 FROM tab1
----
-5
28
37

query III rowsort
SELECT ALL * FROM tab1 WHERE 0 + - 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 38 - 87 * col2 FROM tab1 WHERE - col2 NOT BETWEEN + 20 + - col2 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 38 - 87 * col2 FROM tab1 WHERE - col2 NOT BETWEEN + 20 + - col2 AND ( NULL )
----
NULL

query I rowsort
SELECT ALL + 40 * - col1 AS col2 FROM tab1
----
-1880
-200
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT MIN( DISTINCT 29 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-6985
SELECT MIN ( DISTINCT 29 ) FROM tab2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ( COUNT( DISTINCT - ( col2 ) ) ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6986
SELECT ( COUNT ( DISTINCT - ( col2 ) ) ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT MIN( DISTINCT - ( + 50 ) ) * - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
1150

skipif mysql # not compatible
query I rowsort label-6988
SELECT MIN ( DISTINCT - ( + 50 ) ) * - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
1150

query I rowsort
SELECT ALL col1 * - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-110
-2300
-247

query I rowsort
SELECT DISTINCT 99 * 82 AS col2 FROM tab2 AS cor0
----
8118

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6992
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST( col2 * - col0 AS SIGNED ) IN ( col2 / 52 )
----

skipif mysql # not compatible
query III rowsort label-6992
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST ( col2 * - col0 AS INTEGER ) IN ( col2 / 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6994
SELECT DISTINCT + 35 * - 97 + + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6994
SELECT DISTINCT + 35 * - 97 + + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ( COUNT( * ) ) * COUNT( * ) + + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6995
SELECT ( COUNT ( * ) ) * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT ALL 18 * + ( 11 ) + col2 AS col2 FROM tab2
----
221
238
256

query I rowsort
SELECT - 82 + col2 AS col1 FROM tab2 AS cor0
----
-24
-42
-59

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

query I rowsort
SELECT ALL 73 - 4 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE 65 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col0 - - + 41 AS col1 FROM tab1
----
126
132
92

query I rowsort
SELECT DISTINCT - 47 - - col0 + + col1 AS col2 FROM tab0
----
49
51
61

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

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

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL col2 / ( + col0 ) FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT + MIN( DISTINCT - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7005
SELECT + MIN ( DISTINCT - + col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT - MIN( ALL - - 47 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7006
SELECT - MIN ( ALL - - 47 ) FROM tab1
----
-47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 AS cor0 WHERE - col1 + - col1 * col0 NOT BETWEEN + 59 * - col1 AND NULL
----
-64
-75

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 * + + col0 + 39 FROM tab1
----
59
464
68
4316
96
753

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL - - SUM ( col0 ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 <> + 33
----

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

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

query I rowsort
SELECT 40 + 33 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col2 * col1 NOT BETWEEN ( NULL ) AND + col0 * - col1 + + col1
----

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

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

query I rowsort
SELECT ALL + - col1 * - ( + 51 ) FROM tab2 AS cor0
----
2601
3417
3927

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + col0 * - 72 FROM tab0
----
-1065
-6177
-6887

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE ( - 34 ) <> - col1 * + 3 + 66
----
23
40
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT MAX( - 23 ) + + - 75 col2 FROM tab0 cor0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7031
SELECT MAX ( - 23 ) + + - 75 col2 FROM tab0 cor0
----
-98

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

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

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

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

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

query I rowsort
SELECT 74 * - 62 + + col0 FROM tab1 AS cor0
----
-4497
-4503
-4537

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT ALL + 5 DIV - 26 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + 5 / - 26 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + - 38 FROM tab1
----
21
30
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT - col0 - + CAST( + 40 AS SIGNED ) FROM tab1 AS cor0
----
-125
-131
-91

skipif mysql # not compatible
query I rowsort label-7040
SELECT - col0 - + CAST ( + 40 AS INTEGER ) FROM tab1 AS cor0
----
-125
-131
-91

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

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL CAST ( + 60 AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT ( 62 ) - col2 FROM tab1 AS cor0
----
-34
-6
3

query I rowsort
SELECT DISTINCT - 14 + 46 FROM tab1 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7044
SELECT * FROM tab2 cor0 WHERE - + col0 = ( + - CAST( + col0 AS SIGNED ) ) AND ( 13 ) IN ( col1 + 39 * col2 )
----

skipif mysql # not compatible
query III rowsort label-7044
SELECT * FROM tab2 cor0 WHERE - + col0 = ( + - CAST ( + col0 AS INTEGER ) ) AND ( 13 ) IN ( col1 + 39 * col2 )
----

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT DISTINCT MIN( ALL + CAST( col0 AS SIGNED ) ) FROM tab0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
15

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT MIN ( ALL + CAST ( col0 AS INTEGER ) ) FROM tab0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
15

query I rowsort
SELECT + 6 FROM tab2 WHERE NOT NULL > ( + col1 )
----

query II rowsort
SELECT 11, col1 AS col2 FROM tab0
----
11
1
11
21
11
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT DISTINCT COUNT( * ), 81 AS col1 FROM tab1
----
3
81

skipif mysql # not compatible
query II rowsort label-7053
SELECT DISTINCT COUNT ( * ), 81 AS col1 FROM tab1
----
3
81

query I rowsort
SELECT 81 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL 63 - - 47 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d

query I rowsort
SELECT 43 + + col2 + - - col2 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( 74 ) >= ( NULL )
----

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

query I rowsort
SELECT 89 AS col0 FROM tab1 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + COUNT( * ) * - ( 76 ) FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + COUNT ( * ) * - ( 76 ) FROM tab1
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / col0 * - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 93 / - - col2 IS NULL
----

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

query I rowsort
SELECT + col1 * 38 + - col2 AS col0 FROM tab2
----
1915
2488
2886

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

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

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

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

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

query I rowsort
SELECT ALL 81 FROM tab0 WHERE NULL NOT BETWEEN + col2 + + ( + - col2 ) / - col2 AND NULL
----

query I rowsort
SELECT ALL + 11 + - col0 AS col1 FROM tab1
----
-40
-74
-80

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 * - 54 col2 FROM tab2 AS cor0
----
2507
3496
4108

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + COUNT( * ) + 85 - - COUNT( * ) * - 41 * COUNT( * ) FROM tab2
----
-281

skipif mysql # not compatible
query I rowsort label-7073
SELECT + COUNT ( * ) + 85 - - COUNT ( * ) * - 41 * COUNT ( * ) FROM tab2
----
-281

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT DISTINCT + col0 DIV - col1 - + + col1 AS col0, - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-46
-68
-75
-77
-64

skipif mysql # not compatible
query II rowsort label-7075
SELECT DISTINCT + col0 / - col1 - + + col1 AS col0, - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-46
-68
-75
-77
-64

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

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

query I rowsort
SELECT + col1 * - 88 FROM tab0
----
-1848
-7128
-88

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

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

query I rowsort
SELECT DISTINCT 79 * 66 FROM tab1
----
5214

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

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT - COUNT ( * ) / + 7 AS col0 FROM tab0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 = + + col0 * + - 11 + + - ( - col1 ) + - col1 + - + col0
----

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

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

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

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

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

query I rowsort
SELECT ( - col2 ) + + - 2 FROM tab0
----
-101
-12
-49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 40 * + + 80 col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

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

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

query I rowsort
SELECT + col2 + 22 FROM tab0 AS cor0 WHERE col2 / - 23 IS NOT NULL
----
121
32
69

query I rowsort
SELECT + - col0 * + - col2 FROM tab0 AS cor0
----
705
870
9603

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 95 / - 27 + col2 / 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT col0 + - col1 + col0 * 81 FROM tab1
----
4168
6965
7415

query I rowsort
SELECT - 94 FROM tab1 WHERE NULL IS NULL
----
-94
-94
-94

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

skipif mysql # not compatible
query I rowsort label-7098
SELECT + COUNT ( * ) + - 10 FROM tab2
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT + COUNT( * ) + - COUNT( + 2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT + COUNT ( * ) + - COUNT ( + 2 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 67 + + col1 FROM tab2 cor0
----
118
134
144

query I rowsort
SELECT DISTINCT + + col2 + + col0 * + - ( - ( col0 ) ) FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT ALL + col1 * + - col0 * 49 - - col0 FROM tab2 cor0
----
-114908
-241408
-246150

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7105
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - - col0 <= NULL )
----

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - - col0 <= NULL )
----

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

query I rowsort
SELECT ALL + + col1 * + col1 * + col1 * + + 87 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col0 + - col0 / - + col2 ) > col2 * - ( + col0 )
----

query I rowsort
SELECT DISTINCT 31 / - col0 + 75 + - col1 / + col2 FROM tab2 AS cor0 WHERE ( NOT + 87 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7109
SELECT * FROM tab1 cor0 WHERE NOT ( col2 + + + 96 NOT IN ( - CAST( col1 AS SIGNED ), 43 + + col1, - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-7109
SELECT * FROM tab1 cor0 WHERE NOT ( col2 + + + 96 NOT IN ( - CAST ( col1 AS INTEGER ), 43 + + col1, - col2 ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col0 NOT BETWEEN NULL AND - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 * - col2 + + col2 FROM tab1 AS cor0
----
25134
290904
68640

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 * 34 * 13 IN ( 75 / col2 / - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - COUNT( col0 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN - + 80 * + col1 AND + 71
----
0

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - COUNT ( col0 ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN - + 80 * + col1 AND + 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT ALL 61 DIV - 6 AS col2 FROM tab0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL 61 / - 6 AS col2 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT ALL - col1 * ( 94 ) AS col2 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # DIV for integer division: 
query I rowsort label-7118
SELECT col2 * 92 DIV + - col0 FROM tab2
----
-46
-57
-71

skipif mysql # not compatible
query I rowsort label-7118
SELECT col2 * 92 / + - col0 FROM tab2
----
-46
-57
-71

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

skipif mysql # not compatible
query I rowsort label-7119
SELECT + CAST ( NULL AS INTEGER ) + SUM ( ALL col2 ) AS col1 FROM tab1 WHERE NOT ( - 2 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT + 41 * + col2 * - ( CAST( - ( - 15 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-28905
-60885
-6150

skipif mysql # not compatible
query I rowsort label-7120
SELECT + 41 * + col2 * - ( CAST ( - ( - 15 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-28905
-60885
-6150

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

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

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

query I rowsort
SELECT + col1 / + - col1 + - col1 - - 92 FROM tab2 WHERE NULL BETWEEN - col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + + COUNT( * ) + + 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-7124
SELECT + + COUNT ( * ) + + 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7125
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) + - col1 * + col0 * 93 FROM tab1 AS cor0
----
-39530
-397808
-66416

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + - col1 * + col0 * 93 FROM tab1 AS cor0
----
-39530
-397808
-66416

query II rowsort
SELECT - 19 + - col2, + col2 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE ( 95 ) < - 94 * + col1
----

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) AS col2 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT - + 88 + + + col1 AS col2 FROM tab1 AS cor0
----
-41
-74
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7130
SELECT + CAST( NULL AS SIGNED ) / - - MAX( + 96 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT + CAST ( NULL AS INTEGER ) / - - MAX ( + 96 ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7131
SELECT DISTINCT 14 DIV ( + + 6 ) AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT 14 / ( + + 6 ) AS col0 FROM tab2
----
2

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

query I rowsort
SELECT ALL 69 + - col2 FROM tab0
----
-30
22
59

query I rowsort
SELECT ALL + col2 + + col1 - - 21 AS col1 FROM tab0
----
121
149
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT COUNT( * ) - 25 AS col1 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT COUNT ( * ) - 25 AS col1 FROM tab0 AS cor0
----
-22

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

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

query II rowsort
SELECT DISTINCT + ( - col0 ) AS col1, 16 AS col0 FROM tab0
----
-15
16
-87
16
-97
16

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

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

query I rowsort
SELECT + col2 * - ( col2 ) + + 49 + - col0 + - col0 * - col2 FROM tab1 AS cor0
----
-4322
1498
1522

query I rowsort
SELECT ALL - col2 * + + col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7141
SELECT 12 AS col0, + CAST( CAST( 52 AS SIGNED ) AS SIGNED ) + + col2 + col2 + - col0 AS col1 FROM tab0
----
12
-15
12
131
12
153

skipif mysql # not compatible
query II rowsort label-7141
SELECT 12 AS col0, + CAST ( CAST ( 52 AS INTEGER ) AS INTEGER ) + + col2 + col2 + - col0 AS col1 FROM tab0
----
12
-15
12
131
12
153

query I rowsort
SELECT DISTINCT - - col2 - col2 FROM tab2 WHERE ( col1 = + - ( - ( - ( + + 7 ) ) ) )
----

query II rowsort
SELECT ALL 59, - col2 + + 17 AS col2 FROM tab2
----
59
-23
59
-41
59
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7144
SELECT DISTINCT 71 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7144
SELECT DISTINCT 71 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
71
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN + 86 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT DISTINCT - SUM( ALL + - 15 ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT - SUM ( ALL + - 15 ) AS col1 FROM tab2
----
45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7147
SELECT ALL - CAST ( col2 AS INTEGER ) col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 78 col1 FROM tab2 cor0 WHERE NOT - col1 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT 67 + - MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7149
SELECT 67 + - MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
44

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

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

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

query I rowsort
SELECT ALL + 33 + - 80 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + - 24 + 17 * COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - 24 + 17 * COUNT ( * ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT col2 * - col1 + - 74 + + col1 AS col2 FROM tab0 AS cor0 WHERE + 63 <= NULL
----

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE col1 = - - 50
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT DISTINCT 66 / - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT 66 / - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + + col0 - col2 + col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT + 41 - MAX( DISTINCT - - col0 ) col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7160
SELECT + 41 - MAX ( DISTINCT - - col0 ) col1 FROM tab0 AS cor0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT 55 * - col0 * + col2 DIV col2 - 90 AS col0 FROM tab2 AS cor0
----
-2620
-3610
-4215

skipif mysql # not compatible
query I rowsort label-7161
SELECT 55 * - col0 * + col2 / col2 - 90 AS col0 FROM tab2 AS cor0
----
-2620
-3610
-4215

onlyif mysql # DIV for integer division: 
query II rowsort label-7162
SELECT ALL + col2 - 6 AS col2, - col2 + + 98 + col2 DIV + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
17
75
34
58
52
40

skipif mysql # not compatible
query II rowsort label-7162
SELECT ALL + col2 - 6 AS col2, - col2 + + 98 + col2 / + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
17
75
34
58
52
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT + - MAX( ALL + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT + - MAX ( ALL + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

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

query I rowsort
SELECT 9 + + + ( - 38 ) FROM tab2
----
-29
-29
-29

query I rowsort
SELECT col2 + - 53 * - col0 FROM tab1
----
2799
4564
4891

query I rowsort
SELECT DISTINCT - 67 + + col2 - - - col0 AS col2 FROM tab0
----
-144
-35
-65

query II rowsort
SELECT - col0, 77 * - col2 AS col1 FROM tab2 AS cor0
----
-46
-1771
-64
-3080
-75
-4466

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

query I rowsort
SELECT - ( - 43 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 67 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT + 48 * - COUNT( * ) + + 72 * ( + 87 ) AS col0 FROM tab1 AS cor0
----
6120

skipif mysql # not compatible
query I rowsort label-7174
SELECT + 48 * - COUNT ( * ) + + 72 * ( + 87 ) AS col0 FROM tab1 AS cor0
----
6120

query II rowsort
SELECT 45, 94 AS col0 FROM tab0 AS cor0
----
45
94
45
94
45
94

query II rowsort
SELECT DISTINCT 60 AS col2, + 28 AS col2 FROM tab0 AS cor0
----
60
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col1 FROM tab2 cor0 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT ALL + col0 * + + 91 * - 19 AS col2 FROM tab2 AS cor0
----
-110656
-129675
-79534

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL COUNT( DISTINCT col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + 61 * + col1 FROM tab2 AS cor0
----
3111
4087
4697

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

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL ( + COUNT ( ALL - + col0 ) ) * - 67 FROM tab1 AS cor0
----
-201

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL SUM( + col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL SUM ( + col0 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE + col2 NOT BETWEEN + col2 AND - 91
----
59
68
96

query I rowsort
SELECT DISTINCT - 52 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - 34 * - + col2 FROM tab2
----
1360
1972
782

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT 17 - - - COUNT( + 47 ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-7190
SELECT 17 - - - COUNT ( + 47 ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
14

query II rowsort
SELECT 59 * 73 * - 93 + + col1, 10 + - col0 AS col2 FROM tab2
----
-400474
-54
-400484
-65
-400500
-36

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

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

query I rowsort
SELECT ALL col2 - 70 AS col0 FROM tab2 AS cor0
----
-12
-30
-47

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

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

query I rowsort
SELECT ALL - 57 + - 39 AS col1 FROM tab2 cor0
----
-96
-96
-96

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL <= + col2
----

query I rowsort
SELECT ALL - 33 - + col0 FROM tab0 AS cor0
----
-120
-130
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 74 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT DISTINCT + 55 FROM tab2 WHERE NOT NULL <> + 72 / + col1 + + + col1 * + 56 + col2 + - CAST( NULL AS SIGNED ) * - col2 + + col1 + + - col1
----

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT + 55 FROM tab2 WHERE NOT NULL <> + 72 / + col1 + + + col1 * + 56 + col2 + - CAST ( NULL AS INTEGER ) * - col2 + + col1 + + - col1
----

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

query II rowsort
SELECT - ( + + col1 ) AS col2, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT ALL + 33 * - - 58 FROM tab1
----
1914
1914
1914

query I rowsort
SELECT ( + + 43 ) * - 33 + - + 71 AS col2 FROM tab2
----
-1490
-1490
-1490

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT col1 DIV 26 * - - col1 - 12 FROM tab1
----
-12
-12
35

skipif mysql # not compatible
query I rowsort label-7204
SELECT col1 / 26 * - - col1 - 12 FROM tab1
----
-12
-12
35

query II rowsort
SELECT DISTINCT + 39 * - 54, col0 + + - 13 - ( - + col0 ) AS col1 FROM tab0
----
-2106
161
-2106
17
-2106
181

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7206
SELECT * FROM tab1 WHERE NOT + - ( col2 ) <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7206
SELECT * FROM tab1 WHERE NOT + - ( col2 ) <= + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 ) OR NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE + 5 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 3 / - 15, col1 + ( col1 ), 14 / + 71 * - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT + 26 * + + COUNT( DISTINCT + + col0 ) * - COUNT( * ) FROM tab0 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7211
SELECT + 26 * + + COUNT ( DISTINCT + + col0 ) * - COUNT ( * ) FROM tab0 cor0
----
-234

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7214
SELECT DISTINCT MAX( - + CAST( - - 38 AS SIGNED ) ) FROM tab2 AS cor0
----
-38

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT ALL + 38, - COUNT( * ) * + 18 AS col2 FROM tab2 AS cor0
----
38
-54

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL + 38, - COUNT ( * ) * + 18 AS col2 FROM tab2 AS cor0
----
38
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT + COUNT( * ) AS col1, MAX( + col2 ) AS col1 FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-7216
SELECT + COUNT ( * ) AS col1, MAX ( + col2 ) AS col1 FROM tab0
----
3
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7217
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / + + 79 + - col1 + col0 * + col1 BETWEEN col0 + CAST( col2 AS DECIMAL ) * + + col1 / col1 AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7217
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / + + 79 + - col1 + col0 * + col1 BETWEEN col0 + CAST ( col2 AS REAL ) * + + col1 / col1 AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE + + ( + - col0 ) + - + 44 > + col2
----

query I rowsort
SELECT ALL - 73 + - + col2 FROM tab1
----
-132
-141
-169

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

query I rowsort
SELECT + - col1 + + col0 AS col2 FROM tab2 WHERE + 9 / - col2 + + + 71 + - col1 >= NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - + 37 + + 95 IS NULL AND + 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - + 51 AS col1 FROM tab0 AS cor0
----
-30
-50
30

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

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

query I rowsort
SELECT + 65 + col1 - + 37 + + col0 AS col2 FROM tab0 AS cor0
----
124
126
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT - MIN( DISTINCT + 81 ) - - + CAST( + ( + 22 ) AS SIGNED ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7228
SELECT - MIN ( DISTINCT + 81 ) - - + CAST ( + ( + 22 ) AS INTEGER ) FROM tab0 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT + 17 - - - MIN( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - 25 - - COUNT( * ) + - 71 col2 FROM tab2 cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7230
SELECT - 25 - - COUNT ( * ) + - 71 col2 FROM tab2 cor0
----
-93

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7232
SELECT 28 - - 59, col1 + 65 DIV 87 + + col0 * - + col0 AS col0 FROM tab1 AS cor0
----
87
-2587
87
-7220
87
-8234

skipif mysql # not compatible
query II rowsort label-7232
SELECT 28 - - 59, col1 + 65 / 87 + + col0 * - + col0 AS col0 FROM tab1 AS cor0
----
87
-2587
87
-7220
87
-8234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT 84 * CAST( col2 AS SIGNED ) * + 68 - + 1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
337007
388415
548351

skipif mysql # not compatible
query I rowsort label-7233
SELECT 84 * CAST ( col2 AS INTEGER ) * + 68 - + 1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
337007
388415
548351

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + 78 * col2 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT 9 * + col0 AS col0 FROM tab1
----
459
765
819

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + 98 AND - 22 * + - ( - + 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - MIN( DISTINCT - 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7242
SELECT - MIN ( DISTINCT - 0 ) FROM tab2
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7243
SELECT DISTINCT MIN ( col0 ) col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 WHERE NOT + 79 + col0 > + col2 * 24 + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 62 + 97 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7247
SELECT ALL + CAST( - col0 AS SIGNED ) DIV col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + CAST ( - col0 AS INTEGER ) / col1 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT COUNT( * ) - - 6 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7248
SELECT COUNT ( * ) - - 6 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT ALL + 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - + 29 * 1 + col1 / + + col2, 33 )
----

query I rowsort
SELECT + - ( + + 35 ) * + col1 FROM tab1 AS cor0
----
-1645
-175
-490

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT ALL + MIN( DISTINCT - 85 ) AS col1, + 70 FROM tab2 AS cor0
----
-85
70

skipif mysql # not compatible
query II rowsort label-7252
SELECT ALL + MIN ( DISTINCT - 85 ) AS col1, + 70 FROM tab2 AS cor0
----
-85
70

query I rowsort
SELECT + - col1 * + 60 * - - ( - - 79 ) + - 96 + - col0 FROM tab0 AS cor0
----
-384051
-4933
-99723

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

query II rowsort
SELECT ALL ( col2 ), + col1 - 61 + col1 * - + col0 FROM tab0 cor0
----
10
-1867
47
-1195
99
-157

query I rowsort
SELECT + ( + + ( + col2 ) ) + ( + col2 ) FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + 36 * + ( + 1 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT - col0 - + + 16 - + + 6 DIV + col0 AS col1 FROM tab2 cor0
----
-62
-80
-91

skipif mysql # not compatible
query I rowsort label-7259
SELECT - col0 - + + 16 - + + 6 / + col0 AS col1 FROM tab2 cor0
----
-62
-80
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7260
SELECT DISTINCT + CAST( 60 AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
60

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + CAST ( 60 AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
60

query III rowsort
SELECT * FROM tab1 WHERE ( - + col0 + + col1 + + - 21 ) BETWEEN - col2 AND + col1 + + col0 - + + col0
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT + 34 - + col2 - col1 FROM tab2
----
-40
-83
-91

query I rowsort
SELECT col0 * - 45 + + - 52 AS col2 FROM tab0 AS cor0
----
-3967
-4417
-727

query II rowsort
SELECT ALL + col0 + + 88 AS col1, - col2 FROM tab2 AS cor0
----
134
-23
152
-40
163
-58

query II rowsort
SELECT - + col2 AS col2, - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-10
-210
-47
-3807
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL + col0 * + 42 + + CAST( - - 22 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE col1 * - + col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7266
SELECT ALL + col0 * + 42 + + CAST ( - - 22 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE col1 * - + col0 IS NULL
----

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

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

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

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

query I rowsort
SELECT + - col1 * + 84 AS col0 FROM tab1 AS cor0
----
-1176
-3948
-420

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

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

query II rowsort
SELECT DISTINCT + col1 * - col1, col2 FROM tab1
----
-196
96
-2209
68
-25
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7273
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( + + col2 ) AS col1, 75 * - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7273
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( + + col2 ) AS col1, 75 * - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL

query I rowsort
SELECT + col1 * col2 * - - 25 AS col1 FROM tab2
----
29325
77000
97150

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NULL BETWEEN - + 65 AND ( + 22 + + col2 )
----

query I rowsort
SELECT + col0 * - - col0 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT - MIN( + + col2 ) FROM tab1 WHERE NOT NULL NOT IN ( 76, - col2, - ( 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT - MIN ( + + col2 ) FROM tab1 WHERE NOT NULL NOT IN ( 76, - col2, - ( 48 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT SUM( + 42 ) col2, 77 FROM tab1
----
126
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7278
SELECT SUM ( + 42 ) col2, 77 FROM tab1
----
126
77

query I rowsort
SELECT DISTINCT + 44 * + 99 AS col1 FROM tab2
----
4356

query I rowsort
SELECT ALL - 11 * 89 * + 64 AS col1 FROM tab1
----
-62656
-62656
-62656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN col0 AND + col2 / - col0 * - 93 + ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7282
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN col0 AND + col2 / - col0 * - 93 + ( + col1 )
----
0

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

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col1 FROM tab1 cor0
----
102
170
182

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

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

query I rowsort
SELECT ALL + - 98 * ( + col0 ) * + col2 - - - col1 AS col2 FROM tab2 AS cor0
----
-103735
-250957
-426367

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 64 BETWEEN col2 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-7288
SELECT + + col0 / 87 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 71 * - col2 AS col0 FROM tab0 AS cor0
----
-3337
-7029
-710

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 4 + + 53 AS col0 FROM tab2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7297
SELECT - col0 + - + col2 DIV col1 FROM tab1
----
-57
-92
-96

skipif mysql # not compatible
query I rowsort label-7297
SELECT - col0 + - + col2 / col1 FROM tab1
----
-57
-92
-96

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - 12 * - ( - col2 ) - col1
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7303
SELECT ( - - COUNT ( - - ( + 87 ) ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - - col2 * col0 * col2 + + col0 FROM tab0 AS cor0
----
33150
8787
950794

query II rowsort
SELECT DISTINCT 62, - ( ( + 55 ) ) AS col2 FROM tab2
----
62
-55

query I rowsort
SELECT + 12 * - + col0 FROM tab0
----
-1044
-1164
-180

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 76 + - - col2 IS NULL
----

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

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

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

query I rowsort
SELECT + + 54 + + - ( - col0 ) * + col1 + + col1 * + col2 + + - col0 FROM tab1 WHERE NOT - col2 IS NULL
----
2061
689
7436

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - col1 ) <> 90 * - - col2
----

query I rowsort
SELECT ALL + 73 * col0 FROM tab0
----
1095
6351
7081

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7316
SELECT ALL + SUM ( ALL 52 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT + 82 + - 91 + - COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7317
SELECT + 82 + - 91 + - COUNT ( * ) FROM tab2 AS cor0
----
-12

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

skipif mysql # not compatible
query I rowsort label-7318
SELECT - + 47 + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-44

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

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

query I rowsort
SELECT DISTINCT + col0 - + + col0 / - col2 FROM tab0 cor0 WHERE NOT ( ( 48 IS NOT NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT DISTINCT col2 DIV - + col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT col2 / - + col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT ALL + + col0 * + col0 + - col2 FROM tab0 cor0
----
178
7559
9310

query I rowsort
SELECT 67 FROM tab2 cor0 WHERE col2 * + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL 96 + + + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL 96 + + + COUNT ( * ) FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7325
SELECT 23 DIV + - COUNT( col1 ) AS col1 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-7325
SELECT 23 / + - COUNT ( col1 ) AS col1 FROM tab2
----
-7

query I rowsort
SELECT DISTINCT - 67 + - + col1 AS col2 FROM tab2
----
-118
-134
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL - SUM( DISTINCT + - col0 ) + - 35 AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - SUM ( DISTINCT + - col0 ) + - 35 AS col1 FROM tab1
----
192

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

query I rowsort
SELECT ALL - col1 - col1 * + col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT ALL - + 9 * 88 * 83 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 041a45d70d06cc48df1d1766601691fe

query I rowsort
SELECT - ( 86 ) + + col2 FROM tab0
----
-39
-76
13

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT + MIN( DISTINCT + col1 ) AS col2, 18 + + + COUNT( * ) FROM tab1
----
5
21

skipif mysql # not compatible
query II rowsort label-7333
SELECT + MIN ( DISTINCT + col1 ) AS col2, 18 + + + COUNT ( * ) FROM tab1
----
5
21

query I rowsort
SELECT - col0 * - + 62 FROM tab1 WHERE NOT ( NOT col0 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > 18
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT - 44 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT - 44 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col0 * - col1 AS col0 FROM tab0
----
15
-1215
87
-1827
97
-97

query II rowsort
SELECT DISTINCT + col0, col2 + + col0 AS col2 FROM tab0 WHERE - - col2 - - + col0 * - col1 IS NOT NULL
----
15
62
87
97
97
196

query I rowsort
SELECT col0 * col1 * 7 * + col1 AS col0 FROM tab2
----
2356725
2656192
837522

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7342
SELECT DISTINCT - 64 AS col0, - ( CAST ( - COUNT ( * ) AS INTEGER ) ) col2 FROM tab1 cor0
----
-64
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7343
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) NOT IN ( - + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7343
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) NOT IN ( - + col0 ) )
----

query I rowsort
SELECT DISTINCT - 45 + col0 AS col2 FROM tab2
----
1
19
30

query I rowsort
SELECT DISTINCT - - col1 * + - 59 * col1 + col0 + - + 77 AS col2 FROM tab0 AS cor0
----
-26009
-387161
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col2 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 40 * + col1 AS col2 FROM tab0 AS cor0
----
-3240
-40
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT col1 - - col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT col1 - - col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT - col0 * + col2 - - col0 DIV + col2 FROM tab0 AS cor0
----
-705
-862
-9603

skipif mysql # not compatible
query I rowsort label-7349
SELECT - col0 * + col2 - - col0 / + col2 FROM tab0 AS cor0
----
-705
-862
-9603

query III rowsort
SELECT ALL - col0 AS col2, + col0 AS col0, - 9 * + col2 + + 48 * col2 * + + col0 * + + 90 + 33 FROM tab0 AS cor0
----
9 values hashing to b61727e9146c0de89c9314a36036dce4

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - + COUNT( * ) - ( - 78 ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7351
SELECT - + COUNT ( * ) - ( - 78 ) AS col2 FROM tab1 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 WHERE ( 6 NOT BETWEEN + col0 + col1 AND - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 44 AS col1 FROM tab0 WHERE + 50 IS NOT NULL
----
44
44
44

query I rowsort
SELECT ALL - col0 * + + col1 + col1 - + ( - ( col1 ) ) * + 56 FROM tab2
----
-1206
-539
561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7355
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7355
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 64 / - 12 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE 48 + + - col0 * 5 IS NULL
----

query I rowsort
SELECT ALL + 17 - col1 FROM tab2 cor0
----
-34
-50
-60

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN NULL AND + col2 - + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 79 ) FROM tab2
----
79
79
79

query II rowsort
SELECT col1, - col2 - - - col0 + 1 FROM tab0 cor0
----
1
-195
21
-96
81
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 BETWEEN + col2 AND + 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT DISTINCT 70 + - - ( - - 96 ) + - 7 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 * ( + CAST( + col0 AS SIGNED ) ) AND - 26
----

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT 70 + - - ( - - 96 ) + - 7 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 * ( + CAST ( + col0 AS INTEGER ) ) AND - 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 25 col0 FROM tab1 AS cor0
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT MAX( col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7367
SELECT MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL - + COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL - + COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 97 * + + col0 FROM tab2 AS cor0
----
-4462
-6208
-7275

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT + + col1 DIV + ( + - 96 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7370
SELECT + + col1 / + ( + - 96 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - ( 6 ) FROM tab0 AS cor0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col0 + col2 + + col0 )
----

query I rowsort
SELECT DISTINCT + col2 * - - 43 * col0 AS col2 FROM tab2 AS cor0
----
110080
187050
45494

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL - COUNT( - 48 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - COUNT ( - 48 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ( COUNT( * ) ) FROM tab1 WHERE NOT - 2 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT ( COUNT ( * ) ) FROM tab1 WHERE NOT - 2 > ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( + col0 ) / + - col0 - - + col0
----

query I rowsort
SELECT DISTINCT ( 58 ) AS col0 FROM tab0
----
58

query I rowsort
SELECT ALL - col0 + col0 * - + col1 + - col1 * + + ( - + 99 ) AS col1 FROM tab0
----
-95
165
6789

query I rowsort
SELECT ALL col0 + col1 * - - col1 AS col0 FROM tab2
----
2647
4564
5993

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col2, col1 + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT DISTINCT CAST( ( - - 3 ) AS SIGNED ) + + - MAX( ALL - col0 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT CAST ( ( - - 3 ) AS INTEGER ) + + - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT - col2 DIV + 7 AS col1 FROM tab1
----
-13
-8
-9

skipif mysql # not compatible
query I rowsort label-7382
SELECT - col2 / + 7 AS col1 FROM tab1
----
-13
-8
-9

query I rowsort
SELECT 9 * + col2 * - 80 * 73 + col0 AS col2 FROM tab1
----
-3100955
-3573989
-5045709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT + col2 * + + col2 * 1 * - 37 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-124393
-19527
-59136

skipif mysql # not compatible
query I rowsort label-7384
SELECT + col2 * + + col2 * 1 * - 37 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-124393
-19527
-59136

query I rowsort
SELECT ALL - col1 - 74 * - ( + col2 ) + - 22 * col1 - col2 FROM tab1 WHERE NULL IS NULL
----
3883
4192
6686

query I rowsort
SELECT DISTINCT + col0 * 47 FROM tab0
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT MIN( - col2 ) * - 82 FROM tab2
----
4756

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT MIN ( - col2 ) * - 82 FROM tab2
----
4756

query II rowsort
SELECT ALL - + col0 + + 99 AS col2, col0 FROM tab2 WHERE NOT 9 <> - + 36
----

query I rowsort
SELECT 31 - + col1 * col0 FROM tab2
----
-2315
-4897
-4994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - 3 AS col0 FROM tab1
----
-51
-3
-85
-3
-91
-3

query I rowsort
SELECT DISTINCT col1 - ( + + col2 ) FROM tab2
----
28
37
9

query I rowsort
SELECT + + 0 AS col2 FROM tab1 AS cor0 WHERE + 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL + 8 + MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + 8 + MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
18

query II rowsort
SELECT ALL col0 AS col1, - 4 FROM tab0 AS cor0
----
15
-4
87
-4
97
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + - COUNT( + 73 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7395
SELECT + - COUNT ( + 73 ) col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 * - 66 + - col0 + + col0 * - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7397
SELECT + col0 DIV + col0 + + col2 * col2 FROM tab2 AS cor0
----
1601
3365
530

skipif mysql # not compatible
query I rowsort label-7397
SELECT + col0 / + col0 + + col2 * col2 FROM tab2 AS cor0
----
1601
3365
530

query I rowsort
SELECT ALL + 94 AS col0 FROM tab1 AS cor0 WHERE col1 + 82 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7399
SELECT - 71 DIV + - 73, + col0 AS col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-7399
SELECT - 71 / + - 73, + col0 AS col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 * 35 col2, col0 AS col0 FROM tab1 AS cor0
----
2065
85
2380
91
3360
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7401
SELECT + 76 DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7401
SELECT + 76 / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT - MIN( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL + COUNT( * ) col1 FROM tab2 WHERE - + ( + 85 ) < + col1 * + 40 + - ( - 16 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7403
SELECT ALL + COUNT ( * ) col1 FROM tab2 WHERE - + ( + 85 ) < + col1 * + 40 + - ( - 16 )
----
3

query I rowsort
SELECT DISTINCT + 66 * + - 22 FROM tab2
----
-1452

query I rowsort
SELECT DISTINCT + col0 * - + col1 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7406
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) * - 24 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) * - 24 FROM tab1
----
NULL

query I rowsort
SELECT 0 AS col2 FROM tab2 WHERE NOT ( ( - 33 ) < col0 + - col0 / + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT ALL ( + col1 ) + + col0 DIV + + 18 AS col1 FROM tab1 AS cor0
----
16
52
9

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL ( + col1 ) + + col0 / + + 18 AS col1 FROM tab1 AS cor0
----
16
52
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 32 ) > - col2 + + col2 * + col1
----

query I rowsort
SELECT DISTINCT col1 * - col1 + + 29 FROM tab0
----
-412
-6532
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT 39 * ( - 31 * - COUNT( * ) ) AS col2 FROM tab2
----
3627

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT 39 * ( - 31 * - COUNT ( * ) ) AS col2 FROM tab2
----
3627

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL COUNT( ALL - 4 ) * - MAX( col1 ) AS col1 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL COUNT ( ALL - 4 ) * - MAX ( col1 ) AS col1 FROM tab1
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL + 42 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL + 42 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL >= 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT + COUNT( * ) FROM tab0 WHERE NOT 80 NOT BETWEEN NULL AND ( + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 80 NOT BETWEEN NULL AND ( + 38 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT DISTINCT - COUNT( * ) DIV 31 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT - COUNT ( * ) / 31 FROM tab2
----
0

query I rowsort
SELECT ALL + 13 * - col2 AS col0 FROM tab2
----
-299
-520
-754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 54 + + col1 AS col2 FROM tab1
----
-40
-49
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT DISTINCT + ( col0 ) DIV ( + 73 * col1 ) AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT + ( col0 ) / ( + 73 * col1 ) AS col0 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT col0 AS col1 FROM tab0 WHERE NOT + col0 DIV - 68 NOT IN ( - col1 )
----
97

skipif mysql # not compatible
query I rowsort label-7422
SELECT col0 AS col1 FROM tab0 WHERE NOT + col0 / - 68 NOT IN ( - col1 )
----
97

query I rowsort
SELECT col0 * - 12 FROM tab2
----
-552
-768
-900

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE ( col2 ) = + ( - 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT 32 + + 37 * + SUM( - 44 * - col2 ) col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7425
SELECT 32 + + 37 * + SUM ( - 44 * - col2 ) col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + SUM( DISTINCT 28 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-7426
SELECT + SUM ( DISTINCT 28 ) FROM tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + COUNT( * ) * + 31 AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7428
SELECT + COUNT ( * ) * + 31 AS col2 FROM tab0 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0 WHERE + col1 + + col2 BETWEEN - col1 * - col1 AND col2 * - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7429
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE + col1 + + col2 BETWEEN - col1 * - col1 AND col2 * - col1
----

query I rowsort
SELECT ALL 19 * - 2 AS col2 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7431
SELECT - MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT + - COUNT( col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7433
SELECT + - COUNT ( col0 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL 90 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL 90 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL 73 * - col0 AS col0 FROM tab2 cor0
----
-3358
-4672
-5475

query I rowsort
SELECT - col0 * col2 + 35 FROM tab2 AS cor0
----
-1023
-2525
-4315

query I rowsort
SELECT 48 * 48 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 18
----

query I rowsort
SELECT ALL + ( - 16 ) * col0 FROM tab2 AS cor0
----
-1024
-1200
-736

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT DISTINCT - 59 DIV col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT - 59 / col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT ALL CAST( - col0 AS SIGNED ) AS col1 FROM tab2 WHERE - col1 > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 WHERE - col1 > ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col0 * col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 3 AS col2 FROM tab0
----
-243
-3
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7443
SELECT * FROM tab2 WHERE - CAST( - 90 AS SIGNED ) + - col2 BETWEEN NULL AND ( - 6 * - 39 )
----

skipif mysql # not compatible
query III rowsort label-7443
SELECT * FROM tab2 WHERE - CAST ( - 90 AS INTEGER ) + - col2 BETWEEN NULL AND ( - 6 * - 39 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 + col1 ) IS NULL
----

query I rowsort
SELECT - col2 * - col0 * - col0 AS col2 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE col1 > - col0
----
14
47
5

query I rowsort
SELECT ALL - col0 + + 7 + col1 AS col2 FROM tab1
----
-30
-37
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT - COUNT( DISTINCT - - 88 ) * + 53 AS col0 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7448
SELECT - COUNT ( DISTINCT - - 88 ) * + 53 AS col0 FROM tab0
----
-53

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 <= ( - col1 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( 35 )
----
3

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( 35 )
----
3

query I rowsort
SELECT ALL - 23 + - + col0 FROM tab2 AS cor0
----
-69
-87
-98

query I rowsort
SELECT DISTINCT 90 * 21 FROM tab0 AS cor0 WHERE NOT ( - 21 + - col0 * 46 ) IS NULL
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7453
SELECT * FROM tab0 cor0 WHERE + 46 + CAST( NULL AS SIGNED ) BETWEEN col1 AND + col1 + + 26
----

skipif mysql # not compatible
query III rowsort label-7453
SELECT * FROM tab0 cor0 WHERE + 46 + CAST ( NULL AS INTEGER ) BETWEEN col1 AND + col1 + + 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT DISTINCT - col1 DIV + + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT - col1 / + + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT - 95 - CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-146
-162
-172

skipif mysql # not compatible
query I rowsort label-7455
SELECT - 95 - CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-146
-162
-172

query I rowsort
SELECT 73 + + + col1 FROM tab0
----
154
74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT SUM( + 73 ) + + + ( MIN( + col1 ) ) AS col1 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-7457
SELECT SUM ( + 73 ) + + + ( MIN ( + col1 ) ) AS col1 FROM tab2
----
270

query I rowsort
SELECT ALL + col0 + - col2 * - 5 FROM tab1 AS cor0
----
380
431
531

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT + COUNT( - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + COUNT ( - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE 41 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) >= + 50
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 99 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT ALL - ( + COUNT( * ) ) AS col0, + 38 AS col2 FROM tab2
----
-3
38

skipif mysql # not compatible
query II rowsort label-7463
SELECT ALL - ( + COUNT ( * ) ) AS col0, + 38 AS col2 FROM tab2
----
-3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL + MAX( ( col1 ) ) AS col0 FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN ( col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + MAX ( ( col1 ) ) AS col0 FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN ( col1 ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 96 * - 96, 14 AS col2 FROM tab2
----
9216
14
9216
14
9216
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + COUNT( ALL - ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + COUNT ( ALL - ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 92 )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 93
----

query I rowsort
SELECT + 85 - - 15 FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( + - col1 ) / - 65 * col1 - - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT MIN( ALL + - 19 ) AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7470
SELECT MIN ( ALL + - 19 ) AS col1 FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - col0 + - - 14 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 + - - 14 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1 + col0
----
0

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1 + col0
----
0

query II rowsort
SELECT col1 AS col1, - 41 + + col2 FROM tab1 AS cor0
----
14
55
47
27
5
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ALL + - 39 * - 28 * - + col1 * + col0 FROM tab1 AS cor0
----
-464100
-4670484
-779688

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col1 + + - col0 IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT + + col1 DIV col2 DIV - + col1 * - - ( + - col2 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT + + col1 / col2 / - + col1 * - - ( + - col2 ) FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + 35 * col2 AS col0, col0 AS col2 FROM tab1
----
2065
85
2380
91
3360
51

query II rowsort
SELECT - col2 AS col2, ( col0 ) AS col0 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL + col2 * col0 * col2 AS col0 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - col2 * - col0 ) <> col0 )
----

query II rowsort
SELECT DISTINCT - 86, - col1 AS col0 FROM tab1
----
-86
-14
-86
-47
-86
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE - - 56 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE - - 56 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - 63 FROM tab0 WHERE 79 + ( - + col0 ) IS NOT NULL
----
-63
-63
-63

query I rowsort
SELECT - col1 * - 51 FROM tab0 WHERE - - 76 > + - col0 - + col1
----
1071
4131
51

query I rowsort
SELECT col0 + col0 FROM tab1 WHERE col1 = - col0
----

query I rowsort
SELECT + col2 + - ( 44 ) AS col0 FROM tab0 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT + + 88 * 36 + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 99 / - col0 = col0 * col2
----
3168

skipif mysql # not compatible
query I rowsort label-7488
SELECT + + 88 * 36 + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 99 / - col0 = col0 * col2
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - COUNT( * ) * 88 AS col0 FROM tab1 cor0 WHERE col0 * - 18 * - col0 < + 56 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT - COUNT ( * ) * 88 AS col0 FROM tab1 cor0 WHERE col0 * - 18 * - col0 < + 56 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7490
SELECT + MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 47 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL + 78 * + - MIN( ALL 99 ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL + 78 * + - MIN ( ALL 99 ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE ( NOT 25 <= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7494
SELECT ALL CAST( + - AVG ( + col1 ) AS SIGNED ) - + SUM( + + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL CAST ( + - AVG ( + col1 ) AS INTEGER ) - + SUM ( + + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
-85

query I rowsort
SELECT - 23 - + 58 AS col2 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL + 6 AS col2 FROM tab1 cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL - SUM( ALL + ( - - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL - SUM ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT DISTINCT + - col1 DIV col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + - col1 / col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 52 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 52 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7500
SELECT MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT - SUM( - ( + + col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT - SUM ( - ( + + col0 ) ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT - 68 col0, COUNT( * ) FROM tab1
----
-68
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7502
SELECT - 68 col0, COUNT ( * ) FROM tab1
----
-68
3

query I rowsort
SELECT ALL + - 19 AS col2 FROM tab0 WHERE NOT NULL <> + 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT col2 DIV + 88 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT col2 / + 88 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( + - col1 ) + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col2 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT DISTINCT - ( - col2 ) * + 89 AS col0 FROM tab0 cor0 WHERE + col0 < - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL COUNT( * ) * 91 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL COUNT ( * ) * 91 FROM tab0 AS cor0
----
273

query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

query I rowsort
SELECT ALL 65 + - - col0 AS col0 FROM tab0
----
152
162
80

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 30 * 84 + + col2 ) NOT IN ( 39 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT ALL col2 * col1 + col1 * + + 54 - + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7513
SELECT ALL col2 * col1 + col1 * + + 54 - + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT - 12 DIV + col0 * - + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7514
SELECT - 12 / + col0 * - + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT - 41 + + - 44 AS col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-85
9

skipif mysql # not compatible
query II rowsort label-7515
SELECT - 41 + + - 44 AS col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-85
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7516
SELECT ALL - 32 + + col0 col1, CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
19
51
53
85
59
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7516
SELECT ALL - 32 + + col0 col1, CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
19
51
53
85
59
91

query I rowsort
SELECT ALL + col2 * - - 86 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4042
8514
860

query I rowsort
SELECT + 27 + 10 AS col2 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT + + MAX( + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + + MAX ( + col1 ) AS col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 - + + 41 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( - 43 + + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT + 19 * COUNT( * ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-7522
SELECT + 19 * COUNT ( * ) AS col0 FROM tab1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL 86 + - COUNT( * ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL 86 + - COUNT ( * ) FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT ( + CAST( - + CAST( + - col1 AS SIGNED ) AS SIGNED ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7524
SELECT ( + CAST ( - + CAST ( + - col1 AS INTEGER ) AS INTEGER ) ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT MAX( ALL + 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7525
SELECT MAX ( ALL + 8 ) FROM tab1
----
8

query I rowsort
SELECT col0 * 35 AS col2 FROM tab0
----
3045
3395
525

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 * - col1 - + + col0, + col0 col2 FROM tab0 cor0
----
-1230
15
-1914
87
-194
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT - 17 + - COUNT( * ) DIV ( - 28 ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-7529
SELECT - 17 + - COUNT ( * ) / ( - 28 ) FROM tab2
----
-17

query III rowsort
SELECT * FROM tab1 WHERE - + col2 / - 50 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL + + MAX( + 61 ) * + 51 * + 28 col0 FROM tab2 AS cor0
----
87108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7532
SELECT ALL + + MAX ( + 61 ) * + 51 * + 28 col0 FROM tab2 AS cor0
----
87108

onlyif mysql # DIV for integer division: 
query II rowsort label-7533
SELECT DISTINCT - col1 DIV - 85 + + col1 - - col2, col2 FROM tab1 AS cor0
----
110
96
115
68
64
59

skipif mysql # not compatible
query II rowsort label-7533
SELECT DISTINCT - col1 / - 85 + + col1 - - col2, col2 FROM tab1 AS cor0
----
110
96
115
68
64
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT + + MIN( DISTINCT - 17 ) AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT + + MIN ( DISTINCT - 17 ) AS col2 FROM tab1 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT ALL 85 * + - col2 + col2 - + - col0 * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-10497
-4048
-7456

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL 85 * + - col2 + col2 - + - col0 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-10497
-4048
-7456

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7536
SELECT * FROM tab0 WHERE NOT + CAST( + col1 AS SIGNED ) > - + col1 * col2 * + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7536
SELECT * FROM tab0 WHERE NOT + CAST ( + col1 AS INTEGER ) > - + col1 * col2 * + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col1 FROM tab1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL <> + - col2 + - + col1
----

skipif mysql # not compatible
query I rowsort label-7538
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <> + - col2 + - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL COUNT( * ) * + + MAX( ( - - col2 ) ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL COUNT ( * ) * + + MAX ( ( - - col2 ) ) FROM tab0
----
297

query II rowsort
SELECT DISTINCT + col0 * + 34, - col2 AS col2 FROM tab2
----
1564
-23
2176
-40
2550
-58

query I rowsort
SELECT ALL col2 * 59 AS col1 FROM tab0
----
2773
5841
590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT DISTINCT - MIN( + col2 ) DIV - ( ( MIN( col1 ) ) ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT DISTINCT - MIN ( + col2 ) / - ( ( MIN ( col1 ) ) ) col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT MAX( ALL ( - - col2 ) ) DIV + - 9 + 24 col1 FROM tab0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7543
SELECT MAX ( ALL ( - - col2 ) ) / + - 9 + 24 col1 FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT + CAST( + 80 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif mysql # not compatible
query I rowsort label-7544
SELECT + CAST ( + 80 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + col1 * 6 + + 85 + + + ( 26 ) AS col2 FROM tab2
----
417
513
573

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT - 21 / + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT - 21 / + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col2 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - col2 + - - col0 / + - col2 ) AND - col2 + - col1
----

query II rowsort
SELECT - + 40 AS col0, - col1 AS col2 FROM tab0 cor0
----
-40
-1
-40
-21
-40
-81

query I rowsort
SELECT DISTINCT + 99 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7550
SELECT ALL 62 AS col1, - col1 DIV 75 AS col1 FROM tab0 AS cor0
----
62
-1
62
0
62
0

skipif mysql # not compatible
query II rowsort label-7550
SELECT ALL 62 AS col1, - col1 / 75 AS col1 FROM tab0 AS cor0
----
62
-1
62
0
62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + - SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7551
SELECT + - SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 84 ) col1 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT COUNT( DISTINCT - - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT COUNT ( DISTINCT - - col1 ) AS col1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 * + 98 + - + col1 + col1 col1, 72 FROM tab1
----
4606
72
4606
72
4606
72

query II rowsort
SELECT col0 + - col0 AS col0, col2 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT DISTINCT col2 + - col2 * 38 AS col1 FROM tab2
----
-1480
-2146
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT MIN( ALL - col2 ) * + + SUM( ALL ( + - 23 ) ) FROM tab2 cor0
----
4002

skipif mysql # not compatible
query I rowsort label-7557
SELECT MIN ( ALL - col2 ) * + + SUM ( ALL ( + - 23 ) ) FROM tab2 cor0
----
4002

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7558
SELECT DISTINCT - CAST( + + 95 AS DECIMAL ) AS col1 FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - CAST ( + + 95 AS REAL ) AS col1 FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * + 46 col0 FROM tab1
----
1334
1334
1334

query I rowsort
SELECT + 43 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL MIN( DISTINCT + - 31 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL MIN ( DISTINCT + - 31 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT + MIN( - col2 ) col1 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7562
SELECT DISTINCT + MIN ( - col2 ) col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT ALL + COUNT( * ) * + - MAX( DISTINCT - - ( + 1 ) ) DIV + + 16 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + COUNT ( * ) * + - MAX ( DISTINCT - - ( + 1 ) ) / + + 16 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + - col1 ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 37 * + + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-2183
-2516
-3552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - 61 * - 83 FROM tab0 AS cor0
----
15
5063
87
5063
97
5063

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL - + COUNT( * ) * + 42 AS col1 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL - + COUNT ( * ) * + 42 AS col1 FROM tab1 AS cor0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7568
SELECT * FROM tab2 WHERE NOT ( col2 + - CAST( + - col1 AS SIGNED ) / + + 81 + col1 ) BETWEEN col1 + - + ( + 35 ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7568
SELECT * FROM tab2 WHERE NOT ( col2 + - CAST ( + - col1 AS INTEGER ) / + + 81 + col1 ) BETWEEN col1 + - + ( + 35 ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + 63 * - + col0 AS col1 FROM tab2
----
-133308
-258048
-354375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT DISTINCT col2 * CAST( col1 AS SIGNED ) col0 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7570
SELECT DISTINCT col2 * CAST ( col1 AS INTEGER ) col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 87
----

query I rowsort
SELECT ALL - - col1 * col2 * + col1 FROM tab2 AS cor0
----
237160
260362
59823

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE col0 NOT IN ( + + 97, + 47, - col1 * + col1 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT COUNT( * ) + - MIN( - - col2 ) AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7574
SELECT COUNT ( * ) + - MIN ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + + MAX( DISTINCT col0 ) * COUNT( * ) + + 77 - + - 26 AS col2 FROM tab0 AS cor0
----
394

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + + MAX ( DISTINCT col0 ) * COUNT ( * ) + + 77 - + - 26 AS col2 FROM tab0 AS cor0
----
394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT ALL 58 DIV - COUNT( * ) AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL 58 / - COUNT ( * ) AS col1 FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col0 col0 FROM tab1
----
144
147
159

query I rowsort
SELECT col1 * 87 AS col0 FROM tab2
----
4437
5829
6699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT CAST( 14 AS SIGNED ) * - + COUNT( * ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-7580
SELECT CAST ( 14 AS INTEGER ) * - + COUNT ( * ) FROM tab1
----
-42

query II rowsort
SELECT ALL - 47, + col0 FROM tab0
----
-47
15
-47
87
-47
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7582
SELECT 65 - - COUNT( * ) - + CAST( NULL AS DECIMAL ) + + COUNT( * ) * - + 99 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT 65 - - COUNT ( * ) - + CAST ( NULL AS REAL ) + + COUNT ( * ) * - + 99 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 91 + - col0 AS col0 FROM tab2
----
-137
-155
-166

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT + col2 <> + CAST( - - col2 AS SIGNED )
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7585
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT + col2 <> + CAST ( - - col2 AS INTEGER )
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7586
SELECT DISTINCT + 63 * + - COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
-189
NULL

skipif mysql # not compatible
query II rowsort label-7586
SELECT DISTINCT + 63 * + - COUNT ( * ) AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab2
----
-189
NULL

query I rowsort
SELECT + ( + 84 ) AS col1 FROM tab0
----
84
84
84

query II rowsort
SELECT DISTINCT col1 * 68, + col0 AS col2 FROM tab0 AS cor0
----
1428
87
5508
15
68
97

query II rowsort
SELECT + + col1 + + - 42 AS col2, + col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
528
6576
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + + col1 col2 FROM tab0 AS cor0
----
100
231
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT 59, - col2 AS col2 FROM tab1
----
59
-59
59
-68
59
-96

query I rowsort
SELECT DISTINCT - col1 * - col0 * col2 * - + 49 FROM tab0
----
-2798145
-470547
-895230

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT + col2 + + CAST( + col2 AS SIGNED ) / - col0 * - - col2 * col0 col2 FROM tab2 WHERE NOT - + col1 - - col0 + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7596
SELECT + col2 + + CAST ( + col2 AS INTEGER ) / - col0 * - - col2 * col0 col2 FROM tab2 WHERE NOT - + col1 - - col0 + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * col1 * 32 FROM tab1 AS cor0
----
-6272
-70688
-800

query I rowsort
SELECT - 82 + + col1 FROM tab0 AS cor0
----
-1
-61
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 5 <= NULL
----

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-7601
SELECT col2, 90 + - - ( + col0 ) DIV col0 AS col2 FROM tab2
----
23
91
40
91
58
91

skipif mysql # not compatible
query II rowsort label-7601
SELECT col2, 90 + - - ( + col0 ) / col0 AS col2 FROM tab2
----
23
91
40
91
58
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 48 + 40 col2 FROM tab2
----
-2168
-3032
-3560

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT DISTINCT - 86 - - + COUNT( * ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT - 86 - - + COUNT ( * ) FROM tab0 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 4 <= + 10 - + - 55 + - col1 * 65
----

query I rowsort
SELECT - 41 - - col1 - - col1 FROM tab2 AS cor0
----
113
61
93

query I rowsort
SELECT ( - col2 ) - - 52 FROM tab0 AS cor0
----
-47
42
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7607
SELECT DISTINCT - MIN( ALL - col1 ) DIV - - 86 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - MIN ( ALL - col1 ) / - - 86 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT + + col2 + + 53 + - col2 - col2 - + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT + + col2 + + 53 + - col2 - col2 - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT + - col2 * 78 + col0 DIV col2 FROM tab1 AS cor0
----
-4601
-5303
-7488

skipif mysql # not compatible
query I rowsort label-7609
SELECT + - col2 * 78 + col0 / col2 FROM tab1 AS cor0
----
-4601
-5303
-7488

query II rowsort
SELECT DISTINCT - col1 * - col0 * - col1 * - col1, col1 - + col1 FROM tab1 WHERE ( NULL ) <= 2 AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * - col0 - 56 - ( - col1 ) / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) >= - 59
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - + COUNT( * ) * + + ( - 17 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7613
SELECT - + COUNT ( * ) * + + ( - 17 ) FROM tab0 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT SUM( + - col2 ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7615
SELECT SUM ( + - col2 ) AS col2 FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7616
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7616
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT ALL + 3 * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + 3 * + COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT COUNT( * ) * ( - COUNT( ALL 21 ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7618
SELECT COUNT ( * ) * ( - COUNT ( ALL 21 ) ) FROM tab2
----
-9

query I rowsort
SELECT 21 * + ( - col2 ) * col2 + + col1 AS col2 FROM tab0
----
-205820
-2079
-46308

query II rowsort
SELECT - col1, 64 AS col0 FROM tab0 AS cor0
----
-1
64
-21
64
-81
64

query I rowsort
SELECT col2 * + + ( 73 ) * - col1 * + - 20 FROM tab1 AS cor0
----
1962240
430700
4666160

onlyif mysql # DIV for integer division: 
query II rowsort label-7622
SELECT DISTINCT - col0 * 24 DIV col2, 53 col0 FROM tab1 AS cor0
----
-12
53
-32
53
-34
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7622
SELECT DISTINCT - col0 * 24 / col2, 53 col0 FROM tab1 AS cor0
----
-12
53
-32
53
-34
53

query II rowsort
SELECT col2 AS col2, col0 * ( - + 24 ) + - 42 FROM tab0 AS cor0
----
10
-2130
47
-402
99
-2370

query II rowsort
SELECT DISTINCT - col2 AS col0, + 79 * 34 AS col0 FROM tab1 AS cor0
----
-59
2686
-68
2686
-96
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT - - COUNT( * ) * - 87 FROM tab0 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT - - COUNT ( * ) * - 87 FROM tab0 cor0
----
-261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 38 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT - col0 DIV - col1 + - 69 FROM tab0
----
-65
-69
28

skipif mysql # not compatible
query I rowsort label-7627
SELECT - col0 / - col1 + - 69 FROM tab0
----
-65
-69
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col2 FROM tab1
----
7
7
7

query II rowsort
SELECT DISTINCT - - col2, col0 FROM tab0 WHERE + 11 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT ALL col2 DIV + col2 + + col0 + - 95 + + + 76 AS col2 FROM tab0
----
-3
69
79

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL col2 / + col2 + + col0 + - 95 + + + 76 AS col2 FROM tab0
----
-3
69
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 64 NOT IN ( col0, + col1, + col1 )
----

query I rowsort
SELECT DISTINCT + 97 + - col0 AS col1 FROM tab0
----
0
10
82

query I rowsort
SELECT DISTINCT - 92 * 19 AS col2 FROM tab2
----
-1748

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7634
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - CAST( NULL AS DECIMAL ) + ( + + col0 ) + + col0 + + + col1 )
----

skipif mysql # not compatible
query III rowsort label-7634
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - CAST ( NULL AS REAL ) + ( + + col0 ) + + col0 + + + col1 )
----

query II rowsort
SELECT DISTINCT col1 + - col2, col0 FROM tab2
----
28
46
37
64
9
75

query I rowsort
SELECT DISTINCT + 70 + col1 FROM tab0 AS cor0
----
151
71
91

query I rowsort
SELECT col1 + ( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + + MIN( + col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7638
SELECT + + MIN ( + col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL - 65 + MAX( ALL 36 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL - 65 + MAX ( ALL 36 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT ALL - + 9 AS col2 FROM tab2 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + COUNT( * ) * - - 43 AS col0 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-7641
SELECT + COUNT ( * ) * - - 43 AS col0 FROM tab0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL ( - + MIN( ALL + 38 ) ) - 97 * + ( + 23 ) AS col1 FROM tab2
----
-2269

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL ( - + MIN ( ALL + 38 ) ) - 97 * + ( + 23 ) AS col1 FROM tab2
----
-2269

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7643
SELECT ALL - col1 * - + CAST( NULL AS DECIMAL ) * + 99 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL - col1 * - + CAST ( NULL AS REAL ) * + 99 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - col2 - - 86 + + + col0 * + col2 * - ( + col1 ) * - + col0 AS col1 FROM tab0
----
1589607
856789
931677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT - 65 - CAST( - 5 AS SIGNED ) FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-7645
SELECT - 65 - CAST ( - 5 AS INTEGER ) FROM tab1
----
-60
-60
-60

query I rowsort
SELECT - 83 * col0 FROM tab1
----
-4233
-7055
-7553

query I rowsort
SELECT DISTINCT - ( - 15 ) * - ( - 93 ) * col1 AS col0 FROM tab2
----
107415
71145
93465

query I rowsort
SELECT ALL col2 * - 92 FROM tab1
----
-5428
-6256
-8832

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 < - - col1
----
87
21
10
97
1
99

query I rowsort
SELECT + ( - 50 ) AS col2 FROM tab0 AS cor0
----
-50
-50
-50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7652
SELECT * FROM tab0 AS cor0 WHERE NOT 4 * + ( + + CAST( NULL AS SIGNED ) ) IN ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-7652
SELECT * FROM tab0 AS cor0 WHERE NOT 4 * + ( + + CAST ( NULL AS INTEGER ) ) IN ( - - col1 )
----

query I rowsort
SELECT + + 32 * + 86 AS col0 FROM tab1 AS cor0
----
2752
2752
2752

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN + col0 AND + ( + - 26 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 6 BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - 6 * + + col1 AS col2, + 64 FROM tab2 AS cor0
----
306
64
402
64
462
64

query I rowsort
SELECT ALL - - 5 AS col0 FROM tab2 cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT col2 DIV + - col0 + - col2 - - col1 * col2 + 55 FROM tab2 AS cor0
----
1205
3095
3883

skipif mysql # not compatible
query I rowsort label-7659
SELECT col2 / + - col0 + - col2 - - col1 * col2 + 55 FROM tab2 AS cor0
----
1205
3095
3883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7660
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 * ( + - col0 ) + + - 91 * col2 FROM tab2
----
-10903
-4209
-7736

query II rowsort
SELECT + col1 AS col2, + 9 * + - ( col0 ) FROM tab0
----
1
-873
21
-783
81
-135

query II rowsort
SELECT ( - ( col2 ) ), col1 AS col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7664
SELECT 79 + + 52 * - - col2, col2 DIV 3 * col2 AS col2 FROM tab2
----
1275
161
2159
520
3095
1102

skipif mysql # not compatible
query II rowsort label-7664
SELECT 79 + + 52 * - - col2, col2 / 3 * col2 AS col2 FROM tab2
----
1275
161
2159
520
3095
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT 5 + + COUNT( * ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7665
SELECT 5 + + COUNT ( * ) FROM tab1 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 88 - ( - col1 ) col0 FROM tab0 AS cor0
----
-4055
-859
-8711

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - COUNT( * ) FROM tab0 WHERE + col2 < + col2
----
0

skipif mysql # not compatible
query I rowsort label-7667
SELECT - COUNT ( * ) FROM tab0 WHERE + col2 < + col2
----
0

query I rowsort
SELECT - 28 * + - col1 * - col2 * + col0 FROM tab2 WHERE NULL < - col0 - - 74
----

query I rowsort
SELECT ALL ( + col2 ) * - ( + + 65 ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 10 - + col2 FROM tab2
----
-13
-30
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL - 5 DIV - col0 * - 79 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - 5 / - col0 * - 79 + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + - 87 - + col1 FROM tab0 AS cor0
----
-108
-168
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7673
SELECT + SUM( DISTINCT + 75 ) - + MAX( DISTINCT - 54 ) AS col0, - COUNT( * ) + + - 92 AS col0 FROM tab0 AS cor0
----
129
-95

skipif mysql # not compatible
query II rowsort label-7673
SELECT + SUM ( DISTINCT + 75 ) - + MAX ( DISTINCT - 54 ) AS col0, - COUNT ( * ) + + - 92 AS col0 FROM tab0 AS cor0
----
129
-95

query I rowsort
SELECT ALL - + 88 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - col2 / + col1 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - ( SUM( + ( + - col2 ) ) ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7675
SELECT - ( SUM ( + ( + - col2 ) ) ) AS col2 FROM tab1
----
223

query I rowsort
SELECT ALL + 1 FROM tab2 WHERE NOT + col0 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT - COUNT( * ) * + 19 AS col0 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7677
SELECT - COUNT ( * ) * + 19 AS col0 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT + 30 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL - - COUNT( * ) * - 80 AS col1 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL - - COUNT ( * ) * - 80 AS col1 FROM tab1 AS cor0
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT - MIN( CAST( NULL AS SIGNED ) ) * - 62 col0 FROM tab2 cor0 WHERE NOT + 8 - - ( 78 ) <= + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7680
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * - 62 col0 FROM tab2 cor0 WHERE NOT + 8 - - ( 78 ) <= + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7681
SELECT ALL - CAST( COUNT( DISTINCT - 15 ) AS SIGNED ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL - CAST ( COUNT ( DISTINCT - 15 ) AS INTEGER ) FROM tab2
----
-1

query I rowsort
SELECT + 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL 36 * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL 36 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT ALL + 63 DIV 63 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + 63 / 63 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 76 ) * col2 col0 FROM tab0 AS cor0
----
3572
7524
760

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + 42 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT 83 + - col0 DIV + col2 FROM tab2 AS cor0
----
81
82
82

skipif mysql # not compatible
query I rowsort label-7688
SELECT 83 + - col0 / + col2 FROM tab2 AS cor0
----
81
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL + + MIN( - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL + + MIN ( - col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + COUNT( * ) * MIN( - col0 ) FROM tab2 cor0 WHERE NULL IS NULL
----
-225

skipif mysql # not compatible
query I rowsort label-7690
SELECT + COUNT ( * ) * MIN ( - col0 ) FROM tab2 cor0 WHERE NULL IS NULL
----
-225

query I rowsort
SELECT ALL + ( ( - ( - - 19 ) ) ) FROM tab0 cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - - 84 AS col2 FROM tab2 AS cor0
----
84
84
84

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - ( - col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL COUNT( DISTINCT - + col1 ) * MIN( ALL - 15 ) + ( + 54 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL COUNT ( DISTINCT - + col1 ) * MIN ( ALL - 15 ) + ( + 54 ) AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT DISTINCT + 29 * CAST( + col2 AS SIGNED ) FROM tab1
----
1711
1972
2784

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + 29 * CAST ( + col2 AS INTEGER ) FROM tab1
----
1711
1972
2784

query I rowsort
SELECT DISTINCT col0 + - 71 FROM tab2
----
-25
-7
4

query I rowsort
SELECT ALL - 2 + + col0 * - col1 * col0 FROM tab0
----
-158951
-18227
-9411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - ( + col1 ) AS col0 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - ( + col1 ) AS col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL 86 + - 51 + - 25 FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT 40 + - 48 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-3767
-7
-947

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL SUM( ALL - 70 ) FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL SUM ( ALL - 70 ) FROM tab1 AS cor0
----
-210

query I rowsort
SELECT ALL col0 * - col0 - - col0 AS col2 FROM tab1 AS cor0
----
-2550
-7140
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL - 92 * COUNT( * ) FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - 92 * COUNT ( * ) FROM tab1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + COUNT( * ) + 78 col1 FROM tab1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7704
SELECT + COUNT ( * ) + 78 col1 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7705
SELECT + col1 + - + CAST( NULL AS SIGNED ) - - col2 AS col2, 17 AS col0 FROM tab0
----
NULL
17
NULL
17
NULL
17

skipif mysql # not compatible
query II rowsort label-7705
SELECT + col1 + - + CAST ( NULL AS INTEGER ) - - col2 AS col2, 17 AS col0 FROM tab0
----
NULL
17
NULL
17
NULL
17

query I rowsort
SELECT ALL + col0 * col0 * + - col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT COUNT( * ) + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + col0 col0 FROM tab2
----
-12
-23
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT - CAST( NULL AS SIGNED ) + ( ( + col1 ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT - CAST ( NULL AS INTEGER ) + ( ( + col1 ) ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, ( col1 ) * - - col0 + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
765
47
4368
5
510

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - col1 + - col2 + - - col0 + + 45 * - - ( col0 ) + - col1 - + 15 + + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7712
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * 47 NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-7712
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * 47 NOT BETWEEN NULL AND + col1
----

query II rowsort
SELECT ALL - col2 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL COUNT( * ) * - - 85 * + - MAX( ALL 12 ) AS col1 FROM tab1 AS cor0
----
-3060

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL COUNT ( * ) * - - 85 * + - MAX ( ALL 12 ) AS col1 FROM tab1 AS cor0
----
-3060

query III rowsort
SELECT * FROM tab1 WHERE NULL > 57 AND 74 * - col2 >= NULL
----

query I rowsort
SELECT 21 * - col0 AS col0 FROM tab0
----
-1827
-2037
-315

query II rowsort
SELECT DISTINCT - col1 * + 93 * + 97 * 42, col2 FROM tab0
----
-30689442
47
-378882
99
-7956522
10

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT DISTINCT - 2 * - COUNT( - col1 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - 2 * - COUNT ( - col1 ) AS col1 FROM tab2
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col2, + col0 + - - ( - col1 ), 13 )
----

query I rowsort
SELECT ALL - 69 * - - col0 * - 24 * - + col1 * - col0 AS col0 FROM tab2
----
178708896
522289152
624105000

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL 89 * - - ( - COUNT( * ) ) AS col1 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL 89 * - - ( - COUNT ( * ) ) AS col1 FROM tab2
----
-267

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 73 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - 58 * COUNT( * ) FROM tab1 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7725
SELECT - 58 * COUNT ( * ) FROM tab1 cor0
----
-174

query II rowsort
SELECT DISTINCT - col1, - 82 AS col0 FROM tab2 AS cor0
----
-51
-82
-67
-82
-77
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - - col2 < NULL
----

query II rowsort
SELECT ALL + col2, - col2 + col1 FROM tab1 AS cor0
----
59
-54
68
-21
96
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL - MAX( - - col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - MAX ( - - col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 * col2 * - 63 FROM tab2 AS cor0
----
100800
211932
33327

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT ALL - 62 DIV - + col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL - 62 / - + col1 AS col2 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7732
SELECT * FROM tab2 WHERE ( col1 * - 44 - - ( + - col1 ) * - 9 - - + CAST( 80 AS SIGNED ) * + col0 ) BETWEEN + col0 + + - col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-7732
SELECT * FROM tab2 WHERE ( col1 * - 44 - - ( + - col1 ) * - 9 - - + CAST ( 80 AS INTEGER ) * + col0 ) BETWEEN + col0 + + - col1 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 43 col0, col1 FROM tab0 WHERE + + col0 + + col2 * - col0 <= NULL
----

query II rowsort
SELECT DISTINCT col2 + - col2 AS col1, - col1 * ( + col2 ) FROM tab2
----
0
-1173
0
-3080
0
-3886

query I rowsort
SELECT + col0 - + + 88 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE - col0 * + - 17 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - SUM( + col2 ) + - - COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - SUM ( + col2 ) + - - COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT DISTINCT col0 DIV 75 DIV + col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT col0 / 75 / + col2 FROM tab2
----
0

query I rowsort
SELECT + col2 * + col0 - + col1 AS col2 FROM tab1
----
4882
5010
6141

onlyif mysql # DIV for integer division: 
query II rowsort label-7740
SELECT - col0 DIV + + 43 col0, 46 AS col0 FROM tab2 AS cor0
----
-1
46
-1
46
-1
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7740
SELECT - col0 / + + 43 col0, 46 AS col0 FROM tab2 AS cor0
----
-1
46
-1
46
-1
46

query I rowsort
SELECT DISTINCT 90 * + 75 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - ( col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 38 < NULL
----

query I rowsort
SELECT ALL + 59 * col0 AS col0 FROM tab0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT + ( SUM( - 58 ) ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + ( SUM ( - 58 ) ) FROM tab2
----
-174

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 31 * 75 + + col0 = - col2 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT ALL - + 25 * - - 46 * + col0 + + - col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - + 25 * - - 46 * + col0 + + - col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL + 60 * + - 16 FROM tab2 AS cor0
----
-960
-960
-960

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 - + + 13 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 62 * - ( - col1 ) FROM tab2
----
3162
4154
4774

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7751
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7751
SELECT DISTINCT + - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - col0 * - 39 FROM tab2 AS cor0
----
1794
2496
2925

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE + 76 = NULL
----

query I rowsort
SELECT ALL - - 85 * + + ( col2 ) * col2 FROM tab1 AS cor0
----
295885
393040
783360

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL - - 87 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL - - 87 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT - 30 * + MAX( ALL - - col1 ) FROM tab1 AS cor0
----
-1410

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT - 30 * + MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
-1410

query I rowsort
SELECT ALL ( + col2 ) * col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + col1 + - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT ALL col1 DIV - - col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL col1 / - - col1 AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE 3 + - col0 IS NULL
----

query I rowsort
SELECT - 18 / + col0 - + col2 FROM tab2 WHERE - 95 * - 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT - col2 DIV - - col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7762
SELECT - col2 / - - col0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * - 83 + + 94 AS col2 FROM tab2
----
-4139
-5467
-6297

query I rowsort
SELECT DISTINCT - col2 * - 71 - + - col1 AS col0 FROM tab1 WHERE + col2 / 81 IS NOT NULL
----
4194
4875
6830

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7765
SELECT + COUNT( + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT + COUNT ( + - CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
0

query I rowsort
SELECT + col1 * - 16 FROM tab2
----
-1072
-1232
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT MAX( 17 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7767
SELECT MAX ( 17 ) FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT - + 10 - COUNT( * ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7768
SELECT - + 10 - COUNT ( * ) FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT 40 + - + COUNT( * ) FROM tab2 AS cor0 WHERE ( ( - 25 ) + col2 - col0 IS NOT NULL )
----
37

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT 40 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( ( - 25 ) + col2 - col0 IS NOT NULL )
----
37

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 28 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

query I rowsort
SELECT ALL - 88 FROM tab1 cor0
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT ALL + 71 DIV ( col1 ) col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7773
SELECT ALL + 71 / ( col1 ) col0 FROM tab2 cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, - 57 AS col2 FROM tab2 AS cor0
----
23
-57
40
-57
58
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * col2 NOT BETWEEN NULL AND - - col2
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT - col0 AS col2, + 92 + - col1 FROM tab0 AS cor0
----
-15
11
-87
71
-97
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT + col1 * CAST( 65 AS SIGNED ) FROM tab1
----
3055
325
910

skipif mysql # not compatible
query I rowsort label-7777
SELECT + col1 * CAST ( 65 AS INTEGER ) FROM tab1
----
3055
325
910

query I rowsort
SELECT - 11 * + col1 * + - 19 FROM tab1
----
1045
2926
9823

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT - COUNT( * ) * + 44 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-132

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT - COUNT ( * ) * + 44 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-132

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 80 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( 64 ) AS col1 FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT DISTINCT - 63 + SUM( - col2 ) AS col2 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT - 63 + SUM ( - col2 ) AS col2 FROM tab0
----
-219

query I rowsort
SELECT ALL col2 + + + 13 AS col0 FROM tab2
----
36
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT col0 ) col2 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7784
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT col0 ) col2 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL + + 62 * COUNT( * ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + + 62 * COUNT ( * ) FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL - - MAX( DISTINCT 10 ) * 85 FROM tab0 AS cor0
----
850

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL - - MAX ( DISTINCT 10 ) * 85 FROM tab0 AS cor0
----
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + COUNT( * ) + - + 0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7788
SELECT + COUNT ( * ) + - + 0 FROM tab0
----
3

query I rowsort
SELECT - col1 * - ( + - col1 ) + + 18 AS col1 FROM tab0
----
-423
-6543
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT + ( COUNT( * ) ) DIV + 32 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT + ( COUNT ( * ) ) / + 32 FROM tab2
----
0

query II rowsort
SELECT DISTINCT 63 - 50, col1 FROM tab1 AS cor0
----
13
14
13
47
13
5

query II rowsort
SELECT ALL - - col1 + 75 - + ( + 46 ), col0 + + col0 AS col0 FROM tab1 AS cor0
----
34
170
43
102
76
182

query I rowsort
SELECT DISTINCT + 22 * + - col2 + - + 41 - col2 + col0 * 41 * + col1 + 97 * - - col2 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + col2 * - 81 AS col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN - - col1 AND col0 * + 95
----
-1863
-3240
-4698

query I rowsort
SELECT ALL - ( + - ( 52 ) ) AS col0 FROM tab2
----
52
52
52

query I rowsort
SELECT + - col1 * - 5 AS col2 FROM tab2 AS cor0
----
255
335
385

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 37 + - 86 NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col2, col0 AS col1 FROM tab0 AS cor0
----
17
15
17
87
17
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT DISTINCT + - 26 * + + col0 + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL <= CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + - 26 * + + col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL <= CAST ( + + col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT DISTINCT - - 31 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT - - 31 / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 60 AS col2 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + col1 + col0 FROM tab1 WHERE NULL <> ( + ( - 35 ) )
----

skipif mysql # not compatible
query I rowsort label-7802
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + col1 + col0 FROM tab1 WHERE NULL <> ( + ( - 35 ) )
----

query I rowsort
SELECT ALL col2 * + 77 FROM tab0
----
3619
7623
770

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col2, col0 * - col0 )
----

query I rowsort
SELECT ALL ( + + 22 ) + - col1 FROM tab2
----
-29
-45
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT DISTINCT 9 + COUNT( ALL + col1 ) + 43 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT 9 + COUNT ( ALL + col1 ) + 43 FROM tab1
----
55

query I rowsort
SELECT + ( + 63 ) AS col0 FROM tab1 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL + - 25 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL + - 25 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT ALL + - col0 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + ( - col0 ) <= + col1 )
----
-77
2
32

query I rowsort
SELECT + - col1 * + 48 FROM tab0 AS cor0
----
-1008
-3888
-48

query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT + COUNT( * ) * - COUNT( * ) DIV 66 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7813
SELECT + COUNT ( * ) * - COUNT ( * ) / 66 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
59

query I rowsort
SELECT ALL ( ( + + ( - + 85 ) ) ) FROM tab0
----
-85
-85
-85

query I rowsort
SELECT ALL - 60 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query III rowsort
SELECT * FROM tab2 WHERE 4 * + col0 / + 14 + col1 BETWEEN + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT col2 DIV - 42 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT col2 / - 42 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 33 - + + col0 FROM tab2
----
-13
-31
-42

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NOT ( + 99 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT col2 DIV + + col2 + - - 47 + - col1 AS col0 FROM tab1
----
1
34
43

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT col2 / + + col2 + - - 47 + - col1 AS col0 FROM tab1
----
1
34
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 32 col2 FROM tab2 cor0
----
32
32
32

query I rowsort
SELECT ( col2 ) / + col2 / col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * + 11 col2 FROM tab2 AS cor0
----
-187
-187
-187

query III rowsort
SELECT * FROM tab1 WHERE col2 * - 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT col1 AS col0 FROM tab2 WHERE CAST( 16 AS SIGNED ) + - 95 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7826
SELECT col1 AS col0 FROM tab2 WHERE CAST ( 16 AS INTEGER ) + - 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7827
SELECT * FROM tab2 WHERE col2 * CAST( NULL AS SIGNED ) IN ( 94 )
----

skipif mysql # not compatible
query III rowsort label-7827
SELECT * FROM tab2 WHERE col2 * CAST ( NULL AS INTEGER ) IN ( 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT - col0 - CAST( NULL AS SIGNED ) / - col2 col1 FROM tab0 WHERE - 25 * - 63 IN ( 39 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7828
SELECT - col0 - CAST ( NULL AS INTEGER ) / - col2 col1 FROM tab0 WHERE - 25 * - 63 IN ( 39 )
----

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab2 WHERE ( NULL ) < - col1 + + 54
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 15 + col0 * + 81 AS col2 FROM tab1
----
4146
6900
7386

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + SUM( ( col0 ) ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7832
SELECT + SUM ( ( col0 ) ) AS col2 FROM tab0
----
199

query I rowsort
SELECT ALL + 6 + 67 FROM tab1
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + COUNT( 57 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7834
SELECT + COUNT ( 57 ) col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 58 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT + CAST( NULL AS SIGNED ) * - 9 + + 47 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT + CAST ( NULL AS INTEGER ) * - 9 + + 47 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + 87 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 > + ( 18 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 59 ) NOT IN ( col0 * + ( + 95 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT DISTINCT - 62 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT - 62 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL < - 27
----

query I rowsort
SELECT ALL - 3 * - col1 AS col1 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - MIN( ALL 78 ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-7843
SELECT - MIN ( ALL 78 ) FROM tab1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col2 * + ( 54 ) BETWEEN ( 68 ) AND NULL
----

query I rowsort
SELECT - col0 * - ( col1 * + col1 ) FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT 20 * + COUNT( * ) AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7847
SELECT 20 * + COUNT ( * ) AS col2 FROM tab1
----
60

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE ( 21 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT - 33 * ( + 56 * - ( + COUNT( * ) ) ) FROM tab0
----
5544

skipif mysql # not compatible
query I rowsort label-7849
SELECT - 33 * ( + 56 * - ( + COUNT ( * ) ) ) FROM tab0
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7850
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 94 - + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 94 - + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7851
SELECT col2 * - col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT col2 * - col1 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 50 FROM tab2 AS cor0 WHERE NOT col2 * + 13 <> + col0 * - col0
----

query I rowsort
SELECT - 42 AS col0 FROM tab0 WHERE col2 BETWEEN + 59 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT - 25 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-225

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - 25 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT + 18 + COUNT( col0 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT + 18 + COUNT ( col0 ) FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 76 * col1 NOT IN ( ( + col0 ) + - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 76 * col1 NOT IN ( ( + col0 ) + - col0 )
----
3

query I rowsort
SELECT - 49 - col2 FROM tab1 AS cor0
----
-108
-117
-145

query I rowsort
SELECT - col2 - 21 AS col0 FROM tab0 AS cor0
----
-120
-31
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7859
SELECT * FROM tab0 AS cor0 WHERE + col2 + CAST( 63 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7859
SELECT * FROM tab0 AS cor0 WHERE + col2 + CAST ( 63 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT ALL COUNT( * ) DIV 85 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL COUNT ( * ) / 85 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 68 ) col2 FROM tab0 AS cor0 WHERE ( - 4 ) = ( NULL )
----

query I rowsort
SELECT ALL - + 21 * col0 AS col1 FROM tab2 AS cor0
----
-1344
-1575
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 30 col1 FROM tab2 AS cor0
----
105
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT 73 - + COUNT( * ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT 73 - + COUNT ( * ) FROM tab0 AS cor0
----
70

query I rowsort
SELECT - 44 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-2645
-7269
-8325

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT - 28 DIV - 92 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7866
SELECT - 28 / - 92 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + col0 + - col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * col2 FROM tab0 WHERE NOT ( col2 * + 76 + ( - col2 ) ) > - col2
----

query III rowsort
SELECT * FROM tab0 WHERE + 40 IN ( col0 * 67 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = ( 74 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7871
SELECT ALL - COUNT( ( col2 ) ) * 8 + + ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 WHERE NOT ( NULL ) >= ( NULL ) OR NOT + 60 BETWEEN 9 * 75 AND NULL
----
-21

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - COUNT ( ( col2 ) ) * 8 + + ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 WHERE NOT ( NULL ) >= ( NULL ) OR NOT + 60 BETWEEN 9 * 75 AND NULL
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7872
SELECT col1 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT col1 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + COUNT( ( - 28 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7873
SELECT + COUNT ( ( - 28 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7874
SELECT * FROM tab0 WHERE NOT - + 91 * col2 NOT BETWEEN NULL AND + 70 + + CAST( 37 + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7874
SELECT * FROM tab0 WHERE NOT - + 91 * col2 NOT BETWEEN NULL AND + 70 + + CAST ( 37 + col1 AS INTEGER )
----

query I rowsort
SELECT 57 * col2 FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 < + 21
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7878
SELECT + COUNT( * ) * + SUM( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT + COUNT ( * ) * + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT COUNT( * ) * 70 AS col2 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7879
SELECT COUNT ( * ) * 70 AS col2 FROM tab0 AS cor0
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7880
SELECT MIN( - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT - + 80 + - - CAST( - 85 AS SIGNED ) FROM tab2 AS cor0
----
-165
-165
-165

skipif mysql # not compatible
query I rowsort label-7882
SELECT - + 80 + - - CAST ( - 85 AS INTEGER ) FROM tab2 AS cor0
----
-165
-165
-165

query I rowsort
SELECT ALL - col0 * + - col0 + - 11 FROM tab0 AS cor0
----
214
7558
9398

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT COUNT( * ) * + ( - + COUNT( * ) ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT COUNT ( * ) * + ( - + COUNT ( * ) ) FROM tab2 cor0
----
-9

query II rowsort
SELECT ALL + col0, - 56 FROM tab2 AS cor0
----
46
-56
64
-56
75
-56

query II rowsort
SELECT DISTINCT + + col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - - 41 * + 45 * + 29 FROM tab0 cor0
----
53505

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL COUNT( + 27 ) * + 29 + + 99 AS col0 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL COUNT ( + 27 ) * + 29 + + 99 AS col0 FROM tab1 AS cor0
----
186

query I rowsort
SELECT - 55 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT MAX( ALL col2 ) * COUNT( * ) + 27 FROM tab0
----
324

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT MAX ( ALL col2 ) * COUNT ( * ) + 27 FROM tab0
----
324

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - + 4 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 - col2 + + col1 * 72 * + ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + + 97 / - - col0 * col2 ) = NULL
----

query I rowsort
SELECT - col2 / - col0 AS col1 FROM tab1 WHERE NULL NOT IN ( + 72 )
----

query I rowsort
SELECT DISTINCT - 21 + + + col0 AS col1 FROM tab1
----
30
64
70

query I rowsort
SELECT ALL + col2 + + + 59 FROM tab0
----
106
158
69

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 20 * + - 29 <> NULL
----

query I rowsort
SELECT ALL + - col0 + + + col1 + + + col1 * + - 34 AS col2 FROM tab2 AS cor0
----
-1729
-2286
-2605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - MAX( DISTINCT + col2 ) + - 3 + + 73 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - MAX ( DISTINCT + col2 ) + - 3 + + 73 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 * + + 17 * + col2 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - 86 ) * 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7905
SELECT ALL * FROM tab0 WHERE NOT NULL <> col2 OR NOT NULL = - col2 * CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7905
SELECT ALL * FROM tab0 WHERE NOT NULL <> col2 OR NOT NULL = - col2 * CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - COUNT( * ) + + SUM( ALL + col1 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - COUNT ( * ) + + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7907
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 17 + - + col0 FROM tab2 cor0
----
-63
-81
-92

query I rowsort
SELECT DISTINCT - 62 - 82 AS col0 FROM tab1 AS cor0
----
-144

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( + + col1 ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col1 NOT IN ( + 99 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT 22 AS col0, COUNT( * ) AS col0 FROM tab1
----
22
3

skipif mysql # not compatible
query II rowsort label-7913
SELECT 22 AS col0, COUNT ( * ) AS col0 FROM tab1
----
22
3

query II rowsort
SELECT ALL + 56 AS col0, 3 + - col0 * col2 FROM tab2
----
56
-1055
56
-2557
56
-4347

query I rowsort
SELECT - col0 * ( - - 21 ) FROM tab0
----
-1827
-2037
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col1, col1 col1 FROM tab2
----
59
51
59
67
59
77

query I rowsort
SELECT + 53 * - col0 FROM tab1
----
-2703
-4505
-4823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7918
SELECT CAST( + + col1 AS SIGNED ) * - - col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-7918
SELECT CAST ( + + col1 AS INTEGER ) * - - col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL ( - - ( + - 27 ) ) FROM tab0 cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * - 98 FROM tab0
----
-1470
-8526
-9506

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( NULL ) IN ( col0 + 8 * + 85 + - col0 )
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 74 * - col0 BETWEEN + 81 AND ( + 78 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7924
SELECT ALL - + MIN( ALL - + 94 ), - 30 - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
94
-89

skipif mysql # not compatible
query II rowsort label-7924
SELECT ALL - + MIN ( ALL - + 94 ), - 30 - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
94
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT - - 3 DIV SUM( - - col2 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT - - 3 / SUM ( - - col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * + 45 AS col0 FROM tab0 AS cor0
----
-3915
-4365
-675

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 / 27 NOT IN ( - 5 * + + col2 ) )
----

query I rowsort
SELECT ( - + 94 ) * + 7 FROM tab1 AS cor0
----
-658
-658
-658

query I rowsort
SELECT DISTINCT 93 + + col1 AS col1 FROM tab1
----
107
140
98

query I rowsort
SELECT - 24 + col2 AS col0 FROM tab1
----
35
44
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col1 + - col1 * + col0, - col0 col2 FROM tab2
----
-10050
-75
-4692
-46
-9856
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT DISTINCT + MIN( - ( + 78 ) ) AS col2 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + MIN ( - ( + 78 ) ) AS col2 FROM tab0
----
-78

query I rowsort
SELECT 59 + - - col1 AS col1 FROM tab1
----
106
64
73

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( + + 65 )
----

query I rowsort
SELECT DISTINCT - ( + - 24 ) + + - col0 AS col1 FROM tab0 AS cor0
----
-63
-73
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN ( - col1 - - 58 - - col2 * + 45 + - 72 + - + col2 * + 17 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 * - 45 IS NOT NULL
----

query I rowsort
SELECT + 45 * + col1 FROM tab2
----
2295
3015
3465

query II rowsort
SELECT ALL + - 9, - 82 + + 70 + + 74 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT ALL - 68 + - CAST( + COUNT( col0 ) AS SIGNED ) + - 24 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - 68 + - CAST ( + COUNT ( col0 ) AS INTEGER ) + - 24 FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT 51 * + + COUNT( * ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7941
SELECT 51 * + + COUNT ( * ) FROM tab0 AS cor0
----
153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 26 / 20 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - col0 ) = + + 72 * - - col2 * - - col2
----

query II rowsort
SELECT col1, - col2 AS col2 FROM tab0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - + col1 <= + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> 83
----

query II rowsort
SELECT DISTINCT - 43, 76 AS col0 FROM tab1
----
-43
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL - MAX( - + col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - MAX ( - + col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + col0 * + - col1 * - col0 + col0 FROM tab0 AS cor0
----
159036
18240
9506

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL + + COUNT( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + + COUNT ( DISTINCT ( - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7953
SELECT * FROM tab1 cor0 WHERE 87 / CAST( NULL AS SIGNED ) > - col2
----

skipif mysql # not compatible
query III rowsort label-7953
SELECT * FROM tab1 cor0 WHERE 87 / CAST ( NULL AS INTEGER ) > - col2
----

query I rowsort
SELECT col0 + - col0 + - col0 * col2 * + ( + col0 ) FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT MIN( DISTINCT 70 ) + - 63 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7955
SELECT MIN ( DISTINCT 70 ) + - 63 FROM tab0 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col0 * - - 31 col2 FROM tab0 AS cor0
----
-10
-2697
-47
-465
-99
-3007

query I rowsort
SELECT col1 + + ( - 61 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-56

query I rowsort
SELECT ALL - + col2 + 77 FROM tab0 AS cor0
----
-22
30
67

query I rowsort
SELECT + 52 AS col2 FROM tab2 cor0 WHERE - 99 + - - 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT CAST( - + col1 AS SIGNED ) * + 87 - + + 43 AS col0 FROM tab2
----
-4480
-5872
-6742

skipif mysql # not compatible
query I rowsort label-7960
SELECT CAST ( - + col1 AS INTEGER ) * + 87 - + + 43 AS col0 FROM tab2
----
-4480
-5872
-6742

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT DISTINCT + COUNT( * ), ( + 65 ) AS col0 FROM tab1, tab0 AS cor0
----
9
65

skipif mysql # not compatible
query II rowsort label-7961
SELECT DISTINCT + COUNT ( * ), ( + 65 ) AS col0 FROM tab1, tab0 AS cor0
----
9
65

query I rowsort
SELECT DISTINCT col1 * - col2 - - ( col0 ) AS col2 FROM tab1 WHERE 86 * - - 16 > - - 9
----
-1293
-210
-3105

query I rowsort
SELECT - 1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT + CAST( + SUM( - 25 ) AS SIGNED ) - ( - SUM( - col2 ) ) FROM tab0 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7964
SELECT + CAST ( + SUM ( - 25 ) AS INTEGER ) - ( - SUM ( - col2 ) ) FROM tab0 cor0
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 51 - - col2 * col2 col2, col1 FROM tab0 cor0
----
151
21
2260
81
9852
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 = + 24 + - + col0 * - 38 * - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col0 * + 56 * + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * + 48 AS col0 FROM tab1
----
2256
240
672

query I rowsort
SELECT col0 * + 16 AS col1 FROM tab2
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query II rowsort label-7971
SELECT 60 AS col2, - COUNT( * ) AS col0 FROM tab2
----
60
-3

skipif mysql # not compatible
query II rowsort label-7971
SELECT 60 AS col2, - COUNT ( * ) AS col0 FROM tab2
----
60
-3

query I rowsort
SELECT - col0 - - 16 + 76 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE col1 + 59 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 55 ) col2 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL + 0 AS col1 FROM tab2 AS cor0 WHERE col0 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT MIN( ( - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7976
SELECT MIN ( ( - col1 ) ) FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL MIN( + col0 ) * 39 * - + 41 FROM tab0
----
-23985

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL MIN ( + col0 ) * 39 * - + 41 FROM tab0
----
-23985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * - 94 col2 FROM tab0
----
2538
2538
2538

query I rowsort
SELECT DISTINCT col2 * - ( + - col0 ) AS col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT col1 IN ( + - col1, 72 * + 75 * + 33, - col0 * + col1 * + col0 + + col0 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT col1 IN ( + - col1, 72 * + 75 * + 33, - col0 * + col1 * + col0 + + col0 + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT DISTINCT - + COUNT( + 44 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT - + COUNT ( + 44 ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 46 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT - col0 DIV + 33 + + col1 FROM tab0 AS cor0
----
-1
19
81

skipif mysql # not compatible
query I rowsort label-7985
SELECT - col0 / + 33 + + col1 FROM tab0 AS cor0
----
-1
19
81

query I rowsort
SELECT + + 85 - + col1 FROM tab2 AS cor0
----
18
34
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT + + col2 DIV col2 * - 13 + + 82 + + col1 * col0 FROM tab1 cor0
----
4346
494
783

skipif mysql # not compatible
query I rowsort label-7987
SELECT + + col2 / col2 * - 13 + + 82 + + col1 * col0 FROM tab1 cor0
----
4346
494
783

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT + SUM( ALL - 28 ) + + + COUNT( * ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7988
SELECT + SUM ( ALL - 28 ) + + + COUNT ( * ) AS col1 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <= + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT ALL col1 + + CAST( - 97 AS SIGNED ) FROM tab0
----
-16
-76
-96

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL col1 + + CAST ( - 97 AS INTEGER ) FROM tab0
----
-16
-76
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT + - SUM( ALL col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + - SUM ( ALL col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + 48 FROM tab2 AS cor0 WHERE + ( - 18 ) IS NOT NULL
----
48

query I rowsort
SELECT + ( - 34 ) FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL 65 * 73 + - ( 64 ) FROM tab1 AS cor0
----
4681
4681
4681

query I rowsort
SELECT - - 45 AS col1 FROM tab0 AS cor0
----
45
45
45

query II rowsort
SELECT DISTINCT + 32 * ( + 82 ), - ( - ( - col0 ) ) AS col2 FROM tab1
----
2624
-51
2624
-85
2624
-91

query I rowsort
SELECT col1 * + col2 * - ( + 17 ) FROM tab1
----
-22848
-5015
-54332

query I rowsort
SELECT col1 * + - 94 FROM tab0 AS cor0
----
-1974
-7614
-94

query I rowsort
SELECT ALL + col0 * 86 * + - 55 FROM tab0
----
-411510
-458810
-70950

query I rowsort
SELECT - col0 + - col0 * + + col2 * - 27 AS col0 FROM tab1
----
132141
135320
166985

query I rowsort
SELECT - 96 + + 4 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT - col0 + 26 * - col2 FROM tab1
----
-1619
-1859
-2547

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL COUNT( ALL - col2 ) + + COUNT( * ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8003
SELECT ALL COUNT ( ALL - col2 ) + + COUNT ( * ) col2 FROM tab0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > + col0 * + col0
----

query II rowsort
SELECT - col2 + - - 40, 94 AS col0 FROM tab1 AS cor0
----
-19
94
-28
94
-56
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + + 57 + - + col0 * 17 col2 FROM tab2 AS cor0
----
-1163
-670
-976

query I rowsort
SELECT - 27 * col2 + 94 AS col2 FROM tab2 AS cor0
----
-1472
-527
-986

query II rowsort
SELECT ALL - + col2 - - col1, col2 AS col1 FROM tab1 AS cor0
----
-21
68
-54
59
-82
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 1 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT ALL MAX( CAST( 69 AS SIGNED ) ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL MAX ( CAST ( 69 AS INTEGER ) ) AS col0 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT + 35 DIV - - col2 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8011
SELECT + 35 / - - col2 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT SUM( 35 ) AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT SUM ( 35 ) AS col0 FROM tab0
----
105

query I rowsort
SELECT + ( + - 38 ) * + 82 - - col1 AS col2 FROM tab1
----
-3069
-3102
-3111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8014
SELECT col0 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT col0 - - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - + - ( - 13 ) AS col1 FROM tab2 AS cor0
----
-59
-77
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 * + - 67 col1 FROM tab0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 61 col2 FROM tab1 AS cor0
----
61
61
61

query II rowsort
SELECT col2 AS col2, - col2 * + col2 FROM tab2 AS cor0
----
23
-529
40
-1600
58
-3364

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - col1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT + - COUNT( * ) col0 FROM tab1 WHERE NOT + + 50 / - col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8020
SELECT + - COUNT ( * ) col0 FROM tab1 WHERE NOT + + 50 / - col0 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT DISTINCT 1 DIV + + col1 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT 1 / + + col1 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL + 16 + col0 FROM tab1
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + - COUNT( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8023
SELECT + - COUNT ( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT ALL + col1 + + col0 AS col1, + col1 * col0 AS col1 FROM tab0
----
108
1827
96
1215
98
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 68 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 36 * ( + + 36 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 36 * ( + + 36 ) > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8027
SELECT CAST( NULL AS DECIMAL ) + 63 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT CAST ( NULL AS REAL ) + 63 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( - + col0, col0, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT ALL - ( - col2 ) DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - ( - col2 ) / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE ( ( NOT 30 IS NULL ) )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT col2 * CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-8031
SELECT col2 * CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
3481
4624
9216

query II rowsort
SELECT 76, + col2 FROM tab0
----
76
10
76
47
76
99

query I rowsort
SELECT - ( + + ( + 35 ) ) AS col1 FROM tab1
----
-35
-35
-35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 46 < NULL
----

query II rowsort
SELECT ALL + - col0 + + + col2 - + + 92 * - col0, col2 FROM tab0 AS cor0
----
1412
47
7927
10
8926
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + - col0 col0 FROM tab0 AS cor0
----
-64
-74
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT - 55 / col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - 55 / col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col1 * - + col2 - - 96 AS col0 FROM tab1 AS cor0
----
-1248
-199
-3100

query I rowsort
SELECT - 18 + + 74 AS col2 FROM tab0 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT 62 * - col0 + - col2 + - col2 + - 54 AS col0 FROM tab2
----
-2952
-4102
-4820

query I rowsort
SELECT 64 + - col1 * - 16 FROM tab2 WHERE ( - - col1 ) IS NOT NULL
----
1136
1296
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT DISTINCT + 46 FROM tab2 WHERE NOT - col0 * - + 19 * CAST( - - col1 AS SIGNED ) / - 14 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT + 46 FROM tab2 WHERE NOT - col0 * - + 19 * CAST ( - - col1 AS INTEGER ) / - 14 IS NULL
----
46

query I rowsort
SELECT 42 * - col2 AS col2 FROM tab1 WHERE ( ( NOT ( NOT col0 * - col0 + - 48 * - + 46 * col0 IS NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col1 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8046
SELECT - 78 DIV COUNT( + - 75 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8046
SELECT - 78 / COUNT ( + - 75 ) FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT - MAX( 15 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - MAX ( 15 ) FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL ( - 21 ) FROM tab1
----
-21
-21
-21

query I rowsort
SELECT DISTINCT - 45 * - col1 * - col1 + + - 92 FROM tab2 AS cor0
----
-117137
-202097
-266897

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col1 / - + 60 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col1 / - + 60 IS NOT NULL )
----
0

query I rowsort
SELECT + - col1 * + 73 AS col0 FROM tab1 AS cor0
----
-1022
-3431
-365

query I rowsort
SELECT DISTINCT - col0 * + + 97 AS col1 FROM tab0 AS cor0
----
-1455
-8439
-9409

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT - MAX( 14 ) + COUNT( * ) AS col1, COUNT( * ) col2 FROM tab2 AS cor0
----
-11
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8054
SELECT - MAX ( 14 ) + COUNT ( * ) AS col1, COUNT ( * ) col2 FROM tab2 AS cor0
----
-11
3

query I rowsort
SELECT DISTINCT - - 73 * col0 AS col2 FROM tab0 AS cor0
----
1095
6351
7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL + MIN( DISTINCT + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL + MIN ( DISTINCT + + col0 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8058
SELECT 82 AS col1, col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
82
NULL
82
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-8058
SELECT 82 AS col1, col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
82
NULL
82
NULL
82
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT DISTINCT + 75 DIV - col0 + - + col1 AS col2 FROM tab0
----
-1
-21
-86

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT + 75 / - col0 + - + col1 AS col2 FROM tab0
----
-1
-21
-86

query II rowsort
SELECT DISTINCT + col2, - 79 * + col1 * + col2 FROM tab1
----
59
-23305
68
-252484
96
-106176

query II rowsort
SELECT + col0, - 37 + + - col0 AS col1 FROM tab2
----
46
-83
64
-101
75
-112

query I rowsort
SELECT DISTINCT + 48 * - 61 AS col0 FROM tab1
----
-2928

query I rowsort
SELECT + - 78 FROM tab0 AS cor0 WHERE 19 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8064
SELECT ALL + - col2 col0, col2 DIV - - 81 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8064
SELECT ALL + - col2 col0, col2 / - - 81 FROM tab1 AS cor0
----
-59
0
-68
0
-96
1

query I rowsort
SELECT ALL + - 45 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + col2, col0 col0 FROM tab1
----
-23
91
-26
85
45
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + + 38 FROM tab2 AS cor0
----
102
113
84

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + + 38 FROM tab2 AS cor0
----
102
113
84

query I rowsort
SELECT DISTINCT - + 20 - col2 FROM tab1 cor0
----
-116
-79
-88

query I rowsort
SELECT DISTINCT col1 - - col2 + + col1 FROM tab1 AS cor0
----
124
162
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT DISTINCT - + ( col1 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - + ( col1 ) / + col0 AS col2 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT DISTINCT - col0 - - + col0 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - 13 ) / + col1 BETWEEN - col2 + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 / - - col0 IN ( + - col1 * + 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT + col2 DIV 39 * - 92 - + + col2 FROM tab2
----
-132
-150
-23

skipif mysql # not compatible
query I rowsort label-8074
SELECT + col2 / 39 * - 92 - + + col2 FROM tab2
----
-132
-150
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + col2 col2 FROM tab2
----
1058
1840
2668

onlyif mysql # aggregate syntax: 
query II rowsort label-8076
SELECT COUNT( * ), + 80 col0 FROM tab0
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8076
SELECT COUNT ( * ), + 80 col0 FROM tab0
----
3
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE NOT NULL <= col1
----

query I rowsort
SELECT - ( + - 73 ) FROM tab1
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT DISTINCT 90 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT 90 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 * + - col2 col2 FROM tab2
----
-1242
-2160
-3132

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 23 + + - ( - 73 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT DISTINCT col1 DIV + + col1 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT col1 / + + col1 AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL - MAX( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL - MAX ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-47

query I rowsort
SELECT ALL + + ( 94 ) AS col1 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT + 83 * - ( + SUM( ALL - col2 ) ) FROM tab1 AS cor0
----
18509

skipif mysql # not compatible
query I rowsort label-8086
SELECT + 83 * - ( + SUM ( ALL - col2 ) ) FROM tab1 AS cor0
----
18509

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8087
SELECT ALL - 32 / + CAST( NULL AS SIGNED ), col0 + + + ( - 63 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL > - col1 * + 6 * CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query II rowsort label-8087
SELECT ALL - 32 / + CAST ( NULL AS INTEGER ), col0 + + + ( - 63 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL > - col1 * + 6 * CAST ( NULL AS INTEGER ) + + col0
----

query I rowsort
SELECT DISTINCT - 14 + - 55 FROM tab2
----
-69

query I rowsort
SELECT ( - col0 ) + + + 72 FROM tab0
----
-15
-25
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT + + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT + + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + ( 8 ) < NULL
----

query I rowsort
SELECT col0 - - col1 + + + col0 * + + 24 + 57 AS col1 FROM tab1
----
1346
2187
2379

query I rowsort
SELECT ALL + col1 - 41 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
33
43
60

query I rowsort
SELECT ALL - + col2 * + + 79 - + - 64 FROM tab1 AS cor0
----
-4597
-5308
-7520

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL + MIN( ALL - 47 ) - + SUM( + 70 ) * - 57 AS col0 FROM tab1 AS cor0
----
11923

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + MIN ( ALL - 47 ) - + SUM ( + 70 ) * - 57 AS col0 FROM tab1 AS cor0
----
11923

query I rowsort
SELECT DISTINCT - AVG ( col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8097
SELECT ALL 84 * - col2 AS col1, ( - col0 ) DIV col0 col0 FROM tab2 AS cor0
----
-1932
-1
-3360
-1
-4872
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8097
SELECT ALL 84 * - col2 AS col1, ( - col0 ) / col0 col0 FROM tab2 AS cor0
----
-1932
-1
-3360
-1
-4872
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8098
SELECT - - 88 AS col1, + SUM( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
88
-66

skipif mysql # not compatible
query II rowsort label-8098
SELECT - - 88 AS col1, + SUM ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
88
-66

query I rowsort
SELECT DISTINCT 24 FROM tab2 WHERE NULL > NULL
----

query II rowsort
SELECT ALL col0 * 60, - col1 AS col1 FROM tab0
----
5220
-21
5820
-1
900
-81

query II rowsort
SELECT - 72 * 85, col0 FROM tab1
----
-6120
51
-6120
85
-6120
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT ALL + 54 / - CAST( NULL AS SIGNED ) * + - COUNT( - ( + 79 ) ) * - ( + 90 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL + 54 / - CAST ( NULL AS INTEGER ) * + - COUNT ( - ( + 79 ) ) * - ( + 90 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL MAX( DISTINCT - - col2 ) AS col0 FROM tab1 WHERE - - ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL MAX ( DISTINCT - - col2 ) AS col0 FROM tab1 WHERE - - ( - col0 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT ALL + col2 DIV 48 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + col2 / 48 FROM tab2
----
0
0
1

query I rowsort
SELECT - - 15 * - 81 FROM tab2 AS cor0
----
-1215
-1215
-1215

query I rowsort
SELECT DISTINCT 43 * - - col2 AS col0 FROM tab0 AS cor0
----
2021
4257
430

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + SUM( DISTINCT + + col1 ) col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8107
SELECT + SUM ( DISTINCT + + col1 ) col1 FROM tab2 cor0
----
195

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab0 WHERE NOT - + col2 * col2 >= NULL
----

query I rowsort
SELECT DISTINCT 58 * 73 AS col0 FROM tab2
----
4234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT ALL COUNT( * ) DIV 74 * + 15 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL COUNT ( * ) / 74 * + 15 FROM tab0
----
0

query I rowsort
SELECT ( + 83 ) FROM tab0
----
83
83
83

query II rowsort
SELECT DISTINCT - 60 AS col0, 40 AS col2 FROM tab1 AS cor0
----
-60
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT + 60 * + col2 * + col2 + - CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
208855
277393
552946

skipif mysql # not compatible
query I rowsort label-8113
SELECT + 60 * + col2 * + col2 + - CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
208855
277393
552946

query I rowsort
SELECT - col2 + ( - col2 ) + - 8 FROM tab0 AS cor0
----
-102
-206
-28

query II rowsort
SELECT ALL 50 AS col0, + col1 FROM tab0 AS cor0
----
50
1
50
21
50
81

query I rowsort
SELECT - - col1 + + - col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT ALL - ( - 91 ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( - 76 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - ( - 91 ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( - 76 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - SUM( + 71 ) AS col2 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-8119
SELECT - SUM ( + 71 ) AS col2 FROM tab1
----
-213

query I rowsort
SELECT DISTINCT + 84 * + col0 + - col2 AS col2 FROM tab0
----
1213
7298
8049

query I rowsort
SELECT - + 89 FROM tab1 WHERE + - 50 = - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8122
SELECT DISTINCT SUM( col2 ), - ( + - COUNT( * ) ) AS col2 FROM tab0
----
156
3

skipif mysql # not compatible
query II rowsort label-8122
SELECT DISTINCT SUM ( col2 ), - ( + - COUNT ( * ) ) AS col2 FROM tab0
----
156
3

query I rowsort
SELECT ALL col1 + col0 + - col1 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT col2 FROM tab2 WHERE - col2 + + col0 - + + col2 * + + col0 NOT BETWEEN + col1 AND col0 + - 99
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT - 39 DIV col0 col1 FROM tab0 WHERE col0 IS NOT NULL
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8125
SELECT - 39 / col0 col1 FROM tab0 WHERE col0 IS NOT NULL
----
-2
0
0

query I rowsort
SELECT col1 * + col0 * + col1 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT ALL 0 AS col0 FROM tab2 AS cor0 WHERE 74 <> col1 - + 30 / - 45 + - - col0
----
0
0
0

query I rowsort
SELECT + - 73 AS col2 FROM tab0 WHERE col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE - 77 <> NULL
----

query II rowsort
SELECT DISTINCT + + col2, - col0 * - col1 FROM tab0 AS cor0
----
10
1827
47
1215
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8132
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + 71 * + - col2 FROM tab0 cor0
----
NULL
-3337
NULL
-7029
NULL
-710

skipif mysql # not compatible
query II rowsort label-8132
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 71 * + - col2 FROM tab0 cor0
----
NULL
-3337
NULL
-7029
NULL
-710

query I rowsort
SELECT DISTINCT + 21 * - col2 AS col2 FROM tab0
----
-2079
-210
-987

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT DISTINCT col1 col0, 66 / - + CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8134
SELECT DISTINCT col1 col0, 66 / - + CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 91 * + col0 < + + 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT MAX( - ( - 41 ) ) * - 80 FROM tab1
----
-3280

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT MAX ( - ( - 41 ) ) * - 80 FROM tab1
----
-3280

query I rowsort
SELECT + 63 * col1 AS col1 FROM tab0
----
1323
5103
63

query I rowsort
SELECT ALL + 27 * + col2 FROM tab2
----
1080
1566
621

query II rowsort
SELECT - 81 * + + col0, - 47 AS col1 FROM tab2
----
-3726
-47
-5184
-47
-6075
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - col2 * - ( - + col2 ) col2, 0 FROM tab0
----
-33135
0
-8700
0
-950697
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8141
SELECT + COUNT( * ) DIV + 11 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT + COUNT ( * ) / + 11 FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT - col0 AS col0, col2 + + + 15 FROM tab2 cor0
----
-46
38
-64
55
-75
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8143
SELECT - 1, + COUNT( * ) AS col2 FROM tab2 cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-8143
SELECT - 1, + COUNT ( * ) AS col2 FROM tab2 cor0
----
-1
3

query I rowsort
SELECT DISTINCT - + 45 * - 62 FROM tab1 AS cor0
----
2790

query III rowsort
SELECT ALL * FROM tab0 WHERE - 97 + - col1 <> NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8147
SELECT * FROM tab0 AS cor0 WHERE 50 * col1 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8147
SELECT * FROM tab0 AS cor0 WHERE 50 * col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - 11 * + + col1 FROM tab0 AS cor0
----
11
4851
72171

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ( COUNT( col1 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8149
SELECT ( COUNT ( col1 ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT ALL + 8 AS col1, - col2 + + + col2 FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + ( - 13 ) AS col0 FROM tab1
----
38
72
78

query III rowsort
SELECT * FROM tab1 WHERE - - 68 IN ( - col1, - col0 * 0 / col1 * + col0 + - + 20, + col2, + - 54 + + ( - col2 ), + 55 )
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT COUNT( * ) + COUNT( ALL - 39 ) AS col0 FROM tab1 WHERE - - ( col2 ) + + col1 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-8154
SELECT COUNT ( * ) + COUNT ( ALL - 39 ) AS col0 FROM tab1 WHERE - - ( col2 ) + + col1 IS NOT NULL
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT ALL COUNT( + CAST( - + col1 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL COUNT ( + CAST ( - + col1 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT COUNT( * ) - - 83 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-8156
SELECT COUNT ( * ) - - 83 FROM tab0
----
86

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab2 WHERE NULL NOT IN ( + + col2 + + col1, 61 * col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8158
SELECT + CAST( - col1 AS SIGNED ), - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
-51
-69
-67
-133
-77
-104

skipif mysql # not compatible
query II rowsort label-8158
SELECT + CAST ( - col1 AS INTEGER ), - col0 + + - col2 AS col1 FROM tab2 AS cor0
----
-51
-69
-67
-133
-77
-104

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 42
----

query I rowsort
SELECT ALL 6 * + + col2 AS col0 FROM tab1
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL - 66 * + 40 * + + MIN( - 84 ) FROM tab1
----
221760

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - 66 * + 40 * + + MIN ( - 84 ) FROM tab1
----
221760

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT DISTINCT col2 DIV - + col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT col2 / - + col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8163
SELECT DISTINCT 24 AS col0, + CAST( NULL AS SIGNED ) FROM tab2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-8163
SELECT DISTINCT 24 AS col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
24
NULL

query II rowsort
SELECT ALL - col0 AS col0, 35 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL - ( - + 41 ) * col2 - - col0 AS col0 FROM tab2 AS cor0
----
1704
2453
989

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT - 64 DIV + - 79 + + - col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8166
SELECT - 64 / + - 79 + + - col1 FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL - col1 * 15 AS col1 FROM tab2
----
-1005
-1155
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT MAX( + col0 ) + - 70 + + - COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT MAX ( + col0 ) + - 70 + + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 99 AS col1 FROM tab0 AS cor0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----
0

query I rowsort
SELECT ALL - 38 - + col0 + - col0 FROM tab0 AS cor0
----
-212
-232
-68

query I rowsort
SELECT DISTINCT + + col0 * - col0 AS col2 FROM tab2 cor0
----
-2116
-4096
-5625

query II rowsort
SELECT 91 AS col0, + col2 * - + col2 AS col0 FROM tab2 AS cor0
----
91
-1600
91
-3364
91
-529

query I rowsort
SELECT + ( - + ( + col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT DISTINCT + COUNT( ALL - 33 ) FROM tab2 WHERE NOT - - col0 NOT BETWEEN + col0 AND - + CAST( + ( + 26 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + COUNT ( ALL - 33 ) FROM tab2 WHERE NOT - - col0 NOT BETWEEN + col0 AND - + CAST ( + ( + 26 ) AS INTEGER )
----
0

query I rowsort
SELECT ALL 68 / col1 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - + 11 + - - COUNT( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8180
SELECT ALL - + 11 + - - COUNT ( DISTINCT col2 ) col1 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 cor0 WHERE ( + + 42 ) >= - 36
----
59
68
96

query I rowsort
SELECT DISTINCT - col1 + col2 - - 17 + + - col2 * col1 + - col0 FROM tab2 AS cor0
----
-1230
-3164
-3953

query II rowsort
SELECT + - col0 + col1, col2 FROM tab2 AS cor0
----
-8
58
13
40
5
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT DISTINCT + COUNT( * ) DIV + 29 FROM tab1 WHERE NOT col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + COUNT ( * ) / + 29 FROM tab1 WHERE NOT col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT COUNT( + + 2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8186
SELECT COUNT ( + + 2 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8187
SELECT + CAST( NULL AS SIGNED ) col1, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8187
SELECT + CAST ( NULL AS INTEGER ) col1, COUNT ( * ) FROM tab2
----
NULL
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 * + col2 * - - 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + + 45 AS col0 FROM tab1
----
2655
3060
4320

query II rowsort
SELECT DISTINCT 7, col2 FROM tab0 AS cor0
----
7
10
7
47
7
99

query I rowsort
SELECT 39 FROM tab2 AS cor0 WHERE NOT + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8192
SELECT 54, - 14 + - 82 - + - COUNT( * ) * ( + - 56 ) + + 30 * + 4 AS col1 FROM tab0 cor0
----
54
-144

skipif mysql # not compatible
query II rowsort label-8192
SELECT 54, - 14 + - 82 - + - COUNT ( * ) * ( + - 56 ) + + 30 * + 4 AS col1 FROM tab0 cor0
----
54
-144

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT - col0 * + + col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT + MIN( - + col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + MIN ( - + col0 ) AS col2 FROM tab0 cor0
----
-97

query II rowsort
SELECT ALL 91, col1 AS col0 FROM tab1 AS cor0
----
91
14
91
47
91
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL IS NOT NULL ) OR + + col1 * - - col1 <= NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT DISTINCT MAX( DISTINCT 98 ), COUNT( * ) AS col1 FROM tab1
----
98
3

skipif mysql # not compatible
query II rowsort label-8197
SELECT DISTINCT MAX ( DISTINCT 98 ), COUNT ( * ) AS col1 FROM tab1
----
98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - - COUNT( * ) + + MIN( col0 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8198
SELECT - - COUNT ( * ) + + MIN ( col0 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * 7 * + col0 * + ( + col1 ) FROM tab1 AS cor0
----
1407133
14875
69972

query I rowsort
SELECT - - 36 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - col1 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT - CAST( + + 16 AS SIGNED ) FROM tab2
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-8203
SELECT - CAST ( + + 16 AS INTEGER ) FROM tab2
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
71

query I rowsort
SELECT ALL col1 * - 66 AS col2 FROM tab2 AS cor0
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL + 79 * + 82 - - + COUNT( * ) FROM tab1 cor0
----
6481

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + 79 * + 82 - - + COUNT ( * ) FROM tab1 cor0
----
6481

query I rowsort
SELECT - - col2 - + 16 + col2 FROM tab2 AS cor0
----
100
30
64

query I rowsort
SELECT DISTINCT + 40 * + col0 AS col2 FROM tab1 AS cor0
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL + COUNT( * ) + - 5 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + COUNT ( * ) + - 5 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT + - ( + col0 ) + + + 77 FROM tab2 AS cor0
----
13
2
31

query I rowsort
SELECT - 57 AS col2 FROM tab0 AS cor0 WHERE 45 IS NULL
----

query I rowsort
SELECT - col0 + + col1 + - col1 * + + col0 FROM tab0 AS cor0
----
-1149
-1893
-193

query I rowsort
SELECT ( + 25 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + - 45 + + col0 AS col2 FROM tab0
----
51
53
63

query I rowsort
SELECT ALL 62 + + col2 FROM tab2
----
102
120
85

query I rowsort
SELECT ALL 69 + - - 65 + + + col2 FROM tab0 AS cor0
----
144
181
233

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT - + 0 AS col0, + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
6

skipif mysql # not compatible
query II rowsort label-8217
SELECT - + 0 AS col0, + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
6

query I rowsort
SELECT 92 * col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( - 12 ) AND col0 + - col2
----

query I rowsort
SELECT 61 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT 53 DIV col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-78

skipif mysql # not compatible
query I rowsort label-8221
SELECT 53 / col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8222
SELECT ALL col0 DIV - - 38 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL col0 / - - 38 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
2
2

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE NOT col2 + - - 71 + - + 86 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 70 - + 68 + 92 / 89 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col0 ) col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT ALL - + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8227
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1
----
-3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8228
SELECT ALL 29, col2 DIV - + ( 40 ) AS col0 FROM tab2
----
29
-1
29
-1
29
0

skipif mysql # not compatible
query II rowsort label-8228
SELECT ALL 29, col2 / - + ( 40 ) AS col0 FROM tab2
----
29
-1
29
-1
29
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT 7 * + 19 AS col1 FROM tab0
----
133
133
133

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 / + col1 IS NULL )
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NULL )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT - col1 * + 43 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT - col1 * + 43 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * 82 AS col1 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT ALL - - col2 AS col2, + 71 AS col0 FROM tab0 AS cor0
----
10
71
47
71
99
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT CAST( NULL AS SIGNED ) col1 FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * + CAST( + - 92 AS SIGNED ) + 98 * + 53 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8237
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * + CAST ( + - 92 AS INTEGER ) + 98 * + 53 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 23 + col0 * col0 AS col0 FROM tab0
----
248
7592
9432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8239
SELECT DISTINCT CAST( - 66 AS SIGNED ) - COUNT( * ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT CAST ( - 66 AS INTEGER ) - COUNT ( * ) FROM tab1
----
-69

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE - 62 * - col2 = 91 + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + col1 >= ( col1 * col2 + col1 )
----

query I rowsort
SELECT 98 * - col0 AS col1 FROM tab1
----
-4998
-8330
-8918

query I rowsort
SELECT DISTINCT 36 + 43 FROM tab1
----
79

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8246
SELECT * FROM tab2 WHERE 80 BETWEEN ( + CAST( + col1 AS SIGNED ) ) AND ( 35 )
----

skipif mysql # not compatible
query III rowsort label-8246
SELECT * FROM tab2 WHERE 80 BETWEEN ( + CAST ( + col1 AS INTEGER ) ) AND ( 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - COUNT( * ) FROM tab0 WHERE ( col2 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT - COUNT ( * ) FROM tab0 WHERE ( col2 ) BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / 7 <> - 43 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - COUNT( DISTINCT + col2 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8249
SELECT - COUNT ( DISTINCT + col2 ) col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8251
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( + CAST( - 77 AS SIGNED ) ) < + 1
----

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( + CAST ( - 77 AS INTEGER ) ) < + 1
----

query I rowsort
SELECT - col1 + + col0 * 32 AS col1 FROM tab2
----
1421
1971
2333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT - col1 - ( 58 ) BETWEEN - CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT - col1 - ( 58 ) BETWEEN - CAST ( NULL AS INTEGER ) AND col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 22 NOT BETWEEN - col0 / col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT col2 DIV 98 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT col2 / 98 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8256
SELECT * FROM tab0 WHERE NOT ( + col2 - - col2 ) IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8256
SELECT * FROM tab0 WHERE NOT ( + col2 - - col2 ) IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8257
SELECT - 96 DIV + COUNT( * ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-8257
SELECT - 96 / + COUNT ( * ) FROM tab1
----
-32

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2 WHERE + 6 * - 82 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= - 91
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8260
SELECT CAST( + col1 AS SIGNED ) DIV + col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8260
SELECT CAST ( + col1 AS INTEGER ) / + col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE - col0 * col2 NOT BETWEEN col0 AND NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT COUNT( * ) DIV - 76 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT COUNT ( * ) / - 76 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL + MIN( + 25 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL + MIN ( + 25 ) FROM tab2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT DISTINCT col0 * - 0 + col0 AS col0 FROM tab2 WHERE + col0 DIV + 53 NOT IN ( col0 DIV col0 )
----
46

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT col0 * - 0 + col0 AS col0 FROM tab2 WHERE + col0 / + 53 NOT IN ( col0 / col0 )
----
46

query I rowsort
SELECT DISTINCT + ( 30 ) FROM tab2
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 cor0 WHERE NOT col0 * + col2 NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * ( 34 * 47 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + col1 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * 39 col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to d91930d3e593f3fc6c168f79fe639910

query I rowsort
SELECT DISTINCT 19 - + 36 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - ( + col0 ) ) * col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 37 < ( 30 ) * - 0 + - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) + - 98 FROM tab1 AS cor0 WHERE NOT col1 * ( col2 * col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 98 FROM tab1 AS cor0 WHERE NOT col1 * ( col2 * col1 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 62 FROM tab2 cor0
----
-62

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE ( - col2 + col1 ) IS NULL
----

query I rowsort
SELECT + 78 AS col2 FROM tab2 cor0
----
78
78
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT + 48 DIV + COUNT( * ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8277
SELECT + 48 / + COUNT ( * ) FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8278
SELECT DISTINCT ( COUNT( DISTINCT + ( col0 ) ) ) * MAX( DISTINCT col1 + - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT ( COUNT ( DISTINCT + ( col0 ) ) ) * MAX ( DISTINCT col1 + - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + 39 AS col0 FROM tab1
----
107
135
98

query I rowsort
SELECT DISTINCT + col2 * - 84 AS col1 FROM tab2
----
-1932
-3360
-4872

query III rowsort
SELECT * FROM tab0 WHERE NOT - 21 >= 84 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE col0 * col1 - ( col2 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL ( - COUNT( DISTINCT + 18 ) ) * ( - MAX( DISTINCT - col1 ) ) + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL ( - COUNT ( DISTINCT + 18 ) ) * ( - MAX ( DISTINCT - col1 ) ) + COUNT ( * ) FROM tab2
----
-48

query I rowsort
SELECT + 76 + + 56 + - col0 * 93 FROM tab0
----
-1263
-7959
-8889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL 81 + - COUNT( * ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 81 + - COUNT ( * ) AS col2 FROM tab1
----
78

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE - 16 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT ALL - ( - col0 ) DIV + + col0 + col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - ( - col0 ) / + + col0 + col0 FROM tab0
----
16
88
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8289
SELECT ALL MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 61 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
61
61
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 70 + - - col0 IS NULL
----

query I rowsort
SELECT ALL + - 79 + + col1 AS col2 FROM tab2 AS cor0
----
-12
-2
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT ALL + 16 - - col2 DIV + 88 + - col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
17
20
33

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + 16 - - col2 / + 88 + - col0 / - col1 AS col2 FROM tab1 AS cor0
----
17
20
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT + col2 DIV + 60 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-8294
SELECT + col2 / + 60 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
10
47
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 - - 93 col2 FROM tab2 AS cor0
----
144
160
170

query I rowsort
SELECT DISTINCT col2 - - + 65 FROM tab2 AS cor0
----
105
123
88

query I rowsort
SELECT ALL 34 + 69 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8298
SELECT - col2 + col1, col2 * CAST( 93 AS SIGNED ) AS col1 FROM tab2
----
28
2139
37
3720
9
5394

skipif mysql # not compatible
query II rowsort label-8298
SELECT - col2 + col1, col2 * CAST ( 93 AS INTEGER ) AS col1 FROM tab2
----
28
2139
37
3720
9
5394

query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab0 WHERE col0 IN ( 6 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN - 78 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL col2 / col2 FROM tab2 WHERE NOT - + col1 + + 73 NOT IN ( + CAST( - ( - col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL col2 / col2 FROM tab2 WHERE NOT - + col1 + + 73 NOT IN ( + CAST ( - ( - col1 ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT SUM( DISTINCT + col0 ) AS col2 FROM tab1 WHERE NOT + 34 * + CAST( + 69 AS SIGNED ) - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT SUM ( DISTINCT + col0 ) AS col2 FROM tab1 WHERE NOT + 34 * + CAST ( + 69 AS INTEGER ) - + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 16 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8304
SELECT ALL CAST( + ( ( 96 ) ) AS SIGNED ) AS col2 FROM tab1
----
96
96
96

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL CAST ( + ( ( 96 ) ) AS INTEGER ) AS col2 FROM tab1
----
96
96
96

query I rowsort
SELECT + 26 + + + 28 AS col2 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT - col2 + 16 AS col2 FROM tab1 AS cor0
----
-43
-52
-80

query I rowsort
SELECT DISTINCT + col1 * - ( 21 ) * col1 FROM tab0 AS cor0
----
-137781
-21
-9261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 38 <> ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT - 21 + - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8309
SELECT - 21 + - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-30

query I rowsort
SELECT - col2 * - col2 * - - col1 FROM tab0
----
178929
2100
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * - col1 + + - col1 col1 FROM tab0
----
1953
7533
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT COUNT( * ) + AVG ( DISTINCT + col1 ) FROM tab1 WHERE 74 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT COUNT ( * ) + AVG ( DISTINCT + col1 ) FROM tab1 WHERE 74 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8313
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT ( 62 ) + + COUNT( * ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT ( 62 ) + + COUNT ( * ) FROM tab1 AS cor0
----
65

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT + 81 DIV + 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-8316
SELECT + 81 / + 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT - 97 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT SUM( DISTINCT + - 49 ) col1 FROM tab1
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8318
SELECT SUM ( DISTINCT + - 49 ) col1 FROM tab1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT - ( CAST( + - 14 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8319
SELECT - ( CAST ( + - 14 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-8320
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8321
SELECT ALL - CAST( + col2 AS SIGNED ) + 90 col1, ( - - col1 ) - + col1 FROM tab2 cor0
----
32
0
50
0
67
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8321
SELECT ALL - CAST ( + col2 AS INTEGER ) + 90 col1, ( - - col1 ) - + col1 FROM tab2 cor0
----
32
0
50
0
67
0

query I rowsort
SELECT DISTINCT + col2 - + 71 * - + col1 AS col0 FROM tab1 AS cor0
----
1090
3405
414

query I rowsort
SELECT ALL + + 8 AS col0 FROM tab0 AS cor0
----
8
8
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + 53 * - + col2 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8326
SELECT ALL CAST( NULL AS DECIMAL ) * + + 39 FROM tab2 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL CAST ( NULL AS REAL ) * + + 39 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT col1 * - + ( + - 53 ) / - - col2 AS col1 FROM tab0 WHERE NOT + - 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8328
SELECT col1 DIV - 18 AS col0 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT col1 / - 18 AS col0 FROM tab1
----
-2
0
0

query II rowsort
SELECT ALL col2, - 42 - col2 FROM tab1
----
59
-101
68
-110
96
-138

query I rowsort
SELECT ( + 20 ) * - col2 AS col2 FROM tab0
----
-1980
-200
-940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8331
SELECT 70 * + col2 * col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT 70 * + col2 * col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 29 AS col1, col2 AS col2 FROM tab1 AS cor0
----
-29
59
-29
68
-29
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL - COUNT( - col0 ) FROM tab0 WHERE 33 - col2 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - COUNT ( - col0 ) FROM tab0 WHERE 33 - col2 * + col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - + col2 NOT BETWEEN - col2 * + + ( - - 0 ) AND ( NULL )
----

query I rowsort
SELECT - - col1 FROM tab2 WHERE NOT - col2 * + 12 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 / 90 / + col0 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 14 FROM tab2 cor0
----
-14

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 + - 94 / col0 + - 61 - - + col0 * + 35 >= NULL
----

query I rowsort
SELECT ALL - col2 + + 69 AS col2 FROM tab2 AS cor0
----
11
29
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT - 10 * COUNT( DISTINCT - + 84 ) AS col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT - 10 * COUNT ( DISTINCT - + 84 ) AS col0 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT - 3 FROM tab0 cor0 WHERE NULL NOT BETWEEN ( + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL + + MIN( col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + + MIN ( col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8344
SELECT - 99 * COUNT( * ) DIV - + 33 col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8344
SELECT - 99 * COUNT ( * ) / - + 33 col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL ) OR ( NULL ) NOT BETWEEN NULL AND + + 0 + - col1
----
3

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL ) OR ( NULL ) NOT BETWEEN NULL AND + + 0 + - col1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 75 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - + col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8349
SELECT - - 12 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT - - 12 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 84 * - + col1 * col2 FROM tab0 AS cor0
----
17640
319788
8316

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT 12 + + COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8351
SELECT 12 + + COUNT ( * ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8352
SELECT ( + + ( - 57 ) ) DIV + col0 + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
50
67
77

skipif mysql # not compatible
query I rowsort label-8352
SELECT ( + + ( - 57 ) ) / + col0 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
50
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8353
SELECT ALL * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) / + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8353
SELECT ALL * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) / + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * + + ( - 13 ) + - + col0 AS col2 FROM tab0
----
1190
43
596

onlyif mysql # DIV for integer division: 
query I rowsort label-8355
SELECT + col1 DIV - col1 + + - 27 FROM tab2
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-8355
SELECT + col1 / - col1 + + - 27 FROM tab2
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT - 60 + - + MIN( + 26 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - 60 + - + MIN ( + 26 ) FROM tab0 AS cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT ALL - col2 DIV - ( ( + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - col2 / - ( ( + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT - MIN( DISTINCT - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT - MIN ( DISTINCT - col1 ) AS col0 FROM tab2
----
77

query II rowsort
SELECT 37 AS col2, - 65 * - col2 AS col0 FROM tab2 AS cor0
----
37
1495
37
2600
37
3770

query I rowsort
SELECT ALL - col0 * - + 14 + 85 AS col0 FROM tab1 AS cor0
----
1275
1359
799

query II rowsort
SELECT + col1 AS col0, - col0 + + + col2 - + 60 * col1 FROM tab1 cor0
----
14
-795
47
-2843
5
-326

onlyif mysql # aggregate syntax: 
query II rowsort label-8362
SELECT ALL - COUNT( * ) AS col2, - 6 FROM tab0 AS cor0
----
-3
-6

skipif mysql # not compatible
query II rowsort label-8362
SELECT ALL - COUNT ( * ) AS col2, - 6 FROM tab0 AS cor0
----
-3
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8363
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8363
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) = NULL
----

query II rowsort
SELECT DISTINCT col1, + 27 FROM tab2 AS cor0
----
51
27
67
27
77
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col2, 39 FROM tab1 AS cor0
----
14
39
47
39
5
39

query II rowsort
SELECT 45 AS col2, + col0 FROM tab1 AS cor0
----
45
51
45
85
45
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8368
SELECT * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) >= ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-8368
SELECT * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) >= ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT IN ( - + 41 * - col2 + 81 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8370
SELECT col1 DIV + col1 AS col2, + col0 * - - col2 FROM tab2
----
1
1058
1
2560
1
4350

skipif mysql # not compatible
query II rowsort label-8370
SELECT col1 / + col1 AS col2, + col0 * - - col2 FROM tab2
----
1
1058
1
2560
1
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * + - 14 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-182
-182
-182

query III rowsort
SELECT * FROM tab0 WHERE NOT 89 * - col0 * - 39 + + 87 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 80 + - col2 FROM tab2
----
-103
-120
-138

query I rowsort
SELECT + col1 * col2 + + col0 AS col0 FROM tab0
----
196
297
3822

query I rowsort
SELECT col1 + - + col2 AS col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT + col1 + - + ( - - col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 + - col0 + - ( col1 ) - col1 + - col0 * - - 46 FROM tab0 AS cor0
----
-4152
-4562
-948

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8378
SELECT ALL - CAST( + - col0 AS SIGNED ) * - - col1 AS col0, 90 FROM tab2 AS cor0
----
2346
90
4928
90
5025
90

skipif mysql # not compatible
query II rowsort label-8378
SELECT ALL - CAST ( + - col0 AS INTEGER ) * - - col1 AS col0, 90 FROM tab2 AS cor0
----
2346
90
4928
90
5025
90

query II rowsort
SELECT ALL col1, - col0 AS col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + + 11 AS col2 FROM tab1 AS cor0
----
-48
-57
-85

query I rowsort
SELECT ALL + - col1 * + - 87 FROM tab1 AS cor0
----
1218
4089
435

query I rowsort
SELECT - ( + 24 ) * + - col0 AS col1 FROM tab2 AS cor0
----
1104
1536
1800

query I rowsort
SELECT DISTINCT + col2 + ( + col0 ) FROM tab0
----
196
62
97

query I rowsort
SELECT - 85 * - 87 FROM tab2
----
7395
7395
7395

query I rowsort
SELECT ALL - col1 + - col0 * + col1 FROM tab2
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + COUNT( * ) - - COUNT( - 50 ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8387
SELECT + COUNT ( * ) - - COUNT ( - 50 ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT ALL COUNT( DISTINCT + 62 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL COUNT ( DISTINCT + 62 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 80 - - col1 AS col1 FROM tab2 cor0
----
-13
-29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL - 59 + - + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8390
SELECT ALL - 59 + - + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-68

query I rowsort
SELECT - ( col0 ) * - 84 + - - col2 FROM tab2 WHERE ( - col1 IS NOT NULL )
----
3887
5416
6358

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL - COUNT( ( col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL - COUNT ( ( col2 ) ) FROM tab2
----
-3

query I rowsort
SELECT + 10 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + - col1 NOT IN ( 45 + 18 * 16, + 54 - - + col2 )
----

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT + col1 NOT IN ( - - col1 )
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT ALL SUM( - + CAST( + + 61 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL SUM ( - + CAST ( + + 61 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-183

onlyif mysql # DIV for integer division: 
query II rowsort label-8396
SELECT 39 AS col1, col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
39
0
39
1
39
1

skipif mysql # not compatible
query II rowsort label-8396
SELECT 39 AS col1, col1 / + col0 AS col1 FROM tab2 AS cor0
----
39
0
39
1
39
1

query I rowsort
SELECT ALL + col0 * col2 * + - col0 AS col1 FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 28 + + - col0 > col1 * + 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 20 AS col0, - col0 - col0 col2 FROM tab2
----
-20
-128
-20
-150
-20
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab2 cor0
----
21

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * 12 < NULL
----

query I rowsort
SELECT ALL col0 + - 81 + + col0 FROM tab0
----
-51
113
93

query I rowsort
SELECT 18 + col0 / 51 / - col2 + + + col1 * + 15 FROM tab0 AS cor0 WHERE - 4 - 29 * - - col1 BETWEEN NULL AND + - col2 * + 90
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8405
SELECT DISTINCT - 31 col1, + COUNT( * ) * + 57 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-31
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8405
SELECT DISTINCT - 31 col1, + COUNT ( * ) * + 57 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-31
0

query II rowsort
SELECT DISTINCT + col1 + - col1, + col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + COUNT( * ) * COUNT( * ) * - SUM( col1 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT + COUNT ( * ) * COUNT ( * ) * - SUM ( col1 ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT ALL col2 + + col2 * - CAST( col1 AS SIGNED ) + - + col1 + - + 43 + + CAST( NULL AS SIGNED ) * + + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL col2 + + col2 * - CAST ( col1 AS INTEGER ) + - + col1 + - + 43 + + CAST ( NULL AS INTEGER ) * + + 68 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8409
SELECT - col2 / col1 + - 96 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT - col2 / col1 + - 96 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + MAX( + - col0 ) + COUNT( * ) * + - 6 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-8410
SELECT + MAX ( + - col0 ) + COUNT ( * ) * + - 6 FROM tab1
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 84 col0, + 81 AS col0 FROM tab0
----
84
81
84
81
84
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8412
SELECT * FROM tab2 WHERE NULL <= + 38 / col1 * + CAST( NULL AS SIGNED ) * col2 + - 10
----

skipif mysql # not compatible
query III rowsort label-8412
SELECT * FROM tab2 WHERE NULL <= + 38 / col1 * + CAST ( NULL AS INTEGER ) * col2 + - 10
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL CAST( 30 AS SIGNED ) AS col0 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL CAST ( 30 AS INTEGER ) AS col0 FROM tab2
----
30
30
30

query I rowsort
SELECT ALL + col0 + ( - - 20 ) FROM tab1
----
105
111
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8415
SELECT ALL CAST( NULL AS DECIMAL ) + - - col1 + - 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL CAST ( NULL AS REAL ) + - - col1 + - 24 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 12 * + 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 * + + col1 + - + 77 + - + 53 AS col1 FROM tab0 AS cor0
----
-31
3677
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - col1 * - + col1 * - - 0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - col1 * - + col1 * - - 0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + + ( - + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8419
SELECT + + ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT ALL SUM( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT ALL SUM ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT DISTINCT 55 DIV MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT 55 / MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 * - ( + col1 ) + - - 5 AS col1 FROM tab0 cor0
----
-436
-6556
4

query I rowsort
SELECT - + col0 * - - col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + - col0 * - 93 FROM tab2 AS cor0
----
4278
5952
6975

query I rowsort
SELECT DISTINCT 1 * - 38 FROM tab2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT ALL ( + col1 ) DIV 43 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL ( + col1 ) / 43 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8427
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 90 * + + col1 AS col2 FROM tab2
----
4590
6030
6930

onlyif mysql # aggregate syntax: 
query II rowsort label-8429
SELECT COUNT( * ) AS col0, - ( - - 31 ) FROM tab2
----
3
-31

skipif mysql # not compatible
query II rowsort label-8429
SELECT COUNT ( * ) AS col0, - ( - - 31 ) FROM tab2
----
3
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8430
SELECT * FROM tab1 WHERE NOT + 46 + + CAST( + col1 AS SIGNED ) NOT BETWEEN + col2 * + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8430
SELECT * FROM tab1 WHERE NOT + 46 + + CAST ( + col1 AS INTEGER ) NOT BETWEEN + col2 * + - col2 AND NULL
----

query I rowsort
SELECT ALL 53 + 27 AS col0 FROM tab2
----
80
80
80

query II rowsort
SELECT ALL - + 70, 4 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col0 * - col0 - 10 FROM tab1 AS cor0
----
2591
7215
8271

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 30 / + 27 < col1 * - - col2
----

query I rowsort
SELECT ALL - + col1 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT - 44 * + ( - SUM( - col2 ) ) + - - 5 FROM tab1 AS cor0
----
-9807

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT - 44 * + ( - SUM ( - col2 ) ) + - - 5 FROM tab1 AS cor0
----
-9807

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + MIN( - 69 ) AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8437
SELECT + MIN ( - 69 ) AS col1 FROM tab0 AS cor0
----
-69

query II rowsort
SELECT col1 * 75, col1 FROM tab0 AS cor0
----
1575
21
6075
81
75
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 45 - ( + - col1 ) IS NULL
----

query I rowsort
SELECT + 41 * + - 50 * + col2 AS col2 FROM tab2
----
-118900
-47150
-82000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 1 col2 FROM tab1
----
52
86
92

query I rowsort
SELECT + col0 + - col1 + + col1 AS col0 FROM tab2 WHERE + + 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT DISTINCT - col2 * - col1 * + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT - col2 * - col1 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT - 7 - + 96 AS col2, - col1 AS col1 FROM tab2
----
-103
-51
-103
-67
-103
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT + CAST( col2 AS SIGNED ) * + col2 * + + col1 - - col2 AS col2 FROM tab0
----
178976
2110
9900

skipif mysql # not compatible
query I rowsort label-8445
SELECT + CAST ( col2 AS INTEGER ) * + col2 * + + col1 - - col2 AS col2 FROM tab0
----
178976
2110
9900

query I rowsort
SELECT + col0 FROM tab2 WHERE - col2 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8447
SELECT ALL MIN( - col0 ) DIV - ( SUM( col0 ) ) + 79 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL MIN ( - col0 ) / - ( SUM ( col0 ) ) + 79 FROM tab2
----
79

query I rowsort
SELECT DISTINCT 87 + + col0 FROM tab1
----
138
172
178

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1 + 54
----

query I rowsort
SELECT col1 - - 48 FROM tab2
----
115
125
99

query I rowsort
SELECT DISTINCT + 5 + - col0 - col0 FROM tab1
----
-165
-177
-97

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab1 cor0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT - COUNT( * ), + MAX( + col0 ) AS col2 FROM tab2
----
-3
75

skipif mysql # not compatible
query II rowsort label-8453
SELECT - COUNT ( * ), + MAX ( + col0 ) AS col2 FROM tab2
----
-3
75

query I rowsort
SELECT DISTINCT ( + ( - + 80 ) ) AS col0 FROM tab0
----
-80

query I rowsort
SELECT + col1 * col0 * - col0 FROM tab0 cor0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8456
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 72 FROM tab1 AS cor0
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-8456
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 72 FROM tab1 AS cor0
----
NULL
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT + COUNT( - 66 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + COUNT ( - 66 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + - 28 AS col1 FROM tab0 AS cor0
----
-28
-28
-28

query II rowsort
SELECT + col0, + col2 AS col2 FROM tab0 cor0
----
15
47
87
10
97
99

query II rowsort
SELECT + 47, col2 FROM tab0 AS cor0
----
47
10
47
47
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL + MAX( - - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + MAX ( - - col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT + + SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + + SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + ( + ( + SUM( 59 ) ) ) col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8463
SELECT + ( + ( + SUM ( 59 ) ) ) col2 FROM tab0 AS cor0
----
177

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col1 col1 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - col0 * col0 - + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-12240
-14469
-7497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8467
SELECT + + COUNT( * ) DIV + COUNT( * ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8467
SELECT + + COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT - + MAX( DISTINCT + - col2 ) FROM tab2 WHERE NOT - + 33 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-8468
SELECT - + MAX ( DISTINCT + - col2 ) FROM tab2 WHERE NOT - + 33 IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT - MAX( DISTINCT - col2 ) * - 56 AS col0 FROM tab0
----
-560

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - MAX ( DISTINCT - col2 ) * - 56 AS col0 FROM tab0
----
-560

query I rowsort
SELECT DISTINCT - 74 + - col1 AS col2 FROM tab2
----
-125
-141
-151

query I rowsort
SELECT DISTINCT col2 * - - col2 * + col1 AS col1 FROM tab2
----
123200
225388
26979

query II rowsort
SELECT ( + col2 ), - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT ALL CAST( NULL AS SIGNED ) + + col2 - 13 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 - 13 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 47 FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - col2 + col1, - col0, - + col2 * - - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 45 - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 45 + 67 * col0 * col0 AS col0 FROM tab2 cor0
----
141817
274477
376920

query I rowsort
SELECT ALL + 12 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT - ( + + 71 ) + + 15 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-56

query I rowsort
SELECT DISTINCT col1 * + + 28 * + 7 AS col0 FROM tab0 AS cor0
----
15876
196
4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT - CAST( NULL AS SIGNED ) + - 75 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT - CAST ( NULL AS INTEGER ) + - 75 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT ALL - CAST( - 11 AS SIGNED ) - - 96 * col0 AS col2 FROM tab2 AS cor0
----
4427
6155
7211

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - CAST ( - 11 AS INTEGER ) - - 96 * col0 AS col2 FROM tab2 AS cor0
----
4427
6155
7211

query I rowsort
SELECT + - 7 + + + col1 AS col1 FROM tab2 AS cor0
----
44
60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL + ( MAX( DISTINCT - col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + ( MAX ( DISTINCT - col2 ) ) AS col1 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT + col2 + - 12 * + col0 AS col0, col1 + + + col2 AS col2 FROM tab1 cor0
----
-1024
115
-516
110
-961
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8485
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - 78 + col2 * col0 * col2 ) AND CAST( 7 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8485
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( - 78 + col2 * col0 * col2 ) AND CAST ( 7 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8486
SELECT DISTINCT COUNT( ALL - - 82 ) DIV 67 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT COUNT ( ALL - - 82 ) / 67 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8487
SELECT ALL * FROM tab1 WHERE NOT - + col1 * CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8487
SELECT ALL * FROM tab1 WHERE NOT - + col1 * CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 94 * + 67 + + col0 + - col2 * + - 47 FROM tab1
----
10861
9156
9585

query I rowsort
SELECT - - col2 FROM tab2 WHERE - 75 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT ALL col2 DIV - 30 AS col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL col2 / - 30 AS col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT + col1 * - + col1 * - 20 * ( - col0 ) AS col1 FROM tab1
----
-199920
-4020380
-42500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT + 3 ) * + - 77 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT + 3 ) * + - 77 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8493
SELECT DISTINCT - col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8493
SELECT DISTINCT - col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + MAX( ALL + + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + MAX ( ALL + + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8495
SELECT * FROM tab0 WHERE NOT - - col0 DIV - col1 * col1 NOT IN ( 25 DIV col2, CAST( NULL AS SIGNED ) * 89 * col2, + - ( + col2 ) + + col1 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-8495
SELECT * FROM tab0 WHERE NOT - - col0 / - col1 * col1 NOT IN ( 25 / col2, CAST ( NULL AS INTEGER ) * 89 * col2, + - ( + col2 ) + + col1 )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT + MIN( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT + MIN ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 82 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query I rowsort
SELECT - col2 * - + 85 AS col2 FROM tab0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + MAX( ALL - 84 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + MAX ( ALL - 84 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 23 = NULL
----

query I rowsort
SELECT - col0 + - 95 * + - col0 + - col1 AS col0 FROM tab0 AS cor0
----
1329
8157
9117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT DISTINCT + col1 * - CAST( + + 19 AS SIGNED ) * - + col1 * - col0 - + + col1 AS col2 FROM tab0 AS cor0
----
-1844
-1869966
-728994

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT + col1 * - CAST ( + + 19 AS INTEGER ) * - + col1 * - col0 - + + col1 AS col2 FROM tab0 AS cor0
----
-1844
-1869966
-728994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + - + col0 * - - 79 col1 FROM tab1 cor0
----
-3957
-6643
-7117

query II rowsort
SELECT - + 79 + + col2 * col1 AS col0, col1 + - - col0 - + col1 FROM tab0 cor0
----
131
87
20
97
3728
15

query I rowsort
SELECT + 29 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 75 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT + 45 + col2 AS col0 FROM tab0
----
144
55
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8508
SELECT ALL - 12 + + 59 * - - col1 AS col1, col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
2997
NULL
3941
NULL
4531
NULL

skipif mysql # not compatible
query II rowsort label-8508
SELECT ALL - 12 + + 59 * - - col1 AS col1, col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
2997
NULL
3941
NULL
4531
NULL

query I rowsort
SELECT DISTINCT - + 28 + col1 AS col2 FROM tab1 AS cor0
----
-14
-23
19

query II rowsort
SELECT ALL - - col0 * + ( ( - 51 ) ) AS col2, col1 AS col1 FROM tab2 AS cor0
----
-2346
51
-3264
77
-3825
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8511
SELECT - - CAST( NULL AS SIGNED ), + col2 - - ( - col0 ) AS col1 FROM tab1 cor0
----
NULL
-23
NULL
-26
NULL
45

skipif mysql # not compatible
query II rowsort label-8511
SELECT - - CAST ( NULL AS INTEGER ), + col2 - - ( - col0 ) AS col1 FROM tab1 cor0
----
NULL
-23
NULL
-26
NULL
45

query I rowsort
SELECT DISTINCT - + 2 FROM tab0 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - COUNT( * ) + + 91 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-8513
SELECT - COUNT ( * ) + + 91 FROM tab2
----
88

query I rowsort
SELECT ALL - - 25 + + 59 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - col0 + + 59 AS col0 FROM tab0
----
-28
-38
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL + 89 + MIN( + - col0 ) AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL + 89 + MIN ( + - col0 ) AS col0 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8517
SELECT ALL + + CAST( NULL AS SIGNED ) * 90 + col2 + + col1 / + + col1 col2, 93 AS col1 FROM tab1 cor0
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8517
SELECT ALL + + CAST ( NULL AS INTEGER ) * 90 + col2 + + col1 / + + col1 col2, 93 AS col1 FROM tab1 cor0
----
NULL
93
NULL
93
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + - COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 WHERE - 69 + + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8518
SELECT + - COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 WHERE - 69 + + - col0 IS NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT + col1 IS NULL
----
23
40
58

query I rowsort
SELECT + 33 * - + col2 FROM tab0
----
-1551
-3267
-330

onlyif mysql # DIV for integer division: 
query II rowsort label-8521
SELECT - col0 AS col0, - col1 DIV + 47 col2 FROM tab2
----
-46
-1
-64
-1
-75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8521
SELECT - col0 AS col0, - col1 / + 47 col2 FROM tab2
----
-46
-1
-64
-1
-75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL ( + SUM( DISTINCT col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL ( + SUM ( DISTINCT col1 ) ) FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 60 - + - 29 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT DISTINCT - CAST( - 5 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - CAST ( - 5 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT SUM( DISTINCT - col1 ) * - COUNT( * ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-8526
SELECT SUM ( DISTINCT - col1 ) * - COUNT ( * ) FROM tab0
----
309

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - 8 IS NOT NULL )
----

query I rowsort
SELECT - 69 AS col1 FROM tab2 cor0 WHERE NOT + col0 >= + 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL >= NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * + + 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT - - COUNT( * ) * - 98 + + - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
-340

skipif mysql # not compatible
query I rowsort label-8531
SELECT - - COUNT ( * ) * - 98 + + - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8532
SELECT DISTINCT + - 60 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT + - 60 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT DISTINCT + + col1 AS col2, - 81 + + - col1 AS col0 FROM tab1 AS cor0
----
14
-95
47
-128
5
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + - 17 )
----

query I rowsort
SELECT + 53 * + col1 * - col1 * + ( - col1 ) FROM tab2 AS cor0
----
15940439
24196249
7030503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8537
SELECT DISTINCT - COUNT( * ) DIV + - COUNT( * ) + - 51 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( * ) + - 51 FROM tab2
----
-50

query I rowsort
SELECT - col1 * + + col1 + + + 34 AS col1 FROM tab0
----
-407
-6527
33

query I rowsort
SELECT ALL + col0 * + col2 + - - col1 + col2 + + - col1 AS col2 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT ALL 57 + - col0 AS col2 FROM tab0
----
-30
-40
42

query I rowsort
SELECT DISTINCT col2 * + col1 + + - col1 AS col1 FROM tab0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL + 0 * COUNT( ALL + - col0 ) AS col1 FROM tab1 AS cor0 WHERE 74 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + 0 * COUNT ( ALL + - col0 ) AS col1 FROM tab1 AS cor0 WHERE 74 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 * - - ( - col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8544
SELECT + MIN( 57 ) * - ( - - 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-8544
SELECT + MIN ( 57 ) * - ( - - CAST ( NULL AS REAL ) ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 * + 64 FROM tab2 AS cor0
----
-2944
-4096
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8546
SELECT SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 3 IS NULL
----

query I rowsort
SELECT ALL col0 + + + col2 AS col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT + 52 + + 99 AS col1 FROM tab2 AS cor0
----
151
151
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT - col1 + CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
420
4230
700

skipif mysql # not compatible
query I rowsort label-8550
SELECT - col1 + CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT ALL + 3 + - + col1 FROM tab2 AS cor0
----
-48
-64
-74

query II rowsort
SELECT ALL - 61, 12 AS col2 FROM tab0 AS cor0
----
-61
12
-61
12
-61
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, + col1 col2 FROM tab0 cor0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL + 25 AS col1, + 21 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT 25 * + COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8555
SELECT 25 * + COUNT ( * ) FROM tab0
----
75

query II rowsort
SELECT col1 * + 77 AS col1, ( col2 ) FROM tab0
----
1617
10
6237
47
77
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT DISTINCT col2 * 55 DIV - + col0 FROM tab2
----
-27
-34
-42

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT col2 * 55 / - + col0 FROM tab2
----
-27
-34
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT DISTINCT + - col2 / - + col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT + - col2 / - + col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT CAST( + 1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( + col2 ) * col2 * col2 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8559
SELECT CAST ( + 1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( + col2 ) * col2 * col2 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT - - MIN( + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8560
SELECT - - MIN ( + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8561
SELECT ALL + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8561
SELECT ALL + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT - - MAX( DISTINCT - 10 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - - MAX ( DISTINCT - 10 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT DISTINCT - 67 DIV - - col0 col0 FROM tab0
----
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8563
SELECT DISTINCT - 67 / - - col0 col0 FROM tab0
----
-4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT DISTINCT CAST( - ( - MAX( DISTINCT - - col1 ) ) AS SIGNED ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT CAST ( - ( - MAX ( DISTINCT - - col1 ) ) AS INTEGER ) AS col1 FROM tab2
----
77

query II rowsort
SELECT DISTINCT 32 * + ( - + col1 ) + + col1 + 76, col1 AS col0 FROM tab1 AS cor0
----
-1381
47
-358
14
-79
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT ALL 36 DIV - col1 FROM tab0 AS cor0
----
-1
-36
0

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL 36 / - col1 FROM tab0 AS cor0
----
-1
-36
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT DISTINCT CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT - + SUM( - - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8568
SELECT - + SUM ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8569
SELECT col2 / col1 * + ( + + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT col2 / col1 * + ( + + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 29 * - col0 * + col0 * - col2 + 12 FROM tab2
----
1411384
4751372
9461262

query I rowsort
SELECT DISTINCT col2 * + 64 + 1 FROM tab1
----
3777
4353
6145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8573
SELECT - 4 - + - CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8573
SELECT - 4 - + - CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + ( + SUM( - + col1 ) ) - - - 45 AS col1 FROM tab0 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-8574
SELECT + ( + SUM ( - + col1 ) ) - - - 45 AS col1 FROM tab0 AS cor0
----
-148

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8575
SELECT ALL + col1 / + - col2 * - col2 + ( col1 ) - - - CAST( NULL AS SIGNED ) + - - CAST( col1 AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + col1 / + - col2 * - col2 + ( col1 ) - - - CAST ( NULL AS INTEGER ) + - - CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8576
SELECT - - CAST( + 35 AS SIGNED ) * 27 * col1 - - + col1 DIV col2, + 0 AS col0 FROM tab0 AS cor0
----
19847
0
76546
0
945
0

skipif mysql # not compatible
query II rowsort label-8576
SELECT - - CAST ( + 35 AS INTEGER ) * 27 * col1 - - + col1 / col2, + 0 AS col0 FROM tab0 AS cor0
----
19847
0
76546
0
945
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT DISTINCT SUM( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT SUM ( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 7 * - + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 - + 68 AS col1 FROM tab1 AS cor0
----
-115
-73
-82

query I rowsort
SELECT + col1 + col0 * + col2 + col0 AS col0 FROM tab2
----
1155
2701
4492

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT col1 DIV + col1 + - col1 AS col2 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-8581
SELECT col1 / + col1 + - col1 AS col2 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT DISTINCT + col0 + + - 99 AS col1 FROM tab0
----
-12
-2
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + COUNT( * ) * - ( 56 ) + 8 AS col0 FROM tab2
----
-160

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + COUNT ( * ) * - ( 56 ) + 8 AS col0 FROM tab2
----
-160

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT + MIN( + + col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + - col1 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT + MIN ( + + col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + - col1 AND + col1
----
NULL

query I rowsort
SELECT ALL - - col0 * + col1 * - 62 AS col2 FROM tab2 cor0
----
-145452
-305536
-311550

query II rowsort
SELECT col1 AS col1, + col1 + - + 6 FROM tab2
----
51
45
67
61
77
71

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT - COUNT( * ) * - 95 AS col0 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - COUNT ( * ) * - 95 AS col0 FROM tab2
----
285

query II rowsort
SELECT col0 AS col1, - col0 + - 68 AS col0 FROM tab0
----
15
-83
87
-155
97
-165

query I rowsort
SELECT ALL - col2 * ( + 42 ) AS col2 FROM tab2
----
-1680
-2436
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT DISTINCT col2 DIV + 47 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT col2 / + 47 FROM tab0
----
0
1
2

query II rowsort
SELECT DISTINCT + col1, col0 - + col1 * - col1 AS col2 FROM tab0
----
1
98
21
528
81
6576

query I rowsort
SELECT 2 * + - 87 * + col1 * col1 FROM tab2
----
-1031646
-452574
-781086

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT - 83 * - + COUNT( * ) * + - 48 AS col1 FROM tab0
----
-11952

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT - 83 * - + COUNT ( * ) * + - 48 AS col1 FROM tab0
----
-11952

query I rowsort
SELECT ALL col1 * - - 55 AS col0 FROM tab0
----
1155
4455
55

query I rowsort
SELECT - + col0 * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT ALL - col0 DIV - + 14 + - 88 + + + col0 AS col2 FROM tab0
----
-72
15
5

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - col0 / - + 14 + - 88 + + + col0 AS col2 FROM tab0
----
-72
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + - ( + MAX( DISTINCT + 25 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT + - ( + MAX ( DISTINCT + 25 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT DISTINCT + 41 + - SUM( ALL + 90 ) FROM tab0 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + 41 + - SUM ( ALL + 90 ) FROM tab0 AS cor0
----
-229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col2 FROM tab1 cor0 WHERE ( col1 * col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT COUNT( * ) * + 71 * + 83 FROM tab1 AS cor0
----
17679

skipif mysql # not compatible
query I rowsort label-8602
SELECT COUNT ( * ) * + 71 * + 83 FROM tab1 AS cor0
----
17679

query I rowsort
SELECT DISTINCT + col0 + - + col1 * - 51 AS col0 FROM tab1 AS cor0
----
2488
340
765

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT 68 * + 59 + + - col2 DIV col0 - - col0 FROM tab1 AS cor0
----
4062
4097
4103

skipif mysql # not compatible
query I rowsort label-8604
SELECT 68 * + 59 + + - col2 / col0 - - col0 FROM tab1 AS cor0
----
4062
4097
4103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 0 FROM tab0 AS cor0 WHERE NOT 60 + - 30 BETWEEN NULL AND - col0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT CAST( - MIN( DISTINCT - col0 ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8607
SELECT CAST ( - MIN ( DISTINCT - col0 ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8608
SELECT - + COUNT( * ) + + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT - + COUNT ( * ) + + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8609
SELECT + + 51 / - 23 + - + AVG ( - + col1 ) + SUM( DISTINCT - col0 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT + + 51 / - 23 + - + AVG ( - + col1 ) + SUM ( DISTINCT - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col1 + + col2 AS col2, col0 AS col2 FROM tab2 AS cor0
----
117
64
125
75
74
46

query I rowsort
SELECT col2 + - + 57 FROM tab2
----
-17
-34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - COUNT( DISTINCT + 91 ) + + + COUNT( * ) * - COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8612
SELECT - COUNT ( DISTINCT + 91 ) + + + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-10

query I rowsort
SELECT + col2 + col1 * + col1 FROM tab0
----
100
451
6608

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col2 IS NOT NULL
----
15
87
97

query II rowsort
SELECT ALL - col0 AS col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8616
SELECT DISTINCT + + 56, + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
56
3

skipif mysql # not compatible
query II rowsort label-8616
SELECT DISTINCT + + 56, + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
56
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT DISTINCT - 85 - + - COUNT( * ) col0 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8618
SELECT DISTINCT - 85 - + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT + MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8619
SELECT + MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - + 4 AS col2 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8621
SELECT CAST( - - col2 AS SIGNED ) AS col0, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-8621
SELECT CAST ( - - col2 AS INTEGER ) AS col0, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT + COUNT( * ) col0, + 53 FROM tab1 cor0
----
3
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8622
SELECT + COUNT ( * ) col0, + 53 FROM tab1 cor0
----
3
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT - - COUNT( + 92 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT - - COUNT ( + 92 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT ALL COUNT( * ), + MIN( + 14 ) AS col2 FROM tab0 AS cor0
----
3
14

skipif mysql # not compatible
query II rowsort label-8624
SELECT ALL COUNT ( * ), + MIN ( + 14 ) AS col2 FROM tab0 AS cor0
----
3
14

query I rowsort
SELECT - col1 * - col0 * - col1 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
180625
18292729
509796

query I rowsort
SELECT - col2 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN - + col0 * + + 47 AND - col0
----
3364

query I rowsort
SELECT DISTINCT - - 30 * - - 41 - + 95 AS col0 FROM tab2 AS cor0
----
1135

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + col1, + col0 col0 FROM tab2 cor0
----
-2601
46
-4489
75
-5929
64

query I rowsort
SELECT ALL - col0 * + col0 + + col1 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8631
SELECT * FROM tab2 WHERE NOT CAST( - + 83 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8631
SELECT * FROM tab2 WHERE NOT CAST ( - + 83 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 73 * ( col2 ) AS col1 FROM tab2
----
-1679
-2920
-4234

onlyif mysql # DIV for integer division: 
query II rowsort label-8633
SELECT col0 DIV 77 AS col0, 92 FROM tab0 AS cor0
----
0
92
1
92
1
92

skipif mysql # not compatible
query II rowsort label-8633
SELECT col0 / 77 AS col0, 92 FROM tab0 AS cor0
----
0
92
1
92
1
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8634
SELECT ALL + col1 + - CAST( NULL AS DECIMAL ) * + 9 + 43 * - + 54 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + col1 + - CAST ( NULL AS REAL ) * + 9 + 43 * - + 54 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - - 9 FROM tab1 WHERE NULL IS NULL
----
126
423
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8636
SELECT DISTINCT + col0 * - col1 DIV - col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT + col0 * - col1 / - col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 * + + 21 FROM tab2 AS cor0
----
1218
483
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, 33 AS col2 FROM tab1 cor0
----
14
33
47
33
5
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col2 FROM tab2 AS cor0 WHERE col1 < ( + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND - 57
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 37 AND + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8642
SELECT DISTINCT - + 86, + COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-86
3

skipif mysql # not compatible
query II rowsort label-8642
SELECT DISTINCT - + 86, + COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-86
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8643
SELECT * FROM tab2 WHERE ( + ( CAST( + col1 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8643
SELECT * FROM tab2 WHERE ( + ( CAST ( + col1 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + 23 * + - col0 FROM tab0
----
-2001
-2231
-345

onlyif mysql # DIV for integer division: 
query II rowsort label-8645
SELECT + 41 - col2 AS col0, - col2 DIV - + col0 FROM tab0
----
-58
1
-6
3
31
0

skipif mysql # not compatible
query II rowsort label-8645
SELECT + 41 - col2 AS col0, - col2 / - + col0 FROM tab0
----
-58
1
-6
3
31
0

query I rowsort
SELECT ALL - - col2 - + ( + col2 ) AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - 22 )
----

query II rowsort
SELECT ALL - col2 AS col1, 85 - - - col1 AS col0 FROM tab2 AS cor0
----
-23
34
-40
8
-58
18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 + col1 - + col0 AND + + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT - MIN( - 21 ) FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT - MIN ( - 21 ) FROM tab1 cor0
----
21

query II rowsort
SELECT ALL - col1, + col0 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + + col1, col0 )
----

query II rowsort
SELECT ALL 81, col2 AS col2 FROM tab2
----
81
23
81
40
81
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - col1 FROM tab1
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - ( + - 26 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 92 ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT 85 + + 79 FROM tab0 AS cor0
----
164
164
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL 24 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL 24 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61 col1, col1 FROM tab1 AS cor0
----
61
14
61
47
61
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8660
SELECT - SUM( col2 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT - SUM ( col2 ) * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - MAX( + 52 ) AS col2 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8661
SELECT - MAX ( + 52 ) AS col2 FROM tab0 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8662
SELECT DISTINCT 80 + CAST( NULL AS DECIMAL ) / - CAST( - col0 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT 80 + CAST ( NULL AS REAL ) / - CAST ( - col0 AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT col0 DIV + - 49 col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8663
SELECT col0 / + - 49 col1 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT MIN( DISTINCT + 39 ) + + + 84 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT MIN ( DISTINCT + 39 ) + + + 84 FROM tab1
----
123

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query I rowsort
SELECT - ( - 88 ) - col1 FROM tab1 AS cor0
----
41
74
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL + col0 DIV col1 * + ( ( 72 ) ) FROM tab0 AS cor0
----
0
288
6984

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + col0 / col1 * + ( ( 72 ) ) FROM tab0 AS cor0
----
0
288
6984

query II rowsort
SELECT DISTINCT - ( + 93 ) - + col1 AS col0, + col1 + col0 + + + col0 - col0 FROM tab1 AS cor0
----
-107
65
-140
138
-98
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8669
SELECT ALL - 48 * - ( - COUNT( ALL + CAST( NULL AS SIGNED ) ) ) - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL - 48 * - ( - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) - - COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 / - col0 AS col0 FROM tab0 AS cor0 WHERE 70 IS NULL
----

query I rowsort
SELECT ( + + col0 ) + - - col0 + - + 73 AS col2 FROM tab2
----
19
55
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT COUNT( * ) * - COUNT( DISTINCT - + col2 ) + ( MAX( ALL + col1 ) ) AS col2 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-8672
SELECT COUNT ( * ) * - COUNT ( DISTINCT - + col2 ) + ( MAX ( ALL + col1 ) ) AS col2 FROM tab2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT - 32 DIV - + col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8673
SELECT - 32 / - + col2 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( - 71 ) * + col2 * col1
----

query I rowsort
SELECT ALL 35 - + 72 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN + + col2 + + - col2 / + 46 + col1 AND - - 33
----

query I rowsort
SELECT ALL - 69 * + 63 AS col0 FROM tab2 AS cor0
----
-4347
-4347
-4347

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 61 * - col2 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - + SUM( 96 ) FROM tab1 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8679
SELECT - + SUM ( 96 ) FROM tab1 cor0
----
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT + COUNT( * ) AS col2, - 40 FROM tab2 AS cor0
----
3
-40

skipif mysql # not compatible
query II rowsort label-8680
SELECT + COUNT ( * ) AS col2, - 40 FROM tab2 AS cor0
----
3
-40

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 AND col1 / 96
----

query I rowsort
SELECT 12 * col0 + - col2 AS col0 FROM tab0
----
1034
1065
133

query I rowsort
SELECT col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT + col2 * - col1 + CAST( - 81 AS SIGNED ) FROM tab1
----
-1425
-3277
-376

skipif mysql # not compatible
query I rowsort label-8684
SELECT + col2 * - col1 + CAST ( - 81 AS INTEGER ) FROM tab1
----
-1425
-3277
-376

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - 98 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 2 - - col0 AS col1 FROM tab1
----
49
83
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8687
SELECT COUNT( * ) DIV + 2 - CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8687
SELECT COUNT ( * ) / + 2 - CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8688
SELECT DISTINCT col1 DIV ( - 46 ) + - col0 * - col0 FROM tab2
----
2115
4095
5624

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT col1 / ( - 46 ) + - col0 * - col0 FROM tab2
----
2115
4095
5624

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT - ( - MAX( - 94 ) ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - ( - MAX ( - 94 ) ) AS col1 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8690
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( - col2 )
----
0

query I rowsort
SELECT DISTINCT + 32 - col0 * + col1 FROM tab1
----
-393
-4245
-682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT DISTINCT 38 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT 38 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 93 + - col1 FROM tab0
----
12
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT + COUNT( * ) * + COUNT( * ) - 60 * - 26 FROM tab1
----
1569

skipif mysql # not compatible
query I rowsort label-8694
SELECT + COUNT ( * ) * + COUNT ( * ) - 60 * - 26 FROM tab1
----
1569

query III rowsort
SELECT * FROM tab0 WHERE NOT - 47 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT COUNT( * ) FROM tab2 WHERE col1 * + 49 + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8696
SELECT COUNT ( * ) FROM tab2 WHERE col1 * + 49 + + col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL 51 * 79 AS col2 FROM tab1
----
4029
4029
4029

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= ( + 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT - SUM( DISTINCT col2 ) * COUNT( - 49 ) AS col2 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-8699
SELECT - SUM ( DISTINCT col2 ) * COUNT ( - 49 ) AS col2 FROM tab0 AS cor0
----
-468

query I rowsort
SELECT DISTINCT col1 * col1 + - 9 AS col0 FROM tab1 AS cor0
----
16
187
2200

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT 9 + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT 9 + COUNT ( * ) FROM tab2
----
12

query I rowsort
SELECT DISTINCT + ( 34 ) FROM tab2 AS cor0 CROSS JOIN tab2
----
34

query I rowsort
SELECT + 28 + col0 * 41 FROM tab2
----
1914
2652
3103

query I rowsort
SELECT ALL - 84 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-84
-84
-84

query I rowsort
SELECT - + col1 * 45 AS col1 FROM tab0 AS cor0
----
-3645
-45
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 - col0 col2 FROM tab2 AS cor0
----
-141
-159
-170

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8710
SELECT COUNT( ALL + ( CAST( NULL AS SIGNED ) ) ) * + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8710
SELECT COUNT ( ALL + ( CAST ( NULL AS INTEGER ) ) ) * + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 * + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 * + col1 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT DISTINCT - 63 * col2 - 39 * + CAST( - 51 + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-315
357
573

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - 63 * col2 - 39 * + CAST ( - 51 + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-315
357
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col0 FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL + - col2 - + col1 AS col0 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT - 83 - - col1 DIV 82 col2 FROM tab1
----
-83
-83
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8715
SELECT - 83 - - col1 / 82 col2 FROM tab1
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 - - col1 col0 FROM tab1
----
15
48
6

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) <= 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8718
SELECT ALL * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8718
SELECT ALL * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT COUNT( col0 ) + 72 FROM tab0 WHERE NULL <> ( + col1 )
----
72

skipif mysql # not compatible
query I rowsort label-8719
SELECT COUNT ( col0 ) + 72 FROM tab0 WHERE NULL <> ( + col1 )
----
72

query I rowsort
SELECT 46 - 82 FROM tab0
----
-36
-36
-36

query I rowsort
SELECT ALL 68 * + col2 * - col0 AS col0 FROM tab0
----
-47940
-59160
-653004

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( 53 ) AND - 39
----

query I rowsort
SELECT 54 * col2 AS col2 FROM tab1
----
3186
3672
5184

query I rowsort
SELECT col0 + col2 FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN 81 + + col0 / 71 AND + col0
----

query I rowsort
SELECT DISTINCT - 51 * + + col0 AS col1 FROM tab2 AS cor0
----
-2346
-3264
-3825

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT - MAX( ALL + + 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-8727
SELECT - MAX ( ALL + + 40 ) FROM tab1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT MAX( DISTINCT - ( 43 ) ) AS col2 FROM tab1, tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8728
SELECT MAX ( DISTINCT - ( 43 ) ) AS col2 FROM tab1, tab1 AS cor0
----
-43

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT + COUNT( * ) - 63 FROM tab1 WHERE NOT ( NOT ( ( - col2 ) ) BETWEEN col0 AND NULL )
----
-63

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + COUNT ( * ) - 63 FROM tab1 WHERE NOT ( NOT ( ( - col2 ) ) BETWEEN col0 AND NULL )
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT 78 * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-702

skipif mysql # not compatible
query I rowsort label-8733
SELECT 78 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-702

query I rowsort
SELECT + ( - 32 ) AS col2 FROM tab0
----
-32
-32
-32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 60 NOT BETWEEN + 51 * col0 + col0 AND ( ( - col0 ) + col0 * - 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - 78 AS col0 FROM tab2 AS cor0
----
3588
4992
5850

query II rowsort
SELECT DISTINCT - - col2 AS col2, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE ( 51 ) > NULL
----

query I rowsort
SELECT col0 + + + 75 AS col1 FROM tab1
----
126
160
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT - AVG ( + 12 ) * - COUNT( * ) AS col0 FROM tab0 WHERE + col1 * + 50 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT - AVG ( + 12 ) * - COUNT ( * ) AS col0 FROM tab0 WHERE + col1 * + 50 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT MIN( ALL col0 ) + - 85 AS col1 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT MIN ( ALL col0 ) + - 85 AS col1 FROM tab1
----
-34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 68 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8743
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE 71 * col0 + - 32 NOT BETWEEN NULL AND - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE 71 * col0 + - 32 NOT BETWEEN NULL AND - col0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT + col2 DIV 33 AS col2 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8744
SELECT + col2 / 33 AS col2 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT - + ( ( ( + col2 ) ) ) AS col1 FROM tab1 AS cor0 WHERE col0 / + + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT MIN( DISTINCT - + col0 ) * 94 AS col2 FROM tab0 AS cor0
----
-9118

skipif mysql # not compatible
query I rowsort label-8746
SELECT MIN ( DISTINCT - + col0 ) * 94 AS col2 FROM tab0 AS cor0
----
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - 25 col0 FROM tab2
----
48
65
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8748
SELECT - col1 + - + col1 + + 56 col2, CAST( - 56 AS SIGNED ) + 33 AS col2 FROM tab0 AS cor0
----
-106
-23
14
-23
54
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8748
SELECT - col1 + - + col1 + + 56 col2, CAST ( - 56 AS INTEGER ) + 33 AS col2 FROM tab0 AS cor0
----
-106
-23
14
-23
54
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 4 + col1 - - + col1 AS col0, 37 col1 FROM tab1 AS cor0
----
24
37
6
37
90
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL - 74 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - 74 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT ALL + col1 * col0 - - + col2 + + 24 FROM tab2 AS cor0
----
2393
4992
5107

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + COUNT( - col2 ) + + - COUNT( ALL + + 93 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT + COUNT ( - col2 ) + + - COUNT ( ALL + + 93 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - 15 - + - 66 FROM tab1 AS cor0
----
51

query II rowsort
SELECT DISTINCT - col0 * + 23 AS col2, - 42 * + 9 * + 82 * + + 65 AS col0 FROM tab2
----
-1058
-2014740
-1472
-2014740
-1725
-2014740

query I rowsort
SELECT ALL 5 * col2 FROM tab0
----
235
495
50

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT + col1 IN ( - + col2, 16 * col2 * col0 + - col0 )
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - ( - - ( - + 95 ) ) * col1 + 61 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 < ( + - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 * 91 * - col0 col1 FROM tab0
----
6887790
84765681
962325

query II rowsort
SELECT + + col0 AS col0, - 35 AS col1 FROM tab1 AS cor0
----
51
-35
85
-35
91
-35

query I rowsort
SELECT + 16 + 78 FROM tab0
----
94
94
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8762
SELECT col2 col1 FROM tab1 AS cor0 WHERE NOT ( + + col0 + CAST( NULL AS DECIMAL ) IS NOT NULL )
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8762
SELECT col2 col1 FROM tab1 AS cor0 WHERE NOT ( + + col0 + CAST ( NULL AS REAL ) IS NOT NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL - MIN( + + 79 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - MIN ( + + 79 ) FROM tab2 AS cor0
----
-79

query I rowsort
SELECT + col1 * - col1 + - + col1 FROM tab0 AS cor0
----
-2
-462
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT - col2 + ( + col1 ) * 19 AS col2 FROM tab1 AS cor0
----
170
36
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT + AVG ( + CAST( - col2 AS SIGNED ) ) col1 FROM tab0 AS cor0 WHERE NOT ( 21 ) > - col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8767
SELECT + AVG ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE NOT ( 21 ) > - col1
----
NULL

query I rowsort
SELECT DISTINCT + - ( 48 ) FROM tab1 cor0
----
-48

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col2 + + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + col2 + col0 AS col2 FROM tab1
----
203
227
243

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE + + 53 * + 45 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE + + 53 * + 45 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT SUM( ALL - 5 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-8772
SELECT SUM ( ALL - 5 ) FROM tab2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT ALL + 0 * + col1 FROM tab0 WHERE + 28 - col0 > ( CAST( NULL AS SIGNED ) * + 86 )
----

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL + 0 * + col1 FROM tab0 WHERE + 28 - col0 > ( CAST ( NULL AS INTEGER ) * + 86 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( + + col1 * + col0 * 56 ) IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col2 + + 93 * - ( 27 ) col1 FROM tab1 AS cor0
----
51
-2607
85
-2570
91
-2579

query III rowsort
SELECT * FROM tab2 WHERE 29 / 45 / - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + 56 - - + col0 AS col1 FROM tab2 AS cor0
----
102
120
131

query II rowsort
SELECT DISTINCT - col1 - + col1 AS col1, col0 AS col0 FROM tab1 AS cor0
----
-10
85
-28
51
-94
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT COUNT( * ) col1 FROM tab1 cor0 WHERE ( col1 / - ( col1 ) / + + col2 + - col0 + - 16 ) = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8780
SELECT COUNT ( * ) col1 FROM tab1 cor0 WHERE ( col1 / - ( col1 ) / + + col2 + - col0 + - 16 ) = NULL
----
0

query I rowsort
SELECT DISTINCT - + 46 * - 27 - + col1 AS col1 FROM tab1 cor0
----
1195
1228
1237

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL - col2, col1 + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT MAX( + + col0 ) * + SUM( ALL + + col0 ) col1 FROM tab1
----
20657

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8785
SELECT DISTINCT MAX ( + + col0 ) * + SUM ( ALL + + col0 ) col1 FROM tab1
----
20657

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - 2 * MAX( 6 ) col2 FROM tab1
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8786
SELECT - 2 * MAX ( 6 ) col2 FROM tab1
----
-12

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8788
SELECT ALL + col1 AS col0, - CAST( + col2 AS SIGNED ) FROM tab0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
query II rowsort label-8788
SELECT ALL + col1 AS col0, - CAST ( + col2 AS INTEGER ) FROM tab0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + ( - col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
-51
67
-67
77
-77

query I rowsort
SELECT + 69 * - - col1 FROM tab1
----
3243
345
966

onlyif mysql # DIV for integer division: 
query II rowsort label-8791
SELECT ( - col0 ) DIV - + col0, 5 AS col0 FROM tab2
----
1
5
1
5
1
5

skipif mysql # not compatible
query II rowsort label-8791
SELECT ( - col0 ) / - + col0, 5 AS col0 FROM tab2
----
1
5
1
5
1
5

query I rowsort
SELECT DISTINCT col0 * + ( - + col0 ) + - col0 - + 48 FROM tab1 WHERE NOT + - ( - col0 ) NOT IN ( 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL - MAX( ALL - 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL - MAX ( ALL - 79 ) FROM tab0 AS cor0
----
79

query II rowsort
SELECT DISTINCT - + 48, col2 FROM tab2 AS cor0
----
-48
23
-48
40
-48
58

query I rowsort
SELECT ALL + col2 * 82 AS col2 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT 88 + COUNT( * ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT 88 + COUNT ( * ) FROM tab1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT ALL - COUNT( col0 ) FROM tab0 AS cor0 WHERE NOT 48 NOT IN ( - - col1 * col2, - 89 + + col1, - + CAST( NULL AS SIGNED ), - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL - COUNT ( col0 ) FROM tab0 AS cor0 WHERE NOT 48 NOT IN ( - - col1 * col2, - 89 + + col1, - + CAST ( NULL AS INTEGER ), - 12 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) * + 60 * - + 11 * + col0 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8798
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) * + 60 * - + 11 * + col0 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + col2 + - - 97 FROM tab1 AS cor0
----
3578
4721
9313

query I rowsort
SELECT ALL + 64 * - + col0 + + 76 AS col0 FROM tab0 AS cor0
----
-5492
-6132
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT 14 DIV ( col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT 14 / ( col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + + - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + 89 AND - col2 * + 59 + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT ALL - - 1 DIV - col0 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8803
SELECT ALL - - 1 / - col0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT - COUNT( * ) DIV - 58 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT - COUNT ( * ) / - 58 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * - - 63 * - col0 + + + col0 FROM tab1 AS cor0
----
-26690
-269360
-44931

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8806
SELECT + CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT + CAST ( NULL AS REAL ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE + - col0 + col2 + + ( + col0 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 75 + + col2 FROM tab2
----
-17
-35
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT ALL - - 27 * + COUNT( * ) - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - - 27 * + COUNT ( * ) - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0
----

query II rowsort
SELECT col0 * 85, 54 - col0 * + - col1 * - 29 AS col2 FROM tab2 AS cor0
----
3910
-67980
5440
-142858
6375
-145671

query I rowsort
SELECT ALL col2 - - + col2 * + col2 AS col0 FROM tab0 AS cor0
----
110
2256
9900

query I rowsort
SELECT DISTINCT - + 3 AS col1 FROM tab0 WHERE NOT ( NULL ) > + col0 AND col1 <> 7 / + + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - - col0 ) col1 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL + + 90 AS col0, col0 AS col2 FROM tab2 AS cor0
----
90
46
90
64
90
75

query I rowsort
SELECT ALL + 8 FROM tab0 AS cor0 WHERE NULL <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23 col1, + col2 FROM tab2 AS cor0
----
-23
23
-23
40
-23
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8818
SELECT 6, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
6
-3

skipif mysql # not compatible
query II rowsort label-8818
SELECT 6, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - 43 IN ( + + col2, - 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0 WHERE + col2 IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL - col2 * - ( - - 36 ), col1 * col1 AS col1 FROM tab1 AS cor0
----
2124
25
2448
2209
3456
196

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 18 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT DISTINCT MIN( - - col1 ), 5 * - + 59 AS col1 FROM tab2
----
51
-295

skipif mysql # not compatible
query II rowsort label-8823
SELECT DISTINCT MIN ( - - col1 ), 5 * - + 59 AS col1 FROM tab2
----
51
-295

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT AVG ( ALL 91 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + - col2 / - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT ALL + col1 * - col2 * - col2 + + col1 * - 34 + + col1 + + 11 DIV + - 72 FROM tab2 AS cor0
----
120659
223177
25296

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + col1 * - col2 * - col2 + + col1 * - 34 + + col1 + + 11 / + - 72 FROM tab2 AS cor0
----
120659
223177
25296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT - 58 + - col0 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-232
-252
-88

skipif mysql # not compatible
query I rowsort label-8831
SELECT - 58 + - col0 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-232
-252
-88

query I rowsort
SELECT DISTINCT - ( - 66 ) * + col0 AS col1 FROM tab1 AS cor0
----
3366
5610
6006

query I rowsort
SELECT + - col0 * 17 FROM tab0 AS cor0
----
-1479
-1649
-255

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - 84 )
----

query I rowsort
SELECT - col2 * + 22 AS col2 FROM tab0
----
-1034
-2178
-220

query II rowsort
SELECT ALL - 40 AS col0, - 75 - - col2 AS col2 FROM tab1
----
-40
-16
-40
-7
-40
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL + 55 * + COUNT( * ) * - + COUNT( * ) + 31 + - COUNT( * ) AS col0 FROM tab0
----
-467

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + 55 * + COUNT ( * ) * - + COUNT ( * ) + 31 + - COUNT ( * ) AS col0 FROM tab0
----
-467

query II rowsort
SELECT DISTINCT + col0, col0 * - + 5 FROM tab1
----
51
-255
85
-425
91
-455

query I rowsort
SELECT - 77 * col2 * + - col2 AS col0 FROM tab0
----
170093
754677
7700

query I rowsort
SELECT ALL - 8 + - col1 AS col1 FROM tab0
----
-29
-89
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8841
SELECT 53 DIV + col0 - - 90 AS col0 FROM tab0
----
90
90
93

skipif mysql # not compatible
query I rowsort label-8841
SELECT 53 / + col0 - - 90 AS col0 FROM tab0
----
90
90
93

query II rowsort
SELECT ALL + col1 AS col2, + 29 AS col0 FROM tab0
----
1
29
21
29
81
29

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab2 WHERE NOT ( col2 ) IS NOT NULL AND NULL IS NULL
----

query I rowsort
SELECT - ( col2 ) - - col1 FROM tab1
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 80 col1 FROM tab1 AS cor0
----
-33
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL - 61 - - COUNT( * ) col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8846
SELECT ALL - 61 - - COUNT ( * ) col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT 44 + - + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 50 / - + col2 )
----
44

skipif mysql # not compatible
query I rowsort label-8847
SELECT 44 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( + 50 / - + col2 )
----
44

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - + col1
----

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab0 cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT ALL + + 43 * 59 DIV - - 65 col2 FROM tab1 AS cor0
----
39
39
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT ALL + + 43 * 59 / - - 65 col2 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8851
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT + col0 AS col2, ( col2 ) FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL MAX( + 49 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL MAX ( + 49 ) FROM tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8854
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) * - col0 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8854
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) * - col0 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col0 FROM tab2 cor0
----
44

query I rowsort
SELECT ALL - 68 + + 74 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query II rowsort
SELECT - ( + 97 ), + 75 AS col0 FROM tab2
----
-97
75
-97
75
-97
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 + + col2 col0 FROM tab2
----
120
137
155

query I rowsort
SELECT ALL 50 + - col1 + - 8 AS col1 FROM tab1 AS cor0
----
-5
28
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8860
SELECT - + CAST( NULL AS DECIMAL ) + - 49 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT - + CAST ( NULL AS REAL ) + - 49 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT + - col2 DIV + + col0 + - 43 FROM tab0 AS cor0
----
-43
-44
-46

skipif mysql # not compatible
query I rowsort label-8861
SELECT + - col2 / + + col0 + - 43 FROM tab0 AS cor0
----
-43
-44
-46

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 - col1 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( ( col2 ) NOT BETWEEN - col2 AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT - 2 + + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8864
SELECT - 2 + + COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL MIN( ALL + + col2 ) + + + 24 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL MIN ( ALL + + col2 ) + + + 24 FROM tab1
----
83

query III rowsort
SELECT * FROM tab1 WHERE - - ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL + 98 * + + COUNT( * ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + 98 * + + COUNT ( * ) FROM tab1
----
294

query I rowsort
SELECT ALL - col2 + 68 FROM tab0
----
-31
21
58

query I rowsort
SELECT ALL + 83 AS col2 FROM tab2 WHERE - - col1 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( - 16 - - col2 + - + 64 / - 18, + col0 * - 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT DISTINCT - 44 + - + ( CAST( NULL AS SIGNED ) ) * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT - 44 + - + ( CAST ( NULL AS INTEGER ) ) * - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT + 63 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 3 IS NULL
----
63

skipif mysql # not compatible
query I rowsort label-8872
SELECT + 63 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 3 IS NULL
----
63

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * + + 12 = ( + 2 ) AND NOT + + col1 * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND 65
----

query I rowsort
SELECT ALL - - 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + 75 * - col1 * + - col1 AS col0 FROM tab2
----
195075
336675
444675

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT SUM( DISTINCT + 67 ) AS col2 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8877
SELECT SUM ( DISTINCT + 67 ) AS col2 FROM tab1 AS cor0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8878
SELECT + COUNT( * ) AS col2, MIN( ( - - col1 ) ) + COUNT( * ) * CAST( + + 18 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3
55

skipif mysql # not compatible
query II rowsort label-8878
SELECT + COUNT ( * ) AS col2, MIN ( ( - - col1 ) ) + COUNT ( * ) * CAST ( + + 18 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT DISTINCT + MIN( ALL + 6 ) * - 79 - - 77 + - 53 AS col2 FROM tab0 AS cor0
----
-450

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT + MIN ( ALL + 6 ) * - 79 - - 77 + - 53 AS col2 FROM tab0 AS cor0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT MIN( + + 53 ) AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT MIN ( + + 53 ) AS col0 FROM tab1 AS cor0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT ALL ( - + col0 ) DIV + 71 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL ( - + col0 ) / + 71 AS col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 * - 7 + + col1 AS col1 FROM tab0 AS cor0
----
-126
-486
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 81 col1, col0 - + - col0 col2 FROM tab1 AS cor0
----
81
102
81
170
81
182

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 AND + col2
----

query I rowsort
SELECT DISTINCT 28 * + col0 * - + col1 FROM tab1 WHERE NULL <> - - col0 + - col1
----

query II rowsort
SELECT + ( 63 ) AS col0, col1 AS col2 FROM tab0 WHERE NOT - + col2 * + col2 / + 26 - - + 20 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT COUNT( * ) * + SUM( col1 ) * + - 40 FROM tab1
----
-7920

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT COUNT ( * ) * + SUM ( col1 ) * + - 40 FROM tab1
----
-7920

query II rowsort
SELECT DISTINCT 79 * + col0 AS col1, - col0 AS col1 FROM tab2
----
3634
-46
5056
-64
5925
-75

query I rowsort
SELECT ALL - col1 * + col0 * + - 85 FROM tab0
----
103275
155295
8245

onlyif mysql # DIV for integer division: 
query III rowsort label-8890
SELECT DISTINCT + col1 DIV col2, col0, + col1 FROM tab1
----
9 values hashing to 4e14e73644f2867f33c5e746619d3878

skipif mysql # not compatible
query III rowsort label-8890
SELECT DISTINCT + col1 / col2, col0, + col1 FROM tab1
----
9 values hashing to 4e14e73644f2867f33c5e746619d3878

query I rowsort
SELECT + col2 * - col0 * - col2 + + - col1 FROM tab2 AS cor0
----
102323
24283
252233

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT + - MAX( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8892
SELECT + - MAX ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE 20 = NULL
----

query I rowsort
SELECT + 44 + 36 AS col1 FROM tab1
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 AS col1, - col0 * - + 37 col2 FROM tab1 AS cor0
----
-59
3145
-68
3367
-96
1887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8896
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + 23 * - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + 23 * - + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 = + 89
----

query I rowsort
SELECT - - ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + 6 + - + 52 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 col0, col2 AS col1 FROM tab1 AS cor0
----
83
59
83
68
83
96

query I rowsort
SELECT + ( 88 ) AS col2 FROM tab1 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col1 * col0 * 75
----

query I rowsort
SELECT DISTINCT 11 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT DISTINCT - 98 - CAST( NULL AS SIGNED ) + + col1 * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - 98 - CAST ( NULL AS INTEGER ) + + col1 * - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + ( 91 ) FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT COUNT( * ) - - + COUNT( * ) * - 98 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-8906
SELECT COUNT ( * ) - - + COUNT ( * ) * - 98 FROM tab2
----
-291

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - col0 NOT BETWEEN NULL AND + col1 * + + 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT CAST( NULL AS SIGNED ) - + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT CAST ( NULL AS INTEGER ) - + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - - col1 - 52 FROM tab1
----
-15
-8
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT 84 * - SUM( + - 47 ) FROM tab0, tab0 AS cor0
----
35532

skipif mysql # not compatible
query I rowsort label-8910
SELECT 84 * - SUM ( + - 47 ) FROM tab0, tab0 AS cor0
----
35532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT ALL - 63 + - + col0 * CAST( + col0 AS SIGNED ) * ( - col2 ) col2 FROM tab1
----
249633
426212
563045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8911
SELECT ALL - 63 + - + col0 * CAST ( + col0 AS INTEGER ) * ( - col2 ) col2 FROM tab1
----
249633
426212
563045

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - 84 + - - COUNT( * ) * + 86 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-8912
SELECT - 84 + - - COUNT ( * ) * + 86 FROM tab0
----
174

query I rowsort
SELECT DISTINCT + col0 + + 89 + + col0 * - ( - + col2 ) AS col0 FROM tab0
----
1046
809
9789

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT COUNT( * ) + + COUNT( * ), - ( + COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab0
----
6
9

skipif mysql # not compatible
query II rowsort label-8914
SELECT COUNT ( * ) + + COUNT ( * ), - ( + COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab0
----
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - 82 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT - - 83 * + - COUNT( * ) FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-8919
SELECT - - 83 * + - COUNT ( * ) FROM tab2 AS cor0
----
-249

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 79 BETWEEN - 81 AND + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 24 * + + col1 FROM tab1 cor0
----
-1128
-120
-336

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT 37, COUNT( * ) AS col1 FROM tab1
----
37
3

skipif mysql # not compatible
query II rowsort label-8923
SELECT 37, COUNT ( * ) AS col1 FROM tab1
----
37
3

query II rowsort
SELECT ALL - col2 AS col2, + col1 * + col1 AS col1 FROM tab0
----
-10
441
-47
6561
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT MIN( DISTINCT + col0 ) * + 92 AS col2 FROM tab0
----
1380

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT MIN ( DISTINCT + col0 ) * + 92 AS col2 FROM tab0
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ( + MIN( ALL - col1 ) ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8926
SELECT ( + MIN ( ALL - col1 ) ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT + 83 + - col2 - col0 AS col2 FROM tab0
----
-113
-14
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 61 + + 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT DISTINCT SUM( DISTINCT + - 10 ) * - COUNT( * ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT SUM ( DISTINCT + - 10 ) * - COUNT ( * ) AS col0 FROM tab2
----
30

query I rowsort
SELECT DISTINCT ( - + col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL - COUNT( * ) * + - 16 * SUM( - 54 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-69984

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - COUNT ( * ) * + - 16 * SUM ( - 54 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-69984

query I rowsort
SELECT ALL 91 + + + col0 FROM tab0 AS cor0
----
106
178
188

query II rowsort
SELECT + col0 + + + 67 AS col2, col0 AS col1 FROM tab0 AS cor0
----
154
87
164
97
82
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT DISTINCT - - COUNT( * ) + MAX( + col2 ) * - 69 * CAST( NULL AS SIGNED ) + + + 78 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - - COUNT ( * ) + MAX ( + col2 ) * - 69 * CAST ( NULL AS INTEGER ) + + + 78 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( 34 ) + 98 AS col2 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT - - col1 + + - col1 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT 15 AS col2 FROM tab2 WHERE - + col0 IS NOT NULL
----
15
15
15

query I rowsort
SELECT ( - col0 ) * + 91 AS col0 FROM tab2
----
-4186
-5824
-6825

query II rowsort
SELECT DISTINCT - col1, + col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

query II rowsort
SELECT ALL col2, 63 FROM tab0
----
10
63
47
63
99
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT MIN( DISTINCT - 30 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT MIN ( DISTINCT - 30 ) FROM tab2
----
-30

query II rowsort
SELECT - + col2 AS col0, + 86 FROM tab0 AS cor0
----
-10
86
-47
86
-99
86

query II rowsort
SELECT - 7 AS col1, - col0 * col0 AS col0 FROM tab2 AS cor0
----
-7
-2116
-7
-4096
-7
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - 48 * - + 75 AS col2 FROM tab2
----
3600
3600
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL - MIN( col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT - col2 + 91 DIV - - col0 AS col1 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8949
SELECT - col2 + 91 / - - col0 AS col1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT + + COUNT( ALL 73 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT + + COUNT ( ALL 73 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + - COUNT( ALL - col1 ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8951
SELECT + - COUNT ( ALL - col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col2 + - + col2 + - 51 AS col0 FROM tab2 cor0
----
-51
-51
-51

query II rowsort
SELECT DISTINCT - col2 * 0, col0 * + - col0 AS col1 FROM tab0 AS cor0
----
0
-225
0
-7569
0
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8955
SELECT 43 DIV + col1 AS col2, col1 DIV - col2 FROM tab2 AS cor0
----
0
-1
0
-1
0
-2

skipif mysql # not compatible
query II rowsort label-8955
SELECT 43 / + col1 AS col2, col1 / - col2 FROM tab2 AS cor0
----
0
-1
0
-1
0
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT DISTINCT col1 * CAST( + - 86 AS SIGNED ) * + 64 + - col2 AS col0 FROM tab2
----
-280727
-368826
-423848

skipif mysql # not compatible
query I rowsort label-8956
SELECT DISTINCT col1 * CAST ( + - 86 AS INTEGER ) * + 64 + - col2 AS col0 FROM tab2
----
-280727
-368826
-423848

query I rowsort
SELECT - - 74 FROM tab1 WHERE - 89 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col2 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab2 WHERE + - 25 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE - 31 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - + 57 * col2 AS col1 FROM tab1 AS cor0
----
-3363
-3876
-5472

query I rowsort
SELECT - - 42 + + col0 FROM tab2 cor0
----
106
117
88

query I rowsort
SELECT ALL + col1 * + + ( + ( - col1 ) ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT DISTINCT ( + 8 ) DIV - 52 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT ( + 8 ) / - 52 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - + COUNT( * ) FROM tab1 WHERE + - 49 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8965
SELECT - + COUNT ( * ) FROM tab1 WHERE + - 49 IS NOT NULL
----
-3

query II rowsort
SELECT + col1, + col0 * - + col0 FROM tab2
----
51
-2116
67
-5625
77
-4096

query I rowsort
SELECT DISTINCT col0 * col2 + - + col2 FROM tab2
----
1035
2520
4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 14 col2, 26 FROM tab1
----
14
26
14
26
14
26

query II rowsort
SELECT - + 36 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-36
59
-36
68
-36
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT - MAX( ALL col2 ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8970
SELECT - MAX ( ALL col2 ) AS col2 FROM tab0 cor0
----
-99

query I rowsort
SELECT ALL + - 5 - 84 FROM tab0 AS cor0 WHERE 15 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN + 89 + + + col1 AND + - col1
----

query I rowsort
SELECT DISTINCT + ( ( - - col2 ) ) - + 77 FROM tab0 AS cor0
----
-30
-67
22

query II rowsort
SELECT DISTINCT + 85, + col2 FROM tab2 AS cor0
----
85
23
85
40
85
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL 77 - - COUNT( * ) + - 44 * + MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-1944

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL 77 - - COUNT ( * ) + - 44 * + MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-1944

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 NOT BETWEEN + col1 + + col1 + ( + col1 ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT DISTINCT + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + col1 / + col1 AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 * 47 / - col0 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 * + - col0 * col1 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT - 56 * col2 * ( col0 ) FROM tab2
----
-143360
-243600
-59248

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL SUM( + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL SUM ( + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 73 ) <> NULL
----

query I rowsort
SELECT DISTINCT + + ( + - 93 ) FROM tab0 AS cor0
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, col0 + + col0 FROM tab0
----
10
174
47
30
99
194

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 49 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab2 AS cor0 WHERE NOT col1 * + + col2 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col2, 51 AS col2 FROM tab1 AS cor0
----
59
51
68
51
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT COUNT( ALL - - col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT COUNT ( ALL - - col0 ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL + col0 AS col1, - col0 * - - 81 FROM tab0 AS cor0
----
15
-1215
87
-7047
97
-7857

query I rowsort
SELECT ALL - - 89 + + col0 + - col1 AS col2 FROM tab2 AS cor0
----
76
84
97

query I rowsort
SELECT + col1 * - 53 FROM tab1 AS cor0
----
-2491
-265
-742

query I rowsort
SELECT - col2 + + 30 + + + col0 AS col0 FROM tab0
----
-2
107
28

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT + 46 + - col1 IS NOT NULL AND + 3 >= ( + + col0 )
----

query I rowsort
SELECT ALL col0 + - 98 * ( + + 66 ) * + + 49 - - col0 FROM tab0
----
-316738
-316758
-316902

query III rowsort
SELECT * FROM tab2 WHERE - - col0 + 43 + - 6 BETWEEN - 76 AND NULL
----

query I rowsort
SELECT DISTINCT - + 68 FROM tab0 AS cor0 WHERE NOT ( + col1 BETWEEN + ( col1 ) + - + col1 / + - col2 + - - col0 + + + 32 + + col2 AND NULL )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT + 1 DIV + 69 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 1 / + 69 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - col2 * - col0 AS col1 FROM tab2
----
1104
2624
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 37 FROM tab2
----
46
37
64
37
75
37

query I rowsort
SELECT DISTINCT col2 * - 18 * + - 97 FROM tab1
----
103014
118728
167616

query I rowsort
SELECT 4 + + + col2 FROM tab0
----
103
14
51

query I rowsort
SELECT ALL + col1 * + 31 + col0 AS col2 FROM tab0
----
128
2526
738

query I rowsort
SELECT + col0 * 21 + + 40 AS col2 FROM tab1 AS cor0 WHERE + col2 * - ( - + col0 ) * 99 IN ( - + col2 * + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT COUNT( * ) + + ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9006
SELECT COUNT ( * ) + + ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col1 * col2 * - 5
----

query I rowsort
SELECT ( 80 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT + col0 * + col1 + - - CAST( - 39 AS SIGNED ) - - col0 FROM tab2 cor0
----
2353
4953
5061

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + col0 * + col1 + - - CAST ( - 39 AS INTEGER ) - - col0 FROM tab2 cor0
----
2353
4953
5061

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT ALL 36 * COUNT( * ) FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL 36 * COUNT ( * ) FROM tab1 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col1 FROM tab0 AS cor0 WHERE NOT - col0 * - - 18 IS NOT NULL
----

query I rowsort
SELECT + col2 * + 25 + col1 FROM tab1 AS cor0
----
1480
1747
2414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT - + CAST( NULL AS SIGNED ) * - CAST( col0 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT - + CAST ( NULL AS INTEGER ) * - CAST ( col0 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 38 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT + AVG ( 3 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT + AVG ( 3 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9016
SELECT ALL 9 AS col2, COUNT( * ) + 13 FROM tab2
----
9
16

skipif mysql # not compatible
query II rowsort label-9016
SELECT ALL 9 AS col2, COUNT ( * ) + 13 FROM tab2
----
9
16

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( - col1 * + + 99 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL COUNT( * ) * + - 3 AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL COUNT ( * ) * + - 3 AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT - MIN( ALL + - 97 ) AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - MIN ( ALL + - 97 ) AS col2 FROM tab1
----
97

query I rowsort
SELECT ALL - 2 * 32 AS col0 FROM tab1
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9021
SELECT DISTINCT + 69 * + - 66, - SUM( col1 ) + - COUNT( * ) AS col2 FROM tab1
----
-4554
-69

skipif mysql # not compatible
query II rowsort label-9021
SELECT DISTINCT + 69 * + - 66, - SUM ( col1 ) + - COUNT ( * ) AS col2 FROM tab1
----
-4554
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL MIN( - col0 ) * COUNT( * ) col1 FROM tab1
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9022
SELECT ALL MIN ( - col0 ) * COUNT ( * ) col1 FROM tab1
----
-273

query I rowsort
SELECT DISTINCT - col0 * - + 1 FROM tab1
----
51
85
91

query II rowsort
SELECT + - col1, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9025
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( col1 - - col1, 36, + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9025
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( col1 - - col1, 36, + CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - + ( - col2 ) FROM tab1 AS cor0 WHERE - 59 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ( + - COUNT( * ) ) + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT ( + - COUNT ( * ) ) + + COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT - 18 + - col2 + - + col0 * - CAST( + 28 AS SIGNED ) * col2 + + col2 * - ( 74 ) AS col1 FROM tab0 AS cor0
----
16197
23592
261441

skipif mysql # not compatible
query I rowsort label-9029
SELECT - 18 + - col2 + - + col0 * - CAST ( + 28 AS INTEGER ) * col2 + + col2 * - ( 74 ) AS col1 FROM tab0 AS cor0
----
16197
23592
261441

query II rowsort
SELECT - + col2 + col1 AS col0, 42 AS col1 FROM tab0 cor0
----
-98
42
11
42
34
42

query I rowsort
SELECT - 24 + - + col0 * + col1 * + col0 AS col2 FROM tab0 cor0
----
-158973
-18249
-9433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT + - 2 + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT + - 2 + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 33 + - col1, col0 FROM tab2 AS cor0
----
-18
46
-34
75
-44
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9034
SELECT - ( - + COUNT( * ) ) * - 66 AS col0, COUNT( * ) FROM tab0 AS cor0
----
-198
3

skipif mysql # not compatible
query II rowsort label-9034
SELECT - ( - + COUNT ( * ) ) * - 66 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-198
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 < - + 65 * + + 51 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + 79 + + COUNT( * ) + - 46 * + 91 FROM tab0 AS cor0
----
-4104

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + 79 + + COUNT ( * ) + - 46 * + 91 FROM tab0 AS cor0
----
-4104

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 19 + - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT DISTINCT + MIN( + 57 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + MIN ( + 57 ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT COUNT( 14 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9039
SELECT COUNT ( 14 ) FROM tab1
----
3

query II rowsort
SELECT ALL - col0 * col1 + - col2, 63 + + 20 AS col2 FROM tab1
----
-4345
83
-484
83
-810
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 + + col1 * - col0 FROM tab0
----
15
-1200
87
-1740
97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9042
SELECT DISTINCT 73 DIV COUNT( * ) DIV COUNT( * ) + 37 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT 73 / COUNT ( * ) / COUNT ( * ) + 37 FROM tab1
----
45

query III rowsort
SELECT * FROM tab2 WHERE - + col1 / + col0 NOT IN ( col0 * + + col1, 48, + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT MIN( - + 68 ) AS col0 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-9044
SELECT MIN ( - + 68 ) AS col0 FROM tab2
----
-68

query III rowsort
SELECT * FROM tab0 WHERE + + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 - + col2 IN ( col2 - + col1, 39 / + col0 * + col2 * + + 84, + - col2 + col1 * col1, col2 * + col2 )
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT COUNT( * ) - 48 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT COUNT ( * ) - 48 FROM tab2 AS cor0
----
-45

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL COUNT( DISTINCT + - col1 ) + - 77 AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL COUNT ( DISTINCT + - col1 ) + - 77 AS col1 FROM tab2
----
-74

query I rowsort
SELECT 88 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - 63 * + col2 * + col0 FROM tab0 AS cor0
----
-44415
-54810
-604989

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT + 23 DIV - col2 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9053
SELECT + 23 / - col2 FROM tab0 cor0
----
-2
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9054
SELECT DISTINCT - SUM( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT - SUM ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + - - col1 FROM tab1 AS cor0 WHERE 14 * + col1 IS NOT NULL
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col2 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT + 90 * + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
270

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + 90 * + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
270

query I rowsort
SELECT - - 45 * + - col1 AS col0 FROM tab1 AS cor0
----
-2115
-225
-630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9059
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col0 * - col0 FROM tab2
----
NULL
-2116
NULL
-4096
NULL
-5625

skipif mysql # not compatible
query II rowsort label-9059
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col0 * - col0 FROM tab2
----
NULL
-2116
NULL
-4096
NULL
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT + 63 * COUNT( * ) AS col1 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-9060
SELECT + 63 * COUNT ( * ) AS col1 FROM tab0
----
189

query I rowsort
SELECT DISTINCT - ( + 74 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 50 * 9 * + 67 FROM tab0
----
30150
30150
30150

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT DISTINCT + 59 DIV - col2 AS col1 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + 59 / - col2 AS col1 FROM tab2
----
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT + MIN( DISTINCT 94 ) AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT + MIN ( DISTINCT 94 ) AS col1 FROM tab0 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT - COUNT( * ) + 81 * - - 23 FROM tab0
----
1860

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - COUNT ( * ) + 81 * - - 23 FROM tab0
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL MIN( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL MIN ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > col2
----
NULL

query II rowsort
SELECT ALL + + col0 AS col1, - 73 + - - 92 AS col2 FROM tab1 AS cor0
----
51
19
85
19
91
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT DISTINCT - - 85 DIV - 98 + - - MIN( DISTINCT - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT - - 85 / - 98 + - - MIN ( DISTINCT - col2 ) FROM tab2 cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT - col2 DIV + + col0 - + col0 + 9 - 37 * 86 * 49 AS col2 FROM tab0 AS cor0
----
-155927
-155996
-156007

skipif mysql # not compatible
query I rowsort label-9070
SELECT - col2 / + + col0 - + col0 + 9 - 37 * 86 * 49 AS col2 FROM tab0 AS cor0
----
-155927
-155996
-156007

query II rowsort
SELECT DISTINCT + - col2 AS col2, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9072
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL AND NOT ( + col0 / + CAST( - - ( + + col1 ) AS SIGNED ) - - col1 * + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9072
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL AND NOT ( + col0 / + CAST ( - - ( + + col1 ) AS INTEGER ) - - col1 * + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT DISTINCT + col2 DIV + col1 + col1 FROM tab1 AS cor0
----
16
20
48

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT + col2 / + col1 + col1 FROM tab1 AS cor0
----
16
20
48

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab1 WHERE - + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT 52 / + col2 / col1 * col2 + col0 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT 52 / + col2 / col1 * col2 + col0 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT ALL - col1 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL - col1 / - - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col0 FROM tab0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * + - col2 BETWEEN NULL AND + col0 + + + col1 * + + col2
----

query I rowsort
SELECT ALL + - col0 + + 35 AS col1 FROM tab0 AS cor0
----
-52
-62
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT ALL - - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT + - 90 DIV col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT + - 90 / col0 FROM tab0 AS cor0
----
-1
-6
0

query II rowsort
SELECT DISTINCT + col2, + col2 + + 13 + - - col2 * - col2 FROM tab1 AS cor0
----
59
-3409
68
-4543
96
-9107

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT + MAX( DISTINCT - 63 ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + MAX ( DISTINCT - 63 ) FROM tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 87 col0, + 25 + + - col1 FROM tab0 AS cor0
----
-87
-56
-87
24
-87
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT + 17 * - COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT + 17 * - COUNT ( * ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT + - COUNT( * ) * MAX( + 9 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + - COUNT ( * ) * MAX ( + 9 ) FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT - col0 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-9087
SELECT - col0 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9088
SELECT ALL * FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9088
SELECT ALL * FROM tab0 WHERE + - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT MAX( ALL - 95 ) * - COUNT( * ) col2 FROM tab0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9090
SELECT MAX ( ALL - 95 ) * - COUNT ( * ) col2 FROM tab0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9091
SELECT col2 * - + col0, + CAST( + + col1 AS SIGNED ) AS col0 FROM tab1
----
-4896
14
-5015
5
-6188
47

skipif mysql # not compatible
query II rowsort label-9091
SELECT col2 * - + col0, + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1
----
-4896
14
-5015
5
-6188
47

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 / - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 74 + + 38 AS col0 FROM tab1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT - + ( - CAST( - 28 AS SIGNED ) ) * col2 + + 23 FROM tab1 AS cor0
----
-1629
-1881
-2665

skipif mysql # not compatible
query I rowsort label-9094
SELECT - + ( - CAST ( - 28 AS INTEGER ) ) * col2 + + 23 FROM tab1 AS cor0
----
-1629
-1881
-2665

query I rowsort
SELECT DISTINCT + 53 * - - col1 FROM tab0 AS cor0
----
1113
4293
53

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9097
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + + 3 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9097
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + + 3 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT + CAST( col2 AS SIGNED ) + - col1 AS col0 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-9098
SELECT + CAST ( col2 AS INTEGER ) + - col1 AS col0 FROM tab1
----
21
54
82

query I rowsort
SELECT col0 * col2 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-4320
1534
1564

query I rowsort
SELECT DISTINCT + 52 + col0 FROM tab0 AS cor0
----
139
149
67

query I rowsort
SELECT + ( 89 ) * + - col0 + + + ( 50 ) FROM tab0 AS cor0
----
-1285
-7693
-8583

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 47 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT ALL - 68 DIV - + SUM( + - col1 ) - COUNT( * ) + + - 75 AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - 68 / - + SUM ( + - col1 ) - COUNT ( * ) + + - 75 AS col0 FROM tab2 AS cor0
----
-78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = col2 / 20
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 BETWEEN - - 93 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT 23 DIV + - 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9106
SELECT 23 / + - 73 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT + + 72 * - col0 - + CAST( NULL AS SIGNED ) + - 58 FROM tab2 WHERE - col0 IN ( + - col0 + + col2 * - + col2 * col2, - 75, col0, + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT + + 72 * - col0 - + CAST ( NULL AS INTEGER ) + - 58 FROM tab2 WHERE - col0 IN ( + - col0 + + col2 * - + col2 * col2, - 75, col0, + col2 )
----
NULL

query I rowsort
SELECT DISTINCT col2 + 91 FROM tab1
----
150
159
187

query I rowsort
SELECT + col0 * - + ( - col0 ) * - + col1 + col0 AS col2 FROM tab1
----
-36040
-36363
-389116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NULL >= 55
----

skipif mysql # not compatible
query I rowsort label-9110
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NULL >= 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL COUNT( * ) * - - MIN( col1 ) col1 FROM tab0 AS cor0 WHERE ( 15 ) = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9111
SELECT ALL COUNT ( * ) * - - MIN ( col1 ) col1 FROM tab0 AS cor0 WHERE ( 15 ) = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9112
SELECT CAST( col1 AS SIGNED ), - 10 - + col0 AS col1 FROM tab1
----
14
-61
47
-101
5
-95

skipif mysql # not compatible
query II rowsort label-9112
SELECT CAST ( col1 AS INTEGER ), - 10 - + col0 AS col1 FROM tab1
----
14
-61
47
-101
5
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-9113
SELECT - col2 * 91, + col0 DIV - + col1 col2 FROM tab2
----
-2093
0
-3640
0
-5278
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9113
SELECT - col2 * 91, + col0 / - + col1 col2 FROM tab2
----
-2093
0
-3640
0
-5278
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT - CAST( - MAX( 19 ) AS SIGNED ) * - 39 AS col2 FROM tab0
----
-741

skipif mysql # not compatible
query I rowsort label-9114
SELECT - CAST ( - MAX ( 19 ) AS INTEGER ) * - 39 AS col2 FROM tab0
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT - - COUNT( * ) FROM tab1 cor0 WHERE NOT NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT - - COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL <= col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * 42 col1 FROM tab0 AS cor0
----
-159894
-4158
-8820

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - MAX( ALL + + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9117
SELECT - MAX ( ALL + + col0 ) AS col2 FROM tab0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - col2 + + ( col0 ) + 51 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL - MIN( DISTINCT - + 72 ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - MIN ( DISTINCT - + 72 ) AS col1 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT 72 + COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT 72 + COUNT ( * ) FROM tab0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT ALL 2 AS col0, - COUNT( DISTINCT - - col1 ) FROM tab0
----
2
-3

skipif mysql # not compatible
query II rowsort label-9121
SELECT ALL 2 AS col0, - COUNT ( DISTINCT - - col1 ) FROM tab0
----
2
-3

query I rowsort
SELECT 59 AS col1 FROM tab2 WHERE NOT ( 52 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9123
SELECT CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) + + col2 + + + ( col2 ) / - + col1 + + + col1 * + + col1, 33 + - - 88 + - + col0 AS col2 FROM tab1
----
NULL
30
NULL
36
NULL
70

skipif mysql # not compatible
query II rowsort label-9123
SELECT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) + + col2 + + + ( col2 ) / - + col1 + + + col1 * + + col1, 33 + - - 88 + - + col0 AS col2 FROM tab1
----
NULL
30
NULL
36
NULL
70

query I rowsort
SELECT ALL - 44 + 58 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT - 5 * + col0 * + 29 FROM tab1 AS cor0
----
-12325
-13195
-7395

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( 52 )
----

query I rowsort
SELECT - col0 + col0 * ( col1 ) FROM tab2
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL COUNT( ALL col2 ) * 82 AS col1 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL COUNT ( ALL col2 ) * 82 AS col1 FROM tab1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT - MIN( + col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT - MIN ( + col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + 82 * col1 FROM tab1
----
1148
3854
410

query I rowsort
SELECT + col1 + - 62 AS col0 FROM tab2
----
-11
15
5

query I rowsort
SELECT ALL - col0 / + col0 + - 89 * - ( + col2 + - col1 / col0 ) FROM tab1 WHERE NOT - col2 / - col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + + col2 FROM tab0 WHERE NOT - col1 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab0 WHERE col2 * + 91 NOT BETWEEN col2 AND - 32 / col0 + col2 * + 87
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT - COUNT( ALL 61 ) + 8 AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT - COUNT ( ALL 61 ) + 8 AS col0 FROM tab2
----
5

query I rowsort
SELECT DISTINCT - 43 + + col0 * + col2 FROM tab2 WHERE NULL NOT BETWEEN 67 * 66 + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col1 + + 54 AS col2 FROM tab1
----
4331
479
768

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT col2 DIV ( + col2 ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9139
SELECT col2 / ( + col2 ) AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT + 2 * ( - COUNT( * ) ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + 2 * ( - COUNT ( * ) ) FROM tab1
----
-6

query I rowsort
SELECT ALL col0 + - 71 FROM tab2
----
-25
-7
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL + COUNT( DISTINCT + col0 ) AS col2 FROM tab0 WHERE col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 WHERE col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT 38 * COUNT( * ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-9144
SELECT 38 * COUNT ( * ) FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT SUM( DISTINCT 85 ) * + 65 AS col0 FROM tab1
----
5525

skipif mysql # not compatible
query I rowsort label-9145
SELECT SUM ( DISTINCT 85 ) * + 65 AS col0 FROM tab1
----
5525

query I rowsort
SELECT + 46 * 25 FROM tab0
----
1150
1150
1150

query I rowsort
SELECT - 79 + - 51 FROM tab1
----
-130
-130
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT CAST( + ( 79 ) AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-9148
SELECT CAST ( + ( 79 ) AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2
----
-237

query I rowsort
SELECT 50 * ( + 25 ) FROM tab2
----
1250
1250
1250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 - - 70 col2 FROM tab1
----
157
157
157

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 42 * + ( col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT DISTINCT - ( - col0 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - ( - col0 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * 92 < ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9154
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9154
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col0 * - 50 = NULL
----

query I rowsort
SELECT ALL - col0 * - 0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + COUNT( * ) - MIN( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT + COUNT ( * ) - MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * + 7 col0 FROM tab2 AS cor0
----
203
203
203

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( col1 * ( col1 ) )
----

query I rowsort
SELECT DISTINCT 95 FROM tab1 AS cor0 CROSS JOIN tab0
----
95

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9162
SELECT ALL * FROM tab1 WHERE NOT - ( col1 ) * - ( CAST( col1 AS SIGNED ) ) < CAST( col0 AS SIGNED ) / + col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9162
SELECT ALL * FROM tab1 WHERE NOT - ( col1 ) * - ( CAST ( col1 AS INTEGER ) ) < CAST ( col0 AS INTEGER ) / + col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT MIN( 24 ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT MIN ( 24 ) AS col0 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ALL COUNT( * ) * 70 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL COUNT ( * ) * 70 FROM tab0 AS cor0
----
210

query I rowsort
SELECT DISTINCT 90 FROM tab0 cor0 WHERE NOT NULL <= ( ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT ALL - 17 DIV - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - 17 / - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + 42 * - COUNT( * ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 42 * - COUNT ( * ) FROM tab2 AS cor0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT col2 FROM tab1 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) * + 77 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9168
SELECT col2 FROM tab1 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) * + 77 IS NOT NULL
----

query I rowsort
SELECT 64 * col1 FROM tab2 cor0 WHERE NOT ( col1 + - col1 ) IS NULL
----
3264
4288
4928

query I rowsort
SELECT ALL - col1 - - col2 AS col2 FROM tab0 WHERE col2 IN ( col2 )
----
-11
-34
98

query I rowsort
SELECT - 53 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT MIN( ALL - ( col1 ) ) FROM tab1 WHERE NOT NULL < + col2 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT MIN ( ALL - ( col1 ) ) FROM tab1 WHERE NOT NULL < + col2 + 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9173
SELECT ALL * FROM tab1 WHERE NOT + CAST( col0 AS SIGNED ) IS NULL OR NOT ( NULL ) < CAST( col2 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9173
SELECT ALL * FROM tab1 WHERE NOT + CAST ( col0 AS INTEGER ) IS NULL OR NOT ( NULL ) < CAST ( col2 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9175
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9176
SELECT ALL - ( col2 ) DIV + 81 + 84 AS col2 FROM tab0
----
83
84
84

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL - ( col2 ) / + 81 + 84 AS col2 FROM tab0
----
83
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
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-9177
SELECT ALL - MAX ( - col1 ) col1 FROM tab2
----
51

query I rowsort
SELECT DISTINCT 3 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - 78 * - col0 FROM tab1 cor0
----
3978
6630
7098

query III rowsort
SELECT * FROM tab0 WHERE + - col1 >= ( NULL )
----

query I rowsort
SELECT ALL - 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT * FROM tab1 WHERE 97 * - 53 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + + 74 FROM tab2 AS cor0
----
-3
23
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( - 11 + + col1 ) BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-9185
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 11 + + col1 ) BETWEEN NULL AND col0
----
0

query I rowsort
SELECT - ( + + col2 ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + 76
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - 89 IN ( + 9 )
----

query I rowsort
SELECT ALL + 95 - + 29 * - col2 * - 91 + col1 * + col0 FROM tab0 cor0
----
-122723
-24468
-261069

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col1 FROM tab2 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT DISTINCT col2 * col1 DIV + col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT col2 * col1 / + col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT DISTINCT + CAST( 58 AS SIGNED ) + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + CAST ( 58 AS INTEGER ) + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 92 col0 FROM tab2
----
2116
3680
5336

onlyif mysql # DIV for integer division: 
query I rowsort label-9195
SELECT DISTINCT - 24 DIV 10 FROM tab0 WHERE NOT ( col2 + + col0 ) IN ( col0 * col1 )
----
-2

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT - 24 / 10 FROM tab0 WHERE NOT ( col2 + + col0 ) IN ( col0 * col1 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT 92 * COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT 92 * COUNT ( * ) FROM tab2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT - - col0 >= + col0 - + col1 / col2
----
0

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - col0 >= + col0 - + col1 / col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT ALL 19 * - 13 AS col1, COUNT( * ) FROM tab1
----
-247
3

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL 19 * - 13 AS col1, COUNT ( * ) FROM tab1
----
-247
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT SUM( + - col1 ) * + COUNT( * ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT SUM ( + - col1 ) * + COUNT ( * ) FROM tab2
----
-585

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + + col1 - col1 IS NULL
----

query I rowsort
SELECT ALL col2 * 38 AS col1 FROM tab1
----
2242
2584
3648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9202
SELECT ALL ( + 89 ) DIV + COUNT( * ) AS col1 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL ( + 89 ) / + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 0 NOT BETWEEN ( + col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT + CAST( - 89 AS SIGNED ) col1 FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9205
SELECT + CAST ( - 89 AS INTEGER ) col1 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL col2 * - 67 FROM tab2
----
-1541
-2680
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT - col1 * + CAST( col1 AS SIGNED ) FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-9207
SELECT - col1 * + CAST ( col1 AS INTEGER ) FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT - SUM( DISTINCT + 74 ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - SUM ( DISTINCT + 74 ) AS col1 FROM tab1
----
-74

query I rowsort
SELECT - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + SUM( ALL - 93 ) AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + SUM ( ALL - 93 ) AS col0 FROM tab0
----
-279

query II rowsort
SELECT - + col2 AS col2, 76 + + - 88 * - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 37 * col0 ) NOT BETWEEN + 18 AND - col2 * - 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT + + SUM( col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + + SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + - 30 - + col0 + - 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 59 * + + 21 IS NULL
----

query II rowsort
SELECT ALL 74 AS col1, + col0 FROM tab1
----
74
51
74
85
74
91

query I rowsort
SELECT 85 + - 55 FROM tab0
----
30
30
30

query I rowsort
SELECT + col1 + col0 + - 40 + + - 53 FROM tab2
----
4
48
49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 18 + + col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT - MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT - MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT col2 * + - ( + + col2 ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - + col2 + - - 42 + - col1 FROM tab1 cor0
----
-22
-68
-73

query I rowsort
SELECT ALL ( + 4 ) - - col2 AS col1 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT DISTINCT - + col2 - + 46 + - 99 * - - ( - - col0 ) FROM tab2 AS cor0
----
-4623
-6422
-7529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT + CAST( NULL AS SIGNED ) + ( + col2 ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9227
SELECT + CAST ( NULL AS INTEGER ) + ( + col2 ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + + + ( + col1 ) FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT ALL - - 85 * 19 + col0 AS col2, - 81 * col1 FROM tab0 AS cor0
----
1630
-6561
1702
-1701
1712
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col1 col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab1 AS cor0 WHERE - 74 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - ( col0 ) - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) > ( - 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + MAX( DISTINCT 11 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-9234
SELECT + MAX ( DISTINCT 11 ) FROM tab0
----
11

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> - ( + 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9236
SELECT + + 87 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9236
SELECT + + 87 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
8

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-29

query I rowsort
SELECT col0 / - col1 * + - col0 FROM tab0 AS cor0 WHERE NOT col0 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL + SUM( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + SUM ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < ( 67 ) OR NULL <= 40
----
85
5
59

query I rowsort
SELECT + - 8 * - - col0 FROM tab2 AS cor0
----
-368
-512
-600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 * - 37 + col0 col0 FROM tab0 cor0
----
1458
1530
1540

query II rowsort
SELECT + 87 * col1 AS col0, col0 + + col0 - 52 AS col2 FROM tab2 AS cor0
----
4437
40
5829
98
6699
76

query I rowsort
SELECT DISTINCT - col0 * 35 + - col1 * - col0 AS col0 FROM tab1
----
-1071
-2550
1092

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 * - 25 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9246
SELECT DISTINCT * FROM tab0 WHERE 10 + + + CAST( NULL AS SIGNED ) - - + CAST( - 14 AS SIGNED ) IN ( - col1, - 44 * - 2 )
----

skipif mysql # not compatible
query III rowsort label-9246
SELECT DISTINCT * FROM tab0 WHERE 10 + + + CAST ( NULL AS INTEGER ) - - + CAST ( - 14 AS INTEGER ) IN ( - col1, - 44 * - 2 )
----

query I rowsort
SELECT - col1 * + + 68 AS col2 FROM tab2
----
-3468
-4556
-5236

query III rowsort
SELECT * FROM tab0 WHERE + 49 + + col0 <> 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( + - col2 ) IN ( col2 + + col2, + col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL + SUM( ALL + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + SUM ( ALL + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL + - 55 AS col1 FROM tab2 WHERE NULL < col1
----

query I rowsort
SELECT DISTINCT + 55 * - - col0 + + - col0 FROM tab2
----
2484
3456
4050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 col0 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9254
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST( col2 AS SIGNED ) - - - 73 / - + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9254
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( col2 AS INTEGER ) - - - 73 / - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT ALL - col0 + 0 * + col2 + + CAST( - - col1 AS SIGNED ) FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - col0 + 0 * + col2 + + CAST ( - - col1 AS INTEGER ) FROM tab2
----
-8
13
5

query I rowsort
SELECT - + 7 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query II rowsort
SELECT - - col1 AS col1, + col1 * - col1 * col1 + + col2 FROM tab1 AS cor0
----
14
-2648
47
-103755
5
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 48 col0, 77 col0 FROM tab2 AS cor0
----
48
77
48
77
48
77

query I rowsort
SELECT ALL 90 * - + col1 + + col0 FROM tab2 AS cor0
----
-4544
-5955
-6866

query II rowsort
SELECT - col0 AS col1, 1 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

query II rowsort
SELECT ALL - col0 AS col1, 0 * + - col2 AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

query II rowsort
SELECT - col0 * + col2, col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT ( + + SUM( 63 ) ) col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9263
SELECT DISTINCT ( + + SUM ( 63 ) ) col0 FROM tab0 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT MAX( - + 30 ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9264
SELECT MAX ( - + 30 ) AS col1 FROM tab1 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 80 AS col2, + col0 col2 FROM tab2 AS cor0
----
80
46
80
64
80
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ALL MIN( + 37 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL MIN ( + 37 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 0, col0 FROM tab1 AS cor0 WHERE NOT ( - col2 / - 61 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 + + + col2 BETWEEN - col2 * - 21 AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 21 / 47 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9270
SELECT + - ( - + col1 ) AS col2 FROM tab1 WHERE NOT + + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9270
SELECT + - ( - + col1 ) AS col2 FROM tab1 WHERE NOT + + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col0, 26 )
----

query I rowsort
SELECT ALL + 66 * + - col2 * col0 FROM tab0
----
-46530
-57420
-633798

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT MIN( 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9273
SELECT MIN ( 52 ) FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT - - MAX( - + col1 ) * - 68 AS col0 FROM tab1 AS cor0
----
340

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - - MAX ( - + col1 ) * - 68 AS col0 FROM tab1 AS cor0
----
340

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 71 * - + col1 AND 50 + ( + col0 )
----

query I rowsort
SELECT + - col1 + - - col2 AS col2 FROM tab0 AS cor0 WHERE ( ( NOT NULL <> col1 + - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT - col2 * CAST( NULL AS SIGNED ) * + ( 58 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT - col2 * CAST ( NULL AS INTEGER ) * + ( 58 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT - + COUNT( * ) * + + 16 AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT - + COUNT ( * ) * + + 16 AS col1 FROM tab2 AS cor0
----
-48

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab0 cor0 WHERE ( NOT + col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL - + COUNT( * ) * CAST( - - COUNT( col2 ) AS SIGNED ) + + + 77 AS col2 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - + COUNT ( * ) * CAST ( - - COUNT ( col2 ) AS INTEGER ) + + + 77 AS col2 FROM tab1 AS cor0
----
68

query I rowsort
SELECT + 56 + + col2 AS col2 FROM tab0 AS cor0
----
103
155
66

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 97 IN ( - col2 + + + col1, 57 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT COUNT( * ) * + 97 + - + COUNT( * ) + - 52 FROM tab2
----
236

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT COUNT ( * ) * + 97 + - + COUNT ( * ) + - 52 FROM tab2
----
236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9286
SELECT ALL + 33 DIV + - COUNT( * ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + 33 / + - COUNT ( * ) FROM tab2
----
-11

query II rowsort
SELECT ALL + col0 + + col2 AS col2, + 19 FROM tab1
----
144
19
147
19
159
19

query I rowsort
SELECT + 45 * + 82 + + 84 FROM tab0
----
3774
3774
3774

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL MAX( col0 ) + COUNT( * ) col1 FROM tab0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9289
SELECT ALL MAX ( col0 ) + COUNT ( * ) col1 FROM tab0
----
100

query I rowsort
SELECT ALL - 6 + 47 * 82 AS col0 FROM tab0
----
3848
3848
3848

query I rowsort
SELECT ALL + col0 + 34 * - col1 * + 90 AS col1 FROM tab0
----
-247845
-2963
-64173

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT - 16 <> NULL
----

query I rowsort
SELECT ALL col0 - + 9 AS col1 FROM tab1 AS cor0
----
42
76
82

query I rowsort
SELECT ALL + 33 - - - col0 AS col1 FROM tab2 AS cor0
----
-13
-31
-42

query I rowsort
SELECT 30 - + 3 AS col1 FROM tab0 AS cor0
----
27
27
27

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 53 - + col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9297
SELECT DISTINCT 18 * - - col0 + + col1 AS col1, - col2 DIV - col2 FROM tab0
----
1587
1
1747
1
351
1

skipif mysql # not compatible
query II rowsort label-9297
SELECT DISTINCT 18 * - - col0 + + col1 AS col1, - col2 / - col2 FROM tab0
----
1587
1
1747
1
351
1

query II rowsort
SELECT ALL ( + col1 ) + - col2 AS col0, - col2 * + - 54 AS col2 FROM tab2
----
28
1242
37
2160
9
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT + 45 * + - ( + COUNT( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-405

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + 45 * + - ( + COUNT ( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-405

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + + col0
----

query II rowsort
SELECT col0, - 7 FROM tab1 AS cor0
----
51
-7
85
-7
91
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 8 NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT COUNT( DISTINCT + col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9304
SELECT DISTINCT COUNT ( DISTINCT + col0 ) col2 FROM tab1
----
3

query I rowsort
SELECT ALL + ( + - 62 ) FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL + + 85 * + 29 + SUM( DISTINCT + 45 ) AS col2 FROM tab2 WHERE NOT NULL <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + + 85 * + 29 + SUM ( DISTINCT + 45 ) AS col2 FROM tab2 WHERE NOT NULL <= + col1
----
NULL

query I rowsort
SELECT + + col1 * col2 * - col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT - col0 * + + col0 + col0 AS col1 FROM tab1 AS cor0
----
-2550
-7140
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL - SUM( ALL - + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - SUM ( ALL - + col2 ) FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT col1 DIV - 38 + + col1 * + - col2 AS col2 FROM tab1
----
-1344
-295
-3197

skipif mysql # not compatible
query I rowsort label-9310
SELECT col1 / - 38 + + col1 * + - col2 AS col2 FROM tab1
----
-1344
-295
-3197

query I rowsort
SELECT ALL - 94 + - col1 AS col0 FROM tab0
----
-115
-175
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL 54 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL 54 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9313
SELECT - col0 * + - col2 + + - col2 + + + ( + + col0 ) - CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9313
SELECT - col0 * + - col2 + + - col2 + + + ( + + col0 ) - CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 * - col2 * + + ( + 93 ) * + 83 FROM tab0 AS cor0
----
-1620990
-29386233
-764181

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 >= 67
----
51
14
96
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 64 NOT IN ( + + col2 * col1, 76 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9318
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) + - + col0 * col2 NOT BETWEEN - - col2 AND col2
----

skipif mysql # not compatible
query III rowsort label-9318
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) + - + col0 * col2 NOT BETWEEN - - col2 AND col2
----

query I rowsort
SELECT - 81 + + - col2 + + col1 + - - col2 * col2 AS col0 FROM tab1
----
3346
4522
9053

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL MAX( ALL 24 ) + - + 54 col1 FROM tab1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9320
SELECT ALL MAX ( ALL 24 ) + - + 54 col1 FROM tab1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT DISTINCT + 84 DIV - + col1 - + 90 - - col1 AS col1 FROM tab0
----
-10
-173
-73

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT + 84 / - + col1 - + 90 - - col1 AS col1 FROM tab0
----
-10
-173
-73

query I rowsort
SELECT ALL + - 34 + - - 6 AS col1 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT DISTINCT ( - COUNT( DISTINCT - 82 ) ) DIV + + 6 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT ( - COUNT ( DISTINCT - 82 ) ) / + + 6 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 93 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT + 21 DIV col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9325
SELECT + 21 / col2 FROM tab0
----
0
0
2

query II rowsort
SELECT ( + - col1 ) AS col0, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT + ( ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT + ( ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT + SUM( - - ( - col1 ) ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + SUM ( - - ( - col1 ) ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + COUNT( * ) + - 72 AS col0 FROM tab2 AS cor0 WHERE NOT - 73 IS NOT NULL
----
-72

skipif mysql # not compatible
query I rowsort label-9330
SELECT + COUNT ( * ) + - 72 AS col0 FROM tab2 AS cor0 WHERE NOT - 73 IS NOT NULL
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9331
SELECT - COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT - COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 * - + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT + col1 DIV + + 60 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT + col1 / + + 60 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 74 / + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + - 16 > + 45
----
10
47
99

query I rowsort
SELECT DISTINCT 73 + + col0 AS col2 FROM tab1
----
124
158
164

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 20 * ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + - 62 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + 65 ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query II rowsort
SELECT - col1 AS col2, + col2 * - ( col1 ) FROM tab0
----
-1
-99
-21
-210
-81
-3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT DISTINCT + CAST( + SUM( 20 ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT + CAST ( + SUM ( 20 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
180

query I rowsort
SELECT 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + 65 * - - col0, + 43 * - 88 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 + col1 + col2 col0 FROM tab0 cor0
----
117
186
214

query I rowsort
SELECT ALL - - 31 AS col2 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT + col1 + 67 * + 4 * 85 + col2 FROM tab1 AS cor0
----
22844
22890
22895

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9349
SELECT ALL 16 - - col1 + + - 85 * + + 96 + - ( + - CAST( NULL AS SIGNED ) ) * - 0, + col1 * - + 17 + col0 col0 FROM tab1 AS cor0
----
NULL
-187
NULL
-708
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9349
SELECT ALL 16 - - col1 + + - 85 * + + 96 + - ( + - CAST ( NULL AS INTEGER ) ) * - 0, + col1 * - + 17 + col0 col0 FROM tab1 AS cor0
----
NULL
-187
NULL
-708
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT DISTINCT + COUNT( DISTINCT - + 64 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT + COUNT ( DISTINCT - + 64 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9351
SELECT DISTINCT 19 AS col2, SUM( DISTINCT 53 ) col0 FROM tab0 AS cor0
----
19
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9351
SELECT DISTINCT 19 AS col2, SUM ( DISTINCT 53 ) col0 FROM tab0 AS cor0
----
19
53

query I rowsort
SELECT col2 * + + col2 + + col0 - + 19 * - 67 + - + col2 + 14 AS col2 FROM tab0 AS cor0
----
11086
1464
3464

query I rowsort
SELECT + col1 + col0 * + + col1 * - 2 AS col2 FROM tab2
----
-4641
-9779
-9983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT DISTINCT - CAST( - 34 AS SIGNED ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - CAST ( - 34 AS INTEGER ) AS col1 FROM tab1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT 40 * col1 FROM tab1 WHERE + - 75 + + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9355
SELECT 40 * col1 FROM tab1 WHERE + - 75 + + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT ALL - 32 * col2 FROM tab0
----
-1504
-3168
-320

onlyif mysql # DIV for integer division: 
query II rowsort label-9357
SELECT DISTINCT + col1 * 44 DIV + col2 col1, col1 - col1 FROM tab2 AS cor0
----
50
0
84
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9357
SELECT DISTINCT + col1 * 44 / + col2 col1, col1 - col1 FROM tab2 AS cor0
----
50
0
84
0
97
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9358
SELECT - col0 + 24 / + CAST( NULL AS DECIMAL ) * - col2 * + + col1 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9358
SELECT - col0 + 24 / + CAST ( NULL AS REAL ) * - col2 * + + col1 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - col1 AS col0, + col1 * + 48 AS col0 FROM tab2 cor0
----
-51
2448
-67
3216
-77
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT DISTINCT - col1 DIV 39 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT - col1 / 39 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT ALL + - ( + MAX( + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + - ( + MAX ( + col0 ) ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - 46 AS col2 FROM tab0 cor0
----
-46
-46
-46

query I rowsort
SELECT ALL ( - 8 ) * + col1 FROM tab1
----
-112
-376
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT DISTINCT + ( 82 ) DIV + 56 + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT + ( 82 ) / + 56 + + COUNT ( * ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT MAX( - ( 3 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9365
SELECT MAX ( - ( 3 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL 80 * col0 + col0 FROM tab1
----
4131
6885
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + - COUNT( * ) * 55 * + COUNT( * ) * + COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-1485

skipif mysql # not compatible
query I rowsort label-9367
SELECT + - COUNT ( * ) * 55 * + COUNT ( * ) * + COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-1485

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9368
SELECT - + CAST( - col0 AS DECIMAL ) * ( CAST( NULL AS SIGNED ) ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT - + CAST ( - col0 AS REAL ) * ( CAST ( NULL AS INTEGER ) ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT COUNT( * ) + + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-9369
SELECT COUNT ( * ) + + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9370
SELECT col2 + - + CAST( + 20 AS SIGNED ), - col0 * - col2 AS col1 FROM tab0
----
-10
870
27
705
79
9603

skipif mysql # not compatible
query II rowsort label-9370
SELECT col2 + - + CAST ( + 20 AS INTEGER ), - col0 * - col2 AS col1 FROM tab0
----
-10
870
27
705
79
9603

query I rowsort
SELECT ALL + 67 + + 59 * + col2 AS col1 FROM tab0
----
2840
5908
657

query I rowsort
SELECT ALL 89 - + 64 AS col0 FROM tab2
----
25
25
25

query I rowsort
SELECT + - ( + ( + 24 ) ) FROM tab0 AS cor0
----
-24
-24
-24

query II rowsort
SELECT + col0 AS col2, + col1 * + col1 AS col1 FROM tab1 AS cor0
----
51
196
85
25
91
2209

query I rowsort
SELECT ALL + + 95 AS col2 FROM tab0 cor0
----
95
95
95

query I rowsort
SELECT - 83 FROM tab1 AS cor0 WHERE + 36 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9377
SELECT DISTINCT CAST( - 97 AS SIGNED ) * + - col2 - - 0 DIV col1 FROM tab1 cor0
----
5723
6596
9312

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT CAST ( - 97 AS INTEGER ) * + - col2 - - 0 / col1 FROM tab1 cor0
----
5723
6596
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT MAX( ALL - + 16 ) AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT MAX ( ALL - + 16 ) AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE - col0 <= 52
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT ALL + 62 AS col0, - SUM( + - col1 ) - MAX( - + col0 ) FROM tab1
----
62
117

skipif mysql # not compatible
query II rowsort label-9380
SELECT ALL + 62 AS col0, - SUM ( + - col1 ) - MAX ( - + col0 ) FROM tab1
----
62
117

query III rowsort
SELECT * FROM tab1 WHERE - + ( col1 ) NOT BETWEEN 99 / + col1 AND 50 * - col2 * + 85 * col1 + + + col1 * - col2 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 44 + + col1 AS col1 FROM tab1
----
49
58
91

query I rowsort
SELECT DISTINCT + 78 * - col1 - - col0 AS col2 FROM tab2
----
-3932
-5151
-5942

query I rowsort
SELECT - col0 * + + 68 + + ( + col0 ) + ( + col2 ) AS col1 FROM tab1 WHERE NOT + 6 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 6 ) <= NULL
----

query I rowsort
SELECT ALL 94 * - col1 * - ( + 20 ) FROM tab1
----
26320
88360
9400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9388
SELECT COUNT( * ) DIV - COUNT( * ) AS col2, CAST( NULL AS DECIMAL ) + - - COUNT( * ) FROM tab0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9388
SELECT COUNT ( * ) / - COUNT ( * ) AS col2, CAST ( NULL AS REAL ) + - - COUNT ( * ) FROM tab0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT CAST( NULL AS SIGNED ) * - - 70 * + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT CAST ( NULL AS INTEGER ) * - - 70 * + - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT 46 * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT 46 * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9391
SELECT CAST( - - ( - - col1 ) AS SIGNED ), 45 col0 FROM tab0 cor0
----
1
45
21
45
81
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9391
SELECT CAST ( - - ( - - col1 ) AS INTEGER ), 45 col0 FROM tab0 cor0
----
1
45
21
45
81
45

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - COUNT( - col2 ) FROM tab2 AS cor0 WHERE NOT NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT - COUNT ( - col2 ) FROM tab2 AS cor0 WHERE NOT NULL > + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 57 * col0, col0 col2 FROM tab0 AS cor0
----
4959
87
5529
97
855
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT col1 + - + 98 * CAST( NULL AS SIGNED ) / + 68 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9395
SELECT col1 + - + 98 * CAST ( NULL AS INTEGER ) / + 68 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + col2 col0 FROM tab2
----
-21
-39
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT MIN( + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT MIN ( + col0 ) AS col2 FROM tab0
----
15

query I rowsort
SELECT + col1 + + + ( - + 31 ) FROM tab1
----
-17
-26
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT - MIN( ALL - col1 ) + - + 83 AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-9399
SELECT - MIN ( ALL - col1 ) + - + 83 AS col1 FROM tab1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT + 61 + - CAST( + ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) + COUNT( * ) * MIN( + + 65 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT + 61 + - CAST ( + ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + COUNT ( * ) * MIN ( + + 65 ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT - ( + col0 ) + - 62 AS col0, 30 + - col0 FROM tab2
----
-108
-16
-126
-34
-137
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 65 + + + 39 + - col0 col0 FROM tab2
----
80
81
87

query I rowsort
SELECT 72 * 27 AS col0 FROM tab1 cor0
----
1944
1944
1944

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < + col2 * - + 74
----

query I rowsort
SELECT 23 * + col2 * + 86 + col2 + + + col0 AS col2 FROM tab2 AS cor0
----
114857
45563
79224

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - SUM( DISTINCT col0 ) * + + 58 AS col0 FROM tab2 cor0
----
-10730

skipif mysql # not compatible
query I rowsort label-9406
SELECT - SUM ( DISTINCT col0 ) * + + 58 AS col0 FROM tab2 cor0
----
-10730

query I rowsort
SELECT - 12 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT ( - col0 ) + + 28 + + col2 + - 78 * col2 FROM tab1
----
-4600
-5299
-7415

query I rowsort
SELECT - + 92 + + col0 FROM tab0 AS cor0
----
-5
-77
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9410
SELECT DISTINCT - + col1 * - - CAST( NULL AS DECIMAL ) - col1 + - + 69 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - + col1 * - - CAST ( NULL AS REAL ) - col1 + - + 69 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * col0 + - col2 + col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT 44 + col2 AS col1 FROM tab0 AS cor0
----
143
54
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT - + CAST( NULL AS SIGNED ) + - + ( col2 ) * - - col0 + + 66 + col1 + col0 - 72 * 51 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT - + CAST ( NULL AS INTEGER ) + - + ( col2 ) * - - col0 + + 66 + col1 + col0 - 72 * 51 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT DISTINCT - ( - ( + CAST( - - 47 AS SIGNED ) ) ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - ( - ( + CAST ( - - 47 AS INTEGER ) ) ) FROM tab0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9415
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) col1 FROM tab2, tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9415
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) col1 FROM tab2, tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT + ( - - col1 ) + - col0 DIV col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
13
4
46

skipif mysql # not compatible
query I rowsort label-9416
SELECT + ( - - col1 ) + - col0 / col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
13
4
46

query I rowsort
SELECT ALL - col1 * + - col2 * 55 AS col2 FROM tab0 AS cor0
----
11550
209385
5445

query III rowsort
SELECT * FROM tab2 WHERE NOT - 61 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT ALL + 5 * + MAX( - col2 ) col1 FROM tab1
----
-295

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9419
SELECT ALL + 5 * + MAX ( - col2 ) col1 FROM tab1
----
-295

query II rowsort
SELECT ALL 0, + 93 AS col1 FROM tab0
----
0
93
0
93
0
93

query I rowsort
SELECT + + col1 * + col0 + + ( col1 ) * 6 AS col0 FROM tab2 AS cor0
----
2652
5390
5427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT - CAST( 25 AS SIGNED ) + 32 FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-9422
SELECT - CAST ( 25 AS INTEGER ) + 32 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ALL + - 70 * + COUNT( * ) + 54 * - + 29 FROM tab0 AS cor0
----
-1776

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL + - 70 * + COUNT ( * ) + 54 * - + 29 FROM tab0 AS cor0
----
-1776

onlyif mysql # DIV for integer division: 
query II rowsort label-9424
SELECT DISTINCT - col2 AS col0, col2 DIV - col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
-99

skipif mysql # not compatible
query II rowsort label-9424
SELECT DISTINCT - col2 AS col0, col2 / - col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
-99

query II rowsort
SELECT ALL col1, + 43 FROM tab2 AS cor0
----
51
43
67
43
77
43

query I rowsort
SELECT - - col2 * - 51 * col1 FROM tab2 AS cor0
----
-157080
-198186
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 71 col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

query III rowsort
SELECT ALL * FROM tab0 WHERE - 84 + - + col2 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 68 BETWEEN + 54 AND col2
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 46 col1 FROM tab2
----
21
31
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9431
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col2 + CAST( + col2 AS SIGNED ) + col2 + col0 / + - col0 ) <> col1
----

skipif mysql # not compatible
query III rowsort label-9431
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col2 + CAST ( + col2 AS INTEGER ) + col2 + col0 / + - col0 ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + - COUNT( * ) FROM tab2 WHERE NULL <= - 25
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT + - COUNT ( * ) FROM tab2 WHERE NULL <= - 25
----
0

query I rowsort
SELECT ALL + 24 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-63
-73
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 75 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT - MIN( col1 ) + MAX( DISTINCT - + 39 ) + + + COUNT( * ) AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT - MIN ( col1 ) + MAX ( DISTINCT - + 39 ) + + + COUNT ( * ) AS col2 FROM tab2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9436
SELECT DISTINCT + - 44 AS col1, - CAST( ( - + 98 ) AS SIGNED ) - col1 AS col1 FROM tab0 AS cor0 WHERE - 13 = NULL
----

skipif mysql # not compatible
query II rowsort label-9436
SELECT DISTINCT + - 44 AS col1, - CAST ( ( - + 98 ) AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0 WHERE - 13 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT DISTINCT + - 27 - - CAST( + + col2 AS SIGNED ) * - 71 + + - col1 FROM tab0 AS cor0
----
-3445
-7057
-758

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT + - 27 - - CAST ( + + col2 AS INTEGER ) * - 71 + + - col1 FROM tab0 AS cor0
----
-3445
-7057
-758

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL + + 29 + + SUM( DISTINCT - 73 ) AS col2 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + + 29 + + SUM ( DISTINCT - 73 ) AS col2 FROM tab0 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9439
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - col2 * + 31 * - CAST( NULL AS SIGNED ) * + - 75
----

skipif mysql # not compatible
query III rowsort label-9439
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - col2 * + 31 * - CAST ( NULL AS INTEGER ) * + - 75
----

query I rowsort
SELECT + 18 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + 26 * + + COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9441
SELECT + 26 * + + COUNT ( * ) FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - MIN( - col0 ) * COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9442
SELECT - MIN ( - col0 ) * COUNT ( * ) FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT 80 * - COUNT( DISTINCT + + col1 ) AS col0 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-9443
SELECT 80 * - COUNT ( DISTINCT + + col1 ) AS col0 FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - MAX( - - 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9444
SELECT - MAX ( - - 13 ) FROM tab0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT - col1 DIV col0 * col1 AS col1 FROM tab0
----
-405
0
0

skipif mysql # not compatible
query I rowsort label-9445
SELECT - col1 / col0 * col1 AS col1 FROM tab0
----
-405
0
0

query I rowsort
SELECT DISTINCT col1 * - - 48 - col0 * 30 + col1 + + + ( col0 ) * + 38 * col0 / + + col2 + col2 AS col2 FROM tab0 WHERE NOT - - 19 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT + 93 * + + COUNT( + col1 ) * - COUNT( * ) - + COUNT( DISTINCT + col0 ) FROM tab0
----
-840

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT + 93 * + + COUNT ( + col1 ) * - COUNT ( * ) - + COUNT ( DISTINCT + col0 ) FROM tab0
----
-840

query I rowsort
SELECT 28 * 52 AS col0 FROM tab2
----
1456
1456
1456

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col0 AND + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT - SUM( + 10 ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-9450
SELECT - SUM ( + 10 ) AS col1 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT DISTINCT + MAX( ALL - 89 ) AS col2 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + MAX ( ALL - 89 ) AS col2 FROM tab2
----
-89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 >= + - col0 * + 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + - col2 ) * - - 15 * - col1 AS col2 FROM tab2 AS cor0
----
17595
46200
58290

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 18 FROM tab2 WHERE NOT - - 28 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 93 / col1 + col2 * + + ( + - 12 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * col2 * - col0 * + 2 FROM tab1
----
-137088
-50150
-581672

query I rowsort
SELECT DISTINCT 86 * + col0 * 48 FROM tab2
----
189888
264192
309600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9459
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9459
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - CAST ( - col1 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = col1 + + col0
----

query I rowsort
SELECT DISTINCT 45 * - 79 * 94 AS col1 FROM tab0 AS cor0
----
-334170

query I rowsort
SELECT + col0 + - 62 FROM tab0 AS cor0
----
-47
25
35

query I rowsort
SELECT + 25 + col1 * - + col0 AS col2 FROM tab0 AS cor0
----
-1190
-1802
-72

query I rowsort
SELECT col1 * + col0 + + col0 AS col1 FROM tab2
----
2392
4992
5100

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9465
SELECT DISTINCT + col0 AS col1, + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9465
SELECT DISTINCT + col0 AS col1, + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT MIN( + col1 ) + - 98 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9466
SELECT MIN ( + col1 ) + - 98 FROM tab0
----
-97

query I rowsort
SELECT col2 * - col1 + + - 71 FROM tab1
----
-1415
-3267
-366

query I rowsort
SELECT ( - - col2 ) + + + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT + 93 + + SUM( ALL - + ( - col2 ) ) AS col1 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + 93 + + SUM ( ALL - + ( - col2 ) ) AS col1 FROM tab0
----
249

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab2 WHERE col1 IS NULL
----

query II rowsort
SELECT ALL - 9 AS col1, + col2 AS col0 FROM tab0
----
-9
10
-9
47
-9
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT col1 DIV + 57 + + - col1 FROM tab0
----
-1
-21
-80

skipif mysql # not compatible
query I rowsort label-9472
SELECT col1 / + 57 + + - col1 FROM tab0
----
-1
-21
-80

query I rowsort
SELECT ALL - - col1 + + 43 * 44 AS col2 FROM tab0 AS cor0
----
1893
1913
1973

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9474
SELECT DISTINCT - MIN( col0 ) DIV + 32 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - MIN ( col0 ) / + 32 AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT DISTINCT - col2 DIV + col0 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - col2 / + col0 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL + 24 + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL + 24 + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
18

query I rowsort
SELECT col1 - 16 AS col2 FROM tab2
----
35
51
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT - col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT - col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
9

query I rowsort
SELECT + col1 * - col0 + - - col2 AS col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT ALL + col2 DIV col2 + - 68 AS col2 FROM tab0 AS cor0
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + col2 / col2 + - 68 AS col2 FROM tab0 AS cor0
----
-67
-67
-67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( 70 + - col0 )
----

query I rowsort
SELECT + col2 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
117
125
74

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9486
SELECT DISTINCT + col1 AS col1, + col1 DIV col1 AS col1 FROM tab1
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-9486
SELECT DISTINCT + col1 AS col1, + col1 / col1 AS col1 FROM tab1
----
14
1
47
1
5
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( 1 ) * + col2 - + 33 + 39 * - 32 * - + 17 * + 9 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT ( - SUM( 45 ) ) AS col2 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT ( - SUM ( 45 ) ) AS col2 FROM tab0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9489
SELECT DISTINCT + COUNT( * ) DIV - 30 * MIN( col0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT + COUNT ( * ) / - 30 * MIN ( col0 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT MAX( ALL + 85 ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9490
SELECT MAX ( ALL + 85 ) AS col0 FROM tab1
----
85

query II rowsort
SELECT ALL - col0 AS col1, - 40 FROM tab1
----
-51
-40
-85
-40
-91
-40

query I rowsort
SELECT - - 5 FROM tab2 cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9493
SELECT DISTINCT - + 75 DIV col1 FROM tab0 cor0
----
-3
-75
0

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT - + 75 / col1 FROM tab0 cor0
----
-3
-75
0

query II rowsort
SELECT DISTINCT 68, + col1 FROM tab0 AS cor0 WHERE 95 IS NOT NULL
----
68
1
68
21
68
81

query II rowsort
SELECT ALL - col2 * - col0, col0 FROM tab2 WHERE ( NOT - col2 * col1 <> NULL )
----

query II rowsort
SELECT - col1 * - - col2 AS col2, - col1 * - + 72 FROM tab0 AS cor0
----
-210
1512
-3807
5832
-99
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL + SUM( + 43 ) col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9497
SELECT ALL + SUM ( + 43 ) col1 FROM tab1 AS cor0
----
129

query I rowsort
SELECT - col0 + - col0 * + col2 FROM tab0 AS cor0 WHERE 75 IS NOT NULL
----
-720
-957
-9700

query I rowsort
SELECT DISTINCT 51 + - col0 FROM tab1
----
-34
-40
0

query I rowsort
SELECT ALL - 6 + col1 FROM tab1
----
-1
41
8

query I rowsort
SELECT ALL - col1 - + col2 + - - col1 * + col0 FROM tab1
----
361
4162
604

query I rowsort
SELECT DISTINCT + 75 + + 52 FROM tab1 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL + - MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + - MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
51

query II rowsort
SELECT + ( + 66 ) - + 50, 96 AS col2 FROM tab2 AS cor0 WHERE - ( + 28 ) - - col1 + + 82 IS NOT NULL
----
16
96
16
96
16
96

onlyif mysql # DIV for integer division: 
query II rowsort label-9505
SELECT col0, col2 + - - col1 + + 28 DIV + col2 AS col0 FROM tab2
----
46
75
64
117
75
125

skipif mysql # not compatible
query II rowsort label-9505
SELECT col0, col2 + - - col1 + + 28 / + col2 AS col0 FROM tab2
----
46
75
64
117
75
125

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT ( + 98 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT ( + 98 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * ( col1 ) FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL + MAX( 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + MAX ( 3 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL - col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL + SUM( 47 ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + SUM ( 47 ) FROM tab2 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - SUM( - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - SUM ( - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT - CAST( NULL AS SIGNED ) * - 75 + - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT - CAST ( NULL AS INTEGER ) * - 75 + - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT - col1 * col2 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-9515
SELECT - col1 * col2 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) = NULL
----

query II rowsort
SELECT ALL + 99 * - col2, col2 FROM tab1
----
-5841
59
-6732
68
-9504
96

query II rowsort
SELECT DISTINCT col1 * + col0 AS col2, - 65 FROM tab1
----
425
-65
4277
-65
714
-65

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT ( col0 IS NULL )
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + 74 col2, col0 FROM tab1
----
4366
85
5032
91
7104
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT COUNT( ALL + - 77 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9520
SELECT COUNT ( ALL + - 77 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab2 cor0
----
-16

query I rowsort
SELECT + 75 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 < + 76 + + col1
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT ALL - col0 + + - col2 - 43 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - col0 + + - col2 - 43 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - 42 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE 60 / + col0 IS NULL
----

query I rowsort
SELECT - 20 * - + col1 FROM tab2 AS cor0 WHERE ( + col1 / + 43 * 83 IS NULL )
----

query I rowsort
SELECT 17 + col2 AS col1 FROM tab0 AS cor0
----
116
27
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT 87 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9530
SELECT 87 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
90

query I rowsort
SELECT + 41 + + - 6 AS col0 FROM tab2
----
35
35
35

query I rowsort
SELECT - 7 + - col1 * 24 AS col0 FROM tab0
----
-1951
-31
-511

query I rowsort
SELECT + 25 + - - col2 AS col1 FROM tab2
----
48
65
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT COUNT( * ) + - MIN( DISTINCT + + col0 ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT COUNT ( * ) + - MIN ( DISTINCT + + col0 ) AS col0 FROM tab1
----
-48

query I rowsort
SELECT DISTINCT 20 * - col2 * - + col1 - + 81 FROM tab2
----
23379
61519
77639

query I rowsort
SELECT 59 * + col0 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + - - MAX( 45 ) + + 12 AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + - - MAX ( 45 ) + + 12 AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + + col1 - col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9539
SELECT + - 67 DIV + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-9539
SELECT + - 67 / + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL MAX( DISTINCT 79 ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL MAX ( DISTINCT 79 ) AS col1 FROM tab0
----
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + + 34 AND + + 78 + - 7 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT - ( + SUM( - 90 ) ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-9542
SELECT - ( + SUM ( - 90 ) ) FROM tab1 AS cor0
----
270

query II rowsort
SELECT - col2 * 32 * - col1 AS col0, - 83 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT col1, + col2 AS col1 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT + + 99 * + - ( + col2 ) + col0 FROM tab0 cor0
----
-4638
-903
-9704

query II rowsort
SELECT ALL + col2 AS col2, - 74 AS col2 FROM tab0 AS cor0
----
10
-74
47
-74
99
-74

query I rowsort
SELECT - + 10 * - - 25 FROM tab2 AS cor0
----
-250
-250
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT ALL + ( + - CAST( 99 AS SIGNED ) ) FROM tab0 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + ( + - CAST ( 99 AS INTEGER ) ) FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT + MAX( + col2 ) * COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + MAX ( + col2 ) * COUNT ( * ) FROM tab0
----
297

query II rowsort
SELECT ALL - col2 * - col0, col2 FROM tab2
----
1058
23
2560
40
4350
58

query III rowsort
SELECT ALL * FROM tab1 WHERE - 89 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 84 + - 63 AS col0 FROM tab0
----
21
21
21

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / + + col1 = NULL
----

query II rowsort
SELECT - col2 AS col1, + 59 FROM tab2 AS cor0
----
-23
59
-40
59
-58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----
0

query I rowsort
SELECT DISTINCT - 26 * 50 AS col0 FROM tab2 AS cor0
----
-1300

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT 35 DIV - 52 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT 35 / - 52 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT ALL + - col2 DIV col1 + 38 FROM tab1 AS cor0
----
27
32
37

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + - col2 / col1 + 38 FROM tab1 AS cor0
----
27
32
37

query I rowsort
SELECT DISTINCT col2 - - col1 + - col2 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 col2 FROM tab1 AS cor0
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > + col2
----
51
14
96

query I rowsort
SELECT ALL + 52 - - 14 * + col2 + + col2 FROM tab1 AS cor0
----
1072
1492
937

query I rowsort
SELECT DISTINCT col2 + + 56 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
114
79
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT SUM( - col2 ) FROM tab2 AS cor0 WHERE - 76 < + col1 * + col2
----
-121

skipif mysql # not compatible
query I rowsort label-9565
SELECT SUM ( - col2 ) FROM tab2 AS cor0 WHERE - 76 < + col1 * + col2
----
-121

query I rowsort
SELECT + + 0 FROM tab1 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 42 - - 1 FROM tab2
----
43
43
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9568
SELECT * FROM tab2 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND - 19 + CAST( NULL AS DECIMAL ) + - - col0 )
----

skipif mysql # not compatible
query III rowsort label-9568
SELECT * FROM tab2 WHERE ( NOT NULL NOT BETWEEN ( NULL ) AND - 19 + CAST ( NULL AS REAL ) + - - col0 )
----

query I rowsort
SELECT ALL 89 + - 54 FROM tab2
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9570
SELECT CAST( NULL AS SIGNED ) + CAST( MIN( ALL - col1 ) AS SIGNED ) * - + 6 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT CAST ( NULL AS INTEGER ) + CAST ( MIN ( ALL - col1 ) AS INTEGER ) * - + 6 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT DISTINCT COUNT( * ) + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9572
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col1 - - col0, col1 + + CAST( - + col0 AS SIGNED ), 73 )
----

skipif mysql # not compatible
query III rowsort label-9572
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col1 - - col0, col1 + + CAST ( - + col0 AS INTEGER ), 73 )
----

query I rowsort
SELECT col2 + + - col1 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT DISTINCT + + col2, col0 * col1 FROM tab0 cor0
----
10
1827
47
1215
99
97

query I rowsort
SELECT ALL - ( + + 45 ) AS col1 FROM tab1 AS cor0
----
-45
-45
-45

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( + 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT DISTINCT - CAST( - MIN( ALL + col0 ) AS SIGNED ) FROM tab2 WHERE NOT + 98 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - CAST ( - MIN ( ALL + col0 ) AS INTEGER ) FROM tab2 WHERE NOT + 98 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 39 + - 0 * - col1 AS col1 FROM tab2
----
39

query I rowsort
SELECT ALL ( col0 ) + ( col1 ) AS col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9581
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - ( + 35 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT CAST ( NULL AS REAL ) + - ( + 35 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 + - 21 * col2 FROM tab0
----
-189
-2078
-906

query I rowsort
SELECT ALL ( col1 ) FROM tab1 WHERE ( + 72 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT + 8 - - CAST( 92 AS SIGNED ) FROM tab1
----
100
100
100

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 8 - - CAST ( 92 AS INTEGER ) FROM tab1
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL MIN( ALL - 4 ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL MIN ( ALL - 4 ) AS col1 FROM tab1
----
-4

query I rowsort
SELECT - 98 - 1 FROM tab1
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( 27 + + col0 * - 20 ) AND + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 * col0 col0 FROM tab1
----
-2550
-7140
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 * - 96 AS col1 FROM tab2
----
-4896
-6432
-7392

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( 92 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * 57 ) IS NULL
----

query I rowsort
SELECT ALL 19 + 54 AS col1 FROM tab0
----
73
73
73

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * 4 FROM tab2 AS cor0
----
184
256
300

query I rowsort
SELECT ALL 94 * col0 AS col2 FROM tab1 cor0
----
4794
7990
8554

query I rowsort
SELECT + ( - 94 ) * col2 FROM tab2 AS cor0
----
-2162
-3760
-5452

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT ( - 11 ) DIV col2 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT ( - 11 ) / col2 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 38 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 38 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - COUNT( * ) * - 76 AS col1 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-9600
SELECT - COUNT ( * ) * - 76 AS col1 FROM tab2
----
228

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT DISTINCT + COUNT( * ) + + 64 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT + COUNT ( * ) + + 64 FROM tab0
----
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( - 33 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT DISTINCT + 57 + col2 DIV 12 FROM tab2
----
58
60
61

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT + 57 + col2 / 12 FROM tab2
----
58
60
61

query I rowsort
SELECT DISTINCT - - 89 + - col0 FROM tab1 AS cor0
----
-2
38
4

query I rowsort
SELECT DISTINCT 17 + col1 FROM tab0 AS cor0 WHERE NOT ( 16 ) IS NULL
----
18
38
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9608
SELECT - col0 - + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) > - col2 + CAST( NULL AS DECIMAL ) * + col1
----

skipif mysql # not compatible
query I rowsort label-9608
SELECT - col0 - + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) > - col2 + CAST ( NULL AS REAL ) * + col1
----

query I rowsort
SELECT DISTINCT - - col2 + - 4 FROM tab0 cor0
----
43
6
95

query I rowsort
SELECT - + col1 + + 42 FROM tab1 AS cor0
----
-5
28
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL + COUNT( DISTINCT - 65 ) - COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + COUNT ( DISTINCT - 65 ) - COUNT ( * ) FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT + 37 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT + 37 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( col1 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 12 + 94 FROM tab1 cor0
----
106
106
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT + + col0 + CAST( NULL AS SIGNED ) 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-9615
SELECT + + col0 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 6 - + col2 FROM tab2 AS cor0
----
-17
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - 75 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 75 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL COUNT( ALL 87 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL COUNT ( ALL 87 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL - ( - MIN( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - ( - MIN ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 >= ( 25 * 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 67 FROM tab2, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT col0 * - ( col1 ) * - 26 AS col0 FROM tab0 AS cor0
----
2522
31590
47502

query II rowsort
SELECT - col0, col0 + col1 AS col1 FROM tab2 AS cor0
----
-46
97
-64
141
-75
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 96 col1 FROM tab0 AS cor0
----
-1440
-8352
-9312

query II rowsort
SELECT 77 AS col1, 48 FROM tab2 AS cor0
----
77
48
77
48
77
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9626
SELECT ALL 9, 76 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
9
73

skipif mysql # not compatible
query II rowsort label-9626
SELECT ALL 9, 76 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT + + 4 * - COUNT( * ) FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT + + 4 * - COUNT ( * ) FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
-12

query II rowsort
SELECT ALL - - col1 AS col1, + ( 67 ) AS col0 FROM tab0 AS cor0
----
1
67
21
67
81
67

query I rowsort
SELECT ALL ( 63 ) AS col1 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT - 77 + + 64 + - col2 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT + MIN( ALL + 50 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + MIN ( ALL + 50 ) FROM tab2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9632
SELECT DISTINCT * FROM tab1 WHERE ( CAST( - + 22 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9632
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( - + 22 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9633
SELECT DISTINCT * FROM tab0 WHERE ( - 90 * + + col1 + + col0 * - 71 ) BETWEEN NULL AND ( CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9633
SELECT DISTINCT * FROM tab0 WHERE ( - 90 * + + col1 + + col0 * - 71 ) BETWEEN NULL AND ( CAST ( + col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT DISTINCT + col2 + - 87 + 77 * + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT + col2 + - 87 + 77 * + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT 77 + + 71 * - - 93 * + + MIN( DISTINCT + 7 ) FROM tab0
----
46298

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT 77 + + 71 * - - 93 * + + MIN ( DISTINCT + 7 ) FROM tab0
----
46298

query III rowsort
SELECT * FROM tab0 WHERE + 4 > ( + ( - col1 ) + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT MIN( + 13 ) col1 FROM tab1
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9637
SELECT MIN ( + 13 ) col1 FROM tab1
----
13

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN + col1 * - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9641
SELECT * FROM tab2 AS cor0 WHERE + col1 * + + CAST( + col1 AS SIGNED ) >= ( col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9641
SELECT * FROM tab2 AS cor0 WHERE + col1 * + + CAST ( + col1 AS INTEGER ) >= ( col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 16 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
391
680
986

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL ( - - COUNT( col2 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL ( - - COUNT ( col2 ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT - + MAX( ALL + - 17 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-9644
SELECT - + MAX ( ALL + - 17 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - MIN( - 22 ) * + 75 + - + COUNT( * ) FROM tab2
----
1647

skipif mysql # not compatible
query I rowsort label-9645
SELECT - MIN ( - 22 ) * + 75 + - + COUNT ( * ) FROM tab2
----
1647

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + COUNT( DISTINCT + ( col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9647
SELECT + COUNT ( DISTINCT + ( col2 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 35 BETWEEN + 45 AND + 32 * + 68 + col2 / - col0
----

query I rowsort
SELECT DISTINCT - + col1 * + - 40 + col0 - - + 96 AS col1 FROM tab1 AS cor0
----
2067
381
707

query I rowsort
SELECT ALL col1 + + 60 FROM tab1 AS cor0
----
107
65
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 21 NOT IN ( + 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9652
SELECT DISTINCT - col1 col1, - ( - 53 ) * + - 66 + col2 + - - 77 DIV col2 AS col1 FROM tab0
----
-1
-3399
-21
-3481
-81
-3450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9652
SELECT DISTINCT - col1 col1, - ( - 53 ) * + - 66 + col2 + - - 77 / col2 AS col1 FROM tab0
----
-1
-3399
-21
-3481
-81
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL - MIN( ALL - - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - MIN ( ALL - - col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT col0 <> - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + 91 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT DISTINCT + 12 DIV col2 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9656
SELECT DISTINCT + 12 / col2 col0 FROM tab1
----
0

query I rowsort
SELECT 19 * col2 * + 73 FROM tab1
----
133152
81833
94316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9658
SELECT SUM( + col0 ) DIV COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9658
SELECT SUM ( + col0 ) / COUNT ( * ) FROM tab0
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col1 ) IN ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT + 84 + COUNT( * ) - - 90 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
174

skipif mysql # not compatible
query I rowsort label-9660
SELECT + 84 + COUNT ( * ) - - 90 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9661
SELECT ALL CAST( + col0 AS SIGNED ) DIV + col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL CAST ( + col0 AS INTEGER ) / + col0 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - SUM( - 13 ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9662
SELECT - SUM ( - 13 ) AS col2 FROM tab0 AS cor0
----
39

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND 64 * - 38 - + 2 * - - col1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - - col0 BETWEEN ( + + col1 ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 96 * + col2 + - col2 BETWEEN - 70 AND - 72
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - - + 39 FROM tab0 AS cor0 WHERE NOT ( 79 ) IS NULL
----
120
40
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT + 78 DIV - COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9667
SELECT + 78 / - COUNT ( * ) FROM tab0 AS cor0
----
-26

query I rowsort
SELECT + 82 * + + col0 + col0 AS col2 FROM tab2 AS cor0
----
3818
5312
6225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9669
SELECT DISTINCT + col2 + - CAST( col0 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 67, col2 - col1 + 41 )
----

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT + col2 + - CAST ( col0 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 67, col2 - col1 + 41 )
----

query I rowsort
SELECT + 48 * col0 + col1 + + 87 AS col0 FROM tab1 AS cor0
----
2549
4172
4502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT DISTINCT + col1 + + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE + CAST( + + 49 AS SIGNED ) * - - ( - ( - 22 ) ) >= + ( - col0 )
----
110
115
64

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT + col1 + + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE + CAST ( + + 49 AS INTEGER ) * - - ( - ( - 22 ) ) >= + ( - col0 )
----
110
115
64

query I rowsort
SELECT col2 + + 82 FROM tab1
----
141
150
178

query I rowsort
SELECT col0 + + col2 - + - col0 AS col0 FROM tab2
----
115
168
208

query I rowsort
SELECT 92 + 49 + + col0 AS col0 FROM tab0
----
156
228
238

query I rowsort
SELECT DISTINCT - 84 + - col2 AS col1 FROM tab1
----
-143
-152
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT + 29 * + 84 * CAST( + col0 AS SIGNED ) * + 19 * + - col2 + col1 FROM tab0
----
-32630139
-40267059
-444465251

skipif mysql # not compatible
query I rowsort label-9676
SELECT + 29 * + 84 * CAST ( + col0 AS INTEGER ) * + 19 * + - col2 + col1 FROM tab0
----
-32630139
-40267059
-444465251

query I rowsort
SELECT ALL - 91 + + - 15 FROM tab0
----
-106
-106
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT 16 DIV + col1 col1 FROM tab0 cor0
----
0
0
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9678
SELECT 16 / + col1 col1 FROM tab0 cor0
----
0
0
16

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + 53 NOT BETWEEN ( ( + - ( - ( + 25 ) ) ) ) AND 30 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT - MIN( ALL - - 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-9681
SELECT - MIN ( ALL - - 11 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

query I rowsort
SELECT + 68 AS col0 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT col0 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT + - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9684
SELECT + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL 8, col1 FROM tab0
----
8
1
8
21
8
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT COUNT( ALL col2 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9686
SELECT DISTINCT COUNT ( ALL col2 ) col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) * + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) * + col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + + col2 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL 7 * + col1 AS col0 FROM tab0
----
147
567
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - col2 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT ALL 72 + 50 AS col0 FROM tab2 WHERE ( - ( - CAST( - col1 AS SIGNED ) ) ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL 72 + 50 AS col0 FROM tab2 WHERE ( - ( - CAST ( - col1 AS INTEGER ) ) ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT DISTINCT - 58 DIV 59 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT - 58 / 59 AS col2 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col1, + 88 - - col1 AS col2 FROM tab1
----
14
102
47
135
5
93

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT + - col2 * + col0 + - + 88 FROM tab0 AS cor0
----
-793
-958
-9691

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT COUNT( DISTINCT col2 ) col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9696
SELECT DISTINCT COUNT ( DISTINCT col2 ) col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 29 + col0 col1 FROM tab1 cor0
----
1796
2063
2835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IN ( - ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9700
SELECT - col2, + 93 DIV col1 DIV + 40 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-9700
SELECT - col2, + 93 / col1 / + 40 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT 14 * - + col0 FROM tab0 AS cor0
----
-1218
-1358
-210

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + col0 / + 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - COUNT( * ) * + COUNT( * ) + + + SUM( ALL - 76 ) + + + 3 FROM tab1 cor0
----
-234

skipif mysql # not compatible
query I rowsort label-9704
SELECT - COUNT ( * ) * + COUNT ( * ) + + + SUM ( ALL - 76 ) + + + 3 FROM tab1 cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9705
SELECT - ( CAST( NULL AS SIGNED ) ) / + - ( + + col1 ) / col0 + + 40 AS col1, 33 FROM tab2 cor0
----
NULL
33
NULL
33
NULL
33

skipif mysql # not compatible
query II rowsort label-9705
SELECT - ( CAST ( NULL AS INTEGER ) ) / + - ( + + col1 ) / col0 + + 40 AS col1, 33 FROM tab2 cor0
----
NULL
33
NULL
33
NULL
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9709
SELECT ALL col2 AS col2, CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-9709
SELECT ALL col2 AS col2, CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT + - MAX( + ( 90 ) ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-9710
SELECT + - MAX ( + ( 90 ) ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT DISTINCT + 22 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT + 22 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT DISTINCT - col1 DIV - col0 + + col2 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT - col1 / - col0 + + col2 FROM tab0
----
10
52
99

query I rowsort
SELECT + col1 - - - ( + col2 ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - 24 + 44 + + - 35 FROM tab1
----
-15

query II rowsort
SELECT col0 + col2 AS col1, col1 * + col0 FROM tab1
----
144
425
147
714
159
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT 35 + - COUNT( * ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9716
SELECT 35 + - COUNT ( * ) FROM tab2 AS cor0
----
32

query III rowsort
SELECT ALL - + ( - + col2 ) AS col2, col0, + col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 8815c12c4a22c328cbbd9d2d75566731

query I rowsort
SELECT + + 2 + - 72 + 83 * - col1 FROM tab2 AS cor0
----
-4303
-5631
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9719
SELECT ALL - CAST( NULL AS SIGNED ) - - - col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9719
SELECT ALL - CAST ( NULL AS INTEGER ) - - - col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 * + col1 + + + col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2950
-767
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - - 4 + + col2 col2 FROM tab1 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT DISTINCT MIN( DISTINCT col2 ) + + + 19 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT MIN ( DISTINCT col2 ) + + + 19 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col1 - ( 3 ) + - - col0 FROM tab0
----
105
93
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT - COUNT( * ) col0, 40 * - 49 FROM tab0 AS cor0
----
-3
-1960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9724
SELECT - COUNT ( * ) col0, 40 * - 49 FROM tab0 AS cor0
----
-3
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT DISTINCT COUNT( - + col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT COUNT ( - + col0 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 76 * col2 >= NULL
----

query II rowsort
SELECT - col0 AS col1, col1 FROM tab1 AS cor0 WHERE NOT col2 <> col2 * - col0 * 33 + col0 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + - col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT DISTINCT + 24 * COUNT( * ) AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + 24 * COUNT ( * ) AS col0 FROM tab0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT CAST( + 6 AS SIGNED ) FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9730
SELECT CAST ( + 6 AS INTEGER ) FROM tab0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9731
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col1, 27 AS col0 FROM tab0
----
NULL
27
NULL
27
NULL
27

skipif mysql # not compatible
query II rowsort label-9731
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col1, 27 AS col0 FROM tab0
----
NULL
27
NULL
27
NULL
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col0 ) * - col1 / - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) AS col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT + - col2 * - + 59 FROM tab2 AS cor0
----
1357
2360
3422

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-9735
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif mysql # not compatible
query IIIIII rowsort label-9735
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + - 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT COUNT( + - 88 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9737
SELECT COUNT ( + - 88 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + 18 + + + col1 FROM tab2
----
69
85
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col1 ) * + col1 IN ( 27 + 49 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 * + 1 + col2 / 91 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT ALL + 13 + - CAST( + col2 AS SIGNED ) + - col1 * + + ( + 50 ) FROM tab0 cor0
----
-1047
-136
-4084

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL + 13 + - CAST ( + col2 AS INTEGER ) + - col1 * + + ( + 50 ) FROM tab0 cor0
----
-1047
-136
-4084

query II rowsort
SELECT DISTINCT - col0, + col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 72 * + 13 col1 FROM tab1 AS cor0
----
1004
1032
995

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT SUM( 8 ) + + 82 AS col1 FROM tab0 cor0
----
106

skipif mysql # not compatible
query I rowsort label-9744
SELECT SUM ( 8 ) + + 82 AS col1 FROM tab0 cor0
----
106

query I rowsort
SELECT - col2 * col2 * col2 + col2 FROM tab1 AS cor0
----
-205320
-314364
-884640

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT + COUNT( * ) * - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT + COUNT ( * ) * - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT col0 + - + 52 FROM tab0 AS cor0
----
-37
35
45

query I rowsort
SELECT DISTINCT 9 * + col0 * col0 FROM tab0
----
2025
68121
84681

query I rowsort
SELECT DISTINCT ( + - 89 ) + + + 46 FROM tab2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT CAST( - col1 AS SIGNED ) * 20 + + 78 AS col1 FROM tab0
----
-1542
-342
58

skipif mysql # not compatible
query I rowsort label-9750
SELECT CAST ( - col1 AS INTEGER ) * 20 + + 78 AS col1 FROM tab0
----
-1542
-342
58

query I rowsort
SELECT - col0 + + - col0 AS col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT - MAX( + 5 ) + 65 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-9752
SELECT - MAX ( + 5 ) + 65 FROM tab0
----
60

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT + 41 + col2 AS col0 FROM tab1
----
100
109
137

query I rowsort
SELECT DISTINCT ( - + col2 ) * + 63 * + + 79 FROM tab1
----
-293643
-338436
-477792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + col2 - - ( - col1 ) AS col0 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT - COUNT( DISTINCT - 95 ) + - 77 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - COUNT ( DISTINCT - 95 ) + - 77 FROM tab0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * + ( 89 ) - - 99 IS NULL
----

query I rowsort
SELECT ALL col1 + + 37 * - 62 - + col0 AS col1 FROM tab1 AS cor0 WHERE 84 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT + COUNT( - CAST( NULL AS SIGNED ) ) - - + 6 AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9761
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) - - + 6 AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + - col1 + - ( - - col2 ) FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT 37 - - col1 * - ( 52 ) * + col0 FROM tab2
----
-121955
-256219
-261263

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - MAX( - 74 ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9765
SELECT - MAX ( - 74 ) FROM tab0 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 col0 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT MIN( - - 95 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-9767
SELECT MIN ( - - 95 ) FROM tab0 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9768
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9769
SELECT DISTINCT SUM( ALL - CAST( NULL AS SIGNED ) ) col2 FROM tab1 WHERE NOT + col1 * + col0 / + col2 - + ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 WHERE NOT + col1 * + col0 / + col2 - + ( col2 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col0 AS col1, - 27 AS col2 FROM tab0
----
15
-27
87
-27
97
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9771
SELECT + CAST( + MAX( + + col0 ) AS SIGNED ), COUNT( * ) AS col0 FROM tab1
----
91
3

skipif mysql # not compatible
query II rowsort label-9771
SELECT + CAST ( + MAX ( + + col0 ) AS INTEGER ), COUNT ( * ) AS col0 FROM tab1
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - 87 * + - MAX( + col1 ) AS col0 FROM tab1
----
4089

skipif mysql # not compatible
query I rowsort label-9772
SELECT - 87 * + - MAX ( + col1 ) AS col0 FROM tab1
----
4089

query I rowsort
SELECT + col1 * - - ( + col0 ) AS col2 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9774
SELECT - AVG ( CAST( NULL AS DECIMAL ) ) + - ( - - SUM( + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT - AVG ( CAST ( NULL AS REAL ) ) + - ( - - SUM ( + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT + + CAST( NULL AS SIGNED ) * 40 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT + + CAST ( NULL AS INTEGER ) * 40 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - 43 * - 17 * COUNT( * ) FROM tab0 AS cor0
----
2193

skipif mysql # not compatible
query I rowsort label-9776
SELECT - 43 * - 17 * COUNT ( * ) FROM tab0 AS cor0
----
2193

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 17 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT ALL - 68 DIV col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - 68 / col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT - 83 + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-19
-37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - MIN( - col2 ) - + 73 + + 95 FROM tab0
----
121

skipif mysql # not compatible
query I rowsort label-9780
SELECT - MIN ( - col2 ) - + 73 + + 95 FROM tab0
----
121

query I rowsort
SELECT + AVG ( ALL ( - + 57 ) ) + + 81 / - 41 FROM tab1 WHERE - - col0 - ( col1 ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - 37 * + ( col1 ) + - ( + 27 ) AS col0, - col0 AS col2 FROM tab2
----
-1914
-46
-2506
-75
-2876
-64

query I rowsort
SELECT ALL - col1 - 4 - + + 35 FROM tab0
----
-120
-40
-60

query I rowsort
SELECT 53 + + col0 AS col0 FROM tab0
----
140
150
68

query I rowsort
SELECT ALL - col1 * - 38 + - 73 AS col2 FROM tab1
----
117
1713
459

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT ( + col2 ) + + col1 DIV col1 col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9786
SELECT ( + col2 ) + + col1 / col1 col0 FROM tab1
----
60
69
97

query I rowsort
SELECT + 58 + - 61 + col2 FROM tab2
----
20
37
55

query I rowsort
SELECT DISTINCT - 96 + - 80 AS col0 FROM tab0
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT - CAST( NULL AS SIGNED ) + - col2 * + 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT - CAST ( NULL AS INTEGER ) + - col2 * + 30 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 71 + - col1 FROM tab1 AS cor0
----
-118
-76
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT + CAST( NULL AS SIGNED ) + - - 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT + CAST ( NULL AS INTEGER ) + - - 83 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL + + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 67 / - - col2 + col0 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + - 49 * 82 FROM tab1 AS cor0 WHERE col0 * 70 BETWEEN 23 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 33 + col2 * + 9 col0 FROM tab0 AS cor0
----
437
67
957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT ALL ( COUNT( * ) ) - - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9796
SELECT ALL ( COUNT ( * ) ) - - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9797
SELECT COUNT( * ) AS col1, - 52 - 95 AS col0 FROM tab2
----
3
-147

skipif mysql # not compatible
query II rowsort label-9797
SELECT COUNT ( * ) AS col1, - 52 - 95 AS col0 FROM tab2
----
3
-147

query I rowsort
SELECT 55 * + 85 AS col1 FROM tab1
----
4675
4675
4675

query II rowsort
SELECT DISTINCT + 32 AS col0, 2 + col2 FROM tab1 AS cor0
----
32
61
32
70
32
98

query II rowsort
SELECT ALL + col2 + col2 AS col0, + 16 * + 60 AS col2 FROM tab2 AS cor0 WHERE 49 IS NOT NULL
----
116
960
46
960
80
960

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, + col0 + - col1 AS col2 FROM tab2 AS cor0
----
51
-5
67
8
77
-13

query II rowsort
SELECT ALL col0, - 9 AS col0 FROM tab2 AS cor0
----
46
-9
64
-9
75
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT + + MIN( DISTINCT + col2 ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT + + MIN ( DISTINCT + col2 ) AS col1 FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - SUM( DISTINCT + 88 ) AS col1 FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9805
SELECT - SUM ( DISTINCT + 88 ) AS col1 FROM tab0 cor0
----
-88

query II rowsort
SELECT - 26 * - - 90 * + col1 AS col1, col1 AS col0 FROM tab2 cor0 WHERE NOT ( - + col1 ) * - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT MIN( + 5 ) AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-9807
SELECT MIN ( + 5 ) AS col1 FROM tab0
----
5

query II rowsort
SELECT col2 + - - col0, - col0 AS col0 FROM tab1
----
144
-85
147
-51
159
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT 7 * + SUM( DISTINCT + 72 ) + + - COUNT( * ) AS col0 FROM tab0
----
501

skipif mysql # not compatible
query I rowsort label-9809
SELECT 7 * + SUM ( DISTINCT + 72 ) + + - COUNT ( * ) AS col0 FROM tab0
----
501

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( col2 ) / - col0 * - 32 * + 41 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT col0 + + - col0 DIV + col1 AS col1 FROM tab1
----
48
68
90

skipif mysql # not compatible
query I rowsort label-9811
SELECT col0 + + - col0 / + col1 AS col1 FROM tab1
----
48
68
90

query I rowsort
SELECT DISTINCT 47 * + + col2 AS col0 FROM tab1 AS cor0
----
2773
3196
4512

query I rowsort
SELECT ALL + 84 * col1 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT DISTINCT - col2 + col2 + 49 * - col0 FROM tab0 cor0
----
-4263
-4753
-735

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT ALL + COUNT( * ) AS col1, + 51 FROM tab2 AS cor0
----
3
51

skipif mysql # not compatible
query II rowsort label-9815
SELECT ALL + COUNT ( * ) AS col1, + 51 FROM tab2 AS cor0
----
3
51

query I rowsort
SELECT + - 24 + + col1 * col0 * - 11 FROM tab0 AS cor0
----
-1091
-13389
-20121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9817
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9817
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT ALL - col1, + 10 AS col0 FROM tab0 AS cor0
----
-1
10
-21
10
-81
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT + MIN( ALL - - 80 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT + MIN ( ALL - - 80 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT - 93 FROM tab0 AS cor0 WHERE - col0 + + ( + + col2 ) NOT IN ( - 78 * + ( - - 1 ), - col0 * 89 * - col2 )
----
-93
-93
-93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - + ( + 59 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - col2 BETWEEN NULL AND 38 * - col2
----

query I rowsort
SELECT DISTINCT + 86 + - + col1 FROM tab1
----
39
72
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 7 + - + col2 * - 67 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT 79 * col2 * + + CAST( NULL AS SIGNED ) * + col2 + - + 59 + + + 8 FROM tab1 WHERE NOT - col1 + - col1 = col2 + - col0 * + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT 79 * col2 * + + CAST ( NULL AS INTEGER ) * + col2 + - + 59 + + + 8 FROM tab1 WHERE NOT - col1 + - col1 = col2 + - col0 * + col0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - + 50 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-9829
SELECT - + 50 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col2 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9831
SELECT + - col0 * + CAST( NULL AS DECIMAL ) * + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT + - col0 * + CAST ( NULL AS REAL ) * + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( + ( - col0 ) ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9834
SELECT DISTINCT COUNT( + col1 ) AS col0, + 88 * - MIN( ALL + col1 ) FROM tab1
----
3
-440

skipif mysql # not compatible
query II rowsort label-9834
SELECT DISTINCT COUNT ( + col1 ) AS col0, + 88 * - MIN ( ALL + col1 ) FROM tab1
----
3
-440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9835
SELECT DISTINCT + COUNT( * ) + + - ( CAST( NULL AS DECIMAL ) ) * + MAX( - col0 ) / 74 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + COUNT ( * ) + + - ( CAST ( NULL AS REAL ) ) * + MAX ( - col0 ) / 74 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col1 * + col0 col2 FROM tab0
----
10
1827
47
1215
99
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL MIN( DISTINCT - - 14 ) AS col0 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL MIN ( DISTINCT - - 14 ) AS col0 FROM tab0
----
14

query II rowsort
SELECT ALL + col1 AS col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT - 49 * + 51 + + col1 AS col1 FROM tab0 AS cor0
----
-2418
-2478
-2498

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT - MAX( DISTINCT 84 ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - MAX ( DISTINCT 84 ) AS col2 FROM tab1 AS cor0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT ALL - 80 DIV 14 + col1 FROM tab2 cor0
----
46
62
72

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - 80 / 14 + col1 FROM tab2 cor0
----
46
62
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, ( + col1 ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 90 * + + 30 + + col2 + + col2 FROM tab1 AS cor0
----
2818
2836
2892

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL - MIN( ALL - 28 ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL - MIN ( ALL - 28 ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT DISTINCT + 78 - + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + 78 - + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT - MIN( - - col2 ) AS col2 FROM tab2 WHERE NULL <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT - MIN ( - - col2 ) AS col2 FROM tab2 WHERE NULL <= - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT 5 + MAX( DISTINCT + 57 ) AS col1 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-9848
SELECT 5 + MAX ( DISTINCT + 57 ) AS col1 FROM tab0
----
62

query I rowsort
SELECT DISTINCT ( - 45 ) * + 40 * + col0 AS col1 FROM tab2
----
-115200
-135000
-82800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col1 + - + col2 + col2 + + col0 col2 FROM tab2
----
148
209
218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT ALL 13 * - CAST( - 4 AS SIGNED ) FROM tab1
----
52
52
52

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 13 * - CAST ( - 4 AS INTEGER ) FROM tab1
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT col2 + 2 + 7 DIV + 69 AS col1 FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-9852
SELECT col2 + 2 + 7 / + 69 AS col1 FROM tab0
----
101
12
49

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE NULL >= - col1 + - col0 + + 87
----

query III rowsort
SELECT * FROM tab2 WHERE 36 NOT IN ( + col0, + ( + col1 ) + - 55 + col0 * 73 + + col1, + col2 * - col1 + - + ( + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * + - ( col0 ) AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 45 * - col1 AS col1 FROM tab0
----
-3645
-45
-945

query II rowsort
SELECT 99 AS col2, - col1 FROM tab2
----
99
-51
99
-67
99
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + COUNT( + ( + ( - - 16 ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9858
SELECT + COUNT ( + ( + ( - - 16 ) ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT ( - - 8 NOT BETWEEN - - ( col1 ) * - col1 + + 76 * - col2 AND - + col0 )
----

query I rowsort
SELECT + 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 NOT IN ( + 44 + - ( - - 39 ) * - 53, - ( + col2 ), - 93 * - - col0, ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - - 22 FROM tab2
----
-1276
-506
-880

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col0 - - - 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT ALL + - CAST( + 48 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + - CAST ( + 48 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-48
-48
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 90 + + - 68 <> 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT - + SUM( col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT - + SUM ( col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 18 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 96 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - 68 FROM tab2 cor0
----
-3128
-4352
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT SUM( ALL 55 ) + + COUNT( * ) AS col0 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-9871
SELECT SUM ( ALL 55 ) + + COUNT ( * ) AS col0 FROM tab0
----
168

query I rowsort
SELECT DISTINCT - 19 * - 20 FROM tab1
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + + COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT + 51 + - col2 AS col1 FROM tab2
----
-7
11
28

query I rowsort
SELECT + col1 + + 62 FROM tab2
----
113
129
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT 4 + - COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT 4 + - COUNT ( * ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + col0 * + col2 + col0 + - col0 + - col0 AS col0 FROM tab2
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL COUNT( * ) + - 75 col0 FROM tab2
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9878
SELECT ALL COUNT ( * ) + - 75 col0 FROM tab2
----
-72

query III rowsort
SELECT * FROM tab0 WHERE NULL > + 12
----

query I rowsort
SELECT 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - + col2 - - 80 AS col0 FROM tab1 AS cor0
----
-16
12
21

query I rowsort
SELECT 73 + - + 2 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT 64 + col2 AS col1 FROM tab1 AS cor0
----
123
132
160

query I rowsort
SELECT DISTINCT + col2 * col0 - - ( - + col2 ) FROM tab0 cor0
----
658
860
9504

query I rowsort
SELECT + 32 * + col2 + + 45 * - col0 FROM tab1 cor0
----
-1919
-1937
777

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 - - col0 * col1 AS col2 FROM tab2 AS cor0
----
2300
4864
4950

query I rowsort
SELECT col1 * + - 67 * - + 23 FROM tab0
----
124821
1541
32361

query I rowsort
SELECT - col2 * + + 41 AS col2 FROM tab2
----
-1640
-2378
-943

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9890
SELECT DISTINCT - 86 * - 44 * - 41, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-155144
NULL

skipif mysql # not compatible
query II rowsort label-9890
SELECT DISTINCT - 86 * - 44 * - 41, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-155144
NULL

query I rowsort
SELECT col1 * - 12 FROM tab2
----
-612
-804
-924

query II rowsort
SELECT ALL col2 * - + 44, - 0 AS col1 FROM tab0
----
-2068
0
-4356
0
-440
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col0 AS col0, col1 col2 FROM tab0
----
1215
81
1827
21
97
1

query III rowsort
SELECT DISTINCT - col0 * + 89 AS col2, col0 AS col1, col2 AS col0 FROM tab0
----
9 values hashing to 7cd5a523900602a1ae42b224eda2f0cf

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - col0 = col2
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 47 ) * + ( + col2 ) FROM tab0 AS cor0
----
-2209
-4653
-470

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT + ( col1 ) * 94 DIV ( - ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + ( col1 ) * 94 / ( - ( - - col1 ) ) AS col2 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + - MIN( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9899
SELECT + - MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
99

query II rowsort
SELECT DISTINCT + ( + ( + - col0 ) ) AS col1, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT + + 56 * - + 87 AS col1 FROM tab2 AS cor0
----
-4872
-4872
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL COUNT( - - col0 ) * - 94 + - 70 AS col2 FROM tab2 AS cor0
----
-352

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL COUNT ( - - col0 ) * - 94 + - 70 AS col2 FROM tab2 AS cor0
----
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT CAST( NULL AS SIGNED ) + 10 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 10 AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col2 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT + 27 AS col0, - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
27
-6

skipif mysql # not compatible
query II rowsort label-9905
SELECT + 27 AS col0, - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
27
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT MIN( ALL + - 94 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-9906
SELECT MIN ( ALL + - 94 ) FROM tab0
----
-94

query I rowsort
SELECT ALL - col2 * - - col1 * - + ( col1 ) FROM tab2
----
237160
260362
59823

query I rowsort
SELECT DISTINCT col1 + + 80 AS col1 FROM tab1 AS cor0
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - 94 + - MAX( col1 ) col0 FROM tab0 AS cor0
----
-175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9909
SELECT - 94 + - MAX ( col1 ) col0 FROM tab0 AS cor0
----
-175

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + - 37 <= NULL )
----

query I rowsort
SELECT + - 1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + 34 * COUNT( * ) col0 FROM tab0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9912
SELECT + 34 * COUNT ( * ) col0 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - MAX( DISTINCT 42 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - MAX ( DISTINCT 42 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-42

query I rowsort
SELECT - col1 * - ( + - ( + 91 ) ) * + 15 * + col2 FROM tab2 cor0
----
-1601145
-4204200
-5304390

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT + col1 DIV + + 90 * - 76 + 44 + - col0 - col2 AS col1 FROM tab0 AS cor0
----
-152
-18
-53

skipif mysql # not compatible
query I rowsort label-9915
SELECT + col1 / + + 90 * - 76 + 44 + - col0 - col2 AS col1 FROM tab0 AS cor0
----
-152
-18
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT - col1 - - CAST( - col2 AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
-149
-161
-206

skipif mysql # not compatible
query I rowsort label-9916
SELECT - col1 - - CAST ( - col2 AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
-149
-161
-206

query I rowsort
SELECT DISTINCT + - col1 - col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT + col2 - + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( - - 61 ) FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9920
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT ALL CAST( - MAX( DISTINCT + ( col1 ) ) AS SIGNED ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL CAST ( - MAX ( DISTINCT + ( col1 ) ) AS INTEGER ) FROM tab1
----
-47

query I rowsort
SELECT col1 * + 99 * - 87 AS col2 FROM tab2
----
-439263
-577071
-663201

query II rowsort
SELECT - col0, - col2 AS col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT col0 * + col0 * + col1 AS col1 FROM tab2
----
107916
315392
376875

query II rowsort
SELECT ALL + 79 AS col2, 71 FROM tab1
----
79
71
79
71
79
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9926
SELECT DISTINCT col2 col1, + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9926
SELECT DISTINCT col2 col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 96, - 47 col2 FROM tab0 AS cor0
----
96
-47
96
-47
96
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9928
SELECT ALL - col1 AS col0, CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9928
SELECT ALL - col1 AS col0, CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT ALL ( + CAST( - - 34 AS SIGNED ) ) FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL ( + CAST ( - - 34 AS INTEGER ) ) FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL > - + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9933
SELECT col2 + - col0 col1, col2 DIV + col0 FROM tab1 AS cor0
----
-23
0
-26
0
45
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9933
SELECT col2 + - col0 col1, col2 / + col0 FROM tab1 AS cor0
----
-23
0
-26
0
45
1

query I rowsort
SELECT ALL - + 24 * - col2 FROM tab0 AS cor0
----
1128
2376
240

query I rowsort
SELECT ALL 21 + col2 + + + col0 + 90 * - - 78 FROM tab1 cor0
----
7185
7188
7200

onlyif mysql # DIV for integer division: 
query II rowsort label-9936
SELECT ALL - 11 DIV - col0 AS col1, col1 * + 4 - - col2 FROM tab2 AS cor0
----
0
227
0
326
0
348

skipif mysql # not compatible
query II rowsort label-9936
SELECT ALL - 11 / - col0 AS col1, col1 * + 4 - - col2 FROM tab2 AS cor0
----
0
227
0
326
0
348

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL - - COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - - COUNT ( + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 * col2 * + + 56 * - - col2 + 79 FROM tab1
----
-16569481
-23563825
-26320817

query I rowsort
SELECT - col0 FROM tab1 WHERE - 26 + + - col1 * - - col2 / - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT - MAX( ALL - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9940
SELECT - MAX ( ALL - col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT - 82 + + - col1 FROM tab0 WHERE + 68 <= - col0 + - CAST( + 73 AS SIGNED ) * - - col1 * + 3
----

skipif mysql # not compatible
query I rowsort label-9941
SELECT - 82 + + - col1 FROM tab0 WHERE + 68 <= - col0 + - CAST ( + 73 AS INTEGER ) * - - col1 * + 3
----

query I rowsort
SELECT DISTINCT 24 + col2 AS col1 FROM tab1
----
120
83
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9943
SELECT DISTINCT SUM( + ( col2 ) ) + + MAX( ALL - + 84 ) + + 28 col0, 78 * + 13 * - 77 FROM tab1
----
167
-78078

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9943
SELECT DISTINCT SUM ( + ( col2 ) ) + + MAX ( ALL - + 84 ) + + 28 col0, 78 * + 13 * - 77 FROM tab1
----
167
-78078

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 >= ( - 65 )
----
15
81
47
87
21
10

query II rowsort
SELECT ALL - 61, - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-61
-210
-61
-3807
-61
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT + - col2 - + col1 + + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-107
-114
-47

skipif mysql # not compatible
query I rowsort label-9946
SELECT + - col2 - + col1 + + col0 / + col1 AS col0 FROM tab1 AS cor0
----
-107
-114
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9947
SELECT - ( - - COUNT( + + col0 ) ) AS col1 FROM tab1 WHERE ( NOT + 27 + + col0 NOT IN ( + col0 * + CAST( + - 52 AS DECIMAL ) + + + 30 * - - 77 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT - ( - - COUNT ( + + col0 ) ) AS col1 FROM tab1 WHERE ( NOT + 27 + + col0 NOT IN ( + col0 * + CAST ( + - 52 AS REAL ) + + + 30 * - - 77 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT COUNT( * ) DIV + COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( * ) / + COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT DISTINCT - col2 DIV - + col1 AS col0 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - col2 / - + col1 AS col0 FROM tab0 AS cor0
----
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT - MAX( col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9950
SELECT DISTINCT - MAX ( col2 ) col2 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( + 35 )
----
0

query II rowsort
SELECT + + col2 AS col0, col1 / - 88 FROM tab2 WHERE NOT col2 - + 54 <> + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL MIN( ALL + + ( - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL MIN ( ALL + + ( - col2 ) ) FROM tab0
----
-99

query II rowsort
SELECT 74 AS col0, ( - - col0 ) + - - col0 * - col0 AS col2 FROM tab2
----
74
-2070
74
-4032
74
-5550

onlyif mysql # aggregate syntax: 
query II rowsort label-9955
SELECT - COUNT( * ) AS col1, 53 FROM tab2 WHERE NOT - col1 IS NULL
----
-3
53

skipif mysql # not compatible
query II rowsort label-9955
SELECT - COUNT ( * ) AS col1, 53 FROM tab2 WHERE NOT - col1 IS NULL
----
-3
53

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL + COUNT( * ) + 83 AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL + COUNT ( * ) + 83 AS col2 FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT - COUNT( * ) + - ( ( - SUM( ALL + 3 ) ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9958
SELECT - COUNT ( * ) + - ( ( - SUM ( ALL + 3 ) ) ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab2 WHERE 1 IN ( + 40 + - 35, col0 * - 14 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 16 * col1 col1 FROM tab2 cor0
----
-18768
-49280
-62176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT CAST( + ( 50 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-9961
SELECT CAST ( + ( 50 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT ALL - + col1 * - ( + 49 ) FROM tab2 AS cor0
----
2499
3283
3773

query II rowsort
SELECT - col1, col0 + + col0 * + + col2 AS col1 FROM tab0 AS cor0
----
-1
9700
-21
957
-81
720

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL - MAX( + - 16 ) AS col1 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - MAX ( + - 16 ) AS col1 FROM tab1 AS cor0
----
16

query I rowsort
SELECT + - col1 * - ( - col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - 20 * - + col1 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT DISTINCT - ( CAST( + - col1 AS SIGNED ) ) * + + 48 FROM tab2 AS cor0
----
2448
3216
3696

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT - ( CAST ( + - col1 AS INTEGER ) ) * + + 48 FROM tab2 AS cor0
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT ALL - + MIN( - col0 ), + 96 AS col0 FROM tab1 AS cor0
----
91
96

skipif mysql # not compatible
query II rowsort label-9968
SELECT ALL - + MIN ( - col0 ), + 96 AS col0 FROM tab1 AS cor0
----
91
96

query I rowsort
SELECT - + 83 * + 0 * - + 22 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * - col2 FROM tab2 AS cor0 WHERE + 2 < 62
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col0 * + col0 * + + 92 + col2 AS col1 FROM tab2 AS cor0
----
194695
376872
517558

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * - + 47 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * - + 47 FROM tab2
----
-144

query I rowsort
SELECT - 21 + - col2 * + + 54 + - 33 AS col2 FROM tab2
----
-1296
-2214
-3186

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9974
SELECT - CAST( - col0 AS SIGNED ) + - - 23 DIV ( - + 46 ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9974
SELECT - CAST ( - col0 AS INTEGER ) + - - 23 / ( - + 46 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 20 * - + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT + - ( - COUNT( * ) ) AS col2, 48 FROM tab2 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-9976
SELECT + - ( - COUNT ( * ) ) AS col2, 48 FROM tab2 AS cor0
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL MAX( + 91 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL MAX ( + 91 ) FROM tab0
----
91

query I rowsort
SELECT DISTINCT col2 * ( + + col0 ) FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9979
SELECT ALL + ( 15 ) DIV 43 * col1 - + col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + ( 15 ) / 43 * col1 - + col0 AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + 97 * - col2 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + ( - - col2 ) AND - 62
----

query II rowsort
SELECT DISTINCT + col0, + ( - 44 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL + MAX( + 81 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL + MAX ( + 81 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT CAST( + - col1 AS SIGNED ) FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9983
SELECT CAST ( + - col1 AS INTEGER ) FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT + SUM( ALL - - ( - - 40 ) ) AS col2 FROM tab1 cor0
----
120

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT + SUM ( ALL - - ( - - 40 ) ) AS col2 FROM tab1 cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE + col0 * + + CAST( NULL AS SIGNED ) * 9 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE + col0 * + + CAST ( NULL AS INTEGER ) * 9 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9986
SELECT DISTINCT + COUNT( * ) AS col1, + 93 AS col2 FROM tab2 AS cor0
----
3
93

skipif mysql # not compatible
query II rowsort label-9986
SELECT DISTINCT + COUNT ( * ) AS col1, + 93 AS col2 FROM tab2 AS cor0
----
3
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT DISTINCT - col0 * + - col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT - col0 * + - col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col0 * + + col0 * col0 FROM tab2
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT COUNT( * ) * + MAX( col1 ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT COUNT ( * ) * + MAX ( col1 ) AS col0 FROM tab0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT ALL 79 DIV col2 AS col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL 79 / col2 AS col2 FROM tab2
----
1
1
3

query I rowsort
SELECT 17 * + col2 AS col1 FROM tab0
----
1683
170
799

query I rowsort
SELECT ALL - ( + 19 ) FROM tab2
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9993
SELECT + col1 * - CAST( NULL AS SIGNED ), col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9993
SELECT + col1 * - CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9996
SELECT ALL * FROM tab2 WHERE ( - col0 ) BETWEEN + CAST( NULL AS SIGNED ) AND 47 + col2
----

skipif mysql # not compatible
query III rowsort label-9996
SELECT ALL * FROM tab2 WHERE ( - col0 ) BETWEEN + CAST ( NULL AS INTEGER ) AND 47 + col2
----

query I rowsort
SELECT ALL 52 + + 10 FROM tab0
----
62
62
62

query I rowsort
SELECT ALL - 9 FROM tab0 AS cor0 WHERE NOT + 13 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

