hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

query I rowsort
SELECT DISTINCT 63 + + - col0 AS col0 FROM tab2
----
-1
-12
17

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

skipif mysql # not compatible
query III rowsort label-1
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS REAL ) IS NOT NULL )
----

query I rowsort
SELECT - 27 * + - ( col0 ) / + + 64 FROM tab0 WHERE + col2 <= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT 24 - MAX( col0 ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-5
SELECT 24 - MAX ( col0 ) AS col2 FROM tab1
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col2, + 23 FROM tab1
----
6
23

skipif mysql # not compatible
query II rowsort label-6
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col2, + 23 FROM tab1
----
6
23

query I rowsort
SELECT + + col2 * 13 - - col2 + - 49 FROM tab1 AS cor0
----
1295
777
903

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 DIV - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
8842
8919
8929

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL - + 1 * - col0 + - - 96 * ( + + 92 ) - 81 / - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
8842
8919
8929

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

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

query I rowsort
SELECT - - 99 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT DISTINCT 63 * - - COUNT( * ) col0 FROM tab1
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-11
SELECT DISTINCT 63 * - - COUNT ( * ) col0 FROM tab1
----
189

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-13
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 45 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 41 AS col0 FROM tab1 WHERE NOT ( + 21 * + col1 * - 88 ) IS NULL
----
-41
-41
-41

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

skipif mysql # not compatible
query I rowsort label-15
SELECT + MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-16
SELECT ALL + - col0 AS col0, CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL + - col0 AS col0, CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT + col0 DIV ( - 27 ) FROM tab1
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-19
SELECT + col0 / ( - 27 ) FROM tab1
----
-1
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col1 * + 7 col0 FROM tab2
----
-18207
-31423
-41503

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-21
SELECT col2 AS col0, + CAST( NULL AS SIGNED ) + 95 * col1 col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-21
SELECT col2 AS col0, + CAST ( NULL AS INTEGER ) + 95 * col1 col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT - col2 * col2 DIV + col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-22
SELECT - col2 * col2 / + col2 FROM tab2
----
-23
-40
-58

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

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

query I rowsort
SELECT DISTINCT - 34 * 46 * - ( 32 ) AS col1 FROM tab2
----
50048

query I rowsort
SELECT - col1 * + 96 AS col1 FROM tab1
----
-1344
-4512
-480

query II rowsort
SELECT - ( + col1 ) AS col1, - 21 * 39 AS col0 FROM tab1
----
-14
-819
-47
-819
-5
-819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT + - col2 DIV 37 + col2 + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-28
SELECT + - col2 / 37 + col2 + col1 / + col1 AS col1 FROM tab1 AS cor0
----
59
68
95

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 68 - + 28 * - + col2 * col2 NOT BETWEEN NULL AND - - col2
----

query I rowsort
SELECT + 69 * - 70 FROM tab2 AS cor0
----
-4830
-4830
-4830

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-32
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + - CAST( + + 45 AS SIGNED ) * + col2 * col2 + - col2 IS NULL OR NOT - + 81 > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-32
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + - CAST ( + + 45 AS INTEGER ) * + col2 * col2 + - col2 IS NULL OR NOT - + 81 > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) <> ( 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT + + 14 - + - col1 DIV col2 DIV + - col1 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-35
SELECT + + 14 - + - col1 / col2 / + - col1 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT col1 - + col1 * col1 + + 48 + + col2 FROM tab0 cor0
----
-362
-6385
147

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT DISTINCT - - COUNT( * ) + - 66 + + 25 + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - - COUNT ( * ) + - 66 + + 25 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT - + ( - + col2 ) + - col1 FROM tab0 AS cor0
----
-11
-34
98

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

query I rowsort
SELECT DISTINCT col1 + + - 53 AS col2 FROM tab2
----
-2
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - COUNT( - col2 ) * + 60 + + MAX( ALL + 90 ) AS col2 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-41
SELECT - COUNT ( - col2 ) * + 60 + + MAX ( ALL + 90 ) AS col2 FROM tab0
----
-90

query I rowsort
SELECT + col1 + + + 89 + + + 75 FROM tab1
----
169
178
211

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT DISTINCT - COUNT( * ) - - 37 col2 FROM tab1
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-43
SELECT DISTINCT - COUNT ( * ) - - 37 col2 FROM tab1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL + 73 + - - col1 DIV - col2 FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 73 + - - col1 / - col2 FROM tab1
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT DISTINCT ( + col2 ) * + 85 + col2 - - col2 DIV ( col0 ) AS col0 FROM tab0
----
4045
8515
860

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT ( + col2 ) * + 85 + col2 - - col2 / ( col0 ) AS col0 FROM tab0
----
4045
8515
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + - col2 col0 FROM tab0
----
-58
-6
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL COUNT( * ) + - 78 FROM tab2 cor0 WHERE NOT col0 NOT IN ( - - 26, - col2 )
----
-78

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL COUNT ( * ) + - 78 FROM tab2 cor0 WHERE NOT col0 NOT IN ( - - 26, - col2 )
----
-78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 55 + + 96
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT - - COUNT( * ) * - COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-51
SELECT - - COUNT ( * ) * - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT DISTINCT + - SUM( ALL col2 ) AS col2, 99 + COUNT( ALL - 28 ) AS col0 FROM tab2 AS cor0
----
-121
102

skipif mysql # not compatible
query II rowsort label-52
SELECT DISTINCT + - SUM ( ALL col2 ) AS col2, 99 + COUNT ( ALL - 28 ) AS col0 FROM tab2 AS cor0
----
-121
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + - col2, + col1 + + 46 + + col0 + - - col1 col2 FROM tab2 AS cor0
----
1600
264
3364
255
529
194

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT col0 * 97 DIV 10 * + + col1 * - + 93 * + col1 AS col1 FROM tab2 cor0
----
-107884278
-303505779
-341866140

skipif mysql # not compatible
query I rowsort label-54
SELECT col0 * 97 / 10 * + + col1 * - + 93 * + col1 AS col1 FROM tab2 cor0
----
-107884278
-303505779
-341866140

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT COUNT( * ) * + - SUM( + col1 ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT COUNT ( * ) * + - SUM ( + col1 ) FROM tab1 AS cor0
----
-198

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

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL - ( ( - - COUNT( * ) ) ) col1 FROM tab2
----
-3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT MIN( DISTINCT 81 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-61
SELECT MIN ( DISTINCT 81 ) FROM tab0
----
81

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

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

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

query I rowsort
SELECT DISTINCT 95 + + 69 FROM tab2 AS cor0
----
164

query I rowsort
SELECT ALL + 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + MIN( - + col1 ) * + 21 + + COUNT( * ) FROM tab2
----
-1614

skipif mysql # not compatible
query I rowsort label-66
SELECT + MIN ( - + col1 ) * + 21 + + COUNT ( * ) FROM tab2
----
-1614

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT 40 DIV + col0 + - + 78 FROM tab2 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-67
SELECT 40 / + col0 + - + 78 FROM tab2 AS cor0
----
-78
-78
-78

query II rowsort
SELECT ALL col2, col1 + col0 FROM tab2 AS cor0
----
23
97
40
141
58
142

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT - 51 * + COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT - 51 * + COUNT ( * ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT + + col1 * + + 43 AS col2 FROM tab2 cor0
----
2193
2881
3311

query II rowsort
SELECT - 49 * - col2 AS col2, + 55 FROM tab0 AS cor0
----
2303
55
4851
55
490
55

query II rowsort
SELECT ALL col1 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT DISTINCT - 27 * - col2 * + col1 FROM tab2 cor0
----
104922
31671
83160

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT + COUNT( + - col2 ) AS col2 FROM tab1 WHERE NOT NULL >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT + COUNT ( + - col2 ) AS col2 FROM tab1 WHERE NOT NULL >= + col1
----
0

query I rowsort
SELECT col2 - 84 AS col2 FROM tab1
----
-16
-25
12

query I rowsort
SELECT ALL - 40 + + + col0 + - + 1 - col2 AS col2 FROM tab0
----
-43
-73
36

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - - col2 + + - col1 * + col1 * 83 )
----

query I rowsort
SELECT col2 - - 27 AS col0 FROM tab2
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - ( MIN( ALL col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-80
SELECT - ( MIN ( ALL col0 ) ) FROM tab1
----
-51

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-81
SELECT - COUNT ( + - 86 ) col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 * - col1 + - + col1 * 99 AS col0 FROM tab0 AS cor0
----
-196
-3906
-9234

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 26
----

query II rowsort
SELECT DISTINCT - + col2 * - col0, - col0 - + 2 AS col0 FROM tab0 AS cor0
----
705
-17
870
-89
9603
-99

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

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

query II rowsort
SELECT ALL col2, - 59 FROM tab2
----
23
-59
40
-59
58
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-88
SELECT ALL col1 DIV + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL col1 / + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + 23 * - col0 + - 80 + col2 FROM tab0 AS cor0
----
-2071
-2212
-378

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 58 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-92
SELECT - CAST( + ( + + 67 ) AS SIGNED ), + col1 * + 78 AS col0 FROM tab0 AS cor0
----
-67
1638
-67
6318
-67
78

skipif mysql # not compatible
query II rowsort label-92
SELECT - CAST ( + ( + + 67 ) AS INTEGER ), + col1 * + 78 AS col0 FROM tab0 AS cor0
----
-67
1638
-67
6318
-67
78

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL IN ( - + col0, - col2, + col2, - - 53 + - 1, col0 )
----

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

query I rowsort
SELECT col1 * - + 57 FROM tab0
----
-1197
-4617
-57

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

query I rowsort
SELECT - 89 + + 43 * + col2 * + col1 FROM tab0 AS cor0
----
163612
4168
8941

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

query I rowsort
SELECT 32 * + col2 FROM tab2
----
1280
1856
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT ALL - 18 - - CAST( - ( + col1 ) AS SIGNED ) + + 62 AS col2 FROM tab0 AS cor0
----
-37
23
43

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL - 18 - - CAST ( - ( + col1 ) AS INTEGER ) + + 62 AS col2 FROM tab0 AS cor0
----
-37
23
43

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-101
SELECT * FROM tab0 AS cor0 WHERE - col2 >= CAST( - 76 AS DECIMAL )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-101
SELECT * FROM tab0 AS cor0 WHERE - col2 >= CAST ( - 76 AS REAL )
----
15
81
47
87
21
10

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

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

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

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

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

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

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

query I rowsort
SELECT - - col0 + 57 FROM tab0 AS cor0
----
144
154
72

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 / 79 IS NULL
----

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

query I rowsort
SELECT ALL 94 * + 95 * - + col0 AS col2 FROM tab2
----
-410780
-571520
-669750

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT 93, MIN( ALL - - col2 ) + + + 83 col1 FROM tab0
----
93
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-112
SELECT 93, MIN ( ALL - - col2 ) + + + 83 col1 FROM tab0
----
93
93

query I rowsort
SELECT DISTINCT col2 * - 6 + 48 AS col1 FROM tab2 AS cor0
----
-192
-300
-90

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

skipif mysql # not compatible
query I rowsort label-114
SELECT COUNT ( DISTINCT - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

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

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

query I rowsort
SELECT DISTINCT + col2 * + + 45 FROM tab1 AS cor0
----
2655
3060
4320

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

onlyif mysql # DIV for integer division: 
query II rowsort label-119
SELECT DISTINCT - + 6 DIV col2 * 93 AS col0, - 80 FROM tab0 AS cor0
----
0
-80

skipif mysql # not compatible
query II rowsort label-119
SELECT DISTINCT - + 6 / col2 * 93 AS col0, - 80 FROM tab0 AS cor0
----
0
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col1 col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col0 + - - 23 AS col2 FROM tab2
----
69
87
98

query I rowsort
SELECT DISTINCT 65 * - - 45 * - ( - col0 ) AS col2 FROM tab0
----
254475
283725
43875

query III rowsort
SELECT * FROM tab0 WHERE 42 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * + 46 col0 FROM tab2
----
782
782
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT DISTINCT CAST( + + 14 AS SIGNED ) * - ( + + col1 ) AS col2 FROM tab2
----
-1078
-714
-938

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT CAST ( + + 14 AS INTEGER ) * - ( + + col1 ) AS col2 FROM tab2
----
-1078
-714
-938

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 + + col1 + 79 / + 24 ) < NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT ALL + 42 DIV + + col1 + 58 * col0 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + 42 / + + col1 + 58 * col0 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT DISTINCT col2 * + col1 * col1 - col1 AS col2 FROM tab0
----
308286
4389
98

query I rowsort
SELECT + - 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - 59
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT ( + 95 * + col0 ) < ( NULL ) ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - MIN( DISTINCT - 68 ) AS col2 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-136
SELECT - MIN ( DISTINCT - 68 ) AS col2 FROM tab2 cor0
----
68

query I rowsort
SELECT 36 * col1 FROM tab2 AS cor0
----
1836
2412
2772

query II rowsort
SELECT DISTINCT + ( - - col2 ) AS col0, 62 + - 20 FROM tab0 AS cor0
----
10
42
47
42
99
42

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 97 < - col1
----
46
64
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT DISTINCT ( COUNT( - 30 ) ) AS col1 FROM tab0 WHERE NOT + 99 BETWEEN NULL AND + col0
----
3

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT ( COUNT ( - 30 ) ) AS col1 FROM tab0 WHERE NOT + 99 BETWEEN NULL AND + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT - MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-143
SELECT - MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
-81

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

skipif mysql # not compatible
query I rowsort label-144
SELECT + 23 / + - col2 AS col1 FROM tab2
----
-1
0
0

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

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

query I rowsort
SELECT ALL + 62 * 49 AS col0 FROM tab1
----
3038
3038
3038

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + 10 * + col0 * + 83 col1 FROM tab2 AS cor0
----
51
38180
67
62250
77
53120

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-149
SELECT - col1, + col1 DIV col0 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-149
SELECT - col1, + col1 / col0 AS col0 FROM tab1
----
-14
0
-47
0
-5
0

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

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

query I rowsort
SELECT - 62 * - col0 * - col2 * - - col2 FROM tab2
----
-1508708
-15642600
-6348800

query I rowsort
SELECT ALL + + 12 * - 60 AS col2 FROM tab1 cor0
----
-720
-720
-720

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-154
SELECT ALL + ( - COUNT( * ) ) DIV - COUNT( * ) + + 13 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + ( - COUNT ( * ) ) / - COUNT ( * ) + + 13 FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-155
SELECT DISTINCT - + 86 + - - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - + 86 + - - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-83

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

query I rowsort
SELECT ALL - 61 + + col2 - - 94 FROM tab2
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT + 83 + + MAX( DISTINCT col0 ) AS col2 FROM tab2
----
158

skipif mysql # not compatible
query I rowsort label-158
SELECT + 83 + + MAX ( DISTINCT col0 ) AS col2 FROM tab2
----
158

query I rowsort
SELECT DISTINCT col1 + - col0 + 34 AS col2 FROM tab2
----
26
39
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
14
47
5

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

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

query II rowsort
SELECT ALL col2 + + 79, - col0 AS col2 FROM tab2
----
102
-46
119
-64
137
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-163
SELECT ALL - COUNT( * ) AS col0, MIN( - 8 ) + - COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9
-17

skipif mysql # not compatible
query II rowsort label-163
SELECT ALL - COUNT ( * ) AS col0, MIN ( - 8 ) + - COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
-9
-17

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-164
SELECT DISTINCT MAX ( + col2 ) col0 FROM tab2 AS cor0
----
58

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

skipif mysql # not compatible
query I rowsort label-165
SELECT COUNT ( * ) / - 21 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col2 * 9 * - col2 FROM tab1 AS cor0
----
31329
41616
82944

query II rowsort
SELECT DISTINCT col0 AS col2, 5 * + - 69 FROM tab1
----
51
-345
85
-345
91
-345

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

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

query II rowsort
SELECT DISTINCT - 19, - col0 + + col2 + + 95 AS col1 FROM tab1 cor0
----
-19
140
-19
69
-19
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-171
SELECT + ( - CAST( col1 AS SIGNED ) ) * + col1 AS col2, - 2 FROM tab2 cor0
----
-2601
-2
-4489
-2
-5929
-2

skipif mysql # not compatible
query II rowsort label-171
SELECT + ( - CAST ( col1 AS INTEGER ) ) * + col1 AS col2, - 2 FROM tab2 cor0
----
-2601
-2
-4489
-2
-5929
-2

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

onlyif mysql # DIV for integer division: 
query II rowsort label-173
SELECT ALL + col0, - 48 + + col0 DIV + - col1 AS col2 FROM tab0 AS cor0
----
15
-48
87
-52
97
-145

skipif mysql # not compatible
query II rowsort label-173
SELECT ALL + col0, - 48 + + col0 / + - col1 AS col2 FROM tab0 AS cor0
----
15
-48
87
-52
97
-145

query I rowsort
SELECT 78 * - col2 * + col1 FROM tab1
----
-104832
-23010
-249288

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

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

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

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

query I rowsort
SELECT ALL 26 + - col0 * - 94 AS col1 FROM tab1
----
4820
8016
8580

query I rowsort
SELECT ALL - 67 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT 13 + + 77 FROM tab1
----
90
90
90

query I rowsort
SELECT + + 6 * - + col1 + + + col0 AS col2 FROM tab1 AS cor0
----
-191
-33
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 48 col0 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # DIV for integer division: 
query I rowsort label-183
SELECT - 41 DIV - - col0 + 1 col0 FROM tab0 cor0
----
-1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-183
SELECT - 41 / - - col0 + 1 col0 FROM tab0 cor0
----
-1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-184
SELECT - 71 + + 59 DIV - COUNT( * ), - COUNT( * ) col1 FROM tab1 AS cor0
----
-90
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-184
SELECT - 71 + + 59 / - COUNT ( * ), - COUNT ( * ) col1 FROM tab1 AS cor0
----
-90
-3

query I rowsort
SELECT - col1 * - + col2 - + - col1 + - + 28 AS col1 FROM tab1 AS cor0
----
1330
272
3215

query I rowsort
SELECT DISTINCT 56 + + ( 47 ) FROM tab1 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT ALL col0 DIV - col1 + - + col2 FROM tab0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL col0 / - col1 + - + col2 FROM tab0
----
-14
-196
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-188
SELECT - col2 * col1 DIV 65 * col0 AS col0 FROM tab0
----
-261
-870
-97

skipif mysql # not compatible
query I rowsort label-188
SELECT - col2 * col1 / 65 * col0 AS col0 FROM tab0
----
-261
-870
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( 91 ) AND 20
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-190
SELECT ALL - 0 + - col0 - - col0 - + - col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL - 0 + - col0 - - col0 - + - col1 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 35, col1 FROM tab2 AS cor0
----
-35
51
-35
67
-35
77

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - 87 - + + COUNT( * ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-192
SELECT - 87 - + + COUNT ( * ) FROM tab2 AS cor0
----
-90

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

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

query I rowsort
SELECT ALL + 83 - - + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
170
180
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT ALL - 33 DIV + 61 + + ( + 36 ) * col2 AS col2 FROM tab1 AS cor0
----
2124
2448
3456

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - 33 / + 61 + + ( + 36 ) * col2 AS col2 FROM tab1 AS cor0
----
2124
2448
3456

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-198
SELECT ALL - SUM( - col2 ) DIV COUNT( - col0 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - SUM ( - col2 ) / COUNT ( - col0 ) FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * + col1 col1 FROM tab2
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT ( MAX( col2 ) ) * COUNT( * ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT ( MAX ( col2 ) ) * COUNT ( * ) AS col1 FROM tab1
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-201
SELECT COUNT( * ) / + SUM( - 30 ) + ( - COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab0 WHERE + 64 + CAST( NULL AS SIGNED ) * - col0 BETWEEN ( col1 ) AND + ( - col2 ) + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-201
SELECT COUNT ( * ) / + SUM ( - 30 ) + ( - COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab0 WHERE + 64 + CAST ( NULL AS INTEGER ) * - col0 BETWEEN ( col1 ) AND + ( - col2 ) + col0
----
NULL

query I rowsort
SELECT col0 * 47 + + col1 FROM tab2
----
2213
3085
3592

query I rowsort
SELECT 59 + - ( + col2 ) FROM tab1
----
-37
-9
0

query I rowsort
SELECT ALL + col1 * - 67 FROM tab2
----
-3417
-4489
-5159

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-205
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-205
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - 92 * - 68 FROM tab2
----
6256

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

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

query I rowsort
SELECT DISTINCT - ( + 73 ) AS col0 FROM tab0
----
-73

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

query I rowsort
SELECT 70 + - col1 AS col0 FROM tab0
----
-11
49
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT - CAST( 30 AS SIGNED ) FROM tab1
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-211
SELECT - CAST ( 30 AS INTEGER ) FROM tab1
----
-30
-30
-30

query I rowsort
SELECT DISTINCT 16 * + ( 83 ) FROM tab1
----
1328

query III rowsort
SELECT * FROM tab1 WHERE NOT - 28 / ( 92 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> col2 - 81 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT 32 DIV + col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-215
SELECT 32 / + col1 FROM tab1
----
0
2
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT 37 + + CAST( + COUNT( DISTINCT + col2 ) AS SIGNED ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-217
SELECT 37 + + CAST ( + COUNT ( DISTINCT + col2 ) AS INTEGER ) FROM tab2
----
40

query I rowsort
SELECT ALL + 12 + - 56 AS col2 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT ALL col1 + - col0 * + col0 FROM tab1 WHERE NULL > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT COUNT( * ) * 63 col1 FROM tab2
----
189

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + 43 ) IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * 66 + col2 <> NULL
----

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

query I rowsort
SELECT DISTINCT 4 * ( 55 ) FROM tab0
----
220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( + col0 ) col1 FROM tab2
----
-1058
-2560
-4350

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

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 AS cor0 WHERE NOT 40 * 39 IS NOT NULL
----

query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab0 AS cor0 WHERE - col2 NOT IN ( + col2 * col2 + 66 )
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT DISTINCT 74 DIV + col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT 74 / + col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-232
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + - 8 * - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 + - 8 * - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 75 * - 74 FROM tab0 AS cor0
----
5550
5550
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + 56 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + 56 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL + MIN( ALL col2 ) * 66 FROM tab2
----
1518

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + MIN ( ALL col2 ) * 66 FROM tab2
----
1518

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

skipif mysql # not compatible
query I rowsort label-236
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) = NULL
----

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

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

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

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

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

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

query I rowsort
SELECT - col1 * + ( + ( + col1 ) ) AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + col1 * - col1 + 73 AS col1 FROM tab0 WHERE NOT + col1 IN ( col2 )
----
-368
-6488
72

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

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

query I rowsort
SELECT DISTINCT - col1 * + 89 AS col2 FROM tab0
----
-1869
-7209
-89

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 87 <> col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-249
SELECT col1 FROM tab1 WHERE NOT NULL >= CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-249
SELECT col1 FROM tab1 WHERE NOT NULL >= CAST ( - col0 AS REAL )
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <> ( col0 * - col0 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-253
SELECT ALL 57 + - 2 DIV + MAX( 19 * col0 ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL 57 + - 2 / + MAX ( 19 * col0 ) AS col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - 51 + col0 AS col1 FROM tab0 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
-36
36
46

query I rowsort
SELECT DISTINCT + col1 * - col1 + - + col1 * - 12 FROM tab1
----
-1645
-28
35

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT 2 + + COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-256
SELECT 2 + + COUNT ( * ) FROM tab2
----
5

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

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

query I rowsort
SELECT 91 + + col0 * col2 FROM tab1 AS cor0
----
4987
5106
6279

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - + COUNT( * ) + - COUNT( * ) + - + 16 AS col2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-260
SELECT - + COUNT ( * ) + - COUNT ( * ) + - + 16 AS col2 FROM tab1 AS cor0
----
-22

query I rowsort
SELECT - - 62 + 91 FROM tab2 AS cor0
----
153
153
153

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT DISTINCT - - MIN( - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT - - MIN ( - col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) / 40 + COUNT( * ) * - 83 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) / 40 + COUNT ( * ) * - 83 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - col0 + col2 + 18 AS col2 FROM tab2 AS cor0
----
2387
4986
5101

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

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) * 76 + + col0 FROM tab1 AS cor0
----
-1013
-295
-3481

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

query I rowsort
SELECT DISTINCT - col0 * + - col1 + + col1 + + col1 FROM tab1 AS cor0
----
435
4371
742

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

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

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

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

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

query I rowsort
SELECT + col0 - + 12 - 12 FROM tab1
----
27
61
67

query I rowsort
SELECT ALL 66 - + 84 * - col1 AS col2 FROM tab0
----
150
1830
6870

query I rowsort
SELECT col0 - + ( - ( col0 ) ) FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT - - ( - MIN( + - 42 ) ) - + 55 AS col2 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-277
SELECT - - ( - MIN ( + - 42 ) ) - + 55 AS col2 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + col2 + 95 + - - col2 + col1 * - col1 ) >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-279
SELECT DISTINCT 52 * + CAST( + 16 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
11648
39104
4160

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT 52 * + CAST ( + 16 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
11648
39104
4160

query I rowsort
SELECT ALL - + 19 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 95 ) AND 84
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT + MAX( col2 ) FROM tab2 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + MAX ( col2 ) FROM tab2 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 84 * + 4 AS col0 FROM tab1
----
336

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > ( + col2 + + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT - - COUNT( * ) * - - MAX( DISTINCT ( - col2 ) ) * + COUNT( * ) FROM tab2 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT - - COUNT ( * ) * - - MAX ( DISTINCT ( - col2 ) ) * + COUNT ( * ) FROM tab2 cor0
----
-207

query I rowsort
SELECT - 79 * col0 AS col1 FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT 64 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT - 69 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-289
SELECT 64 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT - 69 + col1 IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2 cor0
----
53

query I rowsort
SELECT + ( - - col2 ) * ( - 86 ) + + 91 AS col2 FROM tab1 cor0
----
-4983
-5757
-8165

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT ALL + col1 DIV - 96 * col1 + col2 + - col0 col0 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-293
SELECT ALL + col1 / - 96 * col1 + col2 + - col0 col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL col2 * + + 41 AS col0 FROM tab0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + 91 * SUM( - + 57 ) col1 FROM tab2
----
-15561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-295
SELECT + 91 * SUM ( - + 57 ) col1 FROM tab2
----
-15561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 66 col2 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-297
SELECT ALL col2 DIV - CAST( + 94 AS SIGNED ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL col2 / - CAST ( + 94 AS INTEGER ) FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT DISTINCT SUM( + - 64 ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT SUM ( + - 64 ) FROM tab1 AS cor0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 + - col2 + - col2 + 66 * - col2 + col2 col2 FROM tab0 AS cor0
----
-3157
-6641
-678

query I rowsort
SELECT DISTINCT + col1 * + - col1 + - col1 * - + ( col1 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-301
SELECT + 9 + + - CAST( NULL AS DECIMAL ) / - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT + 9 + + - CAST ( NULL AS REAL ) / - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-302
SELECT ALL + 26 + + col1 * - + col2 + + col0, + col2 * + CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab0 AS cor0
----
-3766
NULL
-97
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-302
SELECT ALL + 26 + + col1 * - + col2 + + col0, + col2 * + CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab0 AS cor0
----
-3766
NULL
-97
NULL
24
NULL

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE - col2 * - - col0 > col1 * + col1 - + 42
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT ALL + 1 + + COUNT( * ) DIV + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL + 1 + + COUNT ( * ) / + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + COUNT( + 73 ) - + 75 AS col0 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-306
SELECT + COUNT ( + 73 ) - + 75 AS col0 FROM tab0 AS cor0
----
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( col2 ) BETWEEN 15 AND + col0 )
----

query I rowsort
SELECT col0 * + + 27 - - 80 AS col0 FROM tab0 AS cor0
----
2429
2699
485

query I rowsort
SELECT ALL + 85 - 95 * + - col2 - - col2 AS col0 FROM tab1 AS cor0
----
5749
6613
9301

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab2 AS cor0 WHERE NOT NULL = 58 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-312
SELECT + col2 * 79 + - 19 + + col0 + - 52 + - 34 + - + CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT + col2 * 79 + - 19 + + col0 + - 52 + - 34 + - + CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - col0 + + col0 * - col0 * - col1 + + 28 + + 69 * - 77 AS col0 FROM tab2 AS cor0
----
103689
312667
375940

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + - 51 * - COUNT( * ) AS col2 FROM tab2 cor0 WHERE + 42 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-314
SELECT + - 51 * - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + 42 > NULL
----
0

query I rowsort
SELECT 32 + ( - col1 ) FROM tab2 AS cor0
----
-19
-35
-45

query I rowsort
SELECT - + 62 + - col1 FROM tab1 cor0
----
-109
-67
-76

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-318
SELECT ( - 69 ) + + 78 * - CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-318
SELECT ( - 69 ) + + 78 * - CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + ( + 7 ) * - + 92 * + col2 FROM tab0
----
-30221
-63657
-6430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + - ( + 57 ) * + 99 col2, col1 FROM tab1
----
-265221
47
-28215
5
-79002
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + - SUM( ALL - - 32 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-322
SELECT + - SUM ( ALL - - 32 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + col1 * + - col2 + - - col0 FROM tab2 cor0
----
-1127
-3016
-3811

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-324
SELECT - MIN ( 62 ) col2 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT 88 * - col2 FROM tab2 AS cor0
----
-2024
-3520
-5104

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

skipif mysql # not compatible
query III rowsort label-326
SELECT * FROM tab1 WHERE NOT ( + 39 + + - 25 * - CAST ( NULL AS INTEGER ) * - 17 ) <> - col2 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 65 < NULL
----

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

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

query I rowsort
SELECT 86 * 33 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 04a6b349bddaf97d623420efa7c0ba8f

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - SUM( 84 ) AS col0 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-332
SELECT - SUM ( 84 ) AS col0 FROM tab2 AS cor0
----
-252

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-335
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-335
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col1 + - col1 > col2
----
-15
-87
-97

query I rowsort
SELECT ALL 91 FROM tab0 WHERE + col0 IN ( - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-338
SELECT DISTINCT + col0 DIV 63 AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT + col0 / 63 AS col0 FROM tab1
----
0
1

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-340
SELECT + col1 DIV - CAST( + 18 AS SIGNED ) FROM tab2
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-340
SELECT + col1 / - CAST ( + 18 AS INTEGER ) FROM tab2
----
-2
-3
-4

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

skipif mysql # not compatible
query I rowsort label-341
SELECT col2 / - - 66 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT - ( - + SUM( ALL + 68 ) ) FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT - ( - + SUM ( ALL + 68 ) ) FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 87 + + - col0 + - ( - 44 ) + 88 AS col2 FROM tab0 AS cor0
----
-42
-52
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + + 61 col1 FROM tab2
----
-15
14
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-345
SELECT ALL * FROM tab2 WHERE + CAST( - 37 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-345
SELECT ALL * FROM tab2 WHERE + CAST ( - 37 AS INTEGER ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * 10 <= 60 + 13 * + col2 * + col2
----

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

query I rowsort
SELECT DISTINCT 62 - + ( 94 ) + + - col0 AS col1 FROM tab0 AS cor0
----
-119
-129
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-349
SELECT + CAST( NULL AS SIGNED ), - CAST( NULL AS DECIMAL ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-349
SELECT + CAST ( NULL AS INTEGER ), - CAST ( NULL AS REAL ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT DISTINCT - + SUM( DISTINCT - col0 ) + 51 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( - col0 + - - 6 / - col1 + - col0 + + col0 + - 81 / + col1 ) = ( col0 ) )
----

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

query II rowsort
SELECT 99 * + col1, - col0 * 99 AS col0 FROM tab1
----
1386
-5049
4653
-9009
495
-8415

query I rowsort
SELECT - ( - 81 ) AS col2 FROM tab1
----
81
81
81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT + - SUM( ALL 56 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-359
SELECT + - SUM ( ALL 56 ) FROM tab1 AS cor0
----
-168

query I rowsort
SELECT - - 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - + col1 + + col2 FROM tab2 cor0 WHERE NOT + col0 = NULL
----

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

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

query I rowsort
SELECT DISTINCT - 59 AS col2 FROM tab2 cor0
----
-59

query I rowsort
SELECT DISTINCT - 20 + - col2 AS col0 FROM tab2 cor0
----
-43
-60
-78

query II rowsort
SELECT - col0 AS col2, ( col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
-51
147
-85
144
-91
159

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - - col1 * + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-25075
-290836
-68544

query I rowsort
SELECT + col0 + + 49 FROM tab1
----
100
134
140

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT + SUM( DISTINCT - 10 ) * - 96 + + ( - + 47 ) AS col0 FROM tab0 AS cor0
----
913

skipif mysql # not compatible
query I rowsort label-372
SELECT + SUM ( DISTINCT - 10 ) * - 96 + + ( - + 47 ) AS col0 FROM tab0 AS cor0
----
913

query I rowsort
SELECT DISTINCT + 80 + col2 FROM tab1 cor0
----
139
148
176

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT + COUNT( - 96 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 - + col0 AND + 50
----
0

skipif mysql # not compatible
query I rowsort label-374
SELECT + COUNT ( - 96 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 - + col0 AND + 50
----
0

query I rowsort
SELECT ALL + ( + - 26 ) + - col2 FROM tab0 AS cor0
----
-125
-36
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT ( - COUNT( * ) ) - - 49 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT ( - COUNT ( * ) ) - - 49 FROM tab2
----
46

query I rowsort
SELECT ALL 34 - + 5 AS col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT - col0 + - 45 * + 43 AS col1 FROM tab0 cor0
----
-1950
-2022
-2032

query I rowsort
SELECT DISTINCT - 77 * - + col0 AS col1 FROM tab1 AS cor0
----
3927
6545
7007

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT + 24 DIV + + 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-382
SELECT + 24 / + + 76 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 7 * - 89 FROM tab1 AS cor0
----
623

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT - SUM( - col1 ) * - 5 AS col0 FROM tab0
----
-515

skipif mysql # not compatible
query I rowsort label-385
SELECT - SUM ( - col1 ) * - 5 AS col0 FROM tab0
----
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT DISTINCT MAX( + col0 ) * - COUNT( * ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT MAX ( + col0 ) * - COUNT ( * ) AS col1 FROM tab2
----
-225

query I rowsort
SELECT ALL col1 * + - 18 + + col0 - + ( + col2 ) + col1 FROM tab1 WHERE - col1 / col0 IS NOT NULL
----
-283
-59
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + - col1 col2, - col1 * + col2 AS col2 FROM tab1 WHERE NOT NULL IN ( 75 + + col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-390
SELECT + COUNT( * ) AS col2, 84 FROM tab0
----
3
84

skipif mysql # not compatible
query II rowsort label-390
SELECT + COUNT ( * ) AS col2, 84 FROM tab0
----
3
84

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

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

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

query I rowsort
SELECT DISTINCT + - 69 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-69

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 21 * 75 AND 63
----

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

query I rowsort
SELECT + col2 + - + col0 + + 46 AS col0 FROM tab1 AS cor0
----
20
23
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 86 ) <= - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT MAX( + + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT MAX ( + + col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT ALL - col0 + col1 * col2 + - - col2 AS col2 FROM tab2
----
1150
3056
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT DISTINCT - MAX( ALL - 89 ) col1 FROM tab1
----
89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - SUM( 60 ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-403
SELECT - SUM ( 60 ) FROM tab0
----
-180

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab1 WHERE - 30 = NULL
----

query I rowsort
SELECT + ( + 54 ) FROM tab1, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT DISTINCT col2 * 51 + + col1 AS col0 FROM tab0
----
2478
5050
531

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-409
SELECT COUNT( * ) AS col1, MAX( - 75 ) FROM tab1
----
3
-75

skipif mysql # not compatible
query II rowsort label-409
SELECT COUNT ( * ) AS col1, MAX ( - 75 ) FROM tab1
----
3
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT DISTINCT + COUNT( * ) AS col1, + MIN( ALL + - 84 ) FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-410
SELECT DISTINCT + COUNT ( * ) AS col1, + MIN ( ALL + - 84 ) FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT DISTINCT + + 40 * + 60 * - col1 FROM tab0 AS cor0
----
-194400
-2400
-50400

query I rowsort
SELECT - 61 - + 42 FROM tab1 AS cor0
----
-103
-103
-103

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

query I rowsort
SELECT col0 + 53 AS col1 FROM tab1 AS cor0
----
104
138
144

query I rowsort
SELECT ALL 36 * + - 72 + + col2 FROM tab0
----
-2493
-2545
-2582

query I rowsort
SELECT ALL + 45 * 30 + + 2 AS col2 FROM tab0
----
1352
1352
1352

query I rowsort
SELECT DISTINCT col1 + - 76 AS col2 FROM tab2
----
-25
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT + - COUNT( * ) FROM tab1 WHERE + 45 <> - + col1
----
-3

skipif mysql # not compatible
query I rowsort label-418
SELECT + - COUNT ( * ) FROM tab1 WHERE + 45 <> - + col1
----
-3

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-420
SELECT COUNT( - 35 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

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

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

query I rowsort
SELECT + + 16 AS col1 FROM tab2 AS cor0 WHERE NOT - 21 NOT BETWEEN NULL AND 55 * + col2 - 74 + + 12
----

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

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

query I rowsort
SELECT + 99 * - - ( + - 53 ) FROM tab1
----
-5247
-5247
-5247

query II rowsort
SELECT ALL 68 AS col1, 60 FROM tab0
----
68
60
68
60
68
60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) + col2 col0 FROM tab0 WHERE NOT - 85 IS NULL
----
-77
2
32

query I rowsort
SELECT DISTINCT 80 * + 90 AS col2 FROM tab1
----
7200

query I rowsort
SELECT ALL + 89 * + - col0 AS col2 FROM tab0 AS cor0
----
-1335
-7743
-8633

onlyif mysql # DIV for integer division: 
query I rowsort label-430
SELECT DISTINCT 38 DIV - 20 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT 38 / - 20 FROM tab1 AS cor0
----
-1

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

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

query I rowsort
SELECT - col1 * col1 * - 84 AS col1 FROM tab2
----
218484
377076
498036

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

skipif mysql # not compatible
query I rowsort label-433
SELECT 4 / - - 64 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

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

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

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

query I rowsort
SELECT ALL + 82 * 26 + - col0 AS col0 FROM tab0
----
2035
2045
2117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-437
SELECT DISTINCT + col0 + + col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab0
----
108
NULL
96
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-437
SELECT DISTINCT + col0 + + col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
108
NULL
96
NULL
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL - COUNT( - col2 ) * - + MIN( DISTINCT - 69 ) + - 27 + 85 AS col0 FROM tab1
----
-149

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - COUNT ( - col2 ) * - + MIN ( DISTINCT - 69 ) + - 27 + 85 AS col0 FROM tab1
----
-149

query II rowsort
SELECT - + 40, + 6 FROM tab2 AS cor0 WHERE NULL >= - col2
----

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

query I rowsort
SELECT ALL - 81 * col0 AS col2 FROM tab2 AS cor0
----
-3726
-5184
-6075

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

query I rowsort
SELECT + col0 * - + col2 * - 13 * 9 AS col1 FROM tab1 cor0
----
572832
586755
723996

query II rowsort
SELECT - - 83 AS col0, 53 FROM tab2 AS cor0
----
83
53
83
53
83
53

query I rowsort
SELECT col1 * - 14 * - col1 FROM tab2 AS cor0
----
36414
62846
83006

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-446
SELECT * FROM tab2 cor0 WHERE NOT + 11 + + col2 / - col2 * + + ( + col2 ) * + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-446
SELECT * FROM tab2 cor0 WHERE NOT + 11 + + col2 / - col2 * + + ( + col2 ) * + - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT col1, col2 + 93 + - col0 AS col1 FROM tab0 AS cor0
----
1
95
21
16
81
125

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

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT + ( - col2 ) DIV 32 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-449
SELECT + ( - col2 ) / 32 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-450
SELECT - COUNT( + 82 ) FROM tab1 WHERE NOT ( NOT NULL >= + CAST( + col0 AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-450
SELECT - COUNT ( + 82 ) FROM tab1 WHERE NOT ( NOT NULL >= + CAST ( + col0 AS REAL ) )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT + 19 DIV - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + 19 / - + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL + 27 + - col1 FROM tab2 AS cor0
----
-24
-40
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - + SUM( ALL 15 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-135

skipif mysql # not compatible
query I rowsort label-454
SELECT - + SUM ( ALL 15 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-135

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

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT + 7 / + col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + COUNT( DISTINCT + col0 ) * - COUNT( * ) + + + 15 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-456
SELECT + COUNT ( DISTINCT + col0 ) * - COUNT ( * ) + + + 15 FROM tab2 AS cor0
----
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT ALL - + col2 + col1 DIV + - col2 * - 21 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL - + col2 + col1 / + - col2 * - 21 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

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

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

query I rowsort
SELECT 93 + 93 + 7 FROM tab2 AS cor0
----
193
193
193

query I rowsort
SELECT - + col0 * - + col1 + - - 96 + + col0 FROM tab0 cor0
----
1326
2010
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT DISTINCT - ( + CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - ( + CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 69 + + - col2 FROM tab1
----
-1062
-3311
-404

query II rowsort
SELECT DISTINCT col1, col0 FROM tab0 WHERE - - col2 IS NOT NULL
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-465
SELECT ALL 23 AS col1, MAX( DISTINCT + col2 ) DIV COUNT( * ) * - - COUNT( * ) FROM tab2
----
23
57

skipif mysql # not compatible
query II rowsort label-465
SELECT ALL 23 AS col1, MAX ( DISTINCT + col2 ) / COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
23
57

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

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

query I rowsort
SELECT col1 * + col0 - + + col2 FROM tab1
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT COUNT( * ) - + + 24 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-468
SELECT COUNT ( * ) - + + 24 FROM tab2
----
-21

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

query III rowsort
SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0
----
9 values hashing to 8082ccffdb9edbd3a700426f3dc13a08

query I rowsort
SELECT 15 - + col1 + + + col1 AS col2 FROM tab2 AS cor0
----
15
15
15

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - + col1 + - - col2 + col2 AS col2, ( col2 ) col2 FROM tab2 AS cor0
----
2647
23
4605
58
6009
40

query II rowsort
SELECT ALL + + col0 AS col1, 70 * - col2 AS col0 FROM tab2 AS cor0
----
46
-1610
64
-2800
75
-4060

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT - COUNT( ALL - - 76 ) DIV - 22 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-478
SELECT - COUNT ( ALL - - 76 ) / - 22 AS col1 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT col0 * - + 58 AS col2 FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT - 87 * - col1 FROM tab2
----
4437
5829
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT + 54 * - - col1 DIV + 1 AS col2 FROM tab2
----
2754
3618
4158

skipif mysql # not compatible
query I rowsort label-483
SELECT + 54 * - - col1 / + 1 AS col2 FROM tab2
----
2754
3618
4158

query I rowsort
SELECT col0 * - + col1 * + col1 FROM tab2
----
-119646
-336675
-379456

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

skipif mysql # not compatible
query II rowsort label-485
SELECT ALL 68 AS col2, + MAX ( ALL + col2 ) FROM tab2 AS cor0
----
68
58

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

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

query I rowsort
SELECT - col1 * - 39 + + 89 AS col0 FROM tab0 AS cor0
----
128
3248
908

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 12 + - + col1 col0 FROM tab0 AS cor0
----
-112
-140
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + + + 60 - + + 42 * + - 48 AS col2 FROM tab1
----
2073

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + + + 60 - + + 42 * + - 48 AS col2 FROM tab1
----
2073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT DISTINCT col1 + - col2 - + CAST( col2 AS SIGNED ) * - col1 FROM tab1
----
1262
241
3175

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT col1 + - col2 - + CAST ( col2 AS INTEGER ) * - col1 FROM tab1
----
1262
241
3175

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT DISTINCT 91 * COUNT( DISTINCT - + 45 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT 91 * COUNT ( DISTINCT - + 45 ) FROM tab2
----
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT col0 + + col1 DIV + + col2 FROM tab0 cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-495
SELECT col0 + + col1 / + + col2 FROM tab0 cor0
----
16
89
97

query II rowsort
SELECT + col2 + ( - - col0 ) * + + 38, col0 FROM tab2 AS cor0
----
1771
46
2472
64
2908
75

query I rowsort
SELECT 3 + + col0 AS col2 FROM tab1
----
54
88
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-498
SELECT ALL COUNT( * ) * + 48 * - COUNT( * ) + - - 0 * + 44 - + COUNT( * ) + + CAST( NULL AS SIGNED ) - + - 46 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL COUNT ( * ) * + 48 * - COUNT ( * ) + - - 0 * + 44 - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + - 46 FROM tab2
----
NULL

query I rowsort
SELECT ( - 66 ) + - ( - col1 ) FROM tab2
----
-15
1
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 94 = - 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 44 + + 0 FROM tab1
----
44
44
44

query I rowsort
SELECT ALL + col0 + + 65 FROM tab2
----
111
129
140

query I rowsort
SELECT DISTINCT col2 - + 34 AS col0 FROM tab0
----
-24
13
65

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

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

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

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + col1 FROM tab0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----

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

query I rowsort
SELECT ALL + col0 + + + 14 FROM tab2
----
60
78
89

query I rowsort
SELECT ALL + + 57 * - 7 * - col2 FROM tab0 cor0
----
18753
39501
3990

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

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

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

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

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

query II rowsort
SELECT ALL + col1 * - col1, + 50 AS col0 FROM tab1
----
-196
50
-2209
50
-25
50

onlyif mysql # aggregate syntax: 
query II rowsort label-514
SELECT DISTINCT + COUNT( * ), - MIN( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
3
-51

skipif mysql # not compatible
query II rowsort label-514
SELECT DISTINCT + COUNT ( * ), - MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
3
-51

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT col2 DIV 63 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-516
SELECT col2 / 63 FROM tab2 AS cor0
----
0
0
0

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

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

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

query II rowsort
SELECT - - ( - col1 ), + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

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

query I rowsort
SELECT 22 + - col1 AS col1 FROM tab1 AS cor0
----
-25
17
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL - 2 / - - CAST( NULL AS SIGNED ) + + - 77 * + col0 * + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - 2 / - - CAST ( NULL AS INTEGER ) + + - 77 * + col0 * + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT COUNT( ALL col0 ) + - MAX( DISTINCT ( + - ( - + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-524
SELECT COUNT ( ALL col0 ) + - MAX ( DISTINCT ( + - ( - + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT DISTINCT SUM( + 3 ), + 33 AS col0 FROM tab2
----
9
33

skipif mysql # not compatible
query II rowsort label-525
SELECT DISTINCT SUM ( + 3 ), + 33 AS col0 FROM tab2
----
9
33

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT - MIN( 30 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT - MIN ( 30 ) FROM tab1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT DISTINCT 80 * COUNT( * ) + + + CAST( 32 AS SIGNED ) * - ( + 16 ) col2 FROM tab1
----
-272

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-527
SELECT DISTINCT 80 * COUNT ( * ) + + + CAST ( 32 AS INTEGER ) * - ( + 16 ) col2 FROM tab1
----
-272

query I rowsort
SELECT ALL + col2 + + + col0 AS col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT COUNT( * ) DIV - 34 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-529
SELECT COUNT ( * ) / - 34 AS col2 FROM tab1
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-532
SELECT + MIN ( DISTINCT 0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 35 + + col0 AS col0 FROM tab0 AS cor0
----
-20
52
62

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

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

query I rowsort
SELECT DISTINCT 13 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + - COUNT( * ) + - - 78 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-536
SELECT + - COUNT ( * ) + - - 78 FROM tab0 AS cor0
----
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT MAX( DISTINCT + 2 ) * - + COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT MAX ( DISTINCT + 2 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-6

query II rowsort
SELECT ( col0 ) * + col2 - col2, col0 * col1 AS col2 FROM tab1 AS cor0
----
4800
714
4956
425
6120
4277

query II rowsort
SELECT col1 * col2 - col1, + col1 FROM tab1 AS cor0 WHERE NULL <> 62 * + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT 61 * ( + + COUNT( * ) ) AS col2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT 61 * ( + + COUNT ( * ) ) AS col2 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL + COUNT( col0 ) + - - COUNT( * ) * + ( + COUNT( DISTINCT col2 ) ) * + + ( + COUNT( * ) ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL + COUNT ( col0 ) + - - COUNT ( * ) * + ( + COUNT ( DISTINCT col2 ) ) * + + ( + COUNT ( * ) ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT DISTINCT - SUM( + 11 ) * + - COUNT( * ) * - - 77 + 83 AS col2 FROM tab2
----
7706

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT - SUM ( + 11 ) * + - COUNT ( * ) * - - 77 + 83 AS col2 FROM tab2
----
7706

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL SUM( - - 97 ) + + + 17 - - 0 FROM tab0
----
308

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL SUM ( - - 97 ) + + + 17 - - 0 FROM tab0
----
308

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT - 73 DIV + - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-547
SELECT - 73 / + - col0 AS col2 FROM tab1
----
0
0
1

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col2 + 6 <= + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL COUNT( * ) + + 52 FROM tab2 AS cor0 WHERE ( 76 ) + col1 - + + col1 IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL COUNT ( * ) + + 52 FROM tab2 AS cor0 WHERE ( 76 ) + col1 - + + col1 IS NULL
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 * - - col1 col0 FROM tab1 AS cor0
----
1386
4653
495

query I rowsort
SELECT + 58 FROM tab1 cor0 WHERE NOT col1 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-554
SELECT DISTINCT - col1 DIV + ( - + col2 ) + col1 AS col2 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - col1 / + ( - + col2 ) + col1 AS col2 FROM tab2 AS cor0
----
53
68
78

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

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

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

skipif mysql # not compatible
query I rowsort label-556
SELECT - ( + COUNT ( * ) ) * + + ( + - COUNT ( * ) ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT ( + - 22 ) AS col1 FROM tab0
----
-22

query I rowsort
SELECT col2 + + 69 AS col2 FROM tab0
----
116
168
79

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 18
----

query I rowsort
SELECT - - 82 + + 8 FROM tab0 AS cor0
----
90
90
90

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-565
SELECT col2 DIV + CAST( col1 AS SIGNED ) + col0 * + 77 AS col2 FROM tab2 AS cor0
----
3542
4928
5775

skipif mysql # not compatible
query I rowsort label-565
SELECT col2 / + CAST ( col1 AS INTEGER ) + col0 * + 77 AS col2 FROM tab2 AS cor0
----
3542
4928
5775

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

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

query I rowsort
SELECT + ( ( - col0 ) ) - - 99 FROM tab0 cor0
----
12
2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT 59 - - COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-568
SELECT 59 - - COUNT ( * ) FROM tab0 AS cor0
----
62

query II rowsort
SELECT DISTINCT - col0 * - 55, + col0 FROM tab1 AS cor0
----
2805
51
4675
85
5005
91

query I rowsort
SELECT + 91 + - - 52 FROM tab0 AS cor0
----
143
143
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE ( NOT col2 * - ( 52 ) IS NULL )
----
15
87
97

query I rowsort
SELECT + 40 FROM tab1 WHERE NOT 56 IS NULL
----
40
40
40

query I rowsort
SELECT 3 * - col2 FROM tab0
----
-141
-297
-30

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 * + col2 * + 90 col2 FROM tab1
----
-254880
-293760
-414720

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

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

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

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

query II rowsort
SELECT 81, - ( + col1 ) AS col2 FROM tab2 AS cor0
----
81
-51
81
-67
81
-77

query I rowsort
SELECT + col0 * + 64 AS col1 FROM tab0 cor0
----
5568
6208
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT ALL CAST( + + 11 AS SIGNED ) * - 49 + + - ( - col2 ) FROM tab2
----
-481
-499
-516

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL CAST ( + + 11 AS INTEGER ) * - 49 + + - ( - col2 ) FROM tab2
----
-481
-499
-516

query I rowsort
SELECT ALL 8 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( 15 ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT + + 63 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-585
SELECT ALL - 47 / + - col2 + + CAST( NULL AS DECIMAL ) * + 1 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-585
SELECT ALL - 47 / + - col2 + + CAST ( NULL AS REAL ) * + 1 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - + 48 AND 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 54 + + - 66 + + + 78 FROM tab1 cor0
----
66
66
66

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

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

query I rowsort
SELECT - 60 AS col1 FROM tab0 AS cor0 WHERE NOT 3 * + - col2 IS NULL
----
-60
-60
-60

query II rowsort
SELECT - 86 + col2 + 55 + - - col0 AS col0, - col0 FROM tab0 AS cor0
----
165
-97
31
-15
66
-87

query I rowsort
SELECT DISTINCT col1 * - 29 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # DIV for integer division: 
query II rowsort label-592
SELECT DISTINCT col0 * col0 * col2 + + - ( col0 ) DIV col2 * col0, + col2 * col0 + + col0 + + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
163776
5704
326175
8311
48576
2277

skipif mysql # not compatible
query II rowsort label-592
SELECT DISTINCT col0 * col0 * col2 + + - ( col0 ) / col2 * col0, + col2 * col0 + + col0 + + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
163776
5704
326175
8311
48576
2277

query I rowsort
SELECT DISTINCT - col2 + + + 58 + + - ( + col1 ) + + - col0 * + 21 AS col1 FROM tab1 AS cor0
----
-1123
-1791
-1968

query I rowsort
SELECT DISTINCT - ( - col1 ) + - 14 - + - 73 FROM tab1 cor0
----
106
64
73

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + + + ( + col0 ) + ( + 88 ) * + col2 col2 FROM tab2
----
2123
3637
5232

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-598
SELECT ALL 42 DIV + MIN( DISTINCT + - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL 42 / + MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - COUNT( * ) * - 83 AS col2 FROM tab2 cor0
----
249

skipif mysql # not compatible
query I rowsort label-599
SELECT - COUNT ( * ) * - 83 AS col2 FROM tab2 cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT 22 - + 21 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-600
SELECT 22 - + 21 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT 73 + + 1 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT + col0 + + + 16 * - + ( - ( col2 ) ) + + - col1 * col0 FROM tab0
----
-1580
-448
1584

onlyif mysql # DIV for integer division: 
query II rowsort label-604
SELECT 3 AS col1, col0 DIV ( + col0 ) * 85 FROM tab1
----
3
85
3
85
3
85

skipif mysql # not compatible
query II rowsort label-604
SELECT 3 AS col1, col0 / ( + col0 ) * 85 FROM tab1
----
3
85
3
85
3
85

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < + 54 + - col1 - - 54 * - - 6
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT 68 * - MIN( DISTINCT - - ( + - col1 ) ) FROM tab0 AS cor0
----
5508

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT 68 * - MIN ( DISTINCT - - ( + - col1 ) ) FROM tab0 AS cor0
----
5508

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

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT + + COUNT( * ) * + 17 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-609
SELECT + + COUNT ( * ) * + 17 FROM tab0 AS cor0
----
51

query II rowsort
SELECT ALL - col2 AS col2, col1 - + col2 * - 20 FROM tab0 cor0
----
-10
221
-47
1021
-99
1981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 2 col2 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - COUNT( * ) * + 11 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-613
SELECT - COUNT ( * ) * + 11 FROM tab0
----
-33

query I rowsort
SELECT ALL 26 * 15 FROM tab0 WHERE NULL < - 55 * + - 85
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col0 * - col2 + + + col0 col2 FROM tab1
----
-4749
-4871
-6029

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

query I rowsort
SELECT + - 2 / + + col0 + - - col1 + + ( + + col2 ) AS col2 FROM tab0 WHERE NOT col1 + - 25 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT ALL + + col2 DIV + 90 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + + col2 / + 90 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT ( + - 17 ) AS col2 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT ALL - - ( + + col1 ) + + + 39 AS col1 FROM tab1 cor0
----
44
53
86

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

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

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

query I rowsort
SELECT DISTINCT + - 58 + col2 + - col1 * - - 11 AS col2 FROM tab0 cor0
----
-279
-902
30

query I rowsort
SELECT DISTINCT 53 + 64 FROM tab2
----
117

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

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

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

query I rowsort
SELECT - col0 + 94 + - col2 FROM tab1 AS cor0 WHERE NULL IN ( 27, 80 + 62, - col1 )
----

query I rowsort
SELECT ALL + col1 * + + 73 - + + col2 FROM tab1 cor0
----
306
3363
926

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

query I rowsort
SELECT + 39 - - col0 + + col2 FROM tab2
----
108
143
172

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT COUNT( * ) - 24 AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-635
SELECT COUNT ( * ) - 24 AS col0 FROM tab0
----
-21

query I rowsort
SELECT DISTINCT - 63 * + col1 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - col0 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL = + col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + + 76 + + col0 - + col1 + + col2
----

query I rowsort
SELECT - 27 * - ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-1508
-1745
-2541

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-644
SELECT DISTINCT + ( - - SUM ( ALL col0 ) ) col1 FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * - ( 19 ) col0 FROM tab0
----
1121
1121
1121

query II rowsort
SELECT ALL + 92, col2 FROM tab0
----
92
10
92
47
92
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-647
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, col1 * + 85 FROM tab1
----
NULL
1190
NULL
3995
NULL
425

skipif mysql # not compatible
query II rowsort label-647
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, col1 * + 85 FROM tab1
----
NULL
1190
NULL
3995
NULL
425

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

query II rowsort
SELECT - 17 AS col0, ( + ( + 42 ) ) AS col2 FROM tab2 AS cor0
----
-17
42
-17
42
-17
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + ( + ( - ( + + 96 ) ) ) ) * + + ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-651
SELECT + COUNT( * ) + 39 AS col1, SUM( + + col0 ) * + 97 FROM tab0 cor0
----
42
19303

skipif mysql # not compatible
query II rowsort label-651
SELECT + COUNT ( * ) + 39 AS col1, SUM ( + + col0 ) * + 97 FROM tab0 cor0
----
42
19303

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

skipif mysql # not compatible
query I rowsort label-652
SELECT - COUNT ( * ) + CAST ( + 57 AS INTEGER ) FROM tab2 cor0
----
54

query I rowsort
SELECT col0 * - - col1 + + 41 + col0 FROM tab0 AS cor0
----
1271
1955
235

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-654
SELECT DISTINCT - COUNT( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - COUNT ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + ( + 31 ) * col1 + + col0 * 88 AS col2 FROM tab0 AS cor0
----
-1191
7005
8505

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

query I rowsort
SELECT DISTINCT 70 - col2 AS col2 FROM tab1
----
-26
11
2

query II rowsort
SELECT DISTINCT 36 - + 78 + - col2 AS col2, - 87 FROM tab0
----
-141
-87
-52
-87
-89
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT ALL col1 - - 37 + + col0 + - col0 DIV col2 AS col0 FROM tab0
----
133
135
137

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL col1 - - 37 + + col0 + - col0 / col2 AS col0 FROM tab0
----
133
135
137

query I rowsort
SELECT + col1 - + + col1 * + 32 + col0 AS col0 FROM tab1 AS cor0
----
-1366
-383
-70

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

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

query I rowsort
SELECT col2 - - + col0 - - col0 + + - 63 + 60 FROM tab1 AS cor0
----
195
226
247

query I rowsort
SELECT 90 * col2 FROM tab2
----
2070
3600
5220

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

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + COUNT( DISTINCT 61 ) + - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-665
SELECT + COUNT ( DISTINCT 61 ) + - COUNT ( * ) FROM tab1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-666
SELECT DISTINCT - col1 + - col0 * 75 AS col2 FROM tab2 WHERE NOT + col0 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - col1 + - col0 * 75 AS col2 FROM tab2 WHERE NOT + col0 IN ( CAST ( NULL AS REAL ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 99 * col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT NULL = ( NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT - SUM( DISTINCT + 39 ) - COUNT( + 45 ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT - SUM ( DISTINCT + 39 ) - COUNT ( + 45 ) AS col2 FROM tab0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + COUNT( * ) + 90 * + ( COUNT( * ) - - 86 ) FROM tab2
----
8013

skipif mysql # not compatible
query I rowsort label-673
SELECT + COUNT ( * ) + 90 * + ( COUNT ( * ) - - 86 ) FROM tab2
----
8013

query I rowsort
SELECT - 3 + + ( - col0 ) AS col2 FROM tab0
----
-100
-18
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - COUNT( * ) + SUM( col2 + col1 ) AS col0 FROM tab2
----
313

skipif mysql # not compatible
query I rowsort label-675
SELECT - COUNT ( * ) + SUM ( col2 + col1 ) AS col0 FROM tab2
----
313

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-677
SELECT DISTINCT - ( + 3 ) + COUNT( * ) * AVG ( - col2 ) AS col1 FROM tab1 WHERE + col1 < - col0 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT - ( + 3 ) + COUNT ( * ) * AVG ( - col2 ) AS col1 FROM tab1 WHERE + col1 < - col0 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL col2 + col0 * - col0 AS col0 FROM tab1
----
-2505
-7166
-8213

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

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

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

query I rowsort
SELECT + col0 + - 4 FROM tab1
----
47
81
87

query I rowsort
SELECT - ( 89 ) - + 94 AS col2 FROM tab2
----
-183
-183
-183

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

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT + MIN( + 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-684
SELECT + MIN ( + 21 ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + COUNT( * ) * - 2 - 52 AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-685
SELECT + COUNT ( * ) * - 2 - 52 AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + 94 + - SUM( - ( col2 ) ) FROM tab2 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-686
SELECT + 94 + - SUM ( - ( col2 ) ) FROM tab2 AS cor0
----
215

query I rowsort
SELECT + 47 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( 36 )
----

query I rowsort
SELECT DISTINCT col2 * 23 + ( col0 ) FROM tab0
----
1096
2374
317

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

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

query I rowsort
SELECT ALL + 77 * - col2 + col1 * col1 AS col0 FROM tab2
----
23
2849
830

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL COUNT( DISTINCT col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab1 cor0
----
3

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

query I rowsort
SELECT + - col0 - 98 * col2 FROM tab2 AS cor0
----
-2300
-3984
-5759

query I rowsort
SELECT - col1 - + 98 FROM tab0 AS cor0
----
-119
-179
-99

query I rowsort
SELECT col1 + 42 FROM tab2 AS cor0
----
109
119
93

query I rowsort
SELECT + col1 + 6 AS col0 FROM tab1 AS cor0
----
11
20
53

query I rowsort
SELECT 82 + col1 AS col0 FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT DISTINCT + 43 + + col1 FROM tab2 AS cor0
----
110
120
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <= + ( + col2 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT + 42 * MAX( + col2 * - 40 ) + ( - 40 ) FROM tab2 AS cor0 WHERE + col2 IN ( + CAST( NULL AS SIGNED ) + col0 * - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT + 42 * MAX ( + col2 * - 40 ) + ( - 40 ) FROM tab2 AS cor0 WHERE + col2 IN ( + CAST ( NULL AS INTEGER ) + col0 * - 69 )
----
NULL

query I rowsort
SELECT + ( - col1 ) * - 39 + - col2 FROM tab2 AS cor0
----
1966
2555
2963

query I rowsort
SELECT + col1 + + 11 FROM tab0 cor0
----
12
32
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-704
SELECT DISTINCT * FROM tab1 WHERE + col1 * CAST( NULL AS DECIMAL ) NOT IN ( + col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-704
SELECT DISTINCT * FROM tab1 WHERE + col1 * CAST ( NULL AS REAL ) NOT IN ( + col0 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 35 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-708
SELECT ALL 44 DIV col1 FROM tab2 WHERE + 13 >= col1 DIV col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL 44 / col1 FROM tab2 WHERE + 13 >= col1 / col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * - col2 col1 FROM tab0 AS cor0
----
-2491
-5247
-530

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE 91 >= ( + 83 )
----
59
68
96

query I rowsort
SELECT ALL - col1 - + 67 * col0 AS col0 FROM tab0 AS cor0
----
-1086
-5850
-6500

query I rowsort
SELECT + col0 * + + col1 + - 17 FROM tab0 AS cor0
----
1198
1810
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - col1 * 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + 88 - + MAX( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + 88 - + MAX ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
11

query I rowsort
SELECT ALL 60 * col0 * col2 AS col0 FROM tab1 AS cor0
----
293760
300900
371280

query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab1, tab2 AS cor0
----
-19

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

query I rowsort
SELECT ALL - 47 * col1 FROM tab1 AS cor0
----
-2209
-235
-658

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN col2 AND 94 + - 94 / col0
----
87
21
10

query I rowsort
SELECT 97 AS col1 FROM tab1 AS cor0 WHERE NOT col0 <> - 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT ALL col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-721
SELECT ALL col1 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 * + ( - col0 ) col0 FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT ALL col2 DIV 98 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL col2 / 98 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 54 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - SUM( + 44 ) AS col2 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-727
SELECT - SUM ( + 44 ) AS col2 FROM tab2 AS cor0
----
-132

query I rowsort
SELECT - 47 AS col2 FROM tab0 AS cor0 WHERE NOT 62 BETWEEN ( + 51 ) AND NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 82 AS col2 FROM tab1 AS cor0
----
1148
3854
410

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * - 84 col1 FROM tab2
----
-177744
-344064
-472500

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab1 WHERE NOT 88 + 79 * ( - 21 + - col1 ) IN ( + col2 )
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT col0 / - col1 AS col2 FROM tab1 WHERE NOT 88 + 79 * ( - 21 + - col1 ) IN ( + col2 )
----
-1
-17
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= 43 * 66
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL CAST( - 47 AS SIGNED ) FROM tab0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL CAST ( - 47 AS INTEGER ) FROM tab0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT + + col1 DIV - col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-741
SELECT + + col1 / - col2 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT + 18 + + 97 FROM tab2
----
115
115
115

query I rowsort
SELECT - 43 + + + 43 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT col1 + col2 + + - col0 AS col2 FROM tab1 AS cor0
----
-21
24
59

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - ( + 43 ) AND ( + col2 * + col2 * 42 )
----

query I rowsort
SELECT ALL + 66 + + + col0 FROM tab1 AS cor0
----
117
151
157

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

query II rowsort
SELECT + col1, ( - col0 ) + - 88 * 29 FROM tab2 cor0 WHERE - 75 IS NOT NULL
----
51
-2598
67
-2627
77
-2616

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

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

query I rowsort
SELECT 64 + + - 7 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT DISTINCT + COUNT( * ) + + CAST( ( + + MIN( DISTINCT + - col0 ) ) AS SIGNED ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + COUNT ( * ) + + CAST ( ( + + MIN ( DISTINCT + - col0 ) ) AS INTEGER ) AS col2 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL MIN( DISTINCT - 61 ) AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL MIN ( DISTINCT - 61 ) AS col2 FROM tab2
----
-61

query I rowsort
SELECT - 43 - - + ( - 17 ) + col2 * + + ( col1 ) AS col0 FROM tab0
----
150
3747
39

query I rowsort
SELECT + 86 * + col2 - - 97 + + - col2 * - col2 AS col2 FROM tab2
----
2604
5137
8449

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 WHERE + - col2 + col2 NOT BETWEEN + 99 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + - col2 + col2 NOT BETWEEN + 99 AND col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + CAST ( - + AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 89 - - - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( + + 28 )
----

query II rowsort
SELECT + 17 AS col2, 81 * - col0 AS col2 FROM tab1 AS cor0
----
17
-4131
17
-6885
17
-7371

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( 93 )
----

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 AS cor0 WHERE NOT 10 * + 39 + + 62 IS NOT NULL
----

query I rowsort
SELECT + 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 43 = NULL
----

query I rowsort
SELECT DISTINCT + 21 * - - 98 FROM tab2 cor0
----
2058

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

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT ALL + 92 DIV + + col1 AS col2 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + 92 / + + col1 AS col2 FROM tab1 AS cor0
----
1
18
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col0 FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) * col0 + - - col0 + col1 ) IS NULL
----
-58
-58
-58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + ( - + col2 ) AS col0, - 78 col0 FROM tab1
----
0
-78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 19 col2 FROM tab0
----
-1881
-190
-893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-776
SELECT 46 * + 52 * - + 18 DIV CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
14352

skipif mysql # not compatible
query I rowsort label-776
SELECT 46 * + 52 * - + 18 / CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
14352

query I rowsort
SELECT ALL - col2 * col0 * - col2 FROM tab2 WHERE NOT - col0 IS NULL
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-778
SELECT + col1 + CAST( NULL AS SIGNED ) + col2 col2, 57 FROM tab0
----
NULL
57
NULL
57
NULL
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-778
SELECT + col1 + CAST ( NULL AS INTEGER ) + col2 col2, 57 FROM tab0
----
NULL
57
NULL
57
NULL
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 33 + + col0 col1 FROM tab2 cor0
----
108
79
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + CAST( NULL AS SIGNED ) - + 86 >= 67 - col2
----

skipif mysql # not compatible
query III rowsort label-781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + CAST ( NULL AS INTEGER ) - + 86 >= 67 - col2
----

query I rowsort
SELECT + col1 + - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
15
87
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT DISTINCT - CAST( - MIN( + 61 ) AS SIGNED ) / + ( + + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - CAST ( - MIN ( + 61 ) AS INTEGER ) / + ( + + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT 15 IS NOT NULL
----
NULL

query I rowsort
SELECT + + 78 + 76 AS col0 FROM tab1 AS cor0
----
154
154
154

query I rowsort
SELECT + col2 + + 19 AS col0 FROM tab0 AS cor0
----
118
29
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT + + col2 * - col0 + ( CAST( 50 AS SIGNED ) ) FROM tab2 cor0
----
-1008
-2510
-4300

skipif mysql # not compatible
query I rowsort label-787
SELECT + + col2 * - col0 + ( CAST ( 50 AS INTEGER ) ) FROM tab2 cor0
----
-1008
-2510
-4300

query I rowsort
SELECT + col0 + + col2 - + - col0 - col0 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col2 + - 83 * - 0 * 73 FROM tab0
----
10
47
99

query I rowsort
SELECT col1 + col0 * + col0 + + - col0 AS col1 FROM tab0
----
291
7503
9313

onlyif mysql # DIV for integer division: 
query II rowsort label-791
SELECT + col1 DIV - 94 + 38, col0 col1 FROM tab1
----
38
51
38
85
38
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-791
SELECT + col1 / - 94 + 38, col0 col1 FROM tab1
----
38
51
38
85
38
91

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 54 >= col1
----
15
81
47

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

onlyif mysql # DIV for integer division: 
query II rowsort label-795
SELECT 28, + 19 * - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
28
19
28
19
28
19

skipif mysql # not compatible
query II rowsort label-795
SELECT 28, + 19 * - col2 / - col2 AS col0 FROM tab1 AS cor0
----
28
19
28
19
28
19

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT DISTINCT + - 95 / 31 * - - 65 * - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + - 95 / 31 * - - 65 * - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 4 * - col1 - + col1 FROM tab2 cor0
----
-255
-335
-385

query I rowsort
SELECT + + 66 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 * + col2 NOT BETWEEN 8 AND + ( + + col2 )
----

query II rowsort
SELECT ALL col1 AS col2, - ( - 68 ) * + + col1 * col2 AS col1 FROM tab0 AS cor0
----
1
6732
21
14280
81
258876

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-802
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * 73 * - 33 * + col1 * + + col2 - - - ( CAST( - col1 AS SIGNED ) ) + - - 61 + col1 + - col0 * - col0 * 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-802
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 * 73 * - 33 * + col1 * + + col2 - - - ( CAST ( - col1 AS INTEGER ) ) + - - 61 + col1 + - col0 * - col0 * 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 46 + - col0 FROM tab1 AS cor0
----
-39
-45
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT + col1 * + col0 + + col2 + - col0 DIV - col2 AS col0 FROM tab2 AS cor0
----
2371
4969
5084

skipif mysql # not compatible
query I rowsort label-804
SELECT + col1 * + col0 + + col2 + - col0 / - col2 AS col0 FROM tab2 AS cor0
----
2371
4969
5084

query II rowsort
SELECT ALL col2 + + ( - 14 ) AS col0, col1 * + 29 AS col2 FROM tab2
----
26
2233
44
1943
9
1479

query II rowsort
SELECT ALL - col2 * + col0 AS col2, + 71 FROM tab1
----
-4896
71
-5015
71
-6188
71

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 66
----

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

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

query I rowsort
SELECT ALL + + col1 * + 80 FROM tab2 AS cor0
----
4080
5360
6160

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

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

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

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

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

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

query I rowsort
SELECT ( + col0 ) * - + col1 * + col2 + - col0 - + + col0 + col2 * + 14 * col1 AS col2 FROM tab1
----
-21115
-246274
-49830

query I rowsort
SELECT 9 * + col2 AS col1 FROM tab2
----
207
360
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + + - 49 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 + 67 <> - col1
----

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

query II rowsort
SELECT ALL - 80 AS col2, + 14 AS col2 FROM tab0 AS cor0
----
-80
14
-80
14
-80
14

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

query I rowsort
SELECT - + col2 + + ( + col2 ) + + 73 AS col0 FROM tab2 AS cor0 WHERE - 69 >= NULL
----

query II rowsort
SELECT ALL - 50 AS col0, - col1 FROM tab2 cor0
----
-50
-51
-50
-67
-50
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) + - - col2 + + col0 NOT IN ( - col2, - col0 + + col0 * - 11 + + ( 21 ) ) OR NOT ( - + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-826
SELECT ALL col1 DIV CAST( + col1 AS SIGNED ) FROM tab0
----
1
1
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-828
SELECT ALL + MIN( + ( + col1 ) ) DIV - + CAST( - 81 AS SIGNED ) * 45 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-828
SELECT ALL + MIN ( + ( + col1 ) ) / - + CAST ( - 81 AS INTEGER ) * 45 col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL MIN( - - col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL MIN ( - - col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - 52 NOT BETWEEN col0 * - col2 * + + col1 * col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-831
SELECT DISTINCT COUNT( DISTINCT CAST( + - 23 AS DECIMAL ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT COUNT ( DISTINCT CAST ( + - 23 AS REAL ) ) AS col1 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 + - - col1 IS NULL
----

query I rowsort
SELECT - - col0 * - 86 FROM tab2 cor0 WHERE NOT 3 * + 48 IS NULL
----
-3956
-5504
-6450

query I rowsort
SELECT + col2 * + + col0 FROM tab0 AS cor0 WHERE NOT + col1 >= + 58
----
870
9603

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col2 * - + 51 FROM tab1
----
-3009
-3468
-4896

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

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

query I rowsort
SELECT - + ( col1 ) * + + col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

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

query II rowsort
SELECT ALL + + 81 + - ( col0 ), - col2 AS col0 FROM tab0 AS cor0
----
-16
-99
-6
-10
66
-47

query II rowsort
SELECT + + col2, col0 + - col1 FROM tab1 AS cor0
----
59
80
68
44
96
37

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE 40 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 74 col0, + 59 FROM tab2 cor0
----
-74
59
-74
59
-74
59

query I rowsort
SELECT ALL + - 94 + + 99 * - col0 + - - col1 * + + col1 FROM tab1 AS cor0
----
-4947
-6894
-8484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-847
SELECT col2, CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-847
SELECT col2, CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT ALL 87 + col0 AS col0, - col1 FROM tab0
----
102
-81
174
-21
184
-1

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

query I rowsort
SELECT 69 + - + 29 AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT 26 * col1 * 58 + + 39 AS col0 FROM tab1
----
21151
70915
7579

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 89 ) col1 FROM tab1 cor0 WHERE NOT col2 IS NULL
----
89
89
89

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

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

query I rowsort
SELECT ALL + col2 * 21 * + - col1 + - 41 AS col2 FROM tab2
----
-24674
-64721
-81647

query I rowsort
SELECT + - 93 + col1 * 21 AS col1 FROM tab1 AS cor0
----
12
201
894

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT + SUM( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT + SUM ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----
NULL

query I rowsort
SELECT ALL + - 16 FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 * col0 col1 FROM tab0
----
5220
5820
900

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-861
SELECT ALL 63 AS col0, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL 63 AS col0, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
63
NULL
63
NULL
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT - MIN( + - 3 ) AS col1 FROM tab0, tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-862
SELECT - MIN ( + - 3 ) AS col1 FROM tab0, tab2 AS cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT + col1 / - - 57 AS col1 FROM tab1
----
0

query II rowsort
SELECT + col1, - col2 * - col1 AS col2 FROM tab2
----
51
1173
67
3886
77
3080

onlyif mysql # DIV for integer division: 
query II rowsort label-865
SELECT DISTINCT - + 86 AS col1, col1 * - col1 DIV - col1 FROM tab0 AS cor0
----
-86
1
-86
21
-86
81

skipif mysql # not compatible
query II rowsort label-865
SELECT DISTINCT - + 86 AS col1, col1 * - col1 / - col1 FROM tab0 AS cor0
----
-86
1
-86
21
-86
81

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

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

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

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

query I rowsort
SELECT 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 44 + - - col0 FROM tab0 AS cor0
----
131
141
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - 14 * col1 AND NULL
----

query I rowsort
SELECT 79 + - ( + col0 ) FROM tab1 AS cor0
----
-12
-6
28

query I rowsort
SELECT + - col1 + - + col1 FROM tab2 cor0
----
-102
-134
-154

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

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT + col1 + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT DISTINCT ( + col0 ) AS col0, + 15 * - - 94 * col2 AS col1 FROM tab0 AS cor0
----
15
66270
87
14100
97
139590

query I rowsort
SELECT ALL + col0 + - + 25 + 51 AS col0 FROM tab2 AS cor0
----
101
72
90

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE + col0 NOT IN ( - - col0 + 82 - + col2, col1 )
----
10
47
99

query I rowsort
SELECT ALL col1 + - - 58 - - 84 * + 15 * + 10 * + + 57 FROM tab2 AS cor0
----
718309
718325
718335

query I rowsort
SELECT DISTINCT col2 + + col0 + + 26 * - + col0 FROM tab2
----
-1127
-1560
-1817

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

query III rowsort
SELECT * FROM tab0 WHERE - - col2 * - 45 + 21 IS NULL
----

query I rowsort
SELECT ALL - 29 FROM tab0 WHERE NOT + 71 IS NULL
----
-29
-29
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-884
SELECT - col2 AS col2, CAST( NULL AS SIGNED ) - ( col0 ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-884
SELECT - col2 AS col2, CAST ( NULL AS INTEGER ) - ( col0 ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT col1 * - 23 - 56 + - col2 AS col0 FROM tab1
----
-1205
-230
-474

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

query I rowsort
SELECT + - col1 - + + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT - 40 * + 46 FROM tab1 AS cor0
----
-1840

query I rowsort
SELECT - - ( - col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

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

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

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

query I rowsort
SELECT DISTINCT + + col0 * + 16 AS col2 FROM tab2 cor0
----
1024
1200
736

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

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

query II rowsort
SELECT col0 * + - 47 AS col1, + col1 AS col2 FROM tab1
----
-2397
14
-3995
5
-4277
47

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

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT - col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col2 + col1 NOT BETWEEN NULL AND - - col2 * - + 33 * + col0 + - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL 11 + + - COUNT( * ) * + 34 AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL 11 + + - COUNT ( * ) * + 34 AS col2 FROM tab2 AS cor0
----
-91

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

query I rowsort
SELECT DISTINCT 29 + - col2 AS col2 FROM tab1
----
-30
-39
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT - 16 * + ( - COUNT( * ) ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-899
SELECT - 16 * + ( - COUNT ( * ) ) FROM tab1 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - col1 * 11 AS col1 FROM tab2
----
25806
54208
55275

query I rowsort
SELECT DISTINCT + col2 + - + col2 FROM tab0 WHERE NULL <> + - 48 * col2 * + col2
----

query I rowsort
SELECT ALL - ( col2 ) * + - 46 FROM tab2
----
1058
1840
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - 7 + + SUM( 18 ) + + - ( - COUNT( * ) ) + 50 * + 71 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32114

skipif mysql # not compatible
query I rowsort label-903
SELECT - 7 + + SUM ( 18 ) + + - ( - COUNT ( * ) ) + 50 * + 71 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32114

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT - COUNT( * ) DIV - 19 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-905
SELECT - COUNT ( * ) / - 19 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT DISTINCT - ( + 95 ) DIV + col0 col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-906
SELECT DISTINCT - ( + 95 ) / + col0 col1 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT + col2 * + ( + + 82 ) + + col1 AS col0 FROM tab2 cor0
----
1937
3357
4823

query I rowsort
SELECT ALL + col0 + + 91 FROM tab1 AS cor0
----
142
176
182

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT + col2 DIV 58 + 49 FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-909
SELECT + col2 / 58 + 49 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + - ( - col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

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

skipif mysql # not compatible
query II rowsort label-911
SELECT COUNT ( * ), + 50 AS col2 FROM tab0, tab1 AS cor0
----
9
50

query I rowsort
SELECT 76 + col2 * col2 FROM tab1
----
3557
4700
9292

query I rowsort
SELECT ALL 48 - + 82 AS col2 FROM tab0
----
-34
-34
-34

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

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

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

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

query I rowsort
SELECT - 0 * + col2 + - - col2 - col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT + 67 DIV + ( - 30 ) - - - col2 FROM tab1
----
-61
-70
-98

skipif mysql # not compatible
query I rowsort label-919
SELECT + 67 / + ( - 30 ) - - - col2 FROM tab1
----
-61
-70
-98

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

query II rowsort
SELECT - - 36 * - col1 * + col1, 90 FROM tab1 AS cor0 WHERE NOT + col2 + + 7 * - + 31 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT - COUNT( * ) * + + COUNT( DISTINCT + col2 ) + - + 7 DIV - - COUNT( * ) FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-922
SELECT - COUNT ( * ) * + + COUNT ( DISTINCT + col2 ) + - + 7 / - - COUNT ( * ) FROM tab1 cor0
----
-11

query II rowsort
SELECT ALL + col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - 74 + + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-71

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - 74 + + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-71

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

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

query II rowsort
SELECT - + 64 AS col2, - 16 AS col1 FROM tab1 AS cor0
----
-64
-16
-64
-16
-64
-16

query II rowsort
SELECT + col1 AS col1, ( - - col0 ) AS col2 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT + col0 * ( 78 ) FROM tab2
----
3588
4992
5850

query I rowsort
SELECT DISTINCT - 50 * + + col2 AS col2 FROM tab0
----
-2350
-4950
-500

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 44 col0 FROM tab1
----
-2068
-220
-616

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

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

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

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

query I rowsort
SELECT ALL - 90 * col0 AS col2 FROM tab0 AS cor0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT - 4 * - COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT - 4 * - COUNT ( * ) AS col2 FROM tab1
----
12

query I rowsort
SELECT - 42 * + 78 + + + col2 AS col2 FROM tab2 AS cor0
----
-3218
-3236
-3253

query II rowsort
SELECT ALL + col0 * col1, col2 - 88 AS col1 FROM tab1 AS cor0
----
425
-29
4277
-20
714
8

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT - col2 DIV - - col0 + - - col0 * + 16 + - col0 + + - 87 FROM tab1 AS cor0
----
1188
1278
677

skipif mysql # not compatible
query I rowsort label-938
SELECT - col2 / - - col0 + - - col0 * + 16 + - col0 + + - 87 FROM tab1 AS cor0
----
1188
1278
677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT DISTINCT - MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
NULL

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

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

query II rowsort
SELECT col1 * - - col2 AS col0, col2 FROM tab0 AS cor0
----
210
10
3807
47
99
99

query II rowsort
SELECT + + ( + 12 ), - col1 AS col0 FROM tab2 AS cor0
----
12
-51
12
-67
12
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + COUNT( * ) + + SUM( DISTINCT col2 ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT + COUNT ( * ) + + SUM ( DISTINCT col2 ) FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT 38 - + - MAX( + + col2 ) FROM tab0
----
137

skipif mysql # not compatible
query I rowsort label-946
SELECT 38 - + - MAX ( + + col2 ) FROM tab0
----
137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-947
SELECT ALL CAST( NULL AS DECIMAL ) / - - MAX( col0 ) - 30 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL CAST ( NULL AS REAL ) / - - MAX ( col0 ) - 30 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 30 - + col0 FROM tab1
----
-21
-55
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 - - col0 + + col1 col1, - col1 FROM tab1
----
185
-47
79
-14
95
-5

query I rowsort
SELECT + col1 + - - 24 FROM tab2 AS cor0
----
101
75
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 76 * col1 * + ( - + col2 ) FROM tab0
----
-15960
-289332
-7524

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 95 ) IS NOT NULL
----

query I rowsort
SELECT + 31 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + 97 * - + COUNT( + - col0 ) AS col2 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-957
SELECT + 97 * - + COUNT ( + - col0 ) AS col2 FROM tab2
----
-291

query I rowsort
SELECT + 15 * 93 FROM tab2
----
1395
1395
1395

query I rowsort
SELECT DISTINCT + col1 + - - ( - col1 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT DISTINCT + CAST( + 87 AS SIGNED ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT + CAST ( + 87 AS INTEGER ) FROM tab1
----
87

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + col1 BETWEEN 53 AND + col2
----
23
40
58

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

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

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

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

query I rowsort
SELECT ALL + 48 * - 35 FROM tab0
----
-1680
-1680
-1680

query I rowsort
SELECT + 31 + - col1 AS col1 FROM tab0
----
-50
10
30

query I rowsort
SELECT DISTINCT - col0 * - - col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT - ( 64 ) + col0 + + 4 - - col2 FROM tab1
----
84
87
99

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

query I rowsort
SELECT - + 90 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

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

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

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

query I rowsort
SELECT - col0 * + col2 - + 45 + - 34 * + col1 AS col2 FROM tab0 AS cor0
----
-1629
-3504
-9682

query I rowsort
SELECT DISTINCT 76 + + col2 * - + 27 AS col0 FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
-1517
-1760
-2516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE NOT 55 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col1 + - col0 + + col1 AS col2 FROM tab2 AS cor0
----
56
59
90

query I rowsort
SELECT ALL col1 + - col2 + col1 FROM tab1
----
-49
-68
26

query I rowsort
SELECT DISTINCT - col2 + - 25 FROM tab0
----
-124
-35
-72

query I rowsort
SELECT ALL - col2 - - 45 + 82 * col2 FROM tab2
----
1908
3285
4743

onlyif mysql # DIV for integer division: 
query II rowsort label-981
SELECT DISTINCT 40 DIV - col0, - 51 * col2 * - - col1 AS col0 FROM tab2
----
0
-157080
0
-198186
0
-59823

skipif mysql # not compatible
query II rowsort label-981
SELECT DISTINCT 40 / - col0, - 51 * col2 * - - col1 AS col0 FROM tab2
----
0
-157080
0
-198186
0
-59823

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-983
SELECT ALL + MIN( ALL + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + MIN ( ALL + + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT - COUNT( * ) DIV + 78 - - 43 AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-984
SELECT - COUNT ( * ) / + 78 - - 43 AS col1 FROM tab2 AS cor0
----
43

query I rowsort
SELECT ( - 51 ) * - 59 FROM tab0 AS cor0
----
3009
3009
3009

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

query I rowsort
SELECT + 97 + - - 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb

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

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

query II rowsort
SELECT + col1 AS col2, + col2 + col2 FROM tab0 AS cor0
----
1
198
21
20
81
94

onlyif mysql # aggregate syntax: 
query II rowsort label-990
SELECT DISTINCT 85 AS col2, COUNT( * ) AS col2 FROM tab2 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-990
SELECT DISTINCT 85 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
85
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR + - col0 - - col1 * - + 5 NOT BETWEEN + col1 - + - 72 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT + COUNT( * ) + + MIN( - col2 ) + SUM( col0 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-992
SELECT + COUNT ( * ) + + MIN ( - col2 ) + SUM ( col0 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + COUNT( * ) + + + 31 * + COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-993
SELECT + COUNT ( * ) + + + 31 * + COUNT ( * ) FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 40 col0, - 77 FROM tab0 AS cor0
----
-40
-77

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * col0 * + col2 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
23970912
25150284
38291412

query I rowsort
SELECT DISTINCT + + 5 + + + 10 AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT 5 < - 58
----
-15
-87
-97

query I rowsort
SELECT + + col0 FROM tab0 WHERE NOT - + ( - col0 ) >= + - col1
----

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + - 93 FROM tab0 AS cor0 WHERE ( + - ( - 52 ) IS NOT NULL )
----
-6
-78
4

query I rowsort
SELECT - 38 + - + col2 + + - col1 FROM tab1 AS cor0
----
-102
-148
-153

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1011
SELECT - - 21 * + COUNT( * ) + + + COUNT( * ) + - + CAST( - 73 AS SIGNED ) AS col2 FROM tab2 cor0
----
139

skipif mysql # not compatible
query I rowsort label-1011
SELECT - - 21 * + COUNT ( * ) + + + COUNT ( * ) + - + CAST ( - 73 AS INTEGER ) AS col2 FROM tab2 cor0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL - ( + COUNT( * ) ) * + MAX( + 93 ) FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL - ( + COUNT ( * ) ) * + MAX ( + 93 ) FROM tab1 cor0
----
-279

query I rowsort
SELECT ALL 94 * 73 AS col0 FROM tab1 cor0
----
6862
6862
6862

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1014
SELECT * FROM tab0 AS cor0 WHERE - 84 / col0 * - - CAST( NULL AS SIGNED ) > + col0 * col2 / + - 4
----

skipif mysql # not compatible
query III rowsort label-1014
SELECT * FROM tab0 AS cor0 WHERE - 84 / col0 * - - CAST ( NULL AS INTEGER ) > + col0 * col2 / + - 4
----

query I rowsort
SELECT DISTINCT + - col0 + + - 52 * col2 * col2 FROM tab0 AS cor0
----
-114883
-509749
-5287

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT - - COUNT( * ), 82 + + 33 + + 61 AS col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
3
176

skipif mysql # not compatible
query II rowsort label-1016
SELECT - - COUNT ( * ), 82 + + 33 + + 61 AS col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
3
176

query II rowsort
SELECT ALL col0, + 82 * - col1 AS col2 FROM tab1 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - SUM( + + 42 ) AS col2 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-1018
SELECT - SUM ( + + 42 ) AS col2 FROM tab0
----
-126

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 8 + + col0 AS col0 FROM tab1 AS cor0
----
59
93
99

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

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

query I rowsort
SELECT + 95 * + 81 * - 70 AS col0 FROM tab1 AS cor0
----
-538650
-538650
-538650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL SUM( ALL - + 72 ) * + COUNT( + col2 ) * + - 63 + COUNT( * ) FROM tab2
----
40827

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL SUM ( ALL - + 72 ) * + COUNT ( + col2 ) * + - 63 + COUNT ( * ) FROM tab2
----
40827

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - SUM( ALL + 87 ) + 55 + + + COUNT( * ) * + + 56 + + - COUNT( col1 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-1031
SELECT - SUM ( ALL + 87 ) + 55 + + + COUNT ( * ) * + + 56 + + - COUNT ( col1 ) FROM tab1
----
-41

query I rowsort
SELECT ALL - 14 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR - col0 NOT IN ( - - col1 + 22 * + - col2, - 6 )
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col2 BETWEEN col2 + 78 + + col2 AND NULL OR + 49 IS NULL
----
-23
-40
-58

query I rowsort
SELECT 0 + ( - col1 ) + - col0 AS col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ( col2 ) + - col0 + + col1 AS col1 FROM tab0
----
-56
113
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 col1, + col0 - - - 81 + + 34 FROM tab0 AS cor0
----
7
-32
7
40
7
50

query II rowsort
SELECT + - 33, + ( + + ( - 33 ) ) FROM tab1 AS cor0
----
-33
-33
-33
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL - - MIN( ALL - col2 ) FROM tab0 WHERE ( NOT ( NULL ) >= col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - - MIN ( ALL - col2 ) FROM tab0 WHERE ( NOT ( NULL ) >= col0 )
----
NULL

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE 67 > NULL
----

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

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

query II rowsort
SELECT DISTINCT + - col0, - 5 AS col2 FROM tab2 WHERE ( - col1 IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT + COUNT( * ) + - 88 AS col0 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-1043
SELECT + COUNT ( * ) + - 88 AS col0 FROM tab1 AS cor0
----
-85

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT DISTINCT - + 53 - CAST( SUM( - 2 ) AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1046
SELECT DISTINCT - + 53 - CAST ( SUM ( - 2 ) AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-47

query I rowsort
SELECT - col1 * + ( + + 83 ) AS col1 FROM tab0
----
-1743
-6723
-83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL - 73 FROM tab2 AS cor0 WHERE NOT ( + 23 NOT IN ( col0, + col1, - 65, + col1, - + CAST( NULL AS SIGNED ) / - - col1 + + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL - 73 FROM tab2 AS cor0 WHERE NOT ( + 23 NOT IN ( col0, + col1, - 65, + col1, - + CAST ( NULL AS INTEGER ) / - - col1 + + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * - col0 * + - col1 col0 FROM tab2 AS cor0
----
12615680
21858750
2482068

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 * - ( + 31 ) + + 45 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT + 27 * + ( - COUNT( * ) ) AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1055
SELECT + 27 * + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT ALL + ( + + SUM( ALL 54 ) ) FROM tab1 cor0
----
162

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL + ( + + SUM ( ALL 54 ) ) FROM tab1 cor0
----
162

query I rowsort
SELECT + + 40 + 18 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT COUNT( * ) + - - MIN( - + col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1060
SELECT COUNT ( * ) + - - MIN ( - + col2 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT - col0 + 98 FROM tab1 cor0
----
13
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1062
SELECT ALL - CAST( NULL AS SIGNED ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL - CAST ( NULL AS INTEGER ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1063
SELECT DISTINCT - + col0 DIV + col0, - col2 AS col0 FROM tab0 AS cor0 WHERE - 45 IS NOT NULL
----
-1
-10
-1
-47
-1
-99

skipif mysql # not compatible
query II rowsort label-1063
SELECT DISTINCT - + col0 / + col0, - col2 AS col0 FROM tab0 AS cor0 WHERE - 45 IS NOT NULL
----
-1
-10
-1
-47
-1
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - 96 col0 FROM tab0 AS cor0
----
-4512
-9504
-960

query II rowsort
SELECT DISTINCT col0 * + col0, ( col1 ) FROM tab2 AS cor0
----
2116
51
4096
77
5625
67

query I rowsort
SELECT ALL + ( + 23 ) + + 91 AS col0 FROM tab1 AS cor0
----
114
114
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT - col1 + + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT - col1 + + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-16
-20
-48

query I rowsort
SELECT DISTINCT - 5 + - col0 FROM tab0
----
-102
-20
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT COUNT( * ) * + 99 FROM tab1, tab1 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-1069
SELECT COUNT ( * ) * + 99 FROM tab1, tab1 AS cor0
----
891

query I rowsort
SELECT ALL col1 + - - col1 AS col1 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1071
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1071
SELECT DISTINCT CAST ( NULL AS REAL ) + + col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT 90 * - + ( COUNT( * ) ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-1072
SELECT 90 * - + ( COUNT ( * ) ) FROM tab0
----
-270

query II rowsort
SELECT col1 * - col0 * 14 * + 91 * + col1, + col1 FROM tab1 AS cor0
----
-12734904
14
-256098206
47
-2707250
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab2 AS cor0 WHERE 5 * col0 IS NOT NULL
----
-73
-73
-73

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

query I rowsort
SELECT 5 FROM tab0 AS cor0 WHERE + ( + col1 ) * 30 + + 47 + - + 83 IN ( - 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT + CAST( 50 AS SIGNED ) * col0 * - col1 + col1 * col1 * + - ( - - ( - col0 ) ) FROM tab2 AS cor0
----
133056
2346
85425

skipif mysql # not compatible
query I rowsort label-1082
SELECT + CAST ( 50 AS INTEGER ) * col0 * - col1 + col1 * col1 * + - ( - - ( - col0 ) ) FROM tab2 AS cor0
----
133056
2346
85425

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT MIN( ALL - 13 ) AS col1, - COUNT( * ) * 60 AS col1 FROM tab0
----
-13
-180

skipif mysql # not compatible
query II rowsort label-1084
SELECT MIN ( ALL - 13 ) AS col1, - COUNT ( * ) * 60 AS col1 FROM tab0
----
-13
-180

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

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

query I rowsort
SELECT DISTINCT + col0 * - + 13 + - - col1 FROM tab1 AS cor0
----
-1100
-1136
-649

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

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

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( - 21 * ( - - col2 ) / + + col1 + + - col0 ) IS NULL
----
51
85
91

query I rowsort
SELECT 98 * - col0 AS col2 FROM tab1
----
-4998
-8330
-8918

query I rowsort
SELECT ALL + col1 + + 45 AS col1 FROM tab1 AS cor0
----
50
59
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - - 17 NOT BETWEEN + col1 AND + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT ALL - + col0 * + CAST( 55 AS SIGNED ) + 13 AS col2 FROM tab2 cor0
----
-2517
-3507
-4112

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - + col0 * + CAST ( 55 AS INTEGER ) + 13 AS col2 FROM tab2 cor0
----
-2517
-3507
-4112

query II rowsort
SELECT - col0 * - + col0 + + col0, + 48 AS col1 FROM tab2 AS cor0
----
2162
48
4160
48
5700
48

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

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

query I rowsort
SELECT DISTINCT - col1 + col2 + 58 AS col0 FROM tab2
----
21
30
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT ALL 1 * + + 40 DIV - col1 + - ( + col0 ) * + col2 AS col0 FROM tab0
----
-705
-871
-9643

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL 1 * + + 40 / - col1 + - ( + col0 ) * + col2 AS col0 FROM tab0
----
-705
-871
-9643

query I rowsort
SELECT - 9 + + col0 FROM tab0
----
6
78
88

query I rowsort
SELECT DISTINCT - 7 FROM tab2 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT - MAX( col0 ) + - 53 AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-1105
SELECT - MAX ( col0 ) + - 53 AS col0 FROM tab0
----
-150

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

query II rowsort
SELECT DISTINCT col0 AS col2, + 3 * 96 FROM tab1 AS cor0
----
51
288
85
288
91
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1108
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1, - 6 FROM tab0
----
15
-6
87
-6
97
-6

skipif mysql # not compatible
query II rowsort label-1108
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1, - 6 FROM tab0
----
15
-6
87
-6
97
-6

query II rowsort
SELECT + 97, + 69 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
97
69
97
69
97
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 col1, - col2 FROM tab0 WHERE NOT ( NOT ( - col0 NOT IN ( 95, - col0, col0, 45 - - col1, - col0 ) ) )
----

query I rowsort
SELECT DISTINCT 81 * 2 * col2 AS col1 FROM tab0
----
16038
1620
7614

query I rowsort
SELECT 50 * col0 * - - col0 * + 17 FROM tab2
----
1798600
3481600
4781250

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

query I rowsort
SELECT ALL - ( + + col1 ) * 78 * - col0 FROM tab0
----
142506
7566
94770

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - MIN( ALL col1 ) col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1116
SELECT - MIN ( ALL col1 ) col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT 81 * + - col0 - + col0 + + - col1 FROM tab1 AS cor0
----
-4196
-6975
-7509

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col1 * + col1 - - col0 + 36 * col2 ) > ( NULL )
----

query II rowsort
SELECT ALL - col2 AS col0, - 93 - + col2 FROM tab0 AS cor0
----
-10
-103
-47
-140
-99
-192

query I rowsort
SELECT ALL + 14 * 26 AS col2 FROM tab2
----
364
364
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT SUM( DISTINCT 54 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1121
SELECT SUM ( DISTINCT 54 ) AS col1 FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN ( + col0 + col2 ) AND 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1123
SELECT DISTINCT * FROM tab0 WHERE col1 * CAST( 40 AS SIGNED ) NOT BETWEEN ( col1 ) AND ( + 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1123
SELECT DISTINCT * FROM tab0 WHERE col1 * CAST ( 40 AS INTEGER ) NOT BETWEEN ( col1 ) AND ( + 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 69 + + col1 AS col2 FROM tab1
----
116
74
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT DISTINCT + col2 DIV + 85 + - 14 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT + col2 / + 85 + - 14 FROM tab2
----
-14

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

query I rowsort
SELECT + 11 * 72 FROM tab1
----
792
792
792

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1128
SELECT ALL - COUNT ( - col0 ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + COUNT( * ) * - 51 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-1129
SELECT + COUNT ( * ) * - 51 FROM tab0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 43 col2 FROM tab2
----
-101
-66
-83

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

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

query I rowsort
SELECT DISTINCT col0 - + ( 46 ) * + 46 FROM tab2 WHERE NOT ( col2 ) > ( 47 )
----
-2052
-2070

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT 43 * - SUM( ALL + col2 ) AS col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-5203

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT 43 * - SUM ( ALL + col2 ) AS col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
-5203

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

query I rowsort
SELECT DISTINCT + AVG ( ALL + col0 ) AS col0 FROM tab1 WHERE NOT ( + 91 + col2 * + col0 ) <> + ( 15 )
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( 21 * ( ( - col1 ) ) ) IN ( 82 + - col2 / 74 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT - ( col0 ) DIV col0 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1139
SELECT - ( col0 ) / col0 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT - 67 DIV - col1 AS col0 FROM tab1
----
1
13
4

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 67 / - col1 AS col0 FROM tab1
----
1
13
4

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT 61 + MIN( DISTINCT - 71 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1144
SELECT 61 + MIN ( DISTINCT - 71 ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 = ( NULL )
----

query I rowsort
SELECT ALL 46 - col1 AS col1 FROM tab0 cor0
----
-35
25
45

query I rowsort
SELECT DISTINCT - col0 + - col0 * + ( col1 * - col2 + - col0 ) FROM tab2 AS cor0
----
201152
297000
56028

query I rowsort
SELECT ALL 73 * 31 FROM tab2 AS cor0
----
2263
2263
2263

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 52 * 82 + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT ALL COUNT( * ) + - 78 FROM tab0 AS cor0 CROSS JOIN tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL COUNT ( * ) + - 78 FROM tab0 AS cor0 CROSS JOIN tab0
----
-69

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL - MAX( - 97 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - MAX ( - 97 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + 77 * + COUNT( * ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + 77 * + COUNT ( * ) FROM tab2 AS cor0
----
231

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN ( - 80 ) AND ( NULL )
----

query I rowsort
SELECT + 96 * + col0 AS col0 FROM tab1 AS cor0
----
4896
8160
8736

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT ALL - 77 DIV + - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - 77 / + - col2 FROM tab1
----
0
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 48 * + 48 + - col2 * col1 ) >= col1
----
46
51
23

query I rowsort
SELECT + col2 + + col2 / + ( col2 * + col0 ) FROM tab0 WHERE NOT col0 NOT IN ( col0 / col2 )
----

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

query I rowsort
SELECT + col2 * - col0 * - 84 FROM tab2
----
215040
365400
88872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT MAX( - col0 ) DIV 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT MAX ( - col0 ) / 71 FROM tab2
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT - col1 / + 98 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + + 62 * 55 FROM tab0
----
3411
3431
3491

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT - col1 + - col0 NOT BETWEEN - col1 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT - col1 + - col0 NOT BETWEEN - col1 AND col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 65 - - col2 BETWEEN NULL AND ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= + col0 * - 97 + ( - 94 - 4 * col2 ) * + 69
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 54 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 15 FROM tab2
----
46
15
64
15
75
15

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( - 42 + + CAST( NULL AS SIGNED ) * - ( 24 ) ) < col2
----

skipif mysql # not compatible
query I rowsort label-1182
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( - 42 + + CAST ( NULL AS INTEGER ) * - ( 24 ) ) < col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <> ( - 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 + + ( 82 ) * + 32 AS col1 FROM tab2 AS cor0
----
2549
2560
2578

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + + col1 * ( - - ( - col1 ) ) - - col1 FROM tab1
----
-2094
-86
39

query I rowsort
SELECT col0 + - + col1 + 20 FROM tab2
----
15
28
7

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

query I rowsort
SELECT 14 * + 71 * + 83 + - 24 FROM tab2
----
82478
82478
82478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT + ( + COUNT( * ) ) DIV 65 FROM tab2 WHERE NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT + ( + COUNT ( * ) ) / 65 FROM tab2 WHERE NULL NOT IN ( col2 )
----
0

query II rowsort
SELECT - 71 + + + col2, - col2 AS col0 FROM tab0
----
-24
-47
-61
-10
28
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL MAX( ALL 86 ) * + COUNT( * ) * - - MAX( + col1 ) + ( MIN( ALL col1 ) ) col2 FROM tab0
----
20899

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT ALL MAX ( ALL 86 ) * + COUNT ( * ) * - - MAX ( + col1 ) + ( MIN ( ALL col1 ) ) col2 FROM tab0
----
20899

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 63 BETWEEN ( - - 1 ) AND + 82
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT DISTINCT - 92 DIV 71 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - 92 / 71 FROM tab2 AS cor0
----
-1

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

query I rowsort
SELECT ALL - col1 + 88 FROM tab0 WHERE - col1 IN ( 1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 65 / + col1 + + 13 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL 28 * + COUNT( * ) * + - 53 col0 FROM tab1
----
-4452

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1209
SELECT ALL 28 * + COUNT ( * ) * + - 53 col0 FROM tab1
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT + 40 + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2, - ( - + col2 ) )
----
40

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT + 40 + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col2, - ( - + col2 ) )
----
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 ) > ( col2 + - col2 )
----

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

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

query I rowsort
SELECT - 78 * + col1 * - - col1 + - - col1 FROM tab0 AS cor0
----
-34377
-511677
-77

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

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

query II rowsort
SELECT 7 AS col1, + col0 * 89 AS col2 FROM tab1 AS cor0
----
7
4539
7
7565
7
8099

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( - col2 ) AND + col0 * + - ( 20 ) + 62
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT 46 * col0 * - 70 + col1 IS NULL
----
51
85
91

query I rowsort
SELECT - + 78 * + - col1 AS col2 FROM tab2 AS cor0
----
3978
5226
6006

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > ( col0 )
----
85
5
59
91
47
68

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

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

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

query I rowsort
SELECT DISTINCT - 87 + - 53 * 56 + 85 FROM tab0 AS cor0
----
-2970

query I rowsort
SELECT DISTINCT + + col2 + + 34 AS col0 FROM tab2 AS cor0
----
57
74
92

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

query I rowsort
SELECT + ( col1 ) * + 13 AS col0 FROM tab1 AS cor0
----
182
611
65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT + + 82 DIV - col1 FROM tab0 AS cor0
----
-1
-3
-82

skipif mysql # not compatible
query I rowsort label-1228
SELECT + + 82 / - col1 FROM tab0 AS cor0
----
-1
-3
-82

query I rowsort
SELECT ALL + col2 * + - 1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - + col2 * col0 * + 32 AS col0 FROM tab1 AS cor0
----
-156672
-160480
-198016

query I rowsort
SELECT DISTINCT + + col1 + + 83 AS col2 FROM tab0 AS cor0
----
104
164
84

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

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

query I rowsort
SELECT ALL - 14 * - + 60 * col0 * - col1 FROM tab0 cor0
----
-1020600
-1534680
-81480

query II rowsort
SELECT - col0 AS col1, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + 35 AS col2 FROM tab2
----
-23
-5
12

query I rowsort
SELECT ALL col2 - - + 26 FROM tab1
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT 67 - + ( + MIN( ALL col1 ) ) * - 27 + - + COUNT( * ) * 52 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT 67 - + ( + MIN ( ALL col1 ) ) * - 27 + - + COUNT ( * ) * 52 FROM tab0
----
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + + 70 )
----

query I rowsort
SELECT ALL - col1 - - - 18 FROM tab2
----
-69
-85
-95

query I rowsort
SELECT col2 + + - col0 * + - 46 AS col0 FROM tab2
----
2139
2984
3508

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - 93 * + COUNT ( * ) FROM tab1 WHERE col0 IS NULL
----
0

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 20 > NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - 11 FROM tab2
----
-253
-440
-638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1246
SELECT ALL SUM( - 22 ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL SUM ( - 22 ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT ( - - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1247
SELECT ( - - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 29 NOT BETWEEN + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + 29 FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + 29 FROM tab1 cor0
----
20

query I rowsort
SELECT + 92 * - col2 AS col1 FROM tab1
----
-5428
-6256
-8832

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT COUNT( * ) + + 31 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-1259
SELECT COUNT ( * ) + + 31 FROM tab1
----
34

query I rowsort
SELECT ( 59 ) + ( - col1 ) + - 26 + + col0 FROM tab1
----
113
70
77

query I rowsort
SELECT DISTINCT - col1 * + 34 FROM tab1
----
-1598
-170
-476

query I rowsort
SELECT - 86 FROM tab1 WHERE + col2 IS NOT NULL AND NOT 64 <> 78 + - col2
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT 52 DIV - 96 + - + 39 + - col1 + + col0 + col2 AS col2 FROM tab2 cor0
----
-12
-21
27

skipif mysql # not compatible
query I rowsort label-1264
SELECT 52 / - 96 + - + 39 + - col1 + + col0 + col2 AS col2 FROM tab2 cor0
----
-12
-21
27

query I rowsort
SELECT ALL col0 + - + col1 AS col0 FROM tab0
----
-66
66
96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1267
SELECT ALL 62 DIV + + COUNT( * ) + 79 + COUNT( * ) AS col2, 28 AS col1 FROM tab1 cor0
----
102
28

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL 62 / + + COUNT ( * ) + 79 + COUNT ( * ) AS col2, 28 AS col1 FROM tab1 cor0
----
102
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1268
SELECT ALL - col0 * - ( 17 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( + + ( col2 ) * col2 * col1 / + - col2 * - col1 + ( + - CAST( - + col1 AS DECIMAL ) ) - - ( col2 + col0 ) * col2 ) >= ( NULL ) AND - col1 >= col0 + + 38
----

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - col0 * - ( 17 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( + + ( col2 ) * col2 * col1 / + - col2 * - col1 + ( + - CAST ( - + col1 AS REAL ) ) - - ( col2 + col0 ) * col2 ) >= ( NULL ) AND - col1 >= col0 + + 38
----

query II rowsort
SELECT - col0 + + col2, col1 AS col0 FROM tab0 AS cor0
----
-77
21
2
1
32
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT - ( col1 ) + + CAST( - - 91 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
44
77
86

skipif mysql # not compatible
query I rowsort label-1270
SELECT - ( col1 ) + + CAST ( - - 91 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT col0 * + + ( CAST( + 67 AS SIGNED ) ) FROM tab1
----
3417
5695
6097

skipif mysql # not compatible
query I rowsort label-1271
SELECT col0 * + + ( CAST ( + 67 AS INTEGER ) ) FROM tab1
----
3417
5695
6097

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1273
SELECT + col2 * - 88 + - + col2 * + col2 * + 68 * - 19 + col2 FROM tab1 WHERE NOT + - col1 * CAST( NULL AS SIGNED ) * 65 + - - col2 > + + col1
----

skipif mysql # not compatible
query I rowsort label-1273
SELECT + col2 * - 88 + - + col2 * + col2 * + 68 * - 19 + col2 FROM tab1 WHERE NOT + - col1 * CAST ( NULL AS INTEGER ) * 65 + - - col2 > + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT COUNT( * ) * + MAX( ALL 60 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-1274
SELECT COUNT ( * ) * + MAX ( ALL 60 ) FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + MIN( ALL 17 ) AS col1 FROM tab0, tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1275
SELECT + MIN ( ALL 17 ) AS col1 FROM tab0, tab1 AS cor0
----
17

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1277
SELECT * FROM tab1 WHERE NOT - 89 NOT BETWEEN ( NULL ) AND - CAST( + col2 AS DECIMAL ) + - + col2
----

skipif mysql # not compatible
query III rowsort label-1277
SELECT * FROM tab1 WHERE NOT - 89 NOT BETWEEN ( NULL ) AND - CAST ( + col2 AS REAL ) + - + col2
----

query I rowsort
SELECT - col0 * - col2 + + + col1 AS col1 FROM tab0 AS cor0
----
786
891
9604

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

skipif mysql # not compatible
query II rowsort label-1279
SELECT + MAX ( ALL - - col2 ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
99
3

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - - col0 NOT BETWEEN - + col2 * + + 62 AND ( NULL )
----
64
77
40
75
67
58

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> + + col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1284
SELECT ALL - COUNT ( * ) AS col0, - 30 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9
-30

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT ALL CAST( col2 AS SIGNED ) * col2 + + 5 AS col1 FROM tab2 AS cor0
----
1605
3369
534

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL CAST ( col2 AS INTEGER ) * col2 + + 5 AS col1 FROM tab2 AS cor0
----
1605
3369
534

query I rowsort
SELECT ALL 38 + + + col1 FROM tab1 AS cor0
----
43
52
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT - + MAX( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE + col0 * - col1 <> + col2 + + - col1
----
46

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE + col0 * - col1 <> + col2 + + - col1
----
46

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

query II rowsort
SELECT + 48 + ( + col2 ) AS col2, - 93 * + - col2 FROM tab1 AS cor0
----
107
5487
116
6324
144
8928

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

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

query I rowsort
SELECT + 58 FROM tab0 cor0 WHERE NOT 21 * col1 IS NULL
----
58
58
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT DISTINCT + col1 * - ( - 33 ) - col2 DIV 84 - + - 96 - - 17 col1 FROM tab0 AS cor0 WHERE 94 NOT IN ( - + col1 )
----
145
2786
806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1296
SELECT DISTINCT + col1 * - ( - 33 ) - col2 / 84 - + - 96 - - 17 col1 FROM tab0 AS cor0 WHERE 94 NOT IN ( - + col1 )
----
145
2786
806

query II rowsort
SELECT ALL - col1 * col1 AS col1, col1 + + 91 AS col0 FROM tab1
----
-196
105
-2209
138
-25
96

query I rowsort
SELECT DISTINCT col2 + - 77 FROM tab1
----
-18
-9
19

query I rowsort
SELECT ALL + 52 * + 9 + + col2 AS col1 FROM tab0
----
478
515
567

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT ALL + + 25 DIV + MIN( DISTINCT - 12 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + + 25 / + MIN ( DISTINCT - 12 ) FROM tab1 AS cor0
----
-2

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

skipif mysql # not compatible
query I rowsort label-1303
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col1 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1305
SELECT ALL + COUNT( * ) * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

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

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

query II rowsort
SELECT + - 89 AS col2, - 14 AS col2 FROM tab0 cor0
----
-89
-14
-89
-14
-89
-14

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

query I rowsort
SELECT - 36 FROM tab0 AS cor0 WHERE NOT col2 + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1311
SELECT ALL col2, col2 DIV + col0 FROM tab2 cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL col2, col2 / + col0 FROM tab2 cor0
----
23
0
40
0
58
0

query I rowsort
SELECT ALL + col2 * + col2 * + + col1 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) IN ( - + col2, - col0 / + + 62 * - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT ALL 94 AS col1, 95 AS col1 FROM tab0
----
94
95
94
95
94
95

query II rowsort
SELECT DISTINCT col1, col0 * + 2 AS col2 FROM tab1
----
14
102
47
182
5
170

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1317
SELECT ALL - col2, col2 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
9 values hashing to c77121c2fec0aea06ef03a815831586f

skipif mysql # not compatible
query III rowsort label-1317
SELECT ALL - col2, col2 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
9 values hashing to c77121c2fec0aea06ef03a815831586f

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT - COUNT( ALL + - col0 ), 33 AS col0 FROM tab1 WHERE NOT - ( + col0 ) NOT IN ( + 33 )
----
0
33

skipif mysql # not compatible
query II rowsort label-1321
SELECT - COUNT ( ALL + - col0 ), 33 AS col0 FROM tab1 WHERE NOT - ( + col0 ) NOT IN ( + 33 )
----
0
33

query I rowsort
SELECT + col1 * - 26 + + + col2 FROM tab2 WHERE NOT - + 39 + - col1 IS NOT NULL
----

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

query I rowsort
SELECT ALL 41 * 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 + col2 * + - 54 AS col0 FROM tab1 AS cor0
----
-3245
-3740
-5280

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

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

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

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

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

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

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

query I rowsort
SELECT col1 * col0 + - + col0 + 2 + col2 + - + 88 - - col2 + - ( + - col2 ) * - col1 + - col2 * col0 - col0 FROM tab1
----
-5023
-5239
-5522

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1331
SELECT ALL COUNT ( * ) + 80 col1 FROM tab1
----
83

query I rowsort
SELECT ALL - ( col2 ) * col1 - - - col1 FROM tab0
----
-100
-231
-3888

query I rowsort
SELECT 40 * - col1 AS col2 FROM tab2 AS cor0
----
-2040
-2680
-3080

query I rowsort
SELECT + col2 * col2 - col0 FROM tab2
----
1536
3289
483

query I rowsort
SELECT ALL + col1 + ( + + col2 ) * + col0 FROM tab1
----
4910
5020
6235

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

query I rowsort
SELECT 77 * - + col2 AS col0 FROM tab2 AS cor0
----
-1771
-3080
-4466

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

query I rowsort
SELECT DISTINCT - ( + col0 ) - col1 - col0 * - col1 * - + 13 FROM tab0 AS cor0 WHERE NOT NULL = col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * + - ( - + col0 ) * col2 col2 FROM tab2 AS cor0
----
-148480
-252300
-61364

query I rowsort
SELECT + col1 * 37 AS col1 FROM tab0
----
2997
37
777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) * 15 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 15 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT - MIN( + 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-1344
SELECT - MIN ( + 45 ) FROM tab1
----
-45

query I rowsort
SELECT - + 84 FROM tab2 cor0
----
-84
-84
-84

query II rowsort
SELECT + 38, - 34 AS col0 FROM tab1 AS cor0
----
38
-34
38
-34
38
-34

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

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

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

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

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

query I rowsort
SELECT + col2 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT - + SUM( DISTINCT col1 ) + - 71 col2 FROM tab1 AS cor0
----
-137

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1351
SELECT - + SUM ( DISTINCT col1 ) + - 71 col2 FROM tab1 AS cor0
----
-137

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

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

query I rowsort
SELECT + - col0 + + - 46 AS col2 FROM tab1 AS cor0
----
-131
-137
-97

query II rowsort
SELECT DISTINCT + - col0, 28 * - - col2 AS col0 FROM tab1 AS cor0
----
-51
2688
-85
1652
-91
1904

query II rowsort
SELECT + 76 AS col0, - 10 AS col2 FROM tab2 AS cor0
----
76
-10
76
-10
76
-10

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

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

skipif mysql # not compatible
query I rowsort label-1357
SELECT MAX ( DISTINCT - 80 ) AS col2 FROM tab2 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1358
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1358
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + + 86 FROM tab2 AS cor0
----
132
150
161

query I rowsort
SELECT + col1 * + col1 FROM tab2 WHERE NULL IS NULL
----
2601
4489
5929

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + 24 + ( + - col2 ) - + col2 + + - col1 * - 85 + + 51 + - col2 * - 40 * col2 - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
392001
5819
95145

skipif mysql # not compatible
query I rowsort label-1363
SELECT + 24 + ( + - col2 ) - + col2 + + - col1 * - 85 + + 51 + - col2 * - 40 * col2 - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
392001
5819
95145

query I rowsort
SELECT 81 + + col1 AS col0 FROM tab2 AS cor0
----
132
148
158

query I rowsort
SELECT - col0 + col0 + - 64 - ( + - col0 ) * + col0 FROM tab2 AS cor0
----
2052
4032
5561

query I rowsort
SELECT ALL + col2 * 76 - - + 83 FROM tab1 AS cor0
----
4567
5251
7379

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE ( - 86 IS NOT NULL )
----
46
64
75

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

query I rowsort
SELECT DISTINCT 61 + + - col0 FROM tab1
----
-24
-30
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1370
SELECT DISTINCT + 73 * MAX( + col0 ) AS col2, - 20 FROM tab1 AS cor0
----
6643
-20

skipif mysql # not compatible
query II rowsort label-1370
SELECT DISTINCT + 73 * MAX ( + col0 ) AS col2, - 20 FROM tab1 AS cor0
----
6643
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT SUM( + + col0 ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-1371
SELECT SUM ( + + col0 ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
555

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 * + + col1 FROM tab0 AS cor0
----
-5346
1386
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT - COUNT( col1 ) * + COUNT( col0 ) * - 48 FROM tab2 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT - COUNT ( col1 ) * + COUNT ( col0 ) * - 48 FROM tab2 AS cor0
----
432

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1376
SELECT * FROM tab2 WHERE NOT ( NOT NULL = + ( + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-1376
SELECT * FROM tab2 WHERE NOT ( NOT NULL = + ( + CAST ( NULL AS REAL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL - 1 DIV col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - 1 / col1 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1378
SELECT - 67 DIV + col2 AS col1, col0 + 4 col1 FROM tab0
----
-1
19
-6
91
0
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1378
SELECT - 67 / + col2 AS col1, col0 + 4 col1 FROM tab0
----
-1
19
-6
91
0
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab1 WHERE NOT ( ( + col1 >= - col1 ) )
----

query I rowsort
SELECT - 33 * col2 FROM tab0
----
-1551
-3267
-330

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 * - - 1 < + + 70
----

query II rowsort
SELECT col0 * - col2 AS col0, + 92 FROM tab2
----
-1058
92
-2560
92
-4350
92

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

query I rowsort
SELECT + 68 FROM tab0 WHERE NOT ( NOT NULL >= ( NULL ) )
----

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL col1 * + 62 AS col2 FROM tab2 AS cor0
----
3162
4154
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + COUNT( * ) + - ( - 25 ) AS col0 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + COUNT ( * ) + - ( - 25 ) AS col0 FROM tab0 cor0
----
28

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 + - col1, + col2, col0, + + col1, col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1389
SELECT DISTINCT - - col1 + + CAST( NULL AS DECIMAL ) AS col1, - col1 * + 51 * + - 75 FROM tab2 cor0
----
NULL
195075
NULL
256275
NULL
294525

skipif mysql # not compatible
query II rowsort label-1389
SELECT DISTINCT - - col1 + + CAST ( NULL AS REAL ) AS col1, - col1 * + 51 * + - 75 FROM tab2 cor0
----
NULL
195075
NULL
256275
NULL
294525

query I rowsort
SELECT ALL col1 * 80 + - - col2 + + col0 FROM tab1
----
1267
3919
544

query I rowsort
SELECT ALL + col2 + - 54 * - - col2 * + col0 + - 14 FROM tab1
----
-264302
-270765
-334098

query I rowsort
SELECT ALL + 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL + - col1 DIV col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + - col1 / col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-24
-41
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 <> - col1 * - col0 * 3 * 6 + + col1 + + - col1 * 24 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 <> - col1 * - col0 * 3 * 6 + + col1 + + - col1 * 24 * + col2
----
0

query I rowsort
SELECT + col0 + + col0 - col0 * 51 AS col1 FROM tab0 AS cor0
----
-4263
-4753
-735

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT col1 DIV 83 + col1 + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT col1 / 83 + col1 + - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 + + col0 FROM tab0 WHERE NULL < col1
----

query I rowsort
SELECT - 46 * - 37 + ( + 21 ) FROM tab0
----
1723
1723
1723

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - + 49 col0 FROM tab2
----
100
116
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1402
SELECT DISTINCT + col2 * - + CAST( - col2 AS SIGNED ) * - - 52 + - col2 FROM tab2 AS cor0
----
174870
27485
83160

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT + col2 * - + CAST ( - col2 AS INTEGER ) * - - 52 + - col2 FROM tab2 AS cor0
----
174870
27485
83160

query I rowsort
SELECT ALL + col1 + - 61 * - col1 * col0 + + 96 FROM tab1 cor0
----
26026
261040
43664

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

query I rowsort
SELECT DISTINCT 29 * + - 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-783

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

skipif mysql # not compatible
query III rowsort label-1406
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN - + CAST ( + col0 AS INTEGER ) + + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-1408
SELECT + - COUNT( ALL - col2 ), + 18 * - - 78 AS col2 FROM tab2 AS cor0
----
-3
1404

skipif mysql # not compatible
query II rowsort label-1408
SELECT + - COUNT ( ALL - col2 ), + 18 * - - 78 AS col2 FROM tab2 AS cor0
----
-3
1404

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

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

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

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

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, 39 FROM tab2
----
51
39
67
39
77
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1414
SELECT DISTINCT - 0 * - + COUNT( * ) + - 18 AS col1, COUNT( * ) + - COUNT( * ) - + 76 FROM tab2 AS cor0
----
-18
-76

skipif mysql # not compatible
query II rowsort label-1414
SELECT DISTINCT - 0 * - + COUNT ( * ) + - 18 AS col1, COUNT ( * ) + - COUNT ( * ) - + 76 FROM tab2 AS cor0
----
-18
-76

query I rowsort
SELECT ALL 43 + - - col2 AS col2 FROM tab1 WHERE NOT + 89 / - col1 IS NOT NULL
----

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 - - col1 + - col2 + - ( 4 ) FROM tab1
----
-116
-137
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + - MIN( DISTINCT 23 ) AS col2 FROM tab0 WHERE col2 * - 92 < + col1 * col2 - 10
----
-23

skipif mysql # not compatible
query I rowsort label-1424
SELECT + - MIN ( DISTINCT 23 ) AS col2 FROM tab0 WHERE col2 * - 92 < + col1 * col2 - 10
----
-23

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( 31 + col2 + - col0 < - + col1 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT - 10 + COUNT( * ) + + MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1427
SELECT - 10 + COUNT ( * ) + + MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1428
SELECT DISTINCT - + CAST( - + col1 AS DECIMAL ) FROM tab2 cor0 WHERE NOT NULL <> col0
----

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - + CAST ( - + col1 AS REAL ) FROM tab2 cor0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT + + 74 * 39 AS col1 FROM tab1 AS cor0
----
2886
2886
2886

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

query I rowsort
SELECT ALL - 96 * + + col0 FROM tab0
----
-1440
-8352
-9312

query I rowsort
SELECT - 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1438
SELECT COUNT( * ) DIV + 50 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1438
SELECT COUNT ( * ) / + 50 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + col2 * - 71 FROM tab0 AS cor0
----
-3337
-7029
-710

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

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

query I rowsort
SELECT ALL - col0 + + ( col2 ) AS col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT 74 * + 8 + + col1 FROM tab2
----
643
659
669

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT 84 + + ( + col2 ) * + CAST( - + col2 AS SIGNED ) + + 5 FROM tab2
----
-1511
-3275
-440

skipif mysql # not compatible
query I rowsort label-1444
SELECT 84 + + ( + col2 ) * + CAST ( - + col2 AS INTEGER ) + + 5 FROM tab2
----
-1511
-3275
-440

query I rowsort
SELECT ALL 41 * 32 AS col1 FROM tab0
----
1312
1312
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT DISTINCT - MAX( DISTINCT + 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - MAX ( DISTINCT + 66 ) FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 27 BETWEEN + + col1 AND NULL
----
91
47
68

query I rowsort
SELECT ALL + - 5 + - col1 + - 28 FROM tab2 AS cor0
----
-100
-110
-84

query I rowsort
SELECT DISTINCT + 2 + 43 AS col1 FROM tab1
----
45

query I rowsort
SELECT DISTINCT - 69 + + - 21 AS col0 FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1451
SELECT + SUM( - 70 ) AS col1, COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630
9

skipif mysql # not compatible
query II rowsort label-1451
SELECT + SUM ( - 70 ) AS col1, COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-630
9

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

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

query I rowsort
SELECT ALL - col2 - 18 AS col0 FROM tab0 AS cor0
----
-117
-28
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 5 + MIN( col1 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1455
SELECT 5 + MIN ( col1 ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT - + col1 DIV + col1 + - 44 + ( - - col0 ) * + + col2 * - - 60 AS col0 FROM tab0 AS cor0
----
42255
52155
576135

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - + col1 / + col1 + - 44 + ( - - col0 ) * + + col2 * - - 60 AS col0 FROM tab0 AS cor0
----
42255
52155
576135

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT + col0 DIV + 16 FROM tab0
----
0
5
6

skipif mysql # not compatible
query I rowsort label-1457
SELECT + col0 / + 16 FROM tab0
----
0
5
6

query I rowsort
SELECT ALL - 79 + + - col2 - col2 AS col2 FROM tab1
----
-197
-215
-271

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab0 AS cor0 WHERE NOT + col2 <> + col2 + - col2 * col2
----

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

query I rowsort
SELECT + + 13 AS col2 FROM tab1 cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + MIN( col0 ) + - - 0 AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1463
SELECT + MIN ( col0 ) + - - 0 AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + + 29 FROM tab1 cor0
----
29
29
29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL - COUNT( * ) + 60 AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - COUNT ( * ) + 60 AS col1 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT COUNT( * ) * - 72 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1468
SELECT COUNT ( * ) * - 72 FROM tab0
----
-216

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

query I rowsort
SELECT + col2 * + + col1 * ( - - 52 ) * col1 AS col1 FROM tab2
----
12332320
13538824
3110796

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT 18 DIV + 8 AS col0 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1472
SELECT 18 / + 8 AS col0 FROM tab0 AS cor0
----
2
2
2

query II rowsort
SELECT DISTINCT + 62 + - col0 + - 97, col2 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT + + col2 + + 14 FROM tab0 AS cor0
----
113
24
61

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT + col2 DIV + + col1 - - col2 - - col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1478
SELECT + col2 / + + col1 - - col2 - - col2 FROM tab2 AS cor0
----
116
46
80

query II rowsort
SELECT DISTINCT + + col2 * - col1 AS col0, col1 AS col2 FROM tab1 cor0
----
-1344
14
-295
5
-3196
47

query I rowsort
SELECT DISTINCT col2 * + 52 + - 37 FROM tab0 AS cor0
----
2407
483
5111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT - CAST( - 62 AS SIGNED ) * 89 * - - col1 + col1 + + 38 AS col0 FROM tab2 WHERE NOT - + 58 NOT IN ( 84, + col1, - ( + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-1481
SELECT - CAST ( - 62 AS INTEGER ) * 89 * - - col1 + col1 + + 38 AS col0 FROM tab2 WHERE NOT - + 58 NOT IN ( 84, + col1, - ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1482
SELECT ALL * FROM tab1 WHERE + + CAST( + col1 AS SIGNED ) + 13 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1482
SELECT ALL * FROM tab1 WHERE + + CAST ( + col1 AS INTEGER ) + 13 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT DISTINCT + COUNT( * ) DIV - 16 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + COUNT ( * ) / - 16 AS col0 FROM tab2
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1485
SELECT ALL - - col0 FROM tab1 WHERE NOT - col2 = col1 + + 27 + - CAST( + col2 AS DECIMAL ) * + - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - - col0 FROM tab1 WHERE NOT - col2 = col1 + + 27 + - CAST ( + col2 AS REAL ) * + - col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT - COUNT( * ) AS col1, 97 FROM tab1
----
-3
97

skipif mysql # not compatible
query II rowsort label-1486
SELECT - COUNT ( * ) AS col1, 97 FROM tab1
----
-3
97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT DISTINCT + 6 DIV + COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + 6 / + COUNT ( * ) FROM tab0
----
2

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

query I rowsort
SELECT ALL + col2 * col0 - + + col0 * + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
1911
4182
4590

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

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

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

query II rowsort
SELECT DISTINCT 60 + + + 12 + - col1 * - col1 + - ( col1 ), + col2 * - 83 AS col0 FROM tab2
----
2622
-1909
4494
-4814
5924
-3320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + 24 + col0 * col2 col2 FROM tab2
----
1034
2536
4326

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

query I rowsort
SELECT ( + 76 ) * + - 11 + col2 + + 35 + - col0 + + col1 FROM tab2
----
-748
-751
-773

query I rowsort
SELECT col0 * - 5 + col2 FROM tab0
----
-28
-386
-425

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT col1 + 29 - + col0 - - 38 DIV + 35 AS col0 FROM tab0
----
-36
-66
96

skipif mysql # not compatible
query I rowsort label-1498
SELECT col1 + 29 - + col0 - - 38 / + 35 AS col0 FROM tab0
----
-36
-66
96

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

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

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

query I rowsort
SELECT 19 AS col2 FROM tab2 AS cor0 WHERE ( NULL >= ( - ( col2 ) ) )
----

query I rowsort
SELECT ALL + 17 * + 25 AS col1 FROM tab2 cor0
----
425
425
425

query II rowsort
SELECT ALL + 16 - col0, col1 AS col0 FROM tab2 cor0
----
-30
51
-48
77
-59
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col2 = + 25
----

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 3 + - col1 + - col0 AND + col1
----

query I rowsort
SELECT - 34 FROM tab0 AS cor0 WHERE NOT col2 * - col1 IN ( col1 + - ( - col2 ), + 65 )
----
-34
-34
-34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT + + MIN( + + 82 ) col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
82

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

query II rowsort
SELECT ALL 0 * - 78 AS col2, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED ) - - 16
----
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER ) - - 16
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT + COUNT( * ) FROM tab1 WHERE NOT - - col1 * + - col0 < - - CAST( NULL AS SIGNED )
----
0

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

query I rowsort
SELECT DISTINCT 89 * 38 FROM tab2 AS cor0
----
3382

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL - MAX( + + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL - MAX ( + + col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT - col2 + col0 + CAST( col0 AS SIGNED ) * 20 FROM tab1 cor0
----
1726
1843
975

skipif mysql # not compatible
query I rowsort label-1515
SELECT - col2 + col0 + CAST ( col0 AS INTEGER ) * 20 FROM tab1 cor0
----
1726
1843
975

query I rowsort
SELECT ALL 69 * + col2 FROM tab1 AS cor0
----
4071
4692
6624

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN 73 AND + 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - - 11 ) * - + 8 AS col2 FROM tab0 AS cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1519
SELECT ALL - MIN( DISTINCT + col0 ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - MIN ( DISTINCT + col0 ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT - + col2 + + - 88 AS col2 FROM tab1 AS cor0
----
-147
-156
-184

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1522
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + col0 / - col0 >= - - col0 * - col1 - - col2 * - col0 + - - 38 + CAST( NULL AS SIGNED ) + - 16 * col0
----

skipif mysql # not compatible
query III rowsort label-1522
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + col0 / - col0 >= - - col0 * - col1 - - col2 * - col0 + - - 38 + CAST ( NULL AS INTEGER ) + - 16 * col0
----

query I rowsort
SELECT DISTINCT 91 + - + col2 FROM tab0
----
-8
44
81

query III rowsort
SELECT ALL * FROM tab2 WHERE 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT + 36 + + MAX( DISTINCT + 75 ) AS col2 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + 36 + + MAX ( DISTINCT + 75 ) AS col2 FROM tab2
----
111

query I rowsort
SELECT DISTINCT - col0 + + + col0 FROM tab1
----
0

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

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

query I rowsort
SELECT DISTINCT + 8 - - + 62 AS col2 FROM tab0 AS cor0
----
70

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - CAST ( 10 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE + col1 * + + col0 <= NULL
----

query I rowsort
SELECT ALL + col0 * 63 + - col2 FROM tab2 AS cor0
----
2875
3992
4667

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT DISTINCT + MIN( - 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT + MIN ( - 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

query I rowsort
SELECT + col2 * + col2 * - ( - + 80 ) * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-18031040
-2158320
-9856000

query I rowsort
SELECT - 16 * - col2 + 80 FROM tab0 cor0
----
1664
240
832

query II rowsort
SELECT ALL - col2 AS col2, + col1 AS col0 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT - ( + col1 ) * + - 42 AS col2 FROM tab1
----
1974
210
588

onlyif mysql # DIV for integer division: 
query II rowsort label-1537
SELECT - col1 AS col1, + 35 DIV col1 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-1537
SELECT - col1 AS col1, + 35 / col1 FROM tab2
----
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 76 + - col0 FROM tab0
----
10
-163
47
-91
99
-173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1539
SELECT 98 AS col1, + 89 + - - col1 * ( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab1
----
98
4366
98
514
98
803

skipif mysql # not compatible
query II rowsort label-1539
SELECT 98 AS col1, + 89 + - - col1 * ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab1
----
98
4366
98
514
98
803

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 97 - - - col0 * col0 = NULL
----

query II rowsort
SELECT col0, - col2 * - - col0 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE 50 - - col0 NOT BETWEEN + col2 AND + col0 - ( ( + 63 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE 50 - - col0 NOT BETWEEN + col2 AND + col0 - ( ( + 63 ) )
----
3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT + COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

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

query I rowsort
SELECT ALL - 23 * + col0 * - col1 AS col1 FROM tab2
----
113344
115575
53958

query I rowsort
SELECT DISTINCT + 12 * + 14 * + + col2 AS col2 FROM tab0
----
16632
1680
7896

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

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

query I rowsort
SELECT DISTINCT - col0 + col2 + col1 * + 31 + col1 FROM tab0
----
2624
34
595

query I rowsort
SELECT + 74 + + col1 AS col2 FROM tab0
----
155
75
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT COUNT( * ) + + MIN( + - 51 ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1554
SELECT COUNT ( * ) + + MIN ( + - 51 ) AS col0 FROM tab2
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL + COUNT( * ) - + 90 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + COUNT ( * ) - + 90 FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1557
SELECT ALL - CAST( NULL AS SIGNED ) * + ( col0 ), + 34 FROM tab1 WHERE NOT - 57 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1557
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( col0 ), + 34 FROM tab1 WHERE NOT - 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 87 col2, ( 10 ) FROM tab2 AS cor0
----
87
10
87
10
87
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT - 39 DIV + col1 AS col1 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT - 39 / + col1 AS col1 FROM tab1
----
-2
-7
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT + 29 DIV 51 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 29 / 51 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT + 62 DIV 26 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 62 / 26 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - MIN( - col0 ) col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1564
SELECT - MIN ( - col0 ) col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT ALL + col0 + 38 AS col0 FROM tab1
----
123
129
89

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1566
SELECT ALL + MIN ( col0 ) col2 FROM tab0
----
15

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

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

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

query I rowsort
SELECT + 98 + col1 AS col2 FROM tab2
----
149
165
175

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > col2
----

query I rowsort
SELECT - col1 * - col1 + - col2 AS col2 FROM tab1
----
-34
100
2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL - CAST( + SUM( col2 ) AS SIGNED ) FROM tab2
----
-121

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1574
SELECT CAST( NULL AS SIGNED ) * ( CAST( + col0 AS DECIMAL ) / 14 ) FROM tab2 WHERE ( 57 + 37 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT CAST ( NULL AS INTEGER ) * ( CAST ( + col0 AS REAL ) / 14 ) FROM tab2 WHERE ( 57 + 37 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 45 ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 10 / - 79 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL COUNT( DISTINCT 87 ) * MIN( DISTINCT - col1 ) + MIN( DISTINCT col1 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL COUNT ( DISTINCT 87 ) * MIN ( DISTINCT - col1 ) + MIN ( DISTINCT col1 ) FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1578
SELECT DISTINCT * FROM tab2 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN 25 AND 85 + + col0
----

skipif mysql # not compatible
query III rowsort label-1578
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 25 AND 85 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT col2 DIV - 89 + col1 * - col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1579
SELECT col2 / - 89 + col1 * - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - col0 * + 91 + col1 AS col2 FROM tab0
----
-1284
-7896
-8826

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT - 50 DIV + 92 + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - 50 / + 92 + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT - ( ( ( 40 ) ) ) - - COUNT( * ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-1582
SELECT - ( ( ( 40 ) ) ) - - COUNT ( * ) FROM tab1
----
-37

query I rowsort
SELECT DISTINCT col1 + + 71 FROM tab0
----
152
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - SUM( 6 ) AS col2 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1584
SELECT - SUM ( 6 ) AS col2 FROM tab0 cor0
----
-18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT ALL - 10 DIV + col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - 10 / + col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1588
SELECT + ( + ( - COUNT( ALL col0 ) ) ) + - COUNT( + col1 ) DIV CAST( 23 AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1588
SELECT + ( + ( - COUNT ( ALL col0 ) ) ) + - COUNT ( + col1 ) / CAST ( 23 AS INTEGER ) AS col2 FROM tab2
----
-3

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

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

query I rowsort
SELECT + + col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
752
880
9702

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1592
SELECT ALL + + MAX ( 58 ) col1 FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN NULL AND 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

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

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

query I rowsort
SELECT ALL col2 * col2 + + 96 AS col0 FROM tab0 AS cor0
----
196
2305
9897

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT - - CAST( 74 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1600
SELECT - - CAST ( 74 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT + 81 + col2 * + 39 AS col1 FROM tab2 AS cor0
----
1641
2343
978

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL + COUNT( DISTINCT 83 ) - - 64 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + COUNT ( DISTINCT 83 ) - - 64 FROM tab1
----
65

query I rowsort
SELECT + col2 * col2 FROM tab2 WHERE col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1604
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND + 1 * CAST( ( col1 ) AS DECIMAL ) - - col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1604
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND + 1 * CAST ( ( col1 ) AS REAL ) - - col0 * + CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT + ( + - 13 ) * 46 - ( col1 + 55 * - 36 ) * - 56 AS col1 FROM tab1
----
-108846
-110694
-111198

query I rowsort
SELECT - col1 - - col2 + 55 FROM tab0
----
153
21
44

query I rowsort
SELECT - ( + - col0 ) * - col2 + - 11 * col1 FROM tab1
----
-5050
-5070
-6705

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 48 = 97 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 16 <> 0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL SUM ( DISTINCT + - 65 ) FROM tab2
----
-65

query I rowsort
SELECT + 43 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 78 = ( + 41 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 62 * + ( + 87 ) AS col1 FROM tab0
----
5394
5394
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( - - col0 * + col2 ) < col0
----
-3

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( - - col0 * + col2 ) < col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT 20 * - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * 73 + + CAST( 48 AS SIGNED ) * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT 20 * - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * 73 + + CAST ( 48 AS INTEGER ) * - col2 )
----
0

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

query I rowsort
SELECT - 4 / col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + + 58 AND + 34 - - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 43 NOT IN ( ( col2 ) + - 0 )
----

query I rowsort
SELECT 11 * 51 AS col0 FROM tab1
----
561
561
561

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

query I rowsort
SELECT ( - col2 ) * - - col1 + - 50 * + 19 AS col2 FROM tab2
----
-2123
-4030
-4836

query I rowsort
SELECT + col2 * - col1 + - + col1 FROM tab0
----
-100
-231
-3888

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT ALL + col2 + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL + col2 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT + CAST( + - 3 AS SIGNED ) FROM tab1 AS cor0
----
-3
-3
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - - MIN( DISTINCT - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-1641
SELECT - - MIN ( DISTINCT - 45 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + col0 + + 52 + + ( + 71 ) < + ( - col2 )
----

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

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

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

query I rowsort
SELECT + col0 + - 34 + - 42 AS col1 FROM tab0 AS cor0
----
-61
11
21

query I rowsort
SELECT - - col1 FROM tab2 WHERE - col0 * + 88 IS NULL
----

query I rowsort
SELECT ALL + col0 - 39 AS col1 FROM tab1
----
12
46
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT SUM( + 95 ) * + COUNT( * ) FROM tab1 WHERE 15 + + + col1 - ( + col1 ) IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT SUM ( + 95 ) * + COUNT ( * ) FROM tab1 WHERE 15 + + + col1 - ( + col1 ) IN ( - col1 )
----
NULL

query I rowsort
SELECT - 93 FROM tab1, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + - col1 col1 FROM tab1
----
420
4230
700

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT ALL 34 col0, COUNT( * ) * - 75 AS col2 FROM tab0 WHERE + col2 IS NULL
----
34
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1651
SELECT ALL 34 col0, COUNT ( * ) * - 75 AS col2 FROM tab0 WHERE + col2 IS NULL
----
34
0

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

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

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

query I rowsort
SELECT - ( col0 ) FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( 50 - + 43 ) AND + 0
----
-51
-85
-91

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

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT 0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1658
SELECT DISTINCT 48 * col1 AS col2, CAST( 36 AS SIGNED ) * + - col0 + + 64 FROM tab1
----
2256
-3212
240
-2996
672
-1772

skipif mysql # not compatible
query II rowsort label-1658
SELECT DISTINCT 48 * col1 AS col2, CAST ( 36 AS INTEGER ) * + - col0 + + 64 FROM tab1
----
2256
-3212
240
-2996
672
-1772

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 36 BETWEEN - col2 AND - col0
----

query I rowsort
SELECT DISTINCT 50 * col2 + 98 FROM tab1 AS cor0
----
3048
3498
4898

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - - col2 * 90
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1666
SELECT 1 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT 1 * + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + + MIN( - 66 ) FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1669
SELECT + + MIN ( - 66 ) FROM tab0 cor0
----
-66

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

query III rowsort
SELECT ALL + ( col1 ) + 95 AS col0, - col0 AS col2, + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to 8e32c4a3729d39e03569cf1fb3e072f8

query I rowsort
SELECT ALL - 14 * + + 59 / - - 63 FROM tab0 cor0 WHERE NOT 62 IS NOT NULL
----

query II rowsort
SELECT + 99 * + ( - 97 ) AS col1, ( col0 ) AS col2 FROM tab1 AS cor0
----
-9603
51
-9603
85
-9603
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1674
SELECT DISTINCT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) NOT IN ( + - 41 * 32 )
----

skipif mysql # not compatible
query III rowsort label-1674
SELECT DISTINCT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) NOT IN ( + - 41 * 32 )
----

query I rowsort
SELECT ALL + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 10 + col0 col0 FROM tab2 AS cor0
----
556
745
834

query I rowsort
SELECT + + 20 * - 14 + - 83 FROM tab2 AS cor0
----
-363
-363
-363

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + + col0 AND + + 94
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT + MAX( - - col0 ) + - 98 AS col1 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT + MAX ( - - col0 ) + - 98 AS col1 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT + ( - - col2 ) DIV col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1681
SELECT + ( - - col2 ) / col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + ( - + col1 ) * + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col0 * - 14 * + 83 + col0 FROM tab0
----
-101007
-112617
-17415

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + COUNT( * ) col2 FROM tab2 WHERE NULL < - col1 AND NOT col1 NOT IN ( col0, + col1 * + + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1684
SELECT + COUNT ( * ) col2 FROM tab2 WHERE NULL < - col1 AND NOT col1 NOT IN ( col0, + col1 * + + col2 )
----
0

query I rowsort
SELECT + 92 * 57 * + + 3 AS col1 FROM tab1
----
15732
15732
15732

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1686
SELECT + MAX ( + col1 ) col0 FROM tab1 cor0
----
47

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT DISTINCT + col2 DIV - col0 + - 62 FROM tab0 cor0
----
-62
-63
-65

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + col2 / - col0 + - 62 FROM tab0 cor0
----
-62
-63
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 + - ( col2 ) + col1 col2 FROM tab1
----
-118
-146
-85

query I rowsort
SELECT + col1 * 78 + - col1 FROM tab0
----
1617
6237
77

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

query I rowsort
SELECT - 20 * - 73 * + ( + ( + + 89 ) ) + - col1 * col1 AS col1 FROM tab2
----
124011
125451
127339

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + + - 69 + 58 col1 FROM tab1 AS cor0 WHERE - 19 BETWEEN + 11 * - col1 AND col2
----
3470
4613
9205

query II rowsort
SELECT DISTINCT + col1 + + col1 AS col2, + col1 * + col2 AS col2 FROM tab0 AS cor0
----
162
3807
2
99
42
210

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

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - col2 / + col0 + + 29 FROM tab2 AS cor0
----
29
29
29

query II rowsort
SELECT - 61 AS col1, col2 * + - col0 AS col2 FROM tab2
----
-61
-1058
-61
-2560
-61
-4350

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

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

query I rowsort
SELECT 46 * col0 AS col2 FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT COUNT( * ) - + - 19 AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( * ) - + - 19 AS col0 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 5 - - + COUNT( ALL - 34 ) col0 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT 5 - - + COUNT ( ALL - 34 ) col0 FROM tab1
----
8

query II rowsort
SELECT ALL + - col0 * - col2 - + - 95, - 39 AS col2 FROM tab1 cor0
----
4991
-39
5110
-39
6283
-39

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT + COUNT( + + 68 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT + COUNT ( + + 68 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT + 59 * col0 * + - ( + 92 ) * + 9 * - CAST( - 57 AS SIGNED ) FROM tab1 AS cor0
----
-142012764
-236687940
-253395324

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT + 59 * col0 * + - ( + 92 ) * + 9 * - CAST ( - 57 AS INTEGER ) FROM tab1 AS cor0
----
-142012764
-236687940
-253395324

query I rowsort
SELECT 25 * - 25 AS col0 FROM tab2
----
-625
-625
-625

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

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

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

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

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

query I rowsort
SELECT 73 * - col1 AS col0 FROM tab1
----
-1022
-3431
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT - COUNT( - - col0 ) AS col0 FROM tab2 WHERE NOT + ( - col2 ) NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT - COUNT ( - - col0 ) AS col0 FROM tab2 WHERE NOT + ( - col2 ) NOT BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT DISTINCT + 88 * col0 AS col1 FROM tab2 AS cor0
----
4048
5632
6600

query I rowsort
SELECT + 94 * - ( - col2 ) * - 70 AS col0 FROM tab0 AS cor0
----
-309260
-651420
-65800

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

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

query I rowsort
SELECT DISTINCT - col1 * 35 FROM tab2
----
-1785
-2345
-2695

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

query I rowsort
SELECT DISTINCT - 64 * - col0 FROM tab0 cor0
----
5568
6208
960

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT + COUNT( ALL - ( col0 ) ) + + + 99 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT + COUNT ( ALL - ( col0 ) ) + + + 99 FROM tab0 AS cor0
----
102

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

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

query I rowsort
SELECT DISTINCT + col1 + - 21 FROM tab2 AS cor0
----
30
46
56

query I rowsort
SELECT + 7 * + + col2 FROM tab2
----
161
280
406

query I rowsort
SELECT DISTINCT col2 + 87 + + 12 * - 48 FROM tab1
----
-393
-421
-430

onlyif mysql # DIV for integer division: 
query II rowsort label-1738
SELECT ALL - - 44 * 27 AS col0, col2 DIV + col2 FROM tab2 WHERE NULL IS NULL
----
1188
1
1188
1
1188
1

skipif mysql # not compatible
query II rowsort label-1738
SELECT ALL - - 44 * 27 AS col0, col2 / + col2 FROM tab2 WHERE NULL IS NULL
----
1188
1
1188
1
1188
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 59 * 98 >= 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - col1 ) * - col1 AS col1 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT DISTINCT ( - 48 ) + ( + col2 ) AS col0, 33 + + col2 + + col0 + - col0 FROM tab1
----
11
92
20
101
48
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1742
SELECT ALL + col2 * + - col0, + CAST( - col1 AS SIGNED ) + 45 AS col2 FROM tab0
----
-705
-36
-870
24
-9603
44

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL + col2 * + - col0, + CAST ( - col1 AS INTEGER ) + 45 AS col2 FROM tab0
----
-705
-36
-870
24
-9603
44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT ( + col1 ) DIV + 41 + + - 38 FROM tab1
----
-37
-38
-38

skipif mysql # not compatible
query I rowsort label-1744
SELECT ( + col1 ) / + 41 + + - 38 FROM tab1
----
-37
-38
-38

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

query I rowsort
SELECT - 32 * - col2 + + 0 * + col0 + + col1 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
1357
1923
787

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

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

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

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-15
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + 33 * + COUNT( * ) * + COUNT( * ) - + 48 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + 33 * + COUNT ( * ) * + COUNT ( * ) - + 48 FROM tab1 AS cor0
----
249

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1753
SELECT - MAX( DISTINCT - 33 ) AS col0, COUNT( * ) * COUNT( * ) + - - 48 DIV + + COUNT( * ) FROM tab1 AS cor0
----
33
25

skipif mysql # not compatible
query II rowsort label-1753
SELECT - MAX ( DISTINCT - 33 ) AS col0, COUNT ( * ) * COUNT ( * ) + - - 48 / + + COUNT ( * ) FROM tab1 AS cor0
----
33
25

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1755
SELECT 69 DIV - CAST( - AVG ( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1755
SELECT 69 / - CAST ( - AVG ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-1756
SELECT - - col0 / col1 * - col0 / + - 59 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT DISTINCT + CAST( - 33 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= - 85 / - col1 * 63
----

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT + CAST ( - 33 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= - 85 / - col1 * 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + ( - 45 ) col2 FROM tab1
----
59
-45
68
-45
96
-45

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

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

query I rowsort
SELECT DISTINCT ( - 57 ) AS col0 FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT ALL 8 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-1761
SELECT ALL 8 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
8
3

query II rowsort
SELECT - + 56 AS col0, col1 + 27 AS col1 FROM tab1 AS cor0
----
-56
32
-56
41
-56
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT DISTINCT + MAX( ALL - - col0 ) col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1763
SELECT DISTINCT + MAX ( ALL - - col0 ) col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT ALL + + COUNT( * ) AS col1, MIN( 29 ) FROM tab1 AS cor0
----
3
29

skipif mysql # not compatible
query II rowsort label-1764
SELECT ALL + + COUNT ( * ) AS col1, MIN ( 29 ) FROM tab1 AS cor0
----
3
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL + SUM( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + SUM ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT COUNT( col1 ), + COUNT( - col2 ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1766
SELECT COUNT ( col1 ), + COUNT ( - col2 ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL - ( + + 5 ) * - + 55 * - COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-825

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - ( + + 5 ) * - + 55 * - COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL MIN( ALL - col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL MIN ( ALL - col0 ) AS col2 FROM tab0 cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 40 - + col2 col1 FROM tab1 cor0
----
-24
-70
-75

query I rowsort
SELECT - + 61 AS col2 FROM tab1 AS cor0
----
-61
-61
-61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col2, - 75 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1772
SELECT DISTINCT - MIN( DISTINCT CAST( + + col2 AS SIGNED ) ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT - MIN ( DISTINCT CAST ( + + col2 AS INTEGER ) ) FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1773
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) DIV ( + + COUNT( * ) ) + 17 * CAST( - SUM( ALL col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3384

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) / ( + + COUNT ( * ) ) + 17 * CAST ( - SUM ( ALL col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3384

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 >= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 >= - + ( + 92 ) * + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1776
SELECT DISTINCT * FROM tab0 cor0 WHERE - 79 - - CAST( col1 AS DECIMAL ) IN ( - 2 )
----

skipif mysql # not compatible
query III rowsort label-1776
SELECT DISTINCT * FROM tab0 cor0 WHERE - 79 - - CAST ( col1 AS REAL ) IN ( - 2 )
----

query II rowsort
SELECT + 90 + + col0 * + col0, 67 AS col2 FROM tab2
----
2206
67
4186
67
5715
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT DISTINCT + 20 + + CAST( NULL AS SIGNED ) + - 76 * - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + 20 + + CAST ( NULL AS INTEGER ) + - 76 * - col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 * col0 * + - col1 AS col0 FROM tab1
----
-25075
-290836
-68544

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 * + col2 FROM tab0
----
-10
870
-47
705
-99
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1781
SELECT col1 * - - col0 DIV - + col0 + + - 34 FROM tab0
----
-115
-35
-55

skipif mysql # not compatible
query I rowsort label-1781
SELECT col1 * - - col0 / - + col0 + + - 34 FROM tab0
----
-115
-35
-55

query I rowsort
SELECT ALL + 26 + - col2 FROM tab1
----
-33
-42
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT - 93 DIV + - MAX( ALL 57 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT - 93 / + - MAX ( ALL 57 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL col1 * + + col2 - ( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL col1 * + + col2 - ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 63 * col0 * + col1 FROM tab1 cor0 WHERE NOT 68 > + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT COUNT( * ) DIV ( MAX( ALL + + 60 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT COUNT ( * ) / ( MAX ( ALL + + 60 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 15 FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 32 col2 FROM tab0 cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT + - CAST( - col2 AS SIGNED ) - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT + - CAST ( - col2 AS INTEGER ) - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT - + col2 col0 FROM tab1 WHERE - + col1 IN ( + - col0, + col1, + - col2, + 84, CAST( NULL AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1790
SELECT - + col2 col0 FROM tab1 WHERE - + col1 IN ( + - col0, + col1, + - col2, + 84, CAST ( NULL AS INTEGER ) * - col2 )
----

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 33 * 44 IS NULL
----

query II rowsort
SELECT ALL + col0 AS col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL - 10 FROM tab1 AS cor0 WHERE NOT - 22 IS NOT NULL
----

query I rowsort
SELECT ALL - ( col0 ) * + ( col0 ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + SUM( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1796
SELECT + SUM ( ALL - - col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT MIN( ALL + ( - col0 ) ) * + 13 AS col0 FROM tab1 AS cor0
----
-1183

skipif mysql # not compatible
query I rowsort label-1797
SELECT MIN ( ALL + ( - col0 ) ) * + 13 AS col0 FROM tab1 AS cor0
----
-1183

query I rowsort
SELECT - col2 * + 46 FROM tab2 cor0
----
-1058
-1840
-2668

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT - col1 DIV - - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1799
SELECT - col1 / - - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT - + MIN( DISTINCT - 58 ) DIV + + 1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1800
SELECT - + MIN ( DISTINCT - 58 ) / + + 1 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 37 NOT IN ( + col1 )
----

query II rowsort
SELECT DISTINCT - + 24 + + col2 AS col1, 15 AS col2 FROM tab1 WHERE NOT + 32 IS NULL
----
35
15
44
15
72
15

query I rowsort
SELECT col2 * + col0 * + 30 FROM tab0
----
21150
26100
288090

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT 32 * - - COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1804
SELECT 32 * - - COUNT ( * ) FROM tab2
----
96

query I rowsort
SELECT + 16 * - col0 * - ( col2 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT - COUNT( col0 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1806
SELECT DISTINCT - COUNT ( col0 ) col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 94 + 19 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 27 col0 FROM tab1 AS cor0
----
123
86
95

query I rowsort
SELECT DISTINCT 95 * - 94 + col1 * + 86 + + + col1 FROM tab0
----
-1883
-7103
-8843

query I rowsort
SELECT - col0 + + - col1 AS col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT - + 69 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT - + 69 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - 70, col0 AS col0 FROM tab1 AS cor0
----
70
51
70
85
70
91

query II rowsort
SELECT + col0 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT DISTINCT col1, - 63 FROM tab0 AS cor0
----
1
-63
21
-63
81
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1815
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( col0 ) AS col0 FROM tab1 AS cor0 WHERE + col2 - - col2 BETWEEN - 61 + + col0 + 4 * col2 AND NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1815
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( col0 ) AS col0 FROM tab1 AS cor0 WHERE + col2 - - col2 BETWEEN - 61 + + col0 + 4 * col2 AND NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ( - + COUNT( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1816
SELECT ( - + COUNT ( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + + 93 ) * col2 + - ( - 77 ) + - + col2 col0 FROM tab2 AS cor0
----
2193
3757
5413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT ALL + CAST( NULL AS SIGNED ) + - 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + CAST ( NULL AS INTEGER ) + - 49 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + + col2 + + col1 * - col2 <= - 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - + COUNT( * ) * + 72 FROM tab0, tab2 AS cor0
----
52488

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) * + 72 FROM tab0, tab2 AS cor0
----
52488

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT DISTINCT + 65 + - - COUNT( * ) * - - 69 FROM tab0
----
272

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT + 65 + - - COUNT ( * ) * - - 69 FROM tab0
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT ALL - + 78 DIV + 94 + + col1 + + col2 * - 87 FROM tab2 WHERE - col0 IS NOT NULL
----
-1950
-3403
-4979

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - + 78 / + 94 + + col1 + + col2 * - 87 FROM tab2 WHERE - col0 IS NOT NULL
----
-1950
-3403
-4979

query I rowsort
SELECT ALL col1 + - 95 AS col2 FROM tab0
----
-14
-74
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + col2 * + - 28 + col0 + - col0 AS col0, 68 * - col1 FROM tab2 AS cor0
----
-1120
-5236
-1624
-4556
-644
-3468

query I rowsort
SELECT DISTINCT - 55 * + - col1 AS col2 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + SUM( ALL - - 67 ) + - MAX( ALL + 41 ) AS col2 FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-1827
SELECT + SUM ( ALL - - 67 ) + - MAX ( ALL + 41 ) AS col2 FROM tab0 AS cor0
----
160

query I rowsort
SELECT - col2 + + 98 + col0 AS col1 FROM tab2 AS cor0
----
115
121
122

query I rowsort
SELECT ALL col1 * - - 30 AS col0 FROM tab1 AS cor0
----
1410
150
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT DISTINCT - 47 + + - CAST( 13 AS SIGNED ) - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - 47 + + - CAST ( 13 AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 92 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 12 AS col0 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL - - 51 * - ( 78 ) AS col0 FROM tab0 AS cor0
----
-3978
-3978
-3978

query I rowsort
SELECT ALL - - 56 * - - col0 - + col0 AS col2 FROM tab2 AS cor0
----
2530
3520
4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 37 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT + MAX( - - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + MAX ( - - col1 ) FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * col2 col2 FROM tab2
----
-102400
-24334
-252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col2 - + - col1 AS col1 FROM tab1
----
59
-54
68
-21
96
-82

query I rowsort
SELECT 75 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col2 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL - 58 * 6 * + + MAX( DISTINCT - 96 ) FROM tab0
----
33408

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - 58 * 6 * + + MAX ( DISTINCT - 96 ) FROM tab0
----
33408

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT col1 DIV + 35 col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1844
SELECT col1 / + 35 col1 FROM tab2
----
1
1
2

query I rowsort
SELECT - col2 + + - 66 FROM tab0
----
-113
-165
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT + MAX( DISTINCT + 51 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1846
SELECT + MAX ( DISTINCT + 51 ) FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1847
SELECT DISTINCT - col2 DIV - col0 + - + 22 FROM tab0 AS cor0
----
-19
-21
-22

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT - col2 / - col0 + - + 22 FROM tab0 AS cor0
----
-19
-21
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col2, 41 * - col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE + col1 * + 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT - + 87 DIV - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - + 87 / - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-4
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 * + col1 + - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL - - ( + - MIN( DISTINCT + 82 ) ) AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL - - ( + - MIN ( DISTINCT + 82 ) ) AS col2 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT + + col2 * - col2 + + 86 + - + col1 + - 10 FROM tab1 cor0
----
-3410
-4595
-9154

query I rowsort
SELECT DISTINCT + ( - - col2 ) * - 89 * - 73 AS col0 FROM tab1 AS cor0 WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT col2 + - col2 DIV + + col1 AS col2 FROM tab0 AS cor0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-1854
SELECT col2 + - col2 / + + col1 AS col2 FROM tab0 AS cor0
----
0
10
47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 72 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT DISTINCT + COUNT( * ) + - 69 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + COUNT ( * ) + - 69 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - 66 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1858
SELECT + CAST( - 64 AS DECIMAL ) / - col2 + - + CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT + CAST ( - 64 AS REAL ) / - col2 + - + CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 11 - col0 - + - col1 * + + 15 FROM tab0 WHERE ( - 52 ) >= col0
----

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE 64 < - ( - col1 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1861
SELECT ALL col0 - - - ( - col0 ) AS col2, CAST( - col2 AS SIGNED ) * + 89 + col0 col0 FROM tab1 cor0
----
102
-8493
170
-5166
182
-5961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1861
SELECT ALL col0 - - - ( - col0 ) AS col2, CAST ( - col2 AS INTEGER ) * + 89 + col0 col0 FROM tab1 cor0
----
102
-8493
170
-5166
182
-5961

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL >= - 78 )
----

query I rowsort
SELECT ALL 12 * 85 * - + col1 / + col0 AS col0 FROM tab2 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1864
SELECT - COUNT( + + col1 ) + 92 AS col0, + 88 DIV + - 70 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
92
-1

skipif mysql # not compatible
query II rowsort label-1864
SELECT - COUNT ( + + col1 ) + 92 AS col0, + 88 / + - 70 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
92
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT ALL + + 85 * + col2 FROM tab0 AS cor0
----
3995
8415
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT + 0 DIV + 94 + - + 52 FROM tab0 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-1868
SELECT + 0 / + 94 + - + 52 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT ALL + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE + col0 NOT BETWEEN - + ( + 83 ) AND + - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE + col0 NOT BETWEEN - + ( + 83 ) AND + - col2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND - col1 )
----

query II rowsort
SELECT col0, col0 * col2 FROM tab0 AS cor0
----
15
705
87
870
97
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT + col1 * col2 DIV - col0 + col0 FROM tab2 AS cor0
----
16
21
24

skipif mysql # not compatible
query I rowsort label-1872
SELECT + col1 * col2 / - col0 + col0 FROM tab2 AS cor0
----
16
21
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT 8 DIV col2 * 81 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT 8 / col2 * 81 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - + 72 AS col0 FROM tab1 cor0 WHERE - col1 + - - 47 * - col1 IS NOT NULL
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80 col1, - col1 * 21 * - + 71 AS col1 FROM tab0 AS cor0
----
80
120771
80
1491
80
31311

query II rowsort
SELECT col2 AS col2, 61 FROM tab0 cor0
----
10
61
47
61
99
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT ( + - 65 ) * + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT ( + - 65 ) * + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + 83 ) FROM tab2 AS cor0
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1879
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * - + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1879
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) * - + col0 IS NOT NULL
----

query II rowsort
SELECT + + 73 * + col2 + - col0 * + - col2 AS col0, col0 FROM tab1 AS cor0
----
11152
91
11904
51
9322
85

query I rowsort
SELECT ALL col1 * - 1 / + + col1 + - + ( + col2 ) FROM tab1 WHERE NOT + 77 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + col2 + - 67 FROM tab0
----
-36
33
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 49 * - 3 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1884
SELECT ALL col1 DIV + - col1 - col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL col1 / + - col1 - col1 FROM tab2
----
-52
-68
-78

query II rowsort
SELECT col1 AS col0, 89 FROM tab0 WHERE NULL NOT BETWEEN 99 AND col1 * + col2 - + - 2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + col0 / + + col0 * + col0, - col2, col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 45 FROM tab2
----
2295
3015
3465

query II rowsort
SELECT + 26 + + col0 * - 56, - col0 + + col0 AS col2 FROM tab0
----
-4846
0
-5406
0
-814
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT - 86 * + COUNT( * ) * - 87 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT - 86 * + COUNT ( * ) * - 87 FROM tab2 WHERE NULL > NULL
----
0

query I rowsort
SELECT 95 + 14 FROM tab1
----
109
109
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1892
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1892
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col2 / + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2, 60 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
60
68
60
96
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT ALL + col0 * + - 3 + col0 AS col2, - 37 + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-174
-58
-194
-38
-30
-118

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL + col0 * + - 3 + col0 AS col2, - 37 + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-174
-58
-194
-38
-30
-118

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 82 / + col0, - ( - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT DISTINCT col2 * + - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT col2 * + - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query II rowsort
SELECT + - 21 * - - 40 AS col2, + 79 FROM tab1 AS cor0 WHERE NOT col1 * - + col2 + + - 22 + - 51 / + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT ALL + COUNT( * ), + 55 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3
55

skipif mysql # not compatible
query II rowsort label-1899
SELECT ALL + COUNT ( * ), + 55 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1900
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-1900
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
NULL
-66

query II rowsort
SELECT + col2 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
117
125
74

query I rowsort
SELECT DISTINCT + + col2 + + + col0 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT col2 * - col1 * + + col2 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + 31 * + col0 * 40 FROM tab0
----
107880
120280
18600

query I rowsort
SELECT DISTINCT col2 * + 74 FROM tab0
----
3478
7326
740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN + col1 + + col2 AND + col0 * col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + 92 * + - 66 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 99 + + - col1 FROM tab2
----
22
32
48

query I rowsort
SELECT + 31 + + col0 AS col1 FROM tab0
----
118
128
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + - ( + - 83 ) col2 FROM tab1 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + 19 + col0 col2 FROM tab1
----
119
46
71

query I rowsort
SELECT DISTINCT + 92 * col0 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT DISTINCT + col1 * + - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-441
-6561

query I rowsort
SELECT + col0 - 16 AS col1 FROM tab2
----
30
48
59

query I rowsort
SELECT - - ( - + col2 ) AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + 34 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL + COUNT( + col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL + COUNT ( + col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT ALL + MAX( + ( + + CAST( ( + 32 ) AS SIGNED ) ) ) + - 39 - 18 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + MAX ( + ( + + CAST ( ( + 32 ) AS INTEGER ) ) ) + - 39 - 18 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT COUNT( * ) * + 79 FROM tab0, tab2 AS cor0
----
711

skipif mysql # not compatible
query I rowsort label-1921
SELECT COUNT ( * ) * + 79 FROM tab0, tab2 AS cor0
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + MAX( DISTINCT - 21 ) FROM tab1 WHERE NOT - 2 + - 15 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + MAX ( DISTINCT - 21 ) FROM tab1 WHERE NOT - 2 + - 15 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 - - + col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT + col0 + - - ( - + 98 ) * - 61 FROM tab1
----
6029
6063
6069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1925
SELECT CAST( + + col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1925
SELECT CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT ( - 75 ) * COUNT( * ) FROM tab2, tab1 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-1926
SELECT ( - 75 ) * COUNT ( * ) FROM tab2, tab1 AS cor0
----
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT ALL col1 DIV + 13 AS col2 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL col1 / + 13 AS col2 FROM tab1
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + + col0 * - + col1 + + + 59 + ( + - col2 ) col0 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1929
SELECT - 43 * CAST( NULL AS SIGNED ) + + CAST( - 71 AS SIGNED ) AS col1, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-1929
SELECT - 43 * CAST ( NULL AS INTEGER ) + + CAST ( - 71 AS INTEGER ) AS col1, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - + col0 * + 94 FROM tab1 AS cor0
----
-4794
-7990
-8554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT DISTINCT 0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / - - 38 + - 26 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT 0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - - 38 + - 26 <= NULL
----

query II rowsort
SELECT DISTINCT + - col0 + col0, 33 AS col1 FROM tab2 AS cor0
----
0
33

query I rowsort
SELECT DISTINCT - col1 + - 57 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL + 15 * - + COUNT( * ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + 15 * - + COUNT ( * ) FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 56 ) col1 FROM tab0 WHERE + col2 IS NULL
----

query II rowsort
SELECT + - col0, 7 * + + 4 / 70 FROM tab2 WHERE + col2 IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - 14 * + col0 FROM tab1
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + COUNT( ALL + col2 ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT + COUNT ( ALL + col2 ) FROM tab1 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT ALL + ( MIN( + col1 ) ) AS col2, + 26 AS col0 FROM tab2 AS cor0
----
51
26

skipif mysql # not compatible
query II rowsort label-1940
SELECT ALL + ( MIN ( + col1 ) ) AS col2, + 26 AS col0 FROM tab2 AS cor0
----
51
26

query II rowsort
SELECT ALL col0, + col0 * + + 86 AS col1 FROM tab0 AS cor0
----
15
1290
87
7482
97
8342

query I rowsort
SELECT 2 + - - 31 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT COUNT( * ) col0 FROM tab2, tab0 AS cor0 WHERE ( - + 26 ) IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1943
SELECT DISTINCT COUNT ( * ) col0 FROM tab2, tab0 AS cor0 WHERE ( - + 26 ) IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT - SUM( DISTINCT col2 ) + + + COUNT( ALL + 50 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - SUM ( DISTINCT col2 ) + + + COUNT ( ALL + 50 ) FROM tab2
----
-118

query I rowsort
SELECT ALL 26 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL - ( col2 ) - - 21 + col2 - + col2 * - 82 FROM tab1
----
4859
5597
7893

query II rowsort
SELECT + - col2 * + - col1 AS col1, 17 * - col2 FROM tab1 cor0
----
1344
-1632
295
-1003
3196
-1156

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * - 95 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT + COUNT( * ) * MAX( ALL + 71 ) + + 58 FROM tab2 AS cor0
----
271

skipif mysql # not compatible
query I rowsort label-1949
SELECT + COUNT ( * ) * MAX ( ALL + 71 ) + + 58 FROM tab2 AS cor0
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1950
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 8 - - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + 2 - - - col2 AS col1 FROM tab1 AS cor0
----
-57
-66
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT + - COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 * + 38 * col0 + + col1 FROM tab1 AS cor0
----
16155
162573
27146

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 41 * + + col0 + - col2 + + 43 + - 12 + + col0 * - 30 * 35 * - - 36 * + + 33 + 67 * - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 + + col1 * + col1 * - ( + col0 ) col1 FROM tab2 AS cor0
----
-119594
-336623
-379404

query I rowsort
SELECT DISTINCT 62 * + 15 FROM tab0 AS cor0
----
930

query I rowsort
SELECT ALL + col1 * - - ( 25 ) AS col2 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE + ( + + col2 ) * col2 IS NULL
----

query I rowsort
SELECT ALL + 69 * + + col0 AS col1 FROM tab0
----
1035
6003
6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT CAST( + 88 AS SIGNED ) AS col0 FROM tab0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1962
SELECT CAST ( + 88 AS INTEGER ) AS col0 FROM tab0
----
88
88
88

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL IN ( - + col1 * - + col2 / 82 )
----

query I rowsort
SELECT ALL ( - + ( col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col1 + - - col1 - col1 FROM tab2 WHERE 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT DISTINCT + MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT ALL col1 DIV - col1 col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1967
SELECT ALL col1 / - col1 col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1968
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) / + ( + - ( - 35 ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) / + ( + - ( - 35 ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1969
SELECT ALL - col0 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-1969
SELECT ALL - col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col2 ) + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT 98 DIV col2 + + col1 + - + col1 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-1971
SELECT 98 / col2 + + col1 + - + col1 FROM tab0 AS cor0
----
0
2
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 64 AS col2, - 38 col2, + col2 * col0 * + - col1 + - col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to fe28fdd4861c18fea1e8130a62c06201

query I rowsort
SELECT ALL + ( + - col2 ) + - col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT + ( ( COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1974
SELECT DISTINCT + ( ( COUNT ( * ) ) ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 99 + - col2 FROM tab1 AS cor0 WHERE NOT NULL > 75
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col2 IN ( + + 53, - 92 )
----

query I rowsort
SELECT - 24 + - 76 FROM tab0
----
-100
-100
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab2 WHERE + ( + ( + col0 ) ) * + col0 + + - col1 * + col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + COUNT( * ) + - 16 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-1979
SELECT + COUNT ( * ) + - 16 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + 92 + - MAX( - col2 ) - - SUM( + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + 92 + - MAX ( - col2 ) - - SUM ( + - col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1981
SELECT - CAST( ( + MIN( ALL - col1 ) ) AS SIGNED ), + ( - COUNT( * ) ) AS col0 FROM tab2 WHERE - 57 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1981
SELECT - CAST ( ( + MIN ( ALL - col1 ) ) AS INTEGER ), + ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE - 57 IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT MIN( - 45 ) * + COUNT( * ) * - COUNT( * ) FROM tab0
----
405

skipif mysql # not compatible
query I rowsort label-1982
SELECT MIN ( - 45 ) * + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
405

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + col2 <> - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 86 * + + 79 = + col1
----

query I rowsort
SELECT ALL - ( + 78 ) AS col2 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT SUM( + 32 ) + + MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT SUM ( + 32 ) + + MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - col2 + 32 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = + 94
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1990
SELECT - ( - + COUNT( * ) ) - + - CAST( NULL AS SIGNED ) AS col1, 14 FROM tab1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1990
SELECT - ( - + COUNT ( * ) ) - + - CAST ( NULL AS INTEGER ) AS col1, 14 FROM tab1
----
NULL
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 - - - col0 col0 FROM tab2
----
-17
-35
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT + SUM( + ( + col0 ) ) - + - ( + - COUNT( * ) ) - COUNT( * ) AS col0 FROM tab0
----
193

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT + SUM ( + ( + col0 ) ) - + - ( + - COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab0
----
193

query I rowsort
SELECT - col1 - col2 AS col0 FROM tab1 WHERE + col1 <> NULL
----

query I rowsort
SELECT ALL 69 - col2 FROM tab1 cor0
----
-27
1
10

query I rowsort
SELECT col0 * + col0 + col1 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT ALL + col1 * - col0 AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT COUNT( * ) * 42 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT COUNT ( * ) * 42 FROM tab2 AS cor0
----
126

query I rowsort
SELECT ALL col1 + - col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 26 NOT IN ( - - col1 + - col1 + + + col1 + - + 18 * + col0 * - col1, col1, + ( + 81 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL - 96 * + + COUNT( * ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - 96 * + + COUNT ( * ) FROM tab2 AS cor0
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT ALL - - MAX( ALL ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - - MAX ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT DISTINCT + - 81 DIV col2 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + - 81 / col2 / - col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT - 58 DIV 41 * 22 FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 58 / 41 * 22 FROM tab0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT + + COUNT( * ) col2 FROM tab1 WHERE col0 * - ( + 30 ) < - col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2004
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab1 WHERE col0 * - ( + 30 ) < - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ( - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2005
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL col0 * 31 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2007
SELECT ALL CAST( - + COUNT( + ( - ( 71 ) ) ) AS SIGNED ) * - COUNT( * ) DIV - + 37 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL CAST ( - + COUNT ( + ( - ( 71 ) ) ) AS INTEGER ) * - COUNT ( * ) / - + 37 FROM tab1
----
0

query I rowsort
SELECT col1 + + 93 * + col2 FROM tab0 AS cor0
----
4452
9208
951

query I rowsort
SELECT + + ( + + 11 ) + - + col0 FROM tab2 AS cor0
----
-35
-53
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 - col1, col2 col1 FROM tab1 AS cor0 WHERE + col2 NOT IN ( + 30 * - 57, + col2 + 76 )
----
21
68
54
59
82
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT MIN( ALL ( + col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2012
SELECT MIN ( ALL ( + col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL + 20 + - - 43 - - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL + 20 + - - 43 - - COUNT ( * ) FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL - COUNT( - + 0 ) + - 92 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL - COUNT ( - + 0 ) + - 92 FROM tab2
----
-95

query II rowsort
SELECT DISTINCT + - col2, + col1 AS col1 FROM tab1 WHERE - col1 < NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 73 AS col0 FROM tab1
----
124
158
164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2017
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 - - 7 + - col2 * - + col0 * + + col1 AS col2, - 89 * col0 FROM tab0
----
NULL
-1335
NULL
-7743
NULL
-8633

skipif mysql # not compatible
query II rowsort label-2017
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 - - 7 + - col2 * - + col0 * + + col1 AS col2, - 89 * col0 FROM tab0
----
NULL
-1335
NULL
-7743
NULL
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT COUNT( ALL + 83 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT COUNT ( ALL + 83 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT - 67 + col2 DIV + col2 FROM tab2
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-2019
SELECT - 67 + col2 / + col2 FROM tab2
----
-66
-66
-66

query I rowsort
SELECT col0 + - - ( col1 ) - - - col0 AS col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - 68 col2 FROM tab2 AS cor0
----
-108
-126
-91

query I rowsort
SELECT + 87 * - + col0 * - 77 * - - 2 + - col2 + + 31 FROM tab0 AS cor0
----
1165647
1299538
200954

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2023
SELECT DISTINCT 79 AS col0, - CAST( + 78 AS SIGNED ) * - - col1 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) = col0
----

skipif mysql # not compatible
query II rowsort label-2023
SELECT DISTINCT 79 AS col0, - CAST ( + 78 AS INTEGER ) * - - col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) = col0
----

query I rowsort
SELECT ALL - + 15 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col0 AS col1, 66 col2 FROM tab1
----
425
66
4277
66
714
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT 76 * - COUNT( * ) FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2026
SELECT 76 * - COUNT ( * ) FROM tab1 AS cor0
----
-228

query I rowsort
SELECT DISTINCT + 48 * - + 50 * + 81 FROM tab1 AS cor0
----
-194400

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 8 IS NULL
----

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT col1 + + 42 IS NOT NULL
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT NULL > + 73
----

query I rowsort
SELECT DISTINCT 26 * + + col0 FROM tab2
----
1196
1664
1950

query II rowsort
SELECT ALL + col0 AS col1, - col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL col1 * 61 AS col0 FROM tab2
----
3111
4087
4697

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND - 40 )
----

query I rowsort
SELECT ALL - col1 * col2 * - col1 FROM tab2
----
237160
260362
59823

query II rowsort
SELECT DISTINCT + + col0 + - col1 + + 44, col0 AS col0 FROM tab1 WHERE ( NULL NOT BETWEEN ( 82 ) AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT COUNT( 26 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT COUNT ( 26 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----
0

query I rowsort
SELECT - ( + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 / + + 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT ALL - COUNT( * ) DIV + + 67 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL - COUNT ( * ) / + + 67 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT MIN( ALL - col1 ) AS col2 FROM tab0 WHERE 54 BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT MIN ( ALL - col1 ) AS col2 FROM tab0 WHERE 54 BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT - 26 + col2 FROM tab2
----
-3
14
32

query III rowsort
SELECT * FROM tab1 WHERE 56 BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT + 16 + + col1 AS col1 FROM tab1
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT - SUM( ALL + col1 ) + 55 AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2047
SELECT - SUM ( ALL + col1 ) + 55 AS col1 FROM tab0
----
-48

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) <= - ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 93 + 66 * 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2051
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col1 + 66 FROM tab0
----
147
67
87

query I rowsort
SELECT DISTINCT - col1 + 18 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - 9 * 36 AS col1 FROM tab1
----
-324
-324
-324

query I rowsort
SELECT + col2 * - ( col1 * - 27 ) AS col0 FROM tab0
----
102789
2673
5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 59 / col2 + - 44 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL - COUNT( ALL + 3 ) * 43 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - COUNT ( ALL + 3 ) * 43 FROM tab1
----
-129

query I rowsort
SELECT - 99 + - ( - ( col2 ) + - 54 ) * col1 AS col1 FROM tab1
----
2001
466
5635

query I rowsort
SELECT ALL col0 * 48 AS col1 FROM tab1
----
2448
4080
4368

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) >= - 80
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - 67 - - ( col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT - MIN( DISTINCT col0 ) FROM tab1 WHERE 27 + - col0 BETWEEN col2 + - 77 / CAST( NULL AS SIGNED ) AND + col0 * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT - MIN ( DISTINCT col0 ) FROM tab1 WHERE 27 + - col0 BETWEEN col2 + - 77 / CAST ( NULL AS INTEGER ) AND + col0 * + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT + 89 * + CAST( col1 AS SIGNED ) FROM tab2
----
4539
5963
6853

skipif mysql # not compatible
query I rowsort label-2064
SELECT + 89 * + CAST ( col1 AS INTEGER ) FROM tab2
----
4539
5963
6853

query I rowsort
SELECT DISTINCT 17 * - col0 AS col0 FROM tab0
----
-1479
-1649
-255

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2066
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( - 82 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2066
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 82 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 47 * - col2 ) = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + 0 BETWEEN col1 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab1
----
13
13
13

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * col1 BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL MIN( + col0 ) * 78 FROM tab1
----
3978

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL MIN ( + col0 ) * 78 FROM tab1
----
3978

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL - col2 DIV + 79 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - col2 / + 79 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT + 64 DIV CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + 64 / CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2074
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 86 IS NULL
----

query I rowsort
SELECT ALL ( col0 ) + 23 * col0 FROM tab2 AS cor0
----
1104
1536
1800

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE col2 / + col2 - ( 92 ) <= col2
----
-1
-21
-81

query I rowsort
SELECT + col1 * 62 - + 14 AS col0 FROM tab1
----
2900
296
854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT 65 DIV COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
7

skipif mysql # not compatible
query I rowsort label-2079
SELECT 65 / COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
7

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT BETWEEN col2 * 23 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT COUNT( 44 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-2081
SELECT COUNT ( 44 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 80 * col2 FROM tab0 cor0
----
3760
7920
800

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + SUM( - 72 ) AS col0 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2085
SELECT + SUM ( - 72 ) AS col0 FROM tab2 AS cor0
----
-216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2
----

query I rowsort
SELECT + - col1 * ( - ( 24 ) * - 46 ) FROM tab0 AS cor0
----
-1104
-23184
-89424

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - col1 / col2 AND + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT + MAX( 46 ) FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT + MAX ( 46 ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT ALL - ( - 12 ) FROM tab0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL - CAST( 69 AS SIGNED ) AS col2 FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL - CAST ( 69 AS INTEGER ) AS col2 FROM tab2
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 86 ) col1 FROM tab1
----
-86
-86
-86

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col1 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT + MIN( col1 ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT + MIN ( col1 ) col2 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT DISTINCT col1 * col1 DIV col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT col1 * col1 / col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( + 76 ) <> 37 * col1
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) <= + col2 - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT SUM( ALL - ( col0 ) ) col1 FROM tab0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2099
SELECT SUM ( ALL - ( col0 ) ) col1 FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - COUNT( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - COUNT ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 * + + 16 + + col1 FROM tab2 cor0
----
419
717
995

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL MIN( + 5 ) FROM tab1, tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL MIN ( + 5 ) FROM tab1, tab0 cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 > - 89 * - 69
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2106
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL + COUNT( * ) * 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + COUNT ( * ) * 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND col1 + col0 * 6
----

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND col1 + col0 * 6
----

query II rowsort
SELECT DISTINCT + + 76 AS col1, ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
76
-4896
76
-5015
76
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - ( + MAX( ALL + col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2110
SELECT - ( + MAX ( ALL + col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT DISTINCT + MAX( - - col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + MAX ( - - col0 ) AS col0 FROM tab0 cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col0 + + col1 + - 10 * - ( + col2 * col1 - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 23 col0 FROM tab2 AS cor0
----
23
41
52

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 89 * col2
----

query I rowsort
SELECT - ( col1 ) - - + col0 AS col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL + COUNT( * ) + - 95 FROM tab2 WHERE ( - col1 / - + CAST( NULL AS SIGNED ) ) > + 26 * 47 AND NOT + col0 > NULL
----
-95

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + COUNT ( * ) + - 95 FROM tab2 WHERE ( - col1 / - + CAST ( NULL AS INTEGER ) ) > + 26 * 47 AND NOT + col0 > NULL
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT col2 + - 2 * + 17 / CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2117
SELECT col2 + - 2 * + 17 / CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 40 * 78 + 5 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) NOT BETWEEN - - 5 AND ( - col1 + - 82 ) OR col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT 77 * - COUNT( 34 ) - + COUNT( * ) * - 73 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-2122
SELECT 77 * - COUNT ( 34 ) - + COUNT ( * ) * - 73 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-12

query II rowsort
SELECT col0, 22 AS col1 FROM tab0 AS cor0
----
15
22
87
22
97
22

query I rowsort
SELECT DISTINCT ( 6 ) * - 67 * - - col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + - 52 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

query II rowsort
SELECT ALL - - col2, + col1 + ( col1 ) AS col2 FROM tab0 AS cor0
----
10
42
47
162
99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT MAX( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT MAX ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 BETWEEN + - col1 AND ( - + 76 - + 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2129
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( + + col1 AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-2129
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( + + col1 AS INTEGER ) + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2130
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2131
SELECT MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT ALL - 69 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col2 FROM tab0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT 70 * + COUNT( * ) + + 35 FROM tab0
----
245

skipif mysql # not compatible
query I rowsort label-2134
SELECT 70 * + COUNT ( * ) + + 35 FROM tab0
----
245

query I rowsort
SELECT col2 + 83 FROM tab0
----
130
182
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 89 col2 FROM tab1 AS cor0
----
42
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, - col1 + - col2 col2 FROM tab0 AS cor0
----
10
-31
47
-128
99
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL - MAX( + 88 ) AS col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - MAX ( + 88 ) AS col2 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT 99 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 * col1 AND - - 71
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * col0, + col1 + + 1 - col1 )
----

query I rowsort
SELECT + - 26 + + col0 * - ( - + col1 ) AS col1 FROM tab2 cor0
----
2320
4902
4999

query I rowsort
SELECT + col2 + - 4 AS col2 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT + COUNT( * ) + + + 0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + COUNT ( * ) + + + 0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 92 * ( - col0 ) + + col1 * - col0 AS col2 FROM tab0 WHERE NOT NULL < col0 + - 49
----

query I rowsort
SELECT ALL - col2 - + - col1 + col2 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT - 50 / + col1 / + col1 + - + 64 + - + CAST( 89 AS SIGNED ) * - col0 AS col2 FROM tab0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2147
SELECT - 50 / + col1 / + col1 + - + 64 + - + CAST ( 89 AS INTEGER ) * - col0 AS col2 FROM tab0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= col0
----

query I rowsort
SELECT ALL col0 - + 72 FROM tab1
----
-21
13
19

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - col0 - + col2 FROM tab0
----
-17
164
95

query II rowsort
SELECT - 61 AS col2, - 58 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2153
SELECT COUNT( * ) * - - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2153
SELECT COUNT ( * ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT ALL - col2 DIV 91 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - col2 / 91 AS col2 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL + ( - col1 ) AS col2, col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT 56 AS col1 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL + + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= col0 * + + col1
----

query I rowsort
SELECT DISTINCT + col2 * 45 FROM tab2 AS cor0
----
1035
1800
2610

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * col0 < ( col0 ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + + 27 + + col0 + 63 * 66 AS col0 FROM tab0 AS cor0
----
4200
4272
4282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + - CAST( - + 47 AS SIGNED ) + col0 AS col0 FROM tab2 WHERE - - 58 + - - col1 NOT BETWEEN - col0 AND ( col1 )
----
1127
1944
2801

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + - CAST ( - + 47 AS INTEGER ) + col0 AS col0 FROM tab2 WHERE - - 58 + - - col1 NOT BETWEEN - col0 AND ( col1 )
----
1127
1944
2801

query II rowsort
SELECT ALL + col2 AS col1, - col1 * col0 FROM tab0
----
10
-1827
47
-1215
99
-97

query II rowsort
SELECT - col2, + col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) / ( + 38 ) NOT BETWEEN col0 AND + ( + 24 )
----

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT + col0 * - col0 AS col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) / ( + 38 ) NOT BETWEEN col0 AND + ( + 24 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - col0 ) + - ( + col2 ) / 73 * - 81 + + col2 + 57 + + col0 * + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT + + COUNT( ALL - col1 ) + + 97 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2168
SELECT + + COUNT ( ALL - col1 ) + + 97 FROM tab2 AS cor0
----
100

query I rowsort
SELECT + - col0 + + col0 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT 19 * - col0 + - - col1 + 95 * 67 FROM tab0
----
4523
4733
6161

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - SUM( DISTINCT - + col2 ) * 23 * - 48 AS col2 FROM tab1
----
-246192

skipif mysql # not compatible
query I rowsort label-2172
SELECT - SUM ( DISTINCT - + col2 ) * 23 * - 48 AS col2 FROM tab1
----
-246192

query I rowsort
SELECT - col2 * - ( - 19 ) AS col0 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - COUNT( * ) * + + 55 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2174
SELECT - COUNT ( * ) * + + 55 FROM tab1 AS cor0
----
-165

query II rowsort
SELECT ( - 18 ), col1 FROM tab2 AS cor0
----
-18
51
-18
67
-18
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT - 87 DIV col1 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-57
-92

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - 87 / col1 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-57
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 - + 78 col0, col1 FROM tab0
----
-57
21
-77
1
3
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT 76 * + SUM( ALL col1 ) - + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2178
SELECT 76 * + SUM ( ALL col1 ) - + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT - COUNT( DISTINCT - col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2181
SELECT - COUNT ( DISTINCT - col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL + col0 + + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * - 79 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT - 54 DIV + - col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2184
SELECT - 54 / + - col0 FROM tab0
----
0
0
3

query I rowsort
SELECT ALL 67 * - 6 AS col2 FROM tab1
----
-402
-402
-402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab1 cor0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 52 / + 93 BETWEEN 24 AND + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL + + 33 * + - COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + + 33 * + - COUNT ( * ) FROM tab1 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2189
SELECT ALL + 54 DIV 96 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + 54 / 96 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT MAX( ALL + + 78 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT MAX ( ALL + + 78 ) FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 2 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col0 * 12 + + col1 FROM tab2
----
603
845
967

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2195
SELECT ALL * FROM tab0 WHERE NOT ( + + col2 * 44 + - col2 ) <> - CAST( NULL AS SIGNED ) * - 26
----

skipif mysql # not compatible
query III rowsort label-2195
SELECT ALL * FROM tab0 WHERE NOT ( + + col2 * 44 + - col2 ) <> - CAST ( NULL AS INTEGER ) * - 26
----

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT + - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE col2 > - col0 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT + - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE col2 > - col0 * + col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - col1 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - + 21 * - - 26 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - + 25 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2201
SELECT ALL 73 + - 62 / + CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2201
SELECT ALL 73 + - 62 / + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT CAST( NULL AS SIGNED ) + + MIN( ALL + CAST( - col1 AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT CAST ( NULL AS INTEGER ) + + MIN ( ALL + CAST ( - col1 AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + ( + 2 ) FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT 92 + - 76 + + - 33 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 = ( - + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 = ( - + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL - MIN( - 27 ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - MIN ( - 27 ) AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2207
SELECT ALL col2, + CAST( NULL AS SIGNED ) / col2 col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2207
SELECT ALL col2, + CAST ( NULL AS INTEGER ) / col2 col0 FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + + MAX( DISTINCT - 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + + MAX ( DISTINCT - 36 ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT 9 * + - col2 * - col1 * - + col1 AS col1 FROM tab0
----
-2775303
-39690
-891

query II rowsort
SELECT ALL - 98, col1 AS col1 FROM tab2
----
-98
51
-98
67
-98
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT 50 DIV col1 AS col0 FROM tab0
----
0
2
50

skipif mysql # not compatible
query I rowsort label-2211
SELECT 50 / col1 AS col0 FROM tab0
----
0
2
50

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT 57 * + ( - col2 ) FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT ALL - 12 * + col0 * - + col2 FROM tab1
----
58752
60180
74256

query I rowsort
SELECT DISTINCT - 1 * + ( - col1 ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + col2 * + 83 * + col1 AS col1 FROM tab2
----
255640
322538
97359

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL SUM( DISTINCT 73 ) AS col1 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL SUM ( DISTINCT 73 ) AS col1 FROM tab1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT DISTINCT ( col0 ) DIV - - col2 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT ( col0 ) / - - col2 AS col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT ALL + - 63 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + - 63 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 col1 FROM tab2 AS cor0
----
-87
-87
-87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT + COUNT( * ) + ( - + SUM( ALL + + 41 ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + COUNT ( * ) + ( - + SUM ( ALL + + 41 ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 * - col1 * - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + - COUNT( * ) * 60 col1 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2224
SELECT ALL + - COUNT ( * ) * 60 col1 FROM tab1 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + COUNT( 98 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2225
SELECT + COUNT ( 98 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - col0 FROM tab2 WHERE ( NULL < ( - 77 ) )
----

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab1 WHERE NOT + - col1 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * 90 * - + CAST( - + 2 AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
1620

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * 90 * - + CAST ( - + 2 AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
1620

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - SUM( ALL + col0 ) + + + COUNT( * ) AS col2 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-2231
SELECT - SUM ( ALL + col0 ) + + + COUNT ( * ) AS col2 FROM tab2
----
-182

query II rowsort
SELECT DISTINCT + 47 + - col0 * + 87 + - 1 - - 14, col1 * - 10 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - ( - - 57 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 26 ) IS NOT NULL
----

query I rowsort
SELECT - 99 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT CAST( NULL AS SIGNED ) - + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT CAST ( NULL AS INTEGER ) - + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 * + 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( ( - - 67 ) ) FROM tab1 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2240
SELECT - col1 / col1 FROM tab0 WHERE NOT ( + CAST( NULL AS DECIMAL ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-2240
SELECT - col1 / col1 FROM tab0 WHERE NOT ( + CAST ( NULL AS REAL ) ) > NULL
----

query I rowsort
SELECT ( - 82 ) FROM tab2
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * + col0 col2 FROM tab1
----
2805
4675
5005

query I rowsort
SELECT + ( + 1 ) * - + 1 * - - 12 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT NULL > 31 / - + 93
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT ALL 62 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL 62 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( + + 31 ) AS col1, col0 AS col1 FROM tab0
----
31
15
31
87
31
97

query II rowsort
SELECT ALL - - col2 AS col0, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL 84 AS col1 FROM tab2 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL + COUNT( * ) + - 60 * + 37 * 1 AS col2 FROM tab1 AS cor0
----
-2217

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + COUNT ( * ) + - 60 * + 37 * 1 AS col2 FROM tab1 AS cor0
----
-2217

query I rowsort
SELECT ALL - 56 * - col2 + - + col0 FROM tab1 cor0
----
3219
3717
5325

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 = NULL
----

query I rowsort
SELECT - + 87 + + 85 FROM tab1 AS cor0
----
-2
-2
-2

query II rowsort
SELECT + 13 + - col0 AS col2, - col1 AS col0 FROM tab2
----
-33
-51
-51
-77
-62
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-2256
SELECT - - col2, + col2 * 33 * + col1 DIV - - col1 - + ( - col0 ) + - col1 AS col2 FROM tab0 WHERE - + 1 BETWEEN - ( + 58 ) DIV - - 63 + - ( + 31 ) AND + 7
----
10
396
47
1485
99
3363

skipif mysql # not compatible
query II rowsort label-2256
SELECT - - col2, + col2 * 33 * + col1 / - - col1 - + ( - col0 ) + - col1 AS col2 FROM tab0 WHERE - + 1 BETWEEN - ( + 58 ) / - - 63 + - ( + 31 ) AND + 7
----
10
396
47
1485
99
3363

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2257
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV - col0 AS col0, 76 FROM tab1
----
-1
76

skipif mysql # not compatible
query II rowsort label-2257
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / - col0 AS col0, 76 FROM tab1
----
-1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - COUNT( * ) + - - 99 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2258
SELECT - COUNT ( * ) + - - 99 FROM tab1
----
96

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab2 WHERE - - 5 IS NOT NULL
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT ALL - col2 + + 80 * 18 - col1 + + col1 * + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - col2 + + 80 * 18 - col1 + + col1 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT COUNT( * ) * - 32 + + + 4 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT COUNT ( * ) * - 32 + + + 4 FROM tab1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2262
SELECT ALL + ( - 31 ) + - 71 + - MIN( - col2 ) DIV MAX( col0 ) AS col2 FROM tab0
----
-101

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + ( - 31 ) + - 71 + - MIN ( - col2 ) / MAX ( col0 ) AS col2 FROM tab0
----
-101

query I rowsort
SELECT DISTINCT col0 - 73 * col2 AS col1 FROM tab0
----
-3416
-643
-7130

query I rowsort
SELECT ALL + 82 - - - col1 AS col1 FROM tab2
----
15
31
5

query II rowsort
SELECT col1 - + - 35, + col2 FROM tab0 cor0
----
116
47
36
99
56
10

query II rowsort
SELECT ALL - - col0 + + 42 + - col1, + 19 AS col0 FROM tab0 AS cor0
----
-24
19
108
19
138
19

query I rowsort
SELECT 33 - + col0 AS col1 FROM tab2 AS cor0
----
-13
-31
-42

query I rowsort
SELECT 78 - + col0 * ( - - col0 ) FROM tab0
----
-147
-7491
-9331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT + 70 / - 7 * - 9 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2269
SELECT + 70 / - 7 * - 9 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2270
SELECT ALL - - ( COUNT( * ) ) DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2270
SELECT ALL - - ( COUNT ( * ) ) / + COUNT ( * ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT 14 - - - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, - 60 * col0 AS col2 FROM tab2 AS cor0
----
51
-2760
67
-4500
77
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT 80 * col2 DIV col0 AS col1 FROM tab1 AS cor0
----
150
55
59

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT 80 * col2 / col0 AS col1 FROM tab1 AS cor0
----
150
55
59

query I rowsort
SELECT + 63 * + 44 * + - col0 AS col1 FROM tab0 AS cor0
----
-241164
-268884
-41580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT + COUNT( * ) DIV + 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT + COUNT ( * ) / + 93 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT + 32 DIV + 36 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT + 32 / + 36 FROM tab0
----
0

query II rowsort
SELECT + col0 * + col2 AS col1, - col1 FROM tab1
----
4896
-14
5015
-5
6188
-47

query I rowsort
SELECT DISTINCT + 68 + - col2 + 82 FROM tab0 AS cor0
----
103
140
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT COUNT( * ) * 38 AS col1 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2280
SELECT COUNT ( * ) * 38 AS col1 FROM tab0 AS cor0
----
114

query I rowsort
SELECT 85 + + + col2 AS col0 FROM tab2
----
108
125
143

query I rowsort
SELECT 2 + col2 AS col2 FROM tab2
----
25
42
60

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT COUNT( * ) DIV + + 4 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2284
SELECT COUNT ( * ) / + + 4 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL BETWEEN - col0 AND - - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT - COUNT( * ) + + ( - - COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - COUNT ( * ) + + ( - - COUNT ( * ) ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + col1 ) BETWEEN + ( col2 ) AND NULL
----

query I rowsort
SELECT - - col2 FROM tab0 WHERE - ( - 39 ) + col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT COUNT( DISTINCT + col0 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT COUNT ( DISTINCT + col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - 74
----

query I rowsort
SELECT ALL + col2 * ( - col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + COUNT( DISTINCT - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2293
SELECT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - 29 * - + col1 AS col0 FROM tab0 AS cor0
----
2349
29
609

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2295
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - 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-2295
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 90 ) AS col0 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab0 AS cor0 WHERE col0 <= 96 * - col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - - SUM( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2298
SELECT - - SUM ( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT + - COUNT( + 22 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + - COUNT ( + 22 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - ( + - col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT - ( - col2 ) DIV 24 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2302
SELECT - ( - col2 ) / 24 AS col2 FROM tab0
----
0
1
4

query I rowsort
SELECT + col0 + 24 * - + col1 AS col1 FROM tab1
----
-1037
-285
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 36 col1 FROM tab0
----
123
133
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT + - MIN( - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + - MIN ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2306
SELECT ALL - + MAX( ALL - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - + MAX ( ALL - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - 33 + - COUNT( - - 92 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 33 + - COUNT ( - - 92 ) FROM tab2 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 cor0 WHERE - col1 * + 88 <= - col0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col2 AND ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 + - - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 + - - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2312
SELECT 61 + CAST( + - 33 AS SIGNED ) FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-2312
SELECT 61 + CAST ( + - 33 AS INTEGER ) FROM tab2
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT MAX( + col1 ) + - 79 * - 49 AS col0 FROM tab1
----
3918

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT MAX ( + col1 ) + - 79 * - 49 AS col0 FROM tab1
----
3918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2314
SELECT DISTINCT + SUM( col1 ) col1 FROM tab0 WHERE NULL IN ( + 62, + CAST( col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2314
SELECT DISTINCT + SUM ( col1 ) col1 FROM tab0 WHERE NULL IN ( + 62, + CAST ( col0 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL col0 * - + col1 + 49 + + - 84 + + + 32 + 58 * - + col0 * col2 AS col0 FROM tab2
----
-153411
-257328
-63713

query I rowsort
SELECT ALL - 38 * + + col2 - - 57 AS col1 FROM tab1
----
-2185
-2527
-3591

query I rowsort
SELECT + 78 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( - col2 / - col2 + + col0 + col1 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2319
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 74 + col2, 80 + - col2, - col2 - + + CAST( NULL AS SIGNED ), - - col2 )
----

skipif mysql # not compatible
query III rowsort label-2319
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 74 + col2, 80 + - col2, - col2 - + + CAST ( NULL AS INTEGER ), - - col2 )
----

query I rowsort
SELECT ALL - - 33 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + + col2 * col0, - 76, - - col1, col1, - col1, + 73, - col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 3 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
45

query I rowsort
SELECT ALL + col2 * + 44 AS col0 FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT ALL + 77 DIV + 31 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 77 / + 31 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT DISTINCT ( + SUM( DISTINCT - CAST( col2 AS SIGNED ) ) ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT ( + SUM ( DISTINCT - CAST ( col2 AS INTEGER ) ) ) AS col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT COUNT( * ) * - - 39 AS col0 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-2326
SELECT COUNT ( * ) * - - 39 AS col0 FROM tab1
----
117

query I rowsort
SELECT ALL - 7 AS col2 FROM tab2 WHERE NOT ( - 73 ) IS NULL
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL ( COUNT( + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL ( COUNT ( + col0 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL - col0 * - 91 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT 80 * - + MAX( DISTINCT + col1 ) FROM tab0
----
-6480

skipif mysql # not compatible
query I rowsort label-2330
SELECT 80 * - + MAX ( DISTINCT + col1 ) FROM tab0
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - + COUNT( * ) * + 24 + COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2331
SELECT - + COUNT ( * ) * + 24 + COUNT ( * ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT col2 + + + col0 * - - col1 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL + 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT ALL MIN( - col0 ) - - MAX( DISTINCT - 52 ) FROM tab1 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL MIN ( - col0 ) - - MAX ( DISTINCT - 52 ) FROM tab1 AS cor0
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2335
SELECT DISTINCT 82 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT 82 / + - COUNT ( * ) FROM tab2 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT col2 + + - ( + col0 ) FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2338
SELECT 61 + - + 41, COUNT( * ) AS col0 FROM tab0
----
20
3

skipif mysql # not compatible
query II rowsort label-2338
SELECT 61 + - + 41, COUNT ( * ) AS col0 FROM tab0
----
20
3

query I rowsort
SELECT DISTINCT - ( ( - 72 ) ) AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL - col0 * + 2 AS col0 FROM tab0 cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT DISTINCT - + CAST( - 9 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT - + CAST ( - 9 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT + COUNT( * ) AS col0, - 39 AS col1 FROM tab0 AS cor0
----
3
-39

skipif mysql # not compatible
query II rowsort label-2342
SELECT + COUNT ( * ) AS col0, - 39 AS col1 FROM tab0 AS cor0
----
3
-39

query I rowsort
SELECT + ( + 85 ) AS col1 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT MAX( + ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-2344
SELECT MAX ( + ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77

query I rowsort
SELECT DISTINCT + 6 + - 77 FROM tab0 cor0
----
-71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2347
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + - col1 * - 53 * - 93 * + 13 + + col1 + - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + - col1 * - 53 * - 93 * + 13 + + col1 + - + col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 + ( 44 ) AS col2 FROM tab1
----
103
112
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT col0 DIV + - col1 + - col2 FROM tab2
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-2349
SELECT col0 / + - col1 + - col2 FROM tab2
----
-23
-40
-59

query I rowsort
SELECT 52 + - - 60 + col0 AS col1 FROM tab0
----
127
199
209

query I rowsort
SELECT DISTINCT 69 * + 69 * col0 FROM tab0
----
414207
461817
71415

query I rowsort
SELECT col2 FROM tab2 WHERE ( NOT - col0 IS NULL )
----
23
40
58

query II rowsort
SELECT + col1 + 70 * + + 95 * + 54 + - ( - col0 ) AS col1, ( ( - col1 ) ) AS col2 FROM tab0
----
359196
-81
359198
-1
359208
-21

query I rowsort
SELECT ALL - col2 + - 82 * + + 21 * - - col1 AS col0 FROM tab0
----
-139529
-1821
-36172

query I rowsort
SELECT ALL + col2 * + col2 * - col2 * + col2 * - col0 FROM tab2
----
12872686
163840000
848737200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2356
SELECT - CAST( - col1 AS SIGNED ) + col1 AS col2 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-2356
SELECT - CAST ( - col1 AS INTEGER ) + col1 AS col2 FROM tab2
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + col1 col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 * - col0 * 29 AS col2 FROM tab1 AS cor0
----
-12325
-124033
-20706

query I rowsort
SELECT + col2 * - + col0 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + 39 AS col1, col0 FROM tab0 AS cor0
----
39
15
39
87
39
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ( - + ( SUM( + 72 ) ) ) AS col1 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-2362
SELECT ( - + ( SUM ( + 72 ) ) ) AS col1 FROM tab1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL + 83 + COUNT( * ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + 83 + COUNT ( * ) FROM tab2
----
86

query I rowsort
SELECT - ( + 49 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT 87 + 27 + - 94 AS col0 FROM tab2
----
20
20
20

query I rowsort
SELECT - 12 FROM tab0 WHERE NULL IS NULL
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-2367
SELECT ALL col1 DIV + ( - 41 ) AS col2, 50 AS col1 FROM tab1 AS cor0
----
-1
50
0
50
0
50

skipif mysql # not compatible
query II rowsort label-2367
SELECT ALL col1 / + ( - 41 ) AS col2, 50 AS col1 FROM tab1 AS cor0
----
-1
50
0
50
0
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT - MIN( - 60 ) AS col2 FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - MIN ( - 60 ) AS col2 FROM tab0 cor0
----
60

query I rowsort
SELECT col1 + + + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL - COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL - 62 + - CAST( + + MAX( DISTINCT + 14 ) AS SIGNED ) col1 FROM tab1
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2372
SELECT ALL - 62 + - CAST ( + + MAX ( DISTINCT + 14 ) AS INTEGER ) col1 FROM tab1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2373
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT ALL col2 DIV + - col2 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL col2 / + - col2 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT SUM( ( - - col0 ) ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2375
SELECT SUM ( ( - - col0 ) ) col1 FROM tab0
----
199

query I rowsort
SELECT 94 FROM tab0 AS cor0 WHERE NOT 95 + - + col1 IS NULL
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2377
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + + 91 AS SIGNED ) >= + 7
----

skipif mysql # not compatible
query III rowsort label-2377
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + + 91 AS INTEGER ) >= + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2378
SELECT ALL - col2 AS col0, CAST( 21 AS SIGNED ) - + col1 AS col1 FROM tab2 AS cor0
----
-23
-30
-40
-56
-58
-46

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL - col2 AS col0, CAST ( 21 AS INTEGER ) - + col1 AS col1 FROM tab2 AS cor0
----
-23
-30
-40
-56
-58
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0 FROM tab0 WHERE NOT ( ( - col0 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT ( ( - col0 ) IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + - COUNT( ALL 72 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2380
SELECT + - COUNT ( ALL 72 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT 6 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT - + MAX( DISTINCT - ( + 34 ) ) AS col2 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2383
SELECT - + MAX ( DISTINCT - ( + 34 ) ) AS col2 FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT - MAX( CAST( - 73 AS SIGNED ) ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2384
SELECT - MAX ( CAST ( - 73 AS INTEGER ) ) FROM tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT - + col1 * - + col0 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + col1 * + + 73 AS col1 FROM tab0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + COUNT( * ) * + 76 AS col0 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + COUNT ( * ) * + 76 AS col0 FROM tab1
----
228

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + ( ( + ( col2 ) ) ) + + - col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + SUM( DISTINCT col0 ) * + COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-2389
SELECT + SUM ( DISTINCT col0 ) * + COUNT ( * ) FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - COUNT( * ) * - ( ( + MAX( + - col2 ) ) ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2390
SELECT - COUNT ( * ) * - ( ( + MAX ( + - col2 ) ) ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT DISTINCT - col2 * 24 FROM tab2
----
-1392
-552
-960

query I rowsort
SELECT - 25 + + + 14 AS col2 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT col0 + - + col2 * + ( - - 41 ) * - col2 * - 17 * col2 + + 11 + - col2 * ( col1 ) * col2 FROM tab0 AS cor0
----
-676308096
-699002
-72543534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 * - - col2 AS col2, ( - col2 ), - 55 + + - col2 col0 FROM tab1 AS cor0 WHERE NULL = col0 * + col0 / + 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT - col1 FROM tab2 WHERE - - col1 * 88 * - - CAST( - col2 AS SIGNED ) IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2395
SELECT - col1 FROM tab2 WHERE - - col1 * 88 * - - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 28 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
28

query I rowsort
SELECT - col2 * + + col1 + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL - COUNT( * ) * + MAX( 43 ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - COUNT ( * ) * + MAX ( 43 ) FROM tab1 AS cor0
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 + + + 41 col0 FROM tab2 AS cor0
----
110
145
174

query I rowsort
SELECT ALL + - col2 * - - 99 + - 90 FROM tab1 AS cor0
----
-5931
-6822
-9594

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT COUNT( * ) * + 4 * + COUNT( * ) - - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2401
SELECT COUNT ( * ) * + 4 * + COUNT ( * ) - - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT + 72 FROM tab1 AS cor0 WHERE NOT + col1 = col2 + - col0 / + col2 AND + 62 IS NOT NULL
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 73 = col2 + 25
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 73 = col2 + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + SUM( ALL col2 ) * - 43 AS col0 FROM tab2 AS cor0
----
-5203

skipif mysql # not compatible
query I rowsort label-2404
SELECT + SUM ( ALL col2 ) * - 43 AS col0 FROM tab2 AS cor0
----
-5203

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 98 * - col1 * + + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT DISTINCT COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL - MIN( - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL - MIN ( - col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT ALL 44 * - - col2 AS col2 FROM tab1
----
2596
2992
4224

query I rowsort
SELECT + ( + 89 ) AS col0 FROM tab1
----
89
89
89

query I rowsort
SELECT + ( 2 ) FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
51
67
77

query I rowsort
SELECT - 4 * + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT - + MAX( + + 39 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT - + MAX ( + + 39 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2415
SELECT DISTINCT * FROM tab0 WHERE NOT 43 - - col0 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2415
SELECT DISTINCT * FROM tab0 WHERE NOT 43 - - col0 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT - SUM( + CAST( NULL AS SIGNED ) ) + + - COUNT( DISTINCT + + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - SUM ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + - col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT - col1 DIV - - col2 * + 1 - - 11 AS col0 FROM tab2 AS cor0
----
10
10
9

skipif mysql # not compatible
query I rowsort label-2418
SELECT - col1 / - - col2 * + 1 - - 11 AS col0 FROM tab2 AS cor0
----
10
10
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT ALL + + col2 DIV - 91 + - - col1 + + col2 + - + col2 - - col1 DIV - col0 FROM tab1 cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + + col2 / - 91 + - - col1 + + col2 + - + col2 - - col1 / - col0 FROM tab1 cor0
----
13
47
5

query I rowsort
SELECT DISTINCT - - col2 + + + col0 + + 86 AS col2 FROM tab2 cor0
----
155
190
219

query II rowsort
SELECT + col2 + + 58, + col2 AS col1 FROM tab2
----
116
58
81
23
98
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + 93 * + col0 NOT IN ( - col1, 49 )
----

query I rowsort
SELECT 75 + - - col0 * + col2 AS col0 FROM tab2
----
1133
2635
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT - ( col1 ) + CAST( NULL AS SIGNED ) + + 51 / + 77 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT - ( col1 ) + CAST ( NULL AS INTEGER ) + + 51 / + 77 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 52 + + 79 FROM tab2
----
131
131
131

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 17 - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 77 ) + - 75 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + + 32 AS col0 FROM tab2 AS cor0
----
-26
-8
9

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab0 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT COUNT( + + 30 ) + + ( + 23 ) AS col2 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT COUNT ( + + 30 ) + + ( + 23 ) AS col2 FROM tab1 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2432
SELECT - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT DISTINCT + CAST( NULL AS SIGNED ) - COUNT( + - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - COUNT ( + - col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 * + 10 AS col1 FROM tab0 cor0
----
-150
-870
-970

query I rowsort
SELECT + 17 * - - 95 * ( + + col0 ) AS col2 FROM tab1 AS cor0
----
137275
146965
82365

query I rowsort
SELECT ALL 70 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
30
47

query I rowsort
SELECT - col0 * - 53 * + - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-112199
-217165
-298192

query I rowsort
SELECT DISTINCT + - col0 * - + ( + + col0 ) FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT ALL COUNT( * ), ( + COUNT( * ) ) col2 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2439
SELECT ALL COUNT ( * ), ( + COUNT ( * ) ) col2 FROM tab2
----
3
3

query I rowsort
SELECT + 20 * + + col0 * - - col2 * - ( - 97 ) AS col0 FROM tab2
----
2052520
4966400
8439000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2441
SELECT DISTINCT CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab2 WHERE NOT NULL <> - col2
----

skipif mysql # not compatible
query II rowsort label-2441
SELECT DISTINCT CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab2 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL + + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2443
SELECT ALL COUNT( * ) AS col0, ( + - 57 ) DIV - 91 AS col0 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL COUNT ( * ) AS col0, ( + - 57 ) / - 91 AS col0 FROM tab2
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT 14 DIV col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2444
SELECT 14 / col2 FROM tab0
----
0
0
1

query II rowsort
SELECT ALL - col0 AS col2, + ( + 81 ) FROM tab0
----
-15
81
-87
81
-97
81

query I rowsort
SELECT ALL col0 * - 2 * 50 * + col0 AS col0 FROM tab1 WHERE NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT - SUM( DISTINCT col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2447
SELECT - SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
-195

query I rowsort
SELECT ALL 31 * ( + - col2 ) AS col0 FROM tab2 WHERE ( - 64 / 87 ) IS NOT NULL
----
-1240
-1798
-713

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL - + 85 * - + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - + 85 * - + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT ALL COUNT( * ) DIV + 92 * + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL COUNT ( * ) / + 92 * + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT 37 + + - 45 FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT - 21 DIV + - COUNT( * ) AS col0 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-2453
SELECT - 21 / + - COUNT ( * ) AS col0 FROM tab0 cor0
----
7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND - col2 - + 13
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 + - col1 <> NULL
----

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + col2 * - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + col2 * - + col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2458
SELECT ALL - ( CAST( NULL AS DECIMAL ) ) + + + 14 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - ( CAST ( NULL AS REAL ) ) + + + 14 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 3 AS col0, - col2 AS col1 FROM tab1
----
-3
-59
-3
-68
-3
-96

query II rowsort
SELECT DISTINCT col2 AS col1, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - - col2 * + - ( - - col0 ) + + + col1 + - col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + 67 + col0 FROM tab0 AS cor0
----
154
164
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT DISTINCT 37 + + + 2 + + CAST( - - col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-15
-43
18

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 37 + + + 2 + + CAST ( - - col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-15
-43
18

query I rowsort
SELECT + 13 + 52 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT - COUNT( * ) + + 27 col2 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2465
SELECT - COUNT ( * ) + + 27 col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT 92 * - SUM( DISTINCT ( col2 ) ) FROM tab2
----
-11132

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT 92 * - SUM ( DISTINCT ( col2 ) ) FROM tab2
----
-11132

query I rowsort
SELECT - 3 + + col1 FROM tab1
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + COUNT( * ) + 2 * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2468
SELECT + COUNT ( * ) + 2 * + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - COUNT( * ) * - 22 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - COUNT ( * ) * - 22 FROM tab2
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 71 * col2 BETWEEN NULL AND - 37 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab1
----
35
35
35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN ( NULL ) AND 41
----
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE NOT + 47 + 42 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( col0 ) * + col2 - - 4 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT COUNT( * ) + 34 AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2475
SELECT COUNT ( * ) + 34 AS col2 FROM tab1
----
37

query I rowsort
SELECT ( col0 ) + + col0 AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT 6 - 76 FROM tab2
----
-70

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 46 + + 94 * - col1 FROM tab1 WHERE - col0 NOT BETWEEN - col0 AND col0 + 56
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 * 84 )
----

query I rowsort
SELECT ALL col2 + 92 FROM tab1
----
151
160
188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 64 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 74 / col2 AS col1 FROM tab0 WHERE NOT - col2 NOT BETWEEN + col1 / 31 + col2 AND col0 - + ( col1 + + col0 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + ( + MIN( + col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2484
SELECT + ( + MIN ( + col1 ) ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( - CAST( NULL AS SIGNED ) + + col0 )
----

skipif mysql # not compatible
query III rowsort label-2485
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( - CAST ( NULL AS INTEGER ) + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT + COUNT( 38 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT + COUNT ( 38 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + 46 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + + 91 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT SUM( DISTINCT ( + col0 ) ) FROM tab1 cor0 WHERE NOT + col0 < col1
----
227

skipif mysql # not compatible
query I rowsort label-2489
SELECT SUM ( DISTINCT ( + col0 ) ) FROM tab1 cor0 WHERE NOT + col0 < col1
----
227

query I rowsort
SELECT col2 * - ( 82 ) FROM tab2 AS cor0
----
-1886
-3280
-4756

query I rowsort
SELECT - col1 * - 81 + ( - col2 ) * + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT + MIN( DISTINCT + col0 ) * + ( + MAX( + col0 ) ) FROM tab2 AS cor0
----
3450

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + MIN ( DISTINCT + col0 ) * + ( + MAX ( + col0 ) ) FROM tab2 AS cor0
----
3450

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT DISTINCT col1 + - col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) + - col2 AND col1
----

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT col1 + - col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) + - col2 AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT DISTINCT 64 + + CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT 64 + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
67

query I rowsort
SELECT - 99 + col1 FROM tab0 AS cor0
----
-18
-78
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - + COUNT( * ) + 27 AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2498
SELECT - + COUNT ( * ) + 27 AS col2 FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2499
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2499
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + - CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * 77 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2501
SELECT * FROM tab0 AS cor0 WHERE - ( CAST( - col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2501
SELECT * FROM tab0 AS cor0 WHERE - ( CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 24 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2503
SELECT ALL + col0 DIV - col1 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL + col0 / - col1 FROM tab2 cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT + 65 AS col1 FROM tab1 cor0 WHERE + CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2505
SELECT + 65 AS col1 FROM tab1 cor0 WHERE + CAST ( - col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT MIN( ALL - col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT MIN ( ALL - col0 ) FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT + 53 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT + 53 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL + 59 * - - 3 * 75 + - COUNT( * ) FROM tab0
----
13272

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL + 59 * - - 3 * 75 + - COUNT ( * ) FROM tab0
----
13272

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT - SUM( - 77 ) AS col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND ( col0 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - SUM ( - 77 ) AS col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND ( col0 + + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT + MIN( col2 ) * + 45 FROM tab1 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT + MIN ( col2 ) * + 45 FROM tab1 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL 57 + + COUNT( * ) + 19 AS col2 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL 57 + + COUNT ( * ) + 19 AS col2 FROM tab2
----
79

query I rowsort
SELECT DISTINCT - col2 - ( 0 ) * col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT col2 * + - col1 * - col1 AS col0 FROM tab1
----
1475
150212
18816

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT ALL - col2 DIV + 56 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - col2 / + 56 AS col1 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col2 FROM tab2
----
-94
-94
-94

query I rowsort
SELECT - - 48 * - 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e1b4bb08eb959b6a9255c073e577fbf2

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 8 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT + COUNT( * ) + - 94 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-837

skipif mysql # not compatible
query I rowsort label-2520
SELECT + COUNT ( * ) + - 94 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-837

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2521
SELECT ALL - CAST( NULL AS DECIMAL ) * 85 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - CAST ( NULL AS REAL ) * 85 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2522
SELECT ALL - COUNT( * ) * + + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + + COUNT( 48 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - COUNT ( * ) * + + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + + COUNT ( 48 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT - col0 * + col1 + + col2 DIV + col0 FROM tab1 AS cor0
----
-425
-4277
-713

skipif mysql # not compatible
query I rowsort label-2524
SELECT - col0 * + col1 + + col2 / + col0 FROM tab1 AS cor0
----
-425
-4277
-713

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 * col2 - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2527
SELECT + col2, + col1 + + + col1 + + ( 34 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
10
43
47
162
99
36

skipif mysql # not compatible
query II rowsort label-2527
SELECT + col2, + col1 + + + col1 + + ( 34 ) / + col1 AS col1 FROM tab0 AS cor0
----
10
43
47
162
99
36

query I rowsort
SELECT + - 23 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-18
-9
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL col0 * - - ( - CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL col0 * - - ( - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - col1 * 87 + - + col2 AS col2 FROM tab1 AS cor0
----
-1314
-4157
-494

query I rowsort
SELECT - col1 * ( + col1 ) * 77 AS col2 FROM tab0 AS cor0
----
-33957
-505197
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 - + - col1 * 80 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1, col2 col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT col1 * + 14 * - 84 FROM tab2
----
-59976
-78792
-90552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT DISTINCT + ( + SUM( ALL - col2 ) ) AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + 75 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + ( + SUM ( ALL - col2 ) ) AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + 75 * - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 >= ( NULL )
----

query I rowsort
SELECT DISTINCT ( col1 ) * - 66 FROM tab1
----
-3102
-330
-924

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2539
SELECT * FROM tab0 WHERE NOT - col0 + + col0 * 63 NOT BETWEEN NULL AND col1 - 70 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2539
SELECT * FROM tab0 WHERE NOT - col0 + + col0 * 63 NOT BETWEEN NULL AND col1 - 70 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 < - + 55 + + 80
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 * - col1 col2 FROM tab2
----
-3723
-4891
-5621

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 - + 69 * 16 NOT IN ( - 69 * 38 + 16 )
----

query I rowsort
SELECT DISTINCT + AVG ( ALL col2 ) FROM tab0 AS cor0 WHERE ( + 80 * + + col0 * ( col2 ) * col1 ) <= ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + - COUNT( ALL - 71 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2545
SELECT + - COUNT ( ALL - 71 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 + + 91 col1 FROM tab1 AS cor0
----
235
238
250

query I rowsort
SELECT - 94 + - 4 - + col1 * - 44 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL < ( + ( + 62 ) + col1 * + 18 )
----

query I rowsort
SELECT - - 51 + + - col2 * + + col2 * - col0 FROM tab2 AS cor0
----
102451
24385
252351

query I rowsort
SELECT DISTINCT col1 * - 4 AS col1 FROM tab2
----
-204
-268
-308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 WHERE - CAST( + col1 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 WHERE - CAST ( + col1 AS INTEGER ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2553
SELECT COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT ALL 66 DIV col0 DIV + + 56 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL 66 / col0 / + + 56 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT col2, col2 * - 78 - - 74 + + col2 AS col1 FROM tab2
----
23
-1697
40
-3006
58
-4392

onlyif mysql # aggregate syntax: 
query II rowsort label-2556
SELECT DISTINCT - - COUNT( * ) AS col2, + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9
81

skipif mysql # not compatible
query II rowsort label-2556
SELECT DISTINCT - - COUNT ( * ) AS col2, + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9
81

query I rowsort
SELECT DISTINCT + 84 * + col0 FROM tab0 cor0
----
1260
7308
8148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2558
SELECT - CAST( NULL AS DECIMAL ) * AVG ( 19 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT - CAST ( NULL AS REAL ) * AVG ( 19 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 98 FROM tab0 cor0 WHERE - 32 <= + 76
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL + col0 * ( - col2 ) * - 35 + + - 14 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + col0 * ( - col2 ) * - 35 + + - 14 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT 59 DIV - SUM( col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT 59 / - SUM ( col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT - 62 DIV - col0 AS col2 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 62 / - col0 AS col2 FROM tab0 cor0
----
0
0
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = col1
----

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - + col0 + + ( + - 52 ) FROM tab2 AS cor0
----
-116
-127
-98

query I rowsort
SELECT DISTINCT - 96 + - - 38 FROM tab2
----
-58

query I rowsort
SELECT ALL col2 + - 88 AS col2 FROM tab1
----
-20
-29
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL <= - 27 )
----

query I rowsort
SELECT ALL - col1 + 80 - 41 + + 79 * + - col1 AS col1 FROM tab2
----
-4041
-5321
-6121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * + col2 * col1 * col0 * + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
217398735
3836700
950697

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * + col2 * col1 * col0 * + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
217398735
3836700
950697

query I rowsort
SELECT ALL + ( - col1 ) * + 12 * - - col2 FROM tab2 AS cor0
----
-14076
-36960
-46632

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL MIN( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL MIN ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - - 50 FROM tab2 cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2574
SELECT DISTINCT - MAX( + col2 ) AS col1, COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN + 39 AND NULL
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2574
SELECT DISTINCT - MAX ( + col2 ) AS col1, COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + 39 AND NULL
----
NULL
0

query II rowsort
SELECT ALL 43, + 23 AS col1 FROM tab0
----
43
23
43
23
43
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT 35 AS col0, COUNT( * ) AS col2 FROM tab1
----
35
3

skipif mysql # not compatible
query II rowsort label-2576
SELECT 35 AS col0, COUNT ( * ) AS col2 FROM tab1
----
35
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL 58 + MIN( ALL col0 ) AS col1 FROM tab2
----
104

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL 58 + MIN ( ALL col0 ) AS col1 FROM tab2
----
104

query I rowsort
SELECT + col0 + - ( - 31 ) * col0 AS col1 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT + 38 + + 76 FROM tab0
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT 84 + + - COUNT( * ) + + COUNT( + col2 ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT 84 + + - COUNT ( * ) + + COUNT ( + col2 ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT COUNT( + 63 ) + + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT COUNT ( + 63 ) + + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT DISTINCT + - AVG ( + - col1 ) + COUNT( * ), 44 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2582
SELECT DISTINCT + - AVG ( + - col1 ) + COUNT ( * ), 44 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2583
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - + 97 * 17 FROM tab2 AS cor0 WHERE NOT ( NOT ( - 12 NOT BETWEEN + col0 AND ( NULL ) ) ) OR ( - col2 ) IS NOT NULL AND NULL = - col2
----
-1572
-1582
-1598

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * col2 + + ( - col2 ) col2, - 42 * - - col0 AS col0 FROM tab0 AS cor0
----
658
-630
860
-3654
9504
-4074

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( - - col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col1 col0 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT - col1 * col1 * + col2 DIV + - col2 AS col0 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-2590
SELECT - col1 * col1 * + col2 / + - col2 AS col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT ( - + 14 ) + + col0 - + - col2 AS col2 FROM tab1
----
130
133
145

query I rowsort
SELECT DISTINCT - col1 - + 17 - + 97 FROM tab0
----
-115
-135
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT CAST( + col2 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-2593
SELECT CAST ( + col2 AS INTEGER ) col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT + ( - - CAST( + MIN( + col1 ) AS SIGNED ) ) * - ( ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + ( - - CAST ( + MIN ( + col1 ) AS INTEGER ) ) * - ( ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 WHERE ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT ALL - col1 AS col0, + ( + ( - 4 ) ) * + 28 - + 66 AS col1 FROM tab2
----
-51
-178
-67
-178
-77
-178

query I rowsort
SELECT ALL + + 83 * 82 FROM tab2 AS cor0
----
6806
6806
6806

query I rowsort
SELECT + col0 * + - col2 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT DISTINCT 28 AS col1, - col1 FROM tab0
----
28
-1
28
-21
28
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL MIN( + - 71 ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL MIN ( + - 71 ) AS col2 FROM tab1
----
-71

query II rowsort
SELECT ALL col2, 25 AS col0 FROM tab0
----
10
25
47
25
99
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2601
SELECT ALL + 23 AS col0, col2, - 68 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
9 values hashing to d1a585573ae97decbd4f835c0664f9de

skipif mysql # not compatible
query III rowsort label-2601
SELECT ALL + 23 AS col0, col2, - 68 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
9 values hashing to d1a585573ae97decbd4f835c0664f9de

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81, - 5 col1 FROM tab1 AS cor0
----
81
-5
81
-5
81
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL - col2 - + col1 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - col2 - + col1 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 75 = 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT col2 * ( - + ( + 31 ) ) FROM tab1 AS cor0
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT SUM( + 38 ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-2607
SELECT SUM ( + 38 ) FROM tab0
----
114

query I rowsort
SELECT ALL + AVG ( DISTINCT ( col0 ) ) FROM tab1 WHERE NOT ( 13 * 54 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT COUNT( + ( - + col1 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2609
SELECT COUNT ( + ( - + col1 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 + + 63 AS col2 FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND + + ( - + 38 ) * - - col0 / - + 70
----
122
131
159

query I rowsort
SELECT - col2 + 73 AS col1 FROM tab1 cor0
----
-23
14
5

query I rowsort
SELECT DISTINCT + 74 + 55 FROM tab0
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2613
SELECT DISTINCT - - COUNT( * ) - + 34 + - - 44 DIV COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - - COUNT ( * ) - + 34 + - - 44 / COUNT ( * ) FROM tab2 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col0 + + + 70 + - col2 AND col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + SUM( DISTINCT - col2 ) FROM tab1 cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT + SUM ( DISTINCT - col2 ) FROM tab1 cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT ALL - - COUNT( * ) * 88 * - CAST( + 61 AS SIGNED ) * - + MAX( 70 ) - + COUNT( * ) + 14 AS col0 FROM tab0 AS cor0
----
1127291

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - - COUNT ( * ) * 88 * - CAST ( + 61 AS INTEGER ) * - + MAX ( 70 ) - + COUNT ( * ) + 14 AS col0 FROM tab0 AS cor0
----
1127291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2617
SELECT - 13 - + COUNT( * ) / CAST( NULL AS SIGNED ) AS col1, MAX( + col0 ) FROM tab1 AS cor0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-2617
SELECT - 13 - + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1, MAX ( + col0 ) FROM tab1 AS cor0
----
NULL
91

query I rowsort
SELECT - 83 * + ( - 73 ) + - col0 / col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT col1 >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - + col2 + col2 col2 FROM tab0 AS cor0
----
-1
13
197

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL + 51 * - SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
-10149

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + 51 * - SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
-10149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 - ( col0 ) + - col1 + + 22 col2 FROM tab0 AS cor0
----
-76
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + COUNT( ALL + 34 ) - + + 0 + ( - COUNT( * ) ) * 6 col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT + COUNT ( ALL + 34 ) - + + 0 + ( - COUNT ( * ) ) * 6 col0 FROM tab2 AS cor0
----
-15

query II rowsort
SELECT ALL 49 AS col2, - col1 + 36 * + col0 AS col0 FROM tab1 cor0 WHERE NOT col2 = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT CAST( - - 88 AS SIGNED ) FROM tab2 cor0 WHERE - 23 / col2 IS NOT NULL
----
88
88
88

skipif mysql # not compatible
query I rowsort label-2624
SELECT CAST ( - - 88 AS INTEGER ) FROM tab2 cor0 WHERE - 23 / col2 IS NOT NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL - MIN( ALL + 47 ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL - MIN ( ALL + 47 ) FROM tab2
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 67 + 82 < + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2627
SELECT * FROM tab1 WHERE NOT - - col2 * - + 29 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2627
SELECT * FROM tab1 WHERE NOT - - col2 * - + 29 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * 80 FROM tab0
----
1680
6480
80

query I rowsort
SELECT DISTINCT + + col2 * - + col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - CAST( NULL AS SIGNED ) >= - + 41
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2630
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT col0 * - col0 * - CAST ( NULL AS INTEGER ) >= - + 41
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT 92 DIV - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2631
SELECT 92 / - col0 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT MAX( + 13 ) AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2634
SELECT MAX ( + 13 ) AS col1 FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2635
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT DISTINCT - CAST( + 44 AS SIGNED ) + + col0 + - 55 FROM tab0 AS cor0
----
-12
-2
-84

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - CAST ( + 44 AS INTEGER ) + + col0 + - 55 FROM tab0 AS cor0
----
-12
-2
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2637
SELECT * FROM tab2 cor0 WHERE + 74 IN ( ( + + col2 ), - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2637
SELECT * FROM tab2 cor0 WHERE + 74 IN ( ( + + col2 ), - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 + + 53 + + + ( - col2 ) AS col0 FROM tab2
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col1 + - - 54 <= - + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col2 + + col0 col2 FROM tab2
----
-1536
-3289
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT 57 DIV + + col0 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2641
SELECT 57 / + + col0 AS col0 FROM tab0
----
0
0
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 38 - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 30 + + col0 AS col1 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT DISTINCT + col1 + - col0 + + col1 FROM tab1 AS cor0
----
-23
-75
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE 31 IS NULL
----

query I rowsort
SELECT ALL - 75 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT - 3 - - + COUNT( * ) * COUNT( * ) DIV + + MAX( - col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - 3 - - + COUNT ( * ) * COUNT ( * ) / + + MAX ( - col2 ) FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - MIN( + col1 ) + COUNT( * ) * + 82 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2649
SELECT - MIN ( + col1 ) + COUNT ( * ) * + 82 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + + 3 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT + - ( + col1 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT + - ( + col1 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 70 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-70
-70
-70

query I rowsort
SELECT 88 * - ( + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-4488
-5896
-6776

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 / + + 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + MIN( + - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2656
SELECT + MIN ( + - col2 ) AS col0 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, ( col1 ) col0 FROM tab1
----
-59
5
-68
47
-96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * - col1 col1 FROM tab2
----
-3570
-4690
-5390

query I rowsort
SELECT ALL col1 / - col2 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + - col0 )
----

query I rowsort
SELECT DISTINCT - 1 * + + 93 FROM tab0
----
-93

query I rowsort
SELECT col0 / + 7 + - + col1 AS col2 FROM tab0 WHERE NOT - + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 47 AND + 25
----

query I rowsort
SELECT ALL + col2 * - 56 AS col1 FROM tab1 AS cor0
----
-3304
-3808
-5376

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col0, - col0, ( + col2 ) * + - col1 * - + ( + 84 ) )
----

query II rowsort
SELECT + 50 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
50
-15
50
-87
50
-97

query II rowsort
SELECT - + 44, col0 FROM tab2 AS cor0
----
-44
46
-44
64
-44
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT - 21 DIV - 76 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-2667
SELECT - 21 / - 76 col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + - col2, - 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT DISTINCT col0 + - 6 + - col0 + - - 35 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT col0 + - 6 + - col0 + - - 35 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col0 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2671
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 + + - 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + CAST ( NULL AS REAL ) * col1 + + - 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + ( - 51 ) AS col1 FROM tab1 AS cor0
----
-56
-65
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT ALL + col0 + col0 * col2 DIV col2 * col1 AS col2 FROM tab1
----
4368
510
765

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + col0 + col0 * col2 / col2 * col1 AS col2 FROM tab1
----
4368
510
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 37 * col0 + + + 29 FROM tab0 AS cor0
----
3248
3618
584

query I rowsort
SELECT DISTINCT 60 + + col0 AS col0 FROM tab1
----
111
145
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL + CAST( - 72 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + CAST ( - 72 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT - col0 - - 74 FROM tab0
----
-13
-23
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT + COUNT( * ) DIV + 64 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT + COUNT ( * ) / + 64 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 77 ) col1 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2681
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - - col1 AS SIGNED ) * - 37 + - - col0 + + + 48 / - col2 * col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2681
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col1 AS INTEGER ) * - 37 + - - col0 + + + 48 / - col2 * col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 81 AS col1, ( + col2 ) FROM tab2 AS cor0
----
81
23
81
40
81
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - + MIN( - - 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2683
SELECT - + MIN ( - - 46 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT col1 * - ( - - col2 ) AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 1 * 0 * + col0 + col1 + - - 79 - + 58 FROM tab0 WHERE - + 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT COUNT( ALL - 11 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2686
SELECT COUNT ( ALL - 11 ) AS col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT - 19 DIV - - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 19 / - - col0 FROM tab0
----
-1
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + 56 * - col1 * + 96 + + col1 * + col2 IN ( + 47 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( col2 ) - + 47 - + 6 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT + col0 DIV - + 8 AS col2 FROM tab1
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-2690
SELECT + col0 / - + 8 AS col2 FROM tab1
----
-10
-11
-6

query II rowsort
SELECT + ( + col1 ) AS col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL + col1 + - col0 + + col2 * - - 4 * col0 FROM tab1
----
19547
19980
24708

query II rowsort
SELECT ALL - 99, + col2 AS col2 FROM tab2 AS cor0
----
-99
23
-99
40
-99
58

query I rowsort
SELECT DISTINCT 69 * - col1 AS col2 FROM tab0 AS cor0
----
-1449
-5589
-69

query I rowsort
SELECT DISTINCT col2 + + 54 FROM tab0 AS cor0
----
101
153
64

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL AND NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2697
SELECT * FROM tab0 AS cor0 WHERE - col1 + - - col0 - + 72 NOT IN ( col2, col0 + - - 87 / - CAST( - col0 AS DECIMAL ), - col2, col1 ) AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2697
SELECT * FROM tab0 AS cor0 WHERE - col1 + - - col0 - + 72 NOT IN ( col2, col0 + - - 87 / - CAST ( - col0 AS REAL ), - col2, col1 ) AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - + 40 + 38 - + col0 - col0 AS col1 FROM tab2 AS cor0
----
-43
-53
-85

query I rowsort
SELECT + col2 + - 41 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT ALL + + 11, COUNT( * ) AS col0 FROM tab1 WHERE ( col2 > NULL )
----
11
0

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL + + 11, COUNT ( * ) AS col0 FROM tab1 WHERE ( col2 > NULL )
----
11
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 IN ( + + col0 * + 50 )
----

query I rowsort
SELECT ALL col2 * - + col0 * + col2 - - col2 FROM tab0
----
-33088
-8690
-950598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT 9 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT 9 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 - - 88 col2 FROM tab0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT ALL + 7 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + 7 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE + 74 * + col1 + - 36 / col0 IN ( 50 + + ( - + col2 ), col1 - + ( - col0 ) + + - col1 + - 32 + + + col0 * - col1 * + + 46 + - 23, col0 - + 16 )
----

query I rowsort
SELECT + 15 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col1 * 85 - - 91 FROM tab0 AS cor0
----
-1694
-6794
6

query I rowsort
SELECT DISTINCT - ( ( - ( - col0 ) ) ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ( + MIN( DISTINCT - - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2710
SELECT ( + MIN ( DISTINCT - - col0 ) ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT col1 DIV - 87 * + 37 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT col1 / - 87 * + 37 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT CAST( NULL AS SIGNED ) * - 28 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT CAST ( NULL AS INTEGER ) * - 28 * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 * + + 86 AS col1 FROM tab0
----
4816
4816
4816

query II rowsort
SELECT 66 AS col2, + col1 + col0 + - ( 9 ) + - + col2 AS col1 FROM tab1
----
66
-40
66
22
66
61

query I rowsort
SELECT col0 * + - 34 AS col1 FROM tab2
----
-1564
-2176
-2550

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT - 91 + + col1 AS col0 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 49 - + + 53 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + col1 < + col0 + 23
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT SUM( + col2 ) * MIN( - - 47 ) FROM tab2 AS cor0
----
5687

skipif mysql # not compatible
query I rowsort label-2720
SELECT SUM ( + col2 ) * MIN ( - - 47 ) FROM tab2 AS cor0
----
5687

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( - col0 * col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT + 18 * SUM( col2 ) FROM tab2 AS cor0
----
2178

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 18 * SUM ( col2 ) FROM tab2 AS cor0
----
2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT CAST( + - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2723
SELECT CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - ( + - col2 ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL + + 98 - + - 22 - - 26 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + + 98 - + - 22 - - 26 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
198

query I rowsort
SELECT col2 - + col0 + 0 * - + col0 AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT 29 FROM tab0 WHERE + col2 + + col2 + - col0 IS NULL
----

query I rowsort
SELECT - 36 + - 58 AS col1 FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT + MAX( DISTINCT + col0 ) - - 42 * + 77 FROM tab0
----
3331

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + MAX ( DISTINCT + col0 ) - - 42 * + 77 FROM tab0
----
3331

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT ALL + COUNT( * ), 93 AS col2 FROM tab2
----
3
93

skipif mysql # not compatible
query II rowsort label-2730
SELECT ALL + COUNT ( * ), 93 AS col2 FROM tab2
----
3
93

query I rowsort
SELECT DISTINCT 21 * - col2 FROM tab2
----
-1218
-483
-840

query II rowsort
SELECT ALL - 66 AS col1, col0 + - 63 FROM tab0 AS cor0
----
-66
-48
-66
24
-66
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 96 + + ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2734
SELECT ALL CAST( + col2 AS SIGNED ) * ( col2 ), col2 + - - col1 * - 28 AS col0 FROM tab2 AS cor0
----
1600
-2116
3364
-1818
529
-1405

skipif mysql # not compatible
query II rowsort label-2734
SELECT ALL CAST ( + col2 AS INTEGER ) * ( col2 ), col2 + - - col1 * - 28 AS col0 FROM tab2 AS cor0
----
1600
-2116
3364
-1818
529
-1405

query I rowsort
SELECT + 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + - ( + ( + 73 ) ) * - 31 FROM tab0 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + + SUM( + ( + col2 ) ) col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2737
SELECT + + SUM ( + ( + col2 ) ) col0 FROM tab2 cor0
----
121

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 - - col1 + - - col2 * - - 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - - col1 AS col0, + 72 AS col1 FROM tab1 cor0 WHERE NOT NULL >= + ( - col0 ) + - - col2
----

query I rowsort
SELECT ALL - + 33 AS col2 FROM tab1 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL SUM( ALL + + ( + + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL SUM ( ALL + + ( + + col2 ) ) FROM tab2
----
121

query I rowsort
SELECT 25 * - col1 + ( - 33 ) FROM tab2
----
-1308
-1708
-1958

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2743
SELECT + col0, col1 / + - 10 * - CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2743
SELECT + col0, col1 / + - 10 * - CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col1 col0 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE NULL BETWEEN 18 AND + col2
----

query I rowsort
SELECT DISTINCT col0 + + + 80 AS col0 FROM tab2
----
126
144
155

query III rowsort
SELECT * FROM tab1 WHERE - 41 * - ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1 * + 19, col0 FROM tab1 AS cor0
----
-266
51
-893
91
-95
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 6
----

query I rowsort
SELECT + - 9 + col1 FROM tab1 AS cor0
----
-4
38
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2751
SELECT DISTINCT - col1 DIV - col0 + - - 3 DIV CAST( - 19 AS SIGNED ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - col1 / - col0 + - - 3 / CAST ( - 19 AS INTEGER ) FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT + + 40 + - COUNT( * ) col1 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT + + 40 + - COUNT ( * ) col1 FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT + COUNT( ALL + + CAST( col2 AS SIGNED ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2753
SELECT + COUNT ( ALL + + CAST ( col2 AS INTEGER ) ) col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 - + - 23 + - 95 * col0 AS col1 FROM tab2
----
-4296
-5980
-7035

query II rowsort
SELECT DISTINCT col2 * - 7 AS col2, col2 AS col0 FROM tab1
----
-413
59
-476
68
-672
96

query I rowsort
SELECT DISTINCT - 87 - - col0 AS col1 FROM tab2
----
-12
-23
-41

query I rowsort
SELECT DISTINCT + col0 - 7 FROM tab1
----
44
78
84

query I rowsort
SELECT DISTINCT - - ( 75 ) FROM tab0 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT 42 * - COUNT( * ) FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT 42 * - COUNT ( * ) FROM tab1 AS cor0
----
-126

query I rowsort
SELECT ALL - - 23 * col2 FROM tab1 cor0
----
1357
1564
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * col0 col2 FROM tab1
----
2397
3995
4277

query II rowsort
SELECT - 0 AS col0, - 29 AS col1 FROM tab0
----
0
-29
0
-29
0
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + 17 * - SUM( 42 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-6426

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2763
SELECT ALL + 17 * - SUM ( 42 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-6426

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - 8 * SUM( ALL - col1 ) AS col0 FROM tab2
----
1560

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - 8 * SUM ( ALL - col1 ) AS col0 FROM tab2
----
1560

query I rowsort
SELECT DISTINCT - col1 * + col0 * - - col0 AS col1 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + - MIN( + col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + - MIN ( + col0 ) AS col0 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT 89 AS col1, COUNT( * ) FROM tab2 AS cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-2767
SELECT 89 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
89
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL + 16 * - + 98 * + COUNT( * ) FROM tab1 AS cor0
----
-4704

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL + 16 * - + 98 * + COUNT ( * ) FROM tab1 AS cor0
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT + col0 * + 15 / + col0 + - - 76 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2769
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT + col0 * + 15 / + col0 + - - 76 IS NULL
----
3

query II rowsort
SELECT - 91 AS col2, + 26 FROM tab2 cor0
----
-91
26
-91
26
-91
26

query I rowsort
SELECT - 64 * - - 39 FROM tab2
----
-2496
-2496
-2496

query I rowsort
SELECT - 82 * + + ( + col2 ) FROM tab1
----
-4838
-5576
-7872

query II rowsort
SELECT DISTINCT + ( + 73 ), + 51 + + - col1 AS col1 FROM tab1
----
73
37
73
4
73
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + COUNT( * ) * - 87 AS col1 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-2774
SELECT + COUNT ( * ) * - 87 AS col1 FROM tab2
----
-261

query I rowsort
SELECT DISTINCT + col2 * - 44 FROM tab0
----
-2068
-4356
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL 56 * + COUNT( * ) AS col1 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL 56 * + COUNT ( * ) AS col1 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL COUNT( DISTINCT + col2 ) * + 7 AS col0 FROM tab0 WHERE NOT + col1 = + ( + col0 )
----
21

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL COUNT ( DISTINCT + col2 ) * + 7 AS col0 FROM tab0 WHERE NOT + col1 = + ( + col0 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT ALL col1 DIV + - col2 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL col1 / + - col2 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL + COUNT( * ) * + ( 41 ) AS col0 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + COUNT ( * ) * + ( 41 ) AS col0 FROM tab2 AS cor0
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT + 24 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT + 24 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 33 + + col2 FROM tab0 cor0
----
132
43
80

query I rowsort
SELECT ALL + col1 * + col0 - - - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL col1 * - 65 + + col2 AS col1 FROM tab1
----
-266
-2987
-814

query II rowsort
SELECT DISTINCT col2 + + - 56 * - - col0, col1 AS col1 FROM tab0
----
-4862
21
-5333
1
-793
81

query II rowsort
SELECT ALL + + col0, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT - ( - + col1 ), col2 FROM tab0 AS cor0 WHERE col0 < - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - + SUM( ALL col1 ) * 0 * + + 12 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT - + SUM ( ALL col1 ) * 0 * + + 12 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT 17 - + MAX( + 68 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2788
SELECT 17 - + MAX ( + 68 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 18 BETWEEN + 89 AND 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + COUNT( - col1 ) - 38 + - + COUNT( * ) + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-2790
SELECT + COUNT ( - col1 ) - 38 + - + COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + - ( 76 ) - + + MIN( DISTINCT ( + - ( - 0 ) ) ) AS col0 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2791
SELECT + - ( 76 ) - + + MIN ( DISTINCT ( + - ( - 0 ) ) ) AS col0 FROM tab1 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT COUNT( ALL + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT COUNT ( ALL + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 - + + col2 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT DISTINCT - col2 - col1 * - - col2 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT ALL + col1 - + 23 FROM tab2
----
28
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT 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-2796
SELECT CAST ( + col2 AS INTEGER ) col2 FROM tab2
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL NOT BETWEEN ( NULL ) AND + - col1 )
----

query I rowsort
SELECT ALL + ( 3 ) AS col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - ( 18 ) AS col2 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT - + 76 <> + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 65 col2 FROM tab0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT + MAX( 9 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + MAX ( 9 ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT ALL - ( COUNT( * ) ) DIV - SUM( - + 62 ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - ( COUNT ( * ) ) / - SUM ( - + 62 ) AS col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT - 46 * + 27 * ( + COUNT( * ) ) FROM tab2
----
-3726

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT - 46 * + 27 * ( + COUNT ( * ) ) FROM tab2
----
-3726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * + col2 col1 FROM tab2
----
2139
3720
5394

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT col1 + + col0 + + col2 DIV + col2 AS col1 FROM tab0
----
109
97
99

skipif mysql # not compatible
query I rowsort label-2806
SELECT col1 + + col0 + + col2 / + col2 AS col1 FROM tab0
----
109
97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2807
SELECT 41 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT 41 * CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col2 + - col1 + + 26 AS col0 FROM tab0
----
-2264
-95
-9776

query I rowsort
SELECT + - col0 * + 89 * - 4 FROM tab0 AS cor0
----
30972
34532
5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT MIN( ALL - - CAST( + 9 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2810
SELECT MIN ( ALL - - CAST ( + 9 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + COUNT( * ) * + 84 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2811
SELECT + COUNT ( * ) * + 84 FROM tab2
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT 91 DIV 22 col1 FROM tab0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2812
SELECT 91 / 22 col1 FROM tab0
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT DISTINCT col1 DIV col1 DIV - col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT col1 / col1 / - col2 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2815
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2815
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 83 * + col2 FROM tab0 AS cor0
----
3901
8217
830

query I rowsort
SELECT ( 12 ) * - - 43 + col2 AS col1 FROM tab0
----
526
563
615

query I rowsort
SELECT ALL - ( - ( - col0 ) ) * - + col2 * ( - col0 ) * + - col1 FROM tab2
----
12615680
21858750
2482068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT ALL - CAST( col0 AS SIGNED ) AS col2, ( 37 ) FROM tab1
----
-51
37
-85
37
-91
37

skipif mysql # not compatible
query II rowsort label-2819
SELECT ALL - CAST ( col0 AS INTEGER ) AS col2, ( 37 ) FROM tab1
----
-51
37
-85
37
-91
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2820
SELECT + CAST( NULL AS SIGNED ), 76 + - col1 col2 FROM tab0 AS cor0
----
NULL
-5
NULL
55
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2820
SELECT + CAST ( NULL AS INTEGER ), 76 + - col1 col2 FROM tab0 AS cor0
----
NULL
-5
NULL
55
NULL
75

query I rowsort
SELECT DISTINCT - 62 + - col0 + - 17 * + - 54 + + 54 AS col0 FROM tab0 AS cor0
----
813
823
895

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + + COUNT( ALL + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2822
SELECT + + COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - col1 AS col1, - ( + col1 ) * - col1 * col2 FROM tab1 AS cor0
----
-14
18816
-47
150212
-5
1475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL + - col0 + + - CAST( NULL AS SIGNED ) + - 88 + ( ( - 32 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + - col0 + + - CAST ( NULL AS INTEGER ) + - 88 + ( ( - 32 ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - 36, col0 AS col2 FROM tab2 AS cor0
----
36
46
36
64
36
75

query I rowsort
SELECT ALL + col1 * + 3 FROM tab0
----
243
3
63

query III rowsort
SELECT * FROM tab2 WHERE + - col0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT + 69 * + - col2 + col0 + - - 99 FROM tab2 cor0
----
-1442
-2597
-3828

query III rowsort
SELECT * FROM tab1 cor0 WHERE 74 IS NULL
----

query I rowsort
SELECT + 78 + + col0 FROM tab0 AS cor0
----
165
175
93

onlyif mysql # DIV for integer division: 
query II rowsort label-2831
SELECT 83 AS col1, col1 DIV + col1 + + col2 AS col1 FROM tab0
----
83
100
83
11
83
48

skipif mysql # not compatible
query II rowsort label-2831
SELECT 83 AS col1, col1 / + col1 + + col2 AS col1 FROM tab0
----
83
100
83
11
83
48

query I rowsort
SELECT - - 47 * - + 44 - 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 194b4f6a46785343a0394df56ea410c8

query II rowsort
SELECT ALL - - 33, + 4 AS col2 FROM tab2 AS cor0
----
33
4
33
4
33
4

query I rowsort
SELECT ALL - - col2 - - col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT - 27 * - + 17 AS col2 FROM tab1 AS cor0
----
459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT COUNT( * ) * + - 88 AS col1 FROM tab0 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2837
SELECT COUNT ( * ) * + - 88 AS col1 FROM tab0 cor0
----
-264

query II rowsort
SELECT ALL - 57, + col1 AS col0 FROM tab0 AS cor0
----
-57
1
-57
21
-57
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 46 col2, 2 AS col2 FROM tab2 AS cor0
----
46
2
46
2
46
2

query I rowsort
SELECT ( - 83 ) AS col2 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query II rowsort label-2841
SELECT col1 DIV + 11 AS col2, - 49 FROM tab1
----
0
-49
1
-49
4
-49

skipif mysql # not compatible
query II rowsort label-2841
SELECT col1 / + 11 AS col2, - 49 FROM tab1
----
0
-49
1
-49
4
-49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + ( - col2 ) * - col2 + - 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - MAX( DISTINCT col0 ) col0 FROM tab2 WHERE NOT + 10 * col1 = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT ALL - MAX ( DISTINCT col0 ) col0 FROM tab2 WHERE NOT + 10 * col1 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT ALL COUNT( ALL - + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL COUNT ( ALL - + col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col0 * - 43 * + 91 AS col1 FROM tab2 AS cor0
----
-179998
-250432
-293475

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT + + ( + MAX( - col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2846
SELECT + + ( + MAX ( - col2 ) ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND - + 12 + - - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT - MAX( DISTINCT - + 46 ) * + 44 + - 35 AS col0 FROM tab0
----
1989

skipif mysql # not compatible
query I rowsort label-2848
SELECT - MAX ( DISTINCT - + 46 ) * + 44 + - 35 AS col0 FROM tab0
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL MAX( + ( - col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL MAX ( + ( - col0 ) ) FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( ( NOT col0 - - col1 IS NOT NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE col2 / - col1 * + - CAST( - col1 AS SIGNED ) * col0 * + + ( + - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE col2 / - col1 * + - CAST ( - col1 AS INTEGER ) * col0 * + + ( + - col1 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 = 78
----

query I rowsort
SELECT DISTINCT + - 0 + 92 FROM tab2 AS cor0
----
92

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - + col2 NOT BETWEEN 50 AND + col2 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 41 + ( + ( - 97 ) ) AS col1 FROM tab1 AS cor0
----
-138
-138
-138

query I rowsort
SELECT ALL col0 * + - col2 + + col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT - COUNT( * ) * COUNT( * ) + - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT 92 + 67 AS col2 FROM tab1
----
159
159
159

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 + + + col0 < col0
----
59
68
96

query I rowsort
SELECT - col2 * + 42 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT DISTINCT + CAST( - - SUM( + 15 ) AS SIGNED ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + CAST ( - - SUM ( + 15 ) AS INTEGER ) FROM tab0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) <= NULL
----

query II rowsort
SELECT ALL - 58 AS col1, - 42 * 17 + + ( + + 81 ) FROM tab2 AS cor0
----
-58
-633
-58
-633
-58
-633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT - CAST( NULL AS SIGNED ) - + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT - CAST ( NULL AS INTEGER ) - + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 27 - + - col0 + + 64 + col2 AS col1 FROM tab1
----
235
238
250

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2866
SELECT * FROM tab2 WHERE - - col1 + + + CAST( NULL AS SIGNED ) + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2866
SELECT * FROM tab2 WHERE - - col1 + + + CAST ( NULL AS INTEGER ) + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2867
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 55 - - ( - CAST( - - col2 AS SIGNED ) ) - + 26 AND 43
----

skipif mysql # not compatible
query III rowsort label-2867
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 55 - - ( - CAST ( - - col2 AS INTEGER ) ) - + 26 AND 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL - COUNT( + 80 ) - + - ( - + COUNT( * ) ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - COUNT ( + 80 ) - + - ( - + COUNT ( * ) ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT + - col1 * + col2 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) >= - - col2
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col2 FROM tab2 cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) * - 29 + - 39 + - - col0 IS NOT NULL
----

query I rowsort
SELECT + 88 * col2 FROM tab0 cor0
----
4136
8712
880

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NOT ( NOT 46 * - 69 IS NOT NULL )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + COUNT( - 66 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2876
SELECT + COUNT ( - 66 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + + - col2 * col1 IS NULL
----

query II rowsort
SELECT - col0 AS col2, 72 * + col1 AS col2 FROM tab0
----
-15
5832
-87
1512
-97
72

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab0, tab1 AS cor0
----
86

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + COUNT( * ) * - - COUNT( * ) + 55 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2881
SELECT + COUNT ( * ) * - - COUNT ( * ) + 55 FROM tab1 AS cor0
----
64

query I rowsort
SELECT ALL 95 FROM tab1 cor0 WHERE + col0 BETWEEN NULL AND 73
----

query I rowsort
SELECT - col2 * - 10 AS col1 FROM tab2
----
230
400
580

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE 35 / - ( col1 ) = NULL
----

query I rowsort
SELECT ALL + col2 * 61 AS col0 FROM tab1 WHERE 19 IS NOT NULL
----
3599
4148
5856

query I rowsort
SELECT DISTINCT 59 + + 95 FROM tab0
----
154

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - 92 + - 27 AND ( - 11 ) * + 77 + + 80
----

query I rowsort
SELECT DISTINCT 3 * + 94 FROM tab2
----
282

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + 30 * - 45 AS col1 FROM tab0
----
-1350
-1350
-1350

query I rowsort
SELECT DISTINCT 7 - - ( col0 + col1 ) FROM tab1
----
145
72
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT + MIN( + col0 ) - COUNT( * ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2893
SELECT + MIN ( + col0 ) - COUNT ( * ) AS col2 FROM tab1
----
48

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 26 / + col2 ) NOT BETWEEN NULL AND ( + ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - 79 + COUNT( * ) AS col0 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - 79 + COUNT ( * ) AS col0 FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT 42 + + COUNT( * ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 42 + + COUNT ( * ) AS col2 FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 55 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * 91 AS col2 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT col0 + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-2900
SELECT col0 + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT 9 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2901
SELECT 9 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT - 69 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2902
SELECT - 69 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2904
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE - col2 NOT IN ( - col2 - + 47 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE - col2 NOT IN ( - col2 - + 47 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT CAST( NULL AS SIGNED ) * 5 AS col2 FROM tab1 WHERE + col2 + col1 IN ( ( col0 ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-2905
SELECT CAST ( NULL AS INTEGER ) * 5 AS col2 FROM tab1 WHERE + col2 + col1 IN ( ( col0 ) * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2906
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) - + col1 ) IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2906
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) - + col1 ) IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2907
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 19 NOT BETWEEN - CAST( NULL AS SIGNED ) AND col2
----

skipif mysql # not compatible
query I rowsort label-2908
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 19 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND col2
----

query I rowsort
SELECT - 99 * col2 AS col1 FROM tab1 AS cor0
----
-5841
-6732
-9504

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 44 )
----

query I rowsort
SELECT 54 * col2 FROM tab1 cor0
----
3186
3672
5184

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - 89 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + - COUNT( * ) * + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2915
SELECT + - COUNT ( * ) * + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + - MAX( ALL col0 ) * 31 FROM tab2 AS cor0
----
-2325

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + - MAX ( ALL col0 ) * 31 FROM tab2 AS cor0
----
-2325

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT 8 + col0 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + MAX( ALL - ( col2 ) ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + MAX ( ALL - ( col2 ) ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT 43 * - 21 * 48 AS col0 FROM tab0
----
-43344

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 73 ) NOT BETWEEN ( 27 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL MIN( ALL + + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL MIN ( ALL + + col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT col0 * + + 15 FROM tab1
----
1275
1365
765

query I rowsort
SELECT ( - 37 ) AS col2 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT DISTINCT + col2 * + + 45 * + col1 AS col1 FROM tab0
----
171315
4455
9450

query I rowsort
SELECT ALL 99 * - ( - col0 ) FROM tab0 WHERE col1 NOT IN ( - col1 + + col2 )
----
1485
8613
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT - col2 DIV - - 82 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT - col2 / - - 82 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + SUM( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2927
SELECT + SUM ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 46 + ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + - col1 * 56 ) IN ( 12 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL + COUNT( * ) * 64 FROM tab0, tab2 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL + COUNT ( * ) * 64 FROM tab0, tab2 AS cor0
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + col2 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT CAST( NULL AS SIGNED ) * - 73 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT CAST ( NULL AS INTEGER ) * - 73 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 55 * + 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3f6b6214a88ff036f83f4f6f7ac1f492

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT SUM( - col0 ) * - 17 FROM tab1 AS cor0
----
3859

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT SUM ( - col0 ) * - 17 FROM tab1 AS cor0
----
3859

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE col1 NOT BETWEEN - - col1 + col2 AND col1
----
-46
-64
-75

query I rowsort
SELECT 69 FROM tab0 AS cor0 WHERE ( col2 ) NOT IN ( col1 )
----
69
69
69

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab0 AS cor0 WHERE + col0 IN ( - col1 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - MAX( + ( + col1 ) ) + - - MAX( ALL col0 ) AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - MAX ( + ( + col1 ) ) + - - MAX ( ALL col0 ) AS col0 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT - SUM( DISTINCT - + col0 ) AS col2, - ( + ( COUNT( * ) ) ) + 20 AS col0 FROM tab0
----
199
17

skipif mysql # not compatible
query II rowsort label-2941
SELECT - SUM ( DISTINCT - + col0 ) AS col2, - ( + ( COUNT ( * ) ) ) + 20 AS col0 FROM tab0
----
199
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT + 80 + - COUNT( * ) + + COUNT( col0 ) + COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + 80 + - COUNT ( * ) + + COUNT ( col0 ) + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT + SUM( - + ( + col1 ) ) - + - 99 + + 31 * 95 FROM tab1
----
2978

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT + SUM ( - + ( + col1 ) ) - + - 99 + + 31 * 95 FROM tab1
----
2978

query I rowsort
SELECT - col2 * - ( - 74 ) AS col2 FROM tab2
----
-1702
-2960
-4292

query I rowsort
SELECT ALL 24 * col2 + - - col2 AS col0 FROM tab1
----
1475
1700
2400

query I rowsort
SELECT DISTINCT col2 - - col2 * - + col0 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 - 73 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 58 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL - MIN( 42 ) * - 13 FROM tab0 AS cor0
----
546

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - MIN ( 42 ) * - 13 FROM tab0 AS cor0
----
546

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * + + col2 NOT IN ( - ( - - col2 ) * - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 + + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 76 ) + - col2 AS col0 FROM tab1 AS cor0 WHERE - 77 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL SUM( DISTINCT - + 94 ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL SUM ( DISTINCT - + 94 ) AS col2 FROM tab0 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col0 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - 56 * col1 + col2 FROM tab1 cor0 WHERE NOT + col1 + - 55 IS NULL
----
-221
-2564
-688

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + COUNT( * ) * 91 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2957
SELECT + COUNT ( * ) * 91 FROM tab0 AS cor0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT + CAST( + - 3 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - - ( + 99 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT + CAST ( + - 3 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - - ( + 99 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 96 AS col1 FROM tab1
----
5664
6528
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 28 col0, - col2 + + col1 FROM tab1
----
28
-21
28
-54
28
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-2961
SELECT DISTINCT col1, - 61 DIV + + 66 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-2961
SELECT DISTINCT col1, - 61 / + + 66 FROM tab0
----
1
0
21
0
81
0

query II rowsort
SELECT 42 AS col1, - col2 AS col0 FROM tab2
----
42
-23
42
-40
42
-58

query II rowsort
SELECT + col0 AS col1, + col1 AS col0 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT 65 * + + col0 * 25 * col2 AS col2 FROM tab2
----
1719250
4160000
7068750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT + + 4 FROM tab2 WHERE NOT - col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2965
SELECT + + 4 FROM tab2 WHERE NOT - col0 <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col0 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT CAST( NULL AS SIGNED ) + - col2 col0 FROM tab0 WHERE NOT + - col1 <= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2967
SELECT CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab0 WHERE NOT + - col1 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - + col0 * - col2 * 26 * - col2 * + - col2 AS col2 FROM tab1 AS cor0
----
1173159936
453887590
743946112

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT ALL col1 DIV - 32 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL col1 / - 32 FROM tab0 cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2970
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 25 * + col0 / - col0 * - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2970
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 25 * + col0 / - col0 * - col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2971
SELECT - col0 + - 25 AS col0, col2 * + 47 * + ( - 56 ) + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-112
-26320
-122
-260567
-40
-123701

skipif mysql # not compatible
query II rowsort label-2971
SELECT - col0 + - 25 AS col0, col2 * + 47 * + ( - 56 ) + + col2 / col0 AS col0 FROM tab0 AS cor0
----
-112
-26320
-122
-260567
-40
-123701

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2972
SELECT * FROM tab0 AS cor0 WHERE + CAST( - col1 AS SIGNED ) + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2972
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT + CAST( - 12 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + CAST ( - 12 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 - col1 + - + col0 + - 19 + ( + col1 ) * - ( col2 ) col1 FROM tab0 AS cor0
----
-118
-2626
1511

query I rowsort
SELECT 26 + + - col2 FROM tab1
----
-33
-42
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL 72 + - col2 DIV col1 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN + - col2 AND + col2 DIV + col2 DIV - col1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL 72 + - col2 / col1 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN + - col2 AND + col2 / + col2 / - col1
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT 52 * col2 + + - ( 81 ) * - CAST( + col0 AS SIGNED ) - col1 / col2 AS col1 FROM tab1 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-2977
SELECT 52 * col2 + + - ( 81 ) * - CAST ( + col0 AS INTEGER ) - col1 / col2 AS col1 FROM tab1 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col2 + + 75 * - 96 - + 3 + - + 64 + col2 / + col0
----

query I rowsort
SELECT DISTINCT col1 * - 54 AS col0 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT 36 * - - col0 + - col1 * + 35 FROM tab1 WHERE 70 * col2 IS NOT NULL
----
1346
1631
2885

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 WHERE NOT + col0 = NULL
----

query I rowsort
SELECT - + 12 AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + ( - 23 ) FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT 14 * 93 - + col0 + + - col2 AS col2 FROM tab2 AS cor0
----
1169
1198
1233

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT ALL 75 AS col0, COUNT( * ) FROM tab1 WHERE NULL = NULL
----
75
0

skipif mysql # not compatible
query II rowsort label-2985
SELECT ALL 75 AS col0, COUNT ( * ) FROM tab1 WHERE NULL = NULL
----
75
0

query I rowsort
SELECT - 3 + + col1 FROM tab0
----
-2
18
78

query I rowsort
SELECT col2 + + col1 * ( col0 ) FROM tab0
----
1262
1837
196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * - col1 NOT BETWEEN NULL AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT - - COUNT( * ) AS col1, - COUNT( * ) - - 66 FROM tab0 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-2989
SELECT - - COUNT ( * ) AS col1, - COUNT ( * ) - - 66 FROM tab0 AS cor0
----
3
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2990
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + col0 ) * - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + col0 ) * - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 WHERE ( ( CAST( + - 43 AS SIGNED ) ) NOT IN ( ( - 59 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 WHERE ( ( CAST ( + - 43 AS INTEGER ) ) NOT IN ( ( - 59 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 27 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col1 + + 97 + - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT 47 DIV + 70 * - + 24 * + 85 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT 47 / + 70 * - + 24 * + 85 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT ALL 56 * col0 + 44, + col2 AS col1 FROM tab0
----
4916
10
5476
99
884
47

query I rowsort
SELECT 6 + 48 * + col2 AS col2 FROM tab2 WHERE NOT col1 / + col1 + + 34 * col0 + col1 + + col2 NOT BETWEEN col1 AND ( - + col1 + col2 )
----

query II rowsort
SELECT 34 + + col0 * + col2 * - col0 + - - 6 AS col1, - col1 FROM tab1
----
-249656
-14
-426235
-5
-563068
-47

query I rowsort
SELECT col2 + 76 AS col1 FROM tab2
----
116
134
99

query I rowsort
SELECT DISTINCT + col1 * + col0 * + + ( + 17 ) FROM tab0
----
1649
20655
31059

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT DISTINCT + ( - SUM( + 59 ) ) AS col2 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT + ( - SUM ( + 59 ) ) AS col2 FROM tab2
----
-177

query II rowsort
SELECT - - col1, 16 AS col1 FROM tab1 cor0
----
14
16
47
16
5
16

query I rowsort
SELECT - col1 * - col0 - + - 10 FROM tab1
----
4287
435
724

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - 67 + COUNT( * ) + + SUM( - + col1 ) col1 FROM tab2
----
-259

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3005
SELECT - 67 + COUNT ( * ) + + SUM ( - + col1 ) col1 FROM tab2
----
-259

query I rowsort
SELECT + ( + + col1 ) + col0 - col1 + + + 9 AS col1 FROM tab2
----
55
73
84

query I rowsort
SELECT + 40 + - - 76 FROM tab2 AS cor0
----
116
116
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 93 + + col2 + + - col2 col1 FROM tab0 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT + MIN( DISTINCT - + 31 ) FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3009
SELECT + MIN ( DISTINCT - + 31 ) FROM tab2 cor0
----
-31

query I rowsort
SELECT - 2 * + - ( + col0 ) * + col2 + + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - 79 FROM tab2 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3013
SELECT ALL * FROM tab2 WHERE NOT + + col2 NOT IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3013
SELECT ALL * FROM tab2 WHERE NOT + + col2 NOT IN ( - CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) NOT IN ( - - 42 + col1, - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - SUM( + + 51 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-3015
SELECT - SUM ( + + 51 ) FROM tab2
----
-153

query I rowsort
SELECT - 8 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + ( + col0 ) col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 55 / - - col2 + + 83 * - + col1 * - + ( - 23 ) + - col2 + - col2 ) IN ( - col0 + + 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 34 AS col2 FROM tab1
----
1598
170
476

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + MIN( - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3020
SELECT + MIN ( - col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL + 32 AS col0 FROM tab2 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL MAX( + ( 1 ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL MAX ( + ( 1 ) ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE 72 < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 14 ) BETWEEN NULL AND 69
----

query I rowsort
SELECT ALL + 33 + - col1 AS col0 FROM tab1 AS cor0
----
-14
19
28

query I rowsort
SELECT DISTINCT + col0 + + - 91 AS col1 FROM tab1
----
-40
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT ( + + COUNT( ALL - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT ( + + COUNT ( ALL - col0 ) ) FROM tab2
----
3

query I rowsort
SELECT + 53 AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
53
53
53

query II rowsort
SELECT + col2 + + + col2 + col0 + + col1 AS col2, col2 AS col0 FROM tab0 AS cor0
----
128
10
190
47
296
99

query I rowsort
SELECT - col0 + - + 64 * - ( col0 ) * + col2 FROM tab1 AS cor0
----
313293
320875
395941

query I rowsort
SELECT - col2 + col0 - + col2 FROM tab1 AS cor0
----
-141
-33
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT COUNT( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + 39 + + - COUNT( * ) col0 FROM tab2 cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3033
SELECT + 39 + + - COUNT ( * ) col0 FROM tab2 cor0
----
36

query I rowsort
SELECT - ( - 59 ) + col2 AS col0 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT - + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL COUNT( * ) + 61 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL COUNT ( * ) + 61 FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 - + col1 IS NULL
----

query I rowsort
SELECT - - 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3039
SELECT col0, + col2 FROM tab0 WHERE - col0 IN ( + 29 * - - col2 - + col0 + col1 + + - col2 + CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query II rowsort label-3039
SELECT col0, + col2 FROM tab0 WHERE - col0 IN ( + 29 * - - col2 - + col0 + col1 + + - col2 + CAST ( NULL AS INTEGER ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT DISTINCT - 7 col1, COUNT( * ) FROM tab1
----
-7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3040
SELECT DISTINCT - 7 col1, COUNT ( * ) FROM tab1
----
-7
3

query I rowsort
SELECT + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE NOT col2 + + - col0 BETWEEN - CAST( NULL AS SIGNED ) + col1 AND - col1
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE NOT col2 + + - col0 BETWEEN - CAST ( NULL AS INTEGER ) + col1 AND - col1
----
-23
-40
-58

query I rowsort
SELECT + + col0 - col1 + 21 + - 30 + + + 35 * - col1 * + - col2 - - col2 FROM tab2 AS cor0
----
107818
136067
41064

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 95 ) IS NOT NULL
----

query I rowsort
SELECT col0 - + col1 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT - col2 * + col1 + - col1 + + col2 FROM tab2 AS cor0 WHERE col2 BETWEEN + + 86 + col0 + - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3046
SELECT - col2 * + col1 + - col1 + + col2 FROM tab2 AS cor0 WHERE col2 BETWEEN + + 86 + col0 + - + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - ( 22 ) + 6 FROM tab2 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + 41 col1 FROM tab1 AS cor0
----
1927
205
574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT col2 * CAST( + col2 AS SIGNED ) FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT col2 * CAST ( + col2 AS INTEGER ) FROM tab0
----
100
2209
9801

query I rowsort
SELECT + 83 * - + 65 FROM tab0
----
-5395
-5395
-5395

query II rowsort
SELECT DISTINCT + 86 AS col2, - 26 + 89 + 10 AS col0 FROM tab1
----
86
73

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL MIN( + 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL MIN ( + 58 ) FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL COUNT( DISTINCT + 39 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL COUNT ( DISTINCT + 39 ) FROM tab2
----
1

query I rowsort
SELECT ( + - 61 ) FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + 31 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-3056
SELECT + 31 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3057
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 * + + 7 + + + col0 + + col1 - - col1 + - col2 * + col0 * + col2 * + 4 * - 27 * + col1 * ( + col2 ) * + + CAST( - + col2 AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3057
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 * + + 7 + + + col0 + + col1 - - col1 + - col2 * + col0 * + col2 * + 4 * - 27 * + col1 * ( + col2 ) * + + CAST ( - + col2 AS INTEGER ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT SUM( DISTINCT + - 38 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT SUM ( DISTINCT + - 38 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

query II rowsort
SELECT 29 * - col2, col0 AS col1 FROM tab0
----
-1363
15
-2871
97
-290
87

query I rowsort
SELECT ALL + col2 * + 70 FROM tab2 AS cor0
----
1610
2800
4060

query I rowsort
SELECT ALL - 95 FROM tab0 AS cor0 WHERE NOT 44 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT - 24 * ( COUNT( * ) ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT - 24 * ( COUNT ( * ) ) FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3063
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + CAST( NULL AS DECIMAL ), col2 )
----

skipif mysql # not compatible
query III rowsort label-3063
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + CAST ( NULL AS REAL ), col2 )
----

query I rowsort
SELECT - col0 * ( 64 ) + - + 75 AS col2 FROM tab1 AS cor0
----
-3339
-5515
-5899

query I rowsort
SELECT 22 * + - col1 AS col1 FROM tab2 AS cor0
----
-1122
-1474
-1694

query III rowsort
SELECT DISTINCT 61 AS col2, col1, col2 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + 86 AS col1 FROM tab0
----
101
173
183

query II rowsort
SELECT + 49 * - 39 + 45, col0 FROM tab2
----
-1866
46
-1866
64
-1866
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT ( COUNT( * ) ) * 63 + - COUNT( * ) * + COUNT( DISTINCT - col2 ) AS col0 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT ( COUNT ( * ) ) * 63 + - COUNT ( * ) * + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0
----
180

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 IN ( col1 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + ( - 25 ) + + 35 - + 78 * + col1 * - 84 * + - col0 * 38 * + col1 * 91 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT + + COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT + + COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + 98 IS NULL
----
-14
-47
-5

query I rowsort
SELECT 87 + - - col0 + + - col0 AS col0 FROM tab1
----
87
87
87

query I rowsort
SELECT + 74 AS col0 FROM tab1 WHERE NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + MIN( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + MIN ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT 49 IS NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - MIN( ALL - - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3079
SELECT - MIN ( ALL - - col2 ) FROM tab2
----
-23

query II rowsort
SELECT - col0, 38 * + - col1 AS col1 FROM tab1
----
-51
-532
-85
-190
-91
-1786

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT col1 DIV col1 * + ( + 91 ) AS col1 FROM tab0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-3081
SELECT col1 / col1 * + ( + 91 ) AS col1 FROM tab0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3082
SELECT MIN( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT - col2 * + - col1 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL + 59 * - col2 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3085
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > + CAST( NULL AS SIGNED ) / col2
----

skipif mysql # not compatible
query III rowsort label-3085
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > + CAST ( NULL AS INTEGER ) / col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT DISTINCT - 2 * + - col2 DIV 47 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 2 * + - col2 / 47 FROM tab0 AS cor0
----
0
2
4

query I rowsort
SELECT - ( + + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL - 37 + + + COUNT( * ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL - 37 + + + COUNT ( * ) AS col0 FROM tab2
----
-34

query I rowsort
SELECT ALL - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT DISTINCT + ( - + MAX( DISTINCT + 99 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + ( - + MAX ( DISTINCT + 99 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT - CAST( NULL AS SIGNED ) / - col0 + + col1 - + 47 + - col0 / col0 + - - col1 * col0 + - 11 + col2 * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT - CAST ( NULL AS INTEGER ) / - col0 + + col1 - + 47 + - col0 / col0 + - - col1 * col0 + - 11 + col2 * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col1 * - 23 = - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 79 * - + col2 * col0 FROM tab2
----
-202240
-343650
-83582

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3094
SELECT DISTINCT col1 * - + 22 + + 21 + - col1 + + 30 * CAST( NULL AS DECIMAL ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3094
SELECT DISTINCT col1 * - + 22 + + 21 + - col1 + + 30 * CAST ( NULL AS REAL ), + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col0 col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT + MAX( DISTINCT - + 56 ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3096
SELECT + MAX ( DISTINCT - + 56 ) FROM tab0 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab1
----
56
56
56

query II rowsort
SELECT ALL - 9 * - 96, 64 AS col0 FROM tab2
----
864
64
864
64
864
64

query I rowsort
SELECT DISTINCT + col2 + - 68 FROM tab2
----
-10
-28
-45

query II rowsort
SELECT ALL col1 + - col2, 41 * + col1 AS col1 FROM tab1
----
-21
1927
-54
205
-82
574

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT 49 * - - COUNT( * ) + - - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3101
SELECT 49 * - - COUNT ( * ) + - - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
150

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col0 + + - col2 * - col0 * - col0 + col1 - col2 FROM tab1 AS cor0
----
-248383
-425949
-559842

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT ALL - - COUNT( * ) AS col0, + SUM( DISTINCT - - col0 ) + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
3
190

skipif mysql # not compatible
query II rowsort label-3103
SELECT ALL - - COUNT ( * ) AS col0, + SUM ( DISTINCT - - col0 ) + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
3
190

query I rowsort
SELECT DISTINCT - ( 70 ) AS col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT + + col2 * + col1 * 3 AS col1 FROM tab1 AS cor0
----
4032
885
9588

query II rowsort
SELECT 49 AS col1, col0 FROM tab1 AS cor0
----
49
51
49
85
49
91

query II rowsort
SELECT col0 AS col2, + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - col2, col2 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT 96 BETWEEN + col0 AND - + 36 * + 46 + - col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3109
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT 96 BETWEEN + col0 AND - + 36 * + 46 + - col1
----
-3

query I rowsort
SELECT + col2 * - - col2 * + - col2 AS col1 FROM tab1
----
-205379
-314432
-884736

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * col2 - + col2 * + 39 * col2 + + + col2 * + col0 BETWEEN NULL AND + - col2 * col0
----

query I rowsort
SELECT + 24 * + - 26 * col1 FROM tab2
----
-31824
-41808
-48048

query I rowsort
SELECT ( - + col1 ) * - 13 FROM tab2 WHERE NOT - + 27 * + 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT DISTINCT - 34 * + 53 * - 0 DIV + COUNT( * ) + + 79 * - COUNT( * ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 34 * + 53 * - 0 / + COUNT ( * ) + + 79 * - COUNT ( * ) FROM tab2 AS cor0
----
-237

query I rowsort
SELECT + 92 AS col0 FROM tab2 cor0
----
92
92
92

query II rowsort
SELECT + 95 * col2, - 27 AS col0 FROM tab1 AS cor0
----
5605
-27
6460
-27
9120
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 46 ), + 80 col2 FROM tab2 AS cor0 WHERE NOT 44 * col1 + + col2 + + + 67 IS NULL
----
-46
80
-46
80
-46
80

query I rowsort
SELECT DISTINCT + 88 * - col0 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT + - col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT DISTINCT - - COUNT( * ) * + + 84 AS col2 FROM tab1 AS cor0 WHERE col1 + - + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - - COUNT ( * ) * + + 84 AS col2 FROM tab1 AS cor0 WHERE col1 + - + col2 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT - col0 + + col2 < NULL ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT - COUNT( * ) DIV - 71 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - COUNT ( * ) / - 71 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL + CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT MAX( ALL 77 ) / - MAX( ALL 36 ) col2 FROM tab2 AS cor0 WHERE NULL <> + 93
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3125
SELECT MAX ( ALL 77 ) / - MAX ( ALL 36 ) col2 FROM tab2 AS cor0 WHERE NULL <> + 93
----
NULL

query I rowsort
SELECT DISTINCT + ( + 21 ) AS col0 FROM tab2 AS cor0
----
21

query II rowsort
SELECT ALL col1 + + 61 AS col2, + 29 FROM tab2
----
112
29
128
29
138
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + + ( - + 28 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3128
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + + ( - + 28 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3129
SELECT ALL col2 + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL col2 + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 86 * 95 AS col0 FROM tab1
----
482030
555560
784320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - ( + col2 ) col0 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT MIN( DISTINCT - + col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT MIN ( DISTINCT - + col1 ) AS col1 FROM tab0
----
-81

query II rowsort
SELECT + col2, col0 + - col1 - - col2 AS col1 FROM tab1
----
59
139
68
112
96
133

query I rowsort
SELECT DISTINCT + + col0 + - 56 FROM tab1 AS cor0
----
-5
29
35

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 WHERE col1 * + col2 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NOT 73 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - - 48 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
48

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 68 >= + col1
----
87
21
10
97
1
99

query I rowsort
SELECT - - 21 * - 0 + - 59 + + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 56 * col1 IS NULL
----
-8
26
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3141
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) > - - col2
----

skipif mysql # not compatible
query III rowsort label-3141
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > - - col2
----

query I rowsort
SELECT ALL - + 2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL MIN( + + ( 95 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 = + col0
----
95

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL MIN ( + + ( 95 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 = + col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3144
SELECT 63 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-3144
SELECT 63 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
63
NULL
63
NULL
63
NULL

query I rowsort
SELECT + col0 * + 88 AS col1 FROM tab0
----
1320
7656
8536

query I rowsort
SELECT 48 * - col0 * 13 FROM tab1
----
-31824
-53040
-56784

query I rowsort
SELECT - ( + col2 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col1 FROM tab2 WHERE NOT + 60 IS NOT NULL
----

query I rowsort
SELECT + 7 FROM tab1 WHERE NOT - - col0 IS NULL
----
7
7
7

query I rowsort
SELECT ALL - - 78 AS col2 FROM tab0 WHERE NULL IS NULL
----
78
78
78

query I rowsort
SELECT 96 * - - col2 AS col1 FROM tab2
----
2208
3840
5568

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE - + col0 BETWEEN ( ( + col0 ) ) AND NULL
----

query I rowsort
SELECT ALL 24 * + - ( - - 81 ) + + ( - col1 ) AS col1 FROM tab1
----
-1949
-1958
-1991

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL OR NOT col0 = + 90 * col0 * - 76 / + 84 * - + ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL OR NOT col0 = + 90 * col0 * - 76 / + 84 * - + ( col1 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + - + 2 col0 FROM tab0 cor0
----
-23
-3
-83

query I rowsort
SELECT - 34 * ( + col2 ) + - col0 - 93 AS col2 FROM tab0 cor0
----
-1706
-3556
-520

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3160
SELECT + MAX( - - col2 ) DIV + 78 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT + MAX ( - - col2 ) / + 78 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col0 * col0 * 70 AS col1 FROM tab2 AS cor0
----
148120
286720
393750

query I rowsort
SELECT - 99 - - - col0 + + col1 FROM tab2 AS cor0
----
-107
-86
-94

query I rowsort
SELECT ALL + col2 + - - col1 AS col2 FROM tab0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= + col2
----

query I rowsort
SELECT col0 + + - 93 AS col1 FROM tab1
----
-2
-42
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT 40 + - ( - + MIN( 26 ) ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT 40 + - ( - + MIN ( 26 ) ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT CAST( NULL AS SIGNED ) + - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3167
SELECT CAST ( NULL AS INTEGER ) + - col2 col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * 12 + - col2 AS col2, - 51 AS col2 FROM tab2
----
589
-51
746
-51
884
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT - col0 * 30 DIV col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - col0 * 30 / col0 FROM tab1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col1 FROM tab2
----
48
48
48

query I rowsort
SELECT ALL col0 * + - 78 * col1 AS col2 FROM tab0
----
-142506
-7566
-94770

query II rowsort
SELECT - 48 AS col2, - col0 AS col1 FROM tab1
----
-48
-51
-48
-85
-48
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT DISTINCT + 32 DIV - - col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT + 32 / - - col1 AS col0 FROM tab1
----
0
2
6

query I rowsort
SELECT ALL - 35 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
729

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3176
SELECT ALL - col0 AS col2, + CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-3176
SELECT ALL - col0 AS col2, + CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - col0 * + col2 + 96 + + col0 <= col1 + + - col1 * col2 + + 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 33
----

query II rowsort
SELECT + + ( 28 ) AS col2, + col0 AS col0 FROM tab0 AS cor0
----
28
15
28
87
28
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3180
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND - - col2 + col2 + + + CAST( NULL AS SIGNED ) * col0 * - - ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-3180
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND - - col2 + col2 + + + CAST ( NULL AS INTEGER ) * col0 * - - ( - col1 )
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, col0 * - + col2 FROM tab1 WHERE NOT - 79 <> + col0
----

query I rowsort
SELECT ALL - col1 + - 30 FROM tab0 WHERE NOT NULL IN ( col2, col1 )
----

query II rowsort
SELECT 17 + - 7 AS col0, + ( + 8 ) * + col2 FROM tab1
----
10
472
10
544
10
768

query I rowsort
SELECT - col1 + - - 65 * + col0 AS col2 FROM tab0
----
5634
6304
894

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT COUNT( * ) * + ( + - COUNT( * ) ) + - 53 AS col2 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-3185
SELECT COUNT ( * ) * + ( + - COUNT ( * ) ) + - 53 AS col2 FROM tab1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT + 17 DIV + COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 17 / + COUNT ( * ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT MIN( ALL + ( 94 ) ) AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3187
SELECT MIN ( ALL + ( 94 ) ) AS col2 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT ALL MAX( DISTINCT + + 18 ) AS col0, + 45 + - 10 AS col0 FROM tab0 AS cor0
----
18
35

skipif mysql # not compatible
query II rowsort label-3188
SELECT ALL MAX ( DISTINCT + + 18 ) AS col0, + 45 + - 10 AS col0 FROM tab0 AS cor0
----
18
35

query I rowsort
SELECT 67 FROM tab0 AS cor0 WHERE NOT NULL < + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col0 - + col2
----

query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
1173
3080
3886

query I rowsort
SELECT 26 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL COUNT( - 66 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL COUNT ( - 66 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - col0 * + 16 + - col0 + - + col0 AS col2 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT + + COUNT( + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + + COUNT ( + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - 5 + + 17 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL 22 + - col0 - + col0 * + col2 FROM tab0
----
-698
-935
-9678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT ALL CAST( 9 AS SIGNED ) + + + col2 + - col2 * - col1 col0 FROM tab0
----
207
229
3863

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3199
SELECT ALL CAST ( 9 AS INTEGER ) + + + col2 + - col2 * - col1 col0 FROM tab0
----
207
229
3863

query I rowsort
SELECT - + 86 * - + col2 + - col0 FROM tab2 WHERE 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT ALL + col0 DIV + + col1 + + 3 AS col2 FROM tab0
----
100
3
7

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + col0 / + + col1 + + 3 AS col2 FROM tab0
----
100
3
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + + col1 col1 FROM tab2
----
141
142
97

query I rowsort
SELECT col2 - ( - col2 ) + - + col0 * col2 AS col1 FROM tab0
----
-611
-850
-9405

onlyif mysql # DIV for integer division: 
query II rowsort label-3204
SELECT 82 DIV col2 * - - col2 - - col0 AS col2, + col2 - col0 col0 FROM tab0
----
167
-77
62
32
97
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3204
SELECT 82 / col2 * - - col2 - - col0 AS col2, + col2 - col0 col0 FROM tab0
----
167
-77
62
32
97
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3205
SELECT DISTINCT col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT col0 - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( + ( - 20 ) ) AS col0 FROM tab2 AS cor0
----
-20

query II rowsort
SELECT - col2 * + - col1 AS col2, - 79 AS col1 FROM tab2 AS cor0
----
1173
-79
3080
-79
3886
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT 72 DIV - - 72 + - + MAX( DISTINCT - 76 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
77

skipif mysql # not compatible
query I rowsort label-3208
SELECT 72 / - - 72 + - + MAX ( DISTINCT - 76 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
77

query I rowsort
SELECT ALL col1 * ( - col0 ) AS col0 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < + col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - ( 25 ) col1 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL 87 * COUNT( * ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL 87 * COUNT ( * ) FROM tab2 AS cor0
----
261

query I rowsort
SELECT - 22 AS col2 FROM tab1 cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - MIN( DISTINCT col1 ) * - COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3215
SELECT - MIN ( DISTINCT col1 ) * - COUNT ( * ) AS col0 FROM tab1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT DISTINCT CAST( - - MIN( ALL col2 ) AS SIGNED ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT CAST ( - - MIN ( ALL col2 ) AS INTEGER ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL - 43 * COUNT( DISTINCT - col2 ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - 43 * COUNT ( DISTINCT - col2 ) FROM tab0
----
-129

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL BETWEEN col1 * - + col2 AND - + col1 )
----

query I rowsort
SELECT DISTINCT 28 + 92 AS col2 FROM tab0 AS cor0
----
120

query I rowsort
SELECT - + col1 + + - 69 FROM tab2 AS cor0
----
-120
-136
-146

query II rowsort
SELECT ( + col2 ) + + - col2, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT ALL + 58 AS col2 FROM tab1 WHERE NOT NULL < 51 - + - col2
----

query I rowsort
SELECT DISTINCT + 43 - + col0 FROM tab0 cor0
----
-44
-54
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT ALL - col0 * col0 DIV + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121
-122
-27

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - col0 * col0 / + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121
-122
-27

query I rowsort
SELECT + + col1 - - 42 AS col1 FROM tab2 AS cor0
----
109
119
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT - COUNT( * ) - + 47, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-3226
SELECT - COUNT ( * ) - + 47, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-50
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3227
SELECT 97 - col2, - CAST( NULL AS SIGNED ) * + - 35 * + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
39
NULL
57
NULL
74
NULL

skipif mysql # not compatible
query II rowsort label-3227
SELECT 97 - col2, - CAST ( NULL AS INTEGER ) * + - 35 * + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
39
NULL
57
NULL
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - - SUM( ALL + - 15 ) + - MAX( col1 ) + - + 32 FROM tab0 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-3228
SELECT - - SUM ( ALL + - 15 ) + - MAX ( col1 ) + - + 32 FROM tab0 AS cor0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT MIN( col0 ) + COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3229
SELECT MIN ( col0 ) + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
18

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col0 + - 45 FROM tab1
----
-4413
-555
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT MAX( ALL + + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3231
SELECT MAX ( ALL + + 6 ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE NOT 21 + + 64 + - col0 = - - 63 * + 3 + - ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 95 * - col0 * - 61 AS col1 FROM tab0 AS cor0
----
-504165
-562115
-86925

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 - - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 4 * - - col1 FROM tab1 AS cor0
----
188
20
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL + CAST( + 46 AS SIGNED ) col0 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3236
SELECT ALL + CAST ( + 46 AS INTEGER ) col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT + col2 + - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

query I rowsort
SELECT DISTINCT - col2 * + col2 * + - col0 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT ALL + + col1 * - col0 * + 36 AS col0 FROM tab1 AS cor0
----
-15300
-153972
-25704

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL + 91 * - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + 91 * - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
273

query I rowsort
SELECT + 21 * - 32 + + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-672
-672
-672

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3243
SELECT ALL + COUNT( * ) + - + CAST( + + MAX( 98 ) AS SIGNED ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + COUNT ( * ) + - + CAST ( + + MAX ( 98 ) AS INTEGER ) FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 66 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - col0 + + + 22 * + 42 AS col0 FROM tab1 cor0
----
-1677
-6301
-7357

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3246
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / 92 NOT BETWEEN NULL AND - CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3246
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / 92 NOT BETWEEN NULL AND - CAST ( + + col2 AS INTEGER )
----

query II rowsort
SELECT ALL col0 AS col2, ( col2 ) * - col0 + + 51 AS col2 FROM tab0
----
15
-654
87
-819
97
-9552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3248
SELECT - CAST( - - col0 AS SIGNED ) + - - 31 DIV + CAST( col0 AS SIGNED ) - - 11 FROM tab1
----
-40
-74
-80

skipif mysql # not compatible
query I rowsort label-3248
SELECT - CAST ( - - col0 AS INTEGER ) + - - 31 / + CAST ( col0 AS INTEGER ) - - 11 FROM tab1
----
-40
-74
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3249
SELECT - 52 DIV + + 61 + COUNT( * ) - - + COUNT( * ) + + 81 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3249
SELECT - 52 / + + 61 + COUNT ( * ) - - + COUNT ( * ) + + 81 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL - COUNT( * ) * + 23 AS col1 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - COUNT ( * ) * + 23 AS col1 FROM tab1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT DISTINCT - col0 DIV - + 57 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT - col0 / - + 57 AS col2 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + MIN( + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + MIN ( + - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3253
SELECT + ( - col2 ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT + ( - col2 ) * CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( - - 82 ) FROM tab1 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 88 + + 91 + - ( + col0 ) col0 FROM tab1
----
-20
-23
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT COUNT( * ) + - ( - 32 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3256
SELECT COUNT ( * ) + - ( - 32 ) AS col1 FROM tab2
----
35

query I rowsort
SELECT + col1 * - 17 AS col1 FROM tab2 AS cor0
----
-1139
-1309
-867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3258
SELECT - col2 * + 28, - CAST( + + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1316
-81
-2772
-1
-280
-21

skipif mysql # not compatible
query II rowsort label-3258
SELECT - col2 * + 28, - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1316
-81
-2772
-1
-280
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 90 * - col2 col1 FROM tab0 cor0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3260
SELECT ALL - col2 AS col2, + col2 * 5 DIV - - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
5
-47
5
-99
5

skipif mysql # not compatible
query II rowsort label-3260
SELECT ALL - col2 AS col2, + col2 * 5 / - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
5
-47
5
-99
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT 8 * + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3261
SELECT 8 * + COUNT ( * ) FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3262
SELECT CAST( + - col2 AS SIGNED ), + col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-3262
SELECT CAST ( + - col2 AS INTEGER ), + col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL <> - 25 - - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT - - MIN( + - 24 ) AS col2 FROM tab2 WHERE - col1 >= - - col2 * - ( ( col0 ) ) + - 32 + col0
----
-24

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - - MIN ( + - 24 ) AS col2 FROM tab2 WHERE - col1 >= - - col2 * - ( ( col0 ) ) + - 32 + col0
----
-24

query I rowsort
SELECT ALL + 24 AS col2 FROM tab2 WHERE NULL <= - col2
----

query II rowsort
SELECT ALL col1 AS col2, - col0 * + col2 AS col0 FROM tab0
----
1
-9603
21
-870
81
-705

query I rowsort
SELECT ALL + ( col0 ) * + ( col2 ) AS col1 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT + + col2, 72 FROM tab2 AS cor0
----
23
72
40
72
58
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col2, col1 + - - 46 AS col0 FROM tab1 AS cor0
----
59
51
68
93
96
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + + MIN( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3271
SELECT + + MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT - - SUM( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3272
SELECT - - SUM ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT - + ( - 97 ) * + + COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3274
SELECT - + ( - 97 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
291

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 / - col2 * - 40 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT DISTINCT - col2 DIV + + col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT - col2 / + + col2 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT col2 - + col0 AS col1, 18 * - 32 FROM tab2
----
-17
-576
-23
-576
-24
-576

query I rowsort
SELECT - col1 + ( + 4 ) + + col0 FROM tab0
----
-62
100
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT DISTINCT - 29 DIV + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - 29 / + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT SUM( 51 ), ( - - ( - ( + + SUM( - 97 ) ) ) ) AS col2 FROM tab1 AS cor0
----
153
291

skipif mysql # not compatible
query II rowsort label-3281
SELECT SUM ( 51 ), ( - - ( - ( + + SUM ( - 97 ) ) ) ) AS col2 FROM tab1 AS cor0
----
153
291

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - - COUNT( * ) + - + COUNT( * ) + + 58 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-3282
SELECT - - COUNT ( * ) + - + COUNT ( * ) + + 58 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

query I rowsort
SELECT DISTINCT 8 + 18 FROM tab1 WHERE - col0 + col0 + - 47 IS NOT NULL
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - - COUNT( * ) - + 65 AS col2 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3284
SELECT - - COUNT ( * ) - + 65 AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT + 10 * + - ( col1 ) * + - col2 FROM tab1 AS cor0
----
13440
2950
31960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col2 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT ( + col1 ) * - 56 * - col2 + - col1 * - - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
178409
222105
68289

query I rowsort
SELECT col1 * + col1 * - + col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 55 * - - col2 + - 54 IN ( - ( + 59 ) + col2, col2, - 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT - MIN( DISTINCT - + 89 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-3290
SELECT - MIN ( DISTINCT - + 89 ) FROM tab2 AS cor0
----
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL + MAX( ALL CAST( - ( + col2 ) AS SIGNED ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL + MAX ( ALL CAST ( - ( + col2 ) AS INTEGER ) ) AS col0 FROM tab1
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3293
SELECT DISTINCT - - CAST( + - col1 AS DECIMAL ) AS col1 FROM tab0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - - CAST ( + - col1 AS REAL ) AS col1 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 WHERE NOT - 95 * col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 WHERE NOT - 95 * col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT - col1 DIV - + 3 AS col2 FROM tab1
----
1
15
4

skipif mysql # not compatible
query I rowsort label-3295
SELECT - col1 / - + 3 AS col2 FROM tab1
----
1
15
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 9 col1 FROM tab2
----
46
9
64
9
75
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3297
SELECT DISTINCT COUNT( * ) AS col0, AVG ( - 3 ) + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3297
SELECT DISTINCT COUNT ( * ) AS col0, AVG ( - 3 ) + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 74 col0 FROM tab1 cor0
----
-1036
-3478
-370

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + 19
----

query I rowsort
SELECT - + col1 + - col0 * - - col1 FROM tab2 WHERE NOT ( + 45 ) + - + col0 NOT BETWEEN col1 AND + 95 + + 3
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 49 / col2 IS NOT NULL
----

query II rowsort
SELECT + + ( + + 46 ) AS col0, - 41 FROM tab1 cor0
----
46
-41
46
-41
46
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col1 col0, - col1 FROM tab0 AS cor0
----
-66
-81
66
-21
96
-1

query II rowsort
SELECT + - col0 + + - col0 AS col0, col1 * - + col0 - + 75 FROM tab2 AS cor0
----
-128
-5003
-150
-5100
-92
-2421

query I rowsort
SELECT DISTINCT + + col2 + col0 * - col0 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT DISTINCT + col1 + - 55 + + col0 FROM tab1 AS cor0
----
10
35
83

query II rowsort
SELECT DISTINCT col0, + col2 + + col0 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT COUNT( * ) * 99 * + + 47 AS col0 FROM tab2
----
13959

skipif mysql # not compatible
query I rowsort label-3308
SELECT COUNT ( * ) * 99 * + + 47 AS col0 FROM tab2
----
13959

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT 98 * col0 FROM tab2
----
4508
6272
7350

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab2 WHERE NOT NULL BETWEEN 0 AND col0 + + col1
----

query I rowsort
SELECT ALL col1 - + - 81 FROM tab0
----
102
162
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 3
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT DISTINCT + 21, - MAX( col2 ) AS col2 FROM tab2 AS cor0
----
21
-58

skipif mysql # not compatible
query II rowsort label-3314
SELECT DISTINCT + 21, - MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
21
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL + MAX( + col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + MAX ( + col2 ) FROM tab1 cor0
----
96

query I rowsort
SELECT - - 49 + + col0 AS col1 FROM tab2 cor0
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT - 55 * SUM( DISTINCT + 37 * col1 ) AS col0 FROM tab1
----
-134310

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - 55 * SUM ( DISTINCT + 37 * col1 ) AS col0 FROM tab1
----
-134310

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL 32 + + SUM( DISTINCT - 63 ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL 32 + + SUM ( DISTINCT - 63 ) AS col1 FROM tab0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3319
SELECT DISTINCT + col0 + col2 DIV + col1 AS col1 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + col0 + col2 / + col1 AS col1 FROM tab1
----
57
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE col1 * col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE col1 * col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT 22 * col0 AS col2 FROM tab2
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + 11 * + COUNT( * ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3323
SELECT + 11 * + COUNT ( * ) FROM tab1
----
33

query I rowsort
SELECT ALL 88 - col0 * col0 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT 76 + + 81 DIV col1 AS col2 FROM tab1 WHERE ( - col0 + - col1 ) IS NOT NULL
----
77
81
92

skipif mysql # not compatible
query I rowsort label-3325
SELECT 76 + + 81 / col1 AS col2 FROM tab1 WHERE ( - col0 + - col1 ) IS NOT NULL
----
77
81
92

query I rowsort
SELECT - ( - ( 42 ) ) FROM tab1
----
42
42
42

query I rowsort
SELECT - col0 + 23 FROM tab2
----
-23
-41
-52

query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT - COUNT( col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - COUNT ( col0 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL SUM( + 83 ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL SUM ( + 83 ) FROM tab2
----
249

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - col1 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT + col0 * col2 + CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT + col0 * col2 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < 39
----

query I rowsort
SELECT ALL - 31 + 95 * 33 AS col0 FROM tab1
----
3104
3104
3104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3336
SELECT DISTINCT * FROM tab1 WHERE - CAST( - col1 AS SIGNED ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3336
SELECT DISTINCT * FROM tab1 WHERE - CAST ( - col1 AS INTEGER ) + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT - MIN( ALL col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT - MIN ( ALL col1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ( + 63 ) AS col1 FROM tab0
----
63
63
63

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col2 + - col0 * 51 NOT BETWEEN NULL AND - col2 + + 80
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * 58 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 12 + col2 FROM tab2
----
35
52
70

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 / 90 + - col1 * - 38 ) NOT BETWEEN col0 + col1 AND NULL
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col1 FROM tab2 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT - COUNT( * ) + + 32 * - 89 FROM tab1 AS cor0
----
-2851

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - COUNT ( * ) + + 32 * - 89 FROM tab1 AS cor0
----
-2851

query I rowsort
SELECT 52 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
52
52
52

query I rowsort
SELECT DISTINCT 56 * 1 AS col0 FROM tab1 AS cor0
----
56

query I rowsort
SELECT 43 + 23 AS col0 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL - ( + COUNT( * ) ) + + COUNT( * ) * + ( + 97 ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - ( + COUNT ( * ) ) + + COUNT ( * ) * + ( + 97 ) FROM tab0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT + MIN( DISTINCT col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT + MIN ( DISTINCT col2 ) FROM tab2
----
23

query I rowsort
SELECT col0 + col1 * 82 AS col0 FROM tab0
----
179
1809
6657

query III rowsort
SELECT * FROM tab2 WHERE NOT - 57 / col2 + col2 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE + 78 IN ( 15 )
----

skipif mysql # not compatible
query I rowsort label-3352
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE + 78 IN ( 15 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE + 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE col2 / col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT CAST( - ( + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3356
SELECT CAST ( - ( + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3357
SELECT - 93 DIV - COUNT( + col0 + col1 ) AS col0 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 93 / - COUNT ( + col0 + col1 ) AS col0 FROM tab0 AS cor0
----
31

query I rowsort
SELECT + 91 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT COUNT( ALL 16 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3359
SELECT COUNT ( ALL 16 ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col0 + - 75 * col1 col1 FROM tab2 AS cor0
----
-1679
-1709
600

query I rowsort
SELECT col2 - - + col0 * col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0 WHERE NULL >= + ( col2 ) / 66
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3363
SELECT col2 + + - 42 DIV CAST( + 49 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3363
SELECT col2 + + - 42 / CAST ( + 49 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 65 - + + col1 FROM tab2
----
-116
-132
-142

query I rowsort
SELECT ALL - col2 - - + 98 AS col0 FROM tab2
----
40
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - MAX( - - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - MAX ( - - col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - col1 - 55 AS col1 FROM tab2 cor0 WHERE NOT ( + col2 ) IS NULL
----
-106
-122
-132

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + ( + col0 ) NOT BETWEEN NULL AND ( - col1 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL - MIN( DISTINCT + 57 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL - MIN ( DISTINCT + 57 ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT - - CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT - - CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT ALL + + 57 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + + 57 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 * + - 45 + 12 FROM tab2 AS cor0
----
-2688

query II rowsort
SELECT ALL col0 AS col1, - 91 FROM tab2
----
46
-91
64
-91
75
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 91 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - ( - 98 ) AS col2 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - + 70 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + COUNT( * ) * + + 79 col0 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3377
SELECT + COUNT ( * ) * + + 79 col0 FROM tab0 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3378
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL OR NULL NOT IN ( - col1 + + CAST( NULL AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3378
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL OR NULL NOT IN ( - col1 + + CAST ( NULL AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + + ( - + ( col2 ) ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - + SUM( - col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-3380
SELECT - + SUM ( - col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT ALL + ( - 81 ) - + col1 AS col0 FROM tab0 WHERE NOT ( col1 ) IN ( - 24 * - 90 )
----
-102
-162
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + - col0 + - 76 * + 66
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) + - COUNT( * ) + - 9 + + 11 * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - COUNT ( * ) + - 9 + + 11 * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT ALL 16 DIV - col0 * - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL 16 / - col0 * - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 89 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / + + 31 + - - col0 / - col0 NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 60 + + 7 BETWEEN ( + + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col0 * - col1 + + col2 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col0 * - col1 + + col2 col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + 59 AS col2 FROM tab1 AS cor0
----
-2773
-295
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT 66 * + COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT 66 * + COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT ALL 84 * - - 84 FROM tab1
----
7056
7056
7056

query I rowsort
SELECT - col0 + - col1 * col2 FROM tab0 cor0
----
-196
-297
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 24 + + ( - - MAX( + col2 ) ) AS col2 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-3393
SELECT 24 + + ( - - MAX ( + col2 ) ) AS col2 FROM tab2 cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - ( - + COUNT( * ) ) * + + SUM( ALL - + col1 ) + - 63 FROM tab0 AS cor0
----
-372

skipif mysql # not compatible
query I rowsort label-3394
SELECT - ( - + COUNT ( * ) ) * + + SUM ( ALL - + col1 ) + - 63 FROM tab0 AS cor0
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT ALL + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT ALL + + CAST( + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + col1 / - col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 + + 20 FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL col2 / + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * - 58 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL - COUNT( * ) + + + 76 AS col2 FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - COUNT ( * ) + + + 76 AS col2 FROM tab1 cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3402
SELECT ALL + - col2 DIV CAST( col1 AS SIGNED ) + - col0 AS col1 FROM tab0 cor0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + - col2 / CAST ( col1 AS INTEGER ) + - col0 AS col1 FROM tab0 cor0
----
-15
-196
-87

query I rowsort
SELECT ALL + col1 + ( - 13 ) * + + 81 AS col1 FROM tab2 AS cor0
----
-1002
-976
-986

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE ( ( - col0 ) * + + ( col1 ) * col2 ) BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 30 col0 FROM tab2
----
21
37
47

query I rowsort
SELECT DISTINCT 56 + 21 AS col2 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT 83 - - COUNT( * ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT 83 - - COUNT ( * ) AS col0 FROM tab0
----
86

query II rowsort
SELECT + col1, + col1 * - - 33 FROM tab0
----
1
33
21
693
81
2673

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3409
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( 13 + - - CAST( NULL AS SIGNED ) ) < col2 )
----

skipif mysql # not compatible
query III rowsort label-3409
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( 13 + - - CAST ( NULL AS INTEGER ) ) < col2 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( + col0 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col2 BETWEEN + col2 AND col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + - col2 + - + col2 + + col1
----

query I rowsort
SELECT ALL - - col0 * + 15 + - col1 FROM tab1 AS cor0
----
1270
1318
751

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + - 83, + 91 AS col0 FROM tab0 AS cor0
----
-83
91
-83
91
-83
91

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - col0 IN ( + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT col2 DIV col1 * - - col1 + - 66 + - - col1 * + + col0 AS col2 FROM tab0 AS cor0
----
1149
130
1761

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT col2 / col1 * - - col1 + - 66 + - - col1 * + + col0 AS col2 FROM tab0 AS cor0
----
1149
130
1761

query I rowsort
SELECT DISTINCT 95 - - 10 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT 20 * - 66 FROM tab0
----
-1320
-1320
-1320

query I rowsort
SELECT ALL + col1 * - 7 FROM tab2
----
-357
-469
-539

query I rowsort
SELECT DISTINCT - col0 * - 52 AS col1 FROM tab2
----
2392
3328
3900

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 48
----

query I rowsort
SELECT ALL + + 1 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + 35 * + COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + 35 * + COUNT ( * ) FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT DISTINCT - col0 + + + 5 + - col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - col0 + + + 5 + - col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + - - col1 * + - 44 + col2 AS col0 FROM tab2
----
-2175
-2815
-3284

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT col2 DIV ( + ( - 45 ) ) * - + col0 * - - 14 FROM tab2 AS cor0
----
0
0
1050

skipif mysql # not compatible
query I rowsort label-3427
SELECT col2 / ( + ( - 45 ) ) * - + col0 * - - 14 FROM tab2 AS cor0
----
0
0
1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT ALL COUNT( * ) DIV - - 1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL COUNT ( * ) / - - 1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT - - ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3429
SELECT - - ( COUNT ( * ) ) FROM tab1 cor0
----
3

query II rowsort
SELECT + col2 - - col1 AS col1, - 48 FROM tab2 AS cor0
----
117
-48
125
-48
74
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT + MIN( - col1 ) col0 FROM tab0 AS cor0 WHERE - CAST( - col1 AS SIGNED ) * - col1 * + col1 IS NOT NULL
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3431
SELECT + MIN ( - col1 ) col0 FROM tab0 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) * - col1 * + col1 IS NOT NULL
----
-81

query I rowsort
SELECT DISTINCT 98 * + 49 + + - 25 AS col0 FROM tab1 AS cor0
----
4777

query I rowsort
SELECT col1 AS col2 FROM tab2 cor0 WHERE col2 >= + 29
----
67
77

query I rowsort
SELECT - col1 + - + 22 FROM tab0 AS cor0
----
-103
-23
-43

query I rowsort
SELECT DISTINCT 85 + - col1 * 85 * + - col1 + + col2 + - 7 + - col1 FROM tab1 WHERE col2 / - + 70 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) - + + 59 AS col1 FROM tab0
----
-12
-49
40

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col1 NOT BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL - col1 + col0 DIV - col2 AS col0 FROM tab1
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - col1 + col0 / - col2 AS col0 FROM tab1
----
-14
-48
-6

query II rowsort
SELECT DISTINCT - col1 * + + col1 - + + col2 AS col0, + ( col0 ) * ( + ( col1 ) ) - ( + + 67 ) FROM tab0
----
-100
30
-451
1760
-6608
1148

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT col0 DIV + 64 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT col0 / + 64 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3442
SELECT - col2 FROM tab0 WHERE NOT - - 66 NOT BETWEEN - ( - CAST( col2 AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3442
SELECT - col2 FROM tab0 WHERE NOT - - 66 NOT BETWEEN - ( - CAST ( col2 AS REAL ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL ( - - ( - + MIN( + + ( col2 ) ) ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL ( - - ( - + MIN ( + + ( col2 ) ) ) ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3445
SELECT DISTINCT + col1 AS col0, col0 * - col2 + 63 + - + col0 DIV + ( - + col0 ) FROM tab0 AS cor0
----
1
-9539
21
-806
81
-641

skipif mysql # not compatible
query II rowsort label-3445
SELECT DISTINCT + col1 AS col0, col0 * - col2 + 63 + - + col0 / + ( - + col0 ) FROM tab0 AS cor0
----
1
-9539
21
-806
81
-641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) / + - col2 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3446
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) / + - col2 col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL ( col0 ) AS col1, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col1, col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <= - 82
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 + - + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT ALL - + 29 AS col0, + SUM( - col0 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-29
-202

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL - + 29 AS col0, + SUM ( - col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-29
-202

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 81, col1 )
----

query I rowsort
SELECT DISTINCT - col2 * 74 * - - 68 FROM tab1
----
-296888
-342176
-483072

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT MAX( + col2 ) * - 50 + - 82 * COUNT( * ) AS col0 FROM tab1
----
-5046

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT MAX ( + col2 ) * - 50 + - 82 * COUNT ( * ) AS col0 FROM tab1
----
-5046

query I rowsort
SELECT ALL - 2 * - col1 * + 59 AS col2 FROM tab0
----
118
2478
9558

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + col0 BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT + COUNT( * ) DIV - + 16 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT + COUNT ( * ) / - + 16 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 + col2 * + + col2 BETWEEN col0 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - 70 + + - COUNT( * ) * 87 FROM tab1
----
-331

skipif mysql # not compatible
query I rowsort label-3459
SELECT - 70 + + - COUNT ( * ) * 87 FROM tab1
----
-331

query I rowsort
SELECT DISTINCT - 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - COUNT( * ) + - 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= ( NULL )
----
-32

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - COUNT ( * ) + - 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= ( NULL )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT + - ( COUNT( * ) ) AS col1 FROM tab2 cor0 WHERE NOT + 97 * - col1 * - 9 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + - ( COUNT ( * ) ) AS col1 FROM tab2 cor0 WHERE NOT + 97 * - col1 * - 9 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL - + SUM( + 70 ) AS col0 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - + SUM ( + 70 ) AS col0 FROM tab1 AS cor0
----
-210

onlyif mysql # DIV for integer division: 
query II rowsort label-3465
SELECT - + 69 DIV - col1 - + col1 * col0 col2, col2 * + 6 FROM tab1 cor0
----
-412
354
-4276
408
-710
576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3465
SELECT - + 69 / - col1 - + col1 * col0 col2, col2 * + 6 FROM tab1 cor0
----
-412
354
-4276
408
-710
576

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - + col0 * + + col2 + + + col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - 52 * + col2 * + col2 BETWEEN NULL AND 60
----

query I rowsort
SELECT ALL - col2 + + 18 FROM tab2 AS cor0
----
-22
-40
-5

query I rowsort
SELECT 73 - - col1 + col2 AS col2 FROM tab1
----
137
183
188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 IN ( - - 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL - CAST( - - col0 AS SIGNED ) * + col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - CAST ( - - col0 AS INTEGER ) * + col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 50 * + + col2 / 88 ) BETWEEN NULL AND col2 + ( col0 )
----

query I rowsort
SELECT DISTINCT - + 88 AS col2 FROM tab2 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT + + MIN( DISTINCT 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3476
SELECT + + MIN ( DISTINCT 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT ( + 39 ) AS col1 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT - 21 + COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-3478
SELECT - 21 + COUNT ( * ) FROM tab1
----
-18

query I rowsort
SELECT - col0 * - - col2 + col2 AS col2 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT CAST( NULL AS SIGNED ) + - col0 * col2 * 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT CAST ( NULL AS INTEGER ) + - col0 * col2 * 51 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT - 84 DIV - col2 + + ( + + col0 ) AS col1 FROM tab0 cor0
----
16
95
97

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 84 / - col2 + + ( + + col0 ) AS col1 FROM tab0 cor0
----
16
95
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 2
----

query I rowsort
SELECT DISTINCT col2 * - + col2 * col0 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT ALL + col0 * col0 * - col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3485
SELECT - CAST( 5 AS SIGNED ) * - - COUNT( * ) + + COUNT( * ) col1 FROM tab1
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3485
SELECT - CAST ( 5 AS INTEGER ) * - - COUNT ( * ) + + COUNT ( * ) col1 FROM tab1
----
-12

query I rowsort
SELECT ( - 38 ) AS col1 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3487
SELECT - COUNT( * ) * + + COUNT( * ), + CAST( 92 AS SIGNED ) AS col1 FROM tab0
----
-9
92

skipif mysql # not compatible
query II rowsort label-3487
SELECT - COUNT ( * ) * + + COUNT ( * ), + CAST ( 92 AS INTEGER ) AS col1 FROM tab0
----
-9
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + COUNT( * ) * + 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-3488
SELECT + COUNT ( * ) * + 54 FROM tab1
----
162

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3490
SELECT + - ( + - 18 ) * + + CAST( - COUNT( * ) AS SIGNED ) AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-3490
SELECT + - ( + - 18 ) * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-54
3

query I rowsort
SELECT 31 + - col1 FROM tab1 AS cor0
----
-16
17
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 * - CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - col2 * - CAST ( NULL AS INTEGER ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT - MIN( - - 26 ) AS col1 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - MIN ( - - 26 ) AS col1 FROM tab1 cor0
----
-26

query I rowsort
SELECT DISTINCT - col1 + col1 - - col2 AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 98 ) IN ( - col2 + + col1, + 5, + col0, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 88 + + + col1, 51 col1 FROM tab0 cor0
----
109
51
169
51
89
51

query I rowsort
SELECT ALL col1 + - + 93 FROM tab1
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL + COUNT( - - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + COUNT ( - - col0 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * 4 col2 FROM tab1
----
104
104
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL COUNT( - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL COUNT ( - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT 89 DIV COUNT( * ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3501
SELECT 89 / COUNT ( * ) AS col0 FROM tab1
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 80 ) < 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3503
SELECT DISTINCT col2 DIV col2 + col0 * + col1 + col0, - 81 col1 FROM tab2 AS cor0
----
2393
-81
4993
-81
5101
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3503
SELECT DISTINCT col2 / col2 + col0 * + col1 + col0, - 81 col1 FROM tab2 AS cor0
----
2393
-81
4993
-81
5101
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT CAST( + 7 AS SIGNED ) + - col0 FROM tab0
----
-8
-80
-90

skipif mysql # not compatible
query I rowsort label-3504
SELECT CAST ( + 7 AS INTEGER ) + - col0 FROM tab0
----
-8
-80
-90

query I rowsort
SELECT DISTINCT - ( + 35 ) * - col1 + - col1 FROM tab1 AS cor0
----
1598
170
476

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3506
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( - col2 AS SIGNED ) * + 36 AND + + CAST( + 54 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3506
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( - col2 AS INTEGER ) * + 36 AND + + CAST ( + 54 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3507
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + 17 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + 17 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 35 - + + col1 * - 77 AS col1 FROM tab0 AS cor0
----
3472
4662
6762

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT DISTINCT - - COUNT( * ), ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3509
SELECT DISTINCT - - COUNT ( * ), ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3510
SELECT DISTINCT + col2 DIV - - CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3510
SELECT DISTINCT + col2 / - - CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <> + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3512
SELECT CAST( - - 69 AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - 43 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3512
SELECT CAST ( - - 69 AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT - 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + ( - + SUM( col2 ) ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3513
SELECT + ( - + SUM ( col2 ) ) AS col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL + COUNT( ALL - - 61 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + COUNT ( ALL - - 61 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 42 / col2 + - col2 AS col0 FROM tab2 WHERE 34 / col2 + col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * 68 * + col2 FROM tab0
----
-47940
-59160
-653004

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - 89 * + - col1
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT ALL + SUM( 18 ) * - 15 FROM tab2 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + SUM ( 18 ) * - 15 FROM tab2 AS cor0
----
-810

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - - col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - 1 * + + 61 - + col1
----

query II rowsort
SELECT - col2 + - - col1 - - col0 AS col2, + col1 + - 70 FROM tab2 AS cor0
----
101
7
74
-19
84
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT + - SUM( + col1 ) * + 19 * - COUNT( * ) FROM tab2 AS cor0
----
11115

skipif mysql # not compatible
query I rowsort label-3524
SELECT + - SUM ( + col1 ) * + 19 * - COUNT ( * ) FROM tab2 AS cor0
----
11115

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3526
SELECT DISTINCT - col0 * - 84 * col1 + + CAST( NULL AS DECIMAL ) * - + 43 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3526
SELECT DISTINCT - col0 * - 84 * col1 + + CAST ( NULL AS REAL ) * - + 43 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - + col1 + + + col2 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + - COUNT( * ) FROM tab1 WHERE - - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT + - COUNT ( * ) FROM tab1 WHERE - - col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT BETWEEN ( + 44 ) AND NULL
----

query I rowsort
SELECT ALL col2 - 38 + + 21 * + 50 FROM tab2
----
1035
1052
1070

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT 37 DIV + col0 + - 39 AS col2 FROM tab0
----
-37
-39
-39

skipif mysql # not compatible
query I rowsort label-3533
SELECT 37 / + col0 + - 39 AS col2 FROM tab0
----
-37
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT CAST( - - col0 AS SIGNED ) + - 33 FROM tab1
----
18
52
58

skipif mysql # not compatible
query I rowsort label-3534
SELECT CAST ( - - col0 AS INTEGER ) + - 33 FROM tab1
----
18
52
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT DISTINCT - col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT col2 + col1 + + 45 DIV - col0 + - - 73 * 24 AS col0 FROM tab1
----
1816
1862
1867

skipif mysql # not compatible
query I rowsort label-3536
SELECT col2 + col1 + + 45 / - col0 + - - 73 * 24 AS col0 FROM tab1
----
1816
1862
1867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 / - col2 col0 FROM tab2 WHERE NOT NULL IN ( 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT DISTINCT - col0 DIV - - col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT - col0 / - - col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + ( + ( - CAST( + col2 AS SIGNED ) ) ) + - col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-3539
SELECT + ( + ( - CAST ( + col2 AS INTEGER ) ) ) + - col2 AS col1 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL + col0 + + ( - - 79 ) * + + 29 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
116887
153572
176471

query I rowsort
SELECT + 81 * col1 FROM tab2
----
4131
5427
6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL 40 * col1 FROM tab2 cor0
----
2040
2680
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 45 col0 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT COUNT( * ) * + 78 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3545
SELECT COUNT ( * ) * + 78 FROM tab1 AS cor0
----
234

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 70 * 95 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT DISTINCT COUNT( ALL + + col2 ) * - + 47 * - CAST( 51 AS SIGNED ) FROM tab2
----
7191

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT COUNT ( ALL + + col2 ) * - + 47 * - CAST ( 51 AS INTEGER ) FROM tab2
----
7191

query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - MIN( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3550
SELECT - MIN ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL MAX( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT + - MIN( - CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3552
SELECT + - MIN ( - CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL < - col1 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 / + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 51 * col2 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT DISTINCT - COUNT( * ) * 62, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-186
3

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT - COUNT ( * ) * 62, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-186
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 * - + 39 >= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + 12 + + SUM( - + 36 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3558
SELECT + 12 + + SUM ( - + 36 ) AS col0 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + ( - - MAX( + + col2 ) ) * + 58 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
5739

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + ( - - MAX ( + + col2 ) ) * + 58 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab0 cor0
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) * - ( + col2 ) + - col2 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT SUM( ALL - 28 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3563
SELECT SUM ( ALL - 28 ) FROM tab2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) + + + 26 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) + + + 26 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 - + - col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 92
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * + col1 AS col2 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL - MIN( DISTINCT - - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - MIN ( DISTINCT - - 96 ) FROM tab0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( 74 * - + col1 NOT BETWEEN NULL AND + col0 ) )
----

query II rowsort
SELECT + + col1 AS col2, + col1 * - col0 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

query III rowsort
SELECT * FROM tab0 WHERE NOT + 79 >= + col1
----
15
81
47

query II rowsort
SELECT DISTINCT - 2 * 71 AS col1, - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-142
-10
-142
-47
-142
-99

query I rowsort
SELECT - 83 FROM tab2 cor0 WHERE NOT 99 IS NULL
----
-83
-83
-83

query II rowsort
SELECT ALL ( - col2 ), + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT + - ( - + MIN( + + col0 ) ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3575
SELECT + - ( - + MIN ( + + col0 ) ) AS col2 FROM tab2 cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT col2 DIV 57 col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3576
SELECT col2 / 57 col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL + MIN( ALL + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + MIN ( ALL + + col0 ) FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT ( + col0 ) DIV - 3 FROM tab1
----
-17
-28
-30

skipif mysql # not compatible
query I rowsort label-3579
SELECT ( + col0 ) / - 3 FROM tab1
----
-17
-28
-30

query I rowsort
SELECT + col0 * col2 * - 30 FROM tab2
----
-130500
-31740
-76800

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL 77 * + COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL 77 * + COUNT ( * ) FROM tab2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT COUNT( - - 55 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3582
SELECT COUNT ( - - 55 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT DISTINCT - SUM( 55 ) * + COUNT( * ) AS col2, - 34 FROM tab1
----
-495
-34

skipif mysql # not compatible
query II rowsort label-3583
SELECT DISTINCT - SUM ( 55 ) * + COUNT ( * ) AS col2, - 34 FROM tab1
----
-495
-34

query III rowsort
SELECT * FROM tab1 WHERE NOT + 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT ( - MAX( + col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT ( - MAX ( + col0 ) ) FROM tab0 AS cor0
----
-97

query II rowsort
SELECT + 44 AS col0, + 94 FROM tab2 AS cor0
----
44
94
44
94
44
94

query I rowsort
SELECT DISTINCT col2 + - col2 - + col0 * + col2 * + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + 89 < NULL
----

query I rowsort
SELECT ALL + + 86 * + col2 + + 23 FROM tab1 AS cor0
----
5097
5871
8279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT COUNT( * ) * CAST( + 89 AS SIGNED ) - - 20 * + + 84 FROM tab0 cor0
----
1947

skipif mysql # not compatible
query I rowsort label-3589
SELECT COUNT ( * ) * CAST ( + 89 AS INTEGER ) - - 20 * + + 84 FROM tab0 cor0
----
1947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + col0 col2 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT - 62 + + col0 AS col2, + ( col2 ) * ( 98 ) FROM tab2
----
-16
2254
13
5684
2
3920

query I rowsort
SELECT - 11 + - 90 * - col1 FROM tab0
----
1879
7279
79

query II rowsort
SELECT col2 + + - col0, col1 FROM tab2
----
-17
67
-23
51
-24
77

query I rowsort
SELECT DISTINCT - 94 + - col0 AS col1 FROM tab1
----
-145
-179
-185

query II rowsort
SELECT ALL col1 + + 31 AS col1, - col0 FROM tab0
----
112
-15
32
-97
52
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3596
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - CAST( - 48 AS SIGNED ) AND - 43 * col2
----

skipif mysql # not compatible
query III rowsort label-3596
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - CAST ( - 48 AS INTEGER ) AND - 43 * col2
----

query I rowsort
SELECT - 46 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL CAST( NULL AS SIGNED ) * col1 - + - 63 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL CAST ( NULL AS INTEGER ) * col1 - + - 63 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 50 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-50
-50
-50

query I rowsort
SELECT ( - + ( col1 ) ) * + col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - - COUNT( * ) * - + COUNT( ALL + - 98 ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3601
SELECT - - COUNT ( * ) * - + COUNT ( ALL + - 98 ) FROM tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT 13 * + col1 / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT 13 * + col1 / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT MIN( ALL - 21 ) * + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1491

skipif mysql # not compatible
query I rowsort label-3603
SELECT MIN ( ALL - 21 ) * + 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1491

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 NOT BETWEEN NULL AND - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3605
SELECT + 33 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

skipif mysql # not compatible
query II rowsort label-3605
SELECT + 33 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 383ca4aa77c611edc07e9131f33b24c8

query II rowsort
SELECT - + col0, + col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT DISTINCT + - ( CAST( - 8 AS SIGNED ) ) * + ( - col1 ) - col2 FROM tab0 AS cor0
----
-107
-178
-695

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT + - ( CAST ( - 8 AS INTEGER ) ) * + ( - col1 ) - col2 FROM tab0 AS cor0
----
-107
-178
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + 35 ) * + col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 43 * + 53 + + + 0 + + 0 NOT IN ( - col0, col2 + - - col0 + + col1, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 * ( - col1 ) + - - col0 col0 FROM tab2 WHERE NOT - + col1 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT - 61 DIV col0 * - - 99 AS col2 FROM tab0
----
-396
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - 61 / col0 * - - 99 AS col2 FROM tab0
----
-396
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 37 col1 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT + 22 * 35 * + col2 * - + col0 AS col0 FROM tab1
----
-3769920
-3861550
-4764760

query I rowsort
SELECT - 40 * col0 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT ALL + MAX( - - col2 ) AS col0, + COUNT( * ) AS col2 FROM tab1
----
96
3

skipif mysql # not compatible
query II rowsort label-3616
SELECT ALL + MAX ( - - col2 ) AS col0, + COUNT ( * ) AS col2 FROM tab1
----
96
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - + 55 AS col2 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT + 26 DIV COUNT( - - col1 ) + - 5 + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3619
SELECT + 26 / COUNT ( - - col1 ) + - 5 + - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 27 * + ( + 33 ) + col1 * 30 FROM tab1 AS cor0
----
-471
-741
519

query I rowsort
SELECT DISTINCT + + col1 + + + col2 FROM tab0 cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT CAST( - - col0 AS SIGNED ) + col0 + 88 AS col1 FROM tab1 cor0
----
190
258
270

skipif mysql # not compatible
query I rowsort label-3622
SELECT CAST ( - - col0 AS INTEGER ) + col0 + 88 AS col1 FROM tab1 cor0
----
190
258
270

onlyif mysql # aggregate syntax: 
query II rowsort label-3623
SELECT ALL ( + SUM( ALL - col1 ) ), + 48 AS col1 FROM tab1 AS cor0
----
-66
48

skipif mysql # not compatible
query II rowsort label-3623
SELECT ALL ( + SUM ( ALL - col1 ) ), + 48 AS col1 FROM tab1 AS cor0
----
-66
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST( + - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3624
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN CAST ( + - col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT + - 11 + - - col1 FROM tab0 AS cor0 WHERE - 73 <= NULL
----

query II rowsort
SELECT DISTINCT col2 + + col0, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
196
1
62
81
97
21

query I rowsort
SELECT ALL - + 87 AS col2 FROM tab2 cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + - SUM( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT + - SUM ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT DISTINCT + + COUNT( 82 ) + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + + COUNT ( 82 ) + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 75 * + + col2 AS col0 FROM tab1 AS cor0
----
4425
5100
7200

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col2 IN ( + 33, col2, 46, + 11 + - col1, - col0 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL 39 + + MAX( - col1 ) * 0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL 39 + + MAX ( - col1 ) * 0 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT DISTINCT + COUNT( * ) - + + COUNT( * ) DIV 76 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + COUNT ( * ) - + + COUNT ( * ) / 76 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + COUNT( + + 20 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3634
SELECT + COUNT ( + + 20 ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 - + 57 FROM tab1
----
-10
-43
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT + 45 - - 32 * - - COUNT( * ) * + 80 FROM tab0
----
7725

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + 45 - - 32 * - - COUNT ( * ) * + 80 FROM tab0
----
7725

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + SUM( ALL 4 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col0 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT + SUM ( ALL 4 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col0 * + 45
----
NULL

query I rowsort
SELECT ALL + col1 * + col1 * 37 AS col0 FROM tab0 AS cor0
----
16317
242757
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT DISTINCT 78 DIV - 38 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT 78 / - 38 FROM tab1
----
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - + col0 * + 66 * + col2 + + + 40 BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 54 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT - COUNT( * ) + - SUM( + col1 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - COUNT ( * ) + - SUM ( + col1 ) FROM tab1 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 33 AND - col1 - col0 + - - col2
----

query II rowsort
SELECT DISTINCT + + ( col1 ) AS col1, + col0 + 81 FROM tab1 AS cor0
----
14
132
47
172
5
166

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 40 NOT BETWEEN - col0 * col2 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3646
SELECT + col0 DIV col1 * - + CAST( + 39 AS SIGNED ) AS col0 FROM tab1
----
-117
-39
-663

skipif mysql # not compatible
query I rowsort label-3646
SELECT + col0 / col1 * - + CAST ( + 39 AS INTEGER ) AS col0 FROM tab1
----
-117
-39
-663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3647
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 99 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3647
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 99 FROM tab0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * 88 col2 FROM tab2
----
2728
2728
2728

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 70 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT COUNT( * ) + - + 61 AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-3651
SELECT COUNT ( * ) + - + 61 AS col1 FROM tab0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * + + col0 col1 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT 68 + - - col0 AS col0 FROM tab1 AS cor0
----
119
153
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL SUM( ALL + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL SUM ( ALL + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - ( + col2 ) )
----

query I rowsort
SELECT ALL + ( - col2 ) - + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 / col0 IS NULL ) OR NOT NULL > NULL
----

query I rowsort
SELECT - + 66 - col2 * + - 21 AS col2 FROM tab0 AS cor0
----
144
2013
921

query I rowsort
SELECT + - 97 - + + 87 FROM tab0 AS cor0
----
-184
-184
-184

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT col1 - + + 70 DIV + col2 AS col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-3660
SELECT col1 - + + 70 / + col2 AS col1 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT 27 - - col0 DIV + col2 AS col2 FROM tab2 AS cor0
----
28
28
29

skipif mysql # not compatible
query I rowsort label-3661
SELECT 27 - - col0 / + col2 AS col2 FROM tab2 AS cor0
----
28
28
29

query I rowsort
SELECT - ( + - col0 ) - + col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT - - ( - - 21 ) * - col1 FROM tab0 AS cor0
----
-1701
-21
-441

query II rowsort
SELECT + 31 + + 44 AS col1, + 49 AS col2 FROM tab0 AS cor0
----
75
49
75
49
75
49

query II rowsort
SELECT 42 + - 45, col0 AS col2 FROM tab2 AS cor0
----
-3
46
-3
64
-3
75

query I rowsort
SELECT + col1 * + col0 + + + 13 + - col1 FROM tab0 AS cor0
----
109
1147
1819

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( ( + col1 ) ) + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL MAX( DISTINCT col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL MAX ( DISTINCT col1 ) AS col0 FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT SUM( DISTINCT + + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT SUM ( DISTINCT + + col2 ) AS col1 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + col2 * - 34 * - col1 * - col2 FROM tab1
----
-4386816
-591770
-7389152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3672
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3673
SELECT + MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT ( - MIN( ALL - 42 ) ) AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT ( - MIN ( ALL - 42 ) ) AS col1 FROM tab2
----
42

query II rowsort
SELECT DISTINCT 96 AS col2, 58 FROM tab1
----
96
58

query I rowsort
SELECT ALL - - 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT + MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL + col0 * + col2 * CAST( + - 52 AS SIGNED ) col1 FROM tab1 AS cor0
----
-254592
-260780
-321776

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3678
SELECT ALL + col0 * + col2 * CAST ( + - 52 AS INTEGER ) col1 FROM tab1 AS cor0
----
-254592
-260780
-321776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT - - COUNT( * ) DIV - - 74 * - 49 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - - COUNT ( * ) / - - 74 * - 49 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col2, 15 + + col0 * + col2 AS col0 FROM tab0 cor0
----
10
885
47
720
99
9618

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE 9 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT - col2 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) = col1
----

skipif mysql # not compatible
query I rowsort label-3682
SELECT - col2 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) = col1
----

query I rowsort
SELECT 67 + - - col2 * col2 FROM tab1
----
3548
4691
9283

query II rowsort
SELECT DISTINCT 90 AS col1, 37 - + ( - 73 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
90
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 col1, + 28 + + col2 AS col0 FROM tab1
----
4896
124
5015
87
6188
96

query I rowsort
SELECT 16 * + - col1 * 39 FROM tab0
----
-13104
-50544
-624

query I rowsort
SELECT DISTINCT 95 * ( - 20 ) FROM tab2
----
-1900

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 86 IN ( - col1 * - col2, - 32, - + ( col1 ), col0 / + + col2 + - col1, - 6 + + + 56, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 4 + 85 * + col0 AS col1 FROM tab2 AS cor0
----
3906
5436
6371

query I rowsort
SELECT ALL - 17 - - 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT 80 + col0 FROM tab1
----
131
165
171

query I rowsort
SELECT DISTINCT + 62 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
62

query I rowsort
SELECT ALL 52 - + + col1 AS col0 FROM tab1
----
38
47
5

query III rowsort
SELECT * FROM tab2 WHERE 55 >= NULL
----

query I rowsort
SELECT DISTINCT - 69 / - - col2 * 62 FROM tab1 WHERE NOT NULL NOT IN ( + - 4, - ( - + col1 ) * - + col2 )
----

query I rowsort
SELECT DISTINCT - 75 - + col2 + ( - col0 ) + - + 97 * 68 * col1 FROM tab2 cor0
----
-336540
-442140
-508071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3697
SELECT ALL + 79 AS col0, + CAST( NULL AS SIGNED ) * - MAX( col0 ) FROM tab1 AS cor0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL + 79 AS col0, + CAST ( NULL AS INTEGER ) * - MAX ( col0 ) FROM tab1 AS cor0
----
79
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT ALL + - CAST( - col1 AS SIGNED ) + - + 13 - + col0 FROM tab1 AS cor0
----
-50
-57
-93

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + - CAST ( - col1 AS INTEGER ) + - + 13 - + col0 FROM tab1 AS cor0
----
-50
-57
-93

query I rowsort
SELECT 64 FROM tab0 AS cor0 WHERE 50 IS NULL
----

query II rowsort
SELECT + col1, + 55 + - + col0 AS col2 FROM tab2 cor0
----
51
9
67
-20
77
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col0 * + + 16 col2 FROM tab1 AS cor0
----
-59
1360
-68
1456
-96
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab2
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT - 99 DIV col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3703
SELECT - 99 / col0 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * - 17 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT col1 DIV - 31 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT col1 / - 31 AS col1 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> - col2 * col0 OR - 33 * + 63 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT - 42 AS col2 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * 6 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - 42 AS col2 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * 6 IS NULL
----

query I rowsort
SELECT + - 44 FROM tab2 AS cor0 WHERE NOT col1 * - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col1 - - col2 + + col0 * - - 5 * + - col1 FROM tab0 cor0
----
-12589
-387
-9566

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 AS cor0 WHERE NOT + 47 IS NOT NULL
----

query I rowsort
SELECT + 50 * + 52 FROM tab1 cor0
----
2600
2600
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + COUNT( * ) * 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-3713
SELECT + COUNT ( * ) * 13 FROM tab2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT ALL - 56 DIV + col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL - 56 / + col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - col2 + 84 AS col0 FROM tab1 AS cor0
----
-12
16
25

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT + + 9 + + COUNT( * ) + - - 35 * - 97 AS col0 FROM tab0 cor0
----
-3383

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + + 9 + + COUNT ( * ) + - - 35 * - 97 AS col0 FROM tab0 cor0
----
-3383

query I rowsort
SELECT - - ( + 68 ) AS col2 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - + SUM( ALL - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3719
SELECT - + SUM ( ALL - + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + col0 * - 84 AS col1 FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT col1 * - 71 FROM tab1
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL 58 + - 81 - - + 93 * - SUM( - - col1 ) FROM tab0
----
-9602

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL 58 + - 81 - - + 93 * - SUM ( - - col1 ) FROM tab0
----
-9602

onlyif mysql # DIV for integer division: 
query II rowsort label-3723
SELECT DISTINCT 68, - col0 DIV - - col1 AS col2 FROM tab1
----
68
-1
68
-17
68
-3

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT 68, - col0 / - - col1 AS col2 FROM tab1
----
68
-1
68
-17
68
-3

query I rowsort
SELECT DISTINCT + 23 * - + 41 AS col2 FROM tab1
----
-943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT col1 + + CAST( + 92 AS SIGNED ) FROM tab2
----
143
159
169

skipif mysql # not compatible
query I rowsort label-3725
SELECT col1 + + CAST ( + 92 AS INTEGER ) FROM tab2
----
143
159
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + + 13 col1 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT ALL ( - + col0 ) + + col2 - - col2 * - + col0 FROM tab0 AS cor0
----
-673
-947
-9601

query II rowsort
SELECT ALL col1 AS col0, - col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL + + 76 + MAX( ALL - col0 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL + + 76 + MAX ( ALL - col0 ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT + ( + col2 ) + + + col1 + + ( - + col2 ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
20

query I rowsort
SELECT DISTINCT - 4 * - - col1 - - - 1 FROM tab1
----
-189
-21
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT ALL 51 DIV col2 * - col2 + + - ( col0 ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 51 / col2 * - col2 + + - ( col0 ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 78 * + col1 AS col0 FROM tab2 WHERE - 2 IS NOT NULL
----
-3978
-5226
-6006

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( 52 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT DISTINCT + CAST( 80 AS SIGNED ) FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + CAST ( 80 AS INTEGER ) FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col0 * + + 68 AS col2, 13 FROM tab0 AS cor0
----
1020
13
5916
13
6596
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + 78 * + - MIN( - 31 ) AS col1 FROM tab1 cor0
----
2418

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 78 * + - MIN ( - 31 ) AS col1 FROM tab1 cor0
----
2418

query I rowsort
SELECT col2 * + 19 * + 73 FROM tab2 cor0
----
31901
55480
80446

query II rowsort
SELECT col0 AS col1, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 39 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3742
SELECT col2, + col1 + + CAST( - 63 AS SIGNED ) + + 72 FROM tab1
----
59
14
68
56
96
23

skipif mysql # not compatible
query II rowsort label-3742
SELECT col2, + col1 + + CAST ( - 63 AS INTEGER ) + + 72 FROM tab1
----
59
14
68
56
96
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT + - CAST( NULL AS SIGNED ) + + + col1 + + col2 * col2 * 82 col1 FROM tab2 WHERE NOT - ( - col1 ) * + col1 + + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3743
SELECT + - CAST ( NULL AS INTEGER ) + + + col1 + + col2 * col2 * 82 col1 FROM tab2 WHERE NOT - ( - col1 ) * + col1 + + col2 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 43, 20 AS col1 FROM tab0
----
43
20
43
20
43
20

query I rowsort
SELECT ALL - col0 - + + col2 FROM tab2 cor0 WHERE + 81 * - col1 IS NULL
----

query II rowsort
SELECT + col2 AS col2, 68 FROM tab2 AS cor0
----
23
68
40
68
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT - + MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT - + MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - MAX( ALL + col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT - MAX ( ALL + col1 ) col0 FROM tab1
----
-47

query I rowsort
SELECT 31 FROM tab2 WHERE NULL IS NULL
----
31
31
31

query III rowsort
SELECT * FROM tab2 WHERE NOT 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col2 + col2 * 25 <> ( col1 * + col0 )
----

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col2 + col2 * 25 <> ( col1 * + col0 )
----

query I rowsort
SELECT + col2 * col1 + + 95 AS col0 FROM tab0
----
194
305
3902

query I rowsort
SELECT ALL col2 * - 63 AS col2 FROM tab2 WHERE NOT ( - col0 ) >= col1
----
-1449
-2520
-3654

query I rowsort
SELECT - ( + col0 ) * - col0 AS col2 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + 11 + col2 AS col0 FROM tab0
----
110
21
58

query I rowsort
SELECT ALL + 10 * col0 + col2 FROM tab1
----
606
909
978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3758
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 52 + CAST( COUNT( * ) AS DECIMAL ) FROM tab0 WHERE ( - 0 + - 36 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 52 + CAST ( COUNT ( * ) AS REAL ) FROM tab0 WHERE ( - 0 + - 36 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT - 99 + COUNT( * ) AS col2 FROM tab0 WHERE + 11 BETWEEN ( NULL ) AND + col2
----
-99

skipif mysql # not compatible
query I rowsort label-3759
SELECT - 99 + COUNT ( * ) AS col2 FROM tab0 WHERE + 11 BETWEEN ( NULL ) AND + col2
----
-99

query I rowsort
SELECT DISTINCT 81 * col0 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col2 * ( + 48 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT DISTINCT + 41 DIV + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + 41 / + COUNT ( * ) FROM tab1
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) NOT IN ( col1 * 85 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( + ( - CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col0 * + 81 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT - col0 - + col2 DIV + col2 AS col1 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-3766
SELECT - col0 - + col2 / + col2 AS col1 FROM tab0
----
-16
-88
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT + col2 NOT IN ( col2 * + 64 )
----

query I rowsort
SELECT 38 - 19 AS col2 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT + COUNT( * ) + 64 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3770
SELECT + COUNT ( * ) + 64 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
3

query I rowsort
SELECT - 19 + + col0 AS col2 FROM tab0 cor0 WHERE + ( - col1 ) NOT BETWEEN ( 60 - - col1 ) AND NULL
----
-4
68
78

query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 53 * col1 col0 FROM tab1 AS cor0
----
-180
-2400
-691

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT COUNT( * ) + 23 AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) + 23 AS col2 FROM tab1 AS cor0
----
26

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN 85 - - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT - col0 + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT - col0 + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL + COUNT( ALL - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + COUNT ( ALL - col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3779
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST( col1 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3779
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - CAST ( col1 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 21 * - col2 AS col1 FROM tab1 AS cor0
----
-1239
-1428
-2016

query I rowsort
SELECT 73 * + 17 FROM tab1 AS cor0
----
1241
1241
1241

query I rowsort
SELECT ALL - col0 * - 48 AS col2 FROM tab0 AS cor0 WHERE NULL > ( 63 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 99 + 49 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT 88 * MAX( + 47 * col0 ) FROM tab1 AS cor0
----
376376

skipif mysql # not compatible
query I rowsort label-3784
SELECT 88 * MAX ( + 47 * col0 ) FROM tab1 AS cor0
----
376376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 * col0 col2 FROM tab1 WHERE NOT - col0 NOT IN ( - ( + col0 ) / - 61 )
----

query I rowsort
SELECT DISTINCT - col2 * - col0 * + 63 FROM tab1
----
308448
315945
389844

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT SUM( ALL + col0 ) * + 55 FROM tab1
----
12485

skipif mysql # not compatible
query I rowsort label-3787
SELECT SUM ( ALL + col0 ) * + 55 FROM tab1
----
12485

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT col0 + - 19 * + 13 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ALL - 56 DIV + 60 * col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - 56 / + 60 * col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 38 * + + col1 FROM tab0
----
3078
38
798

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 3 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT + CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT + CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT - col1 DIV + 72 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - col1 / + 72 AS col2 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL - MAX( - - 40 ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - MAX ( - - 40 ) AS col0 FROM tab2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT ALL CAST( NULL AS SIGNED ) * 31 - 73 * - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL CAST ( NULL AS INTEGER ) * 31 - 73 * - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 33 * - 20 - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 / col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + - col1 / + col0 IN ( col2 * - col1 + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + SUM( DISTINCT col2 ) + + MAX( 14 ) col0 FROM tab1 cor0
----
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT ALL + SUM ( DISTINCT col2 ) + + MAX ( 14 ) col0 FROM tab1 cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT ( + col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 64 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3801
SELECT ( + col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3802
SELECT ALL * FROM tab2 WHERE NOT ( col0 * CAST( NULL AS SIGNED ) ) <> + 49 * + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3802
SELECT ALL * FROM tab2 WHERE NOT ( col0 * CAST ( NULL AS INTEGER ) ) <> + 49 * + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT - MAX( ALL 17 ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

skipif mysql # not compatible
query I rowsort label-3803
SELECT - MAX ( ALL 17 ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-153

query II rowsort
SELECT - col2, col2 * + col0 AS col0 FROM tab2
----
-23
1058
-40
2560
-58
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3805
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE col1 + 80 + col2 * 8 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3805
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE col1 + 80 + col2 * 8 IS NULL
----

query I rowsort
SELECT DISTINCT + 49 * - col0 + + col0 FROM tab0 AS cor0
----
-4176
-4656
-720

query II rowsort
SELECT + 69, 85 AS col2 FROM tab0 AS cor0
----
69
85
69
85
69
85

query I rowsort
SELECT ALL + 1 + col2 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
100
211
3808

query I rowsort
SELECT + col1 - + + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT - + 68 + - MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - + 68 + - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 49 + 82 col2 FROM tab0 AS cor0
----
-4181
-4671
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL - COUNT( * ) + COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3812
SELECT ALL - COUNT ( * ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 78 + + ( + - 68 ) FROM tab1
----
-146
-146
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL ( + 68 ) + COUNT( * ) + + 83 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL ( + 68 ) + COUNT ( * ) + + 83 FROM tab1
----
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + + + 87 * + col1 col1 FROM tab0
----
153
1893
7113

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND 80 - col1
----

query I rowsort
SELECT DISTINCT 83 * - - 6 AS col2 FROM tab2
----
498

query I rowsort
SELECT + ( ( - + col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 43 + + 26 ) < 94 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 50 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + col0 * col1 / - - col2 ) AND NULL
----

query I rowsort
SELECT ALL 38 * - - col0 FROM tab0 AS cor0
----
3306
3686
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3822
SELECT DISTINCT 51 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 51 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT + col1 * + 18 + - 2 * - col2 * - - col2 FROM tab2 AS cor0
----
1976
4586
7934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT ALL COUNT( * ) + 97 col2 FROM tab2 AS cor0 WHERE ( col1 ) * + ( - 75 ) * CAST( - col2 + - col2 AS SIGNED ) + - 81 <= + col1 / + col1 + col0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT ALL COUNT ( * ) + 97 col2 FROM tab2 AS cor0 WHERE ( col1 ) * + ( - 75 ) * CAST ( - col2 + - col2 AS INTEGER ) + - 81 <= + col1 / + col1 + col0
----
97

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + - 0 + + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 88 col0 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) NOT BETWEEN ( + col1 ) AND col1
----

skipif mysql # not compatible
query III rowsort label-3827
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) NOT BETWEEN ( + col1 ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col1 FROM tab1 cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - - col0 / + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 * - + col2 col1 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT ALL - - 83 * + + col0 FROM tab1 AS cor0
----
4233
7055
7553

query II rowsort
SELECT ALL + col0, + col1 AS col2 FROM tab0 cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL ( + ( + ( - - col2 ) ) ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT MAX( col2 ) AS col0 FROM tab2 WHERE NOT ( NOT + col1 IN ( + + ( + CAST( NULL AS SIGNED ) ) / 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT MAX ( col2 ) AS col0 FROM tab2 WHERE NOT ( NOT + col1 IN ( + + ( + CAST ( NULL AS INTEGER ) ) / 28 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3835
SELECT * FROM tab2 WHERE NOT - - col1 < - 34 + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3835
SELECT * FROM tab2 WHERE NOT - - col1 < - 34 + - CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + 6 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT DISTINCT + + col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + + col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 * - - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + 24 + - + ( - COUNT( * ) ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3841
SELECT + 24 + - + ( - COUNT ( * ) ) AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT COUNT( * ) col1 FROM tab0 AS cor0 WHERE ( NULL < NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3842
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( NULL < NULL )
----
0

query I rowsort
SELECT + col2 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE 52 * + col2 BETWEEN + - col1 AND - + col2 * ( - col2 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT + col1 FROM tab1 AS cor0 WHERE col0 + - col1 + - col2 * CAST( - col2 AS SIGNED ) * + col2 NOT BETWEEN NULL AND - 52 + - col1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3845
SELECT + col1 FROM tab1 AS cor0 WHERE col0 + - col1 + - col2 * CAST ( - col2 AS INTEGER ) * + col2 NOT BETWEEN NULL AND - 52 + - col1
----
14
47
5

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - 70 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - - 25 + + col1 AS col0, - 58 FROM tab0 AS cor0
----
106
-58
26
-58
46
-58

query I rowsort
SELECT ALL ( col2 ) + col0 - - + 9 AS col1 FROM tab2 AS cor0
----
113
142
78

query I rowsort
SELECT ALL col1 * + + col2 * + + 56 + 3 AS col1 FROM tab0 cor0
----
11763
213195
5547

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3850
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 11 + CAST( - - 75 AS SIGNED ) * - col1 * - - col2 / - - col2 AND ( 58 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-3850
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 11 + CAST ( - - 75 AS INTEGER ) * - col1 * - - col2 / - - col2 AND ( 58 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT + COUNT( + 29 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3851
SELECT + COUNT ( + 29 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 * + - col0 * + col0 + - col1 FROM tab1
----
-249710
-426280
-563155

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE ( col2 ) IN ( 98 * - 4 ) OR ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE ( col2 ) IN ( 98 * - 4 ) OR ( - col0 ) IS NULL
----
0

query I rowsort
SELECT ALL col2 - + - col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3855
SELECT col2 - CAST( NULL AS DECIMAL ) / + ( + + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT col2 - CAST ( NULL AS REAL ) / + ( + + col0 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + 49 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 49 - col0 AS col1 FROM tab2
----
-15
-26
3

query I rowsort
SELECT DISTINCT + 26 * + 90 AS col1 FROM tab2 cor0
----
2340

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 / + + 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 * - 81 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT COUNT( * ) DIV - 40 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( * ) / - 40 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 + ( - col0 ) * + col0 ) NOT IN ( - col2 - + 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 4 ) = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 47 + ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( 74 ) * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT + CAST( - + 59 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + CAST ( - + 59 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT - - col0 * CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - - col0 * CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + MAX( + - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3870
SELECT + MAX ( + - col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT col1 DIV + - col2 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT col1 / + - col2 AS col0 FROM tab0
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 17 + + - col2 NOT IN ( col2 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3873
SELECT DISTINCT COUNT( * ) / - AVG ( + col0 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT COUNT ( * ) / - AVG ( + col0 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT + CAST( + col1 AS SIGNED ) * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1122
3003
3819

skipif mysql # not compatible
query I rowsort label-3874
SELECT + CAST ( + col1 AS INTEGER ) * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT DISTINCT - + 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE 76 + - - col0 + - col0 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3877
SELECT 84 AS col2, ( 70 ) * - + COUNT( * ) + + CAST( NULL AS SIGNED ) + 19 + ( COUNT( * ) ) AS col0 FROM tab0 cor0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3877
SELECT 84 AS col2, ( 70 ) * - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 19 + ( COUNT ( * ) ) AS col0 FROM tab0 cor0
----
84
NULL

query I rowsort
SELECT col2 - + 73 AS col0 FROM tab1 AS cor0
----
-14
-5
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 * + 76 col0 FROM tab0 AS cor0
----
912
912
912

query II rowsort
SELECT + col1 - - 93 AS col1, - col2 FROM tab0 AS cor0
----
114
-10
174
-47
94
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 + - col2 col0 FROM tab0 AS cor0
----
-105
-142
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col1 FROM tab2 AS cor0
----
-5
-5
-5

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT 59 + - - 87 * + + col1 AS col1 FROM tab0
----
146
1886
7106

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab2 WHERE - - col0 IS NOT NULL
----
55

query I rowsort
SELECT DISTINCT + col1 - + col2 - + col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3888
SELECT ALL + 3 * - CAST( NULL AS DECIMAL ) / ( - col1 ) + + ( col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + 3 * - CAST ( NULL AS REAL ) / ( - col1 ) + + ( col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - col2 - + col2 FROM tab0
----
-13
-197
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - COUNT( - 44 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COUNT ( - 44 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 57 * 71 = NULL
----

query II rowsort
SELECT 40 AS col0, + col1 AS col1 FROM tab2
----
40
51
40
67
40
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col1 + col2 + - - 35 / - col0 * 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT SUM( ALL + col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3894
SELECT DISTINCT SUM ( ALL + col0 ) col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT - - MAX( - 40 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - - MAX ( - 40 ) FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - COUNT( 54 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - COUNT ( 54 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 + - 35 FROM tab1 AS cor0
----
24
33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 63 FROM tab2 AS cor0
----
46
-63
64
-63
75
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3899
SELECT CAST( NULL AS DECIMAL ) + - - 18 + + col0 - - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT CAST ( NULL AS REAL ) + - - 18 + + col0 - - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - ( - col1 ) FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 15 <> NULL
----

query I rowsort
SELECT + 53 FROM tab0 WHERE NULL IS NULL
----
53
53
53

query I rowsort
SELECT DISTINCT - col1 * - - ( + ( col2 ) ) AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL - 52 + - + COUNT( + 36 ) + - + 90 * + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3904
SELECT ALL - 52 + - + COUNT ( + 36 ) + - + 90 * + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * - col0 * + 19 AS col0 FROM tab1 AS cor0
----
137275
157339
49419

query I rowsort
SELECT ALL + - col2 + - ( - - 27 ) FROM tab0 AS cor0
----
-126
-37
-74

query I rowsort
SELECT + 69 + + col1 * col2 * - col1 AS col0 FROM tab1
----
-1406
-150143
-18747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + + - 8 - col0 * + ( col0 ) col2 FROM tab0
----
-315
-7659
-9499

query I rowsort
SELECT col0 * + 54 + - col2 + - 55 - + col2 AS col0 FROM tab1
----
2507
4417
4723

query I rowsort
SELECT + col0 * - col0 * - col0 + + - col1 FROM tab0
----
3294
658482
912672

query I rowsort
SELECT ALL col0 - - + col1 + + - col0 AS col0 FROM tab0 WHERE + col0 + + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 40 ) AS col0 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT - + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + ( - 20 ), col0 + + 42 )
----

query I rowsort
SELECT - 80 FROM tab2 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3916
SELECT ALL 36 + - col1 * col1 * + 88 col1, col2 * - - col2 / - CAST( NULL AS DECIMAL ) FROM tab1
----
-17212
NULL
-194356
NULL
-2164
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3916
SELECT ALL 36 + - col1 * col1 * + 88 col1, col2 * - - col2 / - CAST ( NULL AS REAL ) FROM tab1
----
-17212
NULL
-194356
NULL
-2164
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col2 - - col0 AS col1 FROM tab0
----
-15
62
-87
97
-97
196

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + 42 ) NOT BETWEEN NULL AND - col0
----
87
21
10
97
1
99

query II rowsort
SELECT ( + 84 ), + col1 FROM tab2
----
84
51
84
67
84
77

query II rowsort
SELECT 22, - 45 AS col2 FROM tab0
----
22
-45
22
-45
22
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT ALL COUNT( DISTINCT + + col2 ) DIV - 73 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL COUNT ( DISTINCT + + col2 ) / - 73 FROM tab2
----
0

query II rowsort
SELECT col1, + 29 - + col1 AS col0 FROM tab2
----
51
-22
67
-38
77
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT - - ( + + ( + - MAX( - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT - - ( + + ( + - MAX ( - col2 ) ) ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - - ( MIN( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3924
SELECT - - ( MIN ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3925
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1, - 39 FROM tab0 AS cor0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-3925
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, - 39 FROM tab0 AS cor0
----
NULL
-39

query I rowsort
SELECT DISTINCT - 61 - ( - + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 71 IN ( - col0 ) )
----

query I rowsort
SELECT - - ( - 13 ) FROM tab1 AS cor0
----
-13
-13
-13

query II rowsort
SELECT 43 * + col1 AS col1, 1 AS col2 FROM tab2
----
2193
1
2881
1
3311
1

query I rowsort
SELECT ALL + col0 + - 55 AS col1 FROM tab0 WHERE NOT - col1 <= NULL
----

query II rowsort
SELECT - - 2, col0 + + col2 FROM tab0 WHERE NOT + + 62 - - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + + col0 * - + col0 + 30 + + col1, - col0 * col0 FROM tab2 AS cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col0 + - col1 + - 74 * col2 FROM tab2 AS cor0
----
-1748
-3024
-4367

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3934
SELECT ALL * FROM tab0 cor0 WHERE - col2 + ( CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3934
SELECT ALL * FROM tab0 cor0 WHERE - col2 + ( CAST ( NULL AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT - 42 AS col0 FROM tab2 WHERE NULL IN ( + col2, 59 )
----

query I rowsort
SELECT ALL - col0 + - col2 * + + col0 + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( + - 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT DISTINCT - COUNT( * ), + 92 + + 86 + - - 97 AS col1 FROM tab2 AS cor0
----
-3
275

skipif mysql # not compatible
query II rowsort label-3938
SELECT DISTINCT - COUNT ( * ), + 92 + + 86 + - - 97 AS col1 FROM tab2 AS cor0
----
-3
275

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT - 41 DIV - ( + + ( + 46 ) ) + ( - col1 ) + + 76 + + - col2 FROM tab1 AS cor0
----
-34
-39
12

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 41 / - ( + + ( + 46 ) ) + ( - col1 ) + + 76 + + - col2 FROM tab1 AS cor0
----
-34
-39
12

query I rowsort
SELECT + col1 + + 2 AS col0 FROM tab2 AS cor0
----
53
69
79

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN 55 + + col0 AND col2
----
-14
-47
-5

query I rowsort
SELECT + 6 + + + col2 FROM tab2 cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT - COUNT( * ) + + ( + ( 65 ) ) AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3943
SELECT - COUNT ( * ) + + ( + ( 65 ) ) AS col1 FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT DISTINCT - CAST( - 81 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( col2 * col0 + + + 72 * col0 ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT - CAST ( - 81 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( col2 * col0 + + + 72 * col0 ) IS NULL
----
81

query I rowsort
SELECT DISTINCT + + 12 + col0 - + ( + 50 ) * + col2 FROM tab2 AS cor0
----
-1092
-1924
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - - 54 * SUM( col1 ) FROM tab2 AS cor0
----
10530

skipif mysql # not compatible
query I rowsort label-3946
SELECT - - 54 * SUM ( col1 ) FROM tab2 AS cor0
----
10530

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT ALL - - col0 DIV - col1 + - col2 - + col1 * + - col0 - + col1 - + 64 DIV col0 FROM tab1 AS cor0
----
344
4161
600

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - - col0 / - col1 + - col2 - + col1 * + - col0 - + col1 - + 64 / col0 FROM tab1 AS cor0
----
344
4161
600

query I rowsort
SELECT DISTINCT - 87 - col0 + - col0 AS col1 FROM tab2
----
-179
-215
-237

query I rowsort
SELECT col1 - - - 1 FROM tab1
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT MAX( + - col2 ) - + 64 AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3950
SELECT MAX ( + - col2 ) - + 64 AS col2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT + col1 - col1 * col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT ALL - col2 - ( - + 27 ) FROM tab2 AS cor0
----
-13
-31
4

query I rowsort
SELECT DISTINCT - + 52 AS col1 FROM tab2 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT 85 DIV - - 79 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3954
SELECT 85 / - - 79 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3955
SELECT + col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 13 * + col2 AS col1 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - COUNT( * ) * + 90 AS col2 FROM tab2 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-3957
SELECT - COUNT ( * ) * + 90 AS col2 FROM tab2 cor0
----
-270

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL 80 * COUNT( * ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL 80 * COUNT ( * ) FROM tab2
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-3961
SELECT ALL + col1 DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + col1 / + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3962
SELECT ALL - 97 DIV + COUNT( * ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - 97 / + COUNT ( * ) FROM tab0
----
-32

query II rowsort
SELECT ALL col2 * ( + + 98 ), - col1 AS col2 FROM tab1
----
5782
-5
6664
-47
9408
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 BETWEEN NULL AND + 35 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT MAX( DISTINCT col2 ) + - SUM( ALL - + col2 ) AS col0 FROM tab1 WHERE - 39 * 25 - - 93 IS NOT NULL
----
319

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT MAX ( DISTINCT col2 ) + - SUM ( ALL - + col2 ) AS col0 FROM tab1 WHERE - 39 * 25 - - 93 IS NOT NULL
----
319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT ( + CAST( SUM( DISTINCT col2 ) AS SIGNED ) ) col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT ( + CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) ) col2 FROM tab0 cor0
----
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 FROM tab1 AS cor0
----
-182
-20
-2162

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * + 70 IS NOT NULL )
----

query II rowsort
SELECT ALL 19 AS col0, col0 AS col0 FROM tab0
----
19
15
19
87
19
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT COUNT( * ) DIV + + 11 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT COUNT ( * ) / + + 11 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + COUNT( - 78 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3973
SELECT + COUNT ( - 78 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( col0 ) col0, 26 col2 FROM tab2 AS cor0
----
-46
26
-64
26
-75
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT MIN( DISTINCT - - col0 ) + - COUNT( * ) + ( + 34 ) AS col0 FROM tab1 cor0
----
82

skipif mysql # not compatible
query I rowsort label-3975
SELECT MIN ( DISTINCT - - col0 ) + - COUNT ( * ) + ( + 34 ) AS col0 FROM tab1 cor0
----
82

query I rowsort
SELECT + col2 + - 39 FROM tab1 AS cor0
----
20
29
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 * - col2 + + 19 * 0 * - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3979
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 24 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3979
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 24 IN ( CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + 69 * - ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT DISTINCT - col1 + - - col0 DIV + ( - - col2 ) AS col0 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT - col1 + - - col0 / + ( - - col2 ) AS col0 FROM tab0
----
-1
-13
-81

query II rowsort
SELECT - ( - 24 ), - col0 AS col1 FROM tab1
----
24
-51
24
-85
24
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + 21 * - col0 FROM tab1 cor0
----
-1071
-1785
-1911

query I rowsort
SELECT - - col1 - - col2 * + 99 * + 11 * + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
-111513523
-26499675
-274754633

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 97 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-102464
-24380
-252375

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + ( + SUM( ( - col0 ) ) ) AS col2 FROM tab1 AS cor0 WHERE + 40 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + ( + SUM ( ( - col0 ) ) ) AS col2 FROM tab1 AS cor0 WHERE + 40 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 24 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + - col1 col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab2 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-3991
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 11 FROM tab1 cor0 WHERE - 52 IN ( col0, + 53, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + 46
----

query I rowsort
SELECT DISTINCT + 96 * 91 FROM tab1 AS cor0
----
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL + MAX( DISTINCT 25 ) * - + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL + MAX ( DISTINCT 25 ) * - + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 2 + col1 AND + + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL MIN( - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL MIN ( - col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT - - 38 DIV - col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT - - 38 / - col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col0 * 87 * col0 AS col2 FROM tab1
----
226287
628575
720447

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 11 / ( + 57 ) NOT IN ( + col1, + col1 )
----

query I rowsort
SELECT DISTINCT 29 * + - ( - + 36 ) * - col2 FROM tab0
----
-103356
-10440
-49068

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT - col2 DIV - 30 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4003
SELECT - col2 / - 30 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT - col1 * + col1 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT - col1 * + col1 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * 33 col1, + col0 FROM tab0
----
2673
15
33
97
693
87

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT - 48 + - - col1 + + col2 * col2 DIV - + col2 col2 FROM tab1
----
-102
-130
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4007
SELECT - 48 + - - col1 + + col2 * col2 / - + col2 col2 FROM tab1
----
-102
-130
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 + + - col1 col1 FROM tab1
----
38
47
5

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + col2 + + 78 NOT BETWEEN + 58 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT COUNT( + 10 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4010
SELECT COUNT ( + 10 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ( - 78 ) AS col2 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - 30 * + + 90 FROM tab2 AS cor0
----
-2700
-2700
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE - 29 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE - 29 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 85 col1 FROM tab0 AS cor0
----
-38
-75
14

query I rowsort
SELECT + col2 + + 52 AS col0 FROM tab0 AS cor0
----
151
62
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 37 + - col1 ) IS NULL
----

query I rowsort
SELECT 42 * - col1 + + col0 + + col1 FROM tab0
----
-3306
-774
56

query I rowsort
SELECT + col1 * - 28 + 80 FROM tab2
----
-1348
-1796
-2076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT col1 / - - col1 + col1 + + - col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT col1 / - - col1 + col1 + + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 62 + + + 21 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ALL - 21 + - col2 FROM tab0
----
-120
-31
-68

query I rowsort
SELECT col2 FROM tab0 WHERE - col2 <> NULL
----

query I rowsort
SELECT ( - ( + + col2 ) ) + - - col0 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT col0 + ( + 76 ) * - col1 + - col1 FROM tab2 AS cor0
----
-3881
-5084
-5865

query I rowsort
SELECT + + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL - + col2 * - col1 + + + 31 + col2 AS col2 FROM tab2 AS cor0
----
1227
3151
3975

query I rowsort
SELECT + 62 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT COUNT( * ) * - 69 AS col0 FROM tab2 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-4028
SELECT COUNT ( * ) * - 69 AS col0 FROM tab2 cor0
----
-207

query I rowsort
SELECT ALL - col0 * + + 27 AS col2 FROM tab1 AS cor0
----
-1377
-2295
-2457

query I rowsort
SELECT col2 * + ( + - col2 ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - - col1 * + + 26 * col2 FROM tab2 AS cor0
----
101036
30498
80080

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT COUNT( + + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT COUNT ( + + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL 6 * - - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL 6 * - - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * 79 + + col2 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 <> + - col1 + + col0
----

query II rowsort
SELECT col0, + 91 AS col2 FROM tab2
----
46
91
64
91
75
91

query II rowsort
SELECT DISTINCT 58, - col0 AS col1 FROM tab1
----
58
-51
58
-85
58
-91

query II rowsort
SELECT 19, col2 AS col1 FROM tab0 cor0
----
19
10
19
47
19
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT - 46, MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-46
-81

skipif mysql # not compatible
query II rowsort label-4040
SELECT - 46, MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-46
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-4041
SELECT + 89, + 22 DIV - 9 AS col2 FROM tab2 AS cor0
----
89
-2
89
-2
89
-2

skipif mysql # not compatible
query II rowsort label-4041
SELECT + 89, + 22 / - 9 AS col2 FROM tab2 AS cor0
----
89
-2
89
-2
89
-2

query I rowsort
SELECT - 67 * - col1 AS col1 FROM tab1 cor0
----
3149
335
938

query I rowsort
SELECT ALL + - 11 + col0 - + - 2 AS col2 FROM tab1 AS cor0
----
42
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL COUNT( DISTINCT col2 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4044
SELECT ALL COUNT ( DISTINCT col2 ) col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT SUM( DISTINCT - - 85 ) + - COUNT( * ) + + 72 AS col1 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-4046
SELECT SUM ( DISTINCT - - 85 ) + - COUNT ( * ) + + 72 AS col1 FROM tab1
----
154

query II rowsort
SELECT 43 + + col1 AS col1, col2 AS col1 FROM tab1
----
48
59
57
96
90
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + MIN( ALL + col0 ) + COUNT( + 55 ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4048
SELECT + MIN ( ALL + col0 ) + COUNT ( + 55 ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT 4 * + 30 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT 4 * + 30 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + + ( + 78 ) + - - COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4050
SELECT + + ( + 78 ) + - - COUNT ( * ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= col0
----

query I rowsort
SELECT DISTINCT - - 65 * + col1 * 38 AS col0 FROM tab1 cor0
----
116090
12350
34580

query I rowsort
SELECT ALL - col1 + - - 74 * col1 AS col1 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4054
SELECT ALL - 11 DIV + 89 + + CAST( + - 79 AS SIGNED ) FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - 11 / + 89 + + CAST ( + - 79 AS INTEGER ) FROM tab0 AS cor0
----
-79
-79
-79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 11 IS NULL
----

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND - + col1
----

query I rowsort
SELECT ALL - col0 - - + col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 80 - - 71 * col2 FROM tab1
----
4269
4908
6896

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT ALL col1 DIV + ( col1 ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL col1 / + ( col1 ) AS col2 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + COUNT( * ) * 7 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4060
SELECT + COUNT ( * ) * 7 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT DISTINCT 63 DIV + col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT 63 / + col0 FROM tab0
----
0
4

query I rowsort
SELECT col0 - - - col0 + - col1 * 97 * - col0 FROM tab2
----
227562
478016
487425

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT 89 - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4063
SELECT 89 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT DISTINCT col0 + - - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT ALL + + col1 * + - col2 + col0 + + + ( - + 10 ) + col2 DIV + - col1 FROM tab1 AS cor0
----
-1309
-231
-3116

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + + col1 * + - col2 + col0 + + + ( - + 10 ) + col2 / + - col1 FROM tab1 AS cor0
----
-1309
-231
-3116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL - 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT + 92 * 34 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT SUM( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT SUM ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - + 96 AS col2 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT - MAX( - col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - MAX ( - col1 ) AS col2 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL 77 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT ALL 82, + col0 + - col0 AS col0 FROM tab1 AS cor0
----
82
0
82
0
82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT + MAX( ALL ( 55 ) ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + MAX ( ALL ( 55 ) ) AS col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT 13 * + col1 * col0 * 56 + col1 FROM tab1 AS cor0
----
309405
3113703
519806

query II rowsort
SELECT ALL - 2 AS col0, + col0 + 10 + col1 + - - 17 * - 63 FROM tab0 AS cor0
----
-2
-953
-2
-963
-2
-965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT CAST( + 0 AS SIGNED ) * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT CAST ( + 0 AS INTEGER ) * col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 * - 29 col1, + 6 AS col1 FROM tab1
----
-2291
6
-2291
6
-2291
6

query I rowsort
SELECT + + 83 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
83
83
83

query II rowsort
SELECT ALL + col1 * col0, + 36 AS col0 FROM tab2
----
2346
36
4928
36
5025
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT col1 + ( col2 ) - col1 - - - 33 DIV + col2 AS col1 FROM tab0 AS cor0
----
47
7
99

skipif mysql # not compatible
query I rowsort label-4081
SELECT col1 + ( col2 ) - col1 - - - 33 / + col2 AS col1 FROM tab0 AS cor0
----
47
7
99

query I rowsort
SELECT ALL - col1 + - 90 FROM tab2 AS cor0
----
-141
-157
-167

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + 21
----

query III rowsort
SELECT * FROM tab1 WHERE 78 < 2
----

query I rowsort
SELECT - col1 FROM tab2 WHERE ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT - SUM( DISTINCT 67 ) AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - SUM ( DISTINCT 67 ) AS col0 FROM tab2 AS cor0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT - - col0 * - + ( + CAST( NULL AS SIGNED ) ) + col1 + col0 * - + 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT - - col0 * - + ( + CAST ( NULL AS INTEGER ) ) + col1 + col0 * - + 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT - COUNT( * ) * + 99 * 34 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT - COUNT ( * ) * + 99 * 34 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT 86 + + - col2 DIV 24 * - + CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
133
482
86

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT 86 + + - col2 / 24 * - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
133
482
86

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3422
-4556
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 - 18 col0 FROM tab2 cor0
----
38
38
38

query I rowsort
SELECT - - ( - - col0 ) - + - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + - COUNT( * ) + + 7 AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4093
SELECT + - COUNT ( * ) + + 7 AS col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL 60 + - 73 * col0 AS col1 FROM tab1
----
-3663
-6145
-6583

query III rowsort
SELECT * FROM tab2 WHERE col0 < + - col0
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT - 47 - + + col0 FROM tab0
----
-134
-144
-62

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - 56 - + COUNT( * ) AS col2 FROM tab0
----
-507

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - 56 - + COUNT ( * ) AS col2 FROM tab0
----
-507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + 20 - col2, col2 * + - col1 + + col0 col2, col0 FROM tab1
----
9 values hashing to 8abc377e5f4ce841055a601712c82bf3

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4101
SELECT col2 DIV - col2 AS col1 FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4101
SELECT col2 / - col2 AS col1 FROM tab0 WHERE + - CAST ( NULL AS REAL ) IS NULL
----
-1
-1
-1

query I rowsort
SELECT ALL + - col1 * - col0 + - - 1 FROM tab0 AS cor0
----
1216
1828
98

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col2 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT + COUNT( - + 90 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT + COUNT ( - + 90 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL + + col2, col1 - 60, col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to d6e2c83bfc30f794a6df4c018c2c2c5c

query II rowsort
SELECT DISTINCT - col1 AS col1, - col2 - + col0 AS col1 FROM tab2 AS cor0
----
-51
-69
-67
-133
-77
-104

query I rowsort
SELECT col0 + 8 FROM tab1 cor0
----
59
93
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 - - col1 - + ( - + ( - ( + + col1 ) ) ) / + col2 + - + col1 / + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 - - col1 - + ( - + ( - ( + + col1 ) ) ) / + col2 + - + col1 / + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT ALL COUNT( * ) DIV + 33 + 4 AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL COUNT ( * ) / + 33 + 4 AS col2 FROM tab1
----
4

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL MAX( ALL + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL MAX ( ALL + col1 ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT - SUM( ALL 88 ) AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-4113
SELECT - SUM ( ALL 88 ) AS col1 FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - SUM( ALL - 67 ) AS col1 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4114
SELECT - SUM ( ALL - 67 ) AS col1 FROM tab2 AS cor0
----
201

query I rowsort
SELECT col1 + col1 * + col1 * col1 AS col0 FROM tab0
----
2
531522
9282

query I rowsort
SELECT DISTINCT + + col0 + 40 FROM tab2 AS cor0
----
104
115
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = col2
----

query II rowsort
SELECT ALL - col2 AS col0, col1 + - + 35 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
16
-40
42
-58
32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 25 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 57 + ( + + col1 ) FROM tab1 AS cor0
----
104
62
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT - COUNT( * ) AS col2, 62 + 57 FROM tab0 AS cor0 WHERE ( NOT 1 IS NULL )
----
-3
119

skipif mysql # not compatible
query II rowsort label-4121
SELECT - COUNT ( * ) AS col2, 62 + 57 FROM tab0 AS cor0 WHERE ( NOT 1 IS NULL )
----
-3
119

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL > col1 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL - SUM( DISTINCT + - col0 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - SUM ( DISTINCT + - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 55 * col1 + col2 + 47 AS col0 FROM tab0 AS cor0
----
1212
201
4549

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT ( NULL ) < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT MIN( - - col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4126
SELECT MIN ( - - col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT col0 * - col1 - 44 FROM tab0
----
-1259
-141
-1871

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT 70 - - + col0 - 37 - + col1 DIV - col2 AS col2 FROM tab2
----
109
81
98

skipif mysql # not compatible
query I rowsort label-4128
SELECT 70 - - + col0 - 37 - + col1 / - col2 AS col2 FROM tab2
----
109
81
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NULL NOT IN ( + col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + COUNT( * ) * - 47 - - 83 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4130
SELECT + COUNT ( * ) * - 47 - - 83 FROM tab0
----
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 5, + col2 AS col2 FROM tab0
----
5
10
5
47
5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT - MIN( + + col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4133
SELECT - MIN ( + + col1 ) col2 FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 99 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col2 + + - col2
----

query II rowsort
SELECT ALL col1, 21 AS col1 FROM tab2 AS cor0 WHERE col1 + 83 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 22 * ( + col1 ) = - col0 * + + col2
----

query I rowsort
SELECT DISTINCT - - 46 AS col0 FROM tab2 cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT - + CAST( + col2 AS SIGNED ) * - - ( - 73 ) FROM tab0 AS cor0
----
3431
7227
730

skipif mysql # not compatible
query I rowsort label-4139
SELECT - + CAST ( + col2 AS INTEGER ) * - - ( - 73 ) FROM tab0 AS cor0
----
3431
7227
730

query I rowsort
SELECT - col0 * - - 82 AS col1 FROM tab2 AS cor0
----
-3772
-5248
-6150

query I rowsort
SELECT DISTINCT 43 + 50 AS col1 FROM tab2
----
93

query I rowsort
SELECT ALL + ( 25 ) FROM tab0
----
25
25
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4143
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) / - COUNT( * ) * + + COUNT( - 36 ) + - COUNT( - CAST( col1 AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL ( + CAST ( NULL AS REAL ) ) / - COUNT ( * ) * + + COUNT ( - 36 ) + - COUNT ( - CAST ( col1 AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT MIN( ALL 17 ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-4144
SELECT MIN ( ALL 17 ) AS col2 FROM tab0
----
17

query II rowsort
SELECT ALL - col0 AS col1, 38 FROM tab2
----
-46
38
-64
38
-75
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 * - 64
----

query I rowsort
SELECT - col2 + + - col0 * + col1 FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # DIV for integer division: 
query II rowsort label-4148
SELECT - col2 + - 64 DIV - col2, col2 FROM tab0 AS cor0
----
-4
10
-46
47
-99
99

skipif mysql # not compatible
query II rowsort label-4148
SELECT - col2 + - 64 / - col2, col2 FROM tab0 AS cor0
----
-4
10
-46
47
-99
99

query I rowsort
SELECT ALL + - 75 FROM tab2 WHERE NULL IS NULL
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4150
SELECT ALL - - CAST( - - col1 AS SIGNED ) AS col1 FROM tab2 WHERE col2 BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 WHERE col2 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - ( 36 ) - + 7 - + + col0 AS col1 FROM tab0
----
-130
-140
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - - 8 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 93 - col0 < col0
----
16

skipif mysql # not compatible
query I rowsort label-4152
SELECT - - 8 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 93 - col0 < col0
----
16

query I rowsort
SELECT ALL + col1 - - 35 FROM tab2 AS cor0
----
102
112
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4154
SELECT - col1 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT - col1 - - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 18, + col1 * 59 * + col0 AS col0 FROM tab0 AS cor0
----
-18
107793
-18
5723
-18
71685

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - COUNT( + col1 ) + 46 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4156
SELECT - COUNT ( + col1 ) + 46 FROM tab2 AS cor0
----
43

query I rowsort
SELECT ALL - col0 * - 83 + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
4137
6996
7485

query I rowsort
SELECT ALL + + ( + col1 ) * + + 45 + - - 98 AS col0 FROM tab2 cor0
----
2393
3113
3563

query I rowsort
SELECT col1 * - + 86 * + ( + 89 ) + + 74 * + col2 * + + 83 FROM tab1 cor0
----
324108
482476
57918

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + MIN( ALL + col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4160
SELECT ALL + MIN ( ALL + col1 ) col1 FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * 47 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT DISTINCT col1 * - col0 col0 FROM tab0 WHERE NOT col0 - + 1 IN ( - CAST( NULL AS SIGNED ), + col1, + + 74 * + ( + col0 ) + - - col2, + + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT DISTINCT col1 * - col0 col0 FROM tab0 WHERE NOT col0 - + 1 IN ( - CAST ( NULL AS INTEGER ), + col1, + + 74 * + ( + col0 ) + - - col2, + + col0 )
----

query I rowsort
SELECT DISTINCT - ( 16 ) AS col0 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - + MAX( DISTINCT - 80 ) * COUNT( * ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - + MAX ( DISTINCT - 80 ) * COUNT ( * ) FROM tab2 AS cor0
----
240

query I rowsort
SELECT DISTINCT - + col2 * + + col0 * col2 AS col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + 6 * 90 FROM tab1 AS cor0
----
540

query I rowsort
SELECT DISTINCT - 68 + col1 * + col2 FROM tab1 WHERE NOT + col2 IS NULL
----
1276
227
3128

query II rowsort
SELECT ALL 2 AS col0, - 71 * col2 * col1 FROM tab0
----
2
-14910
2
-270297
2
-7029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col0 FROM tab0
----
-36

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - - 30 * - MIN( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-900

skipif mysql # not compatible
query I rowsort label-4171
SELECT - - 30 * - MIN ( ALL + 30 ) AS col1 FROM tab2 AS cor0
----
-900

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + - 62 )
----

query I rowsort
SELECT + + col0 * + col1 * col1 FROM tab1 cor0
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - 61 * - col0 AS col0 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT + ( - - col0 ) + + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 18 * + col1 AS col0 FROM tab0 AS cor0
----
1458
18
378

query I rowsort
SELECT ALL - col0 * + - ( - col0 ) FROM tab2 AS cor0 WHERE col0 = + ( - + col2 )
----

query I rowsort
SELECT ALL - - 56 + + col1 AS col0 FROM tab1 AS cor0
----
103
61
70

query I rowsort
SELECT - col1 + col2 - - 72 * - col2 * + 14 AS col2 FROM tab2 AS cor0
----
-23212
-40357
-58473

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT ALL 7, + col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
7
14
7
47
7
5

query I rowsort
SELECT DISTINCT - 42 + - col2 * - - col1 FROM tab0 AS cor0
----
-141
-252
-3849

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * - + col1 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 52 * 47 FROM tab2
----
2444
2444
2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT ALL CAST( NULL AS SIGNED ) + + + ( 56 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL CAST ( NULL AS INTEGER ) + + + ( 56 ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 72 * + 37 AS col0, - col2 FROM tab1
----
-2664
-59
-2664
-68
-2664
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT ALL + col2 + 30 DIV - + 65 * - col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + col2 + 30 / - + 65 * - col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL + COUNT( * ) * + - 39 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + COUNT ( * ) * + - 39 FROM tab0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL + col1 DIV - 7 FROM tab2
----
-11
-7
-9

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + col1 / - 7 FROM tab2
----
-11
-7
-9

query I rowsort
SELECT DISTINCT 53 * 52 * + + col0 FROM tab2
----
126776
176384
206700

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT - 87 DIV + ( - col1 ) FROM tab1 AS cor0
----
1
17
6

skipif mysql # not compatible
query I rowsort label-4191
SELECT - 87 / + ( - col1 ) FROM tab1 AS cor0
----
1
17
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT ALL + col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 / - col2 * - + 63 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT DISTINCT 9 * - 85 - - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT 9 * - 85 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT COUNT( * ) * - 25 AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4195
SELECT COUNT ( * ) * - 25 AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + + SUM( - - ( + - 18 ) ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + + SUM ( - - ( + - 18 ) ) FROM tab2 cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4198
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 66 NOT BETWEEN + + CAST( - 95 AS SIGNED ) AND - col1 * + col0 + 89 + - col0
----

skipif mysql # not compatible
query III rowsort label-4198
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 66 NOT BETWEEN + + CAST ( - 95 AS INTEGER ) AND - col1 * + col0 + 89 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT + 75 DIV + COUNT( * ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4199
SELECT + 75 / + COUNT ( * ) FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT COUNT( * ) * - 89 FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-4200
SELECT COUNT ( * ) * - 89 FROM tab0
----
-267

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( + 46 ) > ( 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT - 91 DIV + - col1 FROM tab0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 91 / + - col1 FROM tab0
----
1
4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT - - col1 + - 67 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - col1 + - 67 IS NULL
----
-3

query II rowsort
SELECT DISTINCT + col0, - ( - col0 ) AS col0 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT ALL - - COUNT( * ), + 76 col0 FROM tab1 AS cor0
----
3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4205
SELECT ALL - - COUNT ( * ), + 76 col0 FROM tab1 AS cor0
----
3
76

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + + COUNT( * ) col1 FROM tab0 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-4207
SELECT + + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 60 - - 33 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NULL WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL ( col1 ) * - col1 + col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + - - col0 >= + + col1
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + - - col0 >= + + col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4212
SELECT - - CAST( COUNT( * ) AS SIGNED ) AS col0, MIN( col2 ) FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-4212
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) AS col0, MIN ( col2 ) FROM tab2 AS cor0
----
3
23

query I rowsort
SELECT DISTINCT col0 + + 76 FROM tab2 AS cor0
----
122
140
151

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4214
SELECT ALL - CAST( NULL AS SIGNED ) * + - 6 + - 29 + + col2 + - col1 + col0 / col2 * + 71 col1, 61 FROM tab1 AS cor0
----
NULL
61
NULL
61
NULL
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4214
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 6 + - 29 + + col2 + - col1 + col0 / col2 * + 71 col1, 61 FROM tab1 AS cor0
----
NULL
61
NULL
61
NULL
61

query I rowsort
SELECT ALL col1 * + - col2 + + - 47 + + + 25 * col2 FROM tab1
----
-1543
1009
1133

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col0 - col0 NOT BETWEEN NULL AND + col2 * + col2 )
----

query I rowsort
SELECT ALL + col2 * col1 + col0 FROM tab2
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + SUM( - + 47 ) AS col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + SUM ( - + 47 ) AS col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT ALL 35 DIV col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL 35 / col2 FROM tab0
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT DISTINCT - - col2 DIV + 96 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - - col2 / + 96 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT + col1 DIV - 19 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT + col1 / - 19 AS col1 FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 WHERE NOT ( - 7 ) IS NULL
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT + col2 DIV 66 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4223
SELECT + col2 / 66 AS col2 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE col0 <= + 16
----

query I rowsort
SELECT 92 FROM tab1 WHERE NOT + col1 > ( 86 )
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 76 col1 FROM tab1
----
123
81
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT col0 + + CAST( 37 AS SIGNED ) FROM tab0
----
124
134
52

skipif mysql # not compatible
query I rowsort label-4227
SELECT col0 + + CAST ( 37 AS INTEGER ) FROM tab0
----
124
134
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4228
SELECT MIN( col0 ) DIV SUM( col2 * col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4228
SELECT MIN ( col0 ) / SUM ( col2 * col2 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT DISTINCT col2 DIV + 55 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT col2 / + 55 FROM tab2
----
0
1

query I rowsort
SELECT ALL col0 + col1 * - 92 FROM tab1
----
-1237
-375
-4233

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( - 81 )
----

query I rowsort
SELECT DISTINCT + col2 * - col0 + + 78 FROM tab1
----
-4818
-4937
-6110

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT 54 + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT 54 + COUNT ( * ) FROM tab2
----
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= ( 53 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 78 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 / + col2 + + 71 AND ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) = NULL
----

query I rowsort
SELECT + 80 * 61 + + 84 FROM tab0
----
4964
4964
4964

query I rowsort
SELECT DISTINCT + ( - 28 ) * - 99 - + col1 AS col0 FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
2695
2705
2721

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( 13 - 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( - col2 * - col0 ) - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( - col2 * - col0 ) - col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * - col2 + - 77 AS col1 FROM tab0
----
-782
-947
-9680

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4243
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL = + col0 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0 WHERE NULL = + col0 + col2
----
NULL

query I rowsort
SELECT ALL - col1 + - 29 FROM tab1
----
-34
-43
-76

query III rowsort
SELECT ALL * FROM tab2 WHERE - 27 NOT BETWEEN - col2 * 61 + 14 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4246
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col0 + CAST( NULL AS SIGNED ) * col1 ) AND - col2 * 48
----

skipif mysql # not compatible
query III rowsort label-4246
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( col0 + CAST ( NULL AS INTEGER ) * col1 ) AND - col2 * 48
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN NULL AND + 61
----

query I rowsort
SELECT + 48 + 48 FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL + MAX( col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 29 + 7 >= - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 - + col0 / - col0 >= ( + col1 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT + COUNT( * ) - 29 AS col1 FROM tab1 WHERE NULL <> ( - col1 )
----
-29

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + COUNT ( * ) - 29 AS col1 FROM tab1 WHERE NULL <> ( - col1 )
----
-29

query I rowsort
SELECT ALL 74 * col2 FROM tab2
----
1702
2960
4292

query I rowsort
SELECT col1 + 32 AS col0 FROM tab1 WHERE col0 * 87 - col2 * + col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - COUNT( * ) + 77 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4255
SELECT - COUNT ( * ) + 77 FROM tab1 AS cor0
----
74

query I rowsort
SELECT + 54 + col0 FROM tab2 cor0
----
100
118
129

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) * col1 >= + col0 + - col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - ( - 15 ) + + col2 AS col0 FROM tab0 AS cor0
----
-5
32
84

query I rowsort
SELECT 80 FROM tab1 AS cor0 WHERE + col2 < ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( + 19 ) ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > ( col1 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE col2 NOT IN ( + col0 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab2 WHERE 15 - + 59 IS NULL
----

query I rowsort
SELECT ALL + col1 + - + 4 AS col2 FROM tab1
----
1
10
43

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT MIN( - 36 ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4266
SELECT MIN ( - 36 ) AS col1 FROM tab0
----
-36

query I rowsort
SELECT 63 - - - col1 FROM tab2
----
-14
-4
12

query I rowsort
SELECT DISTINCT - + col2 + + col2 + 52 AS col2 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + 91 + 20 * + SUM( - col1 ) FROM tab0 AS cor0
----
-1969

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 91 + 20 * + SUM ( - col1 ) FROM tab0 AS cor0
----
-1969

query I rowsort
SELECT DISTINCT - col2 * + + ( - ( col1 ) ) * - col0 + - col2 * col0 FROM tab2
----
-199680
-295800
-55016

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab1 WHERE NULL <= + - col0
----

query II rowsort
SELECT DISTINCT col1, + 35 FROM tab2
----
51
35
67
35
77
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT ALL COUNT( * ) AS col0, MIN( DISTINCT - 87 ) FROM tab2
----
3
-87

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL COUNT ( * ) AS col0, MIN ( DISTINCT - 87 ) FROM tab2
----
3
-87

query I rowsort
SELECT - ( + col1 ) * - 7 FROM tab2 AS cor0
----
357
469
539

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 58 IS NOT NULL
----

query I rowsort
SELECT ALL + 81 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4277
SELECT * FROM tab2 cor0 WHERE NOT col0 <> ( + - CAST( 68 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4277
SELECT * FROM tab2 cor0 WHERE NOT col0 <> ( + - CAST ( 68 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, - 88 + - + 77 + - col1 AS col0 FROM tab0 AS cor0
----
-15
-246
-87
-186
-97
-166

query I rowsort
SELECT 17 * - - col1 * 69 FROM tab2 AS cor0
----
59823
78591
90321

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT + - MAX( ALL + - col2 ) * + + ( + 81 ) FROM tab2 AS cor0
----
1863

skipif mysql # not compatible
query I rowsort label-4280
SELECT + - MAX ( ALL + - col2 ) * + + ( + 81 ) FROM tab2 AS cor0
----
1863

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 + 10 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT SUM( - - 17 ) DIV 8 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4282
SELECT SUM ( - - 17 ) / 8 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL + CAST( - col0 AS SIGNED ) * - + col0 AS col1 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + CAST ( - col0 AS INTEGER ) * - + col0 AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + col1 * - + 77 AS col2 FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 92 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT CAST( NULL AS SIGNED ) / - MAX( DISTINCT - 52 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT CAST ( NULL AS INTEGER ) / - MAX ( DISTINCT - 52 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + - col2 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + + 30 + - - SUM( ALL + col2 ) FROM tab2 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-4288
SELECT + + 30 + - - SUM ( ALL + col2 ) FROM tab2 AS cor0
----
151

query II rowsort
SELECT + col1 + - + 76, - col2 AS col2 FROM tab0 cor0
----
-55
-10
-75
-99
5
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT + 11 + - ( - COUNT( * ) ) - MIN( col2 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + 11 + - ( - COUNT ( * ) ) - MIN ( col2 ) FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT - COUNT( * ) DIV 56 * - COUNT( * ) + + ( 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4291
SELECT - COUNT ( * ) / 56 * - COUNT ( * ) + + ( 76 ) FROM tab2 AS cor0
----
76

query II rowsort
SELECT DISTINCT 26 * 44 + - col1 AS col2, col2 + + 64 AS col2 FROM tab2 cor0
----
1067
104
1077
122
1093
87

query I rowsort
SELECT + ( - - 50 ) FROM tab0 AS cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT 42 - + col2 + - 15 DIV - 29 * - col0 FROM tab1 AS cor0
----
-17
-26
-54

skipif mysql # not compatible
query I rowsort label-4294
SELECT 42 - + col2 + - 15 / - 29 * - col0 FROM tab1 AS cor0
----
-17
-26
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + 26 - MAX( - 32 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4295
SELECT + 26 - MAX ( - 32 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL col2 + - col1 * - - col1 FROM tab2 AS cor0
----
-2578
-4431
-5889

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4297
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - + CAST( NULL AS SIGNED ) AND col0 AND NOT ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4297
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - + CAST ( NULL AS INTEGER ) AND col0 AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col2 + - 94 * col2 AS col2 FROM tab2 AS cor0
----
-2139
-3720
-5394

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + col1 + - 58 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + 48 - + ( - - col0 ) * - 28 AS col2 FROM tab2
----
2392
3712
4884

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 94 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - - 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT ALL + col1 - col1 * 79 DIV + + 41 - + 23 FROM tab0
----
-23
-42
-98

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + col1 - col1 * 79 / + + 41 - + 23 FROM tab0
----
-23
-42
-98

query I rowsort
SELECT ALL + - 47 FROM tab0 WHERE ( - 48 - col1 ) < + 23
----
-47
-47
-47

query I rowsort
SELECT col1 - - + 86 FROM tab2 AS cor0 WHERE NULL = - 9 * + 94 + - + col1
----

query I rowsort
SELECT ALL - col2 * - - col1 - - 82 FROM tab0 AS cor0
----
-128
-17
-3725

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 46 IN ( - col1 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 60 FROM tab1 WHERE NOT + 13 * - - col0 + - 30 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT - col1 DIV + 51 * 9 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT - col1 / + 51 * 9 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 * + + 87 * + - 60 * - col1 AS col1 FROM tab2 AS cor0
----
16077600
20284920
6123060

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT - COUNT( ALL + 86 ) * 0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT - COUNT ( ALL + 86 ) * 0 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - col2 * - col0 AS col2, + 20 - + ( 28 ) + col1 * + col1 FROM tab1 AS cor0
----
4896
188
5015
17
6188
2201

query I rowsort
SELECT DISTINCT col1 * 10 FROM tab1 AS cor0
----
140
470
50

query I rowsort
SELECT ALL - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - 22 * + col1 - 5 * - col2 AS col2 FROM tab1 cor0
----
-694
172
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT ALL + - ( - 18 ) FROM tab1 WHERE NOT NULL NOT IN ( - + 52, + col2 * + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + - ( - 18 ) FROM tab1 WHERE NOT NULL NOT IN ( - + 52, + col2 * + CAST ( + col1 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, + col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT + col0 * - - 4 AS col2 FROM tab1
----
204
340
364

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + col0 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 * - ( 35 ) col0 FROM tab1
----
1836
3060
3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT + 19 + 88 * + CAST( - 34 AS SIGNED ) AS col0 FROM tab1
----
-2973
-2973
-2973

skipif mysql # not compatible
query I rowsort label-4322
SELECT + 19 + 88 * + CAST ( - 34 AS INTEGER ) AS col0 FROM tab1
----
-2973
-2973
-2973

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT ( - col1 * + - col0 * - 90 ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT - 70 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT - 38 + + 33 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4326
SELECT + CAST( NULL AS DECIMAL ) + + MAX( ALL + + col0 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT + CAST ( NULL AS REAL ) + + MAX ( ALL + + col0 ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT col1 + + 32 AS col0 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT ALL col0 + 70 AS col1 FROM tab2 AS cor0
----
116
134
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + ( + - COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4329
SELECT DISTINCT + ( + - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT 49 + ( + COUNT( * ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-4331
SELECT 49 + ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 26 col0 FROM tab1 WHERE col0 IS NOT NULL
----
-12
-21
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT DISTINCT 3 * + - CAST( NULL AS SIGNED ) + + 63 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT 3 * + - CAST ( NULL AS INTEGER ) + + 63 FROM tab0
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT - 0 - - col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT - col1 / - + CAST( NULL AS SIGNED ) - + col0 * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT - col1 / - + CAST ( NULL AS INTEGER ) - + col0 * + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4337
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT IN ( - col2, CAST( NULL AS SIGNED ) - - 29 * - 13 ) AND NOT NULL > col2
----

skipif mysql # not compatible
query III rowsort label-4337
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT IN ( - col2, CAST ( NULL AS INTEGER ) - - 29 * - 13 ) AND NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - SUM( - col1 ) - + - 1 FROM tab2
----
196

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - SUM ( - col1 ) - + - 1 FROM tab2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL MIN( + col1 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4339
SELECT ALL MIN ( + col1 ) col0 FROM tab0
----
1

query I rowsort
SELECT + col0 - + col0 * - - 16 AS col0 FROM tab1
----
-1275
-1365
-765

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4341
SELECT * FROM tab2 WHERE NOT CAST( - 23 AS DECIMAL ) > - + col1 * CAST( - col1 AS DECIMAL ) + - 11 * ( - col2 ) * + col0 + - col1 AND NOT NULL BETWEEN - 20 + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4341
SELECT * FROM tab2 WHERE NOT CAST ( - 23 AS REAL ) > - + col1 * CAST ( - col1 AS REAL ) + - 11 * ( - col2 ) * + col0 + - col1 AND NOT NULL BETWEEN - 20 + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 79 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT COUNT( * ) * + COUNT( ALL - 24 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4343
SELECT COUNT ( * ) * + COUNT ( ALL - 24 ) FROM tab0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4344
SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT 53, - col0 AS col1 FROM tab1
----
53
-51
53
-85
53
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT + 85 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col1, CAST( 86 AS SIGNED ), - - ( - col2 ), - col2 )
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4346
SELECT + 85 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - col1, CAST ( 86 AS INTEGER ), - - ( - col2 ), - col2 )
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ( + - SUM( + 99 ) ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4348
SELECT ( + - SUM ( + 99 ) ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL - MAX( + + col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4349
SELECT ALL - MAX ( + + col2 ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4350
SELECT DISTINCT + + col1 FROM tab0 WHERE col0 <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + + col1 FROM tab0 WHERE col0 <> CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + + col0 ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + + col2 AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL - COUNT( * ) * + + COUNT( * ) + 77 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) + 77 FROM tab2 AS cor0
----
68

query I rowsort
SELECT ( 84 ) + - 44 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4355
SELECT 75 * - - ( + CAST( NULL AS DECIMAL ) ) + - - 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-4355
SELECT 75 * - - ( + CAST ( NULL AS REAL ) ) + - - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL MAX( col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 61 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( 43 * + + col1 + ( + + col0 ) + - - ( - + col1 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL - - COUNT( * ) * ( - 69 ) FROM tab1 WHERE - + ( + col1 ) IS NOT NULL
----
-207

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - - COUNT ( * ) * ( - 69 ) FROM tab1 WHERE - + ( + col1 ) IS NOT NULL
----
-207

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT COUNT( + - col2 ) DIV - COUNT( * ) - + 60 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT COUNT ( + - col2 ) / - COUNT ( * ) - + 60 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - - + col2 / + + 28 + - col1 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 17 - - + col1 AS col2 FROM tab1 AS cor0
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT - SUM( - 68 ) + + - 31 AS col2 FROM tab2 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-4364
SELECT - SUM ( - 68 ) + + - 31 AS col2 FROM tab2 AS cor0
----
173

query I rowsort
SELECT - 47 FROM tab0 AS cor0 WHERE - 74 + - - col1 / col1 IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT + + col0 + - col1 * 15 * - + col1 FROM tab2 cor0
----
39061
67410
88999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 + col1 + col0 col0 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 + col0 + + + 48 col2, col1 FROM tab0 AS cor0
----
-18
81
114
21
144
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT + col1 DIV + col2 + + col2 + - 69 FROM tab2 AS cor0
----
-10
-28
-44

skipif mysql # not compatible
query I rowsort label-4369
SELECT + col1 / + col2 + + col2 + - 69 FROM tab2 AS cor0
----
-10
-28
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4370
SELECT * FROM tab2 WHERE NULL <> - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4370
SELECT * FROM tab2 WHERE NULL <> - + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT 29 DIV - col1 + + col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4371
SELECT 29 / - col1 + + col1 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - + ( 33 ) FROM tab1 WHERE + 60 + - col2 * - col1 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( 79 ) FROM tab0
----
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) BETWEEN + 43 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 26 NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - ( + MAX( DISTINCT + + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4377
SELECT - ( + MAX ( DISTINCT + + col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT + COUNT( DISTINCT - - 49 ), 44 AS col1 FROM tab1 AS cor0
----
1
44

skipif mysql # not compatible
query II rowsort label-4378
SELECT + COUNT ( DISTINCT - - 49 ), 44 AS col1 FROM tab1 AS cor0
----
1
44

query II rowsort
SELECT + + ( col2 ) AS col2, col0 + col2 FROM tab2 cor0
----
23
69
40
104
58
133

query I rowsort
SELECT ALL 12 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4381
SELECT - 99 AS col2, CAST( 38 AS SIGNED ) FROM tab2 AS cor0
----
-99
38
-99
38
-99
38

skipif mysql # not compatible
query II rowsort label-4381
SELECT - 99 AS col2, CAST ( 38 AS INTEGER ) FROM tab2 AS cor0
----
-99
38
-99
38
-99
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL + - MIN( DISTINCT - ( + + 49 ) ) * + + 26 FROM tab1 AS cor0
----
1274

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + - MIN ( DISTINCT - ( + + 49 ) ) * + + 26 FROM tab1 AS cor0
----
1274

query II rowsort
SELECT - ( + col0 ) + + - col1 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
-108
-21
-96
-81
-98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + + 53 + + + COUNT( DISTINCT + 49 ) FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-4384
SELECT + + 53 + + + COUNT ( DISTINCT + 49 ) FROM tab1 cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, - col0 + ( - + 40 ) col2 FROM tab2
----
-46
-86
-64
-104
-75
-115

query I rowsort
SELECT ALL + col0 * + 33 FROM tab0
----
2871
3201
495

query II rowsort
SELECT DISTINCT - col2 * - - col1, col2 AS col1 FROM tab2
----
-1173
23
-3080
40
-3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT + 16 * - COUNT( * ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + 16 * - COUNT ( * ) AS col2 FROM tab2
----
-48

query III rowsort
SELECT * FROM tab1 WHERE 64 * - col0 * - 74 + - col0 + - 83 BETWEEN NULL AND - ( - 53 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - col2 - - 46 * + 5 * 22 + ( - - col2 ) IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT col1 / - + CAST( NULL AS SIGNED ) * 95 - + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT col1 / - + CAST ( NULL AS INTEGER ) * 95 - + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 77 * + 89 AS col0 FROM tab1 AS cor0
----
-6853
-6853
-6853

query I rowsort
SELECT ALL ( + 47 ) AS col0 FROM tab2 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT 41 * COUNT( ALL + + col0 ) + 86 FROM tab2
----
209

skipif mysql # not compatible
query I rowsort label-4394
SELECT 41 * COUNT ( ALL + + col0 ) + 86 FROM tab2
----
209

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT + col1 + + col2 + - CAST( + 6 AS SIGNED ) + col2 * + col1 col0 FROM tab0 cor0
----
193
235
3929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4396
SELECT DISTINCT + col1 + + col2 + - CAST ( + 6 AS INTEGER ) + col2 * + col1 col0 FROM tab0 cor0
----
193
235
3929

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4397
SELECT DISTINCT - + COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 59 * - col0 FROM tab0
----
-5133
-5723
-885

query I rowsort
SELECT DISTINCT ( 20 ) AS col0 FROM tab1, tab0 cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 14 FROM tab1 WHERE NOT - 72 IS NULL
----
14
14
14

query I rowsort
SELECT ALL - - 80 AS col2 FROM tab0 WHERE + 63 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) * col0 + + col0 BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT col1 * + 99 + - col2 + + col0 FROM tab2 AS cor0
----
5072
6650
7647

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL - SUM( - col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL - SUM ( - col0 ) AS col1 FROM tab2 cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col0 * col1 col1 FROM tab0 AS cor0
----
15
-1215
87
-1827
97
-97

query I rowsort
SELECT DISTINCT col0 * + 75 * - + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-31880
-320822
-53564

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT - + COUNT( * ) + - MIN( ALL - 84 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT - + COUNT ( * ) + - MIN ( ALL - 84 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL 76 * - ( + ( - 1 ) ) + + col2 FROM tab0 AS cor0
----
123
175
86

query I rowsort
SELECT DISTINCT + col2 + + + 59 * - 51 FROM tab0 AS cor0
----
-2910
-2962
-2999

query I rowsort
SELECT ALL + col2 + + 72 FROM tab0
----
119
171
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) * - + COUNT( - CAST( + col0 AS SIGNED ) ) * + CAST( 21 AS SIGNED ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) * - + COUNT ( - CAST ( + col0 AS INTEGER ) ) * + CAST ( 21 AS INTEGER ) FROM tab1
----
-189

query II rowsort
SELECT DISTINCT - col2 AS col1, + col1 * - col0 * + col2 AS col1 FROM tab1 cor0
----
-59
-25075
-68
-290836
-96
-68544

query I rowsort
SELECT - 60 * + 19 * 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ef9ba98be7a6c9eec97c1f9965f0693

query I rowsort
SELECT 60 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT + + col1 FROM tab2 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col2 col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - ( - 60 ) FROM tab0 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + + col2 * 51 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ( - + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4420
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT + col0 * 84 * - - 61 AS col1 FROM tab1 AS cor0
----
261324
435540
466284

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT + ( + SUM( col2 ) ) * + ( + + 31 ) * - 40 + + - COUNT( * ) FROM tab2 AS cor0
----
-150043

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + ( + SUM ( col2 ) ) * + ( + + 31 ) * - 40 + + - COUNT ( * ) FROM tab2 AS cor0
----
-150043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4423
SELECT ALL + 13 * - COUNT( * ) DIV - MIN( DISTINCT + + 70 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + 13 * - COUNT ( * ) / - MIN ( DISTINCT + + 70 ) AS col0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - ( 60 ) * + 80 col1 FROM tab1
----
283200
326400
460800

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT DISTINCT + col1 DIV 9 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT + col1 / 9 FROM tab2
----
5
7
8

query II rowsort
SELECT + ( - col2 ) AS col0, col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query II rowsort
SELECT ALL 42, + 74 AS col0 FROM tab2
----
42
74
42
74
42
74

query II rowsort
SELECT ALL - col0, + 9 * + + 56 FROM tab2 cor0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT - 38 + - + col2 FROM tab0 AS cor0
----
-137
-48
-85

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE 80 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * - + col2 col0 FROM tab1 AS cor0
----
2832
3264
4608

query I rowsort
SELECT DISTINCT + ( + + col0 ) * + - col0 - + col1 + col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT 29 + - + col0 + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-121
-63
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT - 99 + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4434
SELECT - 99 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT + 69 + + COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + 69 + + COUNT ( * ) FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT col1 + + - 20 AS col0 FROM tab1 AS cor0
----
-15
-6
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4437
SELECT ALL + ( - + 12 ) + + + COUNT( * ) - + CAST( NULL AS SIGNED ) + 88 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + ( - + 12 ) + + + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + 88 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + 97 - + - col1 * 30 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col2 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 75 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL col0 DIV - col2 + - + col1 FROM tab0 AS cor0
----
-1
-29
-81

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL col0 / - col2 + - + col1 FROM tab0 AS cor0
----
-1
-29
-81

query I rowsort
SELECT col0 * + - col1 * - 6 + + col1 AS col2 FROM tab2 AS cor0
----
14127
29645
30217

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL - 25 - - + COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - 25 - - + COUNT ( * ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT + col2 * + - col0 + col2 - 95 * + - 40 + - 63 FROM tab2
----
-555
1217
2702

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4446
SELECT DISTINCT - col2 * + + 19 * + col2 * - + CAST( NULL AS DECIMAL ) - - 47 * - + 37 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - col2 * + + 19 * + col2 * - + CAST ( NULL AS REAL ) - - 47 * - + 37 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT + 28 * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + 28 * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + COUNT( * ) * + - 10 * - + COUNT( DISTINCT - col0 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-4448
SELECT + COUNT ( * ) * + - 10 * - + COUNT ( DISTINCT - col0 ) AS col2 FROM tab1
----
90

query II rowsort
SELECT - col0 AS col1, - col2 * + 25 * + 82 FROM tab0 AS cor0
----
-15
-96350
-87
-20500
-97
-202950

query I rowsort
SELECT ALL ( col2 ) * col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - + COUNT( DISTINCT + 19 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - + COUNT ( DISTINCT + 19 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT - 96 / 89 * - 93 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + 96 * - - COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + 96 * - - COUNT ( * ) FROM tab1 AS cor0
----
288

query I rowsort
SELECT - col2 * - 12 AS col1 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT ALL ( - - 25 ) * col0 + + col2 AS col0 FROM tab0 AS cor0
----
2185
2524
422

query II rowsort
SELECT DISTINCT - 54, + col2 FROM tab2 AS cor0
----
-54
23
-54
40
-54
58

query II rowsort
SELECT DISTINCT 92, 60 AS col2 FROM tab2
----
92
60

query I rowsort
SELECT 4 * col1 FROM tab0
----
324
4
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT - 53 DIV 4 col1 FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4460
SELECT - 53 / 4 col1 FROM tab1
----
-13
-13
-13

query II rowsort
SELECT - 71, - col1 AS col1 FROM tab2
----
-71
-51
-71
-67
-71
-77

query I rowsort
SELECT DISTINCT 61 * + ( + col2 ) * + + col0 AS col1 FROM tab1 AS cor0
----
298656
305915
377468

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT 0 * + COUNT( + - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT 0 * + COUNT ( + - col2 ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 / col2 AND + - ( - + 9 ) * + col2 * 36 * - - col1 - - 39 + - - col1 - - 51 - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab1 cor0
----
12
12
12

query II rowsort
SELECT ALL + + col0 + 69 AS col0, col0 FROM tab0 AS cor0
----
156
87
166
97
84
15

query I rowsort
SELECT ALL 1 + - - ( - 91 ) FROM tab0 AS cor0
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 93 + + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT col2 * CAST( - col2 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

skipif mysql # not compatible
query I rowsort label-4469
SELECT col2 * CAST ( - col2 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT ALL - 73 + 85 AS col1 FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT ( col1 ) + - 54 + 38 * - col2 FROM tab2
----
-1497
-2191
-877

query I rowsort
SELECT DISTINCT - 77 - - + 7 AS col1 FROM tab2
----
-70

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab0 WHERE NOT - 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 14 FROM tab1 cor0
----
-14

query II rowsort
SELECT col0, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + ( + + col2 ) AS col0, + col1 col0 FROM tab0 AS cor0
----
705
81
870
21
9603
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4477
SELECT * FROM tab1 cor0 WHERE col1 * + CAST( NULL AS DECIMAL ) * + col0 + - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4477
SELECT * FROM tab1 cor0 WHERE col1 * + CAST ( NULL AS REAL ) * + col0 + - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col1 ) * - + 18 + - + col1 IS NULL
----

query I rowsort
SELECT ALL + ( ( + col2 ) ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) + col2 )
----

query II rowsort
SELECT + ( col1 ), + 15 FROM tab0 AS cor0
----
1
15
21
15
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT - col0 * 8 DIV - + col2 - + col1 col0 FROM tab0 cor0
----
-79
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4482
SELECT - col0 * 8 / - + col2 - + col1 col0 FROM tab0 cor0
----
-79
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT COUNT( DISTINCT + col2 ) * - 92 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-276

skipif mysql # not compatible
query I rowsort label-4483
SELECT COUNT ( DISTINCT + col2 ) * - 92 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL + CAST( + 40 AS SIGNED ) + - - COUNT( * ) FROM tab1 WHERE NOT + - col1 - + 58 NOT BETWEEN NULL AND 81
----
40

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + CAST ( + 40 AS INTEGER ) + - - COUNT ( * ) FROM tab1 WHERE NOT + - col1 - + 58 NOT BETWEEN NULL AND 81
----
40

query I rowsort
SELECT + 16 * 63 * - 12 FROM tab1
----
-12096
-12096
-12096

query I rowsort
SELECT col1 * 11 AS col0 FROM tab0
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + 67 + - 48 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 67 + - 48 NOT IN ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 7 * + col1 + - col0 * - 28 FROM tab0
----
15
987
87
2583
97
2723

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT 48 * ( - COUNT( * ) ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT 48 * ( - COUNT ( * ) ) FROM tab0
----
-144

query II rowsort
SELECT + 55 AS col2, col0 FROM tab0 AS cor0
----
55
15
55
87
55
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT - + CAST( - 61 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - + CAST ( - 61 AS INTEGER ) / col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT DISTINCT - COUNT( * ) * - CAST( - 81 AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - COUNT ( * ) * - CAST ( - 81 AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
-240

query I rowsort
SELECT DISTINCT + 66 * 85 AS col1 FROM tab1
----
5610

query I rowsort
SELECT 12 + - col2 * - + col1 FROM tab2 AS cor0
----
1185
3092
3898

query I rowsort
SELECT - 84 + + - col0 - - + col0 FROM tab0 cor0
----
-84
-84
-84

query I rowsort
SELECT + col2 * col1 + + ( - col1 ) FROM tab0 AS cor0
----
189
3726
98

query II rowsort
SELECT - col1 AS col1, + 66 AS col0 FROM tab0 AS cor0
----
-1
66
-21
66
-81
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT ALL - 44 + - MAX( + col0 ) AS col0 FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - 44 + - MAX ( + col0 ) AS col0 FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL SUM( + col2 ) + + 2 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL SUM ( + col2 ) + + 2 FROM tab1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + 34 - + + 63 * - SUM( DISTINCT + - 57 ) FROM tab0
----
-3557

skipif mysql # not compatible
query I rowsort label-4500
SELECT + 34 - + + 63 * - SUM ( DISTINCT + - 57 ) FROM tab0
----
-3557

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT - 11 - + ( COUNT( * ) ) AS col1 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT - 11 - + ( COUNT ( * ) ) AS col1 FROM tab0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT - col2 - + col2 DIV + - 11 AS col1 FROM tab2
----
-21
-37
-53

skipif mysql # not compatible
query I rowsort label-4502
SELECT - col2 - + col2 / + - 11 AS col1 FROM tab2
----
-21
-37
-53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 * ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - ( - 18 ) - - col0 FROM tab0
----
105
115
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4506
SELECT - COUNT( * ) AS col0, 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
57

skipif mysql # not compatible
query II rowsort label-4506
SELECT - COUNT ( * ) AS col0, 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT 54 + + + 28 + 54 + - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
127

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT 54 + + + 28 + 54 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
127

query I rowsort
SELECT - col1 * - col2 * - - col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT 96 - - COUNT( * ) + - ( 49 ) - + - COUNT( * ) DIV - 34 FROM tab0, tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4509
SELECT 96 - - COUNT ( * ) + - ( 49 ) - + - COUNT ( * ) / - 34 FROM tab0, tab0 AS cor0
----
56

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT - + COUNT( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - + COUNT ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT CAST( 58 AS SIGNED ) FROM tab2 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4512
SELECT CAST ( 58 AS INTEGER ) FROM tab2 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL + MAX( ALL + 68 ) AS col2 FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + MAX ( ALL + 68 ) AS col2 FROM tab1 cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL + COUNT( - + 87 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + COUNT ( - + 87 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 86 FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL
----
86
86
86

query I rowsort
SELECT DISTINCT - + 65 + - + col1 / + 11 FROM tab0 AS cor0 WHERE NOT 7 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT - CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4517
SELECT - CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4519
SELECT col2 DIV - - col1 AS col0, col0 FROM tab1
----
1
91
11
85
6
51

skipif mysql # not compatible
query II rowsort label-4519
SELECT col2 / - - col1 AS col0, col0 FROM tab1
----
1
91
11
85
6
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + 7 * - + col1 AS col0 FROM tab0
----
-147
-567
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT - MIN( ALL 86 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - MIN ( ALL 86 ) FROM tab0
----
-86

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - 4 * - col0 BETWEEN NULL AND + - 90
----

query I rowsort
SELECT ALL - col1 * + 15 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT ALL col1 * + + 73 FROM tab2
----
3723
4891
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT MAX( 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT MAX ( 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT - ( + - 96 ) * - + COUNT( * ) AS col0 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - ( + - 96 ) * - + COUNT ( * ) AS col0 FROM tab2
----
-288

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < ( + 73 )
----

query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2 AS cor0 WHERE NOT 49 IS NULL
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - MIN( DISTINCT col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4530
SELECT - MIN ( DISTINCT col1 ) FROM tab0 cor0
----
-1

query II rowsort
SELECT DISTINCT - col2 AS col0, col2 + + - 72 AS col1 FROM tab1 AS cor0
----
-59
-13
-68
-4
-96
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT COUNT( * ) + CAST( + - 16 AS SIGNED ) * - + COUNT( * ) * + + 22 FROM tab0 AS cor0
----
1059

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT COUNT ( * ) + CAST ( + - 16 AS INTEGER ) * - + COUNT ( * ) * + + 22 FROM tab0 AS cor0
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COUNT( * ) - + + 29 col2 FROM tab0 cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4533
SELECT - COUNT ( * ) - + + 29 col2 FROM tab0 cor0
----
-32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT - - 67 + - col0 + 48 DIV + col1 col2 FROM tab1 AS cor0
----
-23
-9
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4535
SELECT - - 67 + - col0 + 48 / + col1 col2 FROM tab1 AS cor0
----
-23
-9
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + SUM( + col1 ) col1 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4536
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + SUM ( + col1 ) col1 FROM tab2 AS cor0
----
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - - col2 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT 18 * - COUNT( * ) + - CAST( - 80 AS SIGNED ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4538
SELECT 18 * - COUNT ( * ) + - CAST ( - 80 AS INTEGER ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT + col2 + 63 AS col2 FROM tab0 AS cor0
----
110
162
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT + - SUM( col0 ) + - CAST( - COUNT( * ) AS SIGNED ) * - 47 + + + ( - + 24 ) AS col1 FROM tab1 AS cor0
----
-392

skipif mysql # not compatible
query I rowsort label-4540
SELECT + - SUM ( col0 ) + - CAST ( - COUNT ( * ) AS INTEGER ) * - 47 + + + ( - + 24 ) AS col1 FROM tab1 AS cor0
----
-392

query I rowsort
SELECT + - 43 FROM tab2 AS cor0 WHERE ( + 75 ) <> - - col1
----
-43
-43
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4542
SELECT - CAST( COUNT( * ) AS SIGNED ) + + + 76 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4542
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + + + 76 FROM tab2
----
73

query I rowsort
SELECT ALL col1 + + + 75 * col2 AS col1 FROM tab0
----
3606
7426
771

query I rowsort
SELECT 60 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 29 ) col1 FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + SUM( - ( col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121

skipif mysql # not compatible
query I rowsort label-4546
SELECT + SUM ( - ( col2 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT 43 * - SUM( ALL + 26 ) FROM tab0 AS cor0
----
-3354

skipif mysql # not compatible
query I rowsort label-4547
SELECT 43 * - SUM ( ALL + 26 ) FROM tab0 AS cor0
----
-3354

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT + SUM( + - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + SUM ( + - ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT DISTINCT - + 83 AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-83
3

skipif mysql # not compatible
query II rowsort label-4549
SELECT DISTINCT - + 83 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-83
3

query II rowsort
SELECT DISTINCT + + col2 AS col0, + 58 AS col1 FROM tab0 WHERE ( - col1 ) <= ( NULL )
----

query I rowsort
SELECT + + 65 AS col1 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT + col2 * + + col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - - 80 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT - col0 + - - 87 FROM tab1 AS cor0
----
-4
2
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT - 28 + + - col0 * + col0 DIV ( col0 ) FROM tab0 AS cor0
----
-115
-125
-43

skipif mysql # not compatible
query I rowsort label-4555
SELECT - 28 + + - col0 * + col0 / ( col0 ) FROM tab0 AS cor0
----
-115
-125
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab2
----
73

query I rowsort
SELECT - col1 - + col2 + + + col0 + - col2 AS col0 FROM tab2 WHERE NOT - col2 BETWEEN col0 AND NULL
----
-108
-51
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL + SUM( DISTINCT 51 ) + - ( - + ( + COUNT( * ) ) ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + SUM ( DISTINCT 51 ) + - ( - + ( + COUNT ( * ) ) ) AS col0 FROM tab0
----
54

query II rowsort
SELECT DISTINCT 86 AS col2, + 77 FROM tab0
----
86
77

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL COUNT( * ) * - 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL COUNT ( * ) * - 97 FROM tab1
----
-291

query I rowsort
SELECT ALL + ( - 55 ) AS col2 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT - ( + - ( - - ( 91 ) ) ) FROM tab2 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL - + 81 + - COUNT( * ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - + 81 + - COUNT ( * ) FROM tab0 AS cor0
----
-84

query I rowsort
SELECT + - 9 * + col2 AS col0 FROM tab2 AS cor0
----
-207
-360
-522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4566
SELECT + col2 * + + 49 AS col2, CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
2891
-85
3332
-91
4704
-51

skipif mysql # not compatible
query II rowsort label-4566
SELECT + col2 * + + 49 AS col2, CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
2891
-85
3332
-91
4704
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT DISTINCT - ( + CAST( col1 AS SIGNED ) ) * + + 12 + - 85 FROM tab2 AS cor0 WHERE NOT 80 * - 83 * - + CAST( + col0 AS SIGNED ) + CAST( + + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT - ( + CAST ( col1 AS INTEGER ) ) * + + 12 + - 85 FROM tab2 AS cor0 WHERE NOT 80 * - 83 * - + CAST ( + col0 AS INTEGER ) + CAST ( + + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT DISTINCT + col0 DIV 27 + col1 AS col2 FROM tab0 AS cor0
----
24
4
81

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + col0 / 27 + col1 AS col2 FROM tab0 AS cor0
----
24
4
81

query I rowsort
SELECT ALL + col2 * - + col2 * - ( + + col0 ) AS col2 FROM tab0 cor0
----
33135
8700
950697

query I rowsort
SELECT 31 - + - col0 FROM tab1
----
116
122
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT col0 - + ( - col1 ) DIV col0 col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4571
SELECT col0 - + ( - col1 ) / col0 col1 FROM tab1
----
51
85
91

query II rowsort
SELECT ALL col2 AS col2, ( + col0 ) FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + MAX( + 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4573
SELECT + MAX ( + 7 ) FROM tab1
----
7

query I rowsort
SELECT DISTINCT + - 44 * col2 * - 45 AS col0 FROM tab2 AS cor0
----
114840
45540
79200

query I rowsort
SELECT 66 * + 42 * - col0 * 39 FROM tab1 AS cor0
----
-5513508
-9189180
-9837828

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - 41 * - + ( - CAST( col0 AS DECIMAL ) ) + col2 <= - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4576
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - 41 * - + ( - CAST ( col0 AS REAL ) ) + col2 <= - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4577
SELECT CAST( NULL AS SIGNED ), col1 col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4577
SELECT CAST ( NULL AS INTEGER ), col1 col0 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36, - 83 col0 FROM tab1
----
36
-83
36
-83
36
-83

query II rowsort
SELECT ALL - col2 AS col0, - ( + + col2 ) AS col1 FROM tab1
----
-59
-59
-68
-68
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 85 AS col1, - col1 col0 FROM tab1 AS cor0
----
-85
-14
-85
-47
-85
-5

query I rowsort
SELECT ALL 91 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, - col2 FROM tab1 cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL - 37 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 61 AND NULL
----

query I rowsort
SELECT DISTINCT 22 + + col1 FROM tab0 AS cor0
----
103
23
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT + ( + + 85 ) * - 43 + CAST( + + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT + ( + + 85 ) * - 43 + CAST ( + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ( MAX( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4586
SELECT ( MAX ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT + COUNT( * ) + + 99 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT + COUNT ( * ) + + 99 FROM tab2 AS cor0
----
102

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 + + 89 + + col2 + + 82 * - col0 <> NULL
----

query I rowsort
SELECT ( col0 ) * - - 33 AS col0 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT 27 * + ( col2 ) + + ( col0 ) AS col1, - col1 AS col1 FROM tab2
----
1144
-77
1641
-67
667
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT - 19 * MIN( ALL + CAST( ( - + col1 ) AS SIGNED ) ) + - 93 AS col2 FROM tab2
----
1370

skipif mysql # not compatible
query I rowsort label-4592
SELECT - 19 * MIN ( ALL + CAST ( ( - + col1 ) AS INTEGER ) ) + - 93 AS col2 FROM tab2
----
1370

query I rowsort
SELECT DISTINCT ( + col0 ) + + col1 - 2 AS col1 FROM tab1 AS cor0
----
136
63
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - - col0 * - 73 + + 98 > NULL OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 54 AS col2, + col1 FROM tab1
----
-54
14
-54
47
-54
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + + col0
----

query I rowsort
SELECT - 98 + - + col1 + col0 FROM tab1 AS cor0
----
-18
-54
-61

query I rowsort
SELECT - col0 + + 70 AS col2 FROM tab0 AS cor0
----
-17
-27
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4599
SELECT - COUNT( * ) DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-4599
SELECT - COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

query I rowsort
SELECT + 68 * - + col0 FROM tab2 WHERE NOT ( + + 14 * - 76 / ( + - 49 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT DISTINCT - col1 DIV 8 DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - col1 / 8 / - col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT ( + SUM( ALL col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT ( + SUM ( ALL col0 ) ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT 55 + - 99 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-4603
SELECT 55 + - 99 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL - SUM( - 72 ) * - 37 AS col2 FROM tab1 AS cor0
----
-7992

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - SUM ( - 72 ) * - 37 AS col2 FROM tab1 AS cor0
----
-7992

query I rowsort
SELECT - 63 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + COUNT( * ) * + 71 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-4606
SELECT + COUNT ( * ) * + 71 FROM tab2 cor0
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT DISTINCT + + col2 DIV - 52 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT + + col2 / - 52 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT - col2 * + - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT - col2 * + - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 4 AS col1 FROM tab2 AS cor0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT - 9 + + + SUM( DISTINCT + + 56 ), 86 * - 95 AS col0 FROM tab0 AS cor0
----
47
-8170

skipif mysql # not compatible
query II rowsort label-4610
SELECT - 9 + + + SUM ( DISTINCT + + 56 ), 86 * - 95 AS col0 FROM tab0 AS cor0
----
47
-8170

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + COUNT( * ) * + ( - 11 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + COUNT ( * ) * + ( - 11 ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL + + 19 + - col1 FROM tab2 AS cor0
----
-32
-48
-58

query I rowsort
SELECT + - col2 + 83 AS col2 FROM tab0 AS cor0
----
-16
36
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 24 + - col2 AS col0 FROM tab1 AS cor0
----
-120
-83
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT - - 19 + + COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4616
SELECT - - 19 + + COUNT ( * ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT COUNT( * ) + + 38 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT COUNT ( * ) + + 38 FROM tab1 AS cor0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL 38 * CAST( + 37 AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
1409

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL 38 * CAST ( + 37 AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
1409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4619
SELECT * FROM tab0 WHERE - + CAST( + col0 AS SIGNED ) - + col0 / + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4619
SELECT * FROM tab0 WHERE - + CAST ( + col0 AS INTEGER ) - + col0 / + - col1 IS NULL
----

query I rowsort
SELECT ALL + col2 + + + col2 AS col0 FROM tab2
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col0 * + 45 AS col2 FROM tab2
----
-46
-2070
-64
-2880
-75
-3375

query I rowsort
SELECT DISTINCT col1 * - col0 * - + 85 AS col2 FROM tab0
----
103275
155295
8245

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4623
SELECT ALL CAST( - col1 AS SIGNED ) * + col1 * - - col1 AS col0, col1 FROM tab0
----
-1
1
-531441
81
-9261
21

skipif mysql # not compatible
query II rowsort label-4623
SELECT ALL CAST ( - col1 AS INTEGER ) * + col1 * - - col1 AS col0, col1 FROM tab0
----
-1
1
-531441
81
-9261
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT 40 * col2 * + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT 40 * col2 * + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4625
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ( - COUNT( - + 54 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4626
SELECT ( - COUNT ( - + 54 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT COUNT( * ) * + 64 AS col1 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-4627
SELECT COUNT ( * ) * + 64 AS col1 FROM tab0
----
192

query I rowsort
SELECT col0 * + 86 AS col0 FROM tab1
----
4386
7310
7826

query I rowsort
SELECT + 35 - + + col2 + - + 51 + + - col2 AS col0 FROM tab0 cor0
----
-110
-214
-36

query I rowsort
SELECT DISTINCT - - 85 + - 10 FROM tab1 cor0
----
75

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= 25 + + + col1
----

query I rowsort
SELECT ALL 63 - + col1 FROM tab1
----
16
49
58

query I rowsort
SELECT + 71 * - - col0 AS col2 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT ALL col1 - + col1 * + col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 85 + + + 87 col1 FROM tab2 AS cor0
----
3997
5527
6462

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - ( - COUNT( * ) ) * - - 55 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - ( - COUNT ( * ) ) * - - 55 FROM tab0 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT MIN( DISTINCT - - 64 ) AS col0 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT MIN ( DISTINCT - - 64 ) AS col0 FROM tab2 cor0
----
64

query I rowsort
SELECT DISTINCT 95 * - 12 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 53 - + ( col2 ) AND + ( - col2 ) * - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT COUNT( * ) * + - COUNT( * ) DIV - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4639
SELECT COUNT ( * ) * + - COUNT ( * ) / - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + SUM( DISTINCT - - ( + + col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4640
SELECT + SUM ( DISTINCT - - ( + + col1 ) ) FROM tab0
----
103

query II rowsort
SELECT col1, 77 * + + 58 * + + col2 AS col2 FROM tab2
----
51
102718
67
259028
77
178640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT CAST( NULL AS SIGNED ) / + - ( COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT CAST ( NULL AS INTEGER ) / + - ( COUNT ( * ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT MAX( ALL + col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4643
SELECT MAX ( ALL + col1 ) col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 78 / + col1 BETWEEN NULL AND + + col0 * - + 0
----

query II rowsort
SELECT DISTINCT + col2, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL ( 84 ) + - col1 FROM tab1
----
37
70
79

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - + 65 BETWEEN + 91 AND ( col0 )
----

query I rowsort
SELECT ALL + col0 * col1 + + ( col2 ) * col0 AS col1 FROM tab1
----
10465
5440
5610

query I rowsort
SELECT col2 + + 60 AS col0 FROM tab2
----
100
118
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT DISTINCT 0 * 63 + + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT 0 * 63 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 72 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 91
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN + 70 - - ( - col0 ) AND 25
----
15
81
47
97
1
99

query I rowsort
SELECT ALL ( 47 ) FROM tab1
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4656
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN col2 * col0 AND col1 - - 97
----

skipif mysql # not compatible
query III rowsort label-4656
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN col2 * col0 AND col1 - - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - ( ( COUNT( * ) ) ) + 1 * - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4657
SELECT - ( ( COUNT ( * ) ) ) + 1 * - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + ( + col1 ) + - col1 DIV - ( col0 * - col1 + col1 * 60 ) col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4658
SELECT + ( + col1 ) + - col1 / - ( col0 * - col1 + col1 * 60 ) col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / - col0 = ( NULL )
----

query I rowsort
SELECT - 75 * - col1 AS col0 FROM tab1
----
1050
3525
375

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT + 24 + + COUNT( * ) AS col1 FROM tab1 WHERE + col2 - col1 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + 24 + + COUNT ( * ) AS col1 FROM tab1 WHERE + col2 - col1 IS NULL
----
24

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + col1 >= ( - col1 )
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + 19 ) AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN ( 64 ) AND - col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT MIN( - col1 ) * 78 AS col2 FROM tab2
----
-6006

skipif mysql # not compatible
query I rowsort label-4666
SELECT MIN ( - col1 ) * 78 AS col2 FROM tab2
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + MIN( DISTINCT col0 ) * - 45 AS col0 FROM tab0
----
-675

skipif mysql # not compatible
query I rowsort label-4667
SELECT + MIN ( DISTINCT col0 ) * - 45 AS col0 FROM tab0
----
-675

query I rowsort
SELECT 39 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + 62 FROM tab0 WHERE ( + 89 ) IS NOT NULL
----
149
159
77

query I rowsort
SELECT col0 * col2 - + 96 AS col2 FROM tab1
----
4800
4919
6092

query I rowsort
SELECT 11 FROM tab1 WHERE 42 / + col1 IS NULL
----

query I rowsort
SELECT + col1 * + 76 FROM tab0
----
1596
6156
76

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4674
SELECT ( col0 ) DIV 37 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4674
SELECT ( col0 ) / 37 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT 72 + + 13 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + col2 + - col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1560
-3306
-506

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4677
SELECT ALL - 0 * ( + COUNT( ALL col2 ) ) AS col1 FROM tab2 WHERE col1 + - col0 NOT BETWEEN + col2 AND CAST( + 94 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - 0 * ( + COUNT ( ALL col2 ) ) AS col1 FROM tab2 WHERE col1 + - col0 NOT BETWEEN + col2 AND CAST ( + 94 AS REAL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 41 >= ( col1 + + col1 )
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4679
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( col1 * col1 + 37 )
----

skipif mysql # not compatible
query III rowsort label-4679
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col1 * col1 + 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT 72 * SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
-8712

skipif mysql # not compatible
query I rowsort label-4681
SELECT 72 * SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - 55 * MIN( DISTINCT 29 ) col1 FROM tab1 AS cor0
----
-1595

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4682
SELECT - 55 * MIN ( DISTINCT 29 ) col1 FROM tab1 AS cor0
----
-1595

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > 62
----

query I rowsort
SELECT 23 * col0 AS col2 FROM tab0 cor0
----
2001
2231
345

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 28 + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 31 + - 76 >= + col2
----
-3

skipif mysql # not compatible
query I rowsort label-4686
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 31 + - 76 >= + col2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4687
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col1 * 71
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4687
SELECT - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col1 * 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT + 25 * SUM( col1 ) FROM tab2 WHERE NOT col1 / + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 25 * SUM ( col1 ) FROM tab2 WHERE NOT col1 / + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 WHERE NOT ( - ( col0 ) ) IN ( col1 * 96 + col1 * 37 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT + MIN( + 11 ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-4690
SELECT + MIN ( + 11 ) AS col1 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT SUM( DISTINCT + 59 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4691
SELECT SUM ( DISTINCT + 59 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT - col1 + - 79 FROM tab0 WHERE NOT ( NULL ) IN ( - col1 + - 84 )
----

query I rowsort
SELECT ALL 51 * - col2 AS col1 FROM tab2
----
-1173
-2040
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + COUNT( ALL - ( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( ALL - ( + col2 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE col0 * + col1 = ( + 32 * + 70 )
----

query I rowsort
SELECT col1 * - ( 63 ) FROM tab2 AS cor0
----
-3213
-4221
-4851

query I rowsort
SELECT 46 * - - col0 AS col1 FROM tab0 AS cor0
----
4002
4462
690

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL 47 AS col1, - 51 AS col0 FROM tab1
----
47
-51
47
-51
47
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT - - COUNT( * ) + MAX( - col1 ) FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4701
SELECT - - COUNT ( * ) + MAX ( - col1 ) FROM tab1 cor0
----
-2

query I rowsort
SELECT + 40 + + col0 AS col2 FROM tab0 cor0
----
127
137
55

query I rowsort
SELECT + - col1 * col0 + 57 - - col0 AS col1 FROM tab1 AS cor0
----
-283
-4129
-606

query II rowsort
SELECT DISTINCT col2 AS col2, + 76 AS col0 FROM tab1 AS cor0
----
59
76
68
76
96
76

query I rowsort
SELECT + - col0 + 34 + + - 53 FROM tab2 AS cor0
----
-65
-83
-94

query I rowsort
SELECT ALL 71 * col1 + - + col0 - 87 AS col1 FROM tab1 cor0
----
183
3159
856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4707
SELECT + 54 + 26 + + SUM( DISTINCT + col1 ) DIV COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
182

skipif mysql # not compatible
query I rowsort label-4707
SELECT + 54 + 26 + + SUM ( DISTINCT + col1 ) / COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT - MAX( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT - MAX ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4709
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4709
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > - CAST ( NULL AS REAL )
----

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE - col2 * - col1 * col0 + 99 BETWEEN col2 AND 54
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 71
----

query I rowsort
SELECT col0 + ( col1 - + col0 ) AS col0 FROM tab0 WHERE ( col2 ) <> col0
----
1
21
81

query I rowsort
SELECT + 16 FROM tab1 WHERE - col0 = col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + - 51 ) * 84 + + 38 col2 FROM tab1
----
218522
364178
389882

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 70 * - col1 FROM tab0
----
1470
5670
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT ALL ( + - col0 ) - - 4 DIV - 38 + 95 AS col0 FROM tab0
----
-2
8
80

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL ( + - col0 ) - - 4 / - 38 + 95 AS col0 FROM tab0
----
-2
8
80

query I rowsort
SELECT col1 - + - col0 + + 38 FROM tab2
----
135
179
180

query I rowsort
SELECT - ( - + col2 ) - - - col0 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - - 56 + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - - 56 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL COUNT( * ) * - - 1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL COUNT ( * ) * - - 1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT - col2 * - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-4723
SELECT - col2 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
210
3807
99

query II rowsort
SELECT ALL 16 / col0, - col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 45 AS col0 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + - 70 > NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 <= + - col1 * - + 2
----
-99

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + 85 BETWEEN ( ( + + col2 ) ) AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + 85 BETWEEN ( ( + + col2 ) ) AND - col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT DISTINCT 20, MAX( ALL - + col0 ) - - + COUNT( * ) AS col0 FROM tab0
----
20
-12

skipif mysql # not compatible
query II rowsort label-4731
SELECT DISTINCT 20, MAX ( ALL - + col0 ) - - + COUNT ( * ) AS col0 FROM tab0
----
20
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT + 41 DIV + + 98 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT + 41 / + + 98 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT 2 DIV + - col2 * + + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT 2 / + - col2 * + + col0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col1 + col2 NOT IN ( + 16 * ( + 38 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 / - 29 AS col2 FROM tab1 WHERE col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - 46 + - col1 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 col2 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL MIN( - col2 ) FROM tab2 AS cor0 WHERE col0 / - 88 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL MIN ( - col2 ) FROM tab2 AS cor0 WHERE col0 / - 88 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 15 * + col2 col2 FROM tab1 AS cor0
----
-1389
-800
-929

query II rowsort
SELECT col1 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4743
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IN ( + 74, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-4743
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IN ( + 74, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ( CAST( - ( col0 ) AS SIGNED ) ) FROM tab2 WHERE col1 * + 31 * - col1 + 10 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4744
SELECT ( CAST ( - ( col0 ) AS INTEGER ) ) FROM tab2 WHERE col1 * + 31 * - col1 + 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT + + CAST( - 14 AS SIGNED ) - + 4 + + col0 + + col0 * + - 95 + 21 AS col2 FROM tab1 AS cor0
----
-4791
-7987
-8551

skipif mysql # not compatible
query I rowsort label-4745
SELECT + + CAST ( - 14 AS INTEGER ) - + 4 + + col0 + + col0 * + - 95 + 21 AS col2 FROM tab1 AS cor0
----
-4791
-7987
-8551

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col1 * col2 / - + col0 + - col1 / + col2 <> + 62
----
23
40
58

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE - 49 * col1 BETWEEN 18 AND ( + - col0 )
----

query I rowsort
SELECT - col0 + + + 76 AS col0 FROM tab1 AS cor0
----
-15
-9
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT - + col1 + - col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1296
-1848
-98

skipif mysql # not compatible
query I rowsort label-4749
SELECT - + col1 + - col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT + 85 / + col2 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col0 NOT IN ( + + 33 + 48 * + col0 ) )
----

query I rowsort
SELECT - - ( - col2 ) + - col2 AS col0 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT DISTINCT 94 + - 62 FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT MIN( ALL - + col1 ) AS col0 FROM tab1 WHERE + 30 + col0 > - + 76
----
-47

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT MIN ( ALL - + col1 ) AS col0 FROM tab1 WHERE + 30 + col0 > - + 76
----
-47

query I rowsort
SELECT + 82 * col0 + ( + 61 ) AS col2 FROM tab1
----
4243
7031
7523

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + + col0 / - 59 ) NOT IN ( col2 * + + col2 )
----

query I rowsort
SELECT - col1 + 64 * - col2 AS col2 FROM tab1
----
-3781
-4399
-6158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) / - - col2 * - 47 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) / - - col2 * - 47 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN ( - - 62 ) AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL + 34 * - ( 53 ) - - col0 + - - 13 + - CAST( + col0 AS SIGNED ) + - + col2 * + col2 col0 FROM tab0
----
-11590
-1889
-3998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4759
SELECT ALL + 34 * - ( 53 ) - - col0 + - - 13 + - CAST ( + col0 AS INTEGER ) + - + col2 * + col2 col0 FROM tab0
----
-11590
-1889
-3998

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT + CAST( col0 AS SIGNED ) * 78 AS col2 FROM tab2 AS cor0
----
3588
4992
5850

skipif mysql # not compatible
query I rowsort label-4761
SELECT + CAST ( col0 AS INTEGER ) * 78 AS col2 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT DISTINCT COUNT( * ) * + CAST( - 25 AS SIGNED ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT COUNT ( * ) * + CAST ( - 25 AS INTEGER ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT - - ( + COUNT( * ) ) * 28 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - - ( + COUNT ( * ) ) * 28 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL - 56 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT 74 DIV + 29 - 80 FROM tab1, tab0 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

skipif mysql # not compatible
query I rowsort label-4765
SELECT 74 / + 29 - 80 FROM tab1, tab0 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT DISTINCT - ( - col0 ) FROM tab1 WHERE NULL IN ( + col2 * - + 29, - col1, col0 * + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - ( - col0 ) FROM tab1 WHERE NULL IN ( + col2 * - + 29, - col1, col0 * + CAST ( col1 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 77 col1 FROM tab1 AS cor0
----
3927
6545
7007

query I rowsort
SELECT - 90 * col1 AS col0 FROM tab2 cor0
----
-4590
-6030
-6930

query I rowsort
SELECT ALL ( - col2 ) * - 79 FROM tab1 AS cor0
----
4661
5372
7584

query I rowsort
SELECT + ( - 32 ) * - col1 FROM tab2 AS cor0
----
1632
2144
2464

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - + col0 * + 27 FROM tab0 AS cor0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - - 75 * + MIN( - col2 ) AS col0 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
-7425

skipif mysql # not compatible
query I rowsort label-4774
SELECT - - 75 * + MIN ( - col2 ) AS col0 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
-7425

query I rowsort
SELECT DISTINCT - ( + col0 ) * - ( + - col2 ) FROM tab0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL + col2, + col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT IN ( - 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2 AS col1, - col1 * - col0, - col2 col0 FROM tab0
----
9 values hashing to 59ba40d956e5e5df71d0abde85fbdf80

query I rowsort
SELECT ( + - 24 ) AS col2 FROM tab1
----
-24
-24
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT ALL col1 + - col0 - + 25 - - col2 DIV - 2 * - col1 DIV - ( + + col1 ) FROM tab2
----
-31
-32
-62

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL col1 + - col0 - + 25 - - col2 / - 2 * - col1 / - ( + + col1 ) FROM tab2
----
-31
-32
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4781
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) + + col2 ) > col2
----

skipif mysql # not compatible
query III rowsort label-4781
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) + + col2 ) > col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4782
SELECT - + col1 + + + CAST( NULL AS DECIMAL ) + - - col2 * + + col2, 8 AS col1 FROM tab2 AS cor0
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-4782
SELECT - + col1 + + + CAST ( NULL AS REAL ) + - - col2 * + + col2, 8 AS col1 FROM tab2 AS cor0
----
NULL
8
NULL
8
NULL
8

query I rowsort
SELECT ALL col1 * - col1 + + 10 - + - col2 + 10 AS col1 FROM tab1 AS cor0
----
-2121
-80
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + - COUNT( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4784
SELECT + - COUNT ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4785
SELECT * FROM tab0 AS cor0 WHERE + col2 / - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4785
SELECT * FROM tab0 AS cor0 WHERE + col2 / - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4786
SELECT ALL - + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + ( ( - - COUNT( * ) ) ) - 26 AS col1 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4787
SELECT + ( ( - - COUNT ( * ) ) ) - 26 AS col1 FROM tab1
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 - 11 + 44 * - ( - col0 ) - + col2 * col1 col1 FROM tab2
----
-304
-626
811

query I rowsort
SELECT ALL - 40 - + + 70 + - - col1 FROM tab1
----
-105
-63
-96

query II rowsort
SELECT ALL + col0 * + col0 AS col2, - col1 FROM tab2
----
2116
-51
4096
-77
5625
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + 30 + + col1
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 - - + 63 * + + 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 * 90 AS col2 FROM tab2
----
105570
277200
349740

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - 79 AND - col2 - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 / + col2 * ( + ( - 81 ) ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT ALL COUNT( * ) DIV - 5 * + 98 * - + 68 + ( + + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL COUNT ( * ) / - 5 * + 98 * - + 68 + ( + + COUNT ( * ) ) FROM tab2 cor0
----
3

query II rowsort
SELECT + 96 AS col1, ( - - col1 ) + + col2 FROM tab1 AS cor0
----
96
110
96
115
96
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * 95 / - col2 NOT BETWEEN col2 AND + 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT SUM( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT SUM ( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL 74 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE NOT + ( + 27 ) + - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, - ( 71 ) FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4806
SELECT DISTINCT CAST( col1 AS SIGNED ) * - - 8 AS col0 FROM tab0
----
168
648
8

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - - 8 AS col0 FROM tab0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT COUNT( * ) + + + 10 AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-4807
SELECT COUNT ( * ) + + + 10 AS col0 FROM tab1
----
13

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= + ( - col1 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL 35 * - COUNT( * ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 35 * - COUNT ( * ) FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - MIN( ALL + 49 ) AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - MIN ( ALL + 49 ) AS col1 FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - 94 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - 94 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - 80 * COUNT( * ) * + 90 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-583200

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - 80 * COUNT ( * ) * + 90 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-583200

query I rowsort
SELECT ALL + col2 - + 11 FROM tab2
----
12
29
47

query II rowsort
SELECT ALL col2, col2 * + - col1 FROM tab2 cor0
----
23
-1173
40
-3080
58
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 87 col2 FROM tab1 AS cor0
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - 9 * - col0 - + - col2 - - col2 NOT IN ( - 13 )
----

query I rowsort
SELECT 15 + col2 AS col0 FROM tab2 AS cor0
----
38
55
73

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( 65 - - col0 )
----

query I rowsort
SELECT - 67 + + - col0 AS col1 FROM tab1 AS cor0
----
-118
-152
-158

query I rowsort
SELECT + 9 * + 13 * 34 + 21 FROM tab0 AS cor0
----
3999
3999
3999

query III rowsort
SELECT * FROM tab2 WHERE + - col2 <= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - 20 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= 45
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + - col2 <= + - col2
----

query II rowsort
SELECT ALL 62 AS col1, col2 + + col0 FROM tab2
----
62
104
62
133
62
69

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 / - col1 ) > NULL
----

query II rowsort
SELECT DISTINCT + - 23, + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-23
1215
-23
1827
-23
97

query II rowsort
SELECT DISTINCT + - col1 AS col2, + ( + col0 ) FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + ( + - 16 ) FROM tab1 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 90 col2 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - 64 * + col2 FROM tab1
----
-3776
-4352
-6144

query I rowsort
SELECT - col1 * - - 23 FROM tab2
----
-1173
-1541
-1771

query I rowsort
SELECT ( + - 91 ) FROM tab2
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + + 50 * ( 5 ) AS col2 FROM tab2 AS cor0
----
250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4835
SELECT ALL - COUNT( * ) DIV - - 50 + COUNT( + col0 ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - COUNT ( * ) / - - 50 + COUNT ( + col0 ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 cor0 WHERE ( col0 * + col2 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL - 60 / - 84 * 73 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - 60 / - 84 * 73 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + ( + col2 ) AS col2, 99 AS col1 FROM tab2 AS cor0
----
23
99
40
99
58
99

query I rowsort
SELECT ALL + col1 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL - 73 + - + MIN( ALL - + col0 ) AS col2 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - 73 + - + MIN ( ALL - + col0 ) AS col2 FROM tab1
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-4841
SELECT DISTINCT 54 * - + 7 + - col1, - col0 + + col0 DIV + 25 col0 FROM tab0
----
-379
-94
-399
-84
-459
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4841
SELECT DISTINCT 54 * - + 7 + - col1, - col0 + + col0 / + 25 col0 FROM tab0
----
-379
-94
-399
-84
-459
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT COUNT( * ) DIV 59 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT COUNT ( * ) / 59 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 80 IS NULL )
----

query I rowsort
SELECT + col0 * + 67 AS col2 FROM tab1
----
3417
5695
6097

query II rowsort
SELECT DISTINCT + col0 + - col1 + + col2 AS col2, 1 FROM tab2 AS cor0
----
18
1
27
1
66
1

query I rowsort
SELECT ALL - 45 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 + + col0, 89 col2 FROM tab2
----
63
89
81
89
92
89

query I rowsort
SELECT + ( - col2 ) + + + ( - ( 21 ) ) * - - 16 AS col0 FROM tab2
----
-359
-376
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL - - COUNT( * ) * 14 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
126

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - - COUNT ( * ) * 14 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
126

query I rowsort
SELECT + ( - 17 ) FROM tab1
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT CAST( + - COUNT( ALL - col2 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4851
SELECT CAST ( + - COUNT ( ALL - col2 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL + col2 * - - col2 - + 56 * - 7 + - 90 + + 99 AS col0 FROM tab1 AS cor0
----
3882
5025
9617

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + - 95 * + 93 * - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col0 * - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4853
SELECT + - 95 * + 93 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col0 * - col1 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT + col1 DIV + 52 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4854
SELECT + col1 / + 52 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 33 BETWEEN ( + + col0 ) * - 49 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - MAX( col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - MAX ( col2 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT 52 AS col0, - COUNT( * ) AS col0 FROM tab2
----
52
-3

skipif mysql # not compatible
query II rowsort label-4858
SELECT 52 AS col0, - COUNT ( * ) AS col0 FROM tab2
----
52
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4859
SELECT + COUNT( * ), CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4859
SELECT + COUNT ( * ), CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
NULL

query I rowsort
SELECT ( - + col0 ) * + col2 + 5 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT COUNT( * ) * - COUNT( col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4861
SELECT COUNT ( * ) * - COUNT ( col2 ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT - 38 + 21 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT 33 + ( + col1 ) FROM tab0 AS cor0
----
114
34
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + 61
----

query I rowsort
SELECT 2 + - col1 * - 99 AS col2 FROM tab1
----
1388
4655
497

query I rowsort
SELECT ALL - 58 * - col0 AS col0 FROM tab1
----
2958
4930
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 24 * + 92 AS col1, 64 col1 FROM tab1
----
2208
64

query I rowsort
SELECT ( col1 ) + + ( col1 ) + - col1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4870
SELECT ALL - 13 + + col1 * CAST( + 40 AS SIGNED ) + col2 AS col0, ( col1 ) FROM tab1
----
1935
47
246
5
643
14

skipif mysql # not compatible
query II rowsort label-4870
SELECT ALL - 13 + + col1 * CAST ( + 40 AS INTEGER ) + col2 AS col0, ( col1 ) FROM tab1
----
1935
47
246
5
643
14

query I rowsort
SELECT ALL - col0 - + col0 * + + col1 AS col0 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 17 + col1 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL 49 + - 78 + + MAX( ALL - col1 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL 49 + - 78 + + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT + - 26 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 - ( - col2 ) col0 FROM tab1
----
120
129
157

query I rowsort
SELECT ALL - col0 * ( 10 ) - - - 41 FROM tab1
----
-551
-891
-951

query I rowsort
SELECT - col0 + col2 FROM tab2 WHERE + + col0 * + + col0 IS NOT NULL
----
-17
-23
-24

query II rowsort
SELECT DISTINCT col1, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL - col1 * col0 - - col0 * col1 AS col0 FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL - col1 * col0 - - col0 * col1 AS col0 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
0
0

query II rowsort
SELECT DISTINCT + col2, + 26 FROM tab1 AS cor0
----
59
26
68
26
96
26

query I rowsort
SELECT - - 34 * - 65 * + 1 AS col0 FROM tab2 AS cor0
----
-2210
-2210
-2210

query I rowsort
SELECT DISTINCT 29 * + col2 FROM tab0 AS cor0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - COUNT( * ) * 34 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4883
SELECT - COUNT ( * ) * 34 FROM tab2 AS cor0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL CAST( NULL AS SIGNED ) / - col2 * ( + - 92 ) * - + 99 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 * ( + - 92 ) * - + 99 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT + 9 DIV col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT + 9 / col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT DISTINCT - 24 DIV - col2 AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - 24 / - col2 AS col0 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT DISTINCT - 12 DIV - SUM( + 56 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - 12 / - SUM ( + 56 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - 67 * + COUNT( * ) * - ( - COUNT( * ) ) * - COUNT( * ) FROM tab0
----
1809

skipif mysql # not compatible
query I rowsort label-4888
SELECT - 67 * + COUNT ( * ) * - ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab0
----
1809

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - MIN( - + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4889
SELECT - MIN ( - + col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT SUM( - + 62 ) AS col1 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4890
SELECT SUM ( - + 62 ) AS col1 FROM tab1 AS cor0
----
-186

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT ALL + 61 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + 61 / + - COUNT ( * ) FROM tab2 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - - MIN( DISTINCT 7 ) col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4893
SELECT DISTINCT - - MIN ( DISTINCT 7 ) col1 FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT COUNT( * ) + - + MIN( + 26 ) AS col2 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4894
SELECT COUNT ( * ) + - + MIN ( + 26 ) AS col2 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + + COUNT( * ) + + COUNT( 94 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4895
SELECT + + COUNT ( * ) + + COUNT ( 94 ) AS col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 * + 24 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col2 * - col2 AND - col0
----

query I rowsort
SELECT - + 66 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + 42 * 6 * - - 28 - - 20 + - col1 - + col2 * + - ( + - col0 ) AS col2 FROM tab1
----
2056
2166
841

query II rowsort
SELECT col1 AS col1, col1 + + col2 + + col2 FROM tab2
----
51
97
67
183
77
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - MIN( - 54 ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4903
SELECT - MIN ( - 54 ) AS col1 FROM tab0
----
54

query I rowsort
SELECT 5 * col2 AS col2 FROM tab2
----
115
200
290

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT DISTINCT col2 - + 45 DIV - col1 AS col2 FROM tab0
----
12
144
47

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT col2 - + 45 / - col1 AS col2 FROM tab0
----
12
144
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4906
SELECT * FROM tab2 AS cor0 WHERE - col1 * + - col1 + + 37 BETWEEN NULL AND CAST( - 96 AS SIGNED ) AND NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4906
SELECT * FROM tab2 AS cor0 WHERE - col1 * + - col1 + + 37 BETWEEN NULL AND CAST ( - 96 AS INTEGER ) AND NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + ( + ( ( - + 48 ) ) ) + + - col1 - + - col0 AS col0 FROM tab0 AS cor0
----
-114
18
48

query II rowsort
SELECT DISTINCT + 74 + + col0 - - col2 AS col2, col2 * - 16 + 57 FROM tab1
----
218
-887
221
-1479
233
-1031

query I rowsort
SELECT - + 39 + - ( + - 83 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - 68 IS NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * + col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * - col1 * - 97 FROM tab1 AS cor0
----
-130368
-28615
-310012

query II rowsort
SELECT DISTINCT - - col0 * - col2 AS col2, - 89 AS col1 FROM tab2 AS cor0
----
-1058
-89
-2560
-89
-4350
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT SUM( DISTINCT - ( + col1 ) ) + - 2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT SUM ( DISTINCT - ( + col1 ) ) + - 2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT ALL - 26 DIV - col2 FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - 26 / - col2 FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - 71 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - 71 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 78 * - + col2 FROM tab0 AS cor0
----
3666
7722
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4918
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + + COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 77 * - + 72 AS col1 FROM tab0
----
5544
5544
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT - CAST( - 88 AS SIGNED ) FROM tab2
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4921
SELECT - CAST ( - 88 AS INTEGER ) FROM tab2
----
88
88
88

query I rowsort
SELECT DISTINCT 76 * col2 FROM tab2
----
1748
3040
4408

query I rowsort
SELECT ALL col1 + - 55 AS col0 FROM tab0 AS cor0
----
-34
-54
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 + col2 * - - 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) * + - 61 AS col0 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) * + - 61 AS col0 FROM tab0 AS cor0
----
183

query I rowsort
SELECT + 43 * ( - - col0 ) FROM tab0
----
3741
4171
645

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 AS col0 FROM tab1 AS cor0 WHERE col1 / ( col0 ) * + - col2 IS NOT NULL
----
4947
5100
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col0 FROM tab1 cor0
----
-72

query I rowsort
SELECT DISTINCT col0 + + col0 - 85 + 87 - - col2 AS col1 FROM tab0 AS cor0
----
186
295
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT + 89 + + COUNT( * ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 89 + + COUNT ( * ) FROM tab2 AS cor0
----
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 29 * + 10 + - col1 + - + col0 BETWEEN NULL AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 / col2 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 78 col2 FROM tab0
----
165
175
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT ALL col0 * - col2 * - col1 * + 8 - col1 DIV - col2 AS col2 FROM tab0
----
146162
456841
76824

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL col0 * - col2 * - col1 * + 8 - col1 / - col2 AS col2 FROM tab0
----
146162
456841
76824

query I rowsort
SELECT + 30 + col1 FROM tab2
----
107
81
97

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE - col2 + col2 IN ( col1 * col2 + - 61, - col0 + - 99 + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 - col2 col0 FROM tab0 AS cor0
----
-103
-140
-192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 15 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 57 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + SUM( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + SUM ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL < 43
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL < 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT - COUNT( * ) + - ( - 7 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-2

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - COUNT ( * ) + - ( - 7 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 AS col0, 49 col0 FROM tab1 AS cor0
----
51
49
85
49
91
49

query I rowsort
SELECT DISTINCT + col2 * col0 * + col2 FROM tab0 AS cor0
----
33135
8700
950697

query II rowsort
SELECT + 47 AS col1, - col2 AS col0 FROM tab2 cor0
----
47
-23
47
-40
47
-58

query I rowsort
SELECT ( + - 89 ) FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4947
SELECT DISTINCT ( - - ( + - 70 ) ) * + - COUNT( * ) AS col1, - 10 AS col2 FROM tab0 AS cor0
----
210
-10

skipif mysql # not compatible
query II rowsort label-4947
SELECT DISTINCT ( - - ( + - 70 ) ) * + - COUNT ( * ) AS col1, - 10 AS col2 FROM tab0 AS cor0
----
210
-10

query I rowsort
SELECT 67 * + col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
1125
2888
3559

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 + 69 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab1 cor0 WHERE NOT NULL BETWEEN + col2 + 69 AND NULL
----
NULL

query I rowsort
SELECT ALL col1 * 65 AS col1 FROM tab2 AS cor0
----
3315
4355
5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT + 21 / - ( col0 ) + - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + 21 / - ( col0 ) + - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT + ( - + 91 ) DIV + col2 AS col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT + ( - + 91 ) / + col2 AS col2 FROM tab1 cor0
----
-1
-1
0

query II rowsort
SELECT ALL - col1 * + + col2 AS col1, - col2 FROM tab0 WHERE NOT + col1 IS NULL
----
-210
-10
-3807
-47
-99
-99

query I rowsort
SELECT - col1 * + + col1 FROM tab1 WHERE NOT NULL <= - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 65 >= + + 31 + + 90 * + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 64 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT DISTINCT 40 * - COUNT( * ) AS col1, + 4 + COUNT( * ) AS col0 FROM tab0
----
-120
7

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT 40 * - COUNT ( * ) AS col1, + 4 + COUNT ( * ) AS col0 FROM tab0
----
-120
7

query I rowsort
SELECT ALL col1 * 84 FROM tab0
----
1764
6804
84

query I rowsort
SELECT DISTINCT + col0 * 37 * - - col1 FROM tab0
----
3589
44955
67599

query I rowsort
SELECT + ( - col2 ) * + - col1 AS col0 FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT DISTINCT ( + col1 ) + - col1 + - col0 * 42, - col2 AS col2 FROM tab0 AS cor0
----
-3654
-10
-4074
-99
-630
-47

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE - - col2 + 31 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT col2 DIV col1 + + col2 * + + col1 AS col0 FROM tab1
----
1350
306
3197

skipif mysql # not compatible
query I rowsort label-4963
SELECT col2 / col1 + + col2 * + + col1 AS col0 FROM tab1
----
1350
306
3197

query I rowsort
SELECT + 26 + - col0 + ( + 75 ) + + + col0 AS col1 FROM tab2
----
101
101
101

query I rowsort
SELECT + col1 + - 4 * + - col2 AS col0 FROM tab2 AS cor0
----
143
237
299

query I rowsort
SELECT + + 36 + col1 FROM tab2 cor0
----
103
113
87

query I rowsort
SELECT ALL + col2 + + + col2 + + 47 FROM tab2 AS cor0
----
127
163
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 12 + + + col1 col1 FROM tab0 AS cor0
----
-11
69
9

query I rowsort
SELECT ALL - 2 + col1 - + - col1 AS col1 FROM tab0
----
0
160
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT 59 + + COUNT( * ) + - COUNT( col0 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT 59 + + COUNT ( * ) + - COUNT ( col0 ) FROM tab2
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * + - col1 - col0 col0 FROM tab2
----
3575
4682
5403

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - 92 - COUNT( * ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 92 - COUNT ( * ) FROM tab2
----
-95

query I rowsort
SELECT DISTINCT col1 + - + 59 AS col2 FROM tab1
----
-12
-45
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT CAST( NULL AS SIGNED ) - 36 / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT CAST ( NULL AS INTEGER ) - 36 / + col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT ALL + col2 DIV + - col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4977
SELECT ALL + col2 / + - col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT DISTINCT SUM( ALL + - col0 ) DIV - 65 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT SUM ( ALL + - col0 ) / - 65 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 2 FROM tab0 cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT - MIN( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col0 col1 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT DISTINCT + 49 + col1 AS col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
54
63
96

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + 49 + col1 AS col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
54
63
96

query I rowsort
SELECT ALL + 49 AS col0 FROM tab1 WHERE 2 + - 67 IS NOT NULL
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT DISTINCT - col2 + 10 FROM tab2 AS cor0 WHERE + ( - - col0 ) / + - CAST( NULL AS SIGNED ) BETWEEN + col0 AND - - col1
----

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - col2 + 10 FROM tab2 AS cor0 WHERE + ( - - col0 ) / + - CAST ( NULL AS INTEGER ) BETWEEN + col0 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT + + MAX( + - col2 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4986
SELECT + + MAX ( + - col2 ) col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - MAX( ALL - - 69 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - MAX ( ALL - - 69 ) FROM tab0 AS cor0
----
-69

query I rowsort
SELECT ALL - ( 61 ) FROM tab2 cor0
----
-61
-61
-61

query I rowsort
SELECT 55 * - - ( - 71 ) AS col1 FROM tab1
----
-3905
-3905
-3905

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4990
SELECT ALL * FROM tab1 WHERE NOT + + CAST( + ( col1 ) AS DECIMAL ) > 5
----
85
5
59

skipif mysql # not compatible
query III rowsort label-4990
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( + ( col1 ) AS REAL ) > 5
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT 34 * - COUNT( * ) AS col0 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-4991
SELECT 34 * - COUNT ( * ) AS col0 FROM tab1
----
-102

query I rowsort
SELECT col2 * - + 79 AS col1 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT DISTINCT col2 * + - 88 AS col0 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT 75 + - COUNT( * ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4994
SELECT 75 + - COUNT ( * ) AS col0 FROM tab1
----
72

query I rowsort
SELECT - 63 + - + 81 * - col2 FROM tab0
----
3744
747
7956

query I rowsort
SELECT 83 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col2 + + + 77 * - col2 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT DISTINCT - col2 * + 97 AS col0 FROM tab0 AS cor0
----
-4559
-9603
-970

query I rowsort
SELECT DISTINCT + + 27 + + + col1 AS col0 FROM tab1 cor0
----
32
41
74

query I rowsort
SELECT + 8 + + col0 AS col0 FROM tab0 AS cor0
----
105
23
95

query I rowsort
SELECT DISTINCT - col1 + - 17 FROM tab1 cor0
----
-22
-31
-64

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= - 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL < - 64 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5004
SELECT DISTINCT + 68 DIV MAX( + col0 ) + - - 29 col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5004
SELECT DISTINCT + 68 / MAX ( + col0 ) + - - 29 col0 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT DISTINCT - COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT - COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - COUNT( ALL - + col1 ) * - 20 + - 2 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5006
SELECT - COUNT ( ALL - + col1 ) * - 20 + - 2 FROM tab1 AS cor0
----
58

query I rowsort
SELECT - - col0 + - col1 * - 28 AS col1 FROM tab2 AS cor0
----
1474
1951
2220

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT ALL col1 DIV + + col2 + - col2 AS col0 FROM tab0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL col1 / + + col2 + - col2 AS col0 FROM tab0
----
-46
-8
-99

query I rowsort
SELECT + col1 + + - col2 * ( col0 ) AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL <> + + 2
----

query I rowsort
SELECT + 33 AS col0 FROM tab1 WHERE - - 51 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT DISTINCT 42 DIV + MIN( ALL + col1 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT 42 / + MIN ( ALL + col1 ) FROM tab1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT ALL col1 DIV + + col0 col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT ALL col1 / + + col0 col2 FROM tab0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + 12 + + - col2 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 89 * col2 AS col2 FROM tab0
----
-4183
-8811
-890

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 65 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5017
SELECT DISTINCT + 55 * + + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5017
SELECT DISTINCT + 55 * + + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT DISTINCT - 64 * col2 + - + col0 * 78 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * 88 * - + col1 IS NOT NULL
----
-5060
-7552
-9562

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - 64 * col2 + - + col0 * 78 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * 88 * - + col1 IS NOT NULL
----
-5060
-7552
-9562

query I rowsort
SELECT col0 * 71 AS col2 FROM tab2
----
3266
4544
5325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT + 96 FROM tab1 WHERE col1 IS NOT NULL
----
96
96
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 / - col2 + 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT MIN( + + col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT MIN ( + + col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT + MIN( DISTINCT - + 88 ) + + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT + MIN ( DISTINCT - + 88 ) + + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-85

query I rowsort
SELECT + 75 + col2 + col1 - col0 FROM tab2 AS cor0
----
103
125
128

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 7 NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col0 FROM tab1
----
44

query I rowsort
SELECT - ( - 74 ) + 57 AS col2 FROM tab0
----
131
131
131

query II rowsort
SELECT DISTINCT + 84, - 48 AS col0 FROM tab0
----
84
-48

query I rowsort
SELECT 40 * + col2 AS col0 FROM tab1 AS cor0
----
2360
2720
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL + - COUNT( + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + - COUNT ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 68 * - 59 + + col0 FROM tab0 AS cor0
----
4027
4099
4109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5033
SELECT DISTINCT MIN( DISTINCT + col0 ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT MIN ( DISTINCT + col0 ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL - COUNT( * ) * - 3 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - COUNT ( * ) * - 3 AS col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5035
SELECT ALL COUNT( + col1 ) AS col2, 18 AS col0 FROM tab1
----
3
18

skipif mysql # not compatible
query II rowsort label-5035
SELECT ALL COUNT ( + col1 ) AS col2, 18 AS col0 FROM tab1
----
3
18

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 32 ) * + - ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5037
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 20 * + 30 NOT IN ( + - 14 * + + ( col0 ) + + col0 + + - col0, - 73, 73 * - + CAST( + col2 AS DECIMAL ) + 59 + + CAST( - - col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 20 * + 30 NOT IN ( + - 14 * + + ( col0 ) + + col0 + + - col0, - 73, 73 * - + CAST ( + col2 AS REAL ) + 59 + + CAST ( - - col1 AS INTEGER ) )
----
0

query I rowsort
SELECT - - 54 * - - 53 + col1 - - col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-6740
2013
2238

query I rowsort
SELECT + col2 * 12 AS col0 FROM tab0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT + COUNT( + 53 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT + COUNT ( + 53 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 * 42 FROM tab1
----
1974
210
588

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab2 cor0 WHERE col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + + col2 + 94 - - - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + + col2 + 94 - - - col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5044
SELECT ALL + col1, col1 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5044
SELECT ALL + col1, col1 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - 4 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT + 74 * - col1 AS col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - 11 * MAX( col2 ) AS col2 FROM tab0 AS cor0
----
-1089

skipif mysql # not compatible
query I rowsort label-5048
SELECT - 11 * MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
-1089

query I rowsort
SELECT - col0 * 88 * + - col1 + + col0 + + col0 * - - col1 FROM tab1
----
37910
380744
63597

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - + ( 6 ) + + + MAX( ALL - col0 ) * + MIN( ALL + 8 ) AS col0 FROM tab2 AS cor0
----
-374

skipif mysql # not compatible
query I rowsort label-5051
SELECT - + ( 6 ) + + + MAX ( ALL - col0 ) * + MIN ( ALL + 8 ) AS col0 FROM tab2 AS cor0
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT - 83 + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-92

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - 83 + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-92

query I rowsort
SELECT ALL - 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - 59 - - SUM( + ( ( - + 12 ) ) ) - - 4 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - 59 - - SUM ( + ( ( - + 12 ) ) ) - - 4 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ( - - COUNT( * ) ) + 76 AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5055
SELECT ( - - COUNT ( * ) ) + 76 AS col2 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT 34 + + col1 NOT BETWEEN - + 40 * - col1 - + - col1 AND NULL
----

query I rowsort
SELECT - + 40 + - col0 FROM tab2 AS cor0
----
-104
-115
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + 36 * - + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5058
SELECT + 36 * - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 cor0
----
-105

query I rowsort
SELECT ALL + 71 * - col1 AS col1 FROM tab1 AS cor0
----
-3337
-355
-994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5060
SELECT ALL - + ( CAST( 10 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - + ( CAST ( 10 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 57 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT - COUNT( * ), 19 * + + 26 AS col0 FROM tab1
----
-3
494

skipif mysql # not compatible
query II rowsort label-5062
SELECT - COUNT ( * ), 19 * + + 26 AS col0 FROM tab1
----
-3
494

query II rowsort
SELECT DISTINCT 67 AS col1, 24 AS col2 FROM tab1
----
67
24

query III rowsort
SELECT * FROM tab1 WHERE NOT + 22 * + - 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT AVG ( ALL + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT AVG ( ALL + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT + CAST( + ( + MAX( DISTINCT + ( + col2 ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5066
SELECT + CAST ( + ( + MAX ( DISTINCT + ( + col2 ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT - - ( COUNT( * ) ) * - 12 AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - - ( COUNT ( * ) ) * - 12 AS col1 FROM tab0 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT ALL 16 * col1 DIV - + col2 - - + col0 FROM tab0 AS cor0
----
-12
54
97

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 16 * col1 / - + col2 - - + col0 FROM tab0 AS cor0
----
-12
54
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * + + col0 + + + col0 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT DISTINCT 0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 67 - + - 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT ALL - 16 * + MIN( DISTINCT + col2 ), 41 AS col1 FROM tab0 AS cor0
----
-160
41

skipif mysql # not compatible
query II rowsort label-5073
SELECT ALL - 16 * + MIN ( DISTINCT + col2 ), 41 AS col1 FROM tab0 AS cor0
----
-160
41

query I rowsort
SELECT - col0 + - 55 AS col2 FROM tab0 AS cor0
----
-142
-152
-70

query I rowsort
SELECT - 42 * 97 + - - 98 + - col2 AS col1 FROM tab2 AS cor0
----
-3999
-4016
-4034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT - + 82 + + - CAST( - - col0 AS SIGNED ) + - + 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-5076
SELECT - + 82 + + - CAST ( - - col0 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + 27 + - col0 AS col1 FROM tab0 AS cor0
----
-60
-70
12

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 98 AND + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT ALL CAST( - 15 AS SIGNED ) + + 18 AS col0 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL CAST ( - 15 AS INTEGER ) + + 18 AS col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT + ( + 33 ) AS col2 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - col0 col1, col0 + + - col0 + - 0 FROM tab0 AS cor0
----
-66
0
-96
0
66
0

query I rowsort
SELECT 29 AS col0 FROM tab1 AS cor0 WHERE - col2 * + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 24 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 73 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 WHERE - - col1 IS NOT NULL
----
59
68
96

query II rowsort
SELECT col1, col1 * - - col1 AS col0 FROM tab1
----
14
196
47
2209
5
25

query I rowsort
SELECT DISTINCT ( - 25 ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + + COUNT( * ) - - 58 AS col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5089
SELECT + + COUNT ( * ) - - 58 AS col0 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + - 37 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5090
SELECT + - 37 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-34

query II rowsort
SELECT DISTINCT + ( + col1 ) / col2, - col0 FROM tab2 cor0 WHERE NOT + col2 NOT BETWEEN - 21 AND NULL
----

query II rowsort
SELECT - + col1, + col2 AS col2 FROM tab0 cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * 27 col0 FROM tab0
----
-648
-648
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL MAX( col0 ) * + COUNT( * ) AS col2 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL MAX ( col0 ) * + COUNT ( * ) AS col2 FROM tab2
----
225

query I rowsort
SELECT + 13 * + col2 AS col0 FROM tab0
----
1287
130
611

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT ALL - col2 DIV + col0 col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT ALL - col2 / + col0 col0 FROM tab0
----
-1
-3
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 96 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5098
SELECT ALL * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( col1 + - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5098
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( col1 + - col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 33 col2 FROM tab0
----
132
43
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5100
SELECT ALL COUNT( * ) * MIN( ALL + col2 DIV ( 19 ) ) - MAX( ALL col1 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL COUNT ( * ) * MIN ( ALL + col2 / ( 19 ) ) - MAX ( ALL col1 ) FROM tab2
----
-74

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col0 * - 24 > 76 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + COUNT( * ) + 46 AS col1 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-5103
SELECT + COUNT ( * ) + 46 AS col1 FROM tab0
----
49

query III rowsort
SELECT * FROM tab0 WHERE 12 + col2 * - 7 IS NULL
----

query I rowsort
SELECT DISTINCT 18 + + col2 AS col0 FROM tab0
----
117
28
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5106
SELECT + 86 - 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-5106
SELECT + 86 - CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 85 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ( MIN( col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5108
SELECT ( MIN ( col0 ) ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5109
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) / + col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-5109
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) / + col2 <= NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 * - col1 AND col2 * + col0
----

query I rowsort
SELECT - col1 FROM tab0 WHERE 15 IN ( 10 + + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT MIN( 3 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5112
SELECT MIN ( 3 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + ( - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5114
SELECT * FROM tab1 AS cor0 WHERE NOT 58 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5114
SELECT * FROM tab1 AS cor0 WHERE NOT 58 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col0 * - col2 BETWEEN - col2 AND ( - col2 + col2 )
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - 64 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 64 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 + - col2 / + col1 ) IS NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE ( 53 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5122
SELECT DISTINCT COUNT( ALL - CAST( ( + col0 ) AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT COUNT ( ALL - CAST ( ( + col0 ) AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT ALL 73 + - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
154
74
94

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL 73 + - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
154
74
94

query I rowsort
SELECT ALL - - ( + col2 ) + col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT ALL + - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + - col0 / - col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 col1 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT 11 FROM tab1 AS cor0 WHERE ( NULL ) < + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL + ( + 95 ) + - SUM( ALL col2 ) col1 FROM tab1 AS cor0
----
-128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5128
SELECT ALL + ( + 95 ) + - SUM ( ALL col2 ) col1 FROM tab1 AS cor0
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5129
SELECT - - COUNT( * ) * - MAX( ALL col1 * - col0 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT - - COUNT ( * ) * - MAX ( ALL col1 * - col0 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT DISTINCT col2 + - 69 DIV 42 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT col2 + - 69 / 42 AS col2 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT - 44 + - col1 AS col2 FROM tab0 cor0
----
-125
-45
-65

query I rowsort
SELECT ALL 50 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 + col0 ) AND 31
----

query I rowsort
SELECT + 17 + col2 FROM tab0
----
116
27
64

query I rowsort
SELECT + col0 * - 15 + + col0 AS col2 FROM tab1
----
-1190
-1274
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * 31 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * 31 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * + - col1 AS col0 FROM tab1
----
-266
-893
-95

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( + col2 + - 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT DISTINCT + 48 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + 48 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 46 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN - 32 AND - col1
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE ( + col2 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL ( 35 ) AS col0 FROM tab0 WHERE NOT col1 < - 85
----
35
35
35

query III rowsort
SELECT * FROM tab1 WHERE - 24 * + 23 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT 65 - + - 87 * COUNT( * ) AS col0 FROM tab0
----
326

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT 65 - + - 87 * COUNT ( * ) AS col0 FROM tab0
----
326

query I rowsort
SELECT ALL 83 * + ( col1 ) AS col1 FROM tab0
----
1743
6723
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 64 col1 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - 39 * COUNT( * ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5147
SELECT - 39 * COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT - 4 * 82 AS col2 FROM tab0 WHERE NULL = ( + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5149
SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - COUNT( * ) + - 80 FROM tab0 WHERE NOT ( + ( + 0 ) ) IN ( col1 )
----
-83

skipif mysql # not compatible
query I rowsort label-5151
SELECT - COUNT ( * ) + - 80 FROM tab0 WHERE NOT ( + ( + 0 ) ) IN ( col1 )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5152
SELECT ALL + COUNT( * ), + ( 1 ) AS col1 FROM tab0
----
3
1

skipif mysql # not compatible
query II rowsort label-5152
SELECT ALL + COUNT ( * ), + ( 1 ) AS col1 FROM tab0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( * ) * + 67 AS col1 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-5153
SELECT + COUNT ( * ) * + 67 AS col1 FROM tab0
----
201

query I rowsort
SELECT - 25 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col0 OR NOT ( NULL ) <= col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 84 <> col1 ) OR ( NULL ) NOT IN ( + col0 - - col2 * 94 )
----

query I rowsort
SELECT - - col1 * - 21 AS col2 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + - MIN( - 66 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + - MIN ( - 66 ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT + col0 AS col0, + 33 FROM tab0 AS cor0
----
15
33
87
33
97
33

query I rowsort
SELECT DISTINCT + col2 / - + col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT COUNT( * ), 53 * + 18 AS col2 FROM tab2 AS cor0
----
3
954

skipif mysql # not compatible
query II rowsort label-5161
SELECT COUNT ( * ), 53 * + 18 AS col2 FROM tab2 AS cor0
----
3
954

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT 46 + - MIN( - col2 ) * 61 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3584

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT 46 + - MIN ( - col2 ) * 61 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5163
SELECT + COUNT( DISTINCT col2 ) AS col1, + COUNT( * ) * - COUNT( DISTINCT - CAST( - col1 AS SIGNED ) ) FROM tab0
----
3
-9

skipif mysql # not compatible
query II rowsort label-5163
SELECT + COUNT ( DISTINCT col2 ) AS col1, + COUNT ( * ) * - COUNT ( DISTINCT - CAST ( - col1 AS INTEGER ) ) FROM tab0
----
3
-9

query I rowsort
SELECT + 2 / 19 FROM tab0 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT ALL col1 * + 71 AS col2 FROM tab1 WHERE NOT - + 97 >= + 64 + - col2
----
3337
355
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 5 col0 FROM tab0 WHERE + 99 + + col1 IS NOT NULL
----
104
15
52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col2 * 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT MAX( + + col0 ) AS col1, 83 col2 FROM tab0 AS cor0
----
97
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5168
SELECT MAX ( + + col0 ) AS col1, 83 col2 FROM tab0 AS cor0
----
97
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT - - MAX( 32 ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT - - MAX ( 32 ) AS col2 FROM tab2 AS cor0
----
32

query II rowsort
SELECT ALL - + ( - 3 ), col2 + 80 AS col2 FROM tab1 AS cor0
----
3
139
3
148
3
176

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - 99 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + - COUNT( * ) * + MIN( ALL + - col2 ) * - - 3 AS col1 FROM tab2 AS cor0
----
522

skipif mysql # not compatible
query I rowsort label-5172
SELECT + - COUNT ( * ) * + MIN ( ALL + - col2 ) * - - 3 AS col1 FROM tab2 AS cor0
----
522

query I rowsort
SELECT - + col1 FROM tab0 WHERE ( - 3 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 85 + - col2 NOT IN ( + 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT 96 + + COUNT( + - col0 ) col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT 96 + + COUNT ( + - col0 ) col1 FROM tab2 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5176
SELECT DISTINCT + ( - + col1 ) DIV + col0 AS col2, - col0 * - col1 col0 FROM tab2 AS cor0
----
-1
2346
-1
4928
0
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5176
SELECT DISTINCT + ( - + col1 ) / + col0 AS col2, - col0 * - col1 col0 FROM tab2 AS cor0
----
-1
2346
-1
4928
0
5025

query I rowsort
SELECT ALL - - 36 + 73 FROM tab1 AS cor0
----
109
109
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT AVG ( CAST( NULL AS SIGNED ) ) + - - ( + ( + 94 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT AVG ( CAST ( NULL AS INTEGER ) ) + - - ( + ( + 94 ) ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 18 + 93 + - col0 FROM tab2 AS cor0
----
36
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT - - 6 + + + ( ( + COUNT( + col2 ) ) ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - - 6 + + + ( ( + COUNT ( + col2 ) ) ) FROM tab2 cor0
----
9

query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0 WHERE col0 + - + 38 NOT BETWEEN ( - 83 ) AND 73 / + col0
----
35
35
35

query I rowsort
SELECT ALL + 29 + + - 29 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE - 89 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5183
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE - 89 = NULL
----
0

query I rowsort
SELECT ALL col2 * - 17 + 22 * + 53 FROM tab0
----
-517
367
996

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT ALL col2 DIV - 76 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL col2 / - 76 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 47 - - col1 FROM tab1
----
52
61
94

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - + 40 * + col1 + - col2 FROM tab1 AS cor0
----
-1948
-259
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ALL MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 13 ) NOT BETWEEN 98 * ( 94 ) AND - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 13 ) NOT BETWEEN 98 * ( 94 ) AND - 19
----
NULL

query I rowsort
SELECT + - col2 + + col1 + 86 + - 55 * - col1 AS col2 FROM tab1 AS cor0
----
2650
307
774

query II rowsort
SELECT ALL + + ( + + 92 ) + - 12 + - col1 AS col0, ( - col1 ) * + col1 + col0 AS col0 FROM tab2 AS cor0
----
13
-4414
29
-2555
3
-5865

query I rowsort
SELECT ALL + + col1 * + ( col0 ) AS col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT 12 * + 89 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 232c40ac338cf75a693ab540b1e10afe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT DISTINCT - col2, + 75 + col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT col0, - 52 FROM tab0
----
15
-52
87
-52
97
-52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5197
SELECT col2 AS col1, col0 DIV col0 + - col1 AS col2, - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
9 values hashing to de3817e197b9687cc60b9c0dd5295963

skipif mysql # not compatible
query III rowsort label-5197
SELECT col2 AS col1, col0 / col0 + - col1 AS col2, - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
9 values hashing to de3817e197b9687cc60b9c0dd5295963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT COUNT( * ) DIV + 49 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT COUNT ( * ) / + 49 AS col0 FROM tab2
----
0

query II rowsort
SELECT col2 AS col1, - col0 AS col2 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT 52 FROM tab0 WHERE ( - col0 ) NOT BETWEEN NULL AND ( col1 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + COUNT( * ) * + + 25 col1 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5201
SELECT + COUNT ( * ) * + + 25 col1 FROM tab1
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col1 + + 85
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 72 - col1 > + 52
----
91
47
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 1 + + col0 <> ( - col1 + - + 63 + - 70 ) AND NULL >= ( col0 ) - 38
----

query I rowsort
SELECT ALL 15 AS col1 FROM tab1 cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT - COUNT( * ) * - 52 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - COUNT ( * ) * - 52 FROM tab2 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL ) <= - 32 )
----

query I rowsort
SELECT - col2 * + - col2 AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL + - col1 + + + col1 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT - SUM( + 3 ) + - 50 AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5210
SELECT - SUM ( + 3 ) + - 50 AS col0 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND - col0 * + ( col0 ) * - - col2 * - col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT col1 + + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT col1 + + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT + ( + col2 ) + col1 DIV - col1 - - 13 AS col0 FROM tab1 cor0
----
108
71
80

skipif mysql # not compatible
query I rowsort label-5213
SELECT + ( + col2 ) + col1 / - col1 - - 13 AS col0 FROM tab1 cor0
----
108
71
80

query I rowsort
SELECT DISTINCT + 21 - + - ( - col2 ) FROM tab1
----
-38
-47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT DISTINCT - ( - AVG ( - col0 ) ) + - + SUM( - col2 ) FROM tab2 WHERE ( NULL ) > col2 / col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - ( - AVG ( - col0 ) ) + - + SUM ( - col2 ) FROM tab2 WHERE ( NULL ) > col2 / col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5216
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5217
SELECT * FROM tab0 WHERE + col0 * - - col2 NOT IN ( + 29 * ( 8 ) + + - CAST( + - 67 AS SIGNED ) * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5217
SELECT * FROM tab0 WHERE + col0 * - - col2 NOT IN ( + 29 * ( 8 ) + + - CAST ( + - 67 AS INTEGER ) * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col0 ) AS col0, col1 col0 FROM tab0 WHERE + 6 * - 40 - - ( - col2 ) IS NOT NULL
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - col0 - + + col1 AS col2 FROM tab1 cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - col1 + col0 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 / - + col1 - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ( + + CAST( + 10 AS SIGNED ) ) * + - col0 AS col0 FROM tab1 AS cor0
----
-510
-850
-910

skipif mysql # not compatible
query I rowsort label-5222
SELECT ( + + CAST ( + 10 AS INTEGER ) ) * + - col0 AS col0 FROM tab1 AS cor0
----
-510
-850
-910

query I rowsort
SELECT DISTINCT - + 48 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT 46 * + ( + col1 ) AS col0 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT ALL 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query II rowsort
SELECT + col1, 47 FROM tab1 AS cor0
----
14
47
47
47
5
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5227
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5227
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * - 97 + + col1 AS col2 FROM tab2 cor0
----
-2180
-3803
-5559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT DISTINCT + col1 * + 89 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-39249
-583929
-89

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + col1 * + 89 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-39249
-583929
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT COUNT( * ) * + + 20 + - COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5230
SELECT COUNT ( * ) * + + 20 + - COUNT ( * ) FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * - - col1 <= ( 85 * - - 57 * + col0 + + col1 + + col0 / ( + col2 ) * - + ( + col2 ) * + col1 + - col2 )
----

query I rowsort
SELECT ALL - - ( - 13 ) FROM tab0 AS cor0
----
-13
-13
-13

query II rowsort
SELECT - col0 AS col1, + col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN - - col0 AND NULL
----
75
67
58

query I rowsort
SELECT - + col2 * col0 * + 18 + + + col2 + - 21 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * 39 AS col1 FROM tab1 AS cor0
----
1833
195
546

query I rowsort
SELECT ALL 40 * - col1 * + + col1 + + col1 + - col0 * + - 67 AS col1 FROM tab2 AS cor0
----
-100907
-174468
-232795

query I rowsort
SELECT DISTINCT - col2 + + - col0 FROM tab0 cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 53
----

query I rowsort
SELECT ALL ( col2 ) + + col2 FROM tab2 cor0
----
116
46
80

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col2 * 82 / ( + 63 ) IS NOT NULL AND 19 + 99 BETWEEN + 58 AND NULL
----

query I rowsort
SELECT 44 + - - col1 FROM tab2
----
111
121
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col1 + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 40 - - + col1 * + 16 * + col1 * - col0 NOT BETWEEN - col2 AND NULL )
----

query I rowsort
SELECT - ( 44 ) AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( 50 + + 55 * - 54 ) IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + 54 BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - 16 * col0 + + col0 AS col1 FROM tab1 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT - 54 - + 17 FROM tab2
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5251
SELECT DISTINCT + col2 + + 89 - ( col2 ) * - + CAST( NULL AS SIGNED ) + - col0 + - + col2 / + - 1 + 89 AS col1, - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT + col2 + + 89 - ( col2 ) * - + CAST ( NULL AS INTEGER ) + - col0 + - + col2 / + - 1 + 89 AS col1, - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5252
SELECT + CAST( NULL AS DECIMAL ) - - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT + CAST ( NULL AS REAL ) - - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - + 92 AS col0 FROM tab2
----
138
156
167

onlyif mysql # DIV for integer division: 
query II rowsort label-5254
SELECT col0 - + - col1 + 11 - - col0 + - + ( - col1 ) DIV + + 71 col0, col1 * + - col0 FROM tab2
----
154
-2346
217
-4928
228
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5254
SELECT col0 - + - col1 + 11 - - col0 + - + ( - col1 ) / + + 71 col0, col1 * + - col0 FROM tab2
----
154
-2346
217
-4928
228
-5025

query I rowsort
SELECT ALL - - col1 * - 76 AS col1 FROM tab2 WHERE NOT 8 > col0
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT COUNT( ALL + col0 ) * + 88 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT COUNT ( ALL + col0 ) * + 88 FROM tab2
----
264

query I rowsort
SELECT ALL - - col0 * - - 39 FROM tab0 AS cor0
----
3393
3783
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL ( - 12 ) + COUNT( * ) FROM tab0, tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL ( - 12 ) + COUNT ( * ) FROM tab0, tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5259
SELECT 64 * + COUNT( + CAST( NULL AS SIGNED ) ) col0, COUNT( * ) + + - 64 FROM tab0
----
0
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5259
SELECT 64 * + COUNT ( + CAST ( NULL AS INTEGER ) ) col0, COUNT ( * ) + + - 64 FROM tab0
----
0
-61

query I rowsort
SELECT ALL col2 * ( + + col0 ) AS col1 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT + CAST( + + col2 AS SIGNED ) FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5261
SELECT + CAST ( + + col2 AS INTEGER ) FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
59
68
96

query I rowsort
SELECT + col2 * + - col2 - col0 + col1 FROM tab2 cor0
----
-1587
-3372
-524

query I rowsort
SELECT DISTINCT + 53 FROM tab0 AS cor0 WHERE ( + - col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5264
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + MIN( DISTINCT col2 ) FROM tab2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-5264
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + MIN ( DISTINCT col2 ) FROM tab2
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ( - 73 ) * + COUNT( * ) + - + COUNT( DISTINCT + col1 ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-5265
SELECT ( - 73 ) * + COUNT ( * ) + - + COUNT ( DISTINCT + col1 ) FROM tab2
----
-222

query I rowsort
SELECT ALL col1 * col2 * + - 88 AS col0 FROM tab1
----
-118272
-25960
-281248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT CAST( col2 AS SIGNED ) + - + 48 - - + col1 AS col2 FROM tab0
----
-17
52
80

skipif mysql # not compatible
query I rowsort label-5267
SELECT CAST ( col2 AS INTEGER ) + - + 48 - - + col1 AS col2 FROM tab0
----
-17
52
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5268
SELECT ALL col1 * + - 61 AS col0, CAST( NULL AS SIGNED ) - + 75 AS col1 FROM tab0
----
-1281
NULL
-4941
NULL
-61
NULL

skipif mysql # not compatible
query II rowsort label-5268
SELECT ALL col1 * + - 61 AS col0, CAST ( NULL AS INTEGER ) - + 75 AS col1 FROM tab0
----
-1281
NULL
-4941
NULL
-61
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * col2 + + col0 col0 FROM tab2
----
1081
1864
2685

query I rowsort
SELECT - col1 + 69 * - 70 AS col1 FROM tab2
----
-4881
-4897
-4907

query II rowsort
SELECT ALL - 58, - 15 * col2 AS col2 FROM tab0
----
-58
-1485
-58
-150
-58
-705

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + col2 ) - - + col2 + + + 76 IN ( ( + col2 ), - 29 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - + 96 - 97 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT DISTINCT + 55 - - CAST( 24 AS SIGNED ) * COUNT( * ) col1 FROM tab2
----
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT DISTINCT + 55 - - CAST ( 24 AS INTEGER ) * COUNT ( * ) col1 FROM tab2
----
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NULL < - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - ( - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > + + 69
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT - COUNT( * ) * + COUNT( * ) + - MAX( col1 ) AS col1 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5279
SELECT - COUNT ( * ) * + COUNT ( * ) + - MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ALL + 66 * - + col2 FROM tab1 AS cor0
----
-3894
-4488
-6336

query I rowsort
SELECT DISTINCT + - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + ( + - ( col0 ) ) + ( + col2 ) col0 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT + - 89 * + col0 + + 30 FROM tab0 AS cor0
----
-1305
-7713
-8603

query II rowsort
SELECT - col1 AS col0, 77 * 24 * - 93 FROM tab0
----
-1
-171864
-21
-171864
-81
-171864

query I rowsort
SELECT ALL 45 + + col2 FROM tab2
----
103
68
85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 >= col1 * + 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5288
SELECT ALL + col2, + 98 * + - 65 + CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5288
SELECT ALL + col2, + 98 * + - 65 + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 42 < + col2 + - col1
----

query I rowsort
SELECT - 50 * - - col2 AS col1 FROM tab0
----
-2350
-4950
-500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5291
SELECT + 77 AS col2, - col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
77
NULL
77
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5291
SELECT + 77 AS col2, - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
77
NULL
77
NULL
77
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / - ( + + 68 ) + + - col0 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5293
SELECT - 41 + col0 + col0 + + + CAST( - 40 AS SIGNED ) DIV + col2 + + 0 + + + col2 col2 FROM tab1 cor0
----
157
188
209

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5293
SELECT - 41 + col0 + col0 + + + CAST ( - 40 AS INTEGER ) / + col2 + + 0 + + + col2 col2 FROM tab1 cor0
----
157
188
209

query I rowsort
SELECT - - col2 * - - col1 + - - col0 FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT ALL + col0 + - ( - - ( - - col2 ) ) FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + 2 + - - ( + + 60 ) FROM tab2 cor0
----
62

query I rowsort
SELECT - - 61 AS col2 FROM tab1 AS cor0 WHERE NOT + 33 IS NOT NULL
----

query I rowsort
SELECT ALL 82 * + col2 + + col0 FROM tab2 AS cor0
----
1932
3344
4831

onlyif mysql # aggregate syntax: 
query II rowsort label-5299
SELECT ALL COUNT( * ) + - 2 col2, COUNT( DISTINCT + 7 ) FROM tab1 cor0
----
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5299
SELECT ALL COUNT ( * ) + - 2 col2, COUNT ( DISTINCT + 7 ) FROM tab1 cor0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT + 95 + - 62 FROM tab2 WHERE + col2 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5300
SELECT + 95 + - 62 FROM tab2 WHERE + col2 <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 11 * + 51 + col0 AS col0 FROM tab2
----
607
625
636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT ( - CAST( NULL AS SIGNED ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ( - CAST ( NULL AS INTEGER ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT DISTINCT col1 * 26 * - + col1 AS col1, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 21 FROM tab2
----
-116714
NULL
-154154
NULL
-67626
NULL

skipif mysql # not compatible
query II rowsort label-5303
SELECT DISTINCT col1 * 26 * - + col1 AS col1, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 21 FROM tab2
----
-116714
NULL
-154154
NULL
-67626
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT 29 * col2 AS col2 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT col1 * + + col0 * - col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ALL - ( - + col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT 60 + - 27 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - ( + 17 ) + + col2 AS col0 FROM tab0 AS cor0
----
-7
30
82

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 26 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT DISTINCT - - 23 AS col0, COUNT( * ) col2 FROM tab2 AS cor0
----
23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5312
SELECT DISTINCT - - 23 AS col0, COUNT ( * ) col2 FROM tab2 AS cor0
----
23
3

query I rowsort
SELECT ALL - 74 * col2 * + + 82 FROM tab1 cor0
----
-358012
-412624
-582528

query II rowsort
SELECT DISTINCT + col0, + col0 * col1 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + 17 + - col1 < - 53 + - - 46
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5316
SELECT DISTINCT - CAST( + - col2 AS DECIMAL ) col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5316
SELECT DISTINCT - CAST ( + - col2 AS REAL ) col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT + MAX( + - 82 ) AS col1 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + MAX ( + - 82 ) AS col1 FROM tab1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT ALL + col0 * - col1 DIV - col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + col0 * - col1 / - col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + ( + col0 ) * - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5321
SELECT - 16 + col1 + 90 DIV + col0 col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
36
52
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5321
SELECT - 16 + col1 + 90 / + col0 col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
36
52
62

query I rowsort
SELECT DISTINCT - - 53 AS col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT + 26 * + col0 AS col1 FROM tab0
----
2262
2522
390

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT + ( - 22 ) * - 4, COUNT( * ) AS col1 FROM tab1
----
88
3

skipif mysql # not compatible
query II rowsort label-5324
SELECT + ( - 22 ) * - 4, COUNT ( * ) AS col1 FROM tab1
----
88
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 38 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 / col1 + + 30 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT ALL - 70 + col2 + + 41 DIV - col1 AS col1 FROM tab1 cor0
----
-19
-2
24

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - 70 + col2 + + 41 / - col1 AS col1 FROM tab1 cor0
----
-19
-2
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5328
SELECT 77 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - + col2 + 52 + - + col2 * + + 78 IS NULL AND NOT 70 - + + 32 + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5328
SELECT 77 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - + col2 + 52 + - + col2 * + + 78 IS NULL AND NOT 70 - + + 32 + + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT - col2 + - - 80 + - + 31 AS col0 FROM tab2 AS cor0
----
-9
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + 3 col1 FROM tab2 cor0
----
49
67
78

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col0 FROM tab1
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * + 21 + - 0 + - col1 NOT BETWEEN + col0 AND + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 19 * ( + + col1 ) FROM tab2
----
1273
1463
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT ALL - MIN( DISTINCT 79 ) FROM tab0 WHERE - CAST( - 66 AS SIGNED ) IS NOT NULL AND NOT - 18 * + + col1 = - - col1 / ( - 69 )
----
-79

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - MIN ( DISTINCT 79 ) FROM tab0 WHERE - CAST ( - 66 AS INTEGER ) IS NOT NULL AND NOT - 18 * + + col1 = - - col1 / ( - 69 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - MAX( DISTINCT - 77 ) - + 85 AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5335
SELECT - MAX ( DISTINCT - 77 ) - + 85 AS col0 FROM tab1
----
-8

query I rowsort
SELECT 3 - - - 10 AS col2 FROM tab2
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL MIN( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5337
SELECT ALL MIN ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT + col0 DIV col2 * + col0 col2 FROM tab2 AS cor0
----
64
75
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5338
SELECT + col0 / col2 * + col0 col2 FROM tab2 AS cor0
----
64
75
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - 63 ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5340
SELECT + + SUM( - col0 ) DIV 56 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5340
SELECT + + SUM ( - col0 ) / 56 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5341
SELECT + CAST( NULL AS DECIMAL ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5341
SELECT + CAST ( NULL AS REAL ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 - - col2 - - + 72 AND + 76
----
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 - - col2 - - + 72 AND + 76
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 53 * + + col1 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 82 * - col0 AS col1 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT DISTINCT - col0 DIV - 96 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - col0 / - 96 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 10 * col1 + - - col1 * + col1 * + 4 + + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 23 AS col1, col2 FROM tab1
----
-23
59
-23
68
-23
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT COUNT( * ) * + 57 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-5348
SELECT COUNT ( * ) * + 57 FROM tab1
----
171

query II rowsort
SELECT + col2 AS col1, 74 AS col0 FROM tab2
----
23
74
40
74
58
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col1, + col0 col2, + - col2 col0 FROM tab2 AS cor0
----
9 values hashing to b841d9c8bb47f618b31547852833c05b

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * + - col2 * - + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5352
SELECT - ( - COUNT( * ) ) + + 96 * - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT - ( - COUNT ( * ) ) + + 96 * - - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL MIN( + + col1 ) + - COUNT( * ) * 20 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL MIN ( + + col1 ) + - COUNT ( * ) * 20 FROM tab0
----
-59

query I rowsort
SELECT ALL 5 + + col1 FROM tab0 AS cor0
----
26
6
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - + MAX( DISTINCT - col1 ) + - - COUNT( + col0 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5356
SELECT - + MAX ( DISTINCT - col1 ) + - - COUNT ( + col0 ) FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT + COUNT( * ) + - - 64 AS col1 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT + COUNT ( * ) + - - 64 AS col1 FROM tab2 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5358
SELECT ALL + + col1 DIV + col2 - + - col0 + col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + + col1 / + col2 - + - col0 + col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 7 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = - 91
----

query I rowsort
SELECT ALL col1 * - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT - 17 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT 90 + + COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT 90 + + COUNT ( * ) FROM tab2
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT + col1 DIV + col2 * - + 1 - + col1 AS col2 FROM tab0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-5364
SELECT + col1 / + col2 * - + 1 - + col1 AS col2 FROM tab0
----
-1
-23
-82

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5366
SELECT DISTINCT 46 * COUNT( DISTINCT - 89 ) - COUNT( CAST( NULL AS DECIMAL ) ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT 46 * COUNT ( DISTINCT - 89 ) - COUNT ( CAST ( NULL AS REAL ) ) FROM tab0
----
46

query I rowsort
SELECT DISTINCT + - 86 + col1 FROM tab2 AS cor0
----
-19
-35
-9

query I rowsort
SELECT DISTINCT - col2 + col1 + + + col1 * col0 * 61 AS col2 FROM tab2 AS cor0
----
143134
300645
306534

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT - 11 * - - COUNT( * ) AS col2 FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - 11 * - - COUNT ( * ) AS col2 FROM tab2 cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT MAX( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * ) + + - COUNT( DISTINCT - 16 ) * - 44 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT MAX ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + - COUNT ( DISTINCT - 16 ) * - 44 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND col0
----

query II rowsort
SELECT ALL + - col2 * - col2, col1 AS col0 FROM tab1 AS cor0
----
3481
5
4624
47
9216
14

query I rowsort
SELECT ALL ( + 13 ) AS col1 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + col2 * + + 16 + - 38 FROM tab0 AS cor0
----
122
1546
714

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN col2 AND + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT DISTINCT + 20 DIV - 41 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + 20 / - 41 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab1 WHERE NOT ( NULL NOT BETWEEN ( - col0 ) AND NULL )
----

query I rowsort
SELECT col1 * + 28 AS col1 FROM tab0
----
2268
28
588

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT - 88 * + COUNT( * ) AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - 88 * + COUNT ( * ) AS col1 FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT COUNT( * ) * 42 AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5380
SELECT COUNT ( * ) * 42 AS col2 FROM tab1
----
126

query I rowsort
SELECT DISTINCT + 76 * - col1 FROM tab2 AS cor0
----
-3876
-5092
-5852

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 * - col2 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + + COUNT( * ) * 40 * - 96 + - 88 FROM tab1 AS cor0
----
-11608

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + + COUNT ( * ) * 40 * - 96 + - 88 FROM tab1 AS cor0
----
-11608

query I rowsort
SELECT ALL - 46 * - 11 + col1 FROM tab0 AS cor0
----
507
527
587

query I rowsort
SELECT ( - col1 ) + 82 FROM tab1 AS cor0
----
35
68
77

query II rowsort
SELECT ALL + col2 AS col0, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT + 7 + col2 * - col2 FROM tab2 AS cor0
----
-1593
-3357
-522

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = + - col2 * - 77
----

query I rowsort
SELECT ALL col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - 92 + - col2 FROM tab1 AS cor0
----
-151
-160
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + COUNT( * ) * ( - - SUM( ALL 2 ) ) + - SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-138

skipif mysql # not compatible
query I rowsort label-5392
SELECT + COUNT ( * ) * ( - - SUM ( ALL 2 ) ) + - SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5393
SELECT - CAST( col2 AS DECIMAL ), + col1 * 12 * col2 col1, + col2 col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( 11 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5393
SELECT - CAST ( col2 AS REAL ), + col1 * 12 * col2 col1, + col2 col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col2 ) AND ( 11 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5394
SELECT - + col1 + - CAST( NULL AS DECIMAL ) + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT - + col1 + - CAST ( NULL AS REAL ) + col1 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 87 + + col1 * - col0 * - col0 AS col0 FROM tab0
----
159036
18312
9496

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - 73 IS NULL
----

query I rowsort
SELECT + col2 * - 3 + - 79 FROM tab2
----
-148
-199
-253

query I rowsort
SELECT + 53 + - - 33 + + + col1 AS col0 FROM tab1
----
100
133
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5399
SELECT DISTINCT CAST( + - ( + - col1 ) AS SIGNED ) AS col1, 90 FROM tab1
----
14
90
47
90
5
90

skipif mysql # not compatible
query II rowsort label-5399
SELECT DISTINCT CAST ( + - ( + - col1 ) AS INTEGER ) AS col1, 90 FROM tab1
----
14
90
47
90
5
90

query I rowsort
SELECT DISTINCT 20 * + + 36 - col1 + + + col2 FROM tab1
----
741
774
802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 16 * + 41 - - - col1, + col1 col0 FROM tab2 AS cor0
----
-707
51
-723
67
-733
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL = + 98 )
----

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL = + 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT + - col0 DIV 64 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + - col0 / 64 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT ALL + 53 * 5 FROM tab0 AS cor0
----
265
265
265

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT MIN( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT 45 DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5408
SELECT 45 / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - ( + ( + 80 ) ) FROM tab2
----
-80
-80
-80

query I rowsort
SELECT ALL col0 * - col0 * col1 * + - 74 FROM tab1
----
2673250
2694636
28801318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5411
SELECT ALL - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) * + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT DISTINCT SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ( + col0 ) * - col1 * - col2 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab1 cor0 WHERE ( NOT ( + 37 IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT DISTINCT + 23 DIV + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + 23 / + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1

query II rowsort
SELECT - col2 AS col2, 13 + 13 AS col2 FROM tab0 AS cor0
----
-10
26
-47
26
-99
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL - 25 / CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - 25 / CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 40 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT DISTINCT - col2 * - 64 + - - col1 DIV col0 col2 FROM tab2 AS cor0
----
1473
2561
3712

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5421
SELECT DISTINCT - col2 * - 64 + - - col1 / col0 col2 FROM tab2 AS cor0
----
1473
2561
3712

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col2 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT - CAST( + + 16 AS SIGNED ) * - + col0 - - 17 + col2 FROM tab1 WHERE col0 <> + 82 * 73 - + col1 + - col1 * 45
----
1436
1541
929

skipif mysql # not compatible
query I rowsort label-5423
SELECT - CAST ( + + 16 AS INTEGER ) * - + col0 - - 17 + col2 FROM tab1 WHERE col0 <> + 82 * 73 - + col1 + - col1 * 45
----
1436
1541
929

query II rowsort
SELECT ALL - col2 AS col2, + 51 FROM tab2
----
-23
51
-40
51
-58
51

query I rowsort
SELECT col2 + - + 82 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL MAX( DISTINCT - col1 ) col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5426
SELECT ALL MAX ( DISTINCT - col1 ) col1 FROM tab0 cor0
----
-1

query II rowsort
SELECT col2 * + col0 + - col1 + + 33 AS col0, + col1 FROM tab2 cor0
----
1040
51
2516
77
4316
67

query I rowsort
SELECT ALL 41 * - ( - - 52 ) AS col2 FROM tab2
----
-2132
-2132
-2132

query II rowsort
SELECT DISTINCT + - col0 * - col1 AS col0, 81 FROM tab2 cor0
----
2346
81
4928
81
5025
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT ALL + 85 * COUNT( DISTINCT + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + 85 * COUNT ( DISTINCT + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT + + col0 + + 51 - - + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT + + col0 + + 51 - - + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 16 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT - - 26 * ( - + ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5432
SELECT - - 26 * ( - + ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
78

query II rowsort
SELECT ALL col2 AS col2, - col1 / - 43 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT + CAST( NULL AS SIGNED ) * - MAX( ALL + col2 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT + CAST ( NULL AS INTEGER ) * - MAX ( ALL + col2 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col1 * - col1 * - col1 * - - col1 AS col0 FROM tab2
----
-20151121
-35153041
-6765201

query I rowsort
SELECT DISTINCT + col2 * 7 FROM tab2
----
161
280
406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * - 25 col2 FROM tab2
----
1875
1875
1875

query II rowsort
SELECT DISTINCT col2 AS col2, 92 * - ( - - col2 ) FROM tab0
----
10
-920
47
-4324
99
-9108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 16 col0 FROM tab0
----
-1392
-1552
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT 43 + - COUNT( * ) - + - 20 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-5440
SELECT 43 + - COUNT ( * ) - + - 20 FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT + ( MIN( DISTINCT - 31 ) ) + - 78 FROM tab2
----
-109

skipif mysql # not compatible
query I rowsort label-5441
SELECT + ( MIN ( DISTINCT - 31 ) ) + - 78 FROM tab2
----
-109

query I rowsort
SELECT DISTINCT + col2 * - col1 * - col2 AS col1 FROM tab0
----
178929
2100
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + - col2 - - col0 col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT col0 + col2 + + - 81 FROM tab2
----
-12
23
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - COUNT( ALL + col2 ) FROM tab2 AS cor0 WHERE 4 * - 14 <> + col1
----
-3

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - COUNT ( ALL + col2 ) FROM tab2 AS cor0 WHERE 4 * - 14 <> + col1
----
-3

query I rowsort
SELECT + ( + + 12 ) + + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE 58 - + - col1 IS NULL
----

query I rowsort
SELECT + 27 AS col1 FROM tab2 AS cor0 WHERE 99 IS NULL
----

query I rowsort
SELECT ALL + 88 + col2 + + - col2 AS col0 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query II rowsort label-5451
SELECT + + col0 + + - col1 AS col0, + 44 DIV + - col1 + - ( - - col2 ) * + - col2 FROM tab2 AS cor0
----
-13
1600
-5
529
8
3364

skipif mysql # not compatible
query II rowsort label-5451
SELECT + + col0 + + - col1 AS col0, + 44 / + - col1 + - ( - - col2 ) * + - col2 FROM tab2 AS cor0
----
-13
1600
-5
529
8
3364

query I rowsort
SELECT + col0 * - col0 * col2 + + + col1 FROM tab0 cor0
----
-10494
-75669
-931490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT - CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5453
SELECT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL col2 * + col1 * CAST( NULL AS SIGNED ) - + col0 + - - 82 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL col2 * + col1 * CAST ( NULL AS INTEGER ) - + col0 + - - 82 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 AS col1 FROM tab1 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 91 * - col2 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5457
SELECT * FROM tab1 WHERE NOT ( + col0 - - 10 * - - col0 + CAST( - - 15 AS SIGNED ) ) IN ( - col2 + - 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5457
SELECT * FROM tab1 WHERE NOT ( + col0 - - 10 * - - col0 + CAST ( - - 15 AS INTEGER ) ) IN ( - col2 + - 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5458
SELECT DISTINCT 51 DIV 78 * - - col1 AS col1, col1 * - 58 - + col1 + - 10 + - col1 FROM tab0
----
0
-1270
0
-4870
0
-70

skipif mysql # not compatible
query II rowsort label-5458
SELECT DISTINCT 51 / 78 * - - col1 AS col1, col1 * - 58 - + col1 + - 10 + - col1 FROM tab0
----
0
-1270
0
-4870
0
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT ALL 60 DIV - col0 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL 60 / - col0 AS col1 FROM tab0
----
-4
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - 28 BETWEEN - col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5461
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - 96 * + ( + + col2 ) + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5461
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - 96 * + ( + + col2 ) + + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT col0 * - col1 + col0 DIV 6 AS col0 FROM tab0 AS cor0
----
-1213
-1813
-81

skipif mysql # not compatible
query I rowsort label-5463
SELECT col0 * - col1 + col0 / 6 AS col0 FROM tab0 AS cor0
----
-1213
-1813
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT - MAX( DISTINCT 99 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - MAX ( DISTINCT 99 ) AS col1 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + MIN( + 33 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-5465
SELECT + MIN ( + 33 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5466
SELECT + col0 DIV + - CAST( + col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5466
SELECT + col0 / + - CAST ( + col1 AS INTEGER ) FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 90 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT DISTINCT MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - col0 * + 9 AS col2 FROM tab0 AS cor0
----
-135
-783
-873

query I rowsort
SELECT + + col1 * + - 15 + + - 2 AS col2 FROM tab0 AS cor0
----
-1217
-17
-317

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + 91 + - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - col2 + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT COUNT( * ) * - 24 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-5474
SELECT COUNT ( * ) * - 24 FROM tab0
----
-72

query III rowsort
SELECT * FROM tab2 WHERE NULL <= 6 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT CAST( + - col0 AS SIGNED ) * + 65 FROM tab1
----
-3315
-5525
-5915

skipif mysql # not compatible
query I rowsort label-5476
SELECT CAST ( + - col0 AS INTEGER ) * + 65 FROM tab1
----
-3315
-5525
-5915

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5478
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col1 FROM tab1
----
NULL

query II rowsort
SELECT - 57 * col2, + col2 + - - 60 AS col2 FROM tab0
----
-2679
107
-5643
159
-570
70

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col2 + - + col1 - - col0 IS NULL
----

query I rowsort
SELECT + 24 * - col1 FROM tab0
----
-1944
-24
-504

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 43 + col0 <> + - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT ALL + COUNT( * ) + - - 1 DIV + - COUNT( * ) + + - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + COUNT ( * ) + - - 1 / + - COUNT ( * ) + + - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( - 80 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( - 80 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + + col1 * + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL - - SUM( ALL + + 94 ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - - SUM ( ALL + + 94 ) FROM tab1 AS cor0
----
282

query I rowsort
SELECT + col1 * + + col2 * col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5489
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 30 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5489
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 30 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 + + col0 + + 76 FROM tab0 AS cor0 WHERE ( - col2 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5491
SELECT DISTINCT - col0 + - col0 - - - 3 DIV - col2 FROM tab2 AS cor0
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT - col0 + - col0 - - - 3 / - col2 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( + col0 - 98, 81 * - + col1 * - 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 - + 30 * + + col0 AS col1, - col1 FROM tab0 AS cor0
----
-2697
-21
-3007
-1
-465
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + 88 <= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL MAX( + - col2 ) col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5495
SELECT ALL MAX ( + - col2 ) col1 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT DISTINCT col2 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT col2 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * - + col1 * - + col0 AS col2 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5498
SELECT DISTINCT - 41 AS col0, CAST( + 55 AS SIGNED ) AS col2 FROM tab1 cor0
----
-41
55

skipif mysql # not compatible
query II rowsort label-5498
SELECT DISTINCT - 41 AS col0, CAST ( + 55 AS INTEGER ) AS col2 FROM tab1 cor0
----
-41
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - + col1 * + - col2 + col1 col0 FROM tab2 AS cor0 WHERE + col1 + 62 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 91 IS NULL
----

query I rowsort
SELECT DISTINCT + + 47 + + 16 FROM tab2 cor0
----
63

query I rowsort
SELECT DISTINCT col0 * - - 54 + - col1 AS col0 FROM tab1 AS cor0
----
2740
4585
4867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT + CAST( + 82 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-5503
SELECT + CAST ( + 82 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + ( + - 66 ) + - + MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5504
SELECT + ( + - 66 ) + - + MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT MAX( col0 ) + 49 AS col1 FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-5505
SELECT MAX ( col0 ) + 49 AS col1 FROM tab1
----
140

query I rowsort
SELECT DISTINCT + col2 + + 80 FROM tab0
----
127
179
90

query I rowsort
SELECT - 67 + col2 FROM tab0
----
-20
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5508
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 >= + col0 - - + CAST( + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5508
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 >= + col0 - - + CAST ( + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 3 FROM tab1 WHERE NOT NULL <> col2
----

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 * + 8 AS col1 FROM tab1
----
51
-768
85
-472
91
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT COUNT( * ) + + 96 AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5511
SELECT COUNT ( * ) + + 96 AS col2 FROM tab0
----
99

query I rowsort
SELECT + + col2 - + + 73 + - 20 AS col0 FROM tab0 WHERE NULL IS NULL
----
-46
-83
6

query I rowsort
SELECT 51 + + 50 FROM tab1
----
101
101
101

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 - + col0 AND - col2
----

query II rowsort
SELECT - - col2, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT MAX( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 BETWEEN ( + 81 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT MAX ( ALL + col1 ) FROM tab1 AS cor0 WHERE col0 BETWEEN ( + 81 ) AND NULL
----
NULL

query II rowsort
SELECT col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + col2 + + col1 + - col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE 7 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT 66 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5522
SELECT 66 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

query II rowsort
SELECT DISTINCT + + col2 * + + col0 * col0 AS col2, - 2 AS col0 FROM tab2 cor0
----
163840
-2
326250
-2
48668
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT DISTINCT - COUNT( * ) * COUNT( * ), - 39 AS col2 FROM tab2 AS cor0
----
-9
-39

skipif mysql # not compatible
query II rowsort label-5524
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ), - 39 AS col2 FROM tab2 AS cor0
----
-9
-39

query I rowsort
SELECT ALL + + col0 * + 42 + - 51 FROM tab1 AS cor0
----
2091
3519
3771

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT - 74 DIV ( + 69 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5526
SELECT - 74 / ( + 69 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( + 22 ) AS col0 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5528
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 14 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT CAST ( NULL AS REAL ) * 14 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5529
SELECT ALL CAST( NULL AS SIGNED ) / col1 * + - CAST( NULL AS SIGNED ) * - - col0 col0 FROM tab2 WHERE NOT ( NULL <= ( 75 ) )
----

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 * + - CAST ( NULL AS INTEGER ) * - - col0 col0 FROM tab2 WHERE NOT ( NULL <= ( 75 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NULL <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NULL <= + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 <= + - col2 + 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col0, ( - + ( + - 83 ) ) FROM tab0
----
10
83
47
83
99
83

query II rowsort
SELECT DISTINCT 36 * + + 99 * - 21 + + - 83, + col0 AS col0 FROM tab2 AS cor0
----
-74927
46
-74927
64
-74927
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT COUNT( ALL + + col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5534
SELECT COUNT ( ALL + + col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT - - col1 * + - 20 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT ALL - col0 DIV + 12 FROM tab1 AS cor0
----
-4
-7
-7

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - col0 / + 12 FROM tab1 AS cor0
----
-4
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + + 80 * 12 AS col0 FROM tab1
----
1011
1045
1051

query I rowsort
SELECT - col1 FROM tab1 WHERE 8 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5541
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + 1 * 88 AS col0 FROM tab1
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 - 63 col0 FROM tab1
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT COUNT( DISTINCT - 51 ) * COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5544
SELECT COUNT ( DISTINCT - 51 ) * COUNT ( * ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL + 53 * col0 + col0 AS col2 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) * + col2 + + 29 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + 53 * col0 + col0 AS col2 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) * + col2 + + 29 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT + ( COUNT( * ) ) * + 66 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5546
SELECT + ( COUNT ( * ) ) * + 66 FROM tab1
----
198

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > ( col2 * col0 + + 80 )
----

query I rowsort
SELECT 80 + + col1 AS col1 FROM tab0
----
101
161
81

query I rowsort
SELECT 86 * - col1 FROM tab1
----
-1204
-4042
-430

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + col0 NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT + CAST( NULL AS SIGNED ) + col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT + CAST ( NULL AS INTEGER ) + col2 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 10 + + 78 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT MIN( ALL 27 ) AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5553
SELECT MIN ( ALL 27 ) AS col1 FROM tab2
----
27

query I rowsort
SELECT DISTINCT - col1 * 74 AS col1 FROM tab1 WHERE NOT NULL <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT col1 * + col1 FROM tab0 WHERE - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT DISTINCT 78 * - COUNT( * ) AS col2 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-5557
SELECT DISTINCT 78 * - COUNT ( * ) AS col2 FROM tab1
----
-234

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 75
----

query I rowsort
SELECT ( AVG ( + col2 ) ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( ( 51 ) / - col2 )
----
NULL

query I rowsort
SELECT col0 + 8 * - 72 AS col2 FROM tab1
----
-485
-491
-525

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 39 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + - col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + MAX( ALL ( ( + col2 ) ) ) + - 3 * - 88 AS col1 FROM tab2 AS cor0
----
322

skipif mysql # not compatible
query I rowsort label-5562
SELECT + MAX ( ALL ( ( + col2 ) ) ) + - 3 * - 88 AS col1 FROM tab2 AS cor0
----
322

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT ALL + 17 DIV 21 + col0 col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5563
SELECT ALL + 17 / 21 + col0 col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 * col0 + + 89 * 30 FROM tab1 AS cor0
----
7566
7685
8858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL col2 * + col0 + - ( - CAST( NULL AS SIGNED ) + - 72 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL col2 * + col0 + - ( - CAST ( NULL AS INTEGER ) + - 72 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT 88 DIV col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
4
88

skipif mysql # not compatible
query I rowsort label-5566
SELECT 88 / col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1
4
88

query I rowsort
SELECT DISTINCT col0 + col2 * 56 AS col2 FROM tab2
----
1334
2304
3323

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5568
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE CAST( + 53 AS SIGNED ) NOT BETWEEN - 41 AND + 88
----

skipif mysql # not compatible
query IIIIII rowsort label-5568
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE CAST ( + 53 AS INTEGER ) NOT BETWEEN - 41 AND + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - MAX( DISTINCT + 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5569
SELECT - MAX ( DISTINCT + 0 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL 65 * + col2 AS col2 FROM tab1
----
3835
4420
6240

query I rowsort
SELECT DISTINCT - 18 FROM tab2 AS cor0 WHERE 90 > col1
----
-18

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 67 ) BETWEEN NULL AND col0
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5574
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + CAST( col1 AS DECIMAL ) ) AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-5574
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + CAST ( col1 AS REAL ) ) AND ( col0 )
----

query I rowsort
SELECT - 48 * 61 FROM tab1 AS cor0
----
-2928
-2928
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 - - 15 AND + 73 / - col0 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 - - 15 AND + 73 / - col0 + + col0
----
0

query I rowsort
SELECT + 37 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT col2 DIV - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 DIV - 86 ) BETWEEN ( 35 * col2 ) AND ( NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT col2 / - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 / - 86 ) BETWEEN ( 35 * col2 ) AND ( NULL )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 9 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT + ( 23 ) * - COUNT( * ) AS col1 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT + ( 23 ) * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT SUM( + col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT DISTINCT SUM ( + col1 ) col0 FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0 + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) = + col1 * 65 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 86 FROM tab1 WHERE ( col0 ) = NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col0 * 26 FROM tab0 WHERE NULL IN ( + col0 - col1 )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE - col1 <> ( + 86 )
----
51
67
77

query I rowsort
SELECT DISTINCT - + ( - + 35 ) * 71 FROM tab2 cor0
----
2485

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5589
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IN ( - col0 + col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5589
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IN ( - col0 + col2 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 64
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( 40 - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( 40 - col0 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL COUNT( + 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL COUNT ( + 52 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 12 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( NOT - ( col0 ) * + col0 + - col0 * 4 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( NOT - ( col0 ) * + col0 + - col0 * 4 IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT + col2 * col0 * - + col2 AS col0 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT col1 * 35 FROM tab0 AS cor0 WHERE ( + col0 * col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + col0 + + col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT DISTINCT - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 35 IN ( - col0 )
----

query I rowsort
SELECT ALL 20 * - 13 AS col2 FROM tab0 AS cor0
----
-260
-260
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - 60 * + + col1 * - col1 + + 78 * col2 col2 FROM tab1 AS cor0
----
1136448
9018024
93102

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( ( - - col0 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + col1 + 88 * col0 col1 FROM tab0 AS cor0
----
1441
7717
8577

query I rowsort
SELECT DISTINCT - + 52 + - col2 FROM tab0 AS cor0
----
-151
-62
-99

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT 84 + col1 - col0 FROM tab0
----
-12
150
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT - 85 * MIN( + col2 ) * + - MAX( + col0 ) + COUNT( col2 + col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT - 85 * MIN ( + col2 ) * + - MAX ( + col0 ) + COUNT ( col2 + col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5610
SELECT ALL * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) / + - col0 * + ( col1 ) + - CAST( NULL AS SIGNED ) * col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5610
SELECT ALL * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) / + - col0 * + ( col1 ) + - CAST ( NULL AS INTEGER ) * col1 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + + col2 + + col1 AS col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT DISTINCT col2 - - col1 DIV - col0 FROM tab0
----
10
42
99

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT col2 - - col1 / - col0 FROM tab0
----
10
42
99

query I rowsort
SELECT + 53 * + col1 FROM tab0
----
1113
4293
53

query I rowsort
SELECT col2 + - col2 FROM tab1 WHERE + - col1 NOT IN ( - col2 )
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT DISTINCT - col0 DIV + 54 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - col0 / + 54 AS col1 FROM tab2
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( - 64 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT MIN( + 80 ) AS col1 FROM tab0 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
80

skipif mysql # not compatible
query I rowsort label-5618
SELECT MIN ( + 80 ) AS col1 FROM tab0 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * + + col1 * + col0 - col0 col1 FROM tab1 AS cor0
----
36040
36363
389116

query I rowsort
SELECT ALL + 57 AS col1 FROM tab0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT ( + col1 ) - + col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL - ( - col2 ) + 72 AS col2 FROM tab1 WHERE - - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5623
SELECT - + 85 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5623
SELECT - + 85 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 90 FROM tab0 WHERE + col0 + + 83 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col1 * + col0 )
----

query II rowsort
SELECT ALL + - col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT MIN( DISTINCT col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-5627
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59

query I rowsort
SELECT 80 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + 37 * - - col1 )
----
80
80
80

query I rowsort
SELECT + - 9 * + 69 AS col0 FROM tab0 cor0
----
-621
-621
-621

query I rowsort
SELECT + 27 * col1 FROM tab1 AS cor0
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT 65 * + - MIN( ALL col1 ) FROM tab2 cor0
----
-3315

skipif mysql # not compatible
query I rowsort label-5631
SELECT 65 * + - MIN ( ALL col1 ) FROM tab2 cor0
----
-3315

query II rowsort
SELECT 84, col1 FROM tab2
----
84
51
84
67
84
77

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + + col2 )
----

query I rowsort
SELECT DISTINCT 93 * + col0 FROM tab1
----
4743
7905
8463

query I rowsort
SELECT ALL + 4 * + 10 FROM tab0 AS cor0
----
40
40
40

query II rowsort
SELECT + 84 AS col0, + col1 FROM tab1 AS cor0
----
84
14
84
47
84
5

query I rowsort
SELECT 51 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 44 IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 94 * 82 * - col1 + - 66 * col2 IN ( 18 + 90 )
----

query I rowsort
SELECT DISTINCT ( col1 ) + + 14 AS col2 FROM tab2 AS cor0
----
65
81
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 91 + col0 / + 43 + - + 48 * + 33 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab2 AS cor0 WHERE 63 * - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + + - col1 - - col0 AS col1 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - + SUM( - - 75 ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5645
SELECT - + SUM ( - - 75 ) FROM tab2 AS cor0
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5646
SELECT DISTINCT - 14 DIV - MAX( - col0 ) + + MIN( - - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT - 14 / - MAX ( - col0 ) + + MIN ( - - col2 ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE + 56 NOT BETWEEN ( + col1 * - 26 ) AND + col1
----
-1

skipif mysql # not compatible
query I rowsort label-5647
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE + 56 NOT BETWEEN ( + col1 * - 26 ) AND + col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT DISTINCT col1 DIV col2 DIV - col0 * - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT col1 / col2 / - col0 * - col1 FROM tab1
----
0

query I rowsort
SELECT + col1 - + col0 + - + 64 FROM tab1
----
-101
-108
-144

query I rowsort
SELECT DISTINCT - col0 + - 42 * + 21 + + - 44 + - col2 * + 76 - - + 51 AS col0 FROM tab2
----
-2669
-3979
-5358

query II rowsort
SELECT col0 + 22 * + 36 AS col1, col2 FROM tab2
----
838
23
856
40
867
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + 59 + - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5652
SELECT + 59 + - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 + ( - + col2 ) * + 73 AS col1 FROM tab1 AS cor0
----
-3797
-596
-6243

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> + 4
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( col2, col1 / + col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 26 NOT IN ( - 79 + + 26 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL - 20 * - + COUNT( col0 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - 20 * - + COUNT ( col0 ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
60

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + - - col2 AND NULL
----

query I rowsort
SELECT - + 11 * - 4 + + + 57 AS col2 FROM tab2 AS cor0
----
101
101
101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5660
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5660
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + 77 * COUNT( * ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 77 * COUNT ( * ) FROM tab2
----
231

query I rowsort
SELECT + + col0 AS col2 FROM tab0 WHERE NOT - 40 IN ( + col1 - col2, - 60 )
----
15
87
97

query I rowsort
SELECT ALL 80 FROM tab1 WHERE NOT + col2 IS NULL
----
80
80
80

query I rowsort
SELECT - col1 + 27 FROM tab1
----
-20
13
22

query I rowsort
SELECT ALL - col1 + + col0 * + col0 + - col1 AS col0 FROM tab2 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 70 * + col0 col0 FROM tab2
----
-3169
-4403
-5183

query I rowsort
SELECT DISTINCT + col2 * - - ( col0 ) AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT ALL 26, COUNT( * ) AS col1 FROM tab1
----
26
3

skipif mysql # not compatible
query II rowsort label-5668
SELECT ALL 26, COUNT ( * ) AS col1 FROM tab1
----
26
3

query III rowsort
SELECT * FROM tab0 WHERE - - col0 BETWEEN + ( + col0 ) + - col2 AND + col0 * - - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5670
SELECT + - col1 + col1 + - - col0 + + + 12 + - 31 DIV + + col0 FROM tab1 AS cor0
----
103
63
97

skipif mysql # not compatible
query I rowsort label-5670
SELECT + - col1 + col1 + - - col0 + + + 12 + - 31 / + + col0 FROM tab1 AS cor0
----
103
63
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + - 23 col0 FROM tab0 AS cor0
----
-110
-120
-38

query I rowsort
SELECT - + col2 + col0 * + 51 AS col0 FROM tab1 cor0
----
2505
4276
4573

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 41 IN ( - - 89 + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL 94 - - - COUNT( * ) + - + 13 AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL 94 - - - COUNT ( * ) + - + 13 AS col2 FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT DISTINCT + - 33 col2 FROM tab0 WHERE - 22 < - col2 / - CAST( + - col2 AS SIGNED ) * - 7 * 68 + + + 1
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5675
SELECT DISTINCT + - 33 col2 FROM tab0 WHERE - 22 < - col2 / - CAST ( + - col2 AS INTEGER ) * - 7 * 68 + + + 1
----
-33

query I rowsort
SELECT DISTINCT 46 * + - col0 - col2 FROM tab0
----
-4012
-4561
-737

query I rowsort
SELECT + 78 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT + 17 - - COUNT( * ) AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + 17 - - COUNT ( * ) AS col0 FROM tab0
----
20

query I rowsort
SELECT DISTINCT - + col1 * - 42 + col2 FROM tab1 AS cor0
----
2042
269
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT + CAST( ( col1 ) AS SIGNED ) + col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-5680
SELECT + CAST ( ( col1 ) AS INTEGER ) + col1 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * - col0 + + col0
----

query II rowsort
SELECT DISTINCT - 60 * - - 43 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
-2580
-59
-2580
-68
-2580
-96

query I rowsort
SELECT + col0 * + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT SUM( - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT SUM ( - + col1 ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= - 63 + - 39 - 61 * + col1 * col0
----

query II rowsort
SELECT DISTINCT - 89, + col2 AS col2 FROM tab0 AS cor0
----
-89
10
-89
47
-89
99

query I rowsort
SELECT - 62 * col2 * + + 26 FROM tab2 AS cor0
----
-37076
-64480
-93496

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5689
SELECT MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT - 27 * - CAST( + col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5690
SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT - 27 * - CAST ( + col2 AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - col0 + - col2 * + col2 FROM tab2 AS cor0
----
-2645
-5696
-8989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT ALL - 83 DIV SUM( DISTINCT + col2 ) * - ( - - COUNT( * ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - 83 / SUM ( DISTINCT + col2 ) * - ( - - COUNT ( * ) ) AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - - col1 ) AND NULL
----

query II rowsort
SELECT + ( + + 74 ), + 28 / + 51 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab1 WHERE NOT col1 NOT IN ( - col1 + + + ( col0 ) / + + col1 )
----

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 WHERE NOT col1 NOT IN ( - col1 + + + ( col0 ) / + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 * 86 col2 FROM tab0
----
-60630
-74820
-825858

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT DISTINCT + MAX( ALL + col2 ) + 61 AS col1, 35 AS col1 FROM tab1
----
157
35

skipif mysql # not compatible
query II rowsort label-5698
SELECT DISTINCT + MAX ( ALL + col2 ) + 61 AS col1, 35 AS col1 FROM tab1
----
157
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5699
SELECT * FROM tab1 WHERE + CAST( 17 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5699
SELECT * FROM tab1 WHERE + CAST ( 17 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT + + CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5701
SELECT + + CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - + col0 - - col2 + 53 * - + col1 + - 95 AS col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + 82 * + col2 FROM tab0 AS cor0 WHERE col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * - col1 OR NOT ( NOT + ( + col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL - COUNT( * ) + + 40 AS col0 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - COUNT ( * ) + + 40 AS col0 FROM tab2 AS cor0
----
37

query I rowsort
SELECT col2 * - + col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5707
SELECT ALL - 51 + - + col2 + + 62 + + CAST( + col2 AS DECIMAL ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - 51 + - + col2 + + 62 + + CAST ( + col2 AS REAL ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - 67 - + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
-158

skipif mysql # not compatible
query I rowsort label-5708
SELECT - 67 - + MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-158

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT DISTINCT ( + + COUNT( * ) ) - 87 AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT ( + + COUNT ( * ) ) - 87 AS col2 FROM tab1
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col0 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL - SUM( DISTINCT - col1 ) - + 59 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - SUM ( DISTINCT - col1 ) - + 59 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT DISTINCT - 23 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - 23 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT ( - ( + + ( 77 ) ) ) AS col0, - SUM( DISTINCT 92 ) FROM tab2
----
-77
-92

skipif mysql # not compatible
query II rowsort label-5714
SELECT ( - ( + + ( 77 ) ) ) AS col0, - SUM ( DISTINCT 92 ) FROM tab2
----
-77
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT DISTINCT - MIN( DISTINCT 50 ) AS col0, 77 AS col1 FROM tab2 AS cor0
----
-50
77

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT - MIN ( DISTINCT 50 ) AS col0, 77 AS col1 FROM tab2 AS cor0
----
-50
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT - COUNT( col2 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT - COUNT ( col2 ) col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 3 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) * + 28 FROM tab2 AS cor0
----
1288
1792
2100

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) * + 28 FROM tab2 AS cor0
----
1288
1792
2100

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, - 32 + 63 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - + col2 / + col0 NOT BETWEEN - col1 AND col1 + + 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 42, col1 FROM tab0
----
42
1
42
21
42
81

query I rowsort
SELECT ALL - - ( - col1 ) AS col1 FROM tab1 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE 44 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE 44 IS NOT NULL
----
-3

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE + 93 + - 11 + - col2 * + col1 * - ( + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5727
SELECT - ( + col2 ) col2, col1 + CAST( - - col2 AS SIGNED ) AS col2 FROM tab1
----
-59
64
-68
115
-96
110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5727
SELECT - ( + col2 ) col2, col1 + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1
----
-59
64
-68
115
-96
110

query I rowsort
SELECT ALL + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + col0 FROM tab0 WHERE ( - + col2 + col2 * - 87 ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( 60 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL + + 95 + - COUNT( * ) + - + 9 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + + 95 + - COUNT ( * ) + - + 9 FROM tab2 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 7 col1 FROM tab2 AS cor0
----
7

query I rowsort
SELECT ALL - - 59 FROM tab0 WHERE col0 IS NOT NULL
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5734
SELECT ( - CAST( - 92 AS SIGNED ) ) AS col2, + 90 AS col1 FROM tab2
----
92
90
92
90
92
90

skipif mysql # not compatible
query II rowsort label-5734
SELECT ( - CAST ( - 92 AS INTEGER ) ) AS col2, + 90 AS col1 FROM tab2
----
92
90
92
90
92
90

query I rowsort
SELECT ALL - ( 39 ) AS col2 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT ( COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5736
SELECT DISTINCT ( COUNT ( * ) ) col1 FROM tab2
----
3

query I rowsort
SELECT - col1 + - - 82 + col2 AS col2 FROM tab0 AS cor0
----
180
48
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - ( - col1 )
----

query I rowsort
SELECT ALL + + col1 * - 93 * + + 49 FROM tab0 AS cor0
----
-369117
-4557
-95697

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5740
SELECT CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5740
SELECT CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 65 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT DISTINCT + col1 + - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + col1 + - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + 76 * - 13 * + col0 * + 73 AS col1 FROM tab1 AS cor0 WHERE 10 + + 38 IS NULL
----

query II rowsort
SELECT ALL + 89 * + - 69 AS col1, col1 * 63 FROM tab1
----
-6141
2961
-6141
315
-6141
882

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT - MAX( ALL + + col0 ) * + + COUNT( * ) AS col1 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-5746
SELECT - MAX ( ALL + + col0 ) * + + COUNT ( * ) AS col1 FROM tab0
----
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 96 * - col0 col1 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT - col2 * + 91 + + - 39 FROM tab1 AS cor0
----
-5408
-6227
-8775

query I rowsort
SELECT ALL + 78 - col2 FROM tab0
----
-21
31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT + COUNT( ALL 69 ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + COUNT ( ALL 69 ) - + COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT + col2 * - - CAST( - col0 AS SIGNED ) * + col0 FROM tab0
----
-10575
-75690
-931491

skipif mysql # not compatible
query I rowsort label-5751
SELECT + col2 * - - CAST ( - col0 AS INTEGER ) * + col0 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT - 80 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NULL >= - 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT - 8 DIV - - col1 AS col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT - 8 / - - col1 AS col2 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT 18 - - - col1 FROM tab2 AS cor0
----
-33
-49
-59

query I rowsort
SELECT - 79 * + 53 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * + 85 FROM tab1 cor0
----
-1190
-3995
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL + + MAX( + ( col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + + MAX ( + ( col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL col2 * + 68 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab1, tab1 AS cor0
----
-88

query II rowsort
SELECT + col0 * - col1 AS col0, col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5762
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5762
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col0 ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * 68 + col2 AS col0 FROM tab1 AS cor0 WHERE ( + col0 ) * + 32 * col2 * - col2 + + col1 + - 5 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5765
SELECT ALL + - col1 / - col0 - - col0 * + - col1 * + 29 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, - ( + CAST( NULL AS DECIMAL ) ) + 19 )
----

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL + - col1 / - col0 - - col0 * + - col1 * + 29 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, - ( + CAST ( NULL AS REAL ) ) + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT + 16 * + - COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5766
SELECT + 16 * + - COUNT ( * ) FROM tab2
----
-48

query I rowsort
SELECT ALL ( + - ( - col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col2 FROM tab1 cor0
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 67 AS col2 FROM tab2 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT + + MIN( + + ( + ( col0 ) ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5771
SELECT + + MIN ( + + ( + ( col0 ) ) ) FROM tab0 cor0
----
15

query I rowsort
SELECT ALL col1 + - - 1 + - - col2 AS col1 FROM tab0 AS cor0
----
101
129
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT DISTINCT - col2 + + col1 DIV - 37 + col1 + + - 4 FROM tab2 cor0
----
23
31
4

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT - col2 + + col1 / - 37 + col1 + + - 4 FROM tab2 cor0
----
23
31
4

query II rowsort
SELECT col2 + - col2 + col0 AS col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT MIN( DISTINCT - + col1 ) + + - 41 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-5776
SELECT MIN ( DISTINCT - + col1 ) + + - 41 FROM tab1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT - col1 + - + 62 DIV col0 AS col0 FROM tab1
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-5777
SELECT - col1 + - + 62 / col0 AS col0 FROM tab1
----
-15
-47
-5

query I rowsort
SELECT + col0 + col0 * - - col2 AS col1 FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT ALL - 39 * COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL - 39 * COUNT ( * ) FROM tab2
----
-117

query I rowsort
SELECT + 23 + 76 FROM tab2
----
99
99
99

query II rowsort
SELECT 74, + col1 + 29 / 86 FROM tab1 WHERE NULL BETWEEN NULL AND - col1
----

query III rowsort
SELECT 81 AS col1, 48 AS col0, + 58 AS col0 FROM tab1
----
9 values hashing to 46d114d25248aec9782cfee332eb273e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT DISTINCT + 36 / col2 * + col2 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + 36 / col2 * + col2 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 33 + - col2 FROM tab0 AS cor0
----
-132
-43
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT COUNT( * ) + + + ( - - 31 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT COUNT ( * ) + + + ( - - 31 ) FROM tab0 AS cor0
----
34

query I rowsort
SELECT ALL - - col1 + - - 8 - + - 79 FROM tab0 AS cor0
----
108
168
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT - + 64 DIV - col2 - + - col0 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-5787
SELECT - + 64 / - col2 - + - col0 FROM tab2 AS cor0
----
48
65
76

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 67 * - 10 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT + + 19 DIV 93 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT + + 19 / 93 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 85 * col2
----

query I rowsort
SELECT - col0 * col2 - col0 AS col2 FROM tab2 AS cor0
----
-1104
-2624
-4425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 76 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5793
SELECT + 71 * + + CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5793
SELECT + 71 * + + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT - + 46 * - - col1 AS col2 FROM tab2 AS cor0
----
-2346
-3082
-3542

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 = ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT - 81 DIV - COUNT( + + col2 ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-5796
SELECT - 81 / - COUNT ( + + col2 ) FROM tab2 cor0
----
27

query I rowsort
SELECT - col2 * - + col1 AS col1 FROM tab1
----
1344
295
3196

query II rowsort
SELECT ALL + + col1, ( + col1 ) AS col0 FROM tab2 WHERE + col2 * + col1 NOT BETWEEN - 61 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, - col2 col0 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT + COUNT( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT ALL - 12 FROM tab2 WHERE + ( col1 ) IS NOT NULL
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT 32 * - SUM( DISTINCT - - 19 ) * - 66 AS col0 FROM tab1 AS cor0
----
40128

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT 32 * - SUM ( DISTINCT - - 19 ) * - 66 AS col0 FROM tab1 AS cor0
----
40128

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + + + 41 + - - col2 BETWEEN - 42 AND + 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT + COUNT( * ) * COUNT( * ) + + COUNT( DISTINCT col0 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-5804
SELECT + COUNT ( * ) * COUNT ( * ) + + COUNT ( DISTINCT col0 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT + MIN( + col2 ) * - - MAX( + - col1 ) + - COUNT( * ) + - - 22 col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5805
SELECT + MIN ( + col2 ) * - - MAX ( + - col1 ) + - COUNT ( * ) + - - 22 col0 FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 / col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT DISTINCT - col0 DIV - 4 + - ( + 37 ) AS col0 FROM tab2 AS cor0
----
-19
-21
-26

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT - col0 / - 4 + - ( + 37 ) AS col0 FROM tab2 AS cor0
----
-19
-21
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT DISTINCT col0 + + + col1 DIV + col0 * - 72 * 85 col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5808
SELECT DISTINCT col0 + + + col1 / + col0 * - 72 * 85 col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + 37 * + + ( + 19 ) + - col0 AS col0 FROM tab2 AS cor0
----
628
639
657

query I rowsort
SELECT DISTINCT col1 + 47 - + 72 - + col2 * - 13 FROM tab1 AS cor0
----
1237
747
906

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT DISTINCT + COUNT( * ) * + 8 - + 61 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT + COUNT ( * ) * + 8 - + 61 FROM tab2 AS cor0
----
-37

query III rowsort
SELECT ALL * FROM tab1 WHERE - 55 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT NULL = 81 / + col0
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT NULL = 81 / + col0
----
0

query I rowsort
SELECT col0 - + col2 + col2 * + - col0 + col2 AS col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT col1 * CAST( NULL AS SIGNED ) - - ( - 84 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT col1 * CAST ( NULL AS INTEGER ) - - ( - 84 ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - col1, 24 AS col1 FROM tab1 WHERE + - col2 + + + col2 IS NOT NULL
----
-14
24
-47
24
-5
24

query III rowsort
SELECT * FROM tab0 WHERE - + ( 98 ) >= NULL
----

query I rowsort
SELECT ALL col2 - - - 36 AS col2 FROM tab2
----
-13
22
4

query I rowsort
SELECT DISTINCT - - 97 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 79 AND NULL
----

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab0 cor0
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 74 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 < NULL
----

query I rowsort
SELECT DISTINCT 95 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1439
3291
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 cor0 WHERE 39 + ( + - col2 ) IN ( + ( - col1 ) )
----

query II rowsort
SELECT col0, + col0 + + col1 FROM tab2
----
46
97
64
141
75
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL SUM( + 1 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL SUM ( + 1 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + + ( + 89 ) AS col2 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - + 60 FROM tab1 cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5829
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= - col1 * col2 - + 28 + + col2
----

skipif mysql # not compatible
query III rowsort label-5829
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= - col1 * col2 - + 28 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5830
SELECT ALL + - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5831
SELECT DISTINCT + 28 * + 32 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT + 28 * + 32 / + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT ALL MIN( + col2 ) DIV ( + 77 ) + + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL MIN ( + col2 ) / ( + 77 ) + + COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT - col0 * - 17 AS col0 FROM tab0
----
1479
1649
255

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT DISTINCT + col0 DIV ( - - col0 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + col0 / ( - - col0 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5835
SELECT - 45 DIV - 64 * + - ( - MIN( DISTINCT - 94 ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT - 45 / - 64 * + - ( - MIN ( DISTINCT - 94 ) ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( ( - 78 ) ) BETWEEN NULL AND col0 * + + col0
----

query II rowsort
SELECT - col1 * col0, col2 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + COUNT( + 61 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5838
SELECT + COUNT ( + 61 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 30 * col0 + - ( + 46 ) AS col1 FROM tab2
----
1334
1874
2204

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT 76 + - + 12 * + + SUM( + ( 63 ) ) FROM tab1
----
-2192

skipif mysql # not compatible
query I rowsort label-5842
SELECT 76 + - + 12 * + + SUM ( + ( 63 ) ) FROM tab1
----
-2192

query I rowsort
SELECT col2 + + 65 FROM tab1 AS cor0
----
124
133
161

query I rowsort
SELECT DISTINCT 6 + - col1 + + 60 AS col1 FROM tab1 cor0
----
19
52
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, col1 col0 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab2 WHERE - 5 - - - col0 - - ( - + 38 ) * + col0 + + col0 - + - col2 <> ( NULL )
----

query I rowsort
SELECT - - 2 * 84 + - col0 * col0 + 60 FROM tab2 AS cor0
----
-1888
-3868
-5397

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL + MAX( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + MAX ( DISTINCT + + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ( ( col2 ) ) + + col0 + col0 * + + ( col2 ) AS col2 FROM tab0 AS cor0
----
767
967
9799

query I rowsort
SELECT ALL + - col2 + + - col0 + col0 * col2 FROM tab1 AS cor0
----
4749
4871
6029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5851
SELECT + col2 AS col2 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5851
SELECT + col2 AS col2 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL - COUNT( ALL + col1 ) - - + 86 + + ( + + MIN( col0 ) ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - COUNT ( ALL + col1 ) - - + 86 + + ( + + MIN ( col0 ) ) FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT COUNT( * ) + 17 + 9 AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-5853
SELECT COUNT ( * ) + 17 + 9 AS col0 FROM tab0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5854
SELECT ALL col1 DIV + - col2 + 5 FROM tab0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL col1 / + - col2 + 5 FROM tab0
----
3
4
5

query I rowsort
SELECT 41 + - col2 FROM tab2
----
-17
1
18

query I rowsort
SELECT DISTINCT ( - col0 ) - + ( col2 ) FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT + 38 FROM tab1 WHERE NOT NULL IS NOT NULL
----
38

query I rowsort
SELECT DISTINCT + col0 * - 38 + - + col2 + + + 10 AS col0 FROM tab2
----
-1761
-2462
-2898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5859
SELECT ALL + CAST( NULL AS SIGNED ) / - col0 + + col0 + - + ( col2 ) * - CAST( + + col0 AS SIGNED ) + + 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + CAST ( NULL AS INTEGER ) / - col0 + + col0 + - + ( col2 ) * - CAST ( + + col0 AS INTEGER ) + + 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 78 - - col2, col2 FROM tab0 AS cor0
----
125
47
177
99
88
10

query I rowsort
SELECT ALL 14 * - col1 * + - 67 - + col1 * + 60 FROM tab0 AS cor0
----
18438
71118
878

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT DISTINCT + + col2 DIV col0 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5862
SELECT DISTINCT + + col2 / col0 col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0 AS col2, - col0 AS col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + SUM( + - 63 ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5865
SELECT + SUM ( + - 63 ) FROM tab2 AS cor0
----
-189

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 83 NOT BETWEEN NULL AND col1 * - col2 / + col0 * + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT - - MIN( ALL - - col1 ) col1 FROM tab1 AS cor0 WHERE 25 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5867
SELECT DISTINCT - - MIN ( ALL - - col1 ) col1 FROM tab1 AS cor0 WHERE 25 IS NULL
----
NULL

query II rowsort
SELECT 90 * - col2 * col0 AS col1, - 43 FROM tab0 AS cor0
----
-63450
-43
-78300
-43
-864270
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 col1 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5870
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col2 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) BETWEEN NULL AND 10
----

skipif mysql # not compatible
query II rowsort label-5870
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col2 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) BETWEEN NULL AND 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - SUM( 91 ) * - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
819

skipif mysql # not compatible
query I rowsort label-5871
SELECT - SUM ( 91 ) * - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT SUM( + col2 ) * - MIN( DISTINCT + col0 ) FROM tab0
----
-2340

skipif mysql # not compatible
query I rowsort label-5872
SELECT SUM ( + col2 ) * - MIN ( DISTINCT + col0 ) FROM tab0
----
-2340

query I rowsort
SELECT col0 * + 32 AS col1 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT DISTINCT - 48 - - col0 AS col0 FROM tab0 WHERE NOT - col0 - - 35 <> + col1
----

query I rowsort
SELECT ALL - col0 * - col0 * + col1 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT DISTINCT + col2 / col2 + - + CAST( NULL AS SIGNED ) + - col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT + col2 / col2 + - + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT + + 52 + + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
43

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + + 52 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
43

query I rowsort
SELECT - 27 + - 93 * 88 - + 17 FROM tab0
----
-8228
-8228
-8228

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 * - + col0 <> + - col0 * + col0
----

query II rowsort
SELECT ALL - ( - col1 ) AS col0, - 6 * + col2 FROM tab0
----
1
-594
21
-60
81
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + COUNT( * ) + + 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
22

skipif mysql # not compatible
query I rowsort label-5881
SELECT + COUNT ( * ) + + 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 41 <> col1 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 41 <> col1 * + col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT ALL col0 DIV - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL col0 / - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

query I rowsort
SELECT ALL - col1 * - - 79 FROM tab2 AS cor0 WHERE col1 > + ( col1 )
----

query I rowsort
SELECT ALL - col1 + col1 + - - col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + - col0 + - - col0 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL COUNT( * ) + - CAST( + 81 AS SIGNED ) col2 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5888
SELECT ALL COUNT ( * ) + - CAST ( + 81 AS INTEGER ) col2 FROM tab1
----
-78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - col2 - - + col2
----

query I rowsort
SELECT DISTINCT - ( col1 ) - - 86 * + 43 AS col2 FROM tab2
----
3621
3631
3647

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL + MIN( + 11 ) AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + MIN ( + 11 ) AS col0 FROM tab0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5892
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab2 cor0
----
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 * + col2 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 93 * - 44 + col2 FROM tab0 AS cor0
----
-3993
-4045
-4082

query I rowsort
SELECT ALL 60 / + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col1 + + + col1 )
----

query I rowsort
SELECT ALL col1 + + 99 * col1 + - col1 + - 14 + + col0 AS col0 FROM tab2 cor0
----
5081
6694
7673

query I rowsort
SELECT - col1 * - 71 + - col0 AS col1 FROM tab0 cor0
----
-26
1404
5736

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT col0 DIV + + ( + col1 ) AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5899
SELECT col0 / + + ( + col1 ) AS col2 FROM tab2
----
0
0
1

query II rowsort
SELECT DISTINCT col2 AS col0, 38 * col1 FROM tab2
----
23
1938
40
2926
58
2546

query I rowsort
SELECT ALL - col1 * - 23 FROM tab1
----
1081
115
322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT - CAST( - 53 AS SIGNED ) + - + col0 AS col1 FROM tab0
----
-34
-44
38

skipif mysql # not compatible
query I rowsort label-5902
SELECT - CAST ( - 53 AS INTEGER ) + - + col0 AS col1 FROM tab0
----
-34
-44
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col0 - - - 54 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col0 - - - 54 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT + COUNT( * ) + + 21 AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + COUNT ( * ) + + 21 AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT + MIN( + 47 ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-5905
SELECT + MIN ( + 47 ) AS col1 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT + - COUNT( * ) * ( + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT + col1 - - 40 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT + - COUNT ( * ) * ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT + col1 - - 40 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - COUNT( * ) + - + 69 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-78

skipif mysql # not compatible
query I rowsort label-5907
SELECT - COUNT ( * ) + - + 69 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-78

query I rowsort
SELECT + ( ( + - col1 ) ) FROM tab1 WHERE ( NOT NULL IS NOT NULL ) OR NOT - col1 > NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5909
SELECT ALL - CAST( col1 AS SIGNED ) * + col1 - - + 34 AS col0, col1 AS col1 FROM tab2
----
-2567
51
-4455
67
-5895
77

skipif mysql # not compatible
query II rowsort label-5909
SELECT ALL - CAST ( col1 AS INTEGER ) * + col1 - - + 34 AS col0, col1 AS col1 FROM tab2
----
-2567
51
-4455
67
-5895
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT CAST( NULL AS SIGNED ) * col2 + + - ( - col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT CAST ( NULL AS INTEGER ) * col2 + + - ( - col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL - - SUM( col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - - SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT + col0 + + + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5914
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) >= + col2 * - col1 + col1 * col0 * + col1 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5914
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) >= + col2 * - col1 + col1 * col0 * + col1 * - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT + - MIN( + 48 ) AS col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5915
SELECT + - MIN ( + 48 ) AS col2 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + ( + COUNT( - + 5 ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT + ( + COUNT ( - + 5 ) ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT 71 AS col1, col0 AS col2, - 0 + - ( 57 ) AS col2 FROM tab0 AS cor0
----
9 values hashing to e3f6fb8da8446f39bdc9b6da189bc59a

query I rowsort
SELECT ( + 35 ) AS col2 FROM tab0
----
35
35
35

query I rowsort
SELECT DISTINCT - col0 * + + 53 AS col2 FROM tab1
----
-2703
-4505
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + 88 FROM tab2 WHERE ( ( NOT NULL >= NULL ) )
----

query I rowsort
SELECT + col0 * + 75 * + 24 * - col0 AS col2 FROM tab0 cor0
----
-13624200
-16936200
-405000

query II rowsort
SELECT DISTINCT col2, col1 + + col2 * - - col1 - 11 + + col2 * - + col2 * - col0 AS col2 FROM tab2
----
23
25547
40
105546
58
256242

query I rowsort
SELECT - + 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # aggregate syntax: 
query II rowsort label-5925
SELECT + COUNT( * ) AS col2, + MIN( ALL - - 85 ) col0 FROM tab2 AS cor0
----
3
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5925
SELECT + COUNT ( * ) AS col2, + MIN ( ALL - - 85 ) col0 FROM tab2 AS cor0
----
3
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - + MIN( + 79 ) AS col0 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5926
SELECT - + MIN ( + 79 ) AS col0 FROM tab0 AS cor0
----
-79

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 >= - ( - col0 ) + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 col2, + col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + col1 * - - 93 + - + col1 AS col1 FROM tab1 AS cor0
----
1288
4324
460

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT DISTINCT + col1 * + - col0 + + col2 + - - ( col0 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4968

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT + col1 * + - col0 + + col2 + - - ( col0 ) / - col1 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT + CAST( NULL AS SIGNED ) * 11 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT + CAST ( NULL AS INTEGER ) * 11 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 * col1 NOT BETWEEN + col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5933
SELECT * FROM tab0 WHERE - col2 * - ( col2 ) + + 27 <= - col0 * + CAST( NULL AS SIGNED ) - + + 77 - - col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-5933
SELECT * FROM tab0 WHERE - col2 * - ( col2 ) + + 27 <= - col0 * + CAST ( NULL AS INTEGER ) - + + 77 - - col1 + - col0
----

query I rowsort
SELECT ALL - col2 * - col2 * col0 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT - + CAST( NULL AS SIGNED ) + - + col0 + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT - + CAST ( NULL AS INTEGER ) + - + col0 + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 53 + - col0 FROM tab0 cor0
----
-34
-44
38

query I rowsort
SELECT ALL + - 51 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + 72 ) * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + ( COUNT( * ) ) - + + ( 58 ) AS col2 FROM tab0 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5940
SELECT + ( COUNT ( * ) ) - + + ( 58 ) AS col2 FROM tab0 cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT SUM( + - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT SUM ( + - col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5943
SELECT ALL - col1 DIV 35, col0 DIV - col2 FROM tab2
----
-1
-1
-1
-2
-2
-1

skipif mysql # not compatible
query II rowsort label-5943
SELECT ALL - col1 / 35, col0 / - col2 FROM tab2
----
-1
-1
-1
-2
-2
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT MAX( DISTINCT + 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5944
SELECT MAX ( DISTINCT + 69 ) FROM tab2
----
69

query II rowsort
SELECT DISTINCT + col2, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 42, + ( + col1 ) col2 FROM tab0
----
42
1
42
21
42
81

query I rowsort
SELECT + - col2 + + + col0 AS col2 FROM tab1 WHERE NOT 85 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * 9 * 63 + - 94 * col0 AS col2 FROM tab1 AS cor0
----
-10825
-12732
-35203

query I rowsort
SELECT + + col0 + + col2 FROM tab2 AS cor0 WHERE NOT col2 + + col1 * 95 * + col1 < - - col1 + + - ( + + col1 )
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL MAX( 45 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL MAX ( 45 ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT - 73 * 91 FROM tab1
----
-6643
-6643
-6643

query I rowsort
SELECT ALL col1 + 32 AS col2 FROM tab0
----
113
33
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + ( - col2 ) ) + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 47 AS col0 FROM tab0 AS cor0 WHERE + col1 + - - 7 IS NOT NULL
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT ALL - - CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - - CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 * col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 91 + + 23 FROM tab0 AS cor0
----
-53
19
29

query II rowsort
SELECT col1 + - 37 + + 11, col2 AS col2 FROM tab1
----
-12
96
-21
59
21
68

query II rowsort
SELECT ALL col2 * + col0 * - 54, col0 AS col2 FROM tab1
----
-264384
51
-270810
85
-334152
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 >= + 86 / + col0 + 46 * ( + 61 ) * - ( + - 83 ) + + 49 - - col2 )
----

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - - col2 ) FROM tab2 WHERE NOT - col0 <= 1 / + ( + col0 ) / - - ( - col0 ) + col0
----
NULL

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( - 12 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5964
SELECT ALL - SUM( DISTINCT + ( + col2 ) ) AS col2, COUNT( * ) * - COUNT( ALL ( col2 ) ) FROM tab1 cor0
----
-223
-9

skipif mysql # not compatible
query II rowsort label-5964
SELECT ALL - SUM ( DISTINCT + ( + col2 ) ) AS col2, COUNT ( * ) * - COUNT ( ALL ( col2 ) ) FROM tab1 cor0
----
-223
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT + - MIN( ALL col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5965
SELECT + - MIN ( ALL col1 ) FROM tab1 cor0
----
-5

query I rowsort
SELECT ALL + 42 * - col0 - 28 AS col1 FROM tab1
----
-2170
-3598
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5967
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + 13 * col0 ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5967
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( + 13 * col0 ) AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT - MIN( + col1 ) + 93 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( 39 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - MIN ( + col1 ) + 93 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( 39 * col1 )
----
NULL

query I rowsort
SELECT + 80 FROM tab0 WHERE NULL <= col1
----

query I rowsort
SELECT - ( + 96 ) * col2 AS col0 FROM tab0
----
-4512
-9504
-960

query I rowsort
SELECT + col2 * 92 AS col1 FROM tab1
----
5428
6256
8832

onlyif mysql # DIV for integer division: 
query I rowsort label-5972
SELECT DISTINCT 32 DIV + col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT 32 / + col1 FROM tab1
----
0
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 WHERE + col2 * + col0 > ( 57 - + col0 * + 11 )
----
-51
-85
-91

query I rowsort
SELECT - 76 + 33 / + 60 AS col0 FROM tab1 WHERE col0 - 8 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT - 85 + col1 * col1 FROM tab0
----
-84
356
6476

query I rowsort
SELECT 34 * col2 + + col2 AS col2 FROM tab1
----
2065
2380
3360

query I rowsort
SELECT + col1 + 43 AS col0 FROM tab1
----
48
57
90

query I rowsort
SELECT col2 * + 45 + + col0 FROM tab0
----
2130
4552
537

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL col1 DIV col2 + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL col1 / col2 + + col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT COUNT( 61 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5981
SELECT COUNT ( 61 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 39 + + ( - 8 + 54 * col2 ) ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5983
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 * CAST( - col1 * - col1 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5983
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 * CAST ( - col1 * - col1 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT ( COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5984
SELECT DISTINCT ( COUNT ( * ) ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5985
SELECT CAST( NULL AS DECIMAL ) + + ( + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT CAST ( NULL AS REAL ) + + ( + col0 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT DISTINCT - 63 DIV 20 + ( COUNT( * ) + COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT - 63 / 20 + ( COUNT ( * ) + COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL COUNT( * ) * COUNT( * ) + 18 * COUNT( * ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL COUNT ( * ) * COUNT ( * ) + 18 * COUNT ( * ) AS col0 FROM tab1
----
63

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT - 44 + col0 DIV - ( col0 ) AS col2 FROM tab1
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-5989
SELECT - 44 + col0 / - ( col0 ) AS col2 FROM tab1
----
-45
-45
-45

query I rowsort
SELECT ALL 6 + + 9 * + 4 FROM tab2
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL SUM( ALL - 22 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL SUM ( ALL - 22 ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT - col0 + 35 * + col0 FROM tab0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ( COUNT( * ) ) * + 30 AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5993
SELECT ( COUNT ( * ) ) * + 30 AS col0 FROM tab1 AS cor0
----
90

query I rowsort
SELECT + col1 * - 64 FROM tab0 AS cor0 WHERE NOT NULL = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ( - COUNT( 97 ) ) * - 25 AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5995
SELECT ( - COUNT ( 97 ) ) * - 25 AS col0 FROM tab2 cor0
----
75

query I rowsort
SELECT 69 * 62 AS col2 FROM tab1 AS cor0
----
4278
4278
4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5997
SELECT ALL + CAST( + 20 AS SIGNED ) DIV MAX( DISTINCT col0 + - CAST( - 35 + + 34 * col1 AS SIGNED ) * col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + CAST ( + 20 AS INTEGER ) / MAX ( DISTINCT col0 + - CAST ( - 35 + + 34 * col1 AS INTEGER ) * col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5998
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-1

query I rowsort
SELECT + col0 + + 55 * + col0 FROM tab1
----
2856
4760
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6000
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

query I rowsort
SELECT DISTINCT ( - 11 ) + + col2 AS col2 FROM tab2 WHERE ( - 66 ) IN ( 17 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT + + ( col2 ) DIV 11 FROM tab2 AS cor0
----
2
3
5

skipif mysql # not compatible
query I rowsort label-6003
SELECT + + ( col2 ) / 11 FROM tab2 AS cor0
----
2
3
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( 0 ) / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT 79 * - COUNT( * ) + 51 AS col0 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT 79 * - COUNT ( * ) + 51 AS col0 FROM tab1 AS cor0
----
-186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6006
SELECT 62 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT 62 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL - 98 + MAX( DISTINCT - 84 ) FROM tab0 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL - 98 + MAX ( DISTINCT - 84 ) FROM tab0 AS cor0
----
-182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6008
SELECT ALL + col0 + + CAST( - 87 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL + col0 + + CAST ( - 87 AS INTEGER ) / col1 FROM tab2 AS cor0
----
45
63
74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 * col1 ) IS NULL
----

query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT 70 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE - col1 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6012
SELECT DISTINCT + CAST( 56 AS DECIMAL ) / + col2 + col2 AS col2 FROM tab0 WHERE NOT + col1 < NULL OR 95 / + ( - col2 * CAST( NULL AS SIGNED ) ) - ( col1 ) * - 65 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + CAST ( 56 AS REAL ) / + col2 + col2 AS col2 FROM tab0 WHERE NOT + col1 < NULL OR 95 / + ( - col2 * CAST ( NULL AS INTEGER ) ) - ( col1 ) * - 65 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 5 IS NULL
----

query I rowsort
SELECT ALL - ( - col1 ) * + col0 FROM tab2 WHERE col1 IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT + 89 - + + col1 * col2 FROM tab1
----
-1255
-206
-3107

query I rowsort
SELECT DISTINCT - col2 - col2 + col2 * - 74 AS col1 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT - col1 + 21 DIV + 87 col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6017
SELECT - col1 + 21 / + 87 col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT - MAX( ALL 94 ) + + 78 * COUNT( * ) AS col1 FROM tab2 cor0
----
140

skipif mysql # not compatible
query I rowsort label-6018
SELECT - MAX ( ALL 94 ) + + 78 * COUNT ( * ) AS col1 FROM tab2 cor0
----
140

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + col1 NOT BETWEEN + col1 * 64 AND + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE 52 NOT IN ( + col2 )
----
46
64
75

query I rowsort
SELECT - 55 * - col1 AS col2 FROM tab1
----
2585
275
770

query I rowsort
SELECT ALL + 8 AS col1 FROM tab1 WHERE NULL <> + + col1 - + 30
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( - col0 ) + 84 * col2 )
----

query I rowsort
SELECT - 37 FROM tab1 AS cor0 WHERE NOT - 87 IS NOT NULL
----

query I rowsort
SELECT ALL + ( col1 ) * col1 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND col0 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6026
SELECT ALL * FROM tab2 WHERE + + CAST( - 85 AS SIGNED ) BETWEEN ( + col2 ) AND 27
----

skipif mysql # not compatible
query III rowsort label-6026
SELECT ALL * FROM tab2 WHERE + + CAST ( - 85 AS INTEGER ) BETWEEN ( + col2 ) AND 27
----

query I rowsort
SELECT DISTINCT 84 + col1 FROM tab2 WHERE NOT + col0 - 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT col1 FROM tab0 WHERE NOT ( - - col0 + + CAST( ( ( + col2 ) ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6028
SELECT col1 FROM tab0 WHERE NOT ( - - col0 + + CAST ( ( ( + col2 ) ) AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT + MIN( - 56 ) * + + COUNT( * ) FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-6029
SELECT + MIN ( - 56 ) * + + COUNT ( * ) FROM tab1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT COUNT( DISTINCT - col2 ) - - 3 FROM tab2 WHERE NOT NULL <> 40
----
3

skipif mysql # not compatible
query I rowsort label-6030
SELECT COUNT ( DISTINCT - col2 ) - - 3 FROM tab2 WHERE NOT NULL <> 40
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6031
SELECT CAST( NULL AS DECIMAL ) / + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT CAST ( NULL AS REAL ) / + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 25 ) < 34 * 81
----

query II rowsort
SELECT 59 * - col0 AS col2, - col0 FROM tab2
----
-2714
-46
-3776
-64
-4425
-75

query I rowsort
SELECT col0 * + 52 FROM tab1
----
2652
4420
4732

query II rowsort
SELECT ALL + 69 * - + 66, + 9 AS col0 FROM tab2
----
-4554
9
-4554
9
-4554
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT ALL CAST( NULL AS SIGNED ) / + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL CAST ( NULL AS INTEGER ) / + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL < - 94
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( col1 / + col1 )
----

query I rowsort
SELECT ALL - 99 + - col1 + + col0 + col0 * - 62 * col0 AS col0 FROM tab2 AS cor0
----
-131296
-254064
-348841

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( 43 * 91 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - 82 * + - 14 + - col2 * col0 AS col2 FROM tab2 cor0
----
-1412
-3202
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT COUNT( ALL + 16 ) * - 19 + - 40 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6043
SELECT COUNT ( ALL + 16 ) * - 19 + - 40 FROM tab0
----
-97

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col2 - col2 ) NOT BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6045
SELECT DISTINCT - col2, + CAST( + + 34 AS SIGNED ) / + col2 FROM tab2 AS cor0 WHERE NOT 39 NOT BETWEEN ( + col1 ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6045
SELECT DISTINCT - col2, + CAST ( + + 34 AS INTEGER ) / + col2 FROM tab2 AS cor0 WHERE NOT 39 NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6046
SELECT + col1 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT + col1 - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + 80 FROM tab2 cor0
----
-22
-40
-57

query I rowsort
SELECT + col0 * + col0 - - 38 AS col0 FROM tab2 cor0
----
2154
4134
5663

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT + + col2 DIV - - col0 - + col1 * - ( + col1 ) * - 27 + col0 AS col0 FROM tab1 cor0
----
-5240
-590
-59552

skipif mysql # not compatible
query I rowsort label-6049
SELECT + + col2 / - - col0 - + col1 * - ( + col1 ) * - 27 + col0 AS col0 FROM tab1 cor0
----
-5240
-590
-59552

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN col0 AND + - ( + col1 ) - - - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - ( - 6 ) ) AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6052
SELECT ALL - - 72 * + 9, - COUNT( * ) + 79 AS col0 FROM tab1 AS cor0
----
648
76

skipif mysql # not compatible
query II rowsort label-6052
SELECT ALL - - 72 * + 9, - COUNT ( * ) + 79 AS col0 FROM tab1 AS cor0
----
648
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6053
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6053
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + ( - + 21 ) FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + - ( + SUM( ALL - - col1 ) ) * + 93 FROM tab2 AS cor0
----
-18135

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - ( + SUM ( ALL - - col1 ) ) * + 93 FROM tab2 AS cor0
----
-18135

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + - col1 / + col1, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6057
SELECT DISTINCT - col1 AS col1, - col2 DIV - 99 + + col0 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-6057
SELECT DISTINCT - col1 AS col1, - col2 / - 99 + + col0 FROM tab2
----
-51
46
-67
75
-77
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - + col1 / 96 )
----

query I rowsort
SELECT DISTINCT + col0 * + - ( + 18 ) AS col2 FROM tab1
----
-1530
-1638
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT + MAX( - - 62 ) FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + MAX ( - - 62 ) FROM tab0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT - - COUNT( * ) FROM tab2 WHERE NOT CAST( col0 AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6061
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT CAST ( col0 AS INTEGER ) < NULL
----
0

query I rowsort
SELECT ALL col1 * - 28 FROM tab0 cor0 WHERE NOT - 22 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT DISTINCT - col0 DIV + col2 + col1 + + 67 FROM tab1 AS cor0
----
113
71
81

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT - col0 / + col2 + col1 + + 67 FROM tab1 AS cor0
----
113
71
81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6064
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6065
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6065
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0, col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL MIN( - ( + - 95 ) ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL MIN ( - ( + - 95 ) ) FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT DISTINCT COUNT( * ) * + - 17 - - COUNT( * ) + COUNT( * ) col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6067
SELECT DISTINCT COUNT ( * ) * + - 17 - - COUNT ( * ) + COUNT ( * ) col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL 76 * - ( - 52 ) AS col1 FROM tab1
----
3952
3952
3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6069
SELECT DISTINCT COUNT( - - ( - col1 ) ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT COUNT ( - - ( - col1 ) ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT - CAST( + 5 AS SIGNED ) FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6070
SELECT - CAST ( + 5 AS INTEGER ) FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT + ( 45 ) DIV col2 * - - 39 * ( + - col0 ) AS col1 FROM tab2 cor0
----
-1794
-2496
0

skipif mysql # not compatible
query I rowsort label-6071
SELECT + ( 45 ) / col2 * - - 39 * ( + - col0 ) AS col1 FROM tab2 cor0
----
-1794
-2496
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 37 + - ( + col1 ) FROM tab2 AS cor0
----
-14
-30
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT + COUNT( * ) + + 27 * + 54 AS col1 FROM tab1 AS cor0
----
1461

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + COUNT ( * ) + + 27 * + 54 AS col1 FROM tab1 AS cor0
----
1461

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6075
SELECT ALL col1 * col0 + - 69 * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL col1 * col0 + - 69 * + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + col1 NOT BETWEEN - 41 AND ( - - 47 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6077
SELECT 22 - + - 90 DIV col0 * - + col2 DIV + col0 AS col2, - col1 - - - ( - col2 ) + - - col1 AS col0 FROM tab1
----
21
96
22
59
22
68

skipif mysql # not compatible
query II rowsort label-6077
SELECT 22 - + - 90 / col0 * - + col2 / + col0 AS col2, - col1 - - - ( - col2 ) + - - col1 AS col0 FROM tab1
----
21
96
22
59
22
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT DISTINCT 76 DIV - 71 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT 76 / - 71 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( 0 * col0 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col2 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + 18 col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT + col2 DIV - - col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6083
SELECT + col2 / - - col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6085
SELECT + - col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-6085
SELECT + - col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT - col2 / 48 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 43 + - - ( - 28 )
----

query II rowsort
SELECT ALL + 63 AS col2, col0 FROM tab0 AS cor0
----
63
15
63
87
63
97

query I rowsort
SELECT - 47 * - col0 AS col1 FROM tab0 cor0
----
4089
4559
705

query I rowsort
SELECT + - 75 FROM tab0 WHERE NOT + - col2 - - + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col2 + col2 FROM tab2
----
46
64
75

query I rowsort
SELECT + - 12 + + 6 / - 6 FROM tab0 WHERE NOT ( + col0 NOT IN ( 37, - col2 ) )
----

query I rowsort
SELECT - 80 + - 60 FROM tab0
----
-140
-140
-140

query II rowsort
SELECT DISTINCT 76, - col2 FROM tab0 WHERE NOT NULL NOT IN ( - 53 - - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( - - col2 ) ) + + col2 col0 FROM tab1
----
118
136
192

query I rowsort
SELECT ALL + col2 * col1 * - - 22 AS col2 FROM tab2
----
25806
67760
85492

query I rowsort
SELECT 54 * - 54 + - - col2 FROM tab0
----
-2817
-2869
-2906

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 27 * col0 NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT CAST( NULL AS SIGNED ) - + 26 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT CAST ( NULL AS INTEGER ) - + 26 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT ALL - + 74 * + CAST( NULL AS SIGNED ) - - - ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - + 74 * + CAST ( NULL AS INTEGER ) - - - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * - - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 62 + + col1 FROM tab1 AS cor0
----
-15
-48
-57

query I rowsort
SELECT + col2 + + 46 AS col1 FROM tab0 AS cor0
----
145
56
93

query I rowsort
SELECT + + ( col1 ) + - - 3 FROM tab2 AS cor0
----
54
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT 22 * + + 29 + - 58 - + + COUNT( * ) - 56 AS col1 FROM tab1 AS cor0
----
521

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT 22 * + + 29 + - 58 - + + COUNT ( * ) - 56 AS col1 FROM tab1 AS cor0
----
521

query III rowsort
SELECT * FROM tab2 WHERE - + ( 45 ) + col1 NOT BETWEEN 97 AND - col2 - 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 - + col1 * + ( - col0 ) FROM tab0
----
1296
1848
98

query I rowsort
SELECT DISTINCT + col1 * + 49 + col1 FROM tab1
----
2350
250
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT ALL ( CAST( - COUNT( * ) AS SIGNED ) ) * - + COUNT( * ) - - - 5 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL ( CAST ( - COUNT ( * ) AS INTEGER ) ) * - + COUNT ( * ) - - - 5 FROM tab0
----
4

query I rowsort
SELECT DISTINCT + col1 - - col0 * - 55 AS col1 FROM tab2
----
-2479
-3443
-4058

query I rowsort
SELECT ALL col1 + - + col0 AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT col2 - + 32 * + col1 * - + 69 * - + col0 FROM tab2
----
-10880984
-11095142
-5179945

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL MIN( DISTINCT + ( col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL MIN ( DISTINCT + ( col0 ) ) FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 60 AS col1 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 * col0 AS col2, 29 AS col1 FROM tab0 AS cor0
----
1215
29
1827
29
97
29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT DISTINCT - COUNT( * ) AS col2, ( COUNT( * ) ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6120
SELECT DISTINCT - COUNT ( * ) AS col2, ( COUNT ( * ) ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - 56 AS col0 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL + 53 AS col1 FROM tab1 cor0
----
53
53
53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6124
SELECT - + ( - ( + col2 ) ) AS col1, + CAST( + + col1 AS SIGNED ) - - col1 FROM tab2 AS cor0
----
23
102
40
154
58
134

skipif mysql # not compatible
query II rowsort label-6124
SELECT - + ( - ( + col2 ) ) AS col1, + CAST ( + + col1 AS INTEGER ) - - col1 FROM tab2 AS cor0
----
23
102
40
154
58
134

query I rowsort
SELECT DISTINCT - 77 * - col2 * - 22 FROM tab0 AS cor0
----
-167706
-16940
-79618

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT + + ( + COUNT( * ) ) * - COUNT( - ( 92 ) ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT + + ( + COUNT ( * ) ) * - COUNT ( - ( 92 ) ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ALL - 47 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - 47 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT CAST( NULL AS SIGNED ) * - + 71 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT CAST ( NULL AS INTEGER ) * - + 71 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT DISTINCT + col0 DIV - - col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT + col0 / - - col2 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + 76 - + col1 * + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1139
-1751
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 56 AS col0, + col0 + + col1 col2 FROM tab2
----
-56
141
-56
142
-56
97

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT - ( - 92 ) DIV - + 58 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6133
SELECT - ( - 92 ) / - + 58 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6134
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6134
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT - - col0 + + - 47 AS col0 FROM tab0 AS cor0
----
-32
40
50

query I rowsort
SELECT 56 + 19 + - 44 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - MAX( - col2 ) + 3 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6137
SELECT - MAX ( - col2 ) + 3 FROM tab1 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT - 89 + - ( - col2 ) DIV + col2 FROM tab0 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-6138
SELECT - 89 + - ( - col2 ) / + col2 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT - 92 + + col1 AS col1 FROM tab2 AS cor0
----
-15
-25
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ALL ( + COUNT( * ) ) FROM tab1 WHERE - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL ( + COUNT ( * ) ) FROM tab1 WHERE - - col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 43 + + 38 BETWEEN NULL AND + 93
----

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 43 + + 38 BETWEEN NULL AND + 93
----

query I rowsort
SELECT - - 39 - + + col0 FROM tab2 AS cor0
----
-25
-36
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL - MAX( - 56 ) + - 37 AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - MAX ( - 56 ) + - 37 AS col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT 11 + col0 + - col1 * + 55 + - col0 AS col0 FROM tab0 AS cor0
----
-1144
-44
-4444

query I rowsort
SELECT ALL - 45 + - col0 AS col1 FROM tab0 AS cor0
----
-132
-142
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 52 - - col2 + col1 col2 FROM tab2 cor0
----
2726
3609
4121

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 34 <> + + 18
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN col1 AND 30 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 NOT IN ( col0 * col0, + 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6151
SELECT ALL + col1 AS col1, col0 + + - col0 * + CAST( + 57 AS SIGNED ) FROM tab0
----
1
-5432
21
-4872
81
-840

skipif mysql # not compatible
query II rowsort label-6151
SELECT ALL + col1 AS col1, col0 + + - col0 * + CAST ( + 57 AS INTEGER ) FROM tab0
----
1
-5432
21
-4872
81
-840

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + col1 * + 96 AND col1 + + + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT ALL MAX( - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL MAX ( - + col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL COUNT( 47 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL COUNT ( 47 ) FROM tab1
----
3

query II rowsort
SELECT + col0 AS col1, col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT + 24 * + 7 + + col0 * - col0 FROM tab1 AS cor0
----
-2433
-7057
-8113

query I rowsort
SELECT - col2 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

query II rowsort
SELECT ALL + - col2 AS col0, 10 FROM tab1 AS cor0
----
-59
10
-68
10
-96
10

query I rowsort
SELECT DISTINCT + 54 * 88 AS col1 FROM tab0 cor0
----
4752

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6160
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 / + - CAST( NULL AS DECIMAL ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6160
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 / + - CAST ( NULL AS REAL ) AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6161
SELECT ALL + ( - 66 ) DIV - 59 + + COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL + ( - 66 ) / - 59 + + COUNT ( * ) FROM tab2 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT 7 * - 31 * col1 * col1 + + 68 + - - col0 DIV 4 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-125
-1423666
-95608

skipif mysql # not compatible
query I rowsort label-6162
SELECT 7 * - 31 * col1 * col1 + + 68 + - - col0 / 4 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-125
-1423666
-95608

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT DISTINCT COUNT( * ) + SUM( ALL - + ( col2 ) ) * - + 31 AS col2 FROM tab2 WHERE NOT 79 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT COUNT ( * ) + SUM ( ALL - + ( col2 ) ) * - + 31 AS col2 FROM tab2 WHERE NOT 79 = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT + ( - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6164
SELECT + ( - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT ALL - - 88 * - 20, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1760
3

skipif mysql # not compatible
query II rowsort label-6165
SELECT ALL - - 88 * - 20, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1760
3

query II rowsort
SELECT DISTINCT col1 * - 6 * - col2 + - 70, col0 AS col1 FROM tab1 AS cor0
----
1700
85
19106
91
7994
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col0 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6168
SELECT - 40 + + + 72, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
32
0

skipif mysql # not compatible
query II rowsort label-6168
SELECT - 40 + + + 72, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
32
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT ALL CAST( NULL AS SIGNED ) * col2 + - - 67 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL CAST ( NULL AS INTEGER ) * col2 + - - 67 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + - 98 AS col1 FROM tab0
----
-119
-179
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + - col1 col1 FROM tab0
----
3
63
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT col1 DIV + 52 + - + col1 + + 97 FROM tab1
----
50
83
92

skipif mysql # not compatible
query I rowsort label-6172
SELECT col1 / + 52 + - + col1 + + 97 FROM tab1
----
50
83
92

query I rowsort
SELECT col1 + - 50 + - col1 * - 32 * + - col2 * - 25 FROM tab1
----
1075164
235955
2556797

query I rowsort
SELECT 25 + - + col0 AS col1 FROM tab0
----
-62
-72
10

query I rowsort
SELECT DISTINCT + 81 + 14 AS col2 FROM tab1 AS cor0
----
95

query I rowsort
SELECT 44 * + col0 FROM tab1 AS cor0
----
2244
3740
4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT DISTINCT col2 + 7 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT col2 + 7 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * - - 66 * 5 FROM tab0 AS cor0 WHERE col2 * - col0 IS NOT NULL
----
26730
330
6930

query II rowsort
SELECT ALL - 96 AS col2, col0 + - col2 FROM tab1 AS cor0
----
-96
-45
-96
23
-96
26

query I rowsort
SELECT DISTINCT ( + 28 ) FROM tab1 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 88 col0 FROM tab2 AS cor0
----
139
155
165

query I rowsort
SELECT DISTINCT - 27 + - - 25 AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT COUNT( * ) * 22 * + 24 FROM tab1 AS cor0
----
1584

skipif mysql # not compatible
query I rowsort label-6183
SELECT COUNT ( * ) * 22 * + 24 FROM tab1 AS cor0
----
1584

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6185
SELECT - CAST( NULL AS DECIMAL ) * + 20 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6185
SELECT - CAST ( NULL AS REAL ) * + 20 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT + ( + MAX( - - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT + ( + MAX ( - - col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL col0 * 80 * - 86 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1 * + 2 AS col2, + col0 + + col0 + - col0 FROM tab1
----
-10
85
-28
51
-94
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6189
SELECT ALL * FROM tab0 WHERE - CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6189
SELECT ALL * FROM tab0 WHERE - CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6190
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND CAST( - 98 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6190
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND CAST ( - 98 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT DISTINCT + col0 * col2 DIV col0 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT + col0 * col2 / col0 AS col1 FROM tab0
----
10
47
99

query II rowsort
SELECT ( + 5 ), - col0 AS col1 FROM tab1 AS cor0
----
5
-51
5
-85
5
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 63 + + col0 AND NULL
----

query I rowsort
SELECT ALL + - 52 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT + + SUM( + 55 ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + + SUM ( + 55 ) FROM tab2 AS cor0
----
165

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - - col1 + - 97 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT 44 * + MIN( 11 ) AS col0 FROM tab1 cor0
----
484

skipif mysql # not compatible
query I rowsort label-6198
SELECT 44 * + MIN ( 11 ) AS col0 FROM tab1 cor0
----
484

query I rowsort
SELECT DISTINCT 18 * - + 5 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
20250
681210
846810

query I rowsort
SELECT ALL - 73 * col0 FROM tab2 AS cor0
----
-3358
-4672
-5475

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col0 AS col0, 45 + 67 FROM tab1 AS cor0
----
51
112
85
112
91
112

query I rowsort
SELECT + ( + 91 ) AS col1 FROM tab2 AS cor0
----
91
91
91

query II rowsort
SELECT DISTINCT + - col0 + + + col1 + col1 AS col1, + 65 FROM tab1 AS cor0
----
-23
65
-75
65
3
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6205
SELECT ALL + - COUNT( * ) + - 92 + + COUNT( ALL - 16 ) DIV COUNT( * ) FROM tab1 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL + - COUNT ( * ) + - 92 + + COUNT ( ALL - 16 ) / COUNT ( * ) FROM tab1 cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT COUNT( * ) + 55 + + COUNT( * ) AS col1 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT COUNT ( * ) + 55 + + COUNT ( * ) AS col1 FROM tab0
----
61

query II rowsort
SELECT DISTINCT 38 + + col0 AS col0, ( + 19 ) FROM tab1
----
123
19
129
19
89
19

query I rowsort
SELECT 92 * + + col1 + col0 FROM tab0
----
189
2019
7467

query I rowsort
SELECT DISTINCT 66 FROM tab1 WHERE NOT ( + col1 / + col1 IS NULL )
----
66

query II rowsort
SELECT DISTINCT + col0 + - - col1 AS col0, 96 AS col0 FROM tab0 AS cor0
----
108
96
96
96
98
96

query I rowsort
SELECT DISTINCT - + col2 + - 18 FROM tab1 AS cor0
----
-114
-77
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL - col2 FROM tab0 WHERE + col1 / - CAST( NULL AS SIGNED ) + col0 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL - col2 FROM tab0 WHERE + col1 / - CAST ( NULL AS INTEGER ) + col0 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT CAST( NULL AS SIGNED ) * + 36 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT CAST ( NULL AS INTEGER ) * + 36 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 89 - col1 FROM tab1
----
5246
6005
8530

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT - 28 * + 12 AS col1 FROM tab2
----
-336
-336
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( - col0 + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( - col0 + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT + 50 * - 21 * COUNT( * ) FROM tab2 WHERE NOT + + col1 + - 22 < - 73
----
-3150

skipif mysql # not compatible
query I rowsort label-6218
SELECT + 50 * - 21 * COUNT ( * ) FROM tab2 WHERE NOT + + col1 + - 22 < - 73
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL COUNT( + + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL COUNT ( + + col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT DISTINCT col2 * - + CAST( col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT col2 * - + CAST ( col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL MAX( + 15 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL MAX ( + 15 ) FROM tab2
----
15

query I rowsort
SELECT ALL + ( - col0 ) * 96 AS col2 FROM tab1
----
-4896
-8160
-8736

query II rowsort
SELECT 11, col2 + + 71 + - col2 * + col2 * - col1 * + 46 AS col2 FROM tab1
----
11
5935271
11
800760
11
9997227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT CAST( - 71 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-6224
SELECT CAST ( - 71 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, col0 * col2 col1 FROM tab0 AS cor0
----
10
870
47
705
99
9603

query II rowsort
SELECT + 44 AS col2, 19 FROM tab1 AS cor0
----
44
19
44
19
44
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + - COUNT( + + 9 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6227
SELECT + - COUNT ( + + 9 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT - - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6228
SELECT - - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ALL COUNT( * ) * 0 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL COUNT ( * ) * 0 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6230
SELECT - ( 88 ) * col1 * + CAST( - col1 AS SIGNED ) AS col1, + col2 + + col1 - 93 FROM tab2
----
228888
-19
395032
32
521752
24

skipif mysql # not compatible
query II rowsort label-6230
SELECT - ( 88 ) * col1 * + CAST ( - col1 AS INTEGER ) AS col1, + col2 + + col1 - 93 FROM tab2
----
228888
-19
395032
32
521752
24

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( + col1, - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 * - col2 IS NULL
----

query I rowsort
SELECT - - 16 * + - col0 + + col0 FROM tab1 AS cor0
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + COUNT( * ) + - 86 col2 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6235
SELECT + COUNT ( * ) + - 86 col2 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT DISTINCT - col1 + + - 73 + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
39
60
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6237
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = col0 * - col0 * + CAST( NULL AS DECIMAL ) * - ( + col1 ) + - col1 + - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6237
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = col0 * - col0 * + CAST ( NULL AS REAL ) * - ( + col1 ) + - col1 + - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT ALL + 97 * + - col1 AS col2 FROM tab0
----
-2037
-7857
-97

query I rowsort
SELECT DISTINCT col1 * - 75 AS col2 FROM tab2
----
-3825
-5025
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT ( - - col0 ) DIV 16 + + - col2 AS col0 FROM tab0
----
-47
-5
-93

skipif mysql # not compatible
query I rowsort label-6240
SELECT ( - - col0 ) / 16 + + - col2 AS col0 FROM tab0
----
-47
-5
-93

query I rowsort
SELECT ALL - 90 FROM tab2 WHERE 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT + 2 * + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT + 2 * + COUNT ( * ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT DISTINCT + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + col0 - 35 AS col1 FROM tab2 AS cor0
----
11
29
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6245
SELECT ALL CAST( NULL AS SIGNED ) + ( + 57 ) AS col2, + 40 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
63
NULL
80
NULL
98

skipif mysql # not compatible
query II rowsort label-6245
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 57 ) AS col2, + 40 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
63
NULL
80
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT - SUM( ALL - col2 ) - + ( - + COUNT( * ) ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT - SUM ( ALL - col2 ) - + ( - + COUNT ( * ) ) FROM tab1
----
226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT + 86 AS col2 FROM tab1 cor0 WHERE NOT + col0 * - + col1 IS NULL
----
86
86
86

query I rowsort
SELECT col0 * 29 + - + 50 FROM tab1 AS cor0 WHERE NOT col2 * + ( + col1 ) IS NULL
----
1429
2415
2589

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL - + SUM( col2 ) col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6250
SELECT ALL - + SUM ( col2 ) col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT - - 59 * + + 4 + + col2 AS col1 FROM tab1 AS cor0
----
295
304
332

query II rowsort
SELECT DISTINCT col2 * 54 AS col0, + col2 AS col1 FROM tab1 cor0
----
3186
59
3672
68
5184
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - COUNT( * ) * + 51 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6253
SELECT - COUNT ( * ) * + 51 FROM tab0 AS cor0
----
-153

query I rowsort
SELECT ALL + 8 * - 0 + + col0 + - - 78 AS col2 FROM tab0 AS cor0
----
165
175
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6255
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6255
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT + col1 * + 36 * - CAST( + 91 AS SIGNED ) FROM tab2
----
-167076
-219492
-252252

skipif mysql # not compatible
query I rowsort label-6256
SELECT + col1 * + 36 * - CAST ( + 91 AS INTEGER ) FROM tab2
----
-167076
-219492
-252252

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT SUM( ALL + 7 ) * + SUM( + + col1 ) AS col2 FROM tab2
----
4095

skipif mysql # not compatible
query I rowsort label-6257
SELECT SUM ( ALL + 7 ) * + SUM ( + + col1 ) AS col2 FROM tab2
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT - MIN( ALL 41 ) col0 FROM tab2
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6258
SELECT DISTINCT - MIN ( ALL 41 ) col0 FROM tab2
----
-41

query I rowsort
SELECT DISTINCT 11 * col1 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
11
231
891

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 BETWEEN - - 59 / col0 AND - + col0
----
-3

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 BETWEEN - - 59 / col0 AND - + col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + ( - COUNT( * ) ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6261
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL + MIN( + ( - + ( + + col1 ) ) ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + MIN ( + ( - + ( + + col1 ) ) ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL - ( + COUNT( * ) ) + - MIN( ALL + col2 ) - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL - ( + COUNT ( * ) ) + - MIN ( ALL + col2 ) - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT + - 84 AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-84
3

skipif mysql # not compatible
query II rowsort label-6265
SELECT + - 84 AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-84
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6266
SELECT + col2, + col2 DIV 14 FROM tab2 AS cor0
----
23
1
40
2
58
4

skipif mysql # not compatible
query II rowsort label-6266
SELECT + col2, + col2 / 14 FROM tab2 AS cor0
----
23
1
40
2
58
4

query II rowsort
SELECT DISTINCT + + 60 AS col2, col1 FROM tab2 AS cor0
----
60
51
60
67
60
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 64 + - 92 col2, col2 AS col1 FROM tab2 AS cor0
----
-28
23
-28
40
-28
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT - + 50 DIV + + col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT - + 50 / + + col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT DISTINCT - 95 + - + col1 + + col0 + - 1 DIV - - col1 AS col2 FROM tab2 AS cor0
----
-100
-108
-87

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - 95 + - + col1 + + col0 + - 1 / - - col1 AS col2 FROM tab2 AS cor0
----
-100
-108
-87

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND 71 + + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6272
SELECT DISTINCT - COUNT( - - 78 ) AS col1, - ( - 15 ) + ( + - COUNT( * ) ) AS col2 FROM tab2
----
-3
12

skipif mysql # not compatible
query II rowsort label-6272
SELECT DISTINCT - COUNT ( - - 78 ) AS col1, - ( - 15 ) + ( + - COUNT ( * ) ) AS col2 FROM tab2
----
-3
12

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + + col0 + - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT - - col2 + + - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-6275
SELECT - - col2 + + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT 5 DIV + col2 + 47 - col1 + + 50 FROM tab2 AS cor0
----
20
30
46

skipif mysql # not compatible
query I rowsort label-6276
SELECT 5 / + col2 + 47 - col1 + + 50 FROM tab2 AS cor0
----
20
30
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT + 79 + + 31 DIV - col1 FROM tab0 AS cor0
----
48
78
79

skipif mysql # not compatible
query I rowsort label-6277
SELECT + 79 + + 31 / - col1 FROM tab0 AS cor0
----
48
78
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6278
SELECT DISTINCT COUNT( * ) / + 64 + + SUM( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT COUNT ( * ) / + 64 + + SUM ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 49 * + - 24 AS col2 FROM tab2
----
-1176
-1176
-1176

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT ALL - 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6282
SELECT + + CAST( NULL AS SIGNED ) AS col0, 81 AS col2 FROM tab0 AS cor0
----
NULL
81
NULL
81
NULL
81

skipif mysql # not compatible
query II rowsort label-6282
SELECT + + CAST ( NULL AS INTEGER ) AS col0, 81 AS col2 FROM tab0 AS cor0
----
NULL
81
NULL
81
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL - SUM( ALL + 23 ) * + SUM( ALL - col0 ) FROM tab1 AS cor0
----
15663

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - SUM ( ALL + 23 ) * + SUM ( ALL - col0 ) FROM tab1 AS cor0
----
15663

query II rowsort
SELECT DISTINCT - 37, + 86 AS col2 FROM tab1 cor0 WHERE + 13 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 91 * - col1 * + col0 FROM tab0 AS cor0
----
110565
166257
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT DISTINCT + 51 DIV + col1 col0 FROM tab1 cor0
----
1
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6286
SELECT DISTINCT + 51 / + col1 col0 FROM tab1 cor0
----
1
10
3

query I rowsort
SELECT + 8 * + + col2 FROM tab1 AS cor0
----
472
544
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + - 31 col0 FROM tab2 AS cor0
----
1240
1798
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT DISTINCT + 41 DIV - 89 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6290
SELECT DISTINCT + 41 / - 89 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT - COUNT( * ) * + 10 + - + 25 col0 FROM tab0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6291
SELECT - COUNT ( * ) * + 10 + - + 25 col0 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT + MAX( + 96 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6292
SELECT + MAX ( + 96 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col2, - 46 AS col2 FROM tab0
----
9
-46

skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2, - 46 AS col2 FROM tab0
----
9
-46

query I rowsort
SELECT + 19 + col1 FROM tab0 AS cor0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL - + COUNT( * ) + + SUM( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL - + COUNT ( * ) + + SUM ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6296
SELECT DISTINCT - + 53 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - + 53 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6297
SELECT ALL + 38 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL + 38 + - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - MIN( + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6298
SELECT - MIN ( + col1 ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT ALL + 8 - - 30 AS col2 FROM tab1
----
38
38
38

query III rowsort
SELECT * FROM tab2 WHERE + col0 + 86 * - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT - 41 * + MIN( ALL + + col1 ) AS col0 FROM tab1 WHERE ( NOT ( NOT col0 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT - 41 * + MIN ( ALL + + col1 ) AS col0 FROM tab1 WHERE ( NOT ( NOT col0 IS NULL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 21 > + - 86
----

query I rowsort
SELECT DISTINCT - col2 * - 28 + + col0 FROM tab1 cor0
----
1737
1995
2739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6305
SELECT + + COUNT( * ) DIV + - 73 + + 43 AS col1 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6305
SELECT + + COUNT ( * ) / + - 73 + + 43 AS col1 FROM tab2 AS cor0
----
43

query I rowsort
SELECT - 89 - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) <= + col1 / + col0
----
-21
-30
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6307
SELECT + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-6307
SELECT + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + ( col1 ) + + col2 < + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT - CAST( NULL AS SIGNED ) * AVG ( - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT - CAST ( NULL AS INTEGER ) * AVG ( - col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL MAX( - - 17 ) * 35 col0 FROM tab1 AS cor0
----
595

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6310
SELECT ALL MAX ( - - 17 ) * 35 col0 FROM tab1 AS cor0
----
595

onlyif mysql # DIV for integer division: 
query II rowsort label-6311
SELECT DISTINCT - - col0 DIV 52 AS col2, col2 AS col2 FROM tab0 AS cor0
----
0
47
1
10
1
99

skipif mysql # not compatible
query II rowsort label-6311
SELECT DISTINCT - - col0 / 52 AS col2, col2 AS col2 FROM tab0 AS cor0
----
0
47
1
10
1
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + col2 * - - col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT ( + 71 ) + + - 89 + - + 51 IS NOT NULL
----

query I rowsort
SELECT ALL - 89 + - - col2 AS col1 FROM tab1 WHERE NOT + ( - 0 ) IS NULL
----
-21
-30
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6316
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 WHERE - col0 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col0 >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + + col2 AS col2 FROM tab2 WHERE NOT - col2 < - col0 * + col1
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT ALL col0 * + CAST( - 35 AS SIGNED ) AS col2 FROM tab2
----
-1610
-2240
-2625

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL col0 * + CAST ( - 35 AS INTEGER ) AS col2 FROM tab2
----
-1610
-2240
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT - ( - + SUM( DISTINCT - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6319
SELECT - ( - + SUM ( DISTINCT - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + MAX( DISTINCT - 53 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6320
SELECT + MAX ( DISTINCT - 53 ) FROM tab2 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + - 49 AS col0 FROM tab0 AS cor0 WHERE NOT + 96 BETWEEN NULL AND col1 / col2
----
-49

query I rowsort
SELECT DISTINCT - col0 + - 89 AS col1 FROM tab1 AS cor0
----
-140
-174
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT + - CAST( NULL AS SIGNED ) * + 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT + - CAST ( NULL AS INTEGER ) * + 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT + - 10 - + 14 DIV - + col0 AS col1 FROM tab0 cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-6324
SELECT + - 10 - + 14 / - + col0 AS col1 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT col2 + 91 AS col1 FROM tab1
----
150
159
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + - col0 + - 90 col0, col1 + - col0 FROM tab0
----
-315
66
-7659
-66
-9499
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col1 col0 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6328
SELECT 76 + 57 + + CAST( NULL AS SIGNED ) AS col2, - 96 FROM tab1
----
NULL
-96
NULL
-96
NULL
-96

skipif mysql # not compatible
query II rowsort label-6328
SELECT 76 + 57 + + CAST ( NULL AS INTEGER ) AS col2, - 96 FROM tab1
----
NULL
-96
NULL
-96
NULL
-96

query I rowsort
SELECT ALL col2 - + - 61 FROM tab1
----
120
129
157

query I rowsort
SELECT DISTINCT - ( 92 ) FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6331
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL = NULL
----
0

query II rowsort
SELECT ALL 24 AS col2, 36 FROM tab1
----
24
36
24
36
24
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT 73 * col2 * + - col2 FROM tab2
----
-116800
-245572
-38617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, - ( + ( ( - 58 ) ) ) col1 FROM tab0
----
10
58
47
58
99
58

query I rowsort
SELECT ALL - - col0 * col0 + + col0 FROM tab1 AS cor0
----
2652
7310
8372

query II rowsort
SELECT + 64 AS col0, 64 FROM tab1 cor0
----
64
64
64
64
64
64

query II rowsort
SELECT 0, col1 * - ( 95 ) AS col1 FROM tab0 AS cor0
----
0
-1995
0
-7695
0
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col0 col2 FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 66 * 13 + + col0 FROM tab0 cor0
----
-761
-771
-843

query I rowsort
SELECT DISTINCT col1 * - col0 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < 39 * - 68 + - + col0
----
0

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < 39 * - 68 + - + col0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 54 * 10 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) + - + col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT - 6 * + col2 FROM tab1 cor0
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT - COUNT( * ) + + - 22 col1 FROM tab0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6347
SELECT - COUNT ( * ) + + - 22 col1 FROM tab0
----
-25

query I rowsort
SELECT + col0 + col2 + - 90 AS col0 FROM tab0
----
-28
106
7

query I rowsort
SELECT 98 + - col2 AS col2 FROM tab1
----
2
30
39

onlyif mysql # DIV for integer division: 
query III rowsort label-6350
SELECT DISTINCT 55 * col2 DIV col2 AS col1, 23 DIV - col2 AS col0, 7 AS col2 FROM tab0
----
55
-2
7
55
0
7

skipif mysql # not compatible
query III rowsort label-6350
SELECT DISTINCT 55 * col2 / col2 AS col1, 23 / - col2 AS col0, 7 AS col2 FROM tab0
----
55
-2
7
55
0
7

query I rowsort
SELECT - + 47 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 25 * - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6353
SELECT ALL - 33 + COUNT( * ) AS col1, - MAX( + + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-30
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6353
SELECT ALL - 33 + COUNT ( * ) AS col1, - MAX ( + + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT - MAX( + - col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6354
SELECT - MAX ( + - col0 ) AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) <> + col1 + + ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT ALL - CAST( NULL AS SIGNED ) / 9 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6356
SELECT ALL - CAST ( NULL AS INTEGER ) / 9 col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 31, col1 AS col2 FROM tab2 AS cor0
----
-31
51
-31
67
-31
77

query I rowsort
SELECT + + 68 * + - 94 + + col1 + 19 * + col0 + + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1420
-4065
-4477

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + col1 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 70 / + col1 < col0
----
-3

skipif mysql # not compatible
query I rowsort label-6360
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 70 / + col1 < col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT ALL - MAX( DISTINCT + + col0 ) * COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - 92 * - + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - MAX ( DISTINCT + + col0 ) * COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - 92 * - + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL 58 * 81 + + - MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
4775

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL 58 * 81 + + - MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
4775

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT - MIN( - + 89 ) AS col2 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - MIN ( - + 89 ) AS col2 FROM tab1
----
89

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 9 FROM tab2 AS cor0
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0, + 93, - - col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6368
SELECT + MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col0 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + ( 16 ) + - col1 * 37 col2 FROM tab1 AS cor0
----
-1708
-196
-520

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - MIN( - 37 ) FROM tab2 cor0
----
37

skipif mysql # not compatible
query I rowsort label-6372
SELECT - MIN ( - 37 ) FROM tab2 cor0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6373
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 58 * + col1 * + CAST( NULL AS SIGNED ) / + - ( - - 40 ) IN ( + + col0, 78 + + 48 )
----

skipif mysql # not compatible
query III rowsort label-6373
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 58 * + col1 * + CAST ( NULL AS INTEGER ) / + - ( - - 40 ) IN ( + + col0, 78 + + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL - COUNT( * ) + - MIN( col2 ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - COUNT ( * ) + - MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + 95 + + - COUNT( * ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + 95 + + - COUNT ( * ) FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT 53 * + COUNT( * ) col2 FROM tab2
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6376
SELECT DISTINCT 53 * + COUNT ( * ) col2 FROM tab2
----
159

query I rowsort
SELECT col0 * 33 AS col2 FROM tab0
----
2871
3201
495

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NULL BETWEEN + + col1 AND + col1
----

query I rowsort
SELECT ALL + col1 * ( - 77 ) FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 13 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 * + col0, - 66 AS col1 FROM tab2
----
-2116
-66
-4096
-66
-5625
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 43 * 50 + + - 36 * + 93 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT SUM( - - 8 ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-6383
SELECT SUM ( - - 8 ) AS col2 FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT ( MAX( + + col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT ( MAX ( + + col1 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 - 34 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

query III rowsort
SELECT * FROM tab2 WHERE - col2 / - ( 29 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-6388
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND 98
----

skipif mysql # not compatible
query IIIIII rowsort label-6388
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND 98
----

query I rowsort
SELECT ALL 59 + - 83 AS col2 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT ALL 52 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 1 < + + col0 / + + CAST( - col2 AS SIGNED )
----
3068
3536
4992

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL 52 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 1 < + + col0 / + + CAST ( - col2 AS INTEGER )
----
3068
3536
4992

query II rowsort
SELECT ALL + 84 AS col2, col1 AS col2 FROM tab0
----
84
1
84
21
84
81

query II rowsort
SELECT 27, + col1 FROM tab1
----
27
14
27
47
27
5

query II rowsort
SELECT col0, 93 FROM tab2
----
46
93
64
93
75
93

onlyif mysql # DIV for integer division: 
query II rowsort label-6394
SELECT col2, - col2 - + col2 + - 39 DIV - 27 FROM tab1
----
59
-117
68
-135
96
-191

skipif mysql # not compatible
query II rowsort label-6394
SELECT col2, - col2 - + col2 + - 39 / - 27 FROM tab1
----
59
-117
68
-135
96
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - 57 * + - ( COUNT( * ) ) col1 FROM tab1
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6395
SELECT - 57 * + - ( COUNT ( * ) ) col1 FROM tab1
----
171

query II rowsort
SELECT ALL col2, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
138
65
90

query I rowsort
SELECT ALL 31 FROM tab1 WHERE ( + col1 ) > + col1
----

query I rowsort
SELECT 78 FROM tab2 WHERE col1 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 + 30 col0 FROM tab2
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT - COUNT( 55 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6401
SELECT - COUNT ( 55 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - 98 FROM tab1 WHERE NOT + col0 * + 32 BETWEEN - col1 * col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + col2 - - col0 )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( col2 ) > ( NULL )
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col2 FROM tab2 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( + 71 )
----

query I rowsort
SELECT - col0 + 82 * - col2 FROM tab1
----
-4923
-5667
-7923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT CAST( col0 AS SIGNED ) FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-6409
SELECT CAST ( col0 AS INTEGER ) FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT - 89 * col0 AS col1 FROM tab1
----
-4539
-7565
-8099

query I rowsort
SELECT DISTINCT col1 / col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT 34 * 2 FROM tab0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - 16 + + col2 col0 FROM tab1
----
-32
-60
-69

query I rowsort
SELECT col0 * - ( 15 * 98 ) FROM tab2
----
-110250
-67620
-94080

query I rowsort
SELECT ALL + col2 * - col1 + - col0 AS col1 FROM tab2 WHERE - col2 >= col2
----

query I rowsort
SELECT ALL - 66 FROM tab1 WHERE - 3 < - col2
----

query I rowsort
SELECT ALL 36 AS col0 FROM tab0 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT + 55 FROM tab2 WHERE col0 * - 60 IS NOT NULL
----
55
55
55

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 10 ) IS NOT NULL
----

query I rowsort
SELECT - ( 18 ) AS col1 FROM tab1
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + MAX( 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6422
SELECT + MAX ( 97 ) FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT ( + col2 ) + ( col1 ) FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT - 83 - MIN( ALL col2 ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6424
SELECT - 83 - MIN ( ALL col2 ) FROM tab0 AS cor0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6425
SELECT - COUNT( 69 ) - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT - COUNT ( 69 ) - - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 53 FROM tab2 cor0 WHERE NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - 97 + ( - SUM( - col2 ) ) AS col1 FROM tab2 WHERE - col0 + - col2 IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-6427
SELECT - 97 + ( - SUM ( - col2 ) ) AS col1 FROM tab2 WHERE - col0 + - col2 IS NOT NULL
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT - 73 * COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 ) WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT - 73 * COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 ) WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT + col0 + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 39
----

skipif mysql # not compatible
query I rowsort label-6429
SELECT + col0 + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT - SUM( DISTINCT 18 ) FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT - SUM ( DISTINCT 18 ) FROM tab1 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT + 83 * + SUM( ALL col2 ) col0 FROM tab0 AS cor0
----
12948

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6431
SELECT DISTINCT + 83 * + SUM ( ALL col2 ) col0 FROM tab0 AS cor0
----
12948

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT 59 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6432
SELECT 59 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-177

query I rowsort
SELECT DISTINCT 56 * col0 FROM tab2 AS cor0 WHERE ( NULL ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT DISTINCT + COUNT( * ) * + 95 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + COUNT ( * ) * + 95 FROM tab0 AS cor0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6435
SELECT - 38 * SUM( CAST( NULL AS SIGNED ) * col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 38 * SUM ( CAST ( NULL AS INTEGER ) * col0 ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT COUNT( * ) * - 45 FROM tab2 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6437
SELECT COUNT ( * ) * - 45 FROM tab2 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT - - 15 DIV ( col0 DIV + 3 + 16 ) col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6438
SELECT - - 15 / ( col0 / + 3 + 16 ) col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT + ( + + 49 ) DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6439
SELECT + ( + + 49 ) / + col0 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL + 77 * - MIN( DISTINCT 26 ) AS col0 FROM tab2
----
-2002

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + 77 * - MIN ( DISTINCT 26 ) AS col0 FROM tab2
----
-2002

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( - col0 * col1 + - 76 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT + MAX( + 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6442
SELECT + MAX ( + 26 ) FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT DISTINCT COUNT( ALL - - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT COUNT ( ALL - - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL COUNT( * ) FROM tab0 WHERE + col0 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL COUNT ( * ) FROM tab0 WHERE + col0 * - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + ( - MIN( DISTINCT col2 ) ) * + COUNT( * ) FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6445
SELECT + ( - MIN ( DISTINCT col2 ) ) * + COUNT ( * ) FROM tab2 cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / col2 IS NULL
----

query I rowsort
SELECT + col2 * + col2 + 52 FROM tab0 AS cor0
----
152
2261
9853

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / col0 + + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 11 - 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + COUNT( * ) + + + 42 AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-6450
SELECT + COUNT ( * ) + + + 42 AS col1 FROM tab1
----
45

query I rowsort
SELECT ALL + 73 AS col1 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - + 3 FROM tab2 cor0
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + 5 ) )
----

query I rowsort
SELECT ALL 26 + col1 * col1 FROM tab0 AS cor0 WHERE col2 * - + col1 * 23 IS NOT NULL
----
27
467
6587

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE + col1 * ( - 96 + 82 ) NOT BETWEEN NULL AND ( - col0 ) OR 96 + - 88 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6455
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 * ( - 96 + 82 ) NOT BETWEEN NULL AND ( - col0 ) OR 96 + - 88 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6456
SELECT + COUNT( * ), - CAST( + 69 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
-69

skipif mysql # not compatible
query II rowsort label-6456
SELECT + COUNT ( * ), - CAST ( + 69 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
-69

query II rowsort
SELECT - col0, - 61 AS col1 FROM tab2 AS cor0
----
-46
-61
-64
-61
-75
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE ( 56 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE ( 56 ) > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6459
SELECT - col2 DIV - col0 - col0 AS col0 FROM tab1 AS cor0 WHERE + col2 * - 17 NOT IN ( col0 * + ( + CAST( col2 AS SIGNED ) DIV + 40 ) + 66 * 60 )
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-6459
SELECT - col2 / - col0 - col0 AS col0 FROM tab1 AS cor0 WHERE + col2 * - 17 NOT IN ( col0 * + ( + CAST ( col2 AS INTEGER ) / + 40 ) + 66 * 60 )
----
-50
-85
-91

query I rowsort
SELECT DISTINCT + 70 + + - 95 AS col1 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE 60 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6462
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - COUNT( * ) + + 76 col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6464
SELECT - COUNT ( * ) + + 76 col1 FROM tab0 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT col1 FROM tab2 AS cor0 WHERE NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6465
SELECT col1 FROM tab2 AS cor0 WHERE NULL > CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT + col1 + - 28 AS col1, - col1 AS col2 FROM tab0 cor0
----
-27
-1
-7
-21
53
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - 9 + - col0 * - 57 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - col2 - col0 - + 22 + + col1 AS col2 FROM tab0
----
-118
-88
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT + ( + - ( COUNT( * ) ) ) AS col2, - 92 * - COUNT( * ) FROM tab1
----
-3
276

skipif mysql # not compatible
query II rowsort label-6470
SELECT + ( + - ( COUNT ( * ) ) ) AS col2, - 92 * - COUNT ( * ) FROM tab1
----
-3
276

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND + col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col2 FROM tab0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6473
SELECT ALL - col1 * + ( CAST( NULL AS SIGNED ) ) AS col0, CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6473
SELECT ALL - col1 * + ( CAST ( NULL AS INTEGER ) ) AS col0, CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 cor0 WHERE + col0 NOT IN ( + col1 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 41 * col1 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6476
SELECT * FROM tab2 cor0 WHERE NOT 40 + - - 81 + CAST( NULL AS DECIMAL ) IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-6476
SELECT * FROM tab2 cor0 WHERE NOT 40 + - - 81 + CAST ( NULL AS REAL ) IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT ALL - 57 DIV - col1 AS col1 FROM tab1 cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - 57 / - col1 AS col1 FROM tab1 cor0
----
1
11
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 IN ( + 89 + + 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT 96 - - col1 DIV - 91 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( + + col0 * + col1 + col2 - col1 * - col0 )
----
96
96
96

skipif mysql # not compatible
query I rowsort label-6480
SELECT 96 - - col1 / - 91 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IN ( + + col0 * + col1 + col2 - col1 * - col0 )
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT + MAX( DISTINCT + - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6481
SELECT + MAX ( DISTINCT + - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + ( + - col1 ) AS col2 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT col1 AS col0, col2 FROM tab0
----
1
99
21
10
81
47

query II rowsort
SELECT 25, col1 AS col1 FROM tab1
----
25
14
25
47
25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL + 27 * COUNT( * ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + 27 * COUNT ( * ) AS col2 FROM tab2
----
81

query I rowsort
SELECT ( + + 58 ) AS col2 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT - ( - 15 ) * + col2 AS col1 FROM tab1 AS cor0
----
1020
1440
885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT col1 * - + col1 * + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
-1475
-150212
-18816

skipif mysql # not compatible
query I rowsort label-6488
SELECT col1 * - + col1 * + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT ALL - - COUNT( * ) DIV - - 43 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - - COUNT ( * ) / - - 43 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL COUNT( * ) * + SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
468

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col1 ) * 99 * - 76 IS NOT NULL
----

query I rowsort
SELECT + 57 * + col2 * col0 + + + col2 FROM tab1 cor0
----
279168
285914
352784

query I rowsort
SELECT col1 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6494
SELECT DISTINCT + + 68 DIV COUNT( * ) AS col2 FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + + 68 / COUNT ( * ) AS col2 FROM tab2 cor0
----
22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( - + col1 + - + 39 ) NOT IN ( col0 ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 10 * - + 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6497
SELECT ALL col2 * + col1 + + CAST( NULL AS SIGNED ) / + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL col2 * + col1 + + CAST ( NULL AS INTEGER ) / + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * col2 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 2 * + + ( - col2 ) / + 4 + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6499
SELECT - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 2 * + + ( - col2 ) / + 4 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT - 87 * + + 27 * + - 19 + + 86 DIV + col0 FROM tab2 AS cor0
----
44632
44632
44632

skipif mysql # not compatible
query I rowsort label-6500
SELECT - 87 * + + 27 * + - 19 + + 86 / + col0 FROM tab2 AS cor0
----
44632
44632
44632

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE col2 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT - 35 * + MAX( DISTINCT + - 36 ) + - - SUM( ALL 7 ) AS col0 FROM tab1
----
1281

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - 35 * + MAX ( DISTINCT + - 36 ) + - - SUM ( ALL 7 ) AS col0 FROM tab1
----
1281

query I rowsort
SELECT - ( 84 ) FROM tab1
----
-84
-84
-84

query II rowsort
SELECT + col2, + 36 AS col0 FROM tab0
----
10
36
47
36
99
36

query II rowsort
SELECT ALL col2 AS col0, col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT ALL - + CAST( NULL AS SIGNED ) + - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6506
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + - 84 ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT ALL + MIN( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - + col0 * col2 * - col0 * col1 + + col1 IS NULL AND col1 + col0 * - col1 IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + MIN ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT - + col0 * col2 * - col0 * col1 + + col1 IS NULL AND col1 + col0 * - col1 IN ( + col0 )
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 8 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT col2 * ( + 44 ) AS col0 FROM tab1
----
2596
2992
4224

query I rowsort
SELECT ALL - + 35 * + 89 * 4 AS col2 FROM tab1 AS cor0
----
-12460
-12460
-12460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT ALL + + 75 AS col2 FROM tab1 AS cor0 WHERE 74 * + - col1 * - 67 * - col1 BETWEEN col0 + - CAST( - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + + 75 AS col2 FROM tab1 AS cor0 WHERE 74 * + - col1 * - 67 * - col1 BETWEEN col0 + - CAST ( - col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 18 AS col0 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6514
SELECT CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + 35 BETWEEN - col0 AND ( col1 / - col2 * - col0 + - - 78 * 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT ALL - COUNT( 73 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - COUNT ( 73 ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT ALL 44, col0 AS col2 FROM tab2 WHERE NOT ( col1 * + col0 ) IS NULL
----
44
46
44
64
44
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6518
SELECT * FROM tab1 WHERE NOT + - 46 - CAST( + - col0 AS SIGNED ) * col0 * col2 BETWEEN + 89 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6518
SELECT * FROM tab1 WHERE NOT + - 46 - CAST ( + - col0 AS INTEGER ) * col0 * col2 BETWEEN + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT COUNT( ALL - col2 ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT COUNT ( ALL - col2 ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT - 72 * + col1 AS col0 FROM tab1
----
-1008
-3384
-360

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + - 27 AND NULL
----

query II rowsort
SELECT DISTINCT + col2 * - col0 * + 1, col0 AS col1 FROM tab2
----
-1058
46
-2560
64
-4350
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 83 * - + 84 + + col2 + + col2 NOT IN ( ( col0 ) + - ( - 14 ) * - 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 29 FROM tab0 cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT MIN( ALL 60 ) AS col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6526
SELECT MIN ( ALL 60 ) AS col0 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT DISTINCT - 15 * + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-3405

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT - 15 * + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-3405

query I rowsort
SELECT + 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # DIV for integer division: 
query I rowsort label-6529
SELECT DISTINCT - col0 DIV - 33 AS col2 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT - col0 / - 33 AS col2 FROM tab1 AS cor0
----
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT + 80 * 61 DIV COUNT( * ) * + SUM( - - col0 ) * + ( + - SUM( ALL col0 ) ) + + 52 FROM tab1 AS cor0
----
-83786102

skipif mysql # not compatible
query I rowsort label-6530
SELECT + 80 * 61 / COUNT ( * ) * + SUM ( - - col0 ) * + ( + - SUM ( ALL col0 ) ) + + 52 FROM tab1 AS cor0
----
-83786102

query II rowsort
SELECT - 27, + col0 AS col2 FROM tab2 AS cor0
----
-27
46
-27
64
-27
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( DISTINCT ( 39 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( DISTINCT ( 39 ) ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + col0 * col2 + 77 + - 43 - col2 + + col0 / - col1 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT DISTINCT - - AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + - 78 - - + ( 57 ) + + col0 FROM tab1 AS cor0
----
-3870
-6488
-6950

query I rowsort
SELECT - col1 - - 51 * + col1 AS col1 FROM tab1 AS cor0
----
2350
250
700

query I rowsort
SELECT + 18 * - col0 + - - col1 - col0 FROM tab0 AS cor0
----
-1632
-1842
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT + + COUNT( * ) FROM tab0 WHERE col1 * - col0 = - + 52
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT + + COUNT ( * ) FROM tab0 WHERE col1 * - col0 = - + 52
----
0

query I rowsort
SELECT ALL 98 FROM tab2, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT - 33 - - 26 AS col1 FROM tab1
----
-7

query I rowsort
SELECT ALL 52 - col2 FROM tab0
----
-47
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL + 65 - + COUNT( * ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL + 65 - + COUNT ( * ) FROM tab2
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6543
SELECT DISTINCT col1 DIV 41 DIV - - col0 * - CAST( - - 47 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT col1 / 41 / - - col0 * - CAST ( - - 47 AS INTEGER ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL + 26 + + MAX( ALL + - col2 ) + MIN( - col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + 26 + + MAX ( ALL + - col2 ) + MIN ( - col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6545
SELECT ALL ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6546
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * CAST( - - CAST( + - 85 AS SIGNED ) AS SIGNED ), - col0, col0, + 1 * - + 45 )
----

skipif mysql # not compatible
query III rowsort label-6546
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * CAST ( - - CAST ( + - 85 AS INTEGER ) AS INTEGER ), - col0, col0, + 1 * - + 45 )
----

query I rowsort
SELECT col0 + - + 42 FROM tab2
----
22
33
4

query I rowsort
SELECT DISTINCT - 0 * col0 * - - 47 AS col2 FROM tab0
----
0

query I rowsort
SELECT col1 * - + col2 + - col0 AS col0 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT + col1 + + + ( col2 ) AS col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT 50 DIV SUM( - ( ( + col2 ) ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT 50 / SUM ( - ( ( + col2 ) ) ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6552
SELECT * FROM tab1 AS cor0 WHERE + CAST( + col1 AS SIGNED ) >= col2 + + col0
----

skipif mysql # not compatible
query III rowsort label-6552
SELECT * FROM tab1 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) >= col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT COUNT( * ) * 99 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-6553
SELECT COUNT ( * ) * 99 FROM tab0
----
297

query I rowsort
SELECT + - 21 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 33 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT DISTINCT - 52, COUNT( * ) AS col0 FROM tab2
----
-52
3

skipif mysql # not compatible
query II rowsort label-6556
SELECT DISTINCT - 52, COUNT ( * ) AS col0 FROM tab2
----
-52
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT DISTINCT col2 DIV - col2 + - col0 * + + 95 FROM tab2 AS cor0
----
-4371
-6081
-7126

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT col2 / - col2 + - col0 * + + 95 FROM tab2 AS cor0
----
-4371
-6081
-7126

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL 44 + + COUNT( * ) + - + 81 AS col0 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL 44 + + COUNT ( * ) + - + 81 AS col0 FROM tab1 AS cor0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6559
SELECT + COUNT( * ) + + - CAST( COUNT( * ) AS SIGNED ) * - MAX( DISTINCT - 11 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6559
SELECT + COUNT ( * ) + + - CAST ( COUNT ( * ) AS INTEGER ) * - MAX ( DISTINCT - 11 ) FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT DISTINCT MIN( 94 ) FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT MIN ( 94 ) FROM tab0 cor0
----
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - + ( + ( + col0 ) ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT + COUNT( * ) + - ( - COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT + COUNT ( * ) + - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT DISTINCT 47 + + 85 DIV col2 FROM tab1 AS cor0
----
47
48

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT 47 + + 85 / col2 FROM tab1 AS cor0
----
47
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6565
SELECT - + col0 DIV + 48 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT - + col0 / + 48 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 99 / - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 AS col1, - 2 col2 FROM tab2
----
91
-2
91
-2
91
-2

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + col1 IN ( + col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT - 5 + + COUNT( * ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - 5 + + COUNT ( * ) AS col2 FROM tab1
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( + + col1 ) + 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - ( col2 ) col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 AS col2 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( col1 / col1 ) IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT - - col1 DIV + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT - - col1 / + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT col1 * - + 72 FROM tab1 AS cor0
----
-1008
-3384
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT - 59 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT - 59 / col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6579
SELECT ALL - col1 * col2 * - CAST( NULL AS DECIMAL ) + + + col0 AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6579
SELECT ALL - col1 * col2 * - CAST ( NULL AS REAL ) + + + col0 AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT + - col1 * - - 79 FROM tab2 AS cor0
----
-4029
-5293
-6083

query I rowsort
SELECT DISTINCT 35 * + 56 FROM tab1
----
1960

query I rowsort
SELECT 0 * - 57 + + 78 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 42 * - 45 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col1 + + + col2 IS NULL
----

query I rowsort
SELECT - - 39 * - 98 * + 16 FROM tab1 AS cor0
----
-61152
-61152
-61152

query I rowsort
SELECT ALL + ( + ( + - col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL + ( - - COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + ( - - COUNT ( * ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT 78 * + + col1 * + col2 AS col0 FROM tab0
----
16380
296946
7722

query I rowsort
SELECT col1 * - col1 * - + col2 AS col0 FROM tab0
----
308367
4410
99

query I rowsort
SELECT ALL + 80 * col0 FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL - SUM( - 5 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - SUM ( - 5 ) FROM tab2 AS cor0
----
15

query II rowsort
SELECT ALL + col2 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT - + 38 * + col1 * - - 28 + col2 AS col0 FROM tab0 AS cor0
----
-22334
-86137
-965

query I rowsort
SELECT + 93 * + col1 * - col2 AS col1 FROM tab0
----
-19530
-354051
-9207

query I rowsort
SELECT 22 * + - col1 FROM tab1 AS cor0
----
-1034
-110
-308

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - + col1 * - col0 BETWEEN - col0 + - 59 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT - 96 - COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6597
SELECT - 96 - COUNT ( * ) FROM tab1 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 76 col0 FROM tab1 AS cor0
----
127
161
167

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 * + + col1 + col1 AS col0 FROM tab0 cor0
----
100
231
3888

query I rowsort
SELECT 7 - + col1 + col1 FROM tab1 cor0
----
7
7
7

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * 81 * - + 68 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 19 col1 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NULL IN ( - 30 + - - 61 )
----

query I rowsort
SELECT - ( + 45 ) AS col2 FROM tab2
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 33 col0 FROM tab0 AS cor0 WHERE NOT col0 + - col2 <> + col2 / + 62
----

query I rowsort
SELECT ALL 86 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

query II rowsort
SELECT ALL col1, 99 * 54 FROM tab2 cor0
----
51
5346
67
5346
77
5346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6609
SELECT - + 54 DIV - - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6609
SELECT - + 54 / - - COUNT ( * ) FROM tab0 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT ALL col2 DIV ( + 56 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL col2 / ( + 56 ) FROM tab0
----
0
0
1

query I rowsort
SELECT 38 * + 86 FROM tab2
----
3268
3268
3268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 34 <> + col0 + + col0 + - col1 + - 24
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + - 19 AS col1 FROM tab2 AS cor0
----
21
39
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 71 < - + 48 * + col2 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - ( - col1 ) + ( 82 ) * - col2 FROM tab2 AS cor0
----
-1835
-3203
-4689

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT ALL 32 col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
32
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6618
SELECT ALL 32 col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
32
3

query I rowsort
SELECT col0 FROM tab1 WHERE + + col1 + - + col2 IN ( + - col2, + 89 + - col0, - 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * - 28 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * - 28 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - 49 * COUNT( * ) AS col1 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - 49 * COUNT ( * ) AS col1 FROM tab2
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT + COUNT( * ) / - + 10 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT + COUNT ( * ) / - + 10 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT 10 * + - COUNT( * ) + - COUNT( + col2 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6623
SELECT 10 * + - COUNT ( * ) + - COUNT ( + col2 ) FROM tab0
----
-33

query I rowsort
SELECT + 74 * - col2 * + col0 * - col1 + - col0 * col2 AS col2 FROM tab2
----
14584320
21562950
3991834

query II rowsort
SELECT + col1 * col0 AS col2, + ( - col0 ) FROM tab2
----
2346
-46
4928
-64
5025
-75

query I rowsort
SELECT - col0 / + - col1 / col0 FROM tab2 WHERE 1 + - 6 / + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6627
SELECT * FROM tab2 AS cor0 WHERE - col1 + - col0 - - CAST( NULL AS SIGNED ) + + + 7 IN ( + 51, + ( 46 ) )
----

skipif mysql # not compatible
query III rowsort label-6627
SELECT * FROM tab2 AS cor0 WHERE - col1 + - col0 - - CAST ( NULL AS INTEGER ) + + + 7 IN ( + 51, + ( 46 ) )
----

query I rowsort
SELECT ALL - 20 + col2 - col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - - 80 - - - col2 AS col0 FROM tab0 AS cor0
----
-19
33
70

query III rowsort
SELECT * FROM tab1 WHERE - - 40 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 - - 50 AS col0 FROM tab0
----
137
147
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 * + 59 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + ( - 64 ) FROM tab1 cor0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT 96, + ( + ( + MIN( DISTINCT 82 ) ) ) * 12 AS col0 FROM tab1 AS cor0
----
96
984

skipif mysql # not compatible
query II rowsort label-6634
SELECT 96, + ( + ( + MIN ( DISTINCT 82 ) ) ) * 12 AS col0 FROM tab1 AS cor0
----
96
984

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - COUNT( - 25 ) AS col2 FROM tab0 cor0 WHERE NOT 31 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6635
SELECT - COUNT ( - 25 ) AS col2 FROM tab0 cor0 WHERE NOT 31 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6636
SELECT 46 AS col2, COUNT( * ) FROM tab1 AS cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-6636
SELECT 46 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
46
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT + MAX( - ( - CAST( + col0 AS SIGNED ) ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6637
SELECT + MAX ( - ( - CAST ( + col0 AS INTEGER ) ) ) FROM tab0
----
97

query I rowsort
SELECT + 51 * + col1 FROM tab1
----
2397
255
714

query I rowsort
SELECT DISTINCT + ( - 90 ) FROM tab1
----
-90

query II rowsort
SELECT ALL - col0 + 36, - col0 / + 26 FROM tab0 AS cor0 WHERE NOT + col0 * col1 IS NOT NULL
----

query I rowsort
SELECT - + ( 76 ) * col0 * col2 FROM tab2 AS cor0
----
-194560
-330600
-80408

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT - col0 DIV col0 - + col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-6642
SELECT - col0 / col0 - + col0 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL + - ( COUNT( * ) ) * - MAX( + + col1 ) * - + SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
25029

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL + - ( COUNT ( * ) ) * - MAX ( + + col1 ) * - + SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
25029

query I rowsort
SELECT col0 * - + col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN - - col0 AND - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN - - col0 AND - 34 )
----
0

query II rowsort
SELECT col1 AS col1, 3 AS col1 FROM tab2 AS cor0
----
51
3
67
3
77
3

query I rowsort
SELECT ALL - + 93 + - - 73 + + 29 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + + 46 + 25 AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + col1 + - 77 - col2 * - - col1 FROM tab0 AS cor0
----
-175
-266
-3803

query II rowsort
SELECT ALL 26, 53 * + col2 AS col1 FROM tab1
----
26
3127
26
3604
26
5088

query I rowsort
SELECT ALL - col2 + - ( - 87 ) + + + col0 + + col2 * + col2 * col2 + - 18 FROM tab2
----
12259
195198
64093

query I rowsort
SELECT DISTINCT ( + ( + - col1 ) ) * - col2 + + ( - 73 ) - - col0 AS col1 FROM tab1
----
1322
307
3214

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT + 94 + + + col0 + 96 - + + 74 DIV 85 + - - ( - col0 ) AS col0 FROM tab0
----
190
190
190

skipif mysql # not compatible
query I rowsort label-6653
SELECT + 94 + + + col0 + 96 - + + 74 / 85 + - - ( - col0 ) AS col0 FROM tab0
----
190
190
190

query I rowsort
SELECT DISTINCT - 87 + + 95 AS col2 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + + ( + + SUM( - - col0 ) ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-6655
SELECT + + ( + + SUM ( - - col0 ) ) FROM tab2 cor0
----
185

query I rowsort
SELECT ALL - col2 * + - col1 + + + col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT MAX( ( - ( - - col0 ) ) ) * - SUM( DISTINCT + ( + 94 ) ) + 28 AS col2 FROM tab0 cor0
----
1438

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT MAX ( ( - ( - - col0 ) ) ) * - SUM ( DISTINCT + ( + 94 ) ) + 28 AS col2 FROM tab0 cor0
----
1438

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL MIN( col2 ) * AVG ( ALL + col1 ) / - MIN( - col2 ) FROM tab0 AS cor0 WHERE NULL > + col0 + - 77 + - col0 - - - col1 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL MIN ( col2 ) * AVG ( ALL + col1 ) / - MIN ( - col2 ) FROM tab0 AS cor0 WHERE NULL > + col0 + - 77 + - col0 - - - col1 * 17
----
NULL

query I rowsort
SELECT DISTINCT - + 52 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-52

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT + 80 DIV + - col1 - - col0 FROM tab0 AS cor0
----
15
17
84

skipif mysql # not compatible
query I rowsort label-6661
SELECT + 80 / + - col1 - - col0 FROM tab0 AS cor0
----
15
17
84

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6662
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 92 * - - CAST( - col1 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6662
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 92 * - - CAST ( - col1 AS REAL ) >= NULL
----

query I rowsort
SELECT ALL 28 FROM tab1 AS cor0 WHERE NOT ( + col1 ) * + + col1 + - + 78 * col0 IS NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT MIN( - + 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT MIN ( - + 62 ) FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT SUM( DISTINCT + 58 ) col2 FROM tab1
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6665
SELECT SUM ( DISTINCT + 58 ) col2 FROM tab1
----
58

query II rowsort
SELECT 34 AS col0, + col1 AS col2 FROM tab1
----
34
14
34
47
34
5

query I rowsort
SELECT DISTINCT col2 * + 81 - ( + + 97 ) AS col0 FROM tab0 WHERE NOT - 13 * - + col0 + + col2 * col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, col2 * - - 99 AS col2 FROM tab0
----
15
4653
87
990
97
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT AVG ( ALL + 52 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73 col0, - col0 FROM tab1 cor0
----
73
-51
73
-85
73
-91

query I rowsort
SELECT ALL col1 * + - col0 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) * + col1 AS col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ALL + 39 * - col0 * 33 AS col1 FROM tab0
----
-111969
-124839
-19305

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT DISTINCT 39 * col0 DIV col0 AS col0 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT 39 * col0 / col0 AS col0 FROM tab2
----
39

query I rowsort
SELECT 66 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE col2 * + 27 * + 98 NOT IN ( col1, - col1 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 19 col0 FROM tab1 AS cor0
----
266
893
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 + - col1 col1 FROM tab2 cor0
----
-115
-125
-99

query I rowsort
SELECT col2 * - col2 + + 21 FROM tab0 AS cor0
----
-2188
-79
-9780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT + - col2 + CAST( - col0 AS SIGNED ) * + ( + + col1 ) FROM tab2 AS cor0
----
-2369
-4968
-5083

skipif mysql # not compatible
query I rowsort label-6681
SELECT + - col2 + CAST ( - col0 AS INTEGER ) * + ( + + col1 ) FROM tab2 AS cor0
----
-2369
-4968
-5083

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + col2 / col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6684
SELECT - CAST( + + col1 AS SIGNED ) + 76 AS col0, + 94 FROM tab2
----
-1
94
25
94
9
94

skipif mysql # not compatible
query II rowsort label-6684
SELECT - CAST ( + + col1 AS INTEGER ) + 76 AS col0, + 94 FROM tab2
----
-1
94
25
94
9
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6685
SELECT DISTINCT ( + - CAST( MIN( DISTINCT + col2 ) AS SIGNED ) ) + ( - + ( + - 33 ) ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT ( + - CAST ( MIN ( DISTINCT + col2 ) AS INTEGER ) ) + ( - + ( + - 33 ) ) AS col1 FROM tab2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT COUNT( DISTINCT - + col1 ) DIV - COUNT( * ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6686
SELECT DISTINCT COUNT ( DISTINCT - + col1 ) / - COUNT ( * ) col0 FROM tab1
----
-1

query I rowsort
SELECT ALL - 81 * + 40 - 2 AS col0 FROM tab1
----
-3242
-3242
-3242

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 46 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - 14 AS col2 FROM tab0
----
-1386
-140
-658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT ALL - - col1 / 46 / - CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - - col1 / 46 / - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
141
142
97

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL SUM( ALL - 93 ) + COUNT( * ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL SUM ( ALL - 93 ) + COUNT ( * ) FROM tab0
----
-276

query I rowsort
SELECT - + 80 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 60 + + col0 IS NULL
----
1120
3760
400

query I rowsort
SELECT - - col0 * - + 66 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT + ( + 9 ) AS col1 FROM tab1 cor0
----
9
9
9

query I rowsort
SELECT - + col1 * + + col2 * + col1 FROM tab0 AS cor0
----
-308367
-4410
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 77 * - + col1 AS col0, + 97 col1 FROM tab2
----
3927
97
5159
97
5929
97

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE - col2 * - + col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col1 + - + 99 AND + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6701
SELECT ALL - ( 49 ) FROM tab0 WHERE + ( - CAST( - + col2 AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - ( 49 ) FROM tab0 WHERE + ( - CAST ( - + col2 AS REAL ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT MIN( DISTINCT + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT MIN ( DISTINCT + col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6703
SELECT * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) / - + 91 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6703
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / - + 91 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + - col0 ) + + col1 + + + ( + col0 ) * + 37 FROM tab2 AS cor0
----
1707
2381
2767

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col1 - + col1 - - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6706
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 / + - col2 * col0 > + col0 * 79 + - 95 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6706
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 / + - col2 * col0 > + col0 * 79 + - 95 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6707
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6707
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT + 50 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT + 50 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 + + 16 * - + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 + + 16 * - + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 90 + + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * + - col2 - + + col2 AS col2 FROM tab1 AS cor0
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + MIN( - + 67 ) AS col0 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6712
SELECT + MIN ( - + 67 ) AS col0 FROM tab0 AS cor0
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 68 - - + col0 AS col2 FROM tab1 AS cor0
----
119
153
159

query I rowsort
SELECT - 15 - col0 + - col0 * - 21 - 52 AS col1 FROM tab0 AS cor0
----
1673
1873
233

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6716
SELECT * FROM tab1 WHERE + col2 / - 72 * 74 BETWEEN + - CAST( NULL AS DECIMAL ) * - 63 / + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6716
SELECT * FROM tab1 WHERE + col2 / - 72 * 74 BETWEEN + - CAST ( NULL AS REAL ) * - 63 / + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL MAX( 50 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL MAX ( 50 ) FROM tab2
----
50

query I rowsort
SELECT col1 + - 69 AS col1 FROM tab1
----
-22
-55
-64

query I rowsort
SELECT - 58 * 79 + col2 FROM tab1
----
-4486
-4514
-4523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6720
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) AS col2, 19 FROM tab0
----
0
19

skipif mysql # not compatible
query II rowsort label-6720
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2, 19 FROM tab0
----
0
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE 85 / - col0 + - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE 85 / - col0 + - col2 >= NULL
----
0

query I rowsort
SELECT 21 * - col0 + col2 * - + col1 AS col0 FROM tab1 AS cor0
----
-2080
-2415
-5107

query II rowsort
SELECT col0, + col1 FROM tab0 WHERE NOT - + 9 + + + col2 IS NULL
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT + 72 * COUNT( - col0 ) AS col0 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT + 72 * COUNT ( - col0 ) AS col0 FROM tab0 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT - + CAST( + 1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6725
SELECT - + CAST ( + 1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col1 + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT COUNT( - - 28 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT COUNT ( - - 28 ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 = NULL
----
0

query I rowsort
SELECT 67 * col2 AS col0 FROM tab0
----
3149
6633
670

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 49 IN ( 91 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT - col2 + + CAST( + + col2 AS SIGNED ) col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6730
SELECT - col2 + + CAST ( + + col2 AS INTEGER ) col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6731
SELECT ALL 41 DIV - COUNT( * ), 78 AS col2 FROM tab2
----
-13
78

skipif mysql # not compatible
query II rowsort label-6731
SELECT ALL 41 / - COUNT ( * ), 78 AS col2 FROM tab2
----
-13
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 + - col1 IS NULL
----

query II rowsort
SELECT col1 AS col1, col0 AS col0 FROM tab1 cor0
----
14
51
47
91
5
85

query II rowsort
SELECT col0, col0 * + ( + col0 ) FROM tab0 AS cor0 WHERE NULL <= - col0 - - col0
----

query II rowsort
SELECT + col1 * + + col2 AS col2, col2 FROM tab1
----
1344
96
295
59
3196
68

query I rowsort
SELECT + col0 * + col2 * + - 75 AS col2 FROM tab1
----
-367200
-376125
-464100

query II rowsort
SELECT - col2 + 27 AS col1, col1 * + col1 AS col2 FROM tab2
----
-13
5929
-31
4489
4
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + COUNT( * ) + - 24 AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-6738
SELECT + COUNT ( * ) + - 24 AS col0 FROM tab0
----
-21

query I rowsort
SELECT DISTINCT + 59 + + 30 - - 35 FROM tab2 cor0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6740
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + CAST( col0 AS SIGNED ) AND - 68
----

skipif mysql # not compatible
query III rowsort label-6740
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( col0 AS INTEGER ) AND - 68
----

query I rowsort
SELECT DISTINCT - col1 * - 26 + col0 FROM tab0 AS cor0
----
123
2121
633

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL BETWEEN col0 AND 72
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL BETWEEN col0 AND 72
----
0

query I rowsort
SELECT ALL - col1 * + - col2 * - ( + col0 ) - + col1 FROM tab1
----
-25080
-290883
-68558

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT + MIN( - 85 ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-6744
SELECT + MIN ( - 85 ) FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL - col0 * - 26 - + 33 AS col1 FROM tab2
----
1163
1631
1917

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT DISTINCT COUNT( * ) * - 10 AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT COUNT ( * ) * - 10 AS col1 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 47 ) * + ( - col2 ) col1 FROM tab1 AS cor0
----
-2773
-3196
-4512

query I rowsort
SELECT + + col0 * - + 1 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT + col0 AS col2, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 / + + col2 / + 37 AND NULL
----

query I rowsort
SELECT + - 36 * + + col0 FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT + - COUNT( DISTINCT 37 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT + - COUNT ( DISTINCT 37 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col1 * + col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-128973
-17320
-217237

query I rowsort
SELECT 64 AS col2 FROM tab0, tab2 cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL ) IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + 25 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT DISTINCT - + ( + ( + COUNT( * ) ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - + ( + ( + COUNT ( * ) ) ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - 46 * + + 88 + - 20 + - + 71 FROM tab1 AS cor0
----
-4139
-4139
-4139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT DISTINCT + + 76 DIV - COUNT( + 77 ) AS col1 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + + 76 / - COUNT ( + 77 ) AS col1 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT 33 * + col0 + col0 FROM tab2 cor0
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT + MAX( + - 77 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6763
SELECT + MAX ( + - 77 ) FROM tab0 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col2 FROM tab2 AS cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT ALL 9 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL 9 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT ALL + col0 * 71 DIV - col0 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + col0 * 71 / - col0 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT DISTINCT + CAST( + ( 64 ) AS SIGNED ) AS col1 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + CAST ( + ( 64 ) AS INTEGER ) AS col1 FROM tab1
----
64

query I rowsort
SELECT 5 * - col2 AS col1 FROM tab0
----
-235
-495
-50

query III rowsort
SELECT * FROM tab0 WHERE NOT + 79 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 27 + - + col1 > NULL
----

query I rowsort
SELECT - col1 + + + col0 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT 53 + + 90 FROM tab1 AS cor0
----
143
143
143

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN 83 AND + 69
----

query I rowsort
SELECT - col0 + - + 61 AS col1 FROM tab1 AS cor0
----
-112
-146
-152

query I rowsort
SELECT + + col0 + + col1 * col1 AS col0 FROM tab1 cor0
----
110
2300
247

query I rowsort
SELECT DISTINCT 11 FROM tab1 WHERE NOT + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL 56 + col1 AS col0 FROM tab2
----
107
123
133

query I rowsort
SELECT - col2 + - + 42 AS col2 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - col1 * - 82 AS col2 FROM tab0
----
1722
6642
82

query I rowsort
SELECT DISTINCT + 94 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
94

query II rowsort
SELECT 60 AS col1, col0 FROM tab1
----
60
51
60
85
60
91

query I rowsort
SELECT - col1 * + col0 + 90 AS col2 FROM tab2 cor0
----
-2256
-4838
-4935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( col1 ), 46 col0 FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT COUNT( * ) - 18 + COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6785
SELECT COUNT ( * ) - 18 + COUNT ( * ) FROM tab1 AS cor0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT DISTINCT - + ( - + 39 ) DIV - 47 + + col0 col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6786
SELECT DISTINCT - + ( - + 39 ) / - 47 + + col0 col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT + - COUNT( * ) + - + COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + - COUNT ( * ) + - + COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT ALL 62 + + col0 AS col2 FROM tab0
----
149
159
77

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + - 2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT + COUNT( * ) * - 72 AS col2 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-6790
SELECT + COUNT ( * ) * - 72 AS col2 FROM tab0
----
-216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 < + + col2 * + 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT DISTINCT + + COUNT( ALL + col2 ) AS col0, 71 AS col2 FROM tab2 AS cor0
----
3
71

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT + + COUNT ( ALL + col2 ) AS col0, 71 AS col2 FROM tab2 AS cor0
----
3
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT + + MIN( + col1 ) * - 88 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6793
SELECT + + MIN ( + col1 ) * - 88 FROM tab0 AS cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) / + col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL + COUNT( DISTINCT + 44 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL + COUNT ( DISTINCT + 44 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT ( - - 23 ) AS col0 FROM tab1 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT MIN( ALL + 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT MIN ( ALL + 0 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col0 col1 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT DISTINCT col1, - ( - col2 ) FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + col0 * + - col1 col2 FROM tab0 cor0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT + - 9 * + + 48 + - AVG ( col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 18 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 * + col0 * - 35 col1 FROM tab1 cor0
----
-130305
-217175
-232505

query I rowsort
SELECT DISTINCT ( - col2 ) * + + 10 FROM tab1
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL 81 * - + COUNT( * ) FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL 81 * - + COUNT ( * ) FROM tab1
----
-243

query II rowsort
SELECT 74 + - col1 AS col0, 79 AS col2 FROM tab0
----
-7
79
53
79
73
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT DISTINCT ( - COUNT( * ) ), - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6807
SELECT DISTINCT ( - COUNT ( * ) ), - COUNT ( * ) FROM tab1
----
-3
-3

query I rowsort
SELECT + col0 * 37 AS col1 FROM tab2
----
1702
2368
2775

query I rowsort
SELECT DISTINCT ( - col0 ) * 95 FROM tab2
----
-4370
-6080
-7125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 WHERE - + 82 * + col1 / 14 + + col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + 82 * + col1 / 14 + + col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6811
SELECT ALL - 95 DIV - COUNT( * ) AS col2 FROM tab0 cor0
----
31

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - 95 / - COUNT ( * ) AS col2 FROM tab0 cor0
----
31

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL > col2 * - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT + + 25 - - col2 DIV + ( + col2 ) col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6813
SELECT + + 25 - - col2 / + ( + col2 ) col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col1 ) + - + col2 col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT ALL - col2 DIV col2 DIV + - col0 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL - col2 / col2 / + - col0 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT + 68 DIV - col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT + 68 / - col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT COUNT( * ) + - - 98 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT COUNT ( * ) + - - 98 FROM tab2 AS cor0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT - col0 DIV ( + 33 ) AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6818
SELECT - col0 / ( + 33 ) AS col1 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT ALL + 40 AS col2, COUNT( * ) FROM tab2
----
40
3

skipif mysql # not compatible
query II rowsort label-6819
SELECT ALL + 40 AS col2, COUNT ( * ) FROM tab2
----
40
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL - MIN( DISTINCT + ( - + 46 ) ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - MIN ( DISTINCT + ( - + 46 ) ) AS col1 FROM tab0
----
46

query I rowsort
SELECT ALL 96 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
96
96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + 3 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT DISTINCT + + MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT + + MAX ( - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT col0 * col2 * col1 DIV - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6824
SELECT col0 * col2 * col1 / - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

query I rowsort
SELECT + col1 * col0 * + col2 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6826
SELECT 13 * - + COUNT( * ) AS col0, + ( - 95 ) + - CAST( NULL AS SIGNED ) + - 29 col1 FROM tab2 cor0
----
-39
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6826
SELECT 13 * - + COUNT ( * ) AS col0, + ( - 95 ) + - CAST ( NULL AS INTEGER ) + - 29 col1 FROM tab2 cor0
----
-39
NULL

query I rowsort
SELECT col2 * - + col1 * - col2 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6828
SELECT ALL CAST( NULL AS SIGNED ) col1, - col2 - - 86 FROM tab2 WHERE - col2 * + col2 IS NOT NULL
----
NULL
28
NULL
46
NULL
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6828
SELECT ALL CAST ( NULL AS INTEGER ) col1, - col2 - - 86 FROM tab2 WHERE - col2 * + col2 IS NOT NULL
----
NULL
28
NULL
46
NULL
63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT col1 + + 82 DIV col0 AS col2 FROM tab0 cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT col1 + + 82 / col0 AS col2 FROM tab0 cor0
----
1
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT COUNT( col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6831
SELECT COUNT ( col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT - col0 * col2 DIV col1 AS col2 FROM tab0
----
-41
-8
-9603

skipif mysql # not compatible
query I rowsort label-6832
SELECT - col0 * col2 / col1 AS col2 FROM tab0
----
-41
-8
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT ALL CAST( NULL AS SIGNED ) * - 11 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL CAST ( NULL AS INTEGER ) * - 11 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6834
SELECT * FROM tab2 WHERE ( NOT + CAST( NULL AS SIGNED ) <= ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6834
SELECT * FROM tab2 WHERE ( NOT + CAST ( NULL AS INTEGER ) <= ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6835
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - 6 * - 18 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-6835
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - 6 * - 18 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL + SUM( ALL - - 63 ) AS col1 FROM tab0 WHERE NOT - col1 >= col1
----
189

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL + SUM ( ALL - - 63 ) AS col1 FROM tab0 WHERE NOT - col1 >= col1
----
189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 53 - + col2 >= + ( + col1 ) )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT - ( + SUM( DISTINCT - col0 ) ) + - COUNT( * ) + + MIN( ALL col0 ) * - 38 AS col2 FROM tab1 AS cor0
----
-1714

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT - ( + SUM ( DISTINCT - col0 ) ) + - COUNT ( * ) + + MIN ( ALL col0 ) * - 38 AS col2 FROM tab1 AS cor0
----
-1714

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT 85 + + 56 DIV - col2 AS col1 FROM tab0 AS cor0
----
80
84
85

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT 85 + + 56 / - col2 AS col1 FROM tab0 AS cor0
----
80
84
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT - CAST( NULL AS SIGNED ) + 14 AS col0 FROM tab0 WHERE NOT col2 IN ( CAST( ( col2 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6840
SELECT - CAST ( NULL AS INTEGER ) + 14 AS col0 FROM tab0 WHERE NOT col2 IN ( CAST ( ( col2 ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6841
SELECT ALL - AVG ( + col1 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - AVG ( + col1 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * 37 ) BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN NULL AND + 96 + - col2
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 IN ( - ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 88 AS col2 FROM tab0 WHERE - col1 IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab2 WHERE NOT - col0 + col1 * + col2 IN ( - col1 * col2 )
----
141
142
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6847
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL 49 FROM tab2 WHERE NOT col0 IS NULL
----
49
49
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT 77 DIV + COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-6850
SELECT 77 / + COUNT ( * ) FROM tab2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6851
SELECT ALL 96 DIV + COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL 96 / + COUNT ( * ) FROM tab2
----
32

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col2 * 50
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 57 NOT BETWEEN ( col1 * - col1 + + 19 * 37 ) AND - 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL - 96 + - COUNT( * ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL - 96 + - COUNT ( * ) AS col0 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 + 15 col2 FROM tab1
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * - col2 NOT IN ( 96 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * - col2 NOT IN ( 96 + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col0 FROM tab1 WHERE - col0 < - col0 - + col0 * - col2
----
52
52
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col0 * - 21
----

query I rowsort
SELECT 12 + col2 FROM tab1
----
108
71
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 40 + 91 / - col1 NOT BETWEEN ( col1 * - col2 ) AND col0 + 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT - col2 DIV + col2 + + 12 AS col0 FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-6862
SELECT - col2 / + col2 + + 12 AS col0 FROM tab0
----
11
11
11

query I rowsort
SELECT 18 + - col0 AS col2 FROM tab2
----
-28
-46
-57

query I rowsort
SELECT ALL + 32 AS col0 FROM tab1 WHERE NOT ( ( col0 ) * col1 ) NOT BETWEEN ( NULL ) AND ( 13 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT 55 + - col0 DIV - 22 AS col2 FROM tab0
----
55
58
59

skipif mysql # not compatible
query I rowsort label-6865
SELECT 55 + - col0 / - 22 AS col2 FROM tab0
----
55
58
59

query I rowsort
SELECT ALL - col0 * - 31 AS col0 FROM tab0 WHERE NOT NULL IN ( + col2 + 54 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6867
SELECT * FROM tab2 WHERE NOT 5 BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) - - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-6867
SELECT * FROM tab2 WHERE NOT 5 BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) - - ( - col1 ) )
----

query I rowsort
SELECT + col0 + + 17 AS col1 FROM tab2
----
63
81
92

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT col2 + col2 * col0 BETWEEN NULL AND ( col2 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT DISTINCT MAX( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT MAX ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT ALL - ( CAST( NULL AS SIGNED ) ) / - 45 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) / - 45 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= 68
----

query I rowsort
SELECT col1 * 62 FROM tab0 cor0
----
1302
5022
62

query I rowsort
SELECT ( - col1 ) FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * 86 + col0 * + col2 AS col0 FROM tab2
----
10112
5444
9182

query I rowsort
SELECT ALL ( - 56 ) FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + 59 + 41 * col2 FROM tab2 AS cor0
----
1002
1699
2437

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col1 FROM tab1 AS cor0 WHERE ( + 63 ) = col0
----

query I rowsort
SELECT DISTINCT 28 + - col2 FROM tab0 AS cor0
----
-19
-71
18

query I rowsort
SELECT DISTINCT - 50 + col0 AS col2 FROM tab0 cor0
----
-35
37
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL + COUNT( * ) + - 94 col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6881
SELECT ALL + COUNT ( * ) + - 94 col0 FROM tab0 AS cor0
----
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - col2 * - col2 IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT + + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT + + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT ALL - col2 DIV col2 + col2 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL - col2 / col2 + col2 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL - COUNT( * ) * + 95 col2 FROM tab1
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6885
SELECT ALL - COUNT ( * ) * + 95 col2 FROM tab1
----
-285

query I rowsort
SELECT + col2 * col1 * col1 FROM tab0
----
308367
4410
99

query I rowsort
SELECT DISTINCT 73 * - + col2 AS col0 FROM tab0
----
-3431
-7227
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + 22 * MAX( 81 ) AS col1 FROM tab1
----
1782

skipif mysql # not compatible
query I rowsort label-6888
SELECT + 22 * MAX ( 81 ) AS col1 FROM tab1
----
1782

query I rowsort
SELECT DISTINCT col1 - - - col2 AS col0 FROM tab0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col0 * + 81 + ( col0 + + 25 ) )
----

query I rowsort
SELECT - 88 * - - col0 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT DISTINCT - 45 + col1 FROM tab1
----
-31
-40
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT + 2 + - SUM( ALL col2 ) FROM tab2 WHERE NULL IS NULL
----
-119

skipif mysql # not compatible
query I rowsort label-6893
SELECT + 2 + - SUM ( ALL col2 ) FROM tab2 WHERE NULL IS NULL
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT + - MAX( DISTINCT - col0 ) + + 27 AS col1 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + - MAX ( DISTINCT - col0 ) + + 27 AS col1 FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6895
SELECT + SUM( - 3 ) + 97 AS col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN 76 AND ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT + SUM ( - 3 ) + 97 AS col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN 76 AND ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL + 23 + + COUNT( * ) * + 61 col0 FROM tab2
----
206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6896
SELECT ALL + 23 + + COUNT ( * ) * + 61 col0 FROM tab2
----
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT + CAST( NULL AS SIGNED ) * - 78 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT + CAST ( NULL AS INTEGER ) * - 78 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1219
3144
3961

query I rowsort
SELECT - ( + col2 ) FROM tab2 cor0 WHERE NOT ( + col1 ) < NULL
----

query I rowsort
SELECT ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= - col0 / + col2 * col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT - 6 * - + COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - 6 * - + COUNT ( * ) FROM tab2 AS cor0
----
18

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( ( 32 ) + 60 )
----

query I rowsort
SELECT + 5 * ( + 19 ) FROM tab2 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL + COUNT( * ) * + 29 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL + COUNT ( * ) * + 29 FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6905
SELECT ALL * FROM tab1 WHERE - CAST( 76 AS SIGNED ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6905
SELECT ALL * FROM tab1 WHERE - CAST ( 76 AS INTEGER ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 80 * + col0 + col1 FROM tab2 WHERE NOT ( NULL ) <> ( 36 )
----

query I rowsort
SELECT ALL + 94 + + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
140
158
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT ALL + + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 39 / - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT + + MAX( - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + + MAX ( - col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT COUNT( + - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6912
SELECT COUNT ( + - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT MIN( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6913
SELECT MIN ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT ALL + + 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-6914
SELECT ALL + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - ( - COUNT( * ) ) + - 61 AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - ( - COUNT ( * ) ) + - 61 AS col0 FROM tab1 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6916
SELECT DISTINCT 99 + + + CAST( NULL AS SIGNED ) + + 34 AS col2, 51 FROM tab1 AS cor0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6916
SELECT DISTINCT 99 + + + CAST ( NULL AS INTEGER ) + + 34 AS col2, 51 FROM tab1 AS cor0
----
NULL
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE col1 * 72 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL - 79 + + 39 * - SUM( ALL + ( + 46 ) ) FROM tab1 AS cor0
----
-5461

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - 79 + + 39 * - SUM ( ALL + ( + 46 ) ) FROM tab1 AS cor0
----
-5461

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 49 * - col1 * + + ( 33 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + col2 IN ( col2 )
----

query I rowsort
SELECT ALL + col0 + + 51 * + col2 AS col0 FROM tab2
----
1219
2104
3033

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 20 )
----

query I rowsort
SELECT col2 * - col2 + + - col1 + 88 * - 61 * 15 * + 53 FROM tab0
----
-4267681
-4269850
-4277362

query III rowsort
SELECT * FROM tab0 WHERE NULL = - col1 - - 68
----

query I rowsort
SELECT + col1 + + ( 99 ) FROM tab0 AS cor0
----
100
120
180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6927
SELECT - col2 FROM tab0 cor0 WHERE ( NULL ) > - 57 + - + CAST( NULL AS DECIMAL ) * - 65
----

skipif mysql # not compatible
query I rowsort label-6927
SELECT - col2 FROM tab0 cor0 WHERE ( NULL ) > - 57 + - + CAST ( NULL AS REAL ) * - 65
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( + col1 ) * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT DISTINCT - col0 + - - 53 - - + CAST( NULL AS SIGNED ) * - 30 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT - col0 + - - 53 - - + CAST ( NULL AS INTEGER ) * - 30 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 28 * - col0 FROM tab2 AS cor0
----
-1288
-1792
-2100

query I rowsort
SELECT + col0 * + - ( - + col1 ) * col2 AS col0 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / - ( col1 ) + - 72 NOT IN ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT - + 59 * + + 47 * MAX( col1 ) AS col1 FROM tab0 AS cor0
----
-224613

skipif mysql # not compatible
query I rowsort label-6934
SELECT - + 59 * + + 47 * MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
-224613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL - CAST( - - 35 AS SIGNED ) * + 98 * - col2 FROM tab2 cor0
----
137200
198940
78890

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL - CAST ( - - 35 AS INTEGER ) * + 98 * - col2 FROM tab2 cor0
----
137200
198940
78890

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE NOT ( ( NOT ( NULL ) IN ( col0 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT ALL - + col2 DIV + - col0 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - + col2 / + - col0 AS col0 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 + - - col0 NOT BETWEEN 18 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = col2 + + ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT 27 DIV + 41 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT 27 / + 41 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * ( + ( - + 13 ) ) FROM tab1
----
-182
-611
-65

query I rowsort
SELECT + 81 FROM tab2 WHERE NOT col0 <> + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 70 col2 FROM tab2
----
-1610
-2800
-4060

query II rowsort
SELECT 46, 5 AS col0 FROM tab0
----
46
5
46
5
46
5

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1 cor0
----
16

query I rowsort
SELECT - + col1 * - + 2 AS col2 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT + - COUNT( ALL - col2 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6947
SELECT DISTINCT + - COUNT ( ALL - col2 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 74 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT DISTINCT - 16 DIV - - 72 * - 9 * + 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - 16 / - - 72 * - 9 * + 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT - 62 * + col1 AS col1 FROM tab0
----
-1302
-5022
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL - COUNT( * ) col1 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-6951
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT ALL + 85 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + 85 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-16

query I rowsort
SELECT ALL - col0 + - ( - - ( - 34 ) ) FROM tab1 AS cor0
----
-17
-51
-57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) IN ( - 24 + 57, - col0 * + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6956
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 88 AS col1, col2 col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6956
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 88 AS col1, col2 col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 96 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT + 5 DIV - + col2 + ( + col1 ) + - col0 * + col1 * - 98 AS col0 FROM tab1 AS cor0
----
41655
419193
69986

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + 5 / - + col2 + ( + col1 ) + - col0 * + col1 * - 98 AS col0 FROM tab1 AS cor0
----
41655
419193
69986

query I rowsort
SELECT ( + ( + col2 ) ) + ( col0 ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT DISTINCT + + col0 DIV - + 86 AS col1 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT + + col0 / - + 86 AS col1 FROM tab0 cor0
----
-1
0

query II rowsort
SELECT DISTINCT - col0 + + col2 - col2 + - col2 AS col1, 87 AS col0 FROM tab2 AS cor0
----
-104
87
-133
87
-69
87

query I rowsort
SELECT ALL - col1 + - + col0 AS col2 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ( ( - 71 ) ) * - 27 AS col1 FROM tab0
----
1917
1917
1917

query I rowsort
SELECT DISTINCT - 57 + + - 68 AS col1 FROM tab0
----
-125

query I rowsort
SELECT DISTINCT col1 - - col0 + + 66 AS col1 FROM tab2
----
163
207
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6966
SELECT ALL 79 - + - SUM( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL 79 - + - SUM ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6967
SELECT DISTINCT - AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT SUM( + col2 ) - 29 col1 FROM tab1
----
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6968
SELECT DISTINCT SUM ( + col2 ) - 29 col1 FROM tab1
----
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 78 col2 FROM tab2
----
-20
-38
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT DISTINCT + ( - COUNT( * ) ) * - 80 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT + ( - COUNT ( * ) ) * - 80 FROM tab0 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT + COUNT( * ) * - 13 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-6971
SELECT + COUNT ( * ) * - 13 FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT DISTINCT - 46 * - CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT - 46 * - CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT + COUNT( * ) * - - 45 * + COUNT( * ) AS col2 FROM tab1
----
405

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT + COUNT ( * ) * - - 45 * + COUNT ( * ) AS col2 FROM tab1
----
405

query I rowsort
SELECT + 52 * - col2 * col2 FROM tab0 AS cor0
----
-114868
-509652
-5200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6975
SELECT - - CAST( NULL AS SIGNED ) AS col1, - col2 + 66 DIV - 95 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-6975
SELECT - - CAST ( NULL AS INTEGER ) AS col1, - col2 + 66 / - 95 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6976
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-6976
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 60, 10 col1 FROM tab0 AS cor0
----
60
10
60
10
60
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT ALL + - COUNT( * ) AS col1, SUM( ALL + 8 ) FROM tab2 AS cor0
----
-3
24

skipif mysql # not compatible
query II rowsort label-6978
SELECT ALL + - COUNT ( * ) AS col1, SUM ( ALL + 8 ) FROM tab2 AS cor0
----
-3
24

query II rowsort
SELECT ALL col1, 78 AS col0 FROM tab2 AS cor0
----
51
78
67
78
77
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT - COUNT( * ) * 11 AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6980
SELECT - COUNT ( * ) * 11 AS col2 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT ALL + + 78 AS col0 FROM tab1 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6982
SELECT + 86, + col2, + + 78 * - col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
9 values hashing to 613253d5fd42ae03394bdbfb41ce901e

skipif mysql # not compatible
query III rowsort label-6982
SELECT + 86, + col2, + + 78 * - col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
9 values hashing to 613253d5fd42ae03394bdbfb41ce901e

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + MAX( + 56 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6983
SELECT + MAX ( + 56 ) FROM tab1 AS cor0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6984
SELECT ALL - col2 * + + col2 DIV - - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - col2 * + + col2 / - - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT + COUNT( ALL + - 49 ), + ( COUNT( * ) ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6985
SELECT + COUNT ( ALL + - 49 ), + ( COUNT ( * ) ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - - col1 + + col1 + 93 AS col2 FROM tab1 AS cor0
----
103
121
187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6987
SELECT ALL CAST( NULL AS SIGNED ) * + + col1 AS col1, - 46 AS col1 FROM tab1 AS cor0
----
NULL
-46
NULL
-46
NULL
-46

skipif mysql # not compatible
query II rowsort label-6987
SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 AS col1, - 46 AS col1 FROM tab1 AS cor0
----
NULL
-46
NULL
-46
NULL
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT DISTINCT - col0 DIV - - 51 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT - col0 / - - 51 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 80 * - - 50 AND + col1 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-6989
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 80 * - - 50 AND + col1 + - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6990
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 62 col2 FROM tab2
----
108
126
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT 26 * + - COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT 26 * + - COUNT ( * ) FROM tab2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT DISTINCT - 19 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - 19 / + col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6994
SELECT 98 AS col2, ( - CAST( NULL AS SIGNED ) ) * + col0 AS col0 FROM tab1 AS cor0
----
98
NULL
98
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-6994
SELECT 98 AS col2, ( - CAST ( NULL AS INTEGER ) ) * + col0 AS col0 FROM tab1 AS cor0
----
98
NULL
98
NULL
98
NULL

query I rowsort
SELECT DISTINCT col0 * + 88 FROM tab0 AS cor0
----
1320
7656
8536

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT - COUNT( * ) AS col2, ( - 59 ) FROM tab1 AS cor0
----
-3
-59

skipif mysql # not compatible
query II rowsort label-6996
SELECT - COUNT ( * ) AS col2, ( - 59 ) FROM tab1 AS cor0
----
-3
-59

query I rowsort
SELECT ALL + 21 * - - col0 + - col0 FROM tab1 AS cor0
----
1020
1700
1820

query I rowsort
SELECT + ( - col1 ) - + 90 FROM tab2 AS cor0
----
-141
-157
-167

query I rowsort
SELECT DISTINCT - col0 + + + col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL + 91 - 97 * - col2 FROM tab1
----
5814
6687
9403

query I rowsort
SELECT + col0 + + 12 AS col2 FROM tab2
----
58
76
87

query I rowsort
SELECT DISTINCT - 23 - 24 * + col1 FROM tab0
----
-1967
-47
-527

query I rowsort
SELECT ALL - col2 - + ( + ( + col1 ) ) + + col0 FROM tab2
----
-28
-50
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT + col0 + - 81 DIV - - 66 AS col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-7004
SELECT + col0 + - 81 / - - 66 AS col1 FROM tab2
----
45
63
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT ALL col0 DIV - col0 - - col0 col2 FROM tab2
----
45
63
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7005
SELECT ALL col0 / - col0 - - col0 col2 FROM tab2
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 99 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL - SUM( + + 90 ) AS col2 FROM tab1 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - SUM ( + + 90 ) AS col2 FROM tab1 cor0
----
-270

query I rowsort
SELECT 55 * + 67 FROM tab2
----
3685
3685
3685

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT 88 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL ( - 90 ) * 84 AS col2 FROM tab0
----
-7560
-7560
-7560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7013
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + - col2 - - col1 >= - CAST( NULL AS DECIMAL ) OR NOT 87 - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + - col2 - - col1 >= - CAST ( NULL AS REAL ) OR NOT 87 - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( 77 ) AS col1 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT - + MAX( ALL + - 47 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - + MAX ( ALL + - 47 ) FROM tab0 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 37 col0 FROM tab0 AS cor0
----
-37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col1 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT ALL + - CAST( 25 AS SIGNED ) FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL + - CAST ( 25 AS INTEGER ) FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT + 58 * + MIN( + 24 ) FROM tab0
----
1392

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + 58 * + MIN ( + 24 ) FROM tab0
----
1392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT ALL + CAST( - 90 AS SIGNED ) * + 57 FROM tab0 WHERE NOT + + col2 IS NULL
----
-5130
-5130
-5130

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + CAST ( - 90 AS INTEGER ) * + 57 FROM tab0 WHERE NOT + + col2 IS NULL
----
-5130
-5130
-5130

query II rowsort
SELECT ALL col2 AS col1, col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT + ( + col2 ) + + + 8 + col2 AS col1 FROM tab0
----
102
206
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7024
SELECT ALL + 83, + CAST( NULL AS SIGNED ) * 83 AS col0 FROM tab2
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-7024
SELECT ALL + 83, + CAST ( NULL AS INTEGER ) * 83 AS col0 FROM tab2
----
83
NULL
83
NULL
83
NULL

query I rowsort
SELECT DISTINCT + 56 * - col1 AS col2 FROM tab1
----
-2632
-280
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7026
SELECT + 16 DIV - + 95 * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT + 16 / - + 95 * - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - 35 ) FROM tab1
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT DISTINCT 69 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT 69 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - MIN( 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-7030
SELECT - MIN ( 69 ) FROM tab1
----
-69

query I rowsort
SELECT ALL + col1 + 23 - + col1 AS col0 FROM tab1 AS cor0
----
23
23
23

query II rowsort
SELECT + col1 * + 61 AS col2, col2 AS col1 FROM tab2 cor0
----
3111
23
4087
58
4697
40

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE ( + 53 + + + col0 ) <= ( 30 ) * - 78
----

query I rowsort
SELECT 95 + + col2 AS col1 FROM tab1
----
154
163
191

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT 10 + + COUNT( * ) col2, 17 FROM tab0
----
13
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7036
SELECT 10 + + COUNT ( * ) col2, 17 FROM tab0
----
13
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7037
SELECT 92 + - CAST( col1 AS SIGNED ), + col2 AS col2 FROM tab1 AS cor0
----
45
68
78
96
87
59

skipif mysql # not compatible
query II rowsort label-7037
SELECT 92 + - CAST ( col1 AS INTEGER ), + col2 AS col2 FROM tab1 AS cor0
----
45
68
78
96
87
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL MIN( ALL + - 68 ) AS col2 FROM tab0 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL MIN ( ALL + - 68 ) AS col2 FROM tab0 cor0
----
-68

query I rowsort
SELECT ALL + 56 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-8
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT + - col0 * col2 DIV + 51 + + 92 AS col2 FROM tab2 AS cor0
----
42
7
72

skipif mysql # not compatible
query I rowsort label-7040
SELECT + - col0 * col2 / + 51 + + 92 AS col2 FROM tab2 AS cor0
----
42
7
72

query I rowsort
SELECT DISTINCT - col0 * col0 * + col1 + col1 * + - col1 FROM tab0
----
-159390
-24786
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL - COUNT( * ) * - + 34 * + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
-303

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - COUNT ( * ) * - + 34 * + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
-303

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7043
SELECT CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) AS col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7043
SELECT CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col2 FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7044
SELECT - + col0 AS col2, CAST( col2 AS SIGNED ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7044
SELECT - + col0 AS col2, CAST ( col2 AS INTEGER ) AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + 45 AS col2, col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
45
46
45
64
45
75

query I rowsort
SELECT ALL 49 AS col1 FROM tab1 AS cor0 WHERE col2 <= + + col0
----
49
49

query I rowsort
SELECT 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - - col0 IS NOT NULL AND NOT + col1 >= col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7049
SELECT ALL - MIN( - col0 ) AS col1, COUNT( * ) * + 13 FROM tab0 AS cor0
----
97
39

skipif mysql # not compatible
query II rowsort label-7049
SELECT ALL - MIN ( - col0 ) AS col1, COUNT ( * ) * + 13 FROM tab0 AS cor0
----
97
39

query I rowsort
SELECT DISTINCT - col1 + - - 50 AS col1 FROM tab2 AS cor0
----
-1
-17
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7051
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 1 + CAST( NULL AS SIGNED ) >= - col1
----

skipif mysql # not compatible
query III rowsort label-7051
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 1 + CAST ( NULL AS INTEGER ) >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7052
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7052
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT DISTINCT SUM( DISTINCT + 72 ) AS col2, 56 * + 57 FROM tab2 AS cor0
----
72
3192

skipif mysql # not compatible
query II rowsort label-7053
SELECT DISTINCT SUM ( DISTINCT + 72 ) AS col2, 56 * + 57 FROM tab2 AS cor0
----
72
3192

query I rowsort
SELECT 25 AS col1 FROM tab0 cor0
----
25
25
25

query I rowsort
SELECT ALL - col2 + - ( + - col1 ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT - ( col1 ) * + CAST( + ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7056
SELECT - ( col1 ) * + CAST ( + ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7057
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT - ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col2 FROM tab1
----
-88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 83 <= + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE - 95 NOT BETWEEN + + col2 AND - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + - col2 * - col2 * - col1 FROM tab2 WHERE - 30 NOT IN ( + 39 )
----
-123136
-225313
-26933

query II rowsort
SELECT ALL + col1 AS col0, - 83 + + + 79 FROM tab2
----
51
-4
67
-4
77
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT COUNT( * ) * ( + + MAX( 43 ) ) col0 FROM tab0
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7063
SELECT DISTINCT COUNT ( * ) * ( + + MAX ( 43 ) ) col0 FROM tab0
----
129

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT + + 23 + col2 FROM tab2 AS cor0
----
46
63
81

query II rowsort
SELECT + col0 * + 37 + col1 AS col0, + col1 FROM tab2 AS cor0
----
1753
51
2445
77
2842
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ( + COUNT( * ) ) AS col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7067
SELECT ( + COUNT ( * ) ) AS col2 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query III rowsort label-7068
SELECT ALL 10, + col2 DIV col1 * + col2 AS col1, ( - col2 ) col1 FROM tab2
----
9 values hashing to 5e11a359fb02d01c0deb7f8307b4dfee

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7068
SELECT ALL 10, + col2 / col1 * + col2 AS col1, ( - col2 ) col1 FROM tab2
----
9 values hashing to 5e11a359fb02d01c0deb7f8307b4dfee

query I rowsort
SELECT - 23 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT col0 + + - col0 AS col1 FROM tab2 WHERE ( + 8 * col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT DISTINCT + ( MAX( col1 ) ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT + ( MAX ( col1 ) ) AS col1 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 43 col2 FROM tab2 AS cor0
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT MIN( col2 ) - + COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7073
SELECT MIN ( col2 ) - + COUNT ( * ) FROM tab0 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + + COUNT( * ) - + - 27 col1 FROM tab2 cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7074
SELECT + + COUNT ( * ) - + - 27 col1 FROM tab2 cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7075
SELECT DISTINCT - COUNT( * ) AS col0, 16 FROM tab0 AS cor0 WHERE - 38 - CAST( - 69 AS SIGNED ) * + + col2 IS NULL
----
0
16

skipif mysql # not compatible
query II rowsort label-7075
SELECT DISTINCT - COUNT ( * ) AS col0, 16 FROM tab0 AS cor0 WHERE - 38 - CAST ( - 69 AS INTEGER ) * + + col2 IS NULL
----
0
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT - - ( + col2 ) - + - 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-7076
SELECT - - ( + col2 ) - + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7077
SELECT DISTINCT - CAST( 31 AS SIGNED ) DIV + 51 + col0 * + 5 * ( + 70 ) * + col1 + + col1 AS col0 FROM tab0 cor0
----
33951
425331
639471

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT - CAST ( 31 AS INTEGER ) / + 51 + col0 * + 5 * ( + 70 ) * + col1 + + col1 AS col0 FROM tab0 cor0
----
33951
425331
639471

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - ( + - col1 ) * + col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT - - 70 + - 40 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-7080
SELECT - - 70 + - 40 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
190

query I rowsort
SELECT DISTINCT 80 * + col1 * col1 * + + col2 + + - 90 FROM tab2 AS cor0
----
18972710
20828870
4785750

query I rowsort
SELECT ALL 83 * - - col1 AS col2 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT ALL - ( - col1 ) * + col1 AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL + col1 * - col1 * - - col0 AS col0 FROM tab2 cor0
----
-119646
-336675
-379456

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT + 78 AS col0, - 92 AS col0 FROM tab0 AS cor0
----
78
-92
78
-92
78
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-7087
SELECT DISTINCT - + col0 AS col0, + col0 + + col0 DIV col0 FROM tab1 cor0
----
-51
52
-85
86
-91
92

skipif mysql # not compatible
query II rowsort label-7087
SELECT DISTINCT - + col0 AS col0, + col0 + + col0 / col0 FROM tab1 cor0
----
-51
52
-85
86
-91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT DISTINCT + col2 DIV - col0 + 90 AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + col2 / - col0 + 90 AS col1 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL 84 + - ( + + SUM( - col1 ) ) AS col2 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL 84 + - ( + + SUM ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
150

query I rowsort
SELECT 91 + + col1 FROM tab2
----
142
158
168

query II rowsort
SELECT DISTINCT ( + 7 ) AS col1, - col0 + + - 68 FROM tab0
----
7
-155
7
-165
7
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT MIN( ALL - 12 ) + - MIN( ALL - col0 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-7092
SELECT MIN ( ALL - 12 ) + - MIN ( ALL - col0 ) FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT SUM( 84 ) + + 78 FROM tab0 WHERE NULL IS NULL
----
330

skipif mysql # not compatible
query I rowsort label-7093
SELECT SUM ( 84 ) + + 78 FROM tab0 WHERE NULL IS NULL
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - COUNT( 69 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( 69 ) FROM tab1
----
-3

query I rowsort
SELECT 57 * + + col0 FROM tab1
----
2907
4845
5187

query I rowsort
SELECT col1 FROM tab1 WHERE ( NOT col0 IS NULL )
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7097
SELECT 80 DIV COUNT( * ) AS col0 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-7097
SELECT 80 / COUNT ( * ) AS col0 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT - + MIN( ALL - - col1 ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT - + MIN ( ALL - - col1 ) AS col0 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - 33 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7099
SELECT - 33 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-99

query II rowsort
SELECT - ( + 77 ) * col2 + - + col0 AS col0, 46 FROM tab0 AS cor0
----
-3634
46
-7720
46
-857
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) col1 FROM tab1 cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 - col2 col2 FROM tab2 AS cor0
----
-10
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT + MAX( ALL col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7103
SELECT DISTINCT + MAX ( ALL col1 ) col1 FROM tab0
----
81

query I rowsort
SELECT + 80 FROM tab0 WHERE ( + - 75 * col2 * + col2 + col1 * - col0 + - col0 ) IS NOT NULL
----
80
80
80

query I rowsort
SELECT ALL + col2 - - + ( - col2 ) FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( 30, 35, 99 * - - 35, + + 16 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * 25 <= + + col0 - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 81, col0 col0 FROM tab0 AS cor0
----
81
15
81
87
81
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + - col2 ) NOT BETWEEN - 38 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + + 52 * - 23 + MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
-1206

skipif mysql # not compatible
query I rowsort label-7110
SELECT + + 52 * - 23 + MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-1206

query I rowsort
SELECT + col1 - col2 + col2 * col1 FROM tab2 AS cor0 WHERE NOT ( NOT + - 56 IS NOT NULL )
----
1201
3117
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT MAX( DISTINCT - ( + col1 ) ) AS col2 FROM tab0 AS cor0 WHERE col1 + + col2 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT MAX ( DISTINCT - ( + col1 ) ) AS col2 FROM tab0 AS cor0 WHERE col1 + + col2 IS NOT NULL
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - 80 IS NULL )
----

query II rowsort
SELECT + - col1 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT + COUNT( ALL 37 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7115
SELECT + COUNT ( ALL 37 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL col1 AS col1, ( - + col1 ) FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT ALL COUNT( * ) * + COUNT( * ) AS col2, 15 FROM tab0
----
9
15

skipif mysql # not compatible
query II rowsort label-7117
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col2, 15 FROM tab0
----
9
15

query II rowsort
SELECT + col1 AS col2, - 38 + - col0 AS col0 FROM tab1
----
14
-89
47
-129
5
-123

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <= - ( - - col0 ) + - 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 60 + + 48 <= - 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT ALL - col1 * col2 + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-200
-3760
0

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - col1 * col2 + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7123
SELECT - 86, + 51 DIV + col0 AS col2 FROM tab1 cor0
----
-86
0
-86
0
-86
1

skipif mysql # not compatible
query II rowsort label-7123
SELECT - 86, + 51 / + col0 AS col2 FROM tab1 cor0
----
-86
0
-86
0
-86
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7124
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( ( + 12 ), + CAST( NULL AS SIGNED ) / + 27, - ( - - col2 ), + + col0 )
----

skipif mysql # not compatible
query III rowsort label-7124
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IN ( ( + 12 ), + CAST ( NULL AS INTEGER ) / + 27, - ( - - col2 ), + + col0 )
----

query I rowsort
SELECT ALL + 88 * - col2 AS col1 FROM tab0 AS cor0
----
-4136
-8712
-880

query I rowsort
SELECT + - ( - + col1 ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + + col1 * + - 28 FROM tab1 AS cor0
----
-1316
-140
-392

query I rowsort
SELECT ALL - - 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - 61 * - col0 AS col2 FROM tab2
----
2806
3904
4575

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab1 WHERE NULL IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL - - 52 + + COUNT( * ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - - 52 + + COUNT ( * ) FROM tab1 AS cor0
----
55

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 + - 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + + 69 FROM tab1 AS cor0
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ( - - SUM( ALL - 54 ) ) AS col1 FROM tab0 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-7134
SELECT ( - - SUM ( ALL - 54 ) ) AS col1 FROM tab0 cor0
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT - + col0 * col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7135
SELECT - + col0 * col0 / + col0 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - col1 col2, col0 * - + col2 AS col0 FROM tab0 AS cor0
----
-162
-705
-2
-9603
-42
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT ALL - + col0 + + 73 * - CAST( - col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
189827
327622
432753

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - + col0 + + 73 * - CAST ( - col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
189827
327622
432753

query I rowsort
SELECT DISTINCT - 74 * - + 59 + - ( - col2 ) AS col0 FROM tab2 cor0
----
4389
4406
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT + - COUNT( * ) * + + MIN( 76 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT + - COUNT ( * ) * + + MIN ( 76 ) AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - col0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - 41 * - - col0 * + - 3 / + col0 FROM tab1 WHERE NOT ( 9 ) NOT BETWEEN col1 AND - col1 * - - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + col2 IS NULL
----

query I rowsort
SELECT ALL 38 - col1 AS col2 FROM tab0
----
-43
17
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL 65 * + + COUNT( * ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL 65 * + + COUNT ( * ) AS col0 FROM tab2
----
195

query I rowsort
SELECT col0 + - 96 + - col1 + col1 FROM tab0
----
-81
-9
1

query I rowsort
SELECT 26 + + col0 FROM tab1
----
111
117
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT MAX( 48 ) + - 98 AS col1, - COUNT( * ) * - - 43 FROM tab0
----
-50
-129

skipif mysql # not compatible
query II rowsort label-7146
SELECT MAX ( 48 ) + - 98 AS col1, - COUNT ( * ) * - - 43 FROM tab0
----
-50
-129

query I rowsort
SELECT 16 + - col1 FROM tab2
----
-35
-51
-61

query I rowsort
SELECT ALL col1 + + + ( + col0 ) FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

query II rowsort
SELECT + col1, - 88 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-88
67
-88
77
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col2 FROM tab1 AS cor0
----
79
79
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 * + + col1 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, + 46 * - + col1 FROM tab2
----
51
-2346
67
-3082
77
-3542

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 48 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55 AS col0, ( col2 ) + col2 col2 FROM tab1
----
55
118
55
136
55
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT DISTINCT - SUM( DISTINCT 66 ) * + - MAX( - col0 ) AS col1 FROM tab0
----
-990

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT - SUM ( DISTINCT 66 ) * + - MAX ( - col0 ) AS col1 FROM tab0
----
-990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT ALL + MIN( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL + MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL MIN( - ( - - col1 ) ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL MIN ( - ( - - col1 ) ) FROM tab0 cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 36 + - + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT COUNT( * ) * + 62 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-7161
SELECT COUNT ( * ) * + 62 FROM tab0
----
186

query I rowsort
SELECT + col0 + - 6 * - col2 FROM tab1 AS cor0 WHERE - ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL col0 + - ( - col1 ) FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT col2 + + - 33 AS col2 FROM tab0 AS cor0
----
-23
14
66

query I rowsort
SELECT DISTINCT 59 * 90 FROM tab0 cor0
----
5310

query I rowsort
SELECT - 84 - + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7167
SELECT DISTINCT + 7 + + CAST( NULL AS DECIMAL ) + + + 41 + - + col1 * col2 * - - 2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + 7 + + CAST ( NULL AS REAL ) + + + 41 + - + col1 * col2 * - - 2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + - ( + 26 ) * + 68 FROM tab1 AS cor0
----
-1721
-1754
-1763

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - col0 < ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT ALL - 48 + CAST( NULL AS SIGNED ) * - 86 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-7170
SELECT ALL - 48 + CAST ( NULL AS INTEGER ) * - 86 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7171
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN col1 - 33 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7171
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN col1 - 33 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( + 84 ) FROM tab0
----
84
84
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7173
SELECT ALL col1 / - + CAST( NULL AS DECIMAL ) * 10 AS col0, + col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7173
SELECT ALL col1 / - + CAST ( NULL AS REAL ) * 10 AS col0, + col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7174
SELECT ALL col2 col2 FROM tab2 WHERE NOT + col0 * - + col0 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7174
SELECT ALL col2 col2 FROM tab2 WHERE NOT + col0 * - + col0 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7175
SELECT - 62 DIV + col2 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7175
SELECT - 62 / + col2 AS col2 FROM tab0
----
-1
-6
0

query II rowsort
SELECT - col0 * - col2, col2 FROM tab1
----
4896
96
5015
59
6188
68

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL COUNT( + 35 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL COUNT ( + 35 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NULL > + 51 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7180
SELECT + col0 + - CAST( NULL AS SIGNED ), col0 - + ( - col0 ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
240
NULL
7656
NULL
9506

skipif mysql # not compatible
query II rowsort label-7180
SELECT + col0 + - CAST ( NULL AS INTEGER ), col0 - + ( - col0 ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
240
NULL
7656
NULL
9506

query I rowsort
SELECT ALL + + col2 + + + col2 + - + 73 FROM tab2 WHERE ( NOT + col0 > col2 )
----

query I rowsort
SELECT col2 + 79 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col2 AS col1, + col2 AS col1 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - col2 ) > 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT DISTINCT + COUNT( * ), - COUNT( * ) * + 62 AS col1 FROM tab1 cor0
----
3
-186

skipif mysql # not compatible
query II rowsort label-7185
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) * + 62 AS col1 FROM tab1 cor0
----
3
-186

query I rowsort
SELECT - 63 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IS NOT NULL OR - - 77 + col2 NOT IN ( - + col2, + col0 * col2, col0, + 75 * + col1 * col2 )
----
15
81
47
97
1
99

query I rowsort
SELECT - - 24 * + col1 FROM tab2 AS cor0
----
1224
1608
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT - + MIN( col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - + MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT col1 * - 5 * + col1 FROM tab1
----
-11045
-125
-980

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 49 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT MAX( ALL - + 86 ) AS col0 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-7192
SELECT MAX ( ALL - + 86 ) AS col0 FROM tab0
----
-86

query I rowsort
SELECT ALL col0 + 37 FROM tab1 AS cor0
----
122
128
88

query I rowsort
SELECT ALL 26 + + 61 AS col1 FROM tab0
----
87
87
87

query I rowsort
SELECT DISTINCT + col0 * col0 * + ( 4 ) FROM tab1
----
10404
28900
33124

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT COUNT( * ) * 23 AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7196
SELECT COUNT ( * ) * 23 AS col1 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - - MAX( - 33 ) AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7197
SELECT - - MAX ( - 33 ) AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7198
SELECT MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + - 49 * - col1 AS col0 FROM tab1 AS cor0
----
2303
245
686

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT - MAX( DISTINCT - 75 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT - MAX ( DISTINCT - 75 ) FROM tab0 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT ALL col1 DIV - + col0 + 69 AS col1 FROM tab2 cor0
----
68
68
69

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL col1 / - + col0 + 69 AS col1 FROM tab2 cor0
----
68
68
69

query I rowsort
SELECT - 10 - + col2 - 63 * + col1 FROM tab2 AS cor0
----
-3246
-4289
-4901

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT + SUM( ALL - - col2 ) + - 87 AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + SUM ( ALL - - col2 ) + - 87 AS col0 FROM tab0
----
69

query III rowsort
SELECT * FROM tab1 WHERE NULL < - - col1
----

query I rowsort
SELECT ALL 11 * col2 - + - 7 AS col0 FROM tab2
----
260
447
645

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - COUNT( * ) + - 84 AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-7206
SELECT - COUNT ( * ) + - 84 AS col2 FROM tab2
----
-87

query I rowsort
SELECT - 62 AS col0 FROM tab1 WHERE 99 * col1 IS NOT NULL
----
-62
-62
-62

query III rowsort
SELECT * FROM tab2 WHERE + + col2 IN ( - col1 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT - 65 * - + MAX( ALL + col1 ) - COUNT( * ) FROM tab1
----
3052

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT - 65 * - + MAX ( ALL + col1 ) - COUNT ( * ) FROM tab1
----
3052

query III rowsort
SELECT * FROM tab1 WHERE + - col1 / + + col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL - col0 AS col2, + col0, + col1 * + - col0 FROM tab0 cor0
----
9 values hashing to 09de43ac7ba9db1c7d9757e6dfa9790e

query I rowsort
SELECT - - 35 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT + CAST( NULL AS SIGNED ) * - 72 + + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT + CAST ( NULL AS INTEGER ) * - 72 + + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * 46 + - col2 FROM tab0 AS cor0
----
3992
4363
643

query I rowsort
SELECT DISTINCT - 26 * + 54 AS col1 FROM tab2 AS cor0
----
-1404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col1 ) col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 27 FROM tab0 cor0 WHERE col2 + + 64 + - - col1 IS NULL
----

query I rowsort
SELECT 91 * - 44 FROM tab1 AS cor0 WHERE NOT - 60 <> NULL
----

query I rowsort
SELECT ALL + + 99 FROM tab2 cor0
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT ALL col0 DIV + - 33 FROM tab0 cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL col0 / + - 33 FROM tab0 cor0
----
-2
-2
0

query II rowsort
SELECT - col2 * + col1, col1 FROM tab1 cor0
----
-1344
14
-295
5
-3196
47

query II rowsort
SELECT DISTINCT + + col2 * 96, col1 AS col1 FROM tab0 cor0
----
4512
81
9504
1
960
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT DISTINCT - col0 DIV + + col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - col0 / + + col0 AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL + COUNT( ALL + ( col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + COUNT ( ALL + ( col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT COUNT( + - 47 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT COUNT ( + - 47 ) FROM tab2
----
3

query I rowsort
SELECT - col2 + col2 - col2 AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT ALL - 89, + 23 AS col1 FROM tab1
----
-89
23
-89
23
-89
23

query I rowsort
SELECT - 50 * col2 AS col1 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT ALL - + 69 FROM tab2 cor0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-7230
SELECT col0, col2 DIV - col1 FROM tab0 AS cor0
----
15
0
87
0
97
-99

skipif mysql # not compatible
query II rowsort label-7230
SELECT col0, col2 / - col1 FROM tab0 AS cor0
----
15
0
87
0
97
-99

query I rowsort
SELECT ALL + ( - 15 ) * + 44 + + + 90 * - col1 AS col2 FROM tab1 cor0
----
-1110
-1920
-4890

query I rowsort
SELECT DISTINCT + 74 * + ( - 35 ) + - col0 * + + col2 + + col0 * col1 FROM tab0
----
-12096
-1633
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT - COUNT( col2 ) AS col1 FROM tab2 WHERE - col1 >= - - col0
----
0

skipif mysql # not compatible
query I rowsort label-7233
SELECT - COUNT ( col2 ) AS col1 FROM tab2 WHERE - col1 >= - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL - 82 + - - COUNT( + + 46 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - 82 + - - COUNT ( + + 46 ) FROM tab2 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7235
SELECT DISTINCT + + col2 * 64 + 18 + - - col2 + - - 73 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + + col2 * 64 + 18 + - - col2 + - - 73 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + - col2 = + + 56 * col2 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT 8 + - + COUNT( DISTINCT 19 ) AS col1 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT 8 + - + COUNT ( DISTINCT 19 ) AS col1 FROM tab0 cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT DISTINCT 76 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT 76 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT ALL + 17 * - col1 + - CAST( 83 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-1507
-199
-450

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + 17 * - col1 + - CAST ( 83 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-1507
-199
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT + 81 * - 24 - - + CAST( NULL AS SIGNED ) * - 89 - AVG ( 76 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT + 81 * - 24 - - + CAST ( NULL AS INTEGER ) * - 89 - AVG ( 76 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( + 0 ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab0
----
-73
-73
-73

query III rowsort
SELECT * FROM tab2 WHERE ( + - col2 ) IN ( + 64 / + + 94, - col2, - 10, - col1 + + col1, + + col0 * + - col0 * + 65 + - + 31, + - 66, - - 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT ALL + COUNT( * ) - - ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + COUNT ( * ) - - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT + MAX( 19 ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-7245
SELECT + MAX ( 19 ) AS col2 FROM tab1
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7246
SELECT ALL - CAST( NULL AS DECIMAL ) + + 50 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - CAST ( NULL AS REAL ) + + 50 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7247
SELECT - 63 AS col1, + COUNT( * ) FROM tab0
----
-63
3

skipif mysql # not compatible
query II rowsort label-7247
SELECT - 63 AS col1, + COUNT ( * ) FROM tab0
----
-63
3

query I rowsort
SELECT DISTINCT + col2 - + - col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT 28 * + - 48 - + COUNT( * ) * 4 FROM tab2
----
-1356

skipif mysql # not compatible
query I rowsort label-7249
SELECT 28 * + - 48 - + COUNT ( * ) * 4 FROM tab2
----
-1356

query I rowsort
SELECT DISTINCT 60 * col2 - - - 9 FROM tab2
----
1371
2391
3471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + ( + col1 ) - col0 col2 FROM tab2
----
2300
4864
4950

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col2 + - - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT + MIN( - col2 ) * 97 FROM tab2 AS cor0
----
-5626

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + MIN ( - col2 ) * 97 FROM tab2 AS cor0
----
-5626

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7254
SELECT - CAST( - 72 AS SIGNED ) * + 68, + col2 col1 FROM tab1 AS cor0
----
4896
59
4896
68
4896
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7254
SELECT - CAST ( - 72 AS INTEGER ) * + 68, + col2 col1 FROM tab1 AS cor0
----
4896
59
4896
68
4896
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT ALL - + col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - + col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7256
SELECT - 37 AS col1, COUNT( * ) AS col2 FROM tab1
----
-37
3

skipif mysql # not compatible
query II rowsort label-7256
SELECT - 37 AS col1, COUNT ( * ) AS col2 FROM tab1
----
-37
3

query I rowsort
SELECT ALL - 27 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query II rowsort
SELECT + 85 AS col1, col0 * + + ( col0 ) + - + col2 FROM tab2 AS cor0
----
85
2093
85
4056
85
5567

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT + - COUNT( + + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT + - COUNT ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0, + col0 col2 FROM tab0 cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + + col2 * - + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 35 * 15 col1 FROM tab1 AS cor0
----
-525
-525
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT ALL - - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col0 * col2 * - + col2 * col1 + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 * 42, - 77 col0 FROM tab2
----
-3066
-77
-3066
-77
-3066
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 * + + col2 * + col2 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT 68 FROM tab1 WHERE col2 = - col1 + + - 70
----

query I rowsort
SELECT ALL - col1 * 52 * - 74 FROM tab0
----
311688
3848
80808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT DISTINCT - - COUNT( * ) + + + MAX( - - ( + + 46 ) ) * 95 AS col2 FROM tab0 AS cor0 WHERE - CAST( + 54 AS SIGNED ) * 33 IS NOT NULL
----
4373

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - - COUNT ( * ) + + + MAX ( - - ( + + 46 ) ) * 95 AS col2 FROM tab0 AS cor0 WHERE - CAST ( + 54 AS INTEGER ) * 33 IS NOT NULL
----
4373

query I rowsort
SELECT - col2 + + col1 * + + col1 * col1 AS col2 FROM tab0 AS cor0
----
-98
531394
9251

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7272
SELECT DISTINCT COUNT( * ) DIV SUM( DISTINCT col1 ) * - + 54 + + - 26, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-26
-3

skipif mysql # not compatible
query II rowsort label-7272
SELECT DISTINCT COUNT ( * ) / SUM ( DISTINCT col1 ) * - + 54 + + - 26, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-26
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT + 73 * - MIN( + 84 ) FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT + 73 * - MIN ( + 84 ) FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT 61 + - + COUNT( * ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT 61 + - + COUNT ( * ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT + ( - + MIN( ALL + - col1 ) ) * + + COUNT( * ) * 81 FROM tab1
----
11421

skipif mysql # not compatible
query I rowsort label-7275
SELECT + ( - + MIN ( ALL + - col1 ) ) * + + COUNT ( * ) * 81 FROM tab1
----
11421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT - + ( + CAST( + 86 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

skipif mysql # not compatible
query I rowsort label-7276
SELECT - + ( + CAST ( + 86 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7277
SELECT DISTINCT + CAST( - AVG ( 56 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + CAST ( - AVG ( 56 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT DISTINCT + + col0 * - - col2 + - + col0 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT + col1 - - + ( - 13 ) + - + 23 DIV + 29 FROM tab2 AS cor0
----
38
54
64

skipif mysql # not compatible
query I rowsort label-7279
SELECT + col1 - - + ( - 13 ) + - + 23 / + 29 FROM tab2 AS cor0
----
38
54
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT ( - ( - + col1 ) ) - + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT ( - ( - + col1 ) ) - + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + col2 AS col1 FROM tab2 cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT - col0 + - - col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 35 > NULL
----

query I rowsort
SELECT + col0 - - + ( - - 67 ) FROM tab1 AS cor0
----
118
152
158

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 BETWEEN - + col2 - - - 29 AND - 66 - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7286
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) - 26 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7286
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) - 26 * - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL + 20 + - + col0, col1 * - 53 * - col0 * - 65 AS col1 FROM tab2
----
-26
-8081970
-44
-16976960
-55
-17311125

query I rowsort
SELECT col1 + - 30 FROM tab2
----
21
37
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + col0 * + col2 * col1 AS col1 FROM tab1
----
2131375
26466076
3495744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT + + SUM( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7292
SELECT + + SUM ( ALL + + col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7293
SELECT DISTINCT - col2 DIV - col2 + + - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT - col2 / - col2 + + - col0 FROM tab2 AS cor0
----
-45
-63
-74

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT COUNT( * ) DIV - 45 + + ( - - 7 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
7

skipif mysql # not compatible
query I rowsort label-7295
SELECT COUNT ( * ) / - 45 + + ( - - 7 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
7

query I rowsort
SELECT DISTINCT col2 + 8 AS col0 FROM tab1 AS cor0
----
104
67
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / - col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( + 44 ) * 25 + 77 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 74 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
74
74
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( - col2, - col2 )
----

query I rowsort
SELECT + - 25 * + + 19 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT COUNT( * ) + 12 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7302
SELECT COUNT ( * ) + 12 FROM tab2
----
15

query I rowsort
SELECT ALL 72 * 55 FROM tab1
----
3960
3960
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT SUM( - ( col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT SUM ( - ( col1 ) ) FROM tab1
----
-66

query II rowsort
SELECT DISTINCT col2, 36 + - + col1 FROM tab0
----
10
15
47
-45
99
35

query II rowsort
SELECT DISTINCT 70 * col0 AS col2, - col0 AS col1 FROM tab0
----
1050
-15
6090
-87
6790
-97

query I rowsort
SELECT ALL col2 * - 8 FROM tab2
----
-184
-320
-464

query I rowsort
SELECT - 58 * - col1 * - + col2 FROM tab2
----
-178640
-225388
-68034

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL MIN( col2 ) * - COUNT( * ) AS col0 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL MIN ( col2 ) * - COUNT ( * ) AS col0 FROM tab2
----
-69

query I rowsort
SELECT ALL col0 * + 78 + 16 AS col0 FROM tab1
----
3994
6646
7114

query II rowsort
SELECT col1, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL + 76 + col1 AS col0 FROM tab0 AS cor0
----
157
77
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT DISTINCT - + col2 * - 27 * - col2 + col0 DIV - 48 FROM tab0 AS cor0
----
-264629
-2701
-59643

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT - + col2 * - 27 * - col2 + col0 / - 48 FROM tab0 AS cor0
----
-264629
-2701
-59643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT DISTINCT - ( + COUNT( * ) ) DIV - 85 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT - ( + COUNT ( * ) ) / - 85 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
0

query I rowsort
SELECT DISTINCT col0 - + 25 + + col1 AS col0 FROM tab2
----
116
117
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - - col2 + - 59 FROM tab2 AS cor0
----
-1
-19
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT col1 DIV - + ( + 99 ) + col1 - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-1134
-1806
-96

skipif mysql # not compatible
query I rowsort label-7318
SELECT col1 / - + ( + 99 ) + col1 - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7319
SELECT - - CAST( - col1 AS SIGNED ) AS col2, col0 * - col2 * - col2 - + 34 * + 64 col2 FROM tab1 AS cor0
----
-14
467840
-47
418608
-5
293709

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7319
SELECT - - CAST ( - col1 AS INTEGER ) AS col2, col0 * - col2 * - col2 - + 34 * + 64 col2 FROM tab1 AS cor0
----
-14
467840
-47
418608
-5
293709

query II rowsort
SELECT + ( col2 ), + 99 + + col2 - + + col1 FROM tab0 AS cor0
----
10
88
47
65
99
197

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT 13 DIV - + col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT 13 / - + col2 FROM tab0
----
-1
0
0

query II rowsort
SELECT col0, 96 AS col1 FROM tab0
----
15
96
87
96
97
96

query I rowsort
SELECT 23 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7324
SELECT ALL 77 AS col2, CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
77
NULL
77
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7324
SELECT ALL 77 AS col2, CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
77
NULL
77
NULL
77
NULL

query I rowsort
SELECT DISTINCT - 24 FROM tab2 AS cor0 WHERE NOT + col2 = - col1 * + + col1 + col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT - COUNT( ALL 64 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7326
SELECT - COUNT ( ALL 64 ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT COUNT( * ) * + ( + 87 ) + MAX( DISTINCT - col2 ) AS col2 FROM tab2
----
238

skipif mysql # not compatible
query I rowsort label-7327
SELECT COUNT ( * ) * + ( + 87 ) + MAX ( DISTINCT - col2 ) AS col2 FROM tab2
----
238

query I rowsort
SELECT DISTINCT - col1 * 51 - col2 AS col1 FROM tab0
----
-1081
-150
-4178

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( - 58 + col2 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT 79 AS col0 FROM tab0 WHERE NOT - col1 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT col1 DIV col0 + - col2 * 69 col1 FROM tab2
----
-1586
-2759
-4002

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7331
SELECT col1 / col0 + - col2 * 69 col1 FROM tab2
----
-1586
-2759
-4002

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( + col0 ) AND col2 + - ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT ALL col0 DIV col2 + + col1 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL col0 / col2 + + col1 FROM tab1
----
14
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL MAX( DISTINCT - 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL MAX ( DISTINCT - 0 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 >= - col2 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 27 < - 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 2 col0 FROM tab1
----
53
87
93

query III rowsort
SELECT * FROM tab0 WHERE - 35 NOT BETWEEN 74 AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 18 * + col1 + - 14 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * 0 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT CAST( + 74 AS SIGNED ) FROM tab2 WHERE NULL IN ( col1 * ( ( + col0 ) ) + col1 )
----

skipif mysql # not compatible
query I rowsort label-7341
SELECT CAST ( + 74 AS INTEGER ) FROM tab2 WHERE NULL IN ( col1 * ( ( + col0 ) ) + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT + CAST( NULL AS SIGNED ) / + 63 + 85 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT + CAST ( NULL AS INTEGER ) / + 63 + 85 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL + 9 * - SUM( DISTINCT - 40 ) AS col2 FROM tab2
----
360

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + 9 * - SUM ( DISTINCT - 40 ) AS col2 FROM tab2
----
360

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE + 3 / - col2 IS NULL
----

query I rowsort
SELECT 41 * - 62 FROM tab0
----
-2542
-2542
-2542

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( ( - col1 ) ) IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + col0 + + 23 AS col1 FROM tab0
----
110
120
38

query I rowsort
SELECT DISTINCT col0 + + 84 * + 62 AS col2 FROM tab0
----
5223
5295
5305

query I rowsort
SELECT col1 / + 2 + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 + col1 col2 FROM tab1 AS cor0
----
-29
-38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL + COUNT( * ) + + 57 / - AVG ( 93 * + col0 ) FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL + COUNT ( * ) + + 57 / - AVG ( 93 * + col0 ) FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT col1 DIV col2 + 32 * - col0 AS col1 FROM tab1 AS cor0
----
-1632
-2720
-2912

skipif mysql # not compatible
query I rowsort label-7353
SELECT col1 / col2 + 32 * - col0 AS col1 FROM tab1 AS cor0
----
-1632
-2720
-2912

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 25 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - col2 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT + 34 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT + 34 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-7357
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7358
SELECT ALL col0 * col1 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL col0 * col1 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN ( ( + col1 ) ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN NULL AND + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT 63 * COUNT( DISTINCT - 75 * col2 ) - - COUNT( * ) AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-7361
SELECT 63 * COUNT ( DISTINCT - 75 * col2 ) - - COUNT ( * ) AS col2 FROM tab1
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-7362
SELECT - col1 - + 10 DIV 18 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7362
SELECT - col1 - + 10 / 18 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7363
SELECT 30 * COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT 30 * COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 94 * + col1 AS col2 FROM tab2 AS cor0
----
4794
6298
7238

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7365
SELECT + 55 * - col0 AS col2 FROM tab0 cor0 WHERE NOT col0 + + CAST( NULL AS DECIMAL ) * + col0 <> - col0
----

skipif mysql # not compatible
query I rowsort label-7365
SELECT + 55 * - col0 AS col2 FROM tab0 cor0 WHERE NOT col0 + + CAST ( NULL AS REAL ) * + col0 <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7366
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST( NULL AS DECIMAL ) * - 53 + CAST( ( + 32 ) + + col1 AS SIGNED ) ) >= ( col0 / col1 )
----

skipif mysql # not compatible
query III rowsort label-7366
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS REAL ) * - 53 + CAST ( ( + 32 ) + + col1 AS INTEGER ) ) >= ( col0 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 69 BETWEEN ( 35 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN + 98 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL 74 * + + COUNT( DISTINCT - col2 ) FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL 74 * + + COUNT ( DISTINCT - col2 ) FROM tab1
----
222

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL OR NOT col2 * 54 <> + col0 + col0 * - col0
----

query I rowsort
SELECT + col2 * + 7 * + col1 FROM tab2 AS cor0
----
21560
27202
8211

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 + col2 ) BETWEEN ( ( - col0 ) * col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT - CAST( + + col1 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-7373
SELECT - CAST ( + + col1 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT 26 + - 43 FROM tab0 AS cor0 WHERE NOT ( - 54 ) <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT 69 + + 95 * - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 <> NULL
----
69

skipif mysql # not compatible
query I rowsort label-7375
SELECT 69 + + 95 * - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 <> NULL
----
69

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT 90 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 col2, col1 FROM tab1
----
7
14
7
47
7
5

query I rowsort
SELECT - 1 + 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT DISTINCT + col0 FROM tab2 WHERE + col1 * + col1 + + 95 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + col0 FROM tab2 WHERE + col1 * + col1 + + 95 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT 86 * 2 + - 14 AS col0 FROM tab2 AS cor0
----
158
158
158

query I rowsort
SELECT 74 + - + col2 FROM tab0 cor0
----
-25
27
64

query II rowsort
SELECT DISTINCT - col1, - 29 AS col2 FROM tab1 cor0
----
-14
-29
-47
-29
-5
-29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + - col2 * + ( - 53 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL - SUM( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - SUM ( DISTINCT col2 ) AS col0 FROM tab0 cor0
----
-156

query I rowsort
SELECT 58 + 19 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT DISTINCT - col1 + - + CAST( - ( - 71 ) AS SIGNED ) FROM tab2 AS cor0
----
-122
-138
-148

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT - col1 + - + CAST ( - ( - 71 ) AS INTEGER ) FROM tab2 AS cor0
----
-122
-138
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT 93 + CAST( - + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-6
46
83

skipif mysql # not compatible
query I rowsort label-7388
SELECT 93 + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-6
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL COUNT( * ) * COUNT( col2 ) * + COUNT( col1 - col0 / col0 ) + 35 AS col0 FROM tab2 cor0
----
62

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL COUNT ( * ) * COUNT ( col2 ) * + COUNT ( col1 - col0 / col0 ) + 35 AS col0 FROM tab2 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * + col1 + - col0 * col1 col1 FROM tab1 AS cor0
----
-1034
-80
252

query I rowsort
SELECT ALL - 17 * + + ( col2 ) * - col1 + col1 + col0 FROM tab1
----
22913
5105
54470

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ( 59 ) FROM tab0
----
59
59
59

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 * + col0 * - col1 - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL 49 * COUNT( * ) AS col1 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL 49 * COUNT ( * ) AS col1 FROM tab2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL - ( + col1 ) col0 FROM tab1 WHERE NOT col0 NOT BETWEEN CAST( NULL AS SIGNED ) * col0 + - 45 AND ( + col0 / 87 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7396
SELECT ALL - ( + col1 ) col0 FROM tab1 WHERE NOT col0 NOT BETWEEN CAST ( NULL AS INTEGER ) * col0 + - 45 AND ( + col0 / 87 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7397
SELECT CAST( NULL AS DECIMAL ) * MIN( col1 ) * - - 41 / + 65 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT CAST ( NULL AS REAL ) * MIN ( col1 ) * - - 41 / + 65 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT DISTINCT + AVG ( DISTINCT + - col1 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + AVG ( DISTINCT + - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE ( - col1 ) IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT - + col1 DIV col2 AS col2 FROM tab0 WHERE - + col2 IS NOT NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT - + col1 / col2 AS col2 FROM tab0 WHERE - + col2 IS NOT NULL
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7401
SELECT - - 9 + - CAST( + - COUNT( * ) AS SIGNED ) + + 47 * - 60 FROM tab2 AS cor0
----
-2808

skipif mysql # not compatible
query I rowsort label-7401
SELECT - - 9 + - CAST ( + - COUNT ( * ) AS INTEGER ) + + 47 * - 60 FROM tab2 AS cor0
----
-2808

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT - col2 + - col1 DIV 80 * ( + col2 ) * + col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7402
SELECT - col2 + - col1 / 80 * ( + col2 ) * + col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL + + 84 * - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
756

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL + + 84 * - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 87 col1 FROM tab0 WHERE + col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 40 col2 FROM tab1
----
-1880
-200
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( + 40 ) * - + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( + 40 ) * - + col0 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( 90 ) AS col0 FROM tab1 AS cor0
----
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + col1 + - col1 - 47 * - ( col0 + - col2 * col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 93 ) * col2 + 41 * col2 col0 FROM tab0 cor0
----
-2444
-5148
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT + - 28 * + CAST( NULL AS SIGNED ) * 30 * + ( col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + - 28 * + CAST ( NULL AS INTEGER ) * 30 * + ( col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT COUNT( * ) * - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7412
SELECT COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT MAX( + + col1 ) FROM tab2 AS cor0 WHERE NOT col0 * - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT MAX ( + + col1 ) FROM tab2 AS cor0 WHERE NOT col0 * - - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 * + col1 * 28 - - - 69 FROM tab0 AS cor0
----
-2785
-34089
-51225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT ALL - 44 + + - col2 * - col1 FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL - 44 + + - col2 * - col1 FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - - col0 * - - col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

query II rowsort
SELECT DISTINCT - 92 * + col1, col2 AS col1 FROM tab0
----
-1932
10
-7452
47
-92
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT DISTINCT 23 DIV - col2 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT 23 / - col2 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT - ( - 71 ) FROM tab1
----
71
71
71

query II rowsort
SELECT DISTINCT col2 AS col1, 49 AS col2 FROM tab0
----
10
49
47
49
99
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col0 + 52 AS col0 FROM tab2
----
46
98
64
116
75
127

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col1 NOT BETWEEN col2 - + col0 * - + 41 AND - ( + ( - col0 ) ) * col2
----
91
47
68

query I rowsort
SELECT - col1 + + col1 - - 10 AS col0 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + 90 <> + - 7 * col0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 WHERE NOT ( + 98 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + + MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7427
SELECT + + MAX ( + col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - ( + - col1 ) + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE + col2 * col0 * - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7430
SELECT MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL - col2 + - col2, + col1 AS col2 FROM tab0 AS cor0
----
-198
1
-20
21
-94
81

query I rowsort
SELECT - + 71 - - col1 AS col0 FROM tab0 AS cor0
----
-50
-70
10

query I rowsort
SELECT ALL - col0 + col0 * 86 AS col0 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL - col1 * + - col1 AS col2 FROM tab0 cor0 WHERE ( ( NULL ) = CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL - col1 * + - col1 AS col2 FROM tab0 cor0 WHERE ( ( NULL ) = CAST ( - - col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IN ( - + CAST( col0 AS SIGNED ) )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IN ( - + CAST ( col0 AS INTEGER ) )
----
-51
-67
-77

query I rowsort
SELECT - 39 * - col0 + - col2 FROM tab1
----
1893
3256
3481

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 <> - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL + CAST( - col1 AS SIGNED ) col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7438
SELECT ALL + CAST ( - col1 AS INTEGER ) col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + MAX( ALL + col0 ) / SUM( + ( - + 61 ) ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT + MAX ( ALL + col0 ) / SUM ( + ( - + 61 ) ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + + col1 * - - 17 - + col0 + + - col2 FROM tab2 AS cor0
----
1006
1205
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT DISTINCT - + CAST( - 87 AS SIGNED ) col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7441
SELECT DISTINCT - + CAST ( - 87 AS INTEGER ) col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT - 96 AS col2 FROM tab1 cor0
----
-96
-96
-96

query I rowsort
SELECT - col0 - + col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT DISTINCT - MIN( ALL + 33 ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-33

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT - MIN ( ALL + 33 ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-33

query II rowsort
SELECT ALL + 37 * - col0 AS col2, col1 * - col2 * + + col2 FROM tab2
----
-1702
-26979
-2368
-123200
-2775
-225388

query I rowsort
SELECT - 83 * - col1 + + col0 FROM tab1 AS cor0
----
1213
3992
500

query I rowsort
SELECT ALL + + col1 * 45 * col1 AS col0 FROM tab2 AS cor0
----
117045
202005
266805

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 )
----

query II rowsort
SELECT ALL 64 * + col2 AS col0, 60 + - - col0 AS col2 FROM tab0 AS cor0
----
3008
75
6336
157
640
147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 7 ) > + col1
----
51
14
96
91
47
68

query II rowsort
SELECT DISTINCT - + col0 * + 21, + col2 AS col2 FROM tab1 AS cor0
----
-1071
96
-1785
59
-1911
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT DISTINCT - COUNT( * ) * - 75, + COUNT( * ) col2 FROM tab0 cor0
----
225
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7452
SELECT DISTINCT - COUNT ( * ) * - 75, + COUNT ( * ) col2 FROM tab0 cor0
----
225
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - SUM( - + 51 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-7453
SELECT - SUM ( - + 51 ) FROM tab0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT DISTINCT + 48 DIV - col2 * 90 * - col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT + 48 / - col2 * 90 * - col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + col1 < NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - col0 * + + col1 + - col2 * + + col2 IN ( ( + + col0 ) ) AND NOT 4 = NULL
----

query I rowsort
SELECT 74 * - - col0 * col2 * col0 AS col2 FROM tab0
----
5601060
68930334
782550

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT SUM( + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT SUM ( + - col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - MIN( ALL + 77 ) AS col2 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-7459
SELECT - MIN ( ALL + 77 ) AS col2 FROM tab0
----
-77

query I rowsort
SELECT DISTINCT + 41 * col1 * 52 AS col1 FROM tab1
----
100204
10660
29848

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT ALL col1 * 0 DIV + ( + col0 ) DIV - col0 + + + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL col1 * 0 / + ( + col0 ) / - col0 + + + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + 33 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 + col2
----

query I rowsort
SELECT ALL + 76 * - col1 AS col2 FROM tab0 AS cor0
----
-1596
-6156
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7464
SELECT + + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT + + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT - - CAST( NULL AS SIGNED ) + - col1 + + + col2 - - col0 * 45 * - ( + col0 + col1 ) * - 71 FROM tab1 AS cor0 WHERE NOT - 83 * + - 0 / 9 * 65 * 10 < - + 19
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT - - CAST ( NULL AS INTEGER ) + - col1 + + + col2 - - col0 * 45 * - ( + col0 + col1 ) * - 71 FROM tab1 AS cor0 WHERE NOT - 83 * + - 0 / 9 * 65 * 10 < - + 19
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 68 + + 61 + + + col1 FROM tab2 AS cor0
----
44
60
70

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN + 36 + 25 AND + col1 / 45
----

query II rowsort
SELECT ALL + + col2, - 39 AS col0 FROM tab0 AS cor0
----
10
-39
47
-39
99
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab2 cor0
----
91
91
91

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND col2 - col0 * 34
----

query II rowsort
SELECT ALL - 36, col0 / + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL - - SUM( ALL - 3 ) * + - SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
594

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - - SUM ( ALL - 3 ) * + - SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
594

query I rowsort
SELECT ALL col2 + + + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 + + 26 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT + - CAST( + 25 AS SIGNED ) col1 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7475
SELECT + - CAST ( + 25 AS INTEGER ) col1 FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE - 88 NOT IN ( + + col1 / + - 75 + + col0, col2 + + CAST( + - col1 AS SIGNED ) * + + col0 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7476
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE - 88 NOT IN ( + + col1 / + - 75 + + col0, col2 + + CAST ( + - col1 AS INTEGER ) * + + col0 )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 * - col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 15 + col0, + col1 AS col2 FROM tab0
----
102
21
112
1
30
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( col0 ) col1, col0 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT + SUM( ALL - col1 ) col0 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7480
SELECT + SUM ( ALL - col1 ) col0 FROM tab0
----
-103

query I rowsort
SELECT ALL col1 - 34 - - - col1 * - col1 FROM tab0
----
-32
428
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + COUNT( * ) + - 27 AS col2 FROM tab1, tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7482
SELECT + COUNT ( * ) + - 27 AS col2 FROM tab1, tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT COUNT( * ) * - 27, 73 AS col1 FROM tab0
----
-81
73

skipif mysql # not compatible
query II rowsort label-7483
SELECT COUNT ( * ) * - 27, 73 AS col1 FROM tab0
----
-81
73

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + - 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7485
SELECT * FROM tab0 WHERE NULL <= CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7485
SELECT * FROM tab0 WHERE NULL <= CAST ( + + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + - ( - COUNT( * ) ) - - ( + COUNT( * ) ) + SUM( - col1 ) AS col2 FROM tab1 AS cor0 WHERE + 66 BETWEEN - col0 AND - col0 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7486
SELECT + - ( - COUNT ( * ) ) - - ( + COUNT ( * ) ) + SUM ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE + 66 BETWEEN - col0 AND - col0 + 41
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col2 + + - 52 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, + 8 )
----

query I rowsort
SELECT + 52 * 43 FROM tab2 cor0
----
2236
2236
2236

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - 84 + + + col1 ) BETWEEN ( NULL ) AND 8 )
----

query I rowsort
SELECT - - 60 * col0 AS col0 FROM tab0 cor0
----
5220
5820
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7492
SELECT ALL CAST( 52 AS SIGNED ) * - - col2 + + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1405
-1473
-3849

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL CAST ( 52 AS INTEGER ) * - - col2 + + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1405
-1473
-3849

query II rowsort
SELECT - col1 AS col2, - 7 FROM tab2 AS cor0
----
-51
-7
-67
-7
-77
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT DISTINCT ( - col1 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT ( - col1 ) / + col0 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( - 98 * - 9 - - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL + MAX( ALL + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + MAX ( ALL + + col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT + col1 + - + col1 col1 FROM tab1 WHERE NOT NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7497
SELECT + col1 + - + col1 col1 FROM tab1 WHERE NOT NULL < + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( + col2 ) / - - 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7499
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - CAST( + - 27 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7499
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - CAST ( + - 27 AS INTEGER ) + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + 99 * - - col0 FROM tab2
----
104742
253440
430650

onlyif mysql # DIV for integer division: 
query II rowsort label-7501
SELECT col0 DIV col1, - col1 AS col2 FROM tab0
----
0
-81
4
-21
97
-1

skipif mysql # not compatible
query II rowsort label-7501
SELECT col0 / col1, - col1 AS col2 FROM tab0
----
0
-81
4
-21
97
-1

query I rowsort
SELECT DISTINCT + 81 + - col0 * - 95 AS col0 FROM tab1
----
4926
8156
8726

query I rowsort
SELECT ALL - 69 + + - col1 AS col0 FROM tab1 AS cor0
----
-116
-74
-83

query I rowsort
SELECT DISTINCT - AVG ( ALL - col1 ) AS col2 FROM tab2 AS cor0 WHERE - col1 + + col2 <> NULL
----
NULL

query I rowsort
SELECT - 29 * - - 5 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c79967bbfe31387e6d92241fdf1b18ff

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT + + COUNT( * ) * - 58 AS col0 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-7507
SELECT + + COUNT ( * ) * - 58 AS col0 FROM tab1 AS cor0
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 - + 79 col0 FROM tab1 AS cor0
----
-136
-136
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT CAST( NULL AS SIGNED ) / col2 + - 52 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT CAST ( NULL AS INTEGER ) / col2 + - 52 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 17 + - 58 FROM tab2
----
-41
-41
-41

query II rowsort
SELECT ALL + + ( - 88 ) / + col0 / col0 * + col0 + - + 26 - 73, - col1 AS col1 FROM tab0 WHERE NULL BETWEEN + 54 AND + col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - + col1 + col2 IS NULL
----

query I rowsort
SELECT ALL - 85 * col2 - - - 51 AS col0 FROM tab2
----
-2006
-3451
-4981

query I rowsort
SELECT - 21 + - 82 FROM tab2
----
-103
-103
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7515
SELECT ALL col0 col1, CAST( + ( - col0 ) AS SIGNED ) + - col0 FROM tab1
----
51
-102
85
-170
91
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7515
SELECT ALL col0 col1, CAST ( + ( - col0 ) AS INTEGER ) + - col0 FROM tab1
----
51
-102
85
-170
91
-182

query II rowsort
SELECT ALL col0 AS col1, 80 AS col0 FROM tab1
----
51
80
85
80
91
80

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 88 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 70 col2, + col2 AS col2 FROM tab0 AS cor0
----
70
10
70
47
70
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT DISTINCT + + col1 DIV 27 * - 77 FROM tab0 AS cor0
----
-231
0

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + + col1 / 27 * - 77 FROM tab0 AS cor0
----
-231
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - ( - COUNT( * ) ) * + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7521
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - 24 * SUM( ALL - ( + 85 ) ) * - ( + 61 ) FROM tab1 AS cor0
----
-373320

skipif mysql # not compatible
query I rowsort label-7522
SELECT - 24 * SUM ( ALL - ( + 85 ) ) * - ( + 61 ) FROM tab1 AS cor0
----
-373320

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL 13 AS col0 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT - col0 * - - col0 + - col0 AS col1 FROM tab0
----
-240
-7656
-9506

query II rowsort
SELECT + ( + 24 ) + - 39 - + - 72, col0 AS col0 FROM tab2
----
57
46
57
64
57
75

query I rowsort
SELECT col2 + col1 * 26 * - - 14 + col1 FROM tab0
----
29612
464
7675

query II rowsort
SELECT col2 + - 12 * - col1, + 86 * col2 AS col1 FROM tab0
----
1019
4042
111
8514
262
860

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - 42 ) < 74
----

query I rowsort
SELECT ALL col1 * - 22 AS col0 FROM tab1
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL + SUM( ALL col2 ) * - + COUNT( * ) AS col2 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + SUM ( ALL col2 ) * - + COUNT ( * ) AS col2 FROM tab1
----
-669

query I rowsort
SELECT ALL - + col1 + + col2 * + ( - 10 ) FROM tab2 AS cor0
----
-281
-477
-647

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7534
SELECT DISTINCT + col0 col0 FROM tab0 AS cor0 WHERE + CAST( + - col1 AS DECIMAL ) - - col1 >= col1 + + col0 * + 46 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7534
SELECT DISTINCT + col0 col0 FROM tab0 AS cor0 WHERE + CAST ( + - col1 AS REAL ) - - col1 >= col1 + + col0 * + 46 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 19 + + col0 + col0 FROM tab2 AS cor0
----
109
131
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT SUM( DISTINCT - + col1 ) * + 76 FROM tab1
----
-5016

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT SUM ( DISTINCT - + col1 ) * + 76 FROM tab1
----
-5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7537
SELECT + - MAX( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT + - MAX ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 16 + + - col0 + - col1 FROM tab0 AS cor0
----
-80
-82
-92

query II rowsort
SELECT DISTINCT col0 AS col0, 53 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7540
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) + + 28 * - 64 AS col2, COUNT( + - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7540
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) + + 28 * - 64 AS col2, COUNT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT DISTINCT col2 + - 27 + + - col2 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL + COUNT( ALL - 60 ) col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND - - col0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7542
SELECT ALL + COUNT ( ALL - 60 ) col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col2 AND - - col0
----
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( 8 ) <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT DISTINCT COUNT( * ) DIV - - ( + 29 ) AS col2 FROM tab0 WHERE NOT + - col2 * + col0 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT COUNT ( * ) / - - ( + 29 ) AS col2 FROM tab0 WHERE NOT + - col2 * + col0 >= ( NULL )
----
0

query I rowsort
SELECT ALL + 20 + + col0 AS col1 FROM tab2
----
66
84
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL + 14 - - ( MAX( ALL + col1 ) ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL + 14 - - ( MAX ( ALL + col1 ) ) FROM tab1
----
61

query I rowsort
SELECT DISTINCT 46 * + 18 * - col0 FROM tab2
----
-38088
-52992
-62100

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT DISTINCT + col2 DIV - - col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT + col2 / - - col0 FROM tab1
----
0
1

query I rowsort
SELECT - + 91 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT MIN( ALL + 58 ) AS col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7550
SELECT MIN ( ALL + 58 ) AS col0 FROM tab1 AS cor0
----
58

query II rowsort
SELECT DISTINCT col0, col1 * - col1 AS col2 FROM tab2 AS cor0
----
46
-2601
64
-5929
75
-4489

query II rowsort
SELECT + col0, - col2 * col0 * + 87 FROM tab2 AS cor0
----
46
-92046
64
-222720
75
-378450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col1 > NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * 64 + 15 IS NOT NULL
----

query I rowsort
SELECT - 40 * + - AVG ( DISTINCT - 20 ) AS col1 FROM tab2 WHERE NOT col1 - + - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT ALL + - COUNT( * ) DIV - 70 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + - COUNT ( * ) / - 70 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0

query I rowsort
SELECT DISTINCT + col2 + + 20 AS col2 FROM tab2 AS cor0
----
43
60
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT - ( MAX( ALL + 27 ) ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - ( MAX ( ALL + 27 ) ) FROM tab1 AS cor0
----
-27

query II rowsort
SELECT + col2 AS col2, + ( + col2 ) FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT - 24, + col2 AS col1 FROM tab2 AS cor0
----
-24
23
-24
40
-24
58

query I rowsort
SELECT DISTINCT - + 45 + + col1 * - col0 FROM tab2 AS cor0
----
-2391
-4973
-5070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + AVG ( - - 26 ) AS col2 FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + + col0 col2 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT + ( - col1 ) + - + 51 AS col2 FROM tab1
----
-56
-65
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT DISTINCT + + col0 + - - col1 DIV 70 AS col2 FROM tab0 cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + + col0 + - - col1 / 70 AS col2 FROM tab0 cor0
----
16
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT - + CAST( NULL AS SIGNED ) + - - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT - + CAST ( NULL AS INTEGER ) + - - 35 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT DISTINCT + + 17 DIV - 20 + - 5 AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT + + 17 / - 20 + - 5 AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL + COUNT( * ) + - 27 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL + COUNT ( * ) + - 27 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 84 + col0 < NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 81 - col0 AS col0 FROM tab0
----
-168
-178
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT MIN( DISTINCT ( - - 76 ) ) - + + 31 AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7573
SELECT MIN ( DISTINCT ( - - 76 ) ) - + + 31 AS col0 FROM tab2 AS cor0
----
45

query I rowsort
SELECT - + col2 * 0 - col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT - CAST( NULL AS SIGNED ) / 90 / + 41 + 43 * - col1 * - + 26 + ( + + col0 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT - CAST ( NULL AS INTEGER ) / 90 / + 41 + 43 * - col1 * - + 26 + ( + + col0 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 61 ) AS col0 FROM tab0 AS cor0
----
61

query I rowsort
SELECT col2 + - col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT 78 * - + 20 * - COUNT( * ) AS col1 FROM tab2 cor0
----
4680

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT 78 * - + 20 * - COUNT ( * ) AS col1 FROM tab2 cor0
----
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * + - ( - 40 ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cbe71c138ae0b68e52fe3134cddf6fef

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT ALL 28 DIV col0 DIV - col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL 28 / col0 / - col0 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + 92 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4232
5888
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - + COUNT( ALL + + 4 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7583
SELECT - + COUNT ( ALL + + 4 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 * - col0 AND + 48 + 55
----

query II rowsort
SELECT + col1 AS col2, 47 AS col2 FROM tab2
----
51
47
67
47
77
47

query I rowsort
SELECT - ( - - ( 88 ) ) FROM tab1
----
-88
-88
-88

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT 51 * + - 44 > NULL
----

query I rowsort
SELECT 6 AS col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT + 70 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 52
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 3 <= NULL
----

query I rowsort
SELECT + col2 - - col0 * + col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 + + col1, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col2 FROM tab0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
-88
-88
-88

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT - 94 * + ( - + COUNT( * ) ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-7597
SELECT - 94 * + ( - + COUNT ( * ) ) FROM tab0
----
282

query I rowsort
SELECT DISTINCT - + ( 12 ) / + - col2 / - + col2 FROM tab0 AS cor0 WHERE - col0 * - + col1 IS NULL
----

query II rowsort
SELECT ALL - 48 + col2 AS col1, + 24 FROM tab1
----
11
24
20
24
48
24

query III rowsort
SELECT * FROM tab0 WHERE + - 94 - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT 23 - - MIN( DISTINCT - 47 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-24

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT 23 - - MIN ( DISTINCT - 47 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-24

query I rowsort
SELECT + ( - 34 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 22
----

query I rowsort
SELECT ALL - col2 * col2 + 38 FROM tab0 AS cor0
----
-2171
-62
-9763

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT - COUNT( DISTINCT + + 59 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7605
SELECT - COUNT ( DISTINCT + + 59 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT - + CAST( + - ( - - col1 ) AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-7606
SELECT - + CAST ( + - ( - - col1 ) AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7608
SELECT DISTINCT + COUNT( * ) DIV - - 20 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT + COUNT ( * ) / - - 20 AS col0 FROM tab2
----
0

query I rowsort
SELECT + 19 * 72 FROM tab0
----
1368
1368
1368

query II rowsort
SELECT + 74 AS col2, - col0 * col2 AS col1 FROM tab2
----
74
-1058
74
-2560
74
-4350

onlyif mysql # DIV for integer division: 
query II rowsort label-7611
SELECT ALL col1, + ( - + 17 ) DIV col0 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL col1, + ( - + 17 ) / col0 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + 35 <> - 30
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + + ( - col1 ) + ( ( col1 ) )
----

query I rowsort
SELECT ALL col0 * - - 57 FROM tab0 AS cor0
----
4959
5529
855

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - COUNT( * ) FROM tab0 WHERE col2 BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-7615
SELECT - COUNT ( * ) FROM tab0 WHERE col2 BETWEEN NULL AND + col1
----
0

query II rowsort
SELECT - ( + - col0 ) AS col0, + ( + col1 ) FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + 66 + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-2
-30
7

query I rowsort
SELECT - ( - col0 ) * - + col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT 88 FROM tab0 AS cor0 WHERE NULL IS NULL
----
88
88
88

query II rowsort
SELECT DISTINCT + + col2 + + - 93 AS col1, 82 + + - col1 FROM tab0 AS cor0
----
-46
1
-83
61
6
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + 26 ) / + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col2 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL + col1 + + - 15 + + 15 * + ( col1 ) FROM tab1
----
209
65
737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + 28 + + 16 * col0 col2 FROM tab2
----
1105
657
919

query I rowsort
SELECT 17 + - - col1 FROM tab0
----
18
38
98

onlyif mysql # aggregate syntax: 
query III rowsort label-7626
SELECT DISTINCT - COUNT( * ), + ( + 95 ) AS col1, + - COUNT( * ) col0 FROM tab0 AS cor0
----
-3
95
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7626
SELECT DISTINCT - COUNT ( * ), + ( + 95 ) AS col1, + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
95
-3

query I rowsort
SELECT 40 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 + 68 AS col0 FROM tab0 AS cor0
----
149
69
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT ALL CAST( NULL AS SIGNED ) - + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL CAST ( NULL AS INTEGER ) - + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 * + 78 * col2 + + col2, - 43 * - col1 + - - 1 AS col1 FROM tab2
----
240280
3312
303166
2882
91517
2194

query I rowsort
SELECT + + col0 * + - col2 * 43 FROM tab1 AS cor0
----
-210528
-215645
-266084

query I rowsort
SELECT + 53 * + - col2 + - - 87 FROM tab0 AS cor0
----
-2404
-443
-5160

query II rowsort
SELECT + col0, + 74 * - - col1 FROM tab2 AS cor0
----
46
3774
64
5698
75
4958

query II rowsort
SELECT DISTINCT - 6 AS col0, 59 AS col2 FROM tab0 AS cor0
----
-6
59

query I rowsort
SELECT - - 27 * - + 3 AS col0 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT COUNT( - col2 ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT COUNT ( - col2 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 19, col2 col1 FROM tab1 AS cor0
----
-19
59
-19
68
-19
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( ALL + - ( col2 ) ) + 58 + + - ( + SUM( ALL - col2 ) ) FROM tab0 AS cor0
----
-3
217

skipif mysql # not compatible
query II rowsort label-7638
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( ALL + - ( col2 ) ) + 58 + + - ( + SUM ( ALL - col2 ) ) FROM tab0 AS cor0
----
-3
217

query I rowsort
SELECT ALL - 61 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7640
SELECT * FROM tab0 WHERE NOT NULL > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7640
SELECT * FROM tab0 WHERE NOT NULL > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( - - 70 ) AS col2 FROM tab1
----
70
70
70

query II rowsort
SELECT DISTINCT + col2 * + col1, 10 AS col2 FROM tab2
----
1173
10
3080
10
3886
10

query I rowsort
SELECT 35 + + - 57 AS col1 FROM tab2 AS cor0 WHERE NOT 35 IS NULL
----
-22
-22
-22

query I rowsort
SELECT ALL + 20 + col0 AS col2 FROM tab2 AS cor0
----
66
84
95

query I rowsort
SELECT ALL - col0 * + 17 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab0 WHERE NOT + 45 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 48 * - col2 FROM tab0 AS cor0
----
2256
4752
480

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - col2 * + - col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7649
SELECT - CAST( col0 AS SIGNED ) + + + 7 + col0 DIV 90 FROM tab0 AS cor0
----
-8
-80
-89

skipif mysql # not compatible
query I rowsort label-7649
SELECT - CAST ( col0 AS INTEGER ) + + + 7 + col0 / 90 FROM tab0 AS cor0
----
-8
-80
-89

query I rowsort
SELECT DISTINCT 34 + ( + col2 ) FROM tab1 AS cor0
----
102
130
93

query I rowsort
SELECT + - col2 + - 98 AS col2 FROM tab0 cor0
----
-108
-145
-197

query I rowsort
SELECT ALL 10 AS col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7653
SELECT - ( COUNT( * ) ) AS col2, - ( + COUNT( * ) ) AS col1 FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-7653
SELECT - ( COUNT ( * ) ) AS col2, - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-3
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7654
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + + - col0 AS col0, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7654
SELECT DISTINCT - + CAST ( NULL AS REAL ) + + - col0 AS col0, - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT ALL col1 DIV + ( - col0 ) col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7655
SELECT ALL col1 / + ( - col0 ) col2 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT + col2 - - 68 * + col2 AS col2 FROM tab0
----
3243
6831
690

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7657
SELECT * FROM tab1 WHERE - + 63 * + - CAST( NULL AS SIGNED ) + 9 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7657
SELECT * FROM tab1 WHERE - + 63 * + - CAST ( NULL AS INTEGER ) + 9 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7658
SELECT ALL + CAST( - 4 AS SIGNED ) - - col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL + CAST ( - 4 AS INTEGER ) - - col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 25 AS col1, + col2 * - 18 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7660
SELECT DISTINCT - + col1 DIV + 6, col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-13
-225
-3
-7569
0
-9409

skipif mysql # not compatible
query II rowsort label-7660
SELECT DISTINCT - + col1 / + 6, col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-13
-225
-3
-7569
0
-9409

query II rowsort
SELECT ALL col0 + - 40, + col1 * - col2 AS col1 FROM tab1 AS cor0
----
11
-1344
45
-295
51
-3196

query II rowsort
SELECT + col0 / + + col0 AS col1, - col1 AS col1 FROM tab0 WHERE NOT - + 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT + 5 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + 5 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT + - MAX( ALL 77 ) col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7664
SELECT DISTINCT + - MAX ( ALL 77 ) col2 FROM tab0 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT + - CAST( NULL AS SIGNED ) / - col1 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT + - CAST ( NULL AS INTEGER ) / - col1 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT - 15 * + 34 + + + ( - + COUNT( DISTINCT - 32 ) ) * - + 82 * + 51 FROM tab1 AS cor0
----
3672

skipif mysql # not compatible
query I rowsort label-7666
SELECT - 15 * + 34 + + + ( - + COUNT ( DISTINCT - 32 ) ) * - + 82 * + 51 FROM tab1 AS cor0
----
3672

onlyif mysql # aggregate syntax: 
query II rowsort label-7667
SELECT ALL - MIN( + 30 ) AS col0, - COUNT( * ) FROM tab1
----
-30
-3

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL - MIN ( + 30 ) AS col0, - COUNT ( * ) FROM tab1
----
-30
-3

onlyif mysql # DIV for integer division: 
query III rowsort label-7668
SELECT col0, col2 AS col0, - col2 DIV + + 35 FROM tab1
----
9 values hashing to 512955f81e102c2ae8bc0a9c97faa53d

skipif mysql # not compatible
query III rowsort label-7668
SELECT col0, col2 AS col0, - col2 / + + 35 FROM tab1
----
9 values hashing to 512955f81e102c2ae8bc0a9c97faa53d

query I rowsort
SELECT col1 * - 30 FROM tab1
----
-1410
-150
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 44 col2, - col2 FROM tab2
----
44
-23
44
-40
44
-58

query I rowsort
SELECT 25 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - 32 + + + col1 AS col2 FROM tab0 cor0
----
2805
3105
561

query II rowsort
SELECT + - col1 + - col2, - 60 + + ( + ( - col0 ) ) + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-117
-137
-125
-127
-74
-111

query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7675
SELECT ALL * FROM tab1 WHERE NOT + + col1 * 38 * + + ( 5 ) * + col1 NOT IN ( - col0, col0 * + - CAST( NULL AS DECIMAL ) * + 19, col2 * - col2 + col2 / + + 92 * - + col1 * + 86, - - col0 )
----

skipif mysql # not compatible
query III rowsort label-7675
SELECT ALL * FROM tab1 WHERE NOT + + col1 * 38 * + + ( 5 ) * + col1 NOT IN ( - col0, col0 * + - CAST ( NULL AS REAL ) * + 19, col2 * - col2 + col2 / + + 92 * - + col1 * + 86, - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7676
SELECT * FROM tab2 WHERE + + col2 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7676
SELECT * FROM tab2 WHERE + + col2 <> + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col2 * + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT DISTINCT + COUNT( * ) * 43, SUM( - + col0 ) * - - SUM( DISTINCT + - col2 ) AS col1 FROM tab0
----
129
31044

skipif mysql # not compatible
query II rowsort label-7678
SELECT DISTINCT + COUNT ( * ) * 43, SUM ( - + col0 ) * - - SUM ( DISTINCT + - col2 ) AS col1 FROM tab0
----
129
31044

query I rowsort
SELECT DISTINCT 83 * - col0 * + 70 * + col1 AS col0 FROM tab1 AS cor0
----
-2469250
-24849370
-4148340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - 88 col0, 31 AS col2 FROM tab2 cor0
----
-4048
31
-5632
31
-6600
31

query I rowsort
SELECT - ( + 86 ) - + - col0 AS col1 FROM tab2 AS cor0
----
-11
-22
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 13 * - col1 = + + 12
----

query I rowsort
SELECT - 73 - + col1 + - col1 FROM tab0 AS cor0
----
-115
-235
-75

query I rowsort
SELECT ALL col1 + - col1 * - col2 + + col1 FROM tab2 AS cor0
----
1275
3234
4020

query I rowsort
SELECT + 82 + - 40 + - col2 * - + 74 AS col1 FROM tab1 cor0
----
4408
5074
7146

query I rowsort
SELECT ALL - col1 * + + col0 + 19 * col1 FROM tab0
----
-1428
-78
324

query I rowsort
SELECT DISTINCT 69 - + 24 + 65 FROM tab2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT ALL + ( - 91 ) DIV 7 AS col2 FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + ( - 91 ) / 7 AS col2 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL BETWEEN + + col1 AND + col2
----

query I rowsort
SELECT DISTINCT 36 - - col1 FROM tab2
----
103
113
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL OR + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL OR + col1 IS NOT NULL
----
3

query I rowsort
SELECT - col2 * - col0 * + + col0 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 78 ) * + col0 - 34 + + 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT ALL + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 88 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query II rowsort
SELECT - ( + 40 ), ( col0 ) * - col2 AS col1 FROM tab1
----
-40
-4896
-40
-5015
-40
-6188

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 28 + + - 75
----

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7699
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + ( + CAST( + col2 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7699
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + ( + CAST ( + col2 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT - - ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT COUNT( ALL - + col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7701
SELECT DISTINCT COUNT ( ALL - + col0 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT MAX( + + 19 ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-7702
SELECT MAX ( + + 19 ) AS col1 FROM tab2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT + ( + col1 ) DIV + 51 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7703
SELECT + ( + col1 ) / + 51 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + MAX( - - 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7704
SELECT + MAX ( - - 45 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT ALL - MAX( DISTINCT - 27 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL - MAX ( DISTINCT - 27 ) FROM tab0
----
27

query I rowsort
SELECT DISTINCT ( + - 56 ) + - col0 + - col1 + col2 * + 72 * 19 AS col2 FROM tab1
----
131207
80566
92830

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT DISTINCT - 65 + COUNT( * ) FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT - 65 + COUNT ( * ) FROM tab1 cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7708
SELECT DISTINCT + col1 AS col2, CAST( - 60 AS SIGNED ) FROM tab1
----
14
-60
47
-60
5
-60

skipif mysql # not compatible
query II rowsort label-7708
SELECT DISTINCT + col1 AS col2, CAST ( - 60 AS INTEGER ) FROM tab1
----
14
-60
47
-60
5
-60

query I rowsort
SELECT - col1 * + - col0 + - col0 AS col0 FROM tab0
----
0
1200
1740

query I rowsort
SELECT ALL - - 39 FROM tab2 AS cor0 WHERE NOT NULL <= col1 + + col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

query II rowsort
SELECT DISTINCT 46 AS col0, col1 AS col0 FROM tab1 cor0
----
46
14
46
47
46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL ( + + 4 ) * + COUNT( * ) - + COUNT( * ) + 74 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL ( + + 4 ) * + COUNT ( * ) - + COUNT ( * ) + 74 FROM tab1 AS cor0
----
83

query I rowsort
SELECT DISTINCT 71 + + col0 + col2 AS col2 FROM tab0 AS cor0
----
133
168
267

query I rowsort
SELECT ALL + ( - col2 ) + - - col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 45 + + - col2 * - col1 * - + 25 + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 45 + + - col2 * - col1 * - + 25 + + col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 * + - col0 FROM tab1 WHERE NOT col1 >= + - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 NOT BETWEEN ( NULL ) AND - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 72 * - - col2 * + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 72 * - - col2 * + - col0 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL COUNT( * ) * + + 92 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL COUNT ( * ) * + + 92 FROM tab0 AS cor0
----
276

query I rowsort
SELECT - + 16 * + + col1 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT - col1 + - 67 FROM tab0 AS cor0
----
-148
-68
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT DISTINCT + 97 DIV - + COUNT( + 30 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT + 97 / - + COUNT ( + 30 ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT col1 * + 3 AS col0 FROM tab2 AS cor0
----
153
201
231

query II rowsort
SELECT DISTINCT + 37 AS col0, + col1 FROM tab1 AS cor0
----
37
14
37
47
37
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7731
SELECT CAST( - - COUNT( DISTINCT - col2 ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7731
SELECT CAST ( - - COUNT ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 13 col1 FROM tab2
----
598
832
975

query I rowsort
SELECT - 65 * - col1 FROM tab0
----
1365
5265
65

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) / col1 + + 12 < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7735
SELECT ALL * FROM tab1 WHERE NOT 69 NOT IN ( - - 85 + + CAST( 84 AS SIGNED ), col0 * + + col1, 49 * 28 * - - CAST( NULL AS SIGNED ) + + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7735
SELECT ALL * FROM tab1 WHERE NOT 69 NOT IN ( - - 85 + + CAST ( 84 AS INTEGER ), col0 * + + col1, 49 * 28 * - - CAST ( NULL AS INTEGER ) + + CAST ( col2 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - COUNT( ALL + col1 ) + COUNT( col1 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT - COUNT ( ALL + col1 ) + COUNT ( col1 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + + col0
----

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab0 cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT - + ( - - col0 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT - + ( - - col0 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 / 28 * - col0 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 / + col2 + - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 - + 37 FROM tab0
----
-27
10
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT 9 - MIN( + - ( + col0 ) ) FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7744
SELECT 9 - MIN ( + - ( + col0 ) ) FROM tab1 AS cor0
----
100

query I rowsort
SELECT + 58 - - col2 FROM tab2 AS cor0
----
116
81
98

query I rowsort
SELECT DISTINCT - - col2 * + 40 + col0 FROM tab2 AS cor0
----
1664
2395
966

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT ALL + + COUNT( * ) AS col0, 96 - + COUNT( * ) FROM tab2 AS cor0
----
3
93

skipif mysql # not compatible
query II rowsort label-7747
SELECT ALL + + COUNT ( * ) AS col0, 96 - + COUNT ( * ) FROM tab2 AS cor0
----
3
93

query I rowsort
SELECT DISTINCT col0 + - 85 FROM tab1 AS cor0
----
-34
0
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT ALL 11 DIV + 16 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - col0 - + 55 + - col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL 11 / + 16 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - col0 - + 55 + - col2 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + + ( col2 ) FROM tab1 AS cor0
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 78 + col1 AS col2 FROM tab0
----
159
79
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - col0 + - 60 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT COUNT( * ), COUNT( - col1 ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7754
SELECT COUNT ( * ), COUNT ( - col1 ) AS col1 FROM tab0
----
3
3

query II rowsort
SELECT ALL - 51 AS col0, col0 AS col1 FROM tab2
----
-51
46
-51
64
-51
75

query I rowsort
SELECT ALL col1 * - 84 AS col0 FROM tab1
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT SUM( ALL + + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7757
SELECT SUM ( ALL + + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT ALL SUM( + 41 ) DIV - + 63 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL SUM ( + 41 ) / - + 63 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 83 * + + 99 AS col2 FROM tab2 AS cor0
----
8217
8217
8217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 89 * - - col1 * + col2 col0 FROM tab2 AS cor0
----
-104397
-274120
-345854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT CAST( + - col2 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7761
SELECT CAST ( + - col2 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7762
SELECT CAST( - col2 AS SIGNED ) AS col1, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-7762
SELECT CAST ( - col2 AS INTEGER ) AS col1, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT - COUNT( * ) + + - 20 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7764
SELECT - COUNT ( * ) + + - 20 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT + col0 + 5 AS col0 FROM tab2 AS cor0
----
51
69
80

query I rowsort
SELECT - col2 + 67 AS col2 FROM tab0 AS cor0
----
-32
20
57

query II rowsort
SELECT ALL - 71 + 32 AS col2, + col0 - + 74 AS col0 FROM tab2 AS cor0
----
-39
-10
-39
-28
-39
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + 63 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT ( NULL IS NOT NULL ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - 0 + - 90
----

query I rowsort
SELECT ALL - col2 + 34 * + col2 FROM tab2 AS cor0
----
1320
1914
759

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + 11 * COUNT( * ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7772
SELECT + 11 * COUNT ( * ) AS col2 FROM tab1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT ALL + 0 DIV COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + 0 / COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - 67 * col2 AS col1 FROM tab2
----
-1541
-2680
-3886

query I rowsort
SELECT - 1 * - 20 FROM tab0
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7776
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT SUM( ALL 93 ) + - COUNT( * ) col0 FROM tab2
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7777
SELECT DISTINCT SUM ( ALL 93 ) + - COUNT ( * ) col0 FROM tab2
----
276

query I rowsort
SELECT 30 AS col1 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT + MAX( DISTINCT + col2 ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + MAX ( DISTINCT + col2 ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + + col1 FROM tab2 WHERE NOT - 78 * 41 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT MAX( ALL 16 ) * COUNT( * ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7782
SELECT MAX ( ALL 16 ) * COUNT ( * ) AS col2 FROM tab0
----
48

query I rowsort
SELECT ALL - col0 * 18 FROM tab2
----
-1152
-1350
-828

query I rowsort
SELECT 41 * + col0 + - col1 AS col1 FROM tab0
----
3546
3976
534

query I rowsort
SELECT ALL ( + col2 ) FROM tab1 WHERE 59 - col1 NOT IN ( - 20 + 70 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT - MIN( 42 ) AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT - MIN ( 42 ) AS col2 FROM tab1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT ALL + COUNT( * ) DIV 15 FROM tab1 WHERE 22 = - col1
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL + COUNT ( * ) / 15 FROM tab1 WHERE 22 = - col1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7790
SELECT DISTINCT - 79 + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - 79 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 80 + col0 FROM tab2 WHERE 53 BETWEEN col1 AND + col2
----

query I rowsort
SELECT col0 + + 55 FROM tab1
----
106
140
146

query I rowsort
SELECT - ( col2 ) FROM tab0 WHERE - col1 NOT IN ( - ( + col1 ) )
----

query I rowsort
SELECT ALL - 67 * col0 + col2 * - col2 AS col2 FROM tab0
----
-16300
-3214
-5929

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > col0 / col0
----

query I rowsort
SELECT ( + col1 ) * + col1 AS col2 FROM tab1 cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT col1 FROM tab2 AS cor0 WHERE NOT + col2 * + col2 + + col0 > - CAST( col2 AS SIGNED ) - col2 * + 7
----

skipif mysql # not compatible
query I rowsort label-7798
SELECT col1 FROM tab2 AS cor0 WHERE NOT + col2 * + col2 + + col0 > - CAST ( col2 AS INTEGER ) - col2 * + 7
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 78 - - 69 BETWEEN ( - 7 + + col2 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + col0 + - 53 AS col0 FROM tab0 AS cor0
----
652
817
9550

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( - col2 ) AND - 69 / + col2 + + col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT COUNT( col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7803
SELECT COUNT ( col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT + 62 * COUNT( * ) AS col1 FROM tab0 cor0
----
186

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT + 62 * COUNT ( * ) AS col1 FROM tab0 cor0
----
186

query I rowsort
SELECT DISTINCT + - 12 + col0 FROM tab2 AS cor0
----
34
52
63

query I rowsort
SELECT DISTINCT + - 53 * 31 + 97 FROM tab1 AS cor0
----
-1546

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 69 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 14 ) IS NULL
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE 24 NOT IN ( + col1 )
----
1
21
81

query I rowsort
SELECT ALL + 7 * col2 + - 82 FROM tab0 AS cor0
----
-12
247
611

query I rowsort
SELECT ALL + col2 * - 63 * + col1 FROM tab2
----
-194040
-244818
-73899

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( - 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col2 * + col1 - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL OR NOT + 96 * 53 + 89 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL + COUNT( * ) * + 16 + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL + COUNT ( * ) * + 16 + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT ALL col0 * ( + col0 ) FROM tab0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT ALL CAST( NULL AS SIGNED ) / MAX( ( ( - ( - col1 ) ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL CAST ( NULL AS INTEGER ) / MAX ( ( ( - ( - col1 ) ) ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT ALL - col1 DIV ( + col0 ) * 22 FROM tab0
----
-110
0
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL - col1 / ( + col0 ) * 22 FROM tab0
----
-110
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7821
SELECT - col0 / CAST( NULL AS DECIMAL ) FROM tab0 WHERE ( col1 + + 71 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT - col0 / CAST ( NULL AS REAL ) FROM tab0 WHERE ( col1 + + 71 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col1 + 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE - 78 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7824
SELECT ALL + CAST( NULL AS DECIMAL ) + - 4 + 69 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + CAST ( NULL AS REAL ) + - 4 + 69 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 90 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT col0 * + 72 AS col0 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) IS NULL
----
3672
6120
6552

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 75 IS NOT NULL
----

query II rowsort
SELECT ALL - col0, col0 * col2 AS col1 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7829
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * 43 FROM tab2 cor0
----
NULL
129

skipif mysql # not compatible
query II rowsort label-7829
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * 43 FROM tab2 cor0
----
NULL
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT - 44 * - COUNT( * ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT - 44 * - COUNT ( * ) FROM tab2 AS cor0
----
132

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 48 + + 86 + + col0 * 49 >= ( - col2 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( 4 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + - 61 * 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7834
SELECT ALL * FROM tab0 WHERE NOT ( - CAST( 80 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7834
SELECT ALL * FROM tab0 WHERE NOT ( - CAST ( 80 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7835
SELECT * FROM tab2 WHERE NOT + 0 * ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7835
SELECT * FROM tab2 WHERE NOT + 0 * ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 89 * + col0, - 89 * + col1 AS col0 FROM tab2
----
4094
-4539
5696
-6853
6675
-5963

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - ( + SUM( DISTINCT - 25 ) ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7837
SELECT - ( + SUM ( DISTINCT - 25 ) ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT ( + 94 ) + + col0 FROM tab2 AS cor0 WHERE - 54 NOT BETWEEN NULL AND ( - col2 )
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7839
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - CAST( NULL AS SIGNED ) + + col1 * 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7839
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - CAST ( NULL AS INTEGER ) + + col1 * 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 39 )
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( 65 * - 68 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT 76 * + COUNT( col0 ), COUNT( * ) AS col1 FROM tab1
----
228
3

skipif mysql # not compatible
query II rowsort label-7842
SELECT 76 * + COUNT ( col0 ), COUNT ( * ) AS col1 FROM tab1
----
228
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT COUNT( DISTINCT - 79 ) + - AVG ( + col1 + - col2 ) * - 55 FROM tab0 WHERE NOT NULL BETWEEN ( + col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT COUNT ( DISTINCT - 79 ) + - AVG ( + col1 + - col2 ) * - 55 FROM tab0 WHERE NOT NULL BETWEEN ( + col2 ) AND NULL
----
NULL

query I rowsort
SELECT + col0 * 85 + + col0 + 46 + + col2 + col0 * col2 FROM tab1 AS cor0
----
12430
14128
9424

query I rowsort
SELECT DISTINCT - + 81 AS col0 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT - - col2 + + + col1 - + ( - col1 ) - col0 AS col1 FROM tab2 AS cor0
----
117
130
79

query I rowsort
SELECT ALL 0 + 30 FROM tab2 cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT - ( + ( + - ( - 56 ) ) ) * ( ( 92 ) ) + + MAX( col1 ) AS col1 FROM tab0 AS cor0
----
-5071

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT - ( + ( + - ( - 56 ) ) ) * ( ( 92 ) ) + + MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
-5071

query I rowsort
SELECT DISTINCT + 31 + - 17 FROM tab1 AS cor0
----
14

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - col1 * + + col1 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7852
SELECT + 90 * + col0, 68 / - CAST( NULL AS SIGNED ) - col1 + col1 AS col0 FROM tab0
----
1350
NULL
7830
NULL
8730
NULL

skipif mysql # not compatible
query II rowsort label-7852
SELECT + 90 * + col0, 68 / - CAST ( NULL AS INTEGER ) - col1 + col1 AS col0 FROM tab0
----
1350
NULL
7830
NULL
8730
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL + COUNT( ALL - col1 ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL + COUNT ( ALL - col1 ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7854
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( + col2 AS SIGNED ) * + col1 + + CAST( col0 AS SIGNED ) <> - CAST( NULL AS SIGNED ) * - col2 + - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7854
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( + col2 AS INTEGER ) * + col1 + + CAST ( col0 AS INTEGER ) <> - CAST ( NULL AS INTEGER ) * - col2 + - ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7855
SELECT + ( COUNT( * ) ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT + ( COUNT ( * ) ) + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + MAX( DISTINCT + 21 ) AS col2 FROM tab0 WHERE + + 86 + + 19 - - - col1 BETWEEN - 79 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT + MAX ( DISTINCT + 21 ) AS col2 FROM tab0 WHERE + + 86 + + 19 - - - col1 BETWEEN - 79 AND ( NULL )
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE + col2 BETWEEN + 97 * - col0 AND - - 16 * - 4 + 78 * 52
----
1
21
81

query I rowsort
SELECT DISTINCT + 68 + + col1 AS col0 FROM tab0 WHERE NULL <> + 11
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL + 44 DIV + col1 FROM tab0
----
0
2
44

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL + 44 / + col1 FROM tab0
----
0
2
44

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab0 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - MIN( DISTINCT + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7861
SELECT - MIN ( DISTINCT + col1 ) FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7862
SELECT col0, + CAST( NULL AS SIGNED ) * - col1 + + + col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7862
SELECT col0, + CAST ( NULL AS INTEGER ) * - col1 + + + col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + 79 * col0 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( col2 * + 65 * - 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7865
SELECT - 56 DIV + - 43 + col1 AS col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-7865
SELECT - 56 / + - 43 + col1 AS col1 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT + col0 + - - 96 AS col0 FROM tab1 AS cor0
----
147
181
187

query I rowsort
SELECT DISTINCT 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query I rowsort
SELECT ALL col0 + + - col0 * + - 67 AS col1 FROM tab2 cor0
----
3128
4352
5100

query I rowsort
SELECT DISTINCT - col2 * + 95 * 51 + - 72 + + 87 * - col0 FROM tab2 AS cor0
----
-115509
-199440
-287607

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT COUNT( DISTINCT - + 54 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7871
SELECT COUNT ( DISTINCT - + 54 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - col2 * + col2 * + - col0 + col0 + col0 + + col0 + + col2 FROM tab2 AS cor0
----
102632
24495
252583

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - + MAX( - + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7873
SELECT - + MAX ( - + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 54 ) + - - 25 col0 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) + + COUNT( + col0 ) + + ( - 76 ) AS col1 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) + + COUNT ( + col0 ) + + ( - 76 ) AS col1 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT + + 64 + - col0 FROM tab0 AS cor0
----
-23
-33
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 92 col0 FROM tab2 AS cor0
----
15
25
41

query I rowsort
SELECT + 23 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( + col1 ) - col1 AS col1 FROM tab1 WHERE NULL IS NULL AND - + col1 + + col1 / - col0 NOT BETWEEN + 69 AND - col0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col1 - 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT - 45 DIV 60 DIV - - col0 + - - 96 AS col1 FROM tab0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-7881
SELECT - 45 / 60 / - - col0 + - - 96 AS col1 FROM tab0
----
96
96
96

query I rowsort
SELECT + 18 + - col1 FROM tab1
----
-29
13
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( - 18 ) / + - col2 < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT COUNT( + ( - ( - + 6 ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7885
SELECT COUNT ( + ( - ( - + 6 ) ) ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT - + col2 DIV - 35 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7886
SELECT - + col2 / - 35 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7887
SELECT - CAST( NULL AS DECIMAL ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7887
SELECT - CAST ( NULL AS REAL ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL col1 * + - col2 * col1 * - - col0 * col2 AS col0 FROM tab0
----
-217398735
-3836700
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - col1 col0, + col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

query II rowsort
SELECT ALL + 61, + col1 FROM tab0
----
61
1
61
21
61
81

query II rowsort
SELECT - col1 AS col0, + 81 FROM tab2
----
-51
81
-67
81
-77
81

query I rowsort
SELECT DISTINCT col2 * + 20 * - 71 FROM tab2
----
-32660
-56800
-82360

query II rowsort
SELECT DISTINCT + 2, + col0 FROM tab0
----
2
15
2
87
2
97

query I rowsort
SELECT - 56 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - ( - 38 ), + col2 AS col1 FROM tab2 AS cor0
----
38
23
38
40
38
58

query I rowsort
SELECT ALL ( + 58 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + - + 78 + - + 4 * - col2 IN ( - 72 * + + col1 * + col2, - col2 / col2 / + 1 )
----
58
58
58

query I rowsort
SELECT - col2 * + 58 AS col1 FROM tab1 cor0
----
-3422
-3944
-5568

onlyif mysql # DIV for integer division: 
query II rowsort label-7898
SELECT ALL + - 60, - 83 DIV col2 AS col2 FROM tab1 AS cor0
----
-60
-1
-60
-1
-60
0

skipif mysql # not compatible
query II rowsort label-7898
SELECT ALL + - 60, - 83 / col2 AS col2 FROM tab1 AS cor0
----
-60
-1
-60
-1
-60
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT - + CAST( COUNT( + col2 ) AS SIGNED ) * + 32 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7899
SELECT - + CAST ( COUNT ( + col2 ) AS INTEGER ) * + 32 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT ALL col2 * + ( - col1 ) FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT 42 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0 - col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL + MAX( DISTINCT - 50 ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL + MAX ( DISTINCT - 50 ) FROM tab1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT ( col1 ) DIV col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7903
SELECT ( col1 ) / col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - 66 * + 54 AS col0 FROM tab1
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + MAX( - ( - col0 ) ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7905
SELECT + MAX ( - ( - col0 ) ) AS col1 FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col0 + + col0
----

query I rowsort
SELECT DISTINCT + col0 + - + 52 * + 42 AS col0 FROM tab1 cor0
----
-2093
-2099
-2133

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col1 ) / - col2 BETWEEN + col0 AND ( 47 / + col0 / + - 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL - - CAST( NULL AS SIGNED ) + - 54 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 54 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 40 AS col2 FROM tab0 AS cor0 WHERE 1 + col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT 29 * + + COUNT( * ) + - 20 * 2 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7912
SELECT 29 * + + COUNT ( * ) + - 20 * 2 FROM tab2
----
47

query I rowsort
SELECT DISTINCT + 25 + - 97 AS col2 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT ALL + - col1 + + 21 - - + 16 FROM tab2 AS cor0
----
-14
-30
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 * - col2 * - - col1 * + col0 * + CAST( col1 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + col1 * - col2 * - - col1 * + col0 * + CAST ( col1 AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL - - 30 * - ( 63 ) + + - CAST( - - MIN( ALL - 18 ) AS SIGNED ) FROM tab0 AS cor0
----
-1872

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL - - 30 * - ( 63 ) + + - CAST ( - - MIN ( ALL - 18 ) AS INTEGER ) FROM tab0 AS cor0
----
-1872

query II rowsort
SELECT DISTINCT - col0 + + col2, - col1 AS col0 FROM tab0
----
-77
-21
2
-1
32
-81

query I rowsort
SELECT DISTINCT + 5 + + 39 FROM tab2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT - col2 - + 33 - col2 DIV - - col0 col2 FROM tab1
----
-101
-130
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7919
SELECT - col2 - + 33 - col2 / - - col0 col2 FROM tab1
----
-101
-130
-92

query III rowsort
SELECT * FROM tab2 WHERE col0 * 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7921
SELECT CAST( - 71 AS SIGNED ) * + - 64 - + col1 + col0 * - col1 + - 48, col0 FROM tab1
----
172
91
3768
51
4066
85

skipif mysql # not compatible
query II rowsort label-7921
SELECT CAST ( - 71 AS INTEGER ) * + - 64 - + col1 + col0 * - col1 + - 48, col0 FROM tab1
----
172
91
3768
51
4066
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( - + col0 ) < - 97
----

query I rowsort
SELECT ALL col1 - - 18 - + col0 FROM tab2
----
10
23
31

query I rowsort
SELECT DISTINCT - + 2 AS col1 FROM tab2 cor0
----
-2

query I rowsort
SELECT DISTINCT - + col0 + - 37 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 61 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + col2 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * 49 col2 FROM tab2 AS cor0
----
-2254
-3136
-3675

query II rowsort
SELECT ALL - - 11 AS col0, 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 83846653e4f13a4a5ac6a054e93ed169

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + + MAX( ALL + 7 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + + MAX ( ALL + 7 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7930
SELECT SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * + + 71 FROM tab1 AS cor0
----
-3621
-6035
-6461

query I rowsort
SELECT ALL col0 * - 60 AS col0 FROM tab2 cor0
----
-2760
-3840
-4500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 * 12 col1 FROM tab1 AS cor0
----
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-7934
SELECT + - 53 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7934
SELECT + - 53 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * - 76 FROM tab1 AS cor0
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT ( SUM( + col2 ) ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7936
SELECT DISTINCT ( SUM ( + col2 ) ) col0 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( 84 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + col1 ) * - + 89 * - ( - - 74 ) * - + col1 AS col0 FROM tab2
----
-17130186
-29564554
-39048394

query I rowsort
SELECT DISTINCT ( + 33 ) * col0 FROM tab2
----
1518
2112
2475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col2 + - + 78 col1 FROM tab0 AS cor0
----
2131
22
9723

query I rowsort
SELECT + - col2 + + + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + + + col0 AS col2 FROM tab2 AS cor0
----
-2070
-4032
-5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 11 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-7945
SELECT DISTINCT col2 DIV + col0, + col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-7945
SELECT DISTINCT col2 / + col0, + col2 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT + 15 - + - 49 AS col0 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT ALL + - MAX( ALL + col0 ) AS col1, COUNT( col2 ) * + COUNT( * ) AS col2 FROM tab2 cor0
----
-75
9

skipif mysql # not compatible
query II rowsort label-7947
SELECT ALL + - MAX ( ALL + col0 ) AS col1, COUNT ( col2 ) * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-75
9

query I rowsort
SELECT - 20 - - 20 + - + col0 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

query I rowsort
SELECT 64 - - col2 AS col2 FROM tab0 cor0
----
111
163
74

query I rowsort
SELECT ALL + col1 + + - col2 * - + col1 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT DISTINCT ( - - col2 ) DIV + - col2 col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7951
SELECT DISTINCT ( - - col2 ) / + - col2 col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col1 * + ( 87 ) - - - 88 AS col0 FROM tab2
----
4349
5741
6611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT - CAST( + - col1 AS SIGNED ) col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7953
SELECT - CAST ( + - col1 AS INTEGER ) col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT ALL ( - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL ( - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - ( - + col0 ) * col0 * + col1 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7956
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT + 57 * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-513

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + 57 * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT COUNT( + 78 ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7959
SELECT COUNT ( + 78 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + + col1 col1 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL + COUNT( * ) * 59 AS col1 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + COUNT ( * ) * 59 AS col1 FROM tab2
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT DISTINCT - col0 DIV + + col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT - col0 / + + col0 FROM tab0
----
-1

query I rowsort
SELECT ALL + 10 * + 18 AS col0 FROM tab0
----
180
180
180

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <> 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL - COUNT( * ) + - 22 AS col1 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - COUNT ( * ) + - 22 AS col1 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL + ( - - 16 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT + SUM( DISTINCT - 77 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT + SUM ( DISTINCT - 77 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-77

query I rowsort
SELECT 27 + - + ( + - 20 ) FROM tab1
----
47
47
47

query I rowsort
SELECT - + 32 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 62 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7971
SELECT + COUNT( * ) AS col2, - 86 AS col0 FROM tab1 AS cor0
----
3
-86

skipif mysql # not compatible
query II rowsort label-7971
SELECT + COUNT ( * ) AS col2, - 86 AS col0 FROM tab1 AS cor0
----
3
-86

query I rowsort
SELECT DISTINCT 21 + col2 FROM tab2 cor0
----
44
61
79

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col2 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col2 col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT DISTINCT - col1 DIV + 55 + col2 AS col0 FROM tab0 AS cor0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT - col1 / + 55 + col2 AS col0 FROM tab0 AS cor0
----
10
46
99

query I rowsort
SELECT ALL col1 * + 38 AS col0 FROM tab2
----
1938
2546
2926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7977
SELECT ( - 92 ) AS col1, SUM( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-7977
SELECT ( - 92 ) AS col1, SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
-92
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 62 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT DISTINCT + 77 DIV SUM( ALL col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + 77 / SUM ( ALL col0 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 94 * col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col0 AS col1, - 66 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * + + 48 * + 62 IS NULL
----
-15
-66
-87
-66
-97
-66

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - 99 * + + 51 FROM tab0
----
-5049
-5049
-5049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 62 col0 FROM tab1 AS cor0 WHERE + ( col2 ) * + 44 + col2 IS NOT NULL
----
-3658
-4216
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT + MIN( DISTINCT + 11 ) col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7985
SELECT + MIN ( DISTINCT + 11 ) col0 FROM tab2 AS cor0
----
11

query II rowsort
SELECT + - 99 AS col0, + col0 AS col0 FROM tab0 AS cor0
----
-99
15
-99
87
-99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7987
SELECT ALL - CAST( + 91 AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - CAST ( + 91 AS REAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 14 + - + col2 FROM tab0 AS cor0
----
-33
-85
4

query I rowsort
SELECT ALL + col1 * - - 49 + - - col2 * + col2 * - - col0 AS col0 FROM tab2 AS cor0
----
106173
255583
26833

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT MIN( + ( 16 ) ) AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7990
SELECT MIN ( + ( 16 ) ) AS col0 FROM tab0
----
16

query I rowsort
SELECT ALL 74 * col2 FROM tab0
----
3478
7326
740

query I rowsort
SELECT col1 FROM tab0 WHERE col1 * col0 IS NULL
----

query I rowsort
SELECT + ( - 25 ) * + col0 * - col2 + + + col2 FROM tab0
----
17672
21760
240174

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT - COUNT( ALL + - ( + - col2 ) ) + 31 col0 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7994
SELECT - COUNT ( ALL + - ( + - col2 ) ) + 31 col0 FROM tab1 AS cor0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col1 + + + col0 col0 FROM tab0 cor0
----
129
177
99

query I rowsort
SELECT - + col1 * - + col0 - + 94 FROM tab0 AS cor0
----
1121
1733
3

query I rowsort
SELECT + + 24 + - 43 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - + 62 + 64 FROM tab2 AS cor0
----
2

query I rowsort
SELECT - 69 * col0 FROM tab0 AS cor0
----
-1035
-6003
-6693

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= + col2
----
97
1
99

query I rowsort
SELECT + ( + + col0 ) * 15 + - + col0 AS col1 FROM tab1 AS cor0
----
1190
1274
714

onlyif mysql # DIV for integer division: 
query II rowsort label-8002
SELECT col1, + col1 DIV - 41 AS col2 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-8002
SELECT col1, + col1 / - 41 AS col2 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL MAX( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT + 21 NOT BETWEEN + col0 AND - ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL MAX ( ALL + col2 ) FROM tab1 AS cor0 WHERE NOT + 21 NOT BETWEEN + col0 AND - ( - col2 )
----
NULL

query I rowsort
SELECT ALL ( 47 ) * - + col1 AS col2 FROM tab1 cor0
----
-2209
-235
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT DISTINCT - col0 DIV - + 23 FROM tab1
----
2
3

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT - col0 / - + 23 FROM tab1
----
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT DISTINCT - CAST( - 14 AS SIGNED ) - - col1 + + 22 AS col0 FROM tab0 WHERE NULL NOT IN ( - 84, + col1 )
----

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT - CAST ( - 14 AS INTEGER ) - - col1 + + 22 AS col0 FROM tab0 WHERE NULL NOT IN ( - 84, + col1 )
----

query III rowsort
SELECT 94, + col0 AS col2, col0 FROM tab0
----
9 values hashing to fae7783c06ba84a8f1037eed8d42b15e

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL COUNT( * ) FROM tab0 WHERE + - col2 * col1 * - 57 * + col2 * - col0 + - col1 + + ( col1 ) * + 72 + - 98 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL COUNT ( * ) FROM tab0 WHERE + - col2 * col1 * - 57 * + col2 * - col0 + - col1 + + ( col1 ) * + 72 + - 98 IS NOT NULL
----
3

query II rowsort
SELECT ALL col1, - col0 FROM tab1 cor0
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT + 86 + + - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
100
133
91

query I rowsort
SELECT ALL - 46 + 47 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT - + 67 DIV - ( + 51 ) + - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-8012
SELECT - + 67 / - ( + 51 ) + - col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT - + ( - col0 ) + - col1 + col0 FROM tab0 AS cor0
----
-51
153
193

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - + + col0 / 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8015
SELECT DISTINCT + ( + SUM( ALL + CAST( col0 AS SIGNED ) ) ) AS col2, + 79 AS col1 FROM tab1
----
227
79

skipif mysql # not compatible
query II rowsort label-8015
SELECT DISTINCT + ( + SUM ( ALL + CAST ( col0 AS INTEGER ) ) ) AS col2, + 79 AS col1 FROM tab1
----
227
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8016
SELECT + COUNT( * ) AS col2, - 67 FROM tab1
----
3
-67

skipif mysql # not compatible
query II rowsort label-8016
SELECT + COUNT ( * ) AS col2, - 67 FROM tab1
----
3
-67

query II rowsort
SELECT ALL + col1, + ( - col0 ) FROM tab0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT DISTINCT - col0 AS col2, 97 AS col1 FROM tab2
----
-46
97
-64
97
-75
97

query I rowsort
SELECT DISTINCT - col2 + - 5 AS col0 FROM tab1 AS cor0
----
-101
-64
-73

query I rowsort
SELECT ALL 75 + + col0 FROM tab0
----
162
172
90

query I rowsort
SELECT col1 + + 43 AS col2 FROM tab1
----
48
57
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8022
SELECT - CAST( - + col2 AS SIGNED ) + - col0 DIV - ( - 13 ), + col2 FROM tab0
----
4
10
46
47
92
99

skipif mysql # not compatible
query II rowsort label-8022
SELECT - CAST ( - + col2 AS INTEGER ) + - col0 / - ( - 13 ), + col2 FROM tab0
----
4
10
46
47
92
99

query II rowsort
SELECT col0 + + col1 AS col0, - col2 AS col0 FROM tab2
----
141
-40
142
-58
97
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8024
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND + 20
----

skipif mysql # not compatible
query III rowsort label-8024
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND + 20
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 40 col2 FROM tab1 AS cor0
----
2040
3400
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT + + 22 / MAX( ALL + ( - + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 + 97 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT + + 22 / MAX ( ALL + ( - + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 + 97 >= NULL
----
NULL

query I rowsort
SELECT ALL + - col2 * + - col0 - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 17 IS NULL
----
4882
5010
6141

query I rowsort
SELECT - 38 * + col2 + + 83 FROM tab1 AS cor0
----
-2159
-2501
-3565

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8030
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - CAST( + - 96 AS SIGNED ) * - col1 + 93 / + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8030
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - CAST ( + - 96 AS INTEGER ) * - col1 + 93 / + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - - 38 ) AS col2 FROM tab0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8032
SELECT - MIN( - ( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT - MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8033
SELECT DISTINCT SUM( 85 ), - ( + + COUNT( * ) ) * + + COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
765
-81

skipif mysql # not compatible
query II rowsort label-8033
SELECT DISTINCT SUM ( 85 ), - ( + + COUNT ( * ) ) * + + COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
765
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8034
SELECT - 52, + MAX( - 33 ) AS col2 FROM tab1
----
-52
-33

skipif mysql # not compatible
query II rowsort label-8034
SELECT - 52, + MAX ( - 33 ) AS col2 FROM tab1
----
-52
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT - SUM( DISTINCT - + 58 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - SUM ( DISTINCT - + 58 ) AS col2 FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 - - - CAST( NULL AS SIGNED ) * + - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8036
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 - - - CAST ( NULL AS INTEGER ) * + - col0 = NULL
----
0

query I rowsort
SELECT + 64 + - - col2 AS col1 FROM tab0 cor0
----
111
163
74

query I rowsort
SELECT ALL - - 1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + col0 + + 31 AS col2 FROM tab2
----
106
77
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8040
SELECT - + COUNT( * ) * + 30 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8040
SELECT - + COUNT ( * ) * + 30 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL + 68 + - col0 AS col2 FROM tab1 AS cor0
----
-17
-23
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8042
SELECT - - COUNT( * ) * COUNT( - col0 ) DIV + + COUNT( * ) AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8042
SELECT - - COUNT ( * ) * COUNT ( - col0 ) / + + COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8043
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) = + + ( col2 ) + + - col1
----

skipif mysql # not compatible
query III rowsort label-8043
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) = + + ( col2 ) + + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT DISTINCT + - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8045
SELECT DISTINCT ( - col1 ) + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT ( - col1 ) + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT + COUNT( * ) AS col0, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8047
SELECT + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT - + SUM( DISTINCT - ( + col2 ) ) + 17 + - 51 col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8048
SELECT DISTINCT - + SUM ( DISTINCT - ( + col2 ) ) + 17 + - 51 col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT + - 40 + + - col1 * col0 FROM tab1 cor0
----
-4317
-465
-754

query I rowsort
SELECT ALL + col0 + - + 94 FROM tab0
----
-7
-79
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL OR col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + + - 33 AS col0 FROM tab2
----
-108
-79
-97

query I rowsort
SELECT ALL - col2 - 27 FROM tab2
----
-50
-67
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * - col0 col0 FROM tab0
----
-1134
-1806
-96

query III rowsort
SELECT * FROM tab0 WHERE + 64 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT + col0 DIV - 32 + col2 DIV - - col0 + + ( col1 ) FROM tab0
----
-1
19
84

skipif mysql # not compatible
query I rowsort label-8056
SELECT + col0 / - 32 + col2 / - - col0 + + ( col1 ) FROM tab0
----
-1
19
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT + ( 25 ) + - CAST( + - 95 AS SIGNED ) + ( - col1 ) AS col0 FROM tab2 AS cor0
----
43
53
69

skipif mysql # not compatible
query I rowsort label-8057
SELECT + ( 25 ) + - CAST ( + - 95 AS INTEGER ) + ( - col1 ) AS col0 FROM tab2 AS cor0
----
43
53
69

query I rowsort
SELECT DISTINCT - - 38 FROM tab1 AS cor0 WHERE NOT col2 >= - 23 + + 96
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT - - COUNT( * ) * - ( 30 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-270

skipif mysql # not compatible
query I rowsort label-8059
SELECT - - COUNT ( * ) * - ( 30 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL + MIN( DISTINCT 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + MIN ( DISTINCT 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query I rowsort
SELECT DISTINCT + + 99 * - - col0 + + col0 AS col2 FROM tab0 AS cor0
----
1500
8700
9700

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 - - col1 IN ( 41, col1, col2, - - col1 / + 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 * - 13 * + col2 col0 FROM tab0 AS cor0
----
115830
11700
54990

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL + MAX( ALL - 55 ) col1 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8065
SELECT ALL + MAX ( ALL - 55 ) col1 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT - ( + - ( + col1 ) ) FROM tab2 AS cor0 WHERE NOT - col0 IN ( - + col2, col0, ( + col1 ) / + col1 * - 92 + - 31 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT 33 * COUNT( * ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8067
SELECT 33 * COUNT ( * ) AS col2 FROM tab0 cor0
----
99

query I rowsort
SELECT ALL - col2 * + - 10 AS col1 FROM tab0
----
100
470
990

onlyif mysql # aggregate syntax: 
query II rowsort label-8069
SELECT - + 89 AS col2, COUNT( * ) FROM tab2 WHERE NOT + col1 * + col0 + ( - 74 ) - + col0 + - col0 * - ( 39 ) < + - col2
----
-89
3

skipif mysql # not compatible
query II rowsort label-8069
SELECT - + 89 AS col2, COUNT ( * ) FROM tab2 WHERE NOT + col1 * + col0 + ( - 74 ) - + col0 + - col0 * - ( 39 ) < + - col2
----
-89
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 > col1 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT DISTINCT 87 DIV col1 AS col2 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT 87 / col1 AS col2 FROM tab1
----
1
17
6

query I rowsort
SELECT ( ( col1 ) ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - + col1 + + 81 FROM tab0 AS cor0
----
0
60
80

query I rowsort
SELECT DISTINCT - 56 / - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - ( + col1 )
----

query I rowsort
SELECT + 29 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + COUNT( - 90 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + COUNT ( - 90 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT MIN( 61 ) + - 54 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-8079
SELECT MIN ( 61 ) + - 54 FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8080
SELECT CAST( NULL AS SIGNED ) + + col2 + col1 AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8080
SELECT CAST ( NULL AS INTEGER ) + + col2 + col1 AS col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT + col2 + + - 64 + + col2 * + - 48 - + 65 * - 73 FROM tab2
----
1955
2801
3600

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL col0 * + col2 * - + col2 AS col1 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT 10 + - 76 AS col1 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT - col1 + - 6 FROM tab2 cor0
----
-57
-73
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - col1
----

query I rowsort
SELECT 77 + + - 84 AS col0 FROM tab0 AS cor0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT - - 37 + SUM( DISTINCT + - 88 ) AS col0 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT - - 37 + SUM ( DISTINCT + - 88 ) AS col0 FROM tab0 cor0
----
-51

query I rowsort
SELECT DISTINCT col2 + + col0 - - - 72 FROM tab1
----
72
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ( + MIN( ALL - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8091
SELECT ( + MIN ( ALL - col1 ) ) FROM tab2
----
-77

query I rowsort
SELECT 37 * - - 48 AS col2 FROM tab1
----
1776
1776
1776

query I rowsort
SELECT DISTINCT - col1 - + + col0 * + col1 AS col1 FROM tab0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL + SUM( + - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + SUM ( + - col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8095
SELECT ALL + CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ) * - col0 + - 88 AS col2, col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8095
SELECT ALL + CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER ) * - col0 + - 88 AS col2, col2 AS col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT + 43 - + + ( + 30 ) FROM tab1
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8097
SELECT + + 78 + ( col1 ) AS col2, 15 * 30 FROM tab0 AS cor0 WHERE - 79 + + CAST( NULL AS SIGNED ) IS NULL
----
159
450
79
450
99
450

skipif mysql # not compatible
query II rowsort label-8097
SELECT + + 78 + ( col1 ) AS col2, 15 * 30 FROM tab0 AS cor0 WHERE - 79 + + CAST ( NULL AS INTEGER ) IS NULL
----
159
450
79
450
99
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT MIN( ( + ( - 0 ) ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT MIN ( ( + ( - 0 ) ) ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - COUNT( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8099
SELECT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL col1 AS col1, - 61, - + 19 + col2 + + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to 58b7e8898613ea8b454c3d20ce413d05

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - col0 * col2 * 32 * + 17 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 28 * 50 * - + col1 AS col1 FROM tab1 cor0
----
19600
65800
7000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT ALL - CAST( + 17 AS SIGNED ) * + 50 FROM tab1 AS cor0
----
-850
-850
-850

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - CAST ( + 17 AS INTEGER ) * + 50 FROM tab1 AS cor0
----
-850
-850
-850

query II rowsort
SELECT ALL + ( 52 ), col1 FROM tab0 cor0
----
52
1
52
21
52
81

query I rowsort
SELECT - 78 * - + col0 + + col0 FROM tab1 AS cor0
----
4029
6715
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + 83 * COUNT( * ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-8106
SELECT + 83 * COUNT ( * ) FROM tab1 AS cor0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT col1 * + 81 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-8107
SELECT col1 * + 81 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + 16 AS col1 FROM tab1
----
-1360
-1456
-816

query I rowsort
SELECT ALL - 13 * - 92 AS col1 FROM tab2
----
1196
1196
1196

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN - col1 * col2 * + col2 AND - - 30
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + 57 + + + col2 col0, - 79 * + col2 FROM tab1
----
3422
-4661
3944
-5372
5568
-7584

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT ALL + 65 + 12 + + COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
80
-3

skipif mysql # not compatible
query II rowsort label-8112
SELECT ALL + 65 + 12 + + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
80
-3

query I rowsort
SELECT 30 * - col1 AS col2 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - col2 ) * + + 79 + ( 97 ) - + - 79 + + + 72 AS col0 FROM tab1
----
-4413
-5124
-7336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT - 42 DIV 72 - - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 42 / 72 - - col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + ( + - col2 ) + - + col2 + + 84 * - - 92 AS col2 FROM tab2 AS cor0
----
7612
7648
7682

query I rowsort
SELECT - ( 63 ) - + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 82 AND - 40 + - col2
----

query I rowsort
SELECT - col1 + + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL - col0 + ( - col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - col0 + ( - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT col2 + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT col2 + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * + col2 <= + 58 * + 87 / col1 * - + col2
----

query I rowsort
SELECT ALL - col2 - + col0 + 19 FROM tab2 cor0
----
-114
-50
-85

query I rowsort
SELECT DISTINCT - col2 + + - 83 FROM tab0
----
-130
-182
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8127
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) * - + ( + + 8 ) BETWEEN - + col2 * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8127
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) * - + ( + + 8 ) BETWEEN - + col2 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT DISTINCT 62 - COUNT( * ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT 62 - COUNT ( * ) FROM tab0
----
59

query I rowsort
SELECT ALL - 15 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + 20 * COUNT( * ) * + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8130
SELECT + 20 * COUNT ( * ) * + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
180

query I rowsort
SELECT DISTINCT + col2 * col1 + - 95 AS col0 FROM tab1 AS cor0
----
1249
200
3101

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - + 62 + + - 18
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE 2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + 20 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-8134
SELECT + 20 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 * + 36 * - col0 IS NOT NULL
----

query II rowsort
SELECT + col2, - col0 FROM tab2 cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT DISTINCT + MAX( ALL - - col0 ) col1, 12 + + COUNT( * ) FROM tab0 AS cor0
----
97
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8137
SELECT DISTINCT + MAX ( ALL - - col0 ) col1, 12 + + COUNT ( * ) FROM tab0 AS cor0
----
97
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 41 * + col0 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8139
SELECT ALL 27 col0, + SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
27
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8139
SELECT ALL 27 col0, + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
27
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT + ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + CAST( + + col2 AS SIGNED ) AND ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-8140
SELECT + ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + CAST ( + + col2 AS INTEGER ) AND ( - col0 )
----

query I rowsort
SELECT - 67 * - 55 AS col1 FROM tab2
----
3685
3685
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - 51 * + ( - COUNT( * ) ) col1 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8142
SELECT - 51 * + ( - COUNT ( * ) ) col1 FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT + ( - + MIN( DISTINCT - col0 ) ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + ( - + MIN ( DISTINCT - col0 ) ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT DISTINCT MAX( ALL col0 ) + 37 + - - ( - 70 ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT MAX ( ALL col0 ) + 37 + - - ( - 70 ) AS col1 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8145
SELECT ALL - CAST( 95 AS SIGNED ) DIV 3 + col0 + - col1 FROM tab1 AS cor0
----
13
49
6

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL - CAST ( 95 AS INTEGER ) / 3 + col0 + - col1 FROM tab1 AS cor0
----
13
49
6

query I rowsort
SELECT DISTINCT col2 + - 35 AS col1 FROM tab2
----
-12
23
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT DISTINCT + col1 col1 FROM tab0 WHERE NOT NULL <> col1 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8147
SELECT DISTINCT + col1 col1 FROM tab0 WHERE NOT NULL <> col1 * - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 68 + col2 FROM tab0
----
115
167
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8149
SELECT - - CAST( NULL AS SIGNED ) * - 48 AS col2, - 29 * - 92 * COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL
8004

skipif mysql # not compatible
query II rowsort label-8149
SELECT - - CAST ( NULL AS INTEGER ) * - 48 AS col2, - 29 * - 92 * COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL
8004

query I rowsort
SELECT + 83 FROM tab2 AS cor0 WHERE ( ( NULL > ( + - col2 ) * + 85 * col0 * - col2 * col0 ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * - 10 IS NOT NULL
----

query I rowsort
SELECT - col1 * 80 * + col1 AS col1 FROM tab0 AS cor0 WHERE 73 BETWEEN + - 98 AND - - col1
----
-524880

query I rowsort
SELECT ALL - - 74 + + 63 * - 90 AS col2 FROM tab0 AS cor0
----
-5596
-5596
-5596

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - col0 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - SUM( - 45 ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8155
SELECT - SUM ( - 45 ) FROM tab0 AS cor0
----
135

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col2 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL - 64 - + COUNT( * ) AS col2 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - 64 - + COUNT ( * ) AS col2 FROM tab0
----
-67

query I rowsort
SELECT ( + col2 ) - 82 AS col1 FROM tab2
----
-24
-42
-59

query I rowsort
SELECT + col0 - 65 FROM tab1
----
-14
20
26

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + 43 * - - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8162
SELECT DISTINCT - COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT - COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 75 / 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( col1 ) * + 6 AS col0 FROM tab0 AS cor0
----
126
486
6

query I rowsort
SELECT + + col0 * 97 FROM tab2 AS cor0
----
4462
6208
7275

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + col0 + + col2 + + col2 IS NULL
----

query I rowsort
SELECT - 69 FROM tab2 AS cor0 WHERE NOT NULL < 18
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col0 * + - col1
----

query I rowsort
SELECT ALL - 59 + + 9 FROM tab2 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT DISTINCT - - 41 + - ( + - MIN( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT - - 41 + - ( + - MIN ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
-6

query II rowsort
SELECT - col1 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + ( + col0 ) * ( col1 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT col2 - - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ( + 99 ) * - COUNT( * ) FROM tab2 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-8174
SELECT ( + 99 ) * - COUNT ( * ) FROM tab2 cor0
----
-297

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - col1 * ( - 54 ) + + 43 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - 75 * - 7 AS col2 FROM tab1
----
525
525
525

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8177
SELECT col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8177
SELECT col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT + MIN( ALL - col1 ) * + SUM( col0 ) AS col1 FROM tab0
----
-16119

skipif mysql # not compatible
query I rowsort label-8178
SELECT + MIN ( ALL - col1 ) * + SUM ( col0 ) AS col1 FROM tab0
----
-16119

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT ALL 63 DIV col2 DIV col1 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8179
SELECT ALL 63 / col2 / col1 col2 FROM tab0
----
0
0
0

query II rowsort
SELECT col0 + + 70 + - ( col0 ) AS col2, 20 FROM tab0
----
70
20
70
20
70
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT + COUNT( * ) + + COUNT( ALL - + col2 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8181
SELECT + COUNT ( * ) + + COUNT ( ALL - + col2 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT + col0 - - - col2 + + col0 * + - col2 FROM tab0 AS cor0
----
-737
-793
-9605

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + COUNT( * ) - + - SUM( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-8183
SELECT + COUNT ( * ) - + - SUM ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-196

query I rowsort
SELECT ALL + ( + + 69 ) + + + 13 * 35 AS col0 FROM tab1 AS cor0
----
524
524
524

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + col2 <= + 24
----

query I rowsort
SELECT ALL - col1 - - 4 FROM tab2 AS cor0
----
-47
-63
-73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 75 * + + 85 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + - col1 + + + col0 + + - 89 NOT BETWEEN + 97 AND NULL
----

query I rowsort
SELECT DISTINCT + 76 + - col2 FROM tab2 WHERE NOT + col2 + - - col2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 22 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT - - CAST( NULL AS SIGNED ) * - ( - 55 ) / 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT - - CAST ( NULL AS INTEGER ) * - ( - 55 ) / 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 IN ( - - col0 + - col2, 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 * + + col0 col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT ALL + COUNT( * ) AS col0, - MIN( - + col2 ) FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-8194
SELECT ALL + COUNT ( * ) AS col0, - MIN ( - + col2 ) FROM tab1 AS cor0
----
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + ( - COUNT( col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + ( - COUNT ( col1 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT ALL + SUM( DISTINCT - 78 ) * + 80 FROM tab1 AS cor0
----
-6240

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL + SUM ( DISTINCT - 78 ) * + 80 FROM tab1 AS cor0
----
-6240

query I rowsort
SELECT DISTINCT + col2 + 44 FROM tab2
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - MAX( DISTINCT 56 ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-8198
SELECT - MAX ( DISTINCT 56 ) FROM tab0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8200
SELECT ALL * FROM tab1 WHERE NOT - 16 + - col0 * col0 >= + CAST( + CAST( - col1 AS SIGNED ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8200
SELECT ALL * FROM tab1 WHERE NOT - 16 + - col0 * col0 >= + CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 - - col1 BETWEEN col0 - col0 * + col2 AND NULL
----

query I rowsort
SELECT ALL + 98 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 87 FROM tab0 WHERE 93 / - 76 < col2
----
87
87
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN 59 * + col1 AND 9 * - col1 + col1
----

query I rowsort
SELECT col0 + + 99 AS col2 FROM tab1
----
150
184
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT + CAST( col1 AS SIGNED ) * col0 AS col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8206
SELECT + CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT - col0 + 37 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 11 AS col0 FROM tab0 WHERE ( NULL ) = col2
----

query I rowsort
SELECT ALL + ( + col1 ) + + col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT + COUNT( * ) * COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8210
SELECT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT col2 * - 39 + - col0 AS col2 FROM tab0
----
-1848
-3958
-477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT + AVG ( + 1 ) - SUM( + col1 + col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT + AVG ( + 1 ) - SUM ( + col1 + col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + + 44 * - col0 AS col1 FROM tab1
----
-2230
-3735
-3957

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( + 84 ) + 31 * col1 ) IS NULL
----
22

query I rowsort
SELECT ALL col2 * 88 + col0 AS col0 FROM tab1 AS cor0
----
5277
6075
8499

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - 6 * - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-8216
SELECT - 6 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
18

query I rowsort
SELECT - ( 38 ) + + col2 AS col0 FROM tab2 cor0
----
-15
2
20

query I rowsort
SELECT DISTINCT + 24 + 84 * col1 AS col2 FROM tab0 AS cor0
----
108
1788
6828

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE 8 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8220
SELECT ALL 4 + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8220
SELECT ALL 4 + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col0 - 25 AS col1 FROM tab1
----
26
60
66

query I rowsort
SELECT DISTINCT 45 - + col2 FROM tab0
----
-2
-54
35

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT BETWEEN + col1 * 8 AND + col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col1 > - 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / 43 NOT BETWEEN + col0 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8226
SELECT DISTINCT + COUNT( * ) * MIN( ALL - col0 ) + + 73 FROM tab0 AS cor0 WHERE NOT NULL = CAST( col2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT + COUNT ( * ) * MIN ( ALL - col0 ) + + 73 FROM tab0 AS cor0 WHERE NOT NULL = CAST ( col2 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( 57 ) AS col0 FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT - - col0 + + 46 FROM tab2 cor0
----
110
121
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL SUM( ( col2 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL SUM ( ( col2 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
468

query I rowsort
SELECT + ( - 45 ) * col0 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

query I rowsort
SELECT + 6 / - col1 FROM tab1 AS cor0 WHERE NOT 79 NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT col0 DIV - - 80 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8232
SELECT col0 / - - 80 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT col2 * col2 AS col1 FROM tab2 WHERE NOT col1 * - ( - 7 ) + col0 / col1 >= ( col0 )
----

query I rowsort
SELECT DISTINCT + 55 - + col1 FROM tab2 WHERE 58 * ( - col0 ) + + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( 17 ) AS col2 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL COUNT( - col1 ) * 5 + - MIN( 4 ) FROM tab1 WHERE - 68 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL COUNT ( - col1 ) * 5 + - MIN ( 4 ) FROM tab1 WHERE - 68 * - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT - SUM( - - 88 ) AS col0 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-8237
SELECT - SUM ( - - 88 ) AS col0 FROM tab1
----
-264

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT BETWEEN - col1 AND - ( col0 ) * - col0
----
15
81
47

query I rowsort
SELECT ALL 32 * + 86 * - col1 FROM tab0
----
-222912
-2752
-57792

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN col2 * + col0 AND NULL
----

query I rowsort
SELECT - 8 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) IN ( - 33 / col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT - - 25 * - COUNT( * ) * + 97 FROM tab1 AS cor0
----
-7275

skipif mysql # not compatible
query I rowsort label-8244
SELECT - - 25 * - COUNT ( * ) * + 97 FROM tab1 AS cor0
----
-7275

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + - 32 IS NOT NULL
----

query I rowsort
SELECT ALL - 63 * + col0 * 4 AS col1 FROM tab1
----
-12852
-21420
-22932

query I rowsort
SELECT 80 AS col0 FROM tab1 WHERE NOT ( col1 * - col1 + - col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - + col2 * - 42 * col2 * col2 AS col2 FROM tab0 AS cor0
----
40752558
42000
4360566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 + + 20 + 10 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 + + 20 + 10 * + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 20 + - col1 AS col1 FROM tab1 AS cor0
----
-27
15
6

query II rowsort
SELECT - col2, + col2 AS col0 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + ( - - col0 ) * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT - COUNT( * ) * + 38 FROM tab0 AS cor0 WHERE ( NULL ) > + 34 * 57
----
0

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - COUNT ( * ) * + 38 FROM tab0 AS cor0 WHERE ( NULL ) > + 34 * 57
----
0

query I rowsort
SELECT DISTINCT + 11 + col0 AS col2 FROM tab0 AS cor0
----
108
26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - ( + - 23 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8255
SELECT - ( + - 23 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT - 53 FROM tab2 WHERE NOT col2 + - col1 = + col2 AND NULL BETWEEN NULL AND ( ( + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT ALL + 53 DIV - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL + 53 / - col0 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL - COUNT( * ) * - COUNT( * ) * - 53 col1 FROM tab1
----
-477

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8258
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - 53 col1 FROM tab1
----
-477

query I rowsort
SELECT DISTINCT - col1 * + + 67 AS col2 FROM tab2
----
-3417
-4489
-5159

query I rowsort
SELECT + 88 + col1 AS col0 FROM tab1
----
102
135
93

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * col2 * - - 34 FROM tab2
----
104720
132124
39882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT DISTINCT 60 + col1 AS col2 FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) + - 97 NOT IN ( + col0 * 93 )
----

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT 60 + col1 AS col2 FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) + - 97 NOT IN ( + col0 * 93 )
----

query I rowsort
SELECT DISTINCT + + 34 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= + - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT - SUM( 21 ) AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT - SUM ( 21 ) AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT ALL 15 * col1 - - col0 FROM tab1
----
160
261
796

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - + MAX( ALL - + 12 ) col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8269
SELECT - + MAX ( ALL - + 12 ) col2 FROM tab2 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 46 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + - col0 * - ( - - 58 ) * - col1 * - col2 AS col0 FROM tab0 AS cor0
----
49681350
54026478
92190420

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT + - SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8272
SELECT + - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE - ( col1 ) - + col0 + - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT DISTINCT COUNT( * ) AS col0, + 21 * + + 96 * + + MIN( + col0 ) + 6 FROM tab2
----
3
92742

skipif mysql # not compatible
query II rowsort label-8276
SELECT DISTINCT COUNT ( * ) AS col0, + 21 * + + 96 * + + MIN ( + col0 ) + 6 FROM tab2
----
3
92742

query II rowsort
SELECT ALL + 73 AS col2, col0 FROM tab2
----
73
46
73
64
73
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8278
SELECT DISTINCT col1, CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-8278
SELECT DISTINCT col1, CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8279
SELECT ALL + 29 FROM tab0 WHERE NULL < - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + 29 FROM tab0 WHERE NULL < - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT MIN( ALL + - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8281
SELECT MIN ( ALL + - col2 ) FROM tab1 cor0
----
-96

query II rowsort
SELECT ALL + col0 * - 50 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + ( - + MIN( ALL + - 12 ) ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8283
SELECT + ( - + MIN ( ALL + - 12 ) ) FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 <> NULL
----
0

query I rowsort
SELECT ALL - 3 + - - col0 FROM tab1 AS cor0
----
48
82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL MAX( + - 24 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL MAX ( + - 24 ) FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8287
SELECT DISTINCT COUNT( + col2 ), + 58 AS col1 FROM tab1
----
3
58

skipif mysql # not compatible
query II rowsort label-8287
SELECT DISTINCT COUNT ( + col2 ), + 58 AS col1 FROM tab1
----
3
58

query III rowsort
SELECT * FROM tab1 WHERE + col2 * + 34 IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8290
SELECT DISTINCT - + 50 + COUNT( * ) + 19 + - - ( - - 71 ), 24 AS col0 FROM tab0 AS cor0
----
43
24

skipif mysql # not compatible
query II rowsort label-8290
SELECT DISTINCT - + 50 + COUNT ( * ) + 19 + - - ( - - 71 ), 24 AS col0 FROM tab0 AS cor0
----
43
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT COUNT( * ) col2 FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8291
SELECT COUNT ( * ) col2 FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT - MIN( DISTINCT + 16 ) * + + 9 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-8292
SELECT - MIN ( DISTINCT + 16 ) * + + 9 FROM tab2
----
-144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8293
SELECT - 79 * - MIN( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT - 79 * - MIN ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT CAST( + + AVG ( ALL 99 ) AS SIGNED ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8294
SELECT CAST ( + + AVG ( ALL 99 ) AS INTEGER ) FROM tab1
----
99

query I rowsort
SELECT ALL 78 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE + col2 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 24 * + 1 + - 63 + ( - 60 ) AS col1 FROM tab2 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + + SUM( - col2 ) + 92 * - COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-397

skipif mysql # not compatible
query I rowsort label-8299
SELECT + + SUM ( - col2 ) + 92 * - COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-397

query I rowsort
SELECT ALL 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT + 18 + CAST( + col0 AS SIGNED ) * - col1 AS col1 FROM tab2
----
-2328
-4910
-5007

skipif mysql # not compatible
query I rowsort label-8301
SELECT + 18 + CAST ( + col0 AS INTEGER ) * - col1 AS col1 FROM tab2
----
-2328
-4910
-5007

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IN ( + 2 )
----

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT - col0 * - - ( - + ( - col1 ) ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 99 * ( + 48 ) FROM tab1 AS cor0
----
4752

query I rowsort
SELECT + ( - col0 ) FROM tab2 cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT - col2 * - 72 AS col0 FROM tab2
----
1656
2880
4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8308
SELECT - MIN( + ( - col2 ) ) DIV 68 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8308
SELECT - MIN ( + ( - col2 ) ) / 68 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT MIN( + 56 ) AS col1 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-8310
SELECT MIN ( + 56 ) AS col1 FROM tab2
----
56

query I rowsort
SELECT DISTINCT ( - + 41 ) FROM tab0
----
-41

query I rowsort
SELECT + - 85 + + col1 - col2 FROM tab2 AS cor0
----
-48
-57
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + ( + ( + COUNT( ALL col2 ) ) ) + 47 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8313
SELECT + ( + ( + COUNT ( ALL col2 ) ) ) + 47 FROM tab1 AS cor0
----
50

query II rowsort
SELECT ALL - + 98 AS col2, col2 FROM tab1 AS cor0
----
-98
59
-98
68
-98
96

query II rowsort
SELECT DISTINCT 20 AS col1, - 98 AS col1 FROM tab1
----
20
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT DISTINCT COUNT( * ) AS col2, 77 AS col0 FROM tab2 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-8316
SELECT DISTINCT COUNT ( * ) AS col2, 77 AS col0 FROM tab2 AS cor0
----
3
77

query I rowsort
SELECT - + ( + - col2 ) - + + col0 + - col0 * + col0 FROM tab2 AS cor0
----
-2139
-4120
-5642

query II rowsort
SELECT - + col0 - 63 AS col2, 9 - - 38 FROM tab0 cor0 WHERE + col2 - - col1 <= + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT - COUNT( 82 ) + - 96 AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - COUNT ( 82 ) + - 96 AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT + col2 * - col2 * - + col2 * + - CAST( NULL AS SIGNED ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT + col2 * - col2 * - + col2 * + - CAST ( NULL AS INTEGER ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT + 43 + + - MAX( - + col0 ) FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-8321
SELECT + 43 + + - MAX ( - + col0 ) FROM tab1 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT DISTINCT - 57 - col2 * + + col1 * + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT - 57 - col2 * + + col1 * + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + - 21 ) FROM tab1
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8325
SELECT CAST( NULL AS DECIMAL ) / - + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT CAST ( NULL AS REAL ) / - + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT ALL col2 * + col1 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL col2 * + col1 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT ALL col1 DIV col0 * - + 7 DIV + 84 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL col1 / col0 * - + 7 / + 84 AS col2 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + 49 AND NULL
----

query II rowsort
SELECT DISTINCT - col1 * + col1 * + + 20 AS col0, - 47 + + 17 FROM tab1 AS cor0
----
-3920
-30
-44180
-30
-500
-30

query I rowsort
SELECT - 55 * - - col1 AS col1 FROM tab1 cor0
----
-2585
-275
-770

query I rowsort
SELECT DISTINCT - - col1 * - 77 AS col2 FROM tab1 AS cor0
----
-1078
-3619
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT + + COUNT( - + 91 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8332
SELECT + + COUNT ( - + 91 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT ALL - 52 DIV 1 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - 52 / 1 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - 12 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - 72
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8336
SELECT ALL - 63 DIV 6, ( - - COUNT( * ) ) * + SUM( + col2 ) AS col1 FROM tab0
----
-10
468

skipif mysql # not compatible
query II rowsort label-8336
SELECT ALL - 63 / 6, ( - - COUNT ( * ) ) * + SUM ( + col2 ) AS col1 FROM tab0
----
-10
468

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT + col2 DIV - ( + col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT + col2 / - ( + col0 ) FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT - col1 DIV - 45 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8338
SELECT - col1 / - 45 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + - 22 * col2 - - - col2 * + col0 IS NULL
----

query II rowsort
SELECT col2 * - 5, 59 AS col2 FROM tab0
----
-235
59
-495
59
-50
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT - MAX( - - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8342
SELECT - MAX ( - - col1 ) AS col2 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 26 NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT SUM( + + 36 ) FROM tab0 AS cor0 WHERE NULL < - col0 + - ( + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT SUM ( + + 36 ) FROM tab0 AS cor0 WHERE NULL < - col0 + - ( + - col2 )
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE 61 IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN - - 90 - + col0 AND col1
----

query I rowsort
SELECT ALL col1 - + 2 * + col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN NULL AND + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT 86 - + MIN( - + 31 ) * + + SUM( ALL + col1 ) AS col1 FROM tab2
----
6131

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT 86 - + MIN ( - + 31 ) * + + SUM ( ALL + col1 ) AS col1 FROM tab2
----
6131

query I rowsort
SELECT ALL - 30 + - col0 AS col1 FROM tab2
----
-105
-76
-94

query I rowsort
SELECT + 74 - + col2 FROM tab0
----
-25
27
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8352
SELECT + col2 * + col1 * + + 91 * - CAST( NULL AS DECIMAL ) * col2 * col0 - + 49 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT + col2 * + col1 * + + 91 * - CAST ( NULL AS REAL ) * col2 * col0 - + 49 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - + col1 ) - 50 + + + 22 * col1 + - col1 * - + col2 + + col2 AS col0 FROM tab1
----
1684
409
4201

query I rowsort
SELECT - - 9 FROM tab2 WHERE - + 12 >= NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 93 FROM tab1
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8356
SELECT ALL + COUNT( * ), - 92 AS col1 FROM tab2
----
3
-92

skipif mysql # not compatible
query II rowsort label-8356
SELECT ALL + COUNT ( * ), - 92 AS col1 FROM tab2
----
3
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT DISTINCT COUNT( ALL col0 ) FROM tab2 WHERE + col1 >= NULL AND NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT COUNT ( ALL col0 ) FROM tab2 WHERE + col1 >= NULL AND NULL IS NULL
----
0

query I rowsort
SELECT ( - col0 ) - col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
10
47
99

query I rowsort
SELECT + - col0 * - 47 * - col0 + + - ( - col0 ) * - col0 FROM tab0 AS cor0
----
-10800
-363312
-451632

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col1 BETWEEN col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT + ( + 11 ) * - COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + ( + 11 ) * - COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT ALL - - 70 / + 89 - - col1 - 64 * + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL - - 70 / + 89 - - col1 - 64 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * col0 + col2 FROM tab0 AS cor0
----
-1168
-1817
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8367
SELECT + col0 + - col1 * - - col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) - col0 IN ( + 93 - - - col2, + 14, - col2 * + - col1 + col0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8367
SELECT + col0 + - col1 * - - col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) - col0 IN ( + 93 - - - col2, + 14, - col2 * + - col1 + col0, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 * - ( + 37 ) AS col1 FROM tab0 AS cor0
----
-2997
-37
-777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT + - CAST( col1 AS SIGNED ) * col1 + - - col0 + + 55 * + 56 AS col0 FROM tab0 AS cor0
----
-3466
2726
3176

skipif mysql # not compatible
query I rowsort label-8369
SELECT + - CAST ( col1 AS INTEGER ) * col1 + - - col0 + + 55 * + 56 AS col0 FROM tab0 AS cor0
----
-3466
2726
3176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8370
SELECT - + 31 DIV - CAST( + + 84 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 40 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT - + 31 / - CAST ( + + 84 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 40 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8371
SELECT - 85 * - - CAST( NULL AS SIGNED ) AS col2, + 40 * - - 24 AS col0 FROM tab0 AS cor0
----
NULL
960
NULL
960
NULL
960

skipif mysql # not compatible
query II rowsort label-8371
SELECT - 85 * - - CAST ( NULL AS INTEGER ) AS col2, + 40 * - - 24 AS col0 FROM tab0 AS cor0
----
NULL
960
NULL
960
NULL
960

query I rowsort
SELECT - + 22 * + col0 FROM tab1 AS cor0
----
-1122
-1870
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT + 54 / - + 45 + SUM( ALL - + col2 ) AS col0 FROM tab2 WHERE NOT ( NULL NOT BETWEEN col0 AND - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT + 54 / - + 45 + SUM ( ALL - + col2 ) AS col0 FROM tab2 WHERE NOT ( NULL NOT BETWEEN col0 AND - - col2 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 - col2 - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 54 ) FROM tab0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT + 70 * + 72 AS col0 FROM tab0
----
5040

query I rowsort
SELECT col2 + - 28 + + + col0 * 47 * + col0 FROM tab0
----
10594
355725
442294

query I rowsort
SELECT DISTINCT + col2 + 61 AS col1 FROM tab2 AS cor0
----
101
119
84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8379
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - + CAST( - + col0 AS DECIMAL ) - - - CAST( NULL AS SIGNED ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8379
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - + CAST ( - + col0 AS REAL ) - - - CAST ( NULL AS INTEGER ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT - COUNT( * ) + - + 46 AS col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8380
SELECT - COUNT ( * ) + - + 46 AS col1 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL + 81 + + 74 FROM tab2 AS cor0
----
155
155
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

query II rowsort
SELECT + 59, 11 AS col1 FROM tab2 AS cor0
----
59
11
59
11
59
11

query II rowsort
SELECT + + 4, 10 AS col1 FROM tab2 AS cor0
----
4
10
4
10
4
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + MIN( + - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8385
SELECT + MIN ( + - col0 ) AS col1 FROM tab1
----
-91

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 50 - + col0 - col0 FROM tab2
----
-142
-178
-200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= + + 96 * - - col2 + + col2 * + + col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( + + col0 ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-77
2
32

query I rowsort
SELECT - - 86 + + + 19 FROM tab0 AS cor0
----
105
105
105

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE - 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT DISTINCT - - col0 DIV + col2 + + 28 AS col2 FROM tab2 AS cor0
----
29
30

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - - col0 / + col2 + + 28 AS col2 FROM tab2 AS cor0
----
29
30

query I rowsort
SELECT ALL col2 * - - col2 * - - col0 - + 77 + + 12 AS col2 FROM tab1 AS cor0
----
295820
420719
469951

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / - 71 * col0 * - col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL - SUM( ALL - col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - SUM ( ALL - col0 ) AS col2 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8396
SELECT * FROM tab0 WHERE NOT + CAST( 34 AS SIGNED ) = + 96 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8396
SELECT * FROM tab0 WHERE NOT + CAST ( 34 AS INTEGER ) = + 96 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col0 AS col2 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL COUNT( - col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8398
SELECT ALL COUNT ( - col1 ) col0 FROM tab0
----
3

query II rowsort
SELECT ALL col0, 59 - col0 FROM tab2
----
46
13
64
-5
75
-16

query II rowsort
SELECT - + ( col2 ) AS col1, - ( 58 ) FROM tab1 WHERE NOT - - col0 * - col2 * + col2 + - + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + - SUM( col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8401
SELECT + - SUM ( col0 ) AS col2 FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT 65 * - col0 DIV col0 * col1 FROM tab1 AS cor0
----
-3055
-325
-910

skipif mysql # not compatible
query I rowsort label-8402
SELECT 65 * - col0 / col0 * col1 FROM tab1 AS cor0
----
-3055
-325
-910

query II rowsort
SELECT 45 AS col2, + col0 FROM tab0 AS cor0
----
45
15
45
87
45
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + 5 * - + col2 FROM tab1 cor0
----
-1475
-15980
-6720

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + 5 * - + col2 FROM tab1 cor0
----
-1475
-15980
-6720

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 29 NOT IN ( col1, - 37 * - - col0 + 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col0 + + col2 FROM tab0 AS cor0
----
-1
2
-21
-77
-81
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + + col0 <= + + 14 OR NOT - 27 - - ( col0 ) / 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8408
SELECT ALL + - COUNT( * ) * + COUNT( * ) col0, - 48 AS col1 FROM tab2 AS cor0
----
-9
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8408
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) col0, - 48 AS col1 FROM tab2 AS cor0
----
-9
-48

query II rowsort
SELECT ALL col1 + col1 AS col2, ( 28 ) FROM tab2 AS cor0
----
102
28
134
28
154
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + - ( 58 ) * - + SUM( + 26 ) FROM tab1 AS cor0 WHERE - 95 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT + - ( 58 ) * - + SUM ( + 26 ) FROM tab1 AS cor0 WHERE - 95 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT - 19 * - ( + - col1 ) DIV col1 + - 2 AS col1 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-8411
SELECT - 19 * - ( + - col1 ) / col1 + - 2 AS col1 FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + COUNT( * ) + MIN( - - col2 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-8412
SELECT + COUNT ( * ) + MIN ( - - col2 ) FROM tab1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT DISTINCT - ( - 13 ) DIV 7 * - col1 * - 33 FROM tab1
----
1551
165
462

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - ( - 13 ) / 7 * - col1 * - 33 FROM tab1
----
1551
165
462

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 24 / + 44 * + ( - ( - 7 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL CAST( + 54 AS SIGNED ) * COUNT( col1 ) + - 38 AS col2 FROM tab1 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL CAST ( + 54 AS INTEGER ) * COUNT ( col1 ) + - 38 AS col2 FROM tab1 AS cor0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT - - 15 - + + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT - - 15 - + + COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL - ( - col0 ) + col2 * + col1 AS col1 FROM tab0 AS cor0
----
196
297
3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 * + col2 col0, - 88 + col2 AS col2 FROM tab1
----
2655
-29
3060
-20
4320
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT ALL + col2 DIV - + col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + col2 / - + col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + + COUNT( * ) AS col0 FROM tab2 WHERE NOT - ( + + 7 ) > + 23
----
3

skipif mysql # not compatible
query I rowsort label-8420
SELECT + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - ( + + 7 ) > + 23
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT col2 + - col0 col1 FROM tab0 WHERE NOT - col0 NOT IN ( 88 - 19, col2, + + 97 * + col2 * - CAST( - - 71 AS SIGNED ), col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8421
SELECT col2 + - col0 col1 FROM tab0 WHERE NOT - col0 NOT IN ( 88 - 19, col2, + + 97 * + col2 * - CAST ( - - 71 AS INTEGER ), col1 )
----

query I rowsort
SELECT col0 * - ( - col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - + ( ( + - col2 ) ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT + + MAX( - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8424
SELECT + + MAX ( - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT ( col0 ) AS col2, - 40 AS col1 FROM tab0 AS cor0
----
15
-40
87
-40
97
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT DISTINCT COUNT( * ) AS col0, 98 FROM tab1
----
3
98

skipif mysql # not compatible
query II rowsort label-8426
SELECT DISTINCT COUNT ( * ) AS col0, 98 FROM tab1
----
3
98

query I rowsort
SELECT ( + 84 ) AS col2 FROM tab1
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT - - CAST( + MIN( + - col0 ) AS SIGNED ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8428
SELECT DISTINCT - - CAST ( + MIN ( + - col0 ) AS INTEGER ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - - ( + 49 ) AS col2 FROM tab0 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 48 col2 FROM tab1 AS cor0
----
48

query I rowsort
SELECT col1 * - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL + COUNT( * ) * + 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-8432
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL does not promote INTEGER (32-bit) results
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + col1 * 98 * ( col0 ) * - + 86 / - col2 > - - col1 + + 92 + - 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT 65 * + - COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT 65 * + - COUNT ( * ) FROM tab0
----
-195

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 77 < 9 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT ( - COUNT( * ) ) * + 1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT ( - COUNT ( * ) ) * + 1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * - 4 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * - 4 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8438
SELECT DISTINCT - + col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8438
SELECT DISTINCT - + col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 * col2 + ( - - col0 ) + + + col0 AS col1 FROM tab2
----
-123072
-225238
-26887

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT DISTINCT ( + ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT ( + ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col1 * + - col1 + + col1, + 30 * + ( - + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 45 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 * - col0 >= NULL
----

query I rowsort
SELECT ALL 47 * - 37 * + 46 AS col2 FROM tab1 AS cor0
----
-79994
-79994
-79994

query I rowsort
SELECT ALL - col2 * - 0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8445
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - col1 + + + 93 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8445
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - col1 + + + 93 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT SUM( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT - ( + SUM( DISTINCT + - col0 ) ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8447
SELECT - ( + SUM ( DISTINCT + - col0 ) ) AS col0 FROM tab1
----
227

query I rowsort
SELECT DISTINCT + - ( 67 ) * + ( col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
-1495
-2616
-3811

query I rowsort
SELECT + col1 + + - col2 FROM tab2 cor0
----
28
37
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 22 + + col2 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 + col2 + + 65 + - - col0 col0 FROM tab2 AS cor0
----
134
169
198

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8452
SELECT + + ( + ( CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 85 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8452
SELECT + + ( + ( CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 85 AND NULL
----

query I rowsort
SELECT - 72 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col2 * - - 31 + - col2 FROM tab2
----
-134908
-32821
-79400

query I rowsort
SELECT + 29 * - col1 AS col2 FROM tab1
----
-1363
-145
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT + 13 DIV - 62 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT + 13 / - 62 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8457
SELECT + col1 - - CAST( + col2 AS SIGNED ) * ( - col1 ), + 10 AS col0 FROM tab0
----
-189
10
-3726
10
-98
10

skipif mysql # not compatible
query II rowsort label-8457
SELECT + col1 - - CAST ( + col2 AS INTEGER ) * ( - col1 ), + 10 AS col0 FROM tab0
----
-189
10
-3726
10
-98
10

query I rowsort
SELECT - ( 9 ) + - + col2 + 29 FROM tab2 AS cor0
----
-20
-3
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT ALL + col1 - col1 + + CAST( - col2 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL + col1 - col1 + + CAST ( - col2 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - 73 + - - MAX( 8 ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8460
SELECT - 73 + - - MAX ( 8 ) FROM tab1 AS cor0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IN ( + col0 * + + col1, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col0 - + 13 col1 FROM tab1
----
-50
-57
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8463
SELECT DISTINCT + CAST( NULL AS SIGNED ), col1 / + + col1 * + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8463
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col1 / + + col1 * + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 * 66 FROM tab1 AS cor0
----
-3102
-330
-924

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + col2 / + 6 + + col1 + - col2 NOT IN ( + 20, col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 21 * col0 * - + col0 AS col2 FROM tab1 AS cor0
----
-151725
-173901
-54621

query II rowsort
SELECT + col0 * - col1 AS col0, + 74 AS col2 FROM tab0
----
-1215
74
-1827
74
-97
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT MAX( ALL - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT MAX ( ALL - col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8469
SELECT ALL + CAST( + 44 AS SIGNED ) FROM tab2
----
44
44
44

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + CAST ( + 44 AS INTEGER ) FROM tab2
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT DISTINCT - CAST( - COUNT( - + 25 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - CAST ( - COUNT ( - + 25 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL - MAX( + col1 ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - MAX ( + col1 ) AS col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT DISTINCT col0 * - - col1 * 62 AS col1 FROM tab2 cor0
----
145452
305536
311550

onlyif mysql # DIV for integer division: 
query I rowsort label-8473
SELECT ALL + col1 * col1 DIV + col1 + - col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + col1 * col1 / + col1 + - col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col0 - + 17 col2 FROM tab2 AS cor0
----
111
133
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 + + - col2 + col1 AND + 4 * 40
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8476
SELECT ALL + 42 DIV col0 AS col0, col1 col2 FROM tab0 AS cor0
----
0
1
0
21
2
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8476
SELECT ALL + 42 / col0 AS col0, col1 col2 FROM tab0 AS cor0
----
0
1
0
21
2
81

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + 26 FROM tab2 WHERE NOT + ( 13 ) / - - 2 IS NULL
----
26
26
26

query I rowsort
SELECT DISTINCT + + 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 42 col1 FROM tab1
----
1974
210
588

query I rowsort
SELECT ALL - + 15 + col1 AS col0 FROM tab0 AS cor0
----
-14
6
66

query I rowsort
SELECT DISTINCT 19 * - col0 * - ( col2 ) + col1 + - + ( + + col2 ) * col1 + col0 * col2 * 67 AS col1 FROM tab2 AS cor0
----
217157
370281
89866

query II rowsort
SELECT DISTINCT - col1 + + 95 * - 97, - col2 AS col1 FROM tab1 AS cor0
----
-9220
-59
-9229
-96
-9262
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT ALL - col0 DIV col2 + + col2 AS col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - col0 / col2 + + col2 AS col2 FROM tab1 AS cor0
----
58
67
96

query I rowsort
SELECT DISTINCT col2 + - col1 * + 57 FROM tab1 AS cor0
----
-226
-2611
-702

query I rowsort
SELECT + col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + - 63 + - - COUNT( ALL - col1 ) FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8487
SELECT + - 63 + - - COUNT ( ALL - col1 ) FROM tab2 cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT + COUNT( * ) + + 64 AS col0 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-8488
SELECT + COUNT ( * ) + + 64 AS col0 FROM tab1
----
67

query I rowsort
SELECT DISTINCT - col1 + - 87 + - col2 FROM tab0
----
-118
-187
-215

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 61 + col1 IS NOT NULL
----

query I rowsort
SELECT + 84 * col1 + - + col0 FROM tab2
----
4238
5553
6404

query I rowsort
SELECT col0 + + 88 FROM tab2
----
134
152
163

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col2 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT + - ( - 30 ), - 17 AS col2 FROM tab2 AS cor0 WHERE 65 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8495
SELECT + AVG ( ALL - + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT + AVG ( ALL - + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + col1 * - col0 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT - col2 - + - col2 * col0 + + col2 + col2 AS col0 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN + 0 * - - 91 AND NULL
----

query I rowsort
SELECT 60 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT - 25, COUNT( * ) AS col2 FROM tab0 WHERE NOT - 30 - + col1 IS NULL
----
-25
3

skipif mysql # not compatible
query II rowsort label-8500
SELECT - 25, COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 30 - + col1 IS NULL
----
-25
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col1 FROM tab1
----
-28

query II rowsort
SELECT DISTINCT - col0, - 61 AS col1 FROM tab2
----
-46
-61
-64
-61
-75
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ALL - CAST( + - col2 AS SIGNED ) * - 95 + + 36 FROM tab0
----
-4429
-914
-9369

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - CAST ( + - col2 AS INTEGER ) * - 95 + + 36 FROM tab0
----
-4429
-914
-9369

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ( + SUM( ALL - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8504
SELECT ( + SUM ( ALL - col1 ) ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT MIN( ALL - + col1 ) * - 46 AS col0 FROM tab2 AS cor0
----
3542

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT MIN ( ALL - + col1 ) * - 46 AS col0 FROM tab2 AS cor0
----
3542

query I rowsort
SELECT 62 * - 33 FROM tab2 AS cor0
----
-2046
-2046
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL - MAX( ALL col1 ) col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8507
SELECT ALL - MAX ( ALL col1 ) col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 16 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 16 IS NULL
----
3

query I rowsort
SELECT col0 + - col0 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( ( - 52 ), ( + - 24 ) / + col1 + + + col2 )
----

query I rowsort
SELECT + col2 * col1 / - ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT DISTINCT - 45 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - 45 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-42

query II rowsort
SELECT ALL - col0 * + col1, col2 FROM tab1
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT DISTINCT 34 FROM tab2 AS cor0 WHERE NOT col1 * + ( col0 ) / - col0 + - - col0 + - 3 NOT IN ( + - col0 + - 48 * 18, + 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT - ( + COUNT( * ) ) + 66 AS col1 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-8515
SELECT - ( + COUNT ( * ) ) + 66 AS col1 FROM tab1 cor0
----
63

query I rowsort
SELECT ALL + - col0 - + 70 AS col2 FROM tab1 AS cor0
----
-121
-155
-161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 + - - col1 col1 FROM tab2 AS cor0
----
142
158
168

query I rowsort
SELECT + col1 * + 86 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1 AS col1, 75 AS col1 FROM tab2
----
-51
75
-67
75
-77
75

query I rowsort
SELECT ALL 55 + + - 58 AS col1 FROM tab1
----
-3
-3
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 <= - + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL MIN( 3 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL MIN ( 3 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT MAX( col2 ) - - - COUNT( * ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT MAX ( col2 ) - - - COUNT ( * ) FROM tab0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8524
SELECT - col1 - col0 + + 25, 60 + - ( - ( - col0 ) ) + + + col1 DIV col1 AS col2 FROM tab2
----
-116
-3
-117
-14
-72
15

skipif mysql # not compatible
query II rowsort label-8524
SELECT - col1 - col0 + + 25, 60 + - ( - ( - col0 ) ) + + + col1 / col1 AS col2 FROM tab2
----
-116
-3
-117
-14
-72
15

query I rowsort
SELECT col2 - - + col1 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + - col1 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT MIN( DISTINCT + 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT MIN ( DISTINCT + 76 ) FROM tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8528
SELECT ( - 68 ), - 31 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to ed253879f3fe561af5904bac15fae2f5

skipif mysql # not compatible
query II rowsort label-8528
SELECT ( - 68 ), - 31 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to ed253879f3fe561af5904bac15fae2f5

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT COUNT( * ) * + 50 col2 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT COUNT ( * ) * + 50 col2 FROM tab2 AS cor0
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-8530
SELECT + col1 DIV col1 AS col0, + col0 * ( + + col0 ) DIV col0 col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8530
SELECT + col1 / col1 AS col0, + col0 * ( + + col0 ) / col0 col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT + 82 * + MAX( + col0 ) AS col2 FROM tab1
----
7462

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT + 82 * + MAX ( + col0 ) AS col2 FROM tab1
----
7462

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8532
SELECT ALL col0 - - col0 / - 59 * - col1 AS col0 FROM tab2 WHERE NULL BETWEEN - + CAST( NULL AS DECIMAL ) * + - col1 * col2 * 24 - - 98 - + col0 AND + 35
----

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL col0 - - col0 / - 59 * - col1 AS col0 FROM tab2 WHERE NULL BETWEEN - + CAST ( NULL AS REAL ) * + - col1 * col2 * 24 - - 98 - + col0 AND + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL + 37 * - 72 + + - 54 + COUNT( * ) * - + COUNT( * ) + - + SUM( ALL + col1 ) FROM tab0 AS cor0
----
-2830

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL + 37 * - 72 + + - 54 + COUNT ( * ) * - + COUNT ( * ) + - + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-2830

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT + col2 + - - CAST( - + 64 AS SIGNED ) DIV - col0 AS col0 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + col2 + - - CAST ( - + 64 AS INTEGER ) / - col0 AS col0 FROM tab1
----
59
68
97

query I rowsort
SELECT col0 - + - 97 + + 83 - - col1 FROM tab1 AS cor0
----
245
270
318

query I rowsort
SELECT ALL - col0 * col1 * - col1 AS col0 FROM tab0 AS cor0
----
38367
97
98415

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - - col0 ) * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT DISTINCT 61 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT 61 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT + - COUNT( * ) * 16 + + 37 - + - SUM( ALL col0 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-566

skipif mysql # not compatible
query I rowsort label-8539
SELECT + - COUNT ( * ) * 16 + + 37 - + - SUM ( ALL col0 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-566

query I rowsort
SELECT + 54 + col2 AS col0 FROM tab2 AS cor0
----
112
77
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL ( SUM( ALL - 87 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL ( SUM ( ALL - 87 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8542
SELECT 31 DIV col2 AS col2, 48 + - col2 * col0 AS col0 FROM tab2
----
0
-2512
0
-4302
1
-1010

skipif mysql # not compatible
query II rowsort label-8542
SELECT 31 / col2 AS col2, 48 + - col2 * col0 AS col0 FROM tab2
----
0
-2512
0
-4302
1
-1010

query I rowsort
SELECT - + col1 * + + ( + + 74 ) AS col1 FROM tab1 AS cor0
----
-1036
-3478
-370

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 22 >= NULL
----

query II rowsort
SELECT - col0, + col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col2 FROM tab2 cor0
----
94
94
94

query II rowsort
SELECT + - col1 AS col0, + 51 AS col0 FROM tab0 AS cor0
----
-1
51
-21
51
-81
51

query II rowsort
SELECT ALL 94, 91 AS col1 FROM tab0 AS cor0
----
94
91
94
91
94
91

query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 AS col0 FROM tab1 cor0
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT ALL - 92 DIV + - col1 + + col0 + + - col0 * - 72 FROM tab2 AS cor0 WHERE NOT 6 > + 17 * + col0
----
3359
4673
5476

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - 92 / + - col1 + + col0 + + - col0 * - 72 FROM tab2 AS cor0 WHERE NOT 6 > + 17 * + col0
----
3359
4673
5476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT - col0 * - - ( + + CAST( - - 45 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

skipif mysql # not compatible
query I rowsort label-8551
SELECT - col0 * - - ( + + CAST ( - - 45 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8552
SELECT ALL * FROM tab2 WHERE NOT col2 = + col2 + + col2 + col1 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8552
SELECT ALL * FROM tab2 WHERE NOT col2 = + col2 + + col2 + col1 * CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT - ( - - COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col1 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col0 FROM tab1
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( - + 66 ) + - col1 AS col1 FROM tab0 cor0
----
-15
45
65

query I rowsort
SELECT - 93 + + 33 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT + 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query II rowsort
SELECT ALL - 67 AS col0, - col0 AS col2 FROM tab1 cor0
----
-67
-51
-67
-85
-67
-91

query I rowsort
SELECT DISTINCT + col1 * col1 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
38367
97
98415

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8563
SELECT ALL - ( AVG ( - CAST( NULL AS DECIMAL ) ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8563
SELECT ALL - ( AVG ( - CAST ( NULL AS REAL ) ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT DISTINCT - COUNT( * ) - - - 71 AS col1 FROM tab0 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - COUNT ( * ) - - - 71 AS col1 FROM tab0 cor0
----
-74

query I rowsort
SELECT + 23 - - - col0 FROM tab0 AS cor0
----
-64
-74
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84, - 33 * - + 52 * + + 39 col0 FROM tab0
----
-84
66924
-84
66924
-84
66924

query I rowsort
SELECT ALL + 21 * + + col0 FROM tab2
----
1344
1575
966

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0, - 17 + + col1 AS col0 FROM tab2
----
46
34
64
60
75
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL ( COUNT( * ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query II rowsort
SELECT col1, 8 FROM tab0 AS cor0
----
1
8
21
8
81
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + 0 * + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8572
SELECT + 0 * + + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab1 cor0
----
-92

query I rowsort
SELECT + - 97 * - 4 AS col2 FROM tab2 AS cor0
----
388
388
388

query I rowsort
SELECT DISTINCT + + col0 + + + 70 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1065
6177
6887

query I rowsort
SELECT - - 28 * + col1 FROM tab2 cor0
----
1428
1876
2156

query I rowsort
SELECT DISTINCT + col1 + + ( + col2 ) + col0 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT ALL - col0 DIV + 68 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - col0 / + 68 FROM tab0 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL - col1, 38 AS col0 FROM tab2 WHERE NOT - + col2 BETWEEN + col1 AND + col2
----
-51
38
-67
38
-77
38

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - col1 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - ( + COUNT( ALL 30 ) ) + - - 37 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-8581
SELECT - ( + COUNT ( ALL 30 ) ) + - - 37 FROM tab0
----
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - + col0 + + 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT DISTINCT - col1 + 83 DIV col0 DIV - + col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT - col1 + 83 / col0 / - + col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - ( + - col2 ) AS col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8585
SELECT col0 * + 74 FROM tab0 WHERE NOT CAST( col1 AS DECIMAL ) IS NULL
----
1110
6438
7178

skipif mysql # not compatible
query I rowsort label-8585
SELECT col0 * + 74 FROM tab0 WHERE NOT CAST ( col1 AS REAL ) IS NULL
----
1110
6438
7178

onlyif mysql # DIV for integer division: 
query I rowsort label-8586
SELECT DISTINCT + 55 DIV - col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT + 55 / - col2 FROM tab0
----
-1
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 + - col0 col1 FROM tab1 WHERE NOT ( - col1 / - col2 ) > - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 54 * + col0 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 83 * col1 FROM tab0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - COUNT( - 81 ) * SUM( ALL 59 + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1086

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - COUNT ( - 81 ) * SUM ( ALL 59 + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + + 20 col1 FROM tab1
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - MIN( 38 ) AS col0 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-8592
SELECT - MIN ( 38 ) AS col0 FROM tab0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT + 96 + + CAST( ( + col2 ) AS SIGNED ) FROM tab2
----
119
136
154

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + 96 + + CAST ( ( + col2 ) AS INTEGER ) FROM tab2
----
119
136
154

query I rowsort
SELECT 48 + + col0 * + col2 AS col0 FROM tab1
----
4944
5063
6236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8595
SELECT - 75 DIV - COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-8595
SELECT - 75 / - COUNT ( * ) FROM tab2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT + 65 DIV col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8596
SELECT + 65 / col0 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col0 + + 37 FROM tab1
----
122
128
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT ALL - col2 DIV - 71 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - col2 / - 71 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT - col1 DIV col0 col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT - col1 / col0 col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8600
SELECT ALL * FROM tab2 WHERE col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8600
SELECT ALL * FROM tab2 WHERE col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 44 col0 FROM tab1
----
2244
3740
4004

query I rowsort
SELECT ALL 44 + - col1 FROM tab2
----
-23
-33
-7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * - col2 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT + 89 + CAST( ( - 82 ) AS SIGNED ) AS col0 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-8604
SELECT + 89 + CAST ( ( - 82 ) AS INTEGER ) AS col0 FROM tab0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8605
SELECT * FROM tab1 WHERE NOT - CAST( + col0 AS SIGNED ) <= - ( 81 ) + col2
----

skipif mysql # not compatible
query III rowsort label-8605
SELECT * FROM tab1 WHERE NOT - CAST ( + col0 AS INTEGER ) <= - ( 81 ) + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 ) <> col2 - + 54 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 28 + + col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN - 8 AND ( 41 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT + col0 DIV 84 + - col2 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-8609
SELECT + col0 / 84 + - col2 FROM tab1
----
-58
-67
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ( - MIN( DISTINCT col1 ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8610
SELECT ( - MIN ( DISTINCT col1 ) ) AS col2 FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 50 >= - col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT MIN( ALL - 93 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8612
SELECT MIN ( ALL - 93 ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ( ( + MIN( ALL 84 ) ) ) AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-8613
SELECT ( ( + MIN ( ALL 84 ) ) ) AS col1 FROM tab0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT MAX( ALL 47 ) * + 60 + + ( - COUNT( * ) ) DIV 65 FROM tab0
----
2820

skipif mysql # not compatible
query I rowsort label-8614
SELECT MAX ( ALL 47 ) * + 60 + + ( - COUNT ( * ) ) / 65 FROM tab0
----
2820

query I rowsort
SELECT DISTINCT col2 - ( + col1 ) * - col2 FROM tab2
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT - CAST( NULL AS SIGNED ) + - 2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT - CAST ( NULL AS INTEGER ) + - 2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 38 + 72 AS col0 FROM tab2
----
110
110
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8618
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL AVG ( DISTINCT - col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 67 + - ( ( ( col2 ) ) ) * + 41 FROM tab1 AS cor0
----
-2352
-2721
-3869

query I rowsort
SELECT - - col0 + col1 * 63 AS col0 FROM tab2 AS cor0
----
3259
4296
4915

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 * - col1 + col1 <> - ( col2 ) * 94 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 > col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 93 < ( col2 )
----
97
1
99

query I rowsort
SELECT ALL + 0 + + ( ( + col2 ) + 34 * 71 ) * - 37 AS col2 FROM tab0 AS cor0
----
-89688
-91057
-92981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE 13 * col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + + 88 FROM tab0 cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8628
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) + - col0 BETWEEN - col0 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8628
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) + - col0 BETWEEN - col0 * CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - ( col2 ) )
----

query I rowsort
SELECT - col1 * - - col2 AS col0 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + ( + 20 ) col0 FROM tab0
----
1660
1660
1660

query I rowsort
SELECT DISTINCT + 66 + - + col1 * ( col0 + 63 * col0 ) FROM tab0
----
-116862
-6142
-77694

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT - COUNT( * ) * + + 62 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-8633
SELECT - COUNT ( * ) * + + 62 FROM tab1
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT 22 DIV - 83 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT 22 / - 83 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT - ( MIN( - 28 ) ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-8635
SELECT - ( MIN ( - 28 ) ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT - COUNT( * ) * 11 AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-8636
SELECT - COUNT ( * ) * 11 AS col2 FROM tab2
----
-33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + 76 ) IN ( 57 + 32 )
----

query I rowsort
SELECT ALL + - col2 * col2 * col1 + 66 FROM tab0 AS cor0
----
-178863
-2034
-9735

query I rowsort
SELECT DISTINCT + col1 + + + 0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT 86 * col1 AS col2 FROM tab2 AS cor0 WHERE 73 + col0 >= NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col2 + - col1 - 53 FROM tab2 AS cor0
----
-1730
-3484
-633

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT + 39 + + COUNT( * ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8642
SELECT + 39 + + COUNT ( * ) FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 AND ( col0 / col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 40 )
----

query I rowsort
SELECT ALL - 21 * - col2 FROM tab2 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT MAX( + 69 ) * 34 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
2346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8646
SELECT MAX ( + 69 ) * 34 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL - COUNT( ALL + col2 ) * + + 10 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - COUNT ( ALL + col2 ) * + + 10 FROM tab0
----
-30

query III rowsort
SELECT * FROM tab2 WHERE ( 26 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) > NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 / 33 - + col1 )
----

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 - 98 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8652
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 - 98 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 59 * - ( + col1 ) / - ( - 23 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 12 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - ( - col0 ) AS col0 FROM tab1 WHERE + + 62 * col2 * ( + 76 ) IS NOT NULL
----
425
4277
714

query I rowsort
SELECT ALL - 0 * 29 FROM tab0 WHERE - 80 BETWEEN + col2 AND col2 * + 45 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT + CAST( - 53 AS SIGNED ) FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-8657
SELECT + CAST ( - 53 AS INTEGER ) FROM tab2
----
-53
-53
-53

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + + col1 ) BETWEEN 51 AND col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT col1 - 48 AS col2 FROM tab2 WHERE NOT col2 <> + 36
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 30 * + col1 / - col0 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 IN ( - - 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL BETWEEN + col1 AND col1 - - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT DISTINCT + 94 DIV - col1 AS col1 FROM tab0
----
-1
-4
-94

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT + 94 / - col1 AS col1 FROM tab0
----
-1
-4
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8665
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( - 83 AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8665
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( - 83 AS INTEGER ) ) < NULL
----

query I rowsort
SELECT ALL 89 + + + 26 AS col0 FROM tab2 cor0
----
115
115
115

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - col2 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) + 10 * - CAST( NULL AS SIGNED ) + + 26 + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) + 10 * - CAST ( NULL AS INTEGER ) + + 26 + col0 AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col1 AS col1, col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT DISTINCT 6 DIV + - COUNT( * ) + - 4 + + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT 6 / + - COUNT ( * ) + - 4 + + COUNT ( * ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 IN ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT ALL COUNT( * ) + - 97 AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL COUNT ( * ) + - 97 AS col2 FROM tab0 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT ALL - + col2 DIV + col0 + - + col0 col2 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8673
SELECT ALL - + col2 / + col0 + - + col0 col2 FROM tab0 AS cor0
----
-18
-87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + COUNT( * ) * - - 88 + - + COUNT( * ) AS col0 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-8674
SELECT + COUNT ( * ) * - - 88 + - + COUNT ( * ) AS col0 FROM tab2
----
261

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - + col2 IS NULL
----
59
68
96

query I rowsort
SELECT ALL - ( + 87 ) AS col0 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT - + col0 FROM tab1 WHERE 14 <= + col2
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8678
SELECT * FROM tab1 WHERE + 30 * - + col1 * 89 + + + 18 + col2 > - col1 + CAST( col2 AS SIGNED ) * - col0
----

skipif mysql # not compatible
query III rowsort label-8678
SELECT * FROM tab1 WHERE + 30 * - + col1 * 89 + + + 18 + col2 > - col1 + CAST ( col2 AS INTEGER ) * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) * 86 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 26 ) NOT BETWEEN - col0 AND - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) * 86 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 26 ) NOT BETWEEN - col0 AND - - 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT ALL - - 13 DIV + 61 * col0 + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - - 13 / + 61 * col0 + col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8681
SELECT COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8681
SELECT COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col2, + col0 col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + 55 * + col0 * + - 72 + - col2 FROM tab1 AS cor0
----
-202056
-336659
-360428

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - + COUNT( * ) * - COUNT( * ) + + MAX( DISTINCT + 7 ) * 56 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT - + COUNT ( * ) * - COUNT ( * ) + + MAX ( DISTINCT + 7 ) * 56 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 * + col0
----
NULL

query I rowsort
SELECT + + 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * + - col0 col0 FROM tab2
----
-4508
-6272
-7350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL 85 / + CAST( NULL AS SIGNED ) - - 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL 85 / + CAST ( NULL AS INTEGER ) - - 32 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT + - COUNT( ALL - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + - COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8689
SELECT ALL - CAST( - - MAX( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - CAST ( - - MAX ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - + 84 * + COUNT( * ) FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8690
SELECT - + 84 * + COUNT ( * ) FROM tab0 AS cor0
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col0 ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8692
SELECT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 57 AS col0 FROM tab2 WHERE NOT ( + 83 ) NOT BETWEEN - 40 * - 54 AND - + 77
----

query II rowsort
SELECT ALL - col0 AS col2, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT ALL col1 AS col0, - 33 FROM tab2
----
51
-33
67
-33
77
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT COUNT( * ) - - COUNT( * ) FROM tab1 WHERE NOT - col0 * - 59 * - + col2 * + + 11 * + 33 + - 26 + + col0 BETWEEN 28 AND NULL
----
6

skipif mysql # not compatible
query I rowsort label-8696
SELECT COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE NOT - col0 * - 59 * - + col2 * + + 11 * + 33 + - 26 + + col0 BETWEEN 28 AND NULL
----
6

query I rowsort
SELECT col1 / col0 AS col0 FROM tab0 WHERE NOT 81 * + + col2 * + col0 * 37 * + - 74 NOT BETWEEN NULL AND ( + - col1 )
----

query II rowsort
SELECT col2 AS col2, + col2 * + + 16 * - col2 AS col0 FROM tab1
----
59
-55696
68
-73984
96
-147456

query I rowsort
SELECT ALL - + ( + 26 ) + 7 AS col1 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + - MIN( + col2 ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8700
SELECT + - MIN ( + col2 ) col2 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT - 70 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT - COUNT( * ) + COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-8704
SELECT - COUNT ( * ) + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
0
3

query I rowsort
SELECT + col2 + 89 - + 92 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-2508
-7169
-8216

query I rowsort
SELECT ALL + 58 FROM tab2 AS cor0 WHERE + 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT - COUNT( 97 ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT - COUNT ( 97 ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT DISTINCT + MAX( - ( + - col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT + MAX ( - ( + - col2 ) ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + col1 + - 41 + + + 69 AS col2 FROM tab0
----
109
29
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 * + 4 col1 FROM tab2
----
-236
-236
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - COUNT( * ) FROM tab1 WHERE col2 + - col0 + - - col2 NOT BETWEEN col0 AND col1
----
-3

skipif mysql # not compatible
query I rowsort label-8711
SELECT - COUNT ( * ) FROM tab1 WHERE col2 + - col0 + - - col2 NOT BETWEEN col0 AND col1
----
-3

query I rowsort
SELECT col1 * - - 9 AS col2 FROM tab1
----
126
423
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8713
SELECT CAST( NULL AS DECIMAL ) * + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT CAST ( NULL AS REAL ) * + + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col2 * + col2 AND NOT ( col0 * 59 * 3 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT ALL col2 * + CAST( col1 AS SIGNED ) * - - col1 col0 FROM tab0
----
308367
4410
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8715
SELECT ALL col2 * + CAST ( col1 AS INTEGER ) * - - col1 col0 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT 45 - COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-8716
SELECT 45 - COUNT ( * ) FROM tab2
----
42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL AND - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT DISTINCT - 55 DIV 4 AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT - 55 / 4 AS col0 FROM tab0
----
-13

query I rowsort
SELECT DISTINCT - 49 + + col1 FROM tab1
----
-2
-35
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col0 * - - col1 - - col2 - - + col1 * col0 <> col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL + - COUNT( ALL - col2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8721
SELECT ALL + - COUNT ( ALL - col2 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 69 FROM tab2 AS cor0 WHERE NULL < - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT ALL - - col1 DIV - col2 + + - col1 + + 69 AS col0 FROM tab2 AS cor0
----
-9
1
16

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - - col1 / - col2 + + - col1 + + 69 AS col0 FROM tab2 AS cor0
----
-9
1
16

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col1 * 49 FROM tab1
----
-2303
-245
-686

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT + CAST( + col2 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8727
SELECT + CAST ( + col2 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT ALL 41 DIV + 62 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8728
SELECT ALL 41 / + 62 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 76 + col0 * col2 * + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 76 + col0 * col2 * + CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 34 col1, col0 AS col1 FROM tab2 AS cor0
----
34
46
34
64
34
75

query II rowsort
SELECT col0, - 47 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
-47
64
-47
75
-47

query I rowsort
SELECT ALL + - ( - + 44 ) FROM tab0 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + MIN( col2 ) * - - 93 AS col1 FROM tab0
----
930

skipif mysql # not compatible
query I rowsort label-8733
SELECT + MIN ( col2 ) * - - 93 AS col1 FROM tab0
----
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 * 50 col1, - col2 FROM tab0
----
2200
-10
2200
-47
2200
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8735
SELECT * FROM tab1 WHERE NOT - ( + col2 ) / - col0 NOT IN ( + CAST( + col1 AS SIGNED ), col0, - - col2 )
----

skipif mysql # not compatible
query III rowsort label-8735
SELECT * FROM tab1 WHERE NOT - ( + col2 ) / - col0 NOT IN ( + CAST ( + col1 AS INTEGER ), col0, - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + col0 col2, col0 * - - 4 FROM tab0 AS cor0
----
174
348
194
388
30
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8737
SELECT DISTINCT + 32 DIV - + 39 + - - CAST( col0 AS SIGNED ) + + + col0 + - 45 DIV 88 * - col2 AS col1 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT + 32 / - + 39 + - - CAST ( col0 AS INTEGER ) + + + col0 + - 45 / 88 * - col2 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - col1 * + col2 * + + 96 - + col2 FROM tab0 AS cor0
----
-20170
-365519
-9603

query I rowsort
SELECT + col1 + - - col0 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + 95 * 46 * - col0 + + + ( + col2 ) + + 41 FROM tab0 AS cor0
----
-380139
-423750
-65462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 57 + + - col1 col1 FROM tab2 AS cor0
----
-10
-20
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( - 61 > + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( - 61 > + 28 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8743
SELECT - - col2 + + col2 * + CAST( NULL AS DECIMAL ) * - + 88 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT - - col2 + + col2 * + CAST ( NULL AS REAL ) * - + 88 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - - 85 + - 61 AS col1 FROM tab1 AS cor0
----
120
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT 35 + COUNT( * ) + + COUNT( * ) + + COUNT( * ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-8745
SELECT 35 + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT COUNT( * ) AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8746
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT 14 * 63 FROM tab2
----
882
882
882

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 - + 24 IS NULL OR NOT + - 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8750
SELECT - COUNT( * ) * - COUNT( * ) DIV - COUNT( * ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8750
SELECT - COUNT ( * ) * - COUNT ( * ) / - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 77 * + col0 FROM tab0 AS cor0
----
-1155
-6699
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - + col0 col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT ALL - + COUNT( * ) DIV + 37 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - + COUNT ( * ) / + 37 AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8754
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE - 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT - 18 * - col2 + + col0 + CAST( - - ( - 38 ) AS SIGNED ) - + col1 FROM tab2 cor0
----
1014
371
669

skipif mysql # not compatible
query I rowsort label-8756
SELECT - 18 * - col2 + + col0 + CAST ( - - ( - 38 ) AS INTEGER ) - + col1 FROM tab2 cor0
----
1014
371
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

query II rowsort
SELECT ALL - 90 * + col1 + - col1 AS col0, - col2 * + - ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-4641
-529
-6097
-3364
-7007
-1600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8759
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL CAST ( NULL AS REAL ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT COUNT( * ) DIV + COUNT( DISTINCT - 64 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8761
SELECT COUNT ( * ) / + COUNT ( DISTINCT - 64 ) col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 20 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT - 73 * - CAST( NULL AS SIGNED ) * 12 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT - 73 * - CAST ( NULL AS INTEGER ) * 12 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 AS col1, 44 + + col0 FROM tab0
----
15
59
87
131
97
141

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT - 57 DIV 38 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8765
SELECT - 57 / 38 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT - MAX( DISTINCT 47 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-8766
SELECT - MAX ( DISTINCT 47 ) FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > - col1 - + 81
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > - col1 - + 81
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 + - 65 col1 FROM tab0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col0 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT MAX( DISTINCT + col1 ) + 95 FROM tab0
----
176

skipif mysql # not compatible
query I rowsort label-8770
SELECT MAX ( DISTINCT + col1 ) + 95 FROM tab0
----
176

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT IN ( - 98 * - col0, - col0 + + col0 * + - col2, - - col0, + col0, - col0, 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND - 44
----

query I rowsort
SELECT DISTINCT - - col0 + + 29 * - + 7 AS col0 FROM tab1 AS cor0
----
-112
-118
-152

query I rowsort
SELECT DISTINCT - col2 + - col2 + col0 AS col0 FROM tab1 cor0
----
-141
-33
-45

query II rowsort
SELECT ALL + col2 - + col2 - - col2 + - + col1 - - - col0 AS col2, + col1 FROM tab0 AS cor0
----
-49
81
-98
21
1
1

query I rowsort
SELECT DISTINCT - 47 + + col2 AS col0 FROM tab0 AS cor0
----
-37
0
52

query I rowsort
SELECT + - 58 - + col2 AS col1 FROM tab0 cor0
----
-105
-157
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - - ( - - col2 ) AS col0, 47 * - col1 col0 FROM tab1
----
110
-658
115
-2209
64
-235

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN + - 86 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT ALL 39, COUNT( * ) AS col0 FROM tab0
----
39
3

skipif mysql # not compatible
query II rowsort label-8780
SELECT ALL 39, COUNT ( * ) AS col0 FROM tab0
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT ( + + MIN( + ( CAST( NULL AS SIGNED ) ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT ( + + MIN ( + ( CAST ( NULL AS INTEGER ) ) ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT - COUNT( * ) AS col0, - 23 FROM tab0
----
-3
-23

skipif mysql # not compatible
query II rowsort label-8783
SELECT - COUNT ( * ) AS col0, - 23 FROM tab0
----
-3
-23

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( + col1 + + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT - + COUNT( * ) * 78 col2 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8786
SELECT DISTINCT - + COUNT ( * ) * 78 col2 FROM tab0 AS cor0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + - SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8787
SELECT + - SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT col2 * + + 84 - col0 * + col0 * - col0 FROM tab1 AS cor0
----
140715
619081
759283

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL - - ( - COUNT( * ) ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8789
SELECT ALL - - ( - COUNT ( * ) ) * + COUNT ( * ) col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT 63 * + col1 AS col2 FROM tab1 cor0
----
2961
315
882

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT DISTINCT + col0 DIV + - col1 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + col0 / + - col1 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT + 34 + COUNT( col2 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + 34 + COUNT ( col2 ) FROM tab2 AS cor0
----
37

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - col1
----

query II rowsort
SELECT 95 * 62, - 40 AS col0 FROM tab0 WHERE NOT col2 * + 31 / + 44 + - 1 + col0 * col1 * - - ( - col0 ) - - + 36 IS NULL
----
5890
-40
5890
-40
5890
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL MAX( + + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL MAX ( + + col2 ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT + SUM( + + col1 ) + + SUM( + col1 ) AS col2 FROM tab0
----
206

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT + SUM ( + + col1 ) + + SUM ( + col1 ) AS col2 FROM tab0
----
206

query I rowsort
SELECT ALL 36 * + col2 AS col1 FROM tab1
----
2124
2448
3456

query I rowsort
SELECT DISTINCT 54 * + + 47 FROM tab0
----
2538

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8799
SELECT * FROM tab1 AS cor0 WHERE + ( - col0 ) * - + CAST( - col1 AS SIGNED ) * + CAST( - - col1 AS SIGNED ) * - - 45 + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8799
SELECT * FROM tab1 AS cor0 WHERE + ( - col0 ) * - + CAST ( - col1 AS INTEGER ) * + CAST ( - - col1 AS INTEGER ) * - - 45 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + MAX( 44 ) AS col1 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8800
SELECT + MAX ( 44 ) AS col1 FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL - 43 * - - ( - 56 ) FROM tab1
----
2408
2408
2408

query I rowsort
SELECT - - ( col2 ) + + col0 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + + 43 * + col2 FROM tab1 AS cor0
----
2537
2924
4128

query I rowsort
SELECT ALL col1 + - - col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 49 + - 92 AS col1 FROM tab2 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT 88 + + - COUNT( * ) AS col1 FROM tab2 cor0
----
85

skipif mysql # not compatible
query I rowsort label-8806
SELECT 88 + + - COUNT ( * ) AS col1 FROM tab2 cor0
----
85

query III rowsort
SELECT * FROM tab0 WHERE + - col0 <= NULL
----

query II rowsort
SELECT DISTINCT ( - - 42 ) AS col0, col2 + + + col0 - + 50 + + col2 * - + col0 AS col1 FROM tab2
----
42
-1039
42
-2506
42
-4267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT + ( + ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT + ( + ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT - - SUM( DISTINCT col0 ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8810
SELECT DISTINCT - - SUM ( DISTINCT col0 ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
681

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8811
SELECT DISTINCT 48, + 36 + + + col0 + + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
48
113
48
34
48
4

skipif mysql # not compatible
query II rowsort label-8811
SELECT DISTINCT 48, + 36 + + + col0 + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
48
113
48
34
48
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 82 * + col1 / - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + 64 * - 6 + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-393

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 64 * - 6 + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-393

query II rowsort
SELECT 35, col2 AS col2 FROM tab0
----
35
10
35
47
35
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8815
SELECT col2 AS col1, - ( + 91 ) DIV + col2 + col0 FROM tab0
----
10
78
47
14
99
97

skipif mysql # not compatible
query II rowsort label-8815
SELECT col2 AS col1, - ( + 91 ) / + col2 + col0 FROM tab0
----
10
78
47
14
99
97

query II rowsort
SELECT ALL + + col0 AS col1, - 18 AS col1 FROM tab0 AS cor0
----
15
-18
87
-18
97
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT + 58 * + - 70 + - col2 * 1 * - CAST( + col0 AS SIGNED ) + - 10 FROM tab2 AS cor0
----
-1510
-3012
280

skipif mysql # not compatible
query I rowsort label-8817
SELECT + 58 * + - 70 + - col2 * 1 * - CAST ( + col0 AS INTEGER ) + - 10 FROM tab2 AS cor0
----
-1510
-3012
280

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - col0 ) + + col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT DISTINCT - - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 45 AS col2 FROM tab0 cor0
----
-45

query I rowsort
SELECT ALL + + 47 AS col2 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 45 + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT DISTINCT - 40 / - + col2 + CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - 40 / - + col2 + CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT col0 DIV - 53 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT col0 / - 53 FROM tab0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - ( col0 ) ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8828
SELECT DISTINCT - COUNT( * ) + - COUNT( * ), + 50 AS col0 FROM tab1
----
-6
50

skipif mysql # not compatible
query II rowsort label-8828
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ), + 50 AS col0 FROM tab1
----
-6
50

query I rowsort
SELECT DISTINCT - col0 + col2 + col1 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT MAX( DISTINCT col1 ) * + + 15 + - - COUNT( * ) + + - 84 * - - MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
1134

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT MAX ( DISTINCT col1 ) * + + 15 + - - COUNT ( * ) + + - 84 * - - MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
1134

query I rowsort
SELECT ALL - col1 + + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + ( ( - 9 ) ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + + - col2 - + 57 * + 67 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT ALL + col2 DIV - - col2 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + col2 / - - col2 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT - col0 + - - CAST( 60 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE ( NULL BETWEEN col1 * + col0 AND + 37 - col0 * + 35 + - + col1 )
----

skipif mysql # not compatible
query I rowsort label-8835
SELECT - col0 + - - CAST ( 60 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE ( NULL BETWEEN col1 * + col0 AND + 37 - col0 * + 35 + - + col1 )
----

query I rowsort
SELECT ALL ( + 79 ) FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT MIN( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT 44 FROM tab0 WHERE NOT - + col1 + - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8839
SELECT DISTINCT 37 * - col0 DIV + col0 AS col2 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT 37 * - col0 / + col0 AS col2 FROM tab1
----
-37

query I rowsort
SELECT + col0 * - - col1 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT - 61 AS col1, COUNT( * ) AS col1 FROM tab1
----
-61
3

skipif mysql # not compatible
query II rowsort label-8841
SELECT - 61 AS col1, COUNT ( * ) AS col1 FROM tab1
----
-61
3

query II rowsort
SELECT col1, 61 * 30 FROM tab1
----
14
1830
47
1830
5
1830

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 65 / - col0 * - col1, - col2 )
----

query II rowsort
SELECT col1 AS col0, ( col1 ) FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - + col0 + - col0 * + 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT + + COUNT( + - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8846
SELECT + + COUNT ( + - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8847
SELECT ALL - col2 / + col1 * + + col1, 85 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, col1 * - col1 * - + 20, + col0 * CAST( NULL AS SIGNED ) * + - 46, 52 )
----

skipif mysql # not compatible
query II rowsort label-8847
SELECT ALL - col2 / + col1 * + + col1, 85 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, col1 * - col1 * - + 20, + col0 * CAST ( NULL AS INTEGER ) * + - 46, 52 )
----

query I rowsort
SELECT + 4 * + + 30 FROM tab1 AS cor0
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT - SUM( col2 ) * 32 col0 FROM tab2
----
-3872

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8849
SELECT - SUM ( col2 ) * 32 col0 FROM tab2
----
-3872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NOT 2 * + - 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 68 + - 7 AS col2 FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT + 98 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + 98 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 - - col1 col0 FROM tab1 AS cor0
----
-1330
-290
-3149

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= col2
----

query I rowsort
SELECT - 5 * - + col2 + + 10 AS col1 FROM tab1 cor0
----
305
350
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8856
SELECT CAST( NULL AS SIGNED ) + - MAX( + + col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT CAST ( NULL AS INTEGER ) + - MAX ( + + col0 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = col0 AND NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL + SUM( - - col0 ) + + 29 AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + SUM ( - - col0 ) + + 29 AS col1 FROM tab0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT + COUNT( - ( + - ( ( - col1 ) ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8859
SELECT + COUNT ( - ( + - ( ( - col1 ) ) ) ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL col2 AS col2, + 61 AS col2 FROM tab1 AS cor0
----
59
61
68
61
96
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL - ( + 56 ) + CAST( + col2 AS SIGNED ) * + 85 FROM tab0 AS cor0
----
3939
794
8359

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - ( + 56 ) + CAST ( + col2 AS INTEGER ) * + 85 FROM tab0 AS cor0
----
3939
794
8359

query I rowsort
SELECT ALL 96 - + 57 AS col0 FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT + col0 - + 94 AS col2 FROM tab2
----
-19
-30
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8864
SELECT DISTINCT + COUNT( + 11 ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT + COUNT ( + 11 ) / - COUNT ( * ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT + col2 DIV col1 - col1 AS col2 FROM tab1 AS cor0
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-8865
SELECT + col2 / col1 - col1 AS col2 FROM tab1 AS cor0
----
-46
-8
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + - col1 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - 24 + + col1
----

query II rowsort
SELECT ALL + col1 * - 62, - col2 AS col2 FROM tab2 AS cor0
----
-3162
-23
-4154
-58
-4774
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT col2 * - CAST( - - 85 AS SIGNED ) FROM tab1 AS cor0
----
-5015
-5780
-8160

skipif mysql # not compatible
query I rowsort label-8869
SELECT col2 * - CAST ( - - 85 AS INTEGER ) FROM tab1 AS cor0
----
-5015
-5780
-8160

query I rowsort
SELECT - 41 * col0 * + col2 AS col1 FROM tab0 AS cor0
----
-28905
-35670
-393723

query I rowsort
SELECT col0 * + col0 * + col2 + ( - + col0 ) AS col1 FROM tab0 cor0
----
10560
75603
931394

query I rowsort
SELECT DISTINCT + 31 * - - 92 AS col2 FROM tab0 AS cor0
----
2852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 + + - col2 col2 FROM tab0 AS cor0
----
-1262
-1837
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-8874
SELECT DISTINCT + col2 DIV + col0 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8874
SELECT DISTINCT + col2 / + col0 col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 AND + col1 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 76 + + + 53 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - SUM( - 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-8877
SELECT - SUM ( - 75 ) FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT COUNT( - - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8878
SELECT COUNT ( - - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL + + 68 + + + COUNT( * ) * + 77 FROM tab2 cor0
----
299

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + + 68 + + + COUNT ( * ) * + 77 FROM tab2 cor0
----
299

query II rowsort
SELECT DISTINCT - 0, + 66 AS col0 FROM tab0
----
0
66

query I rowsort
SELECT - col2 + + ( - 95 ) FROM tab1
----
-154
-163
-191

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT DISTINCT 23 + ( - COUNT( * ) ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT 23 + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8884
SELECT ALL 71 DIV - MAX( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL 71 / - MAX ( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1

query II rowsort
SELECT - 28 AS col0, + col2 * col2 * - + 36 AS col1 FROM tab0 AS cor0
----
-28
-352836
-28
-3600
-28
-79524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL col2 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL col2 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col1 col0 FROM tab0 cor0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + 39 ) = + col0 * + CAST( col0 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + 39 ) = + col0 * + CAST ( col0 AS INTEGER )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 + + col2 - col1 FROM tab1 AS cor0
----
14
133
47
112
5
139

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 92 col0, 64 AS col2 FROM tab0 WHERE - col0 / + col2 * col2 / col2 IS NOT NULL
----
92
64
92
64
92
64

query I rowsort
SELECT - 85 - - col0 + 4 AS col1 FROM tab2
----
-17
-35
-6

query I rowsort
SELECT ALL - - col0 * + ( - - col1 ) + + + ( col1 ) FROM tab2 cor0
----
2397
5005
5092

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND ( + - col2 )
----

query I rowsort
SELECT DISTINCT + 21 FROM tab0 AS cor0 JOIN tab1 cor1 ON - 15 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT MIN( ALL + - 60 ) * - 77 * + + 56 FROM tab2, tab0 AS cor0
----
258720

skipif mysql # not compatible
query I rowsort label-8896
SELECT MIN ( ALL + - 60 ) * - 77 * + + 56 FROM tab2, tab0 AS cor0
----
258720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT - + MAX( ALL - 5 ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT - + MAX ( ALL - 5 ) AS col2 FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL - 53 * + + COUNT( ALL + col0 ) * + + 50 FROM tab1 cor0
----
-7950

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL - 53 * + + COUNT ( ALL + col0 ) * + + 50 FROM tab1 cor0
----
-7950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8901
SELECT - 10 * + COUNT( * ) DIV - SUM( ALL col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT - 10 * + COUNT ( * ) / - SUM ( ALL col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8902
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col1 * + - col1 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + CAST ( NULL AS REAL ) * col1 * + - col1 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col2 * - 71 * - - col2 + + col1 FROM tab1 AS cor0
----
-247146
-328257
-654322

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) NOT BETWEEN NULL AND + 33
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL + - CAST( + col0 AS SIGNED ) * + + ( col2 ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + - CAST ( + col0 AS INTEGER ) * + + ( col2 ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col0 * - ( - + col2 ) FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT - ( - + col1 ), + col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8908
SELECT DISTINCT - col0 DIV + CAST( + 79 AS SIGNED ) AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - col0 / + CAST ( + 79 AS INTEGER ) AS col0 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT COUNT( * ) - ( COUNT( * ) ) / - + MAX( - - 95 ) + + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT COUNT ( * ) - ( COUNT ( * ) ) / - + MAX ( - - 95 ) + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - + col2 <= col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT ALL + + col2 * + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8911
SELECT ALL + + col2 * + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - - MAX( DISTINCT - 35 ) + + 63 AS col2 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8912
SELECT - - MAX ( DISTINCT - 35 ) + + 63 AS col2 FROM tab1 AS cor0
----
28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 49 * - 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * ( - + 46 ) AS col0 FROM tab1 AS cor0
----
2346
3910
4186

query I rowsort
SELECT col2 * 92 FROM tab2
----
2116
3680
5336

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT ALL - col2 DIV + 64 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - col2 / + 64 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < NULL AND NOT ( NOT - + 3 * ( + + 4 ) NOT BETWEEN - 69 AND col2 + - 48 )
----

query I rowsort
SELECT DISTINCT 0 + - 66 AS col2 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - col2 + - + col0 + + + 70 FROM tab0 AS cor0
----
-126
-27
8

query I rowsort
SELECT 60 + + 67 + - - col0 AS col2 FROM tab1 AS cor0
----
178
212
218

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8921
SELECT - CAST( NULL AS DECIMAL ) + + + 22 + + ( + - 14 ) + - col0 / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT - CAST ( NULL AS REAL ) + + + 22 + + ( + - 14 ) + - col0 / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * + + 50 + ( - col1 ) FROM tab1 AS cor0
----
2945
3353
4786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT ALL + col0 - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + col0 - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 45 FROM tab2
----
-2295
-3015
-3465

onlyif mysql # DIV for integer division: 
query I rowsort label-8925
SELECT - 43 DIV + ( + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT - 43 / + ( + col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - 21 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-21

query I rowsort
SELECT 54 - + - 32 * + col2 FROM tab2 AS cor0
----
1334
1910
790

query I rowsort
SELECT ALL - 91 * + col2 AS col2 FROM tab0 WHERE col1 * - col0 IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * col2 col1 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + COUNT( + 46 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8931
SELECT + COUNT ( + 46 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8932
SELECT + COUNT( * ) DIV 49 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT + COUNT ( * ) / 49 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT + + COUNT( * ) * 13 AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8933
SELECT + + COUNT ( * ) * 13 AS col0 FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT + col1 * col2 - + - col2 FROM tab1 AS cor0
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + ( - col1 ) BETWEEN + - col1 / - col2 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( NOT - 39 IS NOT NULL )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT - COUNT( * ) * COUNT( - 11 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8937
SELECT - COUNT ( * ) * COUNT ( - 11 ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col0 FROM tab0 WHERE NOT - col2 * - 83 + + col2 + col2 * 35 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + MAX( - 93 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-8939
SELECT + MAX ( - 93 ) FROM tab2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 92, col2 AS col1 FROM tab0
----
92
10
92
47
92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ( + + MIN( - - col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8943
SELECT ( + + MIN ( - - col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT ALL col0 * col2 * + + col0 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT DISTINCT 68 * col0 FROM tab2 AS cor0 WHERE - col0 + - - col0 IN ( - 86 + + col2, + CAST( NULL AS SIGNED ), - 96 / col1 )
----

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT 68 * col0 FROM tab2 AS cor0 WHERE - col0 + - - col0 IN ( - 86 + + col2, + CAST ( NULL AS INTEGER ), - 96 / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 54 col0, col1 AS col2 FROM tab1 AS cor0
----
54
14
54
47
54
5

query II rowsort
SELECT 41 + + col1, + col1 AS col1 FROM tab2
----
108
67
118
77
92
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 16 <= 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT - ( - MIN( ALL - 42 ) ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8950
SELECT - ( - MIN ( ALL - 42 ) ) FROM tab2 AS cor0
----
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 74
----

query I rowsort
SELECT DISTINCT 73 * + col2 + - - 47 * + + col2 + + col0 FROM tab1 AS cor0
----
11571
7165
8251

query I rowsort
SELECT ALL - 64 - col0 * + 82 FROM tab1 AS cor0
----
-4246
-7034
-7526

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT - 45 - - COUNT( * ) AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-8954
SELECT - 45 - - COUNT ( * ) AS col1 FROM tab2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT DISTINCT ( col0 ) * - CAST( col1 AS SIGNED ) - + col0 FROM tab2
----
-2392
-4992
-5100

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT ( col0 ) * - CAST ( col1 AS INTEGER ) - + col0 FROM tab2
----
-2392
-4992
-5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8956
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8956
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

query I rowsort
SELECT + + 14 * - - 86 FROM tab1 AS cor0
----
1204
1204
1204

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT col1 DIV - col1 + - - col1 - 10 AS col2 FROM tab2 AS cor0
----
40
56
66

skipif mysql # not compatible
query I rowsort label-8958
SELECT col1 / - col1 + - - col1 - 10 AS col2 FROM tab2 AS cor0
----
40
56
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT - - col0 * col1 + col0 + - ( ( - - col2 ) ) + + col1 - - - col1 DIV col0 FROM tab1 cor0
----
4347
456
683

skipif mysql # not compatible
query I rowsort label-8959
SELECT - - col0 * col1 + col0 + - ( ( - - col2 ) ) + + col1 - - - col1 / col0 FROM tab1 cor0
----
4347
456
683

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col0 * - ( - 21 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - 55 * - 65 * - col2 AS col0 FROM tab1 AS cor0
----
-210925
-243100
-343200

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL > - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + col0 * 87 col2 FROM tab1
----
4339
7297
7819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT DISTINCT AVG ( ALL - + CAST( NULL AS SIGNED ) ) * - + 50 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * - + 50 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + - + col0 * col0 FROM tab2 cor0
----
-2093
-4056
-5567

query I rowsort
SELECT + + col2 + col0 - - col1 FROM tab1 AS cor0
----
149
161
206

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT - + COUNT( * ) * - MAX( col0 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8969
SELECT - + COUNT ( * ) * - MAX ( col0 ) FROM tab2 AS cor0
----
225

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) + - 92 * - col2 AS col1 FROM tab2 AS cor0
----
2065
3603
5269

query I rowsort
SELECT - + 57 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT + + col1 + + 36 * + CAST( - 68 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2401
-2434
-2443

skipif mysql # not compatible
query I rowsort label-8973
SELECT + + col1 + + 36 * + CAST ( - 68 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2401
-2434
-2443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT - - 60 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + + 4 * ( 68 ) * 11 + - - 32 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT - - 60 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 4 * ( 68 ) * 11 + - - 32 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - + COUNT( ALL + - 22 ) + + - SUM( + col0 ) FROM tab1 AS cor0
----
-230

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - + COUNT ( ALL + - 22 ) + + - SUM ( + col0 ) FROM tab1 AS cor0
----
-230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT ALL - + MIN( ALL - - ( ( + CAST( NULL AS SIGNED ) ) ) ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL - + MIN ( ALL - - ( ( + CAST ( NULL AS INTEGER ) ) ) ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + + col0 * - 34 AS col1 FROM tab1 AS cor0
----
-1748
-2895
-3141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT - CAST( - - 88 AS SIGNED ) + - + 21 + - col1 FROM tab0 AS cor0
----
-110
-130
-190

skipif mysql # not compatible
query I rowsort label-8978
SELECT - CAST ( - - 88 AS INTEGER ) + - + 21 + - col1 FROM tab0 AS cor0
----
-110
-130
-190

query II rowsort
SELECT ALL + col2 + - 26 AS col1, 45 AS col0 FROM tab2
----
-3
45
14
45
32
45

query I rowsort
SELECT ALL ( + - 70 ) - + 76 AS col0 FROM tab2
----
-146
-146
-146

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + - col0 * - - col1 NOT IN ( + ( 0 ) * + + col1 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT CAST( 61 AS SIGNED ) AS col2 FROM tab0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-8983
SELECT CAST ( 61 AS INTEGER ) AS col2 FROM tab0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT CAST( - col1 AS SIGNED ) * + - col2 AS col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-8984
SELECT CAST ( - col1 AS INTEGER ) * + - col2 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT - + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8985
SELECT - + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + - 23 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT + COUNT( * ) / + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT + 18 * - col1 * col2 AS col1, - 72 FROM tab0 AS cor0
----
-1782
-72
-3780
-72
-68526
-72

query I rowsort
SELECT + + ( + ( - 46 ) ) FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT 22 FROM tab2 AS cor0 WHERE NOT 93 IS NULL
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + COUNT( - 51 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + COUNT ( - 51 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < col0 + + - 14 + - ( + col0 ) / + col2
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < col0 + + - 14 + - ( + col0 ) / + col2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 = - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - col1 FROM tab2 WHERE NOT + col0 > + col0 * + 88
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT - 33 * - CAST( 47 AS SIGNED ) AS col1 FROM tab0
----
1551
1551
1551

skipif mysql # not compatible
query I rowsort label-8996
SELECT - 33 * - CAST ( 47 AS INTEGER ) AS col1 FROM tab0
----
1551
1551
1551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT DISTINCT - col0 + 8 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) <= - ( + + col2 )
----

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT - col0 + 8 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) <= - ( + + col2 )
----

query I rowsort
SELECT ALL - 85 * - col1 AS col2 FROM tab1
----
1190
3995
425

query II rowsort
SELECT DISTINCT - col2 AS col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT + + CAST( COUNT( ALL - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9000
SELECT + + CAST ( COUNT ( ALL - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT ( 12 ) + + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT ( 12 ) + + COUNT ( * ) FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9002
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9002
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST ( col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT + CAST( NULL AS SIGNED ) * + 92 / - 89 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT + CAST ( NULL AS INTEGER ) * + 92 / - 89 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT COUNT( * ) DIV - + 43 col1 FROM tab2 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9005
SELECT COUNT ( * ) / - + 43 col1 FROM tab2 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT ALL - 11 AS col2 FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + col0 * col0 + + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
2070
4032
5550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - MIN( ALL - col1 ) - - COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9009
SELECT - MIN ( ALL - col1 ) - - COUNT ( * ) FROM tab0 AS cor0
----
84

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 51
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + col0 <= + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT MIN( ( + - col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9012
SELECT MIN ( ( + - col2 ) ) AS col0 FROM tab0
----
-99

query II rowsort
SELECT + - 94 - - - col1 * + col2, col0 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL MAX( ALL - + col1 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9014
SELECT ALL MAX ( ALL - + col1 ) col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col2 * col0 * - 22 FROM tab0 cor0
----
-15510
-19140
-211266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - col2 col0 FROM tab1 AS cor0
----
-3599
-4148
-5856

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9017
SELECT ALL + col2 * - CAST( NULL AS DECIMAL ) + + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + col2 * - CAST ( NULL AS REAL ) + + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT CAST( + + 19 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-9018
SELECT CAST ( + + 19 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT col1 * ( + 32 ) * - 18 AS col0 FROM tab1 AS cor0
----
-27072
-2880
-8064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9020
SELECT - 38, + 31 * CAST( NULL AS SIGNED ) + + 92 + - - ( - col2 ) AS col0 FROM tab1 cor0
----
-38
NULL
-38
NULL
-38
NULL

skipif mysql # not compatible
query II rowsort label-9020
SELECT - 38, + 31 * CAST ( NULL AS INTEGER ) + + 92 + - - ( - col2 ) AS col0 FROM tab1 cor0
----
-38
NULL
-38
NULL
-38
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT DISTINCT CAST( ( AVG ( - CAST( - col0 AS SIGNED ) ) ) AS SIGNED ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT CAST ( ( AVG ( - CAST ( - col0 AS INTEGER ) ) ) AS INTEGER ) AS col0 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT SUM( 1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9022
SELECT SUM ( 1 ) FROM tab2
----
3

query I rowsort
SELECT col0 - + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) > col0 / col2
----

query I rowsort
SELECT ALL col2 + - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
21
54
82

query I rowsort
SELECT ALL col1 + 38 FROM tab0 WHERE col2 + col0 * - 72 IS NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN + 29 * + ( + 40 * - 27 ) AND col0 * col1
----

query I rowsort
SELECT - col1 + 70 AS col2 FROM tab0
----
-11
49
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9029
SELECT + MAX( ALL - 5 ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE ( 19 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT + MAX ( ALL - 5 ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( 19 ) <> NULL
----
NULL

query I rowsort
SELECT - col1 - + 4 AS col2 FROM tab0 WHERE NOT - col2 / + 50 >= col1 + - col2
----
-25
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9031
SELECT CAST( NULL AS DECIMAL ) + + COUNT( + 82 ) * + 25 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT CAST ( NULL AS REAL ) + + COUNT ( + 82 ) * + 25 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN 69 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 col2 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col0 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT 21 * - MIN( col2 ) FROM tab1
----
-1239

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT 21 * - MIN ( col2 ) FROM tab1
----
-1239

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT 78 + - 76 * col1 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 18 ) IS NOT NULL
----

query I rowsort
SELECT col1 * 84 + + 1 FROM tab1
----
1177
3949
421

query III rowsort
SELECT * FROM tab1 WHERE 88 IN ( - ( + 45 ) )
----

query I rowsort
SELECT col2 * - 71 + + col1 FROM tab0
----
-3256
-689
-7028

query I rowsort
SELECT col0 * + 38 + - col0 AS col0 FROM tab1
----
1887
3145
3367

query I rowsort
SELECT 24 * + 50 FROM tab0
----
1200
1200
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT ALL - COUNT( * ) + 67 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - COUNT ( * ) + 67 FROM tab1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT MIN( ALL - 76 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT MIN ( ALL - 76 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT COUNT( * ) * - COUNT( ALL 59 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9045
SELECT COUNT ( * ) * - COUNT ( ALL 59 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + MIN( col2 ) * 30 FROM tab1
----
1770

skipif mysql # not compatible
query I rowsort label-9046
SELECT + MIN ( col2 ) * 30 FROM tab1
----
1770

query I rowsort
SELECT + col2 * + 61 AS col1 FROM tab1
----
3599
4148
5856

query I rowsort
SELECT + 25 * col1 AS col2 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT + 58 * - 82 FROM tab1
----
-4756
-4756
-4756

query I rowsort
SELECT DISTINCT 41 - col0 AS col1 FROM tab2 WHERE - 65 IS NULL
----

query I rowsort
SELECT ALL 64 + + col0 AS col1 FROM tab2 AS cor0
----
110
128
139

query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0 WHERE ( col0 ) < ( + col1 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND + col2 * + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 / ( 57 ) + col1 NOT IN ( - 58 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 62 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT + COUNT( * ) + - 18 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-9056
SELECT + COUNT ( * ) + - 18 FROM tab1
----
-15

query I rowsort
SELECT ALL AVG ( DISTINCT col1 ) FROM tab2 WHERE NOT NULL = 3
----
NULL

query I rowsort
SELECT + 89 + ( col1 ) AS col1 FROM tab1 AS cor0
----
103
136
94

query I rowsort
SELECT 31 + - 76 FROM tab0 AS cor0
----
-45
-45
-45

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 * + col0 <> - col2
----

query I rowsort
SELECT DISTINCT + 86 + + col0 FROM tab0 AS cor0
----
101
173
183

query I rowsort
SELECT 67 + 70 FROM tab1 AS cor0
----
137
137
137

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT - col0 + - col2 DIV 26 AS col0 FROM tab2 AS cor0
----
-46
-65
-77

skipif mysql # not compatible
query I rowsort label-9063
SELECT - col0 + - col2 / 26 AS col0 FROM tab2 AS cor0
----
-46
-65
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT AVG ( CAST( NULL AS SIGNED ) ) + AVG ( ALL 24 ) col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9064
SELECT AVG ( CAST ( NULL AS INTEGER ) ) + AVG ( ALL 24 ) col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT - ( MIN( - col2 ) ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9065
SELECT DISTINCT - ( MIN ( - col2 ) ) col0 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9066
SELECT * FROM tab2 AS cor0 WHERE NOT - 25 NOT BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9066
SELECT * FROM tab2 AS cor0 WHERE NOT - 25 NOT BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 * ( 80 + 85 ) AS col2 FROM tab0 AS cor0
----
14355
16005
2475

query I rowsort
SELECT ALL + 77 * - col2 FROM tab1 AS cor0
----
-4543
-5236
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9069
SELECT CAST( NULL AS SIGNED ) / 27 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - ( + 38 ) + col1 IN ( + 99 * - 25 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT CAST ( NULL AS INTEGER ) / 27 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - ( + 38 ) + col1 IN ( + 99 * - 25 )
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 + ( + col0 ) * + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT DISTINCT 49 DIV + 2 AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT 49 / + 2 AS col2 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ( COUNT( * ) ) * + 27 AS col1 FROM tab2 WHERE NOT 6 IN ( 7 * ( + col0 ) )
----
81

skipif mysql # not compatible
query I rowsort label-9072
SELECT ( COUNT ( * ) ) * + 27 AS col1 FROM tab2 WHERE NOT 6 IN ( 7 * ( + col0 ) )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT DISTINCT - 24 DIV + col0 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT - 24 / + col0 AS col2 FROM tab0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE 56 > ( 72 / 42 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT 1 / + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col2 FROM tab1
----
66

query I rowsort
SELECT 38 FROM tab1 WHERE NOT col0 * + col2 <= 51
----
38
38
38

query I rowsort
SELECT ALL + col1 * + 8 + + col0 FROM tab2 AS cor0 WHERE NOT ( 73 * 2 ) IS NULL
----
454
611
680

query I rowsort
SELECT + col2 * + 28 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - COUNT( * ) * + + 23 col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9081
SELECT ALL - COUNT ( * ) * + + 23 col2 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT ( col1 + + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 89 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT DISTINCT + + col1 * - + 56 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT + + col1 * - + 56 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT MIN( + - ( + - col0 ) ) col0 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9085
SELECT DISTINCT MIN ( + - ( + - col0 ) ) col0 FROM tab1
----
51

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 97 = + 65
----

query I rowsort
SELECT + col2 + 52 FROM tab2
----
110
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL - ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * + col1 col2 FROM tab0 cor0 WHERE NULL IS NULL
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT - 31 * + COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT - 31 * + COUNT ( * ) FROM tab1 AS cor0
----
-93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 87 * col1 BETWEEN NULL AND + 49 + ( + 80 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT COUNT( + + col1 ) * - + COUNT( * ) * - COUNT( * ) + + CAST( COUNT( * ) + 20 AS SIGNED ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9092
SELECT COUNT ( + + col1 ) * - + COUNT ( * ) * - COUNT ( * ) + + CAST ( COUNT ( * ) + 20 AS INTEGER ) FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + MAX( 73 ) AS col2 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9093
SELECT + MAX ( 73 ) AS col2 FROM tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL 78 + - - COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL 78 + - - COUNT ( * ) FROM tab2 AS cor0
----
81

query I rowsort
SELECT - 35 - 96 * col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-4451
-6179
-7235

query II rowsort
SELECT ALL col1, 27 AS col1 FROM tab0 AS cor0
----
1
27
21
27
81
27

query I rowsort
SELECT ALL + col0 * + 44 * + col1 * + 66 * ( + col1 ) + col2 AS col2 FROM tab0
----
111417778
281787
285797207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9098
SELECT DISTINCT * FROM tab1 WHERE NOT + 53 + + ( 23 ) * + col2 < - CAST( 56 AS SIGNED ) + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9098
SELECT DISTINCT * FROM tab1 WHERE NOT + 53 + + ( 23 ) * + col2 < - CAST ( 56 AS INTEGER ) + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col1 ) * col0 AS col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 62 * 13 * - 3 FROM tab2
----
-2418
-2418
-2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT - MIN( DISTINCT + - ( + 18 ) ) DIV 47 * 78 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT - MIN ( DISTINCT + - ( + 18 ) ) / 47 * 78 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col0 * - col0 AS col1 FROM tab1
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col0 * - col0 AS col1 FROM tab1
----
-36125
-36414
-389207

query II rowsort
SELECT col0 * - 29, - col1 + + col2 AS col2 FROM tab0
----
-2523
-11
-2813
98
-435
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT - ( - - SUM( col2 ) ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT - ( - - SUM ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) < col2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col1 * + col2 * ( col0 ) * - 35 - + col0 col2 FROM tab2 AS cor0
----
-10200750
-1888530
-6899200

query I rowsort
SELECT + - col2 + 36 FROM tab0 AS cor0
----
-11
-63
26

query I rowsort
SELECT col2 + col0 / 63 AS col1 FROM tab1 AS cor0 WHERE ( 71 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 79 - - 5 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT 46 * + - COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-9110
SELECT 46 * + - COUNT ( * ) FROM tab1
----
-138

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( - + 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + col1 AS col1, col1 - + col2 * col0 AS col1 FROM tab1 cor0
----
14
-4882
47
-6141
5
-5010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 26, - col1 + - + col0 * col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 90 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 40 * ( col0 ) FROM tab1 AS cor0
----
2040
3400
3640

query II rowsort
SELECT ALL + 38 AS col0, 7 FROM tab1 AS cor0
----
38
7
38
7
38
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT - SUM( ALL - 88 ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT - SUM ( ALL - 88 ) AS col1 FROM tab2
----
264

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 14 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9120
SELECT + 0, MAX( ALL + col2 ) AS col2 FROM tab0
----
0
99

skipif mysql # not compatible
query II rowsort label-9120
SELECT + 0, MAX ( ALL + col2 ) AS col2 FROM tab0
----
0
99

query II rowsort
SELECT col1, + ( 89 ) AS col1 FROM tab1
----
14
89
47
89
5
89

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT MAX( - + col0 ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9124
SELECT DISTINCT MAX ( - + col0 ) col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT ALL 58 * + + 98 * + + MIN( + 92 ) AS col1, - ( COUNT( * ) ) + 95 FROM tab1
----
522928
92

skipif mysql # not compatible
query II rowsort label-9125
SELECT ALL 58 * + + 98 * + + MIN ( + 92 ) AS col1, - ( COUNT ( * ) ) + 95 FROM tab1
----
522928
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9126
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) <> ( - + 7 )
----

skipif mysql # not compatible
query III rowsort label-9126
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) <> ( - + 7 )
----

query II rowsort
SELECT DISTINCT 85 * + col1, col2 AS col0 FROM tab0 AS cor0
----
1785
10
6885
47
85
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9128
SELECT ALL + ( - - col0 ) * + CAST( - col1 AS DECIMAL ) + + col2 * 20 * - CAST( NULL AS SIGNED ) / + col0 - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + ( - - col0 ) * + CAST ( - col1 AS REAL ) + + col2 * 20 * - CAST ( NULL AS INTEGER ) / + col0 - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - + MAX( - - ( - col0 ) ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9129
SELECT - + MAX ( - - ( - col0 ) ) AS col2 FROM tab2 cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 59 ) + - + col0 col1 FROM tab0 AS cor0
----
-146
-156
-74

query I rowsort
SELECT ALL - - 78 + + + 93 AS col1 FROM tab0 AS cor0
----
171
171
171

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT ALL - col2 + + + ( - col1 ) + col1 DIV - + col0 FROM tab2 AS cor0
----
-118
-125
-75

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL - col2 + + + ( - col1 ) + col1 / - + col0 FROM tab2 AS cor0
----
-118
-125
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT + col2 + + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-9133
SELECT + col2 + + col1 / col0 AS col0 FROM tab0 AS cor0
----
10
52
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT + MAX( DISTINCT + 84 ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-9134
SELECT + MAX ( DISTINCT + 84 ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
84

query I rowsort
SELECT + ( + col2 ) + + col0 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9136
SELECT 42 + + col0 + CAST( NULL AS SIGNED ) col0, - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9136
SELECT 42 + + col0 + CAST ( NULL AS INTEGER ) col0, - col1 AS col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT ALL + col1 * - - 96 AS col0 FROM tab0
----
2016
7776
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - ( + + 96 ) col2 FROM tab1
----
-49
-82
-91

query I rowsort
SELECT DISTINCT col0 * - 93 FROM tab0
----
-1395
-8091
-9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 * col1 col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - 56 * - - 77 * + col2 AS col2, col2 FROM tab2
----
-172480
40
-250096
58
-99176
23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9142
SELECT - - col2 + + 98 FROM tab0 WHERE CAST( NULL AS SIGNED ) = CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9142
SELECT - - col2 + + 98 FROM tab0 WHERE CAST ( NULL AS INTEGER ) = CAST ( col0 AS REAL )
----

query I rowsort
SELECT col0 - - col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + + col0 * - 10 + + 10 AND - - col1 * + col1 * + - 73
----

query I rowsort
SELECT ALL - + col0 + - - 48 AS col1 FROM tab2 cor0
----
-16
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + MAX( ALL + col0 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-9145
SELECT + MAX ( ALL + col0 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-291

query I rowsort
SELECT DISTINCT - + col1 + - + 62 FROM tab1 AS cor0
----
-109
-67
-76

query I rowsort
SELECT ALL + col2 + + + 55 FROM tab0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT MIN( ALL - - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9148
SELECT MIN ( ALL - - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + ( + 52 ) * + ( - COUNT( * ) ) + + - COUNT( * ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9149
SELECT + ( + 52 ) * + ( - COUNT ( * ) ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT + + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9150
SELECT + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - + 63 AS col1 FROM tab0 AS cor0
----
-63
-63
-63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 + col2 + col0 ) < ( NULL )
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL <> + + col2 * + ( col1 ) + col2 + col2 + 38 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT MAX( ALL 33 ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9154
SELECT MAX ( ALL 33 ) AS col2 FROM tab2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9155
SELECT ( CAST( - COUNT( * ) AS SIGNED ) ) AS col2, MIN( DISTINCT + col2 ) FROM tab2
----
-3
23

skipif mysql # not compatible
query II rowsort label-9155
SELECT ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2, MIN ( DISTINCT + col2 ) FROM tab2
----
-3
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 45 + - 53 BETWEEN 9 - 70 AND + + col1 / 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT COUNT( ALL col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9157
SELECT COUNT ( ALL col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + + col0 + + col2 - col0 + - - col1 > + + 45
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT + 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 1 * - col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT + MAX( 87 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9161
SELECT + MAX ( 87 ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT - 34 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 + + - ( - col0 ), col1 )
----

query I rowsort
SELECT ALL - col0 * - 74 FROM tab2 AS cor0 WHERE - 30 IS NOT NULL
----
3404
4736
5550

query I rowsort
SELECT + col0 * - col0 * - - col0 FROM tab2 AS cor0
----
-262144
-421875
-97336

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2 + - col0, col1 + + col0, + col1 * col0 + - col0 )
----

query I rowsort
SELECT DISTINCT - - col0 * - 73 AS col0 FROM tab1 AS cor0
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT + COUNT( * ) * + 51 FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT + COUNT ( * ) * + 51 FROM tab0 cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 48 col1, col0 + + - 41 AS col1 FROM tab2 AS cor0
----
-48
23
-48
34
-48
5

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE - col1 <= NULL
----

query I rowsort
SELECT + col0 - - + ( + col1 ) FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + 77
----

query II rowsort
SELECT ALL - col1 - 38 AS col2, col2 AS col2 FROM tab1
----
-43
59
-52
96
-85
68

query I rowsort
SELECT col1 + - - 84 AS col2 FROM tab2
----
135
151
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + 78 col1, + col2 * 32 AS col1 FROM tab2 cor0
----
129
736
145
1856
155
1280

query I rowsort
SELECT - 57 * - + 6 + + col2 AS col0 FROM tab2 AS cor0
----
365
382
400

query I rowsort
SELECT ALL 66 - + col1 * 85 * + col2 FROM tab1 AS cor0
----
-114174
-25009
-271594

query III rowsort
SELECT * FROM tab2 WHERE NOT - 37 BETWEEN + 30 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL 7 + + MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-84

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL 7 + + MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 35 ) = NULL
----

query I rowsort
SELECT + - 1 FROM tab2 AS cor0 WHERE NOT - col1 <= - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9182
SELECT + - 1 DIV MAX( 98 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9182
SELECT + - 1 / MAX ( 98 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 21 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT CAST( + 91 AS SIGNED ) * + 15 * + col0 * + col0 AS col2 FROM tab1
----
11303565
3550365
9862125

skipif mysql # not compatible
query I rowsort label-9185
SELECT CAST ( + 91 AS INTEGER ) * + 15 * + col0 * + col0 AS col2 FROM tab1
----
11303565
3550365
9862125

query I rowsort
SELECT col1 * + 97 FROM tab1
----
1358
4559
485

query II rowsort
SELECT + + col1 AS col2, col1 / - col1 * col0 - col2 * + col2 + + + col1 AS col0 FROM tab2 WHERE NOT + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * + col2 col2 FROM tab2
----
1840
3200
4640

query II rowsort
SELECT col2 * col1 AS col2, 71 + - - ( + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1173
117
3080
135
3886
146

query II rowsort
SELECT DISTINCT - + col0 + + col2, col2 AS col2 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

query I rowsort
SELECT DISTINCT - col0 + + - col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT ALL - + 28 DIV - col0 + - + ( + col1 ) DIV - 88 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL - + 28 / - col0 + - + ( + col1 ) / - 88 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 AS col2, - col2 col1 FROM tab0 AS cor0
----
87
-10
87
-47
87
-99

query I rowsort
SELECT - - 96 + - col2 * - col2 + + - 6 AS col2 FROM tab2 AS cor0
----
1690
3454
619

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + SUM( DISTINCT - col0 ) + - 36 FROM tab2 AS cor0
----
-221

skipif mysql # not compatible
query I rowsort label-9195
SELECT + SUM ( DISTINCT - col0 ) + - 36 FROM tab2 AS cor0
----
-221

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 33 * - col0 + + + col2 <= NULL
----

query I rowsort
SELECT + col2 + + 15 FROM tab0 cor0
----
114
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL MAX( + col1 ) * - + COUNT( * ) + + COUNT( * ) - - ( - + COUNT( * ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL MAX ( + col1 ) * - + COUNT ( * ) + + COUNT ( * ) - - ( - + COUNT ( * ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9199
SELECT ALL * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) <> + + col0 / + 25
----

skipif mysql # not compatible
query III rowsort label-9199
SELECT ALL * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) <> + + col0 / + 25
----

query I rowsort
SELECT ALL col2 + col0 - + col0 FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 2 + 90 > - + 67 + col0
----

query II rowsort
SELECT col0 AS col1, ( + col0 ) AS col2 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9203
SELECT DISTINCT MIN( ALL ( + col2 ) ) + + 29 DIV + COUNT( * ) AS col2 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT MIN ( ALL ( + col2 ) ) + + 29 / + COUNT ( * ) AS col2 FROM tab2
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 80 AS col2, 49 col2 FROM tab1
----
80
49
80
49
80
49

query II rowsort
SELECT DISTINCT col2 - - + col1 + - col0 - - 79 + - - ( - 27 ) AS col1, col0 FROM tab2
----
102
75
105
64
80
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT col0 AS col2, - col2 AS col2 FROM tab2
----
46
-23
64
-40
75
-58

query II rowsort
SELECT + 39 - col2 AS col1, + col2 FROM tab0 AS cor0
----
-60
99
-8
47
29
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + SUM( ALL + col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9209
SELECT + SUM ( ALL + col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 cor0 WHERE NOT col0 + - col1 NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9211
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 - 61 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 - 61 >= NULL
----

query II rowsort
SELECT 23 AS col1, - col1 FROM tab2 AS cor0
----
23
-51
23
-67
23
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9213
SELECT ALL * FROM tab0 cor0 WHERE ( - CAST( + 26 AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9213
SELECT ALL * FROM tab0 cor0 WHERE ( - CAST ( + 26 AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT DISTINCT + CAST( + 4 AS SIGNED ) * - - MAX( ALL + col2 ) FROM tab2 AS cor0
----
232

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + CAST ( + 4 AS INTEGER ) * - - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
232

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 31 - + col0 NOT BETWEEN - - col2 * + col2 AND + 81
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0 * - ( - 98 ) + - 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT ALL + col1 DIV + 6 AS col2 FROM tab0 cor0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + col1 / + 6 AS col2 FROM tab0 cor0
----
0
13
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT DISTINCT + - col1 DIV 81 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + - col1 / 81 AS col1 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 * + 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 40 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 69 / - col2 - + + col0 / - col2 * - ( + col1 ) AND + col1
----

query I rowsort
SELECT 69 + - col0 FROM tab2 WHERE NOT ( ( + + 6 >= NULL ) )
----

query I rowsort
SELECT ALL - col0 * - col1 AS col1 FROM tab2 WHERE NOT ( NOT col1 * + col1 + - 99 IS NOT NULL )
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 * ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT ( - col2 ) DIV + 29 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-9224
SELECT ( - col2 ) / + 29 FROM tab1
----
-2
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9225
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 82 AS col0 FROM tab0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-9225
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 82 AS col0 FROM tab0
----
NULL
82

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + col1 ) * - col0 <> ( + 79 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col0, - ( - col0 ) AS col2 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL COUNT( * ) + - 11 col2 FROM tab1
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9228
SELECT ALL COUNT ( * ) + - 11 col2 FROM tab1
----
-8

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col0 * - - col0 * + - col2 AS col0 FROM tab1
----
-12734510
-36233380
-51242875

query III rowsort
SELECT * FROM tab1 WHERE + 89 IN ( - col0 / col0, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 23 + - 70 + - 69 + 47 AS col2, - 14 * - col2 col0 FROM tab0
----
-69
1386
-69
140
-69
658

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * 38 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT - ( - 55 ) DIV + 58 - + ( col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9233
SELECT - ( - 55 ) / + 58 - + ( col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col2 * col2
----

query I rowsort
SELECT - col1 - - col2 * + 41 AS col0 FROM tab1 AS cor0
----
2414
2741
3922

query I rowsort
SELECT DISTINCT 55 + + col0 - col2 AS col2 FROM tab0 cor0
----
132
23
53

query I rowsort
SELECT ALL - col1 + - + col1 * - 70 * - + 79 AS col2 FROM tab2
----
-282081
-370577
-425887

query I rowsort
SELECT DISTINCT + col0 + + 22 FROM tab1
----
107
113
73

query I rowsort
SELECT + col0 - col2 * - col2 + + + 58 AS col0 FROM tab1
----
3624
4773
9325

query I rowsort
SELECT 95 - - col1 * ( - col0 ) + col2 * - col2 + - col2 FROM tab2
----
-2803
-6473
-8352

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 * - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 * - - 8 * 99 + col0 + + 13 - - ( + col0 ) / + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + ( - ( - + col1 ) ) * + col0 AS col1 FROM tab1 AS cor0
----
201019
2125
9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 78 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL + + 31 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT ALL - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 * - + ( + col1 ) * + - 76 + - col2 col0 FROM tab0 AS cor0
----
1041
23930
92293

query I rowsort
SELECT DISTINCT - col2 / - - col2 + col2 * + + col2 - + + col1 - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + + + ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL 66 + + col2 + col1 AS col1 FROM tab0 AS cor0
----
166
194
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9250
SELECT COUNT( * ) AS col1, ( ( + 15 ) ) FROM tab1 cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-9250
SELECT COUNT ( * ) AS col1, ( ( + 15 ) ) FROM tab1 cor0
----
3
15

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 60 < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9252
SELECT ALL - SUM( + + 35 ) DIV - - 1 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL - SUM ( + + 35 ) / - - 1 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT DISTINCT + col1 + + 56 + - col1 FROM tab2 AS cor0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9254
SELECT DISTINCT + + CAST( - CAST( + + MAX( + 11 ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + + CAST ( - CAST ( + + MAX ( + 11 ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT + + 96 * - ( CAST( - col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
2016
7776
96

skipif mysql # not compatible
query I rowsort label-9255
SELECT + + 96 * - ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
2016
7776
96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= - 11
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9257
SELECT DISTINCT * FROM tab0 WHERE NOT 4 BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9257
SELECT DISTINCT * FROM tab0 WHERE NOT 4 BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT + col1 + - + 18 AS col0 FROM tab1
----
-13
-4
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9259
SELECT + ( col2 ) DIV + col1 + + col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-9259
SELECT + ( col2 ) / + col1 + + col1 FROM tab0
----
100
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT ALL + MAX( DISTINCT + 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL + MAX ( DISTINCT + 33 ) FROM tab1
----
33

query I rowsort
SELECT DISTINCT 46 * - - col0 * + col1 FROM tab1
----
19550
196742
32844

query I rowsort
SELECT DISTINCT 73 + + col2 - + 19 AS col0 FROM tab0
----
101
153
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT 91 + + - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-9263
SELECT 91 + + - COUNT ( * ) FROM tab1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9264
SELECT + CAST( - + ( + 74 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9264
SELECT + CAST ( - + ( + 74 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT - - 26 FROM tab1 cor0 WHERE ( NULL IS NULL )
----
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - col1 BETWEEN 10 / - col1 AND NULL )
----
15
81
47
87
21
10

query II rowsort
SELECT - col1 * - - col0 AS col0, col1 FROM tab0 AS cor0
----
-1215
81
-1827
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL 47 * 48 - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2247

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL 47 * 48 - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2247

query II rowsort
SELECT ALL 29 AS col0, + ( - 19 ) + + col2 AS col2 FROM tab0
----
29
-9
29
28
29
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9270
SELECT - col2 + + CAST( + - col1 AS SIGNED ) AS col1 FROM tab0 WHERE - + col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9270
SELECT - col2 + + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 WHERE - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + COUNT( DISTINCT - col2 ) + COUNT( * ) AS col0 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9271
SELECT + COUNT ( DISTINCT - col2 ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
6

query I rowsort
SELECT + + 56 + + + 16 + + 67 * - col2 * + - 83 FROM tab0 AS cor0
----
261439
550611
55682

query I rowsort
SELECT - 21 * - - 22 + 23 + col0 FROM tab2 AS cor0
----
-364
-375
-393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9274
SELECT DISTINCT + 41 DIV + 51 + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + 41 / + 51 + - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + + 22 / - 70 FROM tab2 AS cor0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT ALL - + 24 + + - col2 FROM tab1 AS cor0
----
-120
-83
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT - col0 + - 93 + col2 - - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9277
SELECT - col0 + - 93 + col2 - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9278
SELECT + col0 * + ( - - col1 ) + + col0 + - 80 DIV + - 77, col1 FROM tab2 cor0
----
2393
51
4993
77
5101
67

skipif mysql # not compatible
query II rowsort label-9278
SELECT + col0 * + ( - - col1 ) + + col0 + - 80 / + - 77, col1 FROM tab2 cor0
----
2393
51
4993
77
5101
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= col1 * - 42
----

query I rowsort
SELECT - col1 * + 77 * 30 FROM tab0 AS cor0
----
-187110
-2310
-48510

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + 58 * col1
----

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT + ( col1 ) DIV 54 col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9283
SELECT + ( col1 ) / 54 col0 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT DISTINCT + 90 * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST( + - col2 AS SIGNED ) IS NULL
----
270

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT + 90 * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( + - col2 AS INTEGER ) IS NULL
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + + 88 col0 FROM tab1 AS cor0
----
142
142
142

query I rowsort
SELECT col0 * col2 * - col2 + + col1 FROM tab0 AS cor0
----
-33054
-8679
-950696

query I rowsort
SELECT ALL - col0 * + 67 FROM tab0 AS cor0
----
-1005
-5829
-6499

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT - 63 + + 86 + + col2 * - ( + 76 ) FROM tab2 AS cor0
----
-1725
-3017
-4385

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT - + SUM( DISTINCT - 89 ) * + - COUNT( * ) col2 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9290
SELECT DISTINCT - + SUM ( DISTINCT - 89 ) * + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT - COUNT( col1 ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - COUNT ( col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT ALL + - CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + - CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9293
SELECT DISTINCT COUNT( * ), + 14 - + - 44 AS col2 FROM tab1 AS cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-9293
SELECT DISTINCT COUNT ( * ), + 14 - + - 44 AS col2 FROM tab1 AS cor0
----
3
58

query II rowsort
SELECT ALL + 22 AS col1, 16 FROM tab2
----
22
16
22
16
22
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT - SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT CAST( NULL AS SIGNED ) / - 47 / + + 96 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT CAST ( NULL AS INTEGER ) / - 47 / + + 96 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 76 FROM tab2
----
1748
3040
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - MAX( DISTINCT 2 ) * + 31 AS col1 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-9298
SELECT - MAX ( DISTINCT 2 ) * + 31 AS col1 FROM tab2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - ( - + COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT - ( - + COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT ALL + - 33 + - COUNT( * ) DIV + 3 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + - 33 + - COUNT ( * ) / + 3 FROM tab2 AS cor0
----
-34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT ( - 59 ) + + - COUNT( * ) FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT ( - 59 ) + + - COUNT ( * ) FROM tab1 cor0
----
-62

query I rowsort
SELECT DISTINCT col1 - - 63 FROM tab2
----
114
130
140

query I rowsort
SELECT DISTINCT + col2 * + 99 AS col2 FROM tab1
----
5841
6732
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT ALL + 40 DIV col1 AS col1 FROM tab0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL + 40 / col1 AS col1 FROM tab0
----
0
1
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ( - MIN( + + 32 ) ) AS col1 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-9306
SELECT ( - MIN ( + + 32 ) ) AS col1 FROM tab0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9307
SELECT ( - 29 ) DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT ( - 29 ) / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT ALL + ( - COUNT( * ) ) / 52 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9308
SELECT ALL + ( - COUNT ( * ) ) / 52 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9309
SELECT DISTINCT + col1 DIV + 66, col2 FROM tab2
----
0
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-9309
SELECT DISTINCT + col1 / + 66, col2 FROM tab2
----
0
23
1
40
1
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9310
SELECT - CAST( - 11 AS SIGNED ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-9310
SELECT - CAST ( - 11 AS INTEGER ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
11
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( + + col2 ) * + + col2 >= + col1
----

query I rowsort
SELECT ALL - + col1 + 88 * 98 AS col1 FROM tab0 AS cor0
----
8543
8603
8623

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT COUNT( * ) * + 52 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9313
SELECT COUNT ( * ) * + 52 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-9314
SELECT - 94 AS col1, MIN( + + ( col2 ) ) col2 FROM tab2
----
-94
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9314
SELECT - 94 AS col1, MIN ( + + ( col2 ) ) col2 FROM tab2
----
-94
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9315
SELECT * FROM tab0 WHERE NOT - col1 = 77 * + - CAST( NULL AS SIGNED ) + col1 * col1
----

skipif mysql # not compatible
query III rowsort label-9315
SELECT * FROM tab0 WHERE NOT - col1 = 77 * + - CAST ( NULL AS INTEGER ) + col1 * col1
----

query II rowsort
SELECT 26, - col2 AS col1 FROM tab0
----
26
-10
26
-47
26
-99

query II rowsort
SELECT 95, col2 AS col2 FROM tab1
----
95
59
95
68
95
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT SUM( ALL 17 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT SUM ( ALL 17 ) FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 / 53 * - + 87, + col2 col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query II rowsort
SELECT DISTINCT 58 AS col0, + 80 + + col2 FROM tab0 AS cor0
----
58
127
58
179
58
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT + - 42 + - SUM( ALL col2 ) FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9323
SELECT + - 42 + - SUM ( ALL col2 ) FROM tab0 AS cor0
----
-198

query I rowsort
SELECT - ( - 5 ) + - - col1 FROM tab2 AS cor0
----
56
72
82

query I rowsort
SELECT col1 + col2 * 55 FROM tab1 AS cor0
----
3250
3787
5294

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - 98
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 68 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT + COUNT( * ) * + + 49 FROM tab2 cor0
----
147

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + COUNT ( * ) * + + 49 FROM tab2 cor0
----
147

query II rowsort
SELECT ALL - col2 AS col1, ( col2 ) * + 10 * - 37 FROM tab1 AS cor0
----
-59
-21830
-68
-25160
-96
-35520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - 6
----

query I rowsort
SELECT + 77 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ( + col0 ) + - - 67 AS col2 FROM tab2
----
113
131
142

query I rowsort
SELECT 17 * 61 - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT + 36 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 36 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT 25 DIV col0 * + - 57 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT 25 / col0 * + - 57 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT - + MAX( ALL + ( + col1 ) ) * + - COUNT( + - col1 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9336
SELECT - + MAX ( ALL + ( + col1 ) ) * + - COUNT ( + - col1 ) FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT - ( 72 ) AS col0, COUNT( - 84 ) AS col2 FROM tab0 AS cor0
----
-72
3

skipif mysql # not compatible
query II rowsort label-9337
SELECT - ( 72 ) AS col0, COUNT ( - 84 ) AS col2 FROM tab0 AS cor0
----
-72
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT - col1 DIV - - col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9338
SELECT - col1 / - - col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + col0 * + col0 * + 24 FROM tab2 AS cor0
----
-135000
-50784
-98304

query I rowsort
SELECT DISTINCT + col2 * - 22 AS col1 FROM tab0 AS cor0
----
-1034
-2178
-220

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > ( - + col2 )
----

query I rowsort
SELECT + 92 * + col2 * 46 - + - col0 * + 94 * col0 FROM tab0 AS cor0
----
1303414
220054
753806

query III rowsort
SELECT * FROM tab2 WHERE NOT - 93 + 45 > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NOT - ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT ( CAST( 56 AS SIGNED ) ) FROM tab1
----
56
56
56

skipif mysql # not compatible
query I rowsort label-9345
SELECT ( CAST ( 56 AS INTEGER ) ) FROM tab1
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ALL col2 DIV + 49 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL col2 / + 49 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT MAX( + + col1 ) col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9347
SELECT MAX ( + + col1 ) col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 58 + - + 59 AS col2 FROM tab1
----
-117
-117
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * - col2 + + col1 col1 FROM tab0 AS cor0
----
-3444
-729
-7424

onlyif mysql # aggregate syntax: 
query II rowsort label-9350
SELECT + 95, + COUNT( * ) col0 FROM tab2 AS cor0
----
95
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9350
SELECT + 95, + COUNT ( * ) col0 FROM tab2 AS cor0
----
95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - MIN( DISTINCT 50 ) FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9351
SELECT - MIN ( DISTINCT 50 ) FROM tab1 cor0
----
-50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2, 56, + col1 * - ( - 30 ), - col0 * - col0 )
----

query I rowsort
SELECT ALL - + col0 + + col1 + - - 22 FROM tab2 cor0
----
14
27
35

query III rowsort
SELECT * FROM tab2 WHERE 0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT col1 DIV 55 - - 53 AS col1 FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-9355
SELECT col1 / 55 - - 53 AS col1 FROM tab1
----
53
53
53

query I rowsort
SELECT + col0 * + + 55 + - - 58 FROM tab2
----
2588
3578
4183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9357
SELECT col1 + - col1 + CAST( NULL AS SIGNED ) - col1 AS col0, 3 AS col2 FROM tab0
----
NULL
3
NULL
3
NULL
3

skipif mysql # not compatible
query II rowsort label-9357
SELECT col1 + - col1 + CAST ( NULL AS INTEGER ) - col1 AS col0, 3 AS col2 FROM tab0
----
NULL
3
NULL
3
NULL
3

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE col1 * col1 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9359
SELECT + col2 + - col0 DIV + - 34 AS col1 FROM tab1 AS cor0
----
61
70
97

skipif mysql # not compatible
query I rowsort label-9359
SELECT + col2 + - col0 / + - 34 AS col1 FROM tab1 AS cor0
----
61
70
97

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NULL <= - col1
----

query I rowsort
SELECT ALL + + col1 * - + 99 AS col2 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - 73 * - - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
-5621

skipif mysql # not compatible
query I rowsort label-9362
SELECT - 73 * - - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-5621

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + col2 <= col0 * - - col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * + 17 col0 FROM tab1 AS cor0
----
1445

query I rowsort
SELECT ALL - - col1 * + + 41 FROM tab1 AS cor0
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL MAX( + + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL MAX ( + + col0 ) AS col1 FROM tab0
----
97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * - col2 * + 61 < - + 16 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT ALL - col2 DIV + + 1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - col2 / + + 1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + COUNT( * ) AS col1 FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9369
SELECT + COUNT ( * ) AS col1 FROM tab2, tab2 cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 54 > + - col0 * col2 + - 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT + col0 + - col0 DIV - + col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-9371
SELECT + col0 + - col0 / - + col2 FROM tab2 AS cor0
----
48
65
76

query I rowsort
SELECT + ( 11 ) + - ( - 36 ) AS col0 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 45 AND + 82
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9374
SELECT + col0 * - 22 * + col2 * - + CAST( NULL AS DECIMAL ) + col1, col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9374
SELECT + col0 * - 22 * + col2 * - + CAST ( NULL AS REAL ) + col1, col2 AS col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + + 16 NOT BETWEEN + 55 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 17 - + col1 + - col1
----

query I rowsort
SELECT ALL - col0 * - 65 + + col0 FROM tab0 AS cor0
----
5742
6402
990

query I rowsort
SELECT 76 + ( + col2 ) FROM tab0 cor0
----
123
175
86

query II rowsort
SELECT ALL 58 - 70 AS col1, col0 + + col0 FROM tab2 AS cor0
----
-12
128
-12
150
-12
92

query I rowsort
SELECT 9 + - + col0 FROM tab2
----
-37
-55
-66

query I rowsort
SELECT DISTINCT - col1 - - 79 + - + 71 * + + col0 FROM tab1
----
-3556
-5961
-6429

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - - col0 * + col0 * col0 * col1
----

query I rowsort
SELECT + - 12 * col1 FROM tab2 cor0
----
-612
-804
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col1 + col1 col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL MIN( DISTINCT - col1 ) * - MIN( ALL - + col2 ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
13536

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9386
SELECT ALL MIN ( DISTINCT - col1 ) * - MIN ( ALL - + col2 ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
13536

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT - ( + + MAX( ALL + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT - ( + + MAX ( ALL + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT + SUM( + col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9388
SELECT + SUM ( + col2 ) AS col1 FROM tab0 cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9389
SELECT * FROM tab0 AS cor0 WHERE NOT 71 NOT BETWEEN - CAST( NULL AS SIGNED ) AND + - 28 + + + col2
----

skipif mysql # not compatible
query III rowsort label-9389
SELECT * FROM tab0 AS cor0 WHERE NOT 71 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + - 28 + + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT DISTINCT + col1 * - - CAST( NULL AS SIGNED ) * - col2 / - + 75 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT + col1 * - - CAST ( NULL AS INTEGER ) * - col2 / - + 75 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + - col1 * col0 + - col1 * + 89 * + - col0 + + col1 AS col0 FROM tab0 AS cor0
----
165321
180894
18237

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT + col1 * 72 DIV 12 AS col1 FROM tab1 AS cor0
----
282
30
84

skipif mysql # not compatible
query I rowsort label-9392
SELECT + col1 * 72 / 12 AS col1 FROM tab1 AS cor0
----
282
30
84

query I rowsort
SELECT 55 * + - col0 FROM tab2 AS cor0
----
-2530
-3520
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL + COUNT( 18 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + COUNT ( 18 ) FROM tab1
----
3

query I rowsort
SELECT col0 * - 66 FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT - col2 - - 47 * col0 + + - col2 FROM tab0 WHERE NOT + col1 - ( col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = + col1
----

query I rowsort
SELECT DISTINCT 78 + + col0 FROM tab1
----
129
163
169

query I rowsort
SELECT ALL + col2 * - 48 AS col2 FROM tab1
----
-2832
-3264
-4608

onlyif mysql # DIV for integer division: 
query I rowsort label-9400
SELECT - col2 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT - col2 / + + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 28 * - col1 FROM tab2
----
-1428
-1876
-2156

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT + 62 NOT BETWEEN + col2 AND 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 AS col2, ( col1 ) col0 FROM tab2
----
19
51
19
67
19
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL SUM( - - col2 ) + + ( - 46 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL SUM ( - - col2 ) + + ( - 46 ) AS col2 FROM tab2 AS cor0
----
75

query II rowsort
SELECT + + col0, + ( + col2 ) AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL 94 + 27 AS col0 FROM tab1 AS cor0
----
121
121
121

query I rowsort
SELECT - col1 + - + 78 FROM tab1 cor0
----
-125
-83
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - 26 + - MIN( - - col2 ) AS col2 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - 26 + - MIN ( - - col2 ) AS col2 FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + 45 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 45 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 * + 41 + - + col2 AS col0 FROM tab1
----
-2765
-2774
-2802

query I rowsort
SELECT 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col2 col1 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT col0, + ( - col2 ) AS col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT + MAX( + col0 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT + MAX ( + col0 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT ALL - COUNT( * ) + - CAST( - ( - + 55 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL - COUNT ( * ) + - CAST ( - ( - + 55 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT DISTINCT ( + - 20 ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT ( + - 20 ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT 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-9418
SELECT DISTINCT 17 + - COUNT ( * ) col2 FROM tab2 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 6 NOT BETWEEN NULL AND NULL AND - col0 IS NOT NULL
----

query I rowsort
SELECT col0 - + - 77 AS col2 FROM tab1 AS cor0
----
128
162
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT SUM( ALL + col1 ) FROM tab2 WHERE - col0 IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT SUM ( ALL + col1 ) FROM tab2 WHERE - col0 IS NOT NULL
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - 19 - + COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - 19 - + COUNT ( * ) FROM tab2
----
-22

query I rowsort
SELECT ALL col0 - + col0 + - - col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9424
SELECT DISTINCT + CAST( - - COUNT( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + CAST ( - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 82 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) + col0 = - 68 * + 91
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT - MIN( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-9428
SELECT - MIN ( ALL - 52 ) AS col1 FROM tab1 AS cor0
----
52

query I rowsort
SELECT - ( - + 73 ) FROM tab1 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-9431
SELECT + col0, 82 DIV + col1 AS col2 FROM tab2 AS cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-9431
SELECT + col0, 82 / + col1 AS col2 FROM tab2 AS cor0
----
46
1
64
1
75
1

query II rowsort
SELECT DISTINCT 4 * col2, - col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 - + 99 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT ALL + + col2 DIV - 24 AS col2 FROM tab1 AS cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + + col2 / - 24 AS col2 FROM tab1 AS cor0
----
-2
-2
-4

query I rowsort
SELECT col0 * 83 * 82 * col0 AS col1 FROM tab2 AS cor0
----
14401496
27877376
38283750

query I rowsort
SELECT DISTINCT - ( - + ( - - 1 ) ) / + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 = NULL )
----

query I rowsort
SELECT col1 * - 97 AS col0 FROM tab0 AS cor0
----
-2037
-7857
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9439
SELECT - 25 DIV - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT - 25 / - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col0, + col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT 77 * + COUNT( * ) AS col0 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-9442
SELECT 77 * + COUNT ( * ) AS col0 FROM tab1
----
231

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9443
SELECT DISTINCT - col0 * - + CAST( NULL AS DECIMAL ) * + ( + col1 ) col2, - col0 AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9443
SELECT DISTINCT - col0 * - + CAST ( NULL AS REAL ) * + ( + col1 ) col2, - col0 AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND - - 86
----

query I rowsort
SELECT 26 + - + col1 * + + 95 AS col1 FROM tab2
----
-4819
-6339
-7289

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 57 * - 27 + - 18 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - - col1 + + 61 AS col1 FROM tab0 cor0
----
142
62
82

query I rowsort
SELECT ALL - col0 * 89 + + 91 FROM tab1 cor0
----
-4448
-7474
-8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT - - MAX( ALL - CAST( - + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9450
SELECT - - MAX ( ALL - CAST ( - + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT - MIN( 8 ) FROM tab1 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9452
SELECT - MIN ( 8 ) FROM tab1 cor0
----
-8

query I rowsort
SELECT DISTINCT - col2 * - col2 * + col1 FROM tab0 WHERE + - col1 + + 20 * col1 < - - col1 * col1 + + col2
----
178929
2100
9801

query I rowsort
SELECT col0 * - - 20 FROM tab1
----
1020
1700
1820

query I rowsort
SELECT 94 - col1 * + + 14 FROM tab1
----
-102
-564
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT MIN( - col1 ) + - SUM( DISTINCT ( col0 ) ) * 63 FROM tab1 AS cor0
----
-14348

skipif mysql # not compatible
query I rowsort label-9456
SELECT MIN ( - col1 ) + - SUM ( DISTINCT ( col0 ) ) * 63 FROM tab1 AS cor0
----
-14348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT ALL - 17 DIV + COUNT( * ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - 17 / + COUNT ( * ) FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ALL + 63 + col0 + - + 79 - - col0 AS col1 FROM tab1 AS cor0
----
154
166
86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0, col2, 66, + 60 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT CAST( NULL AS SIGNED ) * - 70 + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT CAST ( NULL AS INTEGER ) * - 70 + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 11 + - col1 AS col0 FROM tab0 AS cor0
----
-12
-32
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT + CAST( NULL AS SIGNED ) / + - 73 + + col2 * 63 + - + col2 / + 35 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-9462
SELECT + CAST ( NULL AS INTEGER ) / + - 73 + + col2 * 63 + - + col2 / + 35 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 18 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
126
129
141

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 85 AND - 77
----

query I rowsort
SELECT ALL - + 63 * - 0 + + - col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 col1 FROM tab1
----
-110
-2300
-247

query I rowsort
SELECT DISTINCT - 3 - + col2 AS col2 FROM tab1
----
-62
-71
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9468
SELECT * FROM tab1 WHERE + - col2 < + CAST( + 6 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9468
SELECT * FROM tab1 WHERE + - col2 < + CAST ( + 6 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9469
SELECT DISTINCT * FROM tab0 WHERE col0 + - - col0 + + CAST( col0 AS SIGNED ) / + col1 * col1 * - ( + + col0 ) NOT BETWEEN col2 AND + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9469
SELECT DISTINCT * FROM tab0 WHERE col0 + - - col0 + + CAST ( col0 AS INTEGER ) / + col1 * col1 * - ( + + col0 ) NOT BETWEEN col2 AND + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + + 39 IS NOT NULL
----

query I rowsort
SELECT + col0 * + col0 * - + col2 AS col1 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT - ( col1 ) * + - 30 FROM tab1
----
1410
150
420

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * + col1 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT DISTINCT + - col0 DIV + + ( 82 ) FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT + - col0 / + + ( 82 ) FROM tab0 cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9475
SELECT + 52 AS col0, - SUM( - + col1 ) * - + 85 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
52
-49725

skipif mysql # not compatible
query II rowsort label-9475
SELECT + 52 AS col0, - SUM ( - + col1 ) * - + 85 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
52
-49725

query I rowsort
SELECT DISTINCT + - 65 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL - CAST( - + col2 AS SIGNED ) * 62 - - - col1 FROM tab2 AS cor0
----
1375
2403
3529

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL - CAST ( - + col2 AS INTEGER ) * 62 - - - col1 FROM tab2 AS cor0
----
1375
2403
3529

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + 58
----
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 8 col2 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9480
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - CAST( + ( 29 ) AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9480
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - CAST ( + ( 29 ) AS INTEGER ) ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT ALL + 43 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + 43 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 FROM tab0 WHERE 67 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - col0 * + + col0 FROM tab1
----
59
-7225
68
-8281
96
-2601

query I rowsort
SELECT + col1 + ( - + col2 ) - col2 AS col1 FROM tab2 AS cor0
----
-3
-49
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT + ( col0 ) + CAST( NULL AS SIGNED ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT + ( col0 ) + CAST ( NULL AS INTEGER ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE + 63 / + 38 * - - col2 * + 6 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - + 38 FROM tab0 AS cor0
----
-23
49
59

query I rowsort
SELECT + col2 + - - col0 FROM tab0 cor0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT CAST( col2 AS SIGNED ) * col2 col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9489
SELECT CAST ( col2 AS INTEGER ) * col2 col2 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( - 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL - AVG ( col1 ) - + COUNT( * ) * - 7 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL - AVG ( col1 ) - + COUNT ( * ) * - 7 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9492
SELECT COUNT( * ) FROM tab1 WHERE NOT - 16 - + CAST( 99 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9492
SELECT COUNT ( * ) FROM tab1 WHERE NOT - 16 - + CAST ( 99 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9493
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT CAST( NULL AS SIGNED ) + ( + 47 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT CAST ( NULL AS INTEGER ) + ( + 47 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 71 ) FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 BETWEEN col1 + + ( - col0 ) AND 43
----
3

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 BETWEEN col1 + + ( - col0 ) AND 43
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 18 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 95 IN ( - 69 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL MIN( col2 ) * COUNT( * ) - 68 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL MIN ( col2 ) * COUNT ( * ) - 68 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE col0 <= 40 * - col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9501
SELECT DISTINCT * FROM tab2 WHERE col0 + - CAST( NULL AS SIGNED ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9501
SELECT DISTINCT * FROM tab2 WHERE col0 + - CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT - COUNT( * ) + - MAX( DISTINCT 52 ) AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-9502
SELECT - COUNT ( * ) + - MAX ( DISTINCT 52 ) AS col1 FROM tab2
----
-55

query I rowsort
SELECT ALL 41 * col1 AS col2 FROM tab1
----
1927
205
574

query I rowsort
SELECT ALL - col0 + col0 FROM tab0 WHERE ( col1 ) NOT BETWEEN col1 * - col2 AND ( + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9505
SELECT * FROM tab2 WHERE CAST( col0 AS SIGNED ) + + col2 * - 77 >= ( col1 )
----

skipif mysql # not compatible
query III rowsort label-9505
SELECT * FROM tab2 WHERE CAST ( col0 AS INTEGER ) + + col2 * - 77 >= ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + ( + col1 ) / - col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > 72 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab1 WHERE ( - col1 * + 41 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - 57 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9510
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9510
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + ( CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT col0 / col1 FROM tab0 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 + + 91 * + col0 ) NOT IN ( col2 + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9513
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT BETWEEN ( - CAST( col2 AS SIGNED ) ) AND - col2
----

skipif mysql # not compatible
query III rowsort label-9513
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT BETWEEN ( - CAST ( col2 AS INTEGER ) ) AND - col2
----

query I rowsort
SELECT + 12 + - 61 AS col2 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - col2 * + col1 - 26 FROM tab2 WHERE NOT 92 * col1 NOT BETWEEN ( col0 + col2 ) AND 58 * - col0 - 16
----

query I rowsort
SELECT col1 + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 21 + 5
----

query I rowsort
SELECT + 1 + col1 FROM tab2
----
52
68
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT DISTINCT col2 * ( col1 DIV + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT col2 * ( col1 / + col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT SUM( 83 ) + 48 * 85 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - col1 * 88 AND - col1
----
4329

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT SUM ( 83 ) + 48 * 85 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - col1 * 88 AND - col1
----
4329

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT COUNT( * ) * + 41 AS col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT COUNT ( * ) * + 41 AS col1 FROM tab1 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT DISTINCT + 58 DIV 11 AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + 58 / 11 AS col1 FROM tab0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9522
SELECT DISTINCT + 14 DIV + col1 FROM tab0
----
0
14

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT + 14 / + col1 FROM tab0
----
0
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT AVG ( ( 31 ) ) FROM tab2 WHERE NOT ( col1 ) NOT IN ( 88 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( + col1 )
----

query I rowsort
SELECT DISTINCT - + col2 + 84 FROM tab2 AS cor0
----
26
44
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT ALL + MIN( ( - CAST( - col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + MIN ( ( - CAST ( - col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL COUNT( * ) + ( 49 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL COUNT ( * ) + ( 49 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
49

query I rowsort
SELECT DISTINCT col0 + 26 * - ( col1 ) FROM tab1 AS cor0
----
-1131
-313
-45

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT - + COUNT( DISTINCT 72 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9531
SELECT - + COUNT ( DISTINCT 72 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT - CAST( NULL AS SIGNED ) * 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT - CAST ( NULL AS INTEGER ) * 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT CAST( - AVG ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9533
SELECT CAST ( - AVG ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 1 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + - 22 FROM tab0 AS cor0
----
-121
-32
-69

query I rowsort
SELECT + 91 + col0 * + ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
1306
188
1918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT - col2 + - CAST( col0 AS SIGNED ) + + col0 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9537
SELECT - col2 + - CAST ( col0 AS INTEGER ) + + col0 AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 67 * col2 AS col1 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT - col2 * col0 + 41 FROM tab0
----
-664
-829
-9562

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL - MIN( ALL 89 ) FROM tab2 WHERE NOT - col0 < col1 / + ( col2 ) - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - MIN ( ALL 89 ) FROM tab2 WHERE NOT - col0 < col1 / + ( col2 ) - - col1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col2 * 76 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 WHERE NOT ( + 52 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT 75 / - col2 - 71 < ( - 49 * - 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 15 + 88 col2 FROM tab1
----
132
141
169

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( 76 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( 76 + col1 )
----
0

query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-100
-451
-6608

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9547
SELECT + CAST( NULL AS DECIMAL ) - - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT + CAST ( NULL AS REAL ) - - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - + 89 AS col0 FROM tab2
----
-12
-22
-38

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( - 44 ) FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT SUM( + 83 ) + - 94 AS col2 FROM tab0 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-9551
SELECT SUM ( + 83 ) + - 94 AS col2 FROM tab0 AS cor0
----
155

query I rowsort
SELECT - ( + col0 ) * + col2 * - col1 + col0 FROM tab1 AS cor0
----
25160
290927
68595

query I rowsort
SELECT ALL + + col1 * - + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9554
SELECT col1 DIV - CAST( + 67 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9554
SELECT col1 / - CAST ( + 67 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 86 AS col2 FROM tab2 cor0 WHERE NOT - ( + col2 ) - col0 IS NULL
----
-28
-46
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT + ( + SUM( - + col0 ) ) * COUNT( * ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT + ( + SUM ( - + col0 ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-555

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT DISTINCT col2 DIV + + 27 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT col2 / + + 27 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT ALL + col0 * + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2601
-7225
-8281

query II rowsort
SELECT ALL - col0 * col0, + col0 FROM tab0
----
-225
15
-7569
87
-9409
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT + - 74 DIV col1 + col2 FROM tab2 WHERE NOT + + col1 IS NULL
----
22
40
57

skipif mysql # not compatible
query I rowsort label-9561
SELECT + - 74 / col1 + col2 FROM tab2 WHERE NOT + + col1 IS NULL
----
22
40
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT col0 * - 90 FROM tab2 WHERE NOT ( NULL ) >= ( col2 + + CAST( NULL AS SIGNED ) * + col1 ) AND 38 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9562
SELECT col0 * - 90 FROM tab2 WHERE NOT ( NULL ) >= ( col2 + + CAST ( NULL AS INTEGER ) * + col1 ) AND 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9563
SELECT - ( 21 ) col0, COUNT( * ) * + COUNT( * ) FROM tab1
----
-21
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9563
SELECT - ( 21 ) col0, COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-21
9

query I rowsort
SELECT + 91 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
91
91
91

query II rowsort
SELECT - ( + col0 ) AS col2, + 80 + - + col0 * - col0 FROM tab1
----
-51
2681
-85
7305
-91
8361

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT DISTINCT + CAST( - 98 AS SIGNED ) FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT + CAST ( - 98 AS INTEGER ) FROM tab0
----
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + + 90 >= - col0 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + 66 * + + col2 * + + col2 AS col1 FROM tab2 AS cor0
----
14875608
1780614
8131200

query I rowsort
SELECT DISTINCT - - 97 AS col0 FROM tab1 cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT + - 14 * - - ( - col0 ) FROM tab0 AS cor0
----
1218
1358
210

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT col2 DIV + 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT col2 / + 81 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9572
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col0 IS NULL
----
3

query I rowsort
SELECT + 56 + - + col2 FROM tab0 cor0
----
-43
46
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 - 91 + + ( + col1 ) < NULL
----

query I rowsort
SELECT DISTINCT - - 12 * - 34 AS col0 FROM tab0 AS cor0
----
-408

query I rowsort
SELECT col2 / + 71 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9577
SELECT ALL - - col1 + - col1 + col1 DIV - col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - - col1 + - col1 + col1 / - col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-1
-1
0

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE col1 + + 65 + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL - + col0 + - col2 - + - CAST( + 40 AS SIGNED ) * - - 7 AS col0 FROM tab1 AS cor0
----
121
133
136

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - + col0 + - col2 - + - CAST ( + 40 AS INTEGER ) * - - 7 AS col0 FROM tab1 AS cor0
----
121
133
136

query I rowsort
SELECT ALL - 80 - + ( + 88 ) * col1 * - col0 * - + col1 FROM tab1
----
-17689752
-187080
-879728

query I rowsort
SELECT DISTINCT 93 + col2 AS col1 FROM tab2
----
116
133
151

query III rowsort
SELECT * FROM tab0 WHERE - + 72 IS NULL
----

query II rowsort
SELECT DISTINCT col0, 0 AS col2 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9584
SELECT DISTINCT + 36 AS col2, COUNT( - + col1 ) AS col0 FROM tab2
----
36
3

skipif mysql # not compatible
query II rowsort label-9584
SELECT DISTINCT + 36 AS col2, COUNT ( - + col1 ) AS col0 FROM tab2
----
36
3

query I rowsort
SELECT + 1 * - col0 + - col2 + + 43 FROM tab0
----
-153
-19
-54

query I rowsort
SELECT + 98 + + col1 * - col0 + - - ( + col1 ) AS col1 FROM tab2
----
-2197
-4753
-4860

query II rowsort
SELECT 69 + col2 + + col2 + - col2, + col2 AS col1 FROM tab1
----
128
59
137
68
165
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9588
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9588
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9589
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9589
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - col2 ) - + 89 FROM tab0 AS cor0
----
-136
-188
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT - CAST( 46 AS SIGNED ) * col2 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 83 * - ( - col0 ) + + CAST( - - 47 AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9591
SELECT - CAST ( 46 AS INTEGER ) * col2 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 83 * - ( - col0 ) + + CAST ( - - 47 AS INTEGER ) ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 82 * col2 - - col2 + - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 47 * + 64 + + col0 * - 76 FROM tab0 AS cor0
----
-3604
-4364
1868

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT + ( - 51 ) DIV - + col2 AS col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9594
SELECT + ( - 51 ) / - + col2 AS col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL + MAX( - 53 ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + MAX ( - 53 ) FROM tab1
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col1 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + MIN( + - col1 ) col2 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT + MIN ( + - col1 ) col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + SUM( - col1 ) * 42 FROM tab2
----
-8190

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + SUM ( - col1 ) * 42 FROM tab2
----
-8190

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT - COUNT( * ) AS col2, + MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
-3
-58

skipif mysql # not compatible
query II rowsort label-9599
SELECT - COUNT ( * ) AS col2, + MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
-3
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT ALL - COUNT( * ) AS col2, SUM( DISTINCT 13 ) * SUM( 6 ) FROM tab2
----
-3
234

skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL - COUNT ( * ) AS col2, SUM ( DISTINCT 13 ) * SUM ( 6 ) FROM tab2
----
-3
234

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 28 + - ( + col2 ) + ( - + 26 ) ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col2 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9603
SELECT ALL ( COUNT( * ) ) DIV COUNT( * ), - COUNT( ALL + - CAST( + - col0 AS SIGNED ) ) AS col2 FROM tab0
----
1
-3

skipif mysql # not compatible
query II rowsort label-9603
SELECT ALL ( COUNT ( * ) ) / COUNT ( * ), - COUNT ( ALL + - CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab0
----
1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL - MIN( DISTINCT + CAST( + ( - ( ( - col0 ) ) ) AS SIGNED ) ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9604
SELECT ALL - MIN ( DISTINCT + CAST ( + ( - ( ( - col0 ) ) ) AS INTEGER ) ) col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT DISTINCT - 4 * - + COUNT( * ) * - CAST( + + 38 AS SIGNED ) AS col2 FROM tab2
----
-456

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT - 4 * - + COUNT ( * ) * - CAST ( + + 38 AS INTEGER ) AS col2 FROM tab2
----
-456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9606
SELECT - COUNT( * ) DIV + - COUNT( - + col1 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9606
SELECT - COUNT ( * ) / + - COUNT ( - + col1 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT ALL CAST( - 60 AS SIGNED ) + col1 * + 95 * col2 AS col1 FROM tab2
----
111375
292540
369110

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL CAST ( - 60 AS INTEGER ) + col1 * + 95 * col2 AS col1 FROM tab2
----
111375
292540
369110

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT + + col2 DIV 63 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT + + col2 / 63 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 35 * + - 36 + col1 FROM tab1 AS cor0
----
-1213
-1246
-1255

query I rowsort
SELECT DISTINCT + + col1 + ( + - 12 ) FROM tab1 AS cor0
----
-7
2
35

query I rowsort
SELECT ALL - 55 * - 79 + col0 + + 96 FROM tab2 AS cor0
----
4487
4505
4516

query II rowsort
SELECT - col2 + - + col1, col1 FROM tab0 AS cor0
----
-100
1
-128
81
-31
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * 1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN ( NULL ) AND col0 * + col2 * + ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col0 - - + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col1 col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( col2 * - - 39 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9619
SELECT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( col2 * - - 39 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE 67 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 33 col2, - col1 FROM tab1 AS cor0
----
-33
-14
-33
-47
-33
-5

query I rowsort
SELECT ALL 21 * - col1 + - 13 AS col0 FROM tab0 AS cor0
----
-1714
-34
-454

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT + - 84, COUNT( * ) + + 22 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-84
69

skipif mysql # not compatible
query II rowsort label-9623
SELECT + - 84, COUNT ( * ) + + 22 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-84
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL + SUM( DISTINCT - + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + SUM ( DISTINCT - + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL + COUNT( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + COUNT ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - ( - 92 ) AS col0 FROM tab2 cor0
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT ALL ( CAST( NULL AS SIGNED ) ) col1, + 3 col0 FROM tab1
----
NULL
3
NULL
3
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9628
SELECT ALL ( CAST ( NULL AS INTEGER ) ) col1, + 3 col0 FROM tab1
----
NULL
3
NULL
3
NULL
3

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT - + 2 NOT BETWEEN NULL AND + 80 / - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL MAX( ALL - - 44 ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL MAX ( ALL - - 44 ) AS col2 FROM tab2
----
44

query II rowsort
SELECT DISTINCT col0 AS col2, ( + col0 ) FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT - 49 - + col1 AS col1 FROM tab0 WHERE NULL > ( - 50 ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT + col1 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT + col1 ) FROM tab1
----
198

query II rowsort
SELECT - - col1 AS col2, + 12 FROM tab0 AS cor0
----
1
12
21
12
81
12

query II rowsort
SELECT + col2 AS col1, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + col0 + + + 28 AS col2 FROM tab2 AS cor0
----
103
74
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT DISTINCT 35 + - MAX( ALL col2 ) FROM tab1 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT 35 + - MAX ( ALL col2 ) FROM tab1 cor0
----
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 / ( - - 39 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 26 - + + col2 AS col0 FROM tab0 AS cor0
----
-125
-36
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT DISTINCT - - COUNT( * ) + - - ( + - SUM( ALL + + col2 ) ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT - - COUNT ( * ) + - - ( + - SUM ( ALL + + col2 ) ) FROM tab0 AS cor0
----
-153

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 75 / col2 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - 43 AS col0 FROM tab2
----
21
3
32

query I rowsort
SELECT 51 - + col2 FROM tab0
----
-48
4
41

query I rowsort
SELECT DISTINCT col1 * + + col1 - + + col2 FROM tab1
----
-34
100
2141

query I rowsort
SELECT col0 - + 53 * + col1 FROM tab0
----
-1026
-4278
44

query I rowsort
SELECT DISTINCT ( + 74 ) * + col0 FROM tab2
----
3404
4736
5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL 85 * CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL 85 * CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col1 + - 15 FROM tab1
----
123
50
75

query I rowsort
SELECT DISTINCT + 2 * - col1 AS col0 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT + COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT + + col1 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT + + col1 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT - - CAST( - 55 AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

skipif mysql # not compatible
query I rowsort label-9654
SELECT - - CAST ( - 55 AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT ( 88 ) AS col0 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT + 32 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 32 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT DISTINCT - col0 DIV + 26 AS col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT - col0 / + 26 AS col1 FROM tab2 AS cor0
----
-1
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 83 NOT BETWEEN - col0 AND 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 80 >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col2 * 51 FROM tab0 AS cor0
----
2397
5049
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 col2, col2 FROM tab0 AS cor0
----
-26
10
-26
47
-26
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT DISTINCT MIN( - col0 ) AS col2 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT MIN ( - col0 ) AS col2 FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 5 IS NULL OR NOT NULL NOT IN ( - col1 + + 89 / - 79 - - col1, col0 * 20 )
----

query I rowsort
SELECT + col1 * + 8 * + col2 FROM tab0
----
1680
30456
792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9665
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN CAST( 23 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9665
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN CAST ( 23 AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT + 16 - - col1 IN ( 27, - 66, 38 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT SUM( ALL - - 41 ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-9667
SELECT SUM ( ALL - - 41 ) AS col2 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL - ( - + MAX( DISTINCT col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - ( - + MAX ( DISTINCT col0 ) ) FROM tab0
----
97

query II rowsort
SELECT ALL col1 * - 4, 27 AS col2 FROM tab2
----
-204
27
-268
27
-308
27

query III rowsort
SELECT * FROM tab2 WHERE NOT + 25 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT + 24 + - 84 - + COUNT( - col0 ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-9671
SELECT + 24 + - 84 - + COUNT ( - col0 ) AS col0 FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9673
SELECT + - COUNT( * ) DIV - 61 col1, - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9673
SELECT + - COUNT ( * ) / - 61 col1, - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT - - ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - - ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

query II rowsort
SELECT DISTINCT - col0 + - - 7 - + ( - col2 ), col1 FROM tab1 AS cor0
----
-16
47
-19
5
52
14

query II rowsort
SELECT col0 AS col2, - 26 * + + col2 * + - 42 FROM tab1 AS cor0
----
51
104832
85
64428
91
74256

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 29 + + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 * - col1 col2, + col1 col0 FROM tab2
----
3213
51
4221
67
4851
77

query I rowsort
SELECT col1 - 20 FROM tab2
----
31
47
57

query I rowsort
SELECT - col0 * + 91 AS col1 FROM tab2 WHERE NULL IS NULL
----
-4186
-5824
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT + col1 DIV + col0 + col2 + - - col0 AS col2 FROM tab0 AS cor0
----
196
67
97

skipif mysql # not compatible
query I rowsort label-9681
SELECT + col1 / + col0 + col2 + - - col0 AS col2 FROM tab0 AS cor0
----
196
67
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + col2 col0, col0 AS col2 FROM tab0 AS cor0
----
198
97
20
87
94
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT MAX( ALL - + col1 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT MAX ( ALL - + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2 - col1 AS col1, 52 FROM tab1 AS cor0
----
-110
52
-115
52
-64
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 + + + col0 - - - col1 * - 6 + 73 * - - col2 col1 FROM tab0 AS cor0
----
3853
7251
864

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT COUNT( * ) * - SUM( DISTINCT - - ( + col1 ) ) FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-9687
SELECT COUNT ( * ) * - SUM ( DISTINCT - - ( + col1 ) ) FROM tab2
----
-585

query I rowsort
SELECT DISTINCT 48 + col1 AS col0 FROM tab0
----
129
49
69

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + 44 <= + col1
----

query II rowsort
SELECT ALL 20, col0 FROM tab2
----
20
46
20
64
20
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col2 AS col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 29 * + + 11 AS col0 FROM tab2 AS cor0
----
23
319
40
319
58
319

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - COUNT( * ) * + 36 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9694
SELECT - COUNT ( * ) * + 36 FROM tab1 AS cor0
----
-108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 74 <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9697
SELECT ALL - col1, - 58 * + 97 + - - col2 * + col0 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - 40 AND - - ( - CAST( NULL AS SIGNED ) ) * col2
----

skipif mysql # not compatible
query II rowsort label-9697
SELECT ALL - col1, - 58 * + 97 + - - col2 * + col0 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - 40 AND - - ( - CAST ( NULL AS INTEGER ) ) * col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9698
SELECT DISTINCT col0 * - 2, 26 * col0 DIV + + col2 AS col1 FROM tab2 AS cor0
----
-128
41
-150
33
-92
52

skipif mysql # not compatible
query II rowsort label-9698
SELECT DISTINCT col0 * - 2, 26 * col0 / + + col2 AS col1 FROM tab2 AS cor0
----
-128
41
-150
33
-92
52

query I rowsort
SELECT - col1 * + + 90 FROM tab1 cor0
----
-1260
-4230
-450

query I rowsort
SELECT ALL + col1 + + 15 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN 16 AND col0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col0 + col0 + - 90 ) > 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 8, + 64 AS col2 FROM tab2
----
8
64
8
64
8
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 45 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9703
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL - MAX( - 17 ) AS col1 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL - MAX ( - 17 ) AS col1 FROM tab0
----
17

query I rowsort
SELECT DISTINCT + ( + - 58 ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT + - 5 * COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + - 5 * COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-15

query I rowsort
SELECT + ( - ( + col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL + ( - - COUNT( + col0 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL + ( - - COUNT ( + col0 ) ) AS col1 FROM tab1
----
3

query II rowsort
SELECT + col0, + col0 AS col2 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9710
SELECT - 75 DIV COUNT( * ) AS col0 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-9710
SELECT - 75 / COUNT ( * ) AS col0 FROM tab1
----
-25

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 17 * col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - SUM( + 80 ) col1 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9712
SELECT ALL - SUM ( + 80 ) col1 FROM tab1 AS cor0
----
-240

query I rowsort
SELECT 21 + + - col0 FROM tab1 AS cor0
----
-30
-64
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 51, + col1 col0 FROM tab2 AS cor0
----
51
51
51
67
51
77

query I rowsort
SELECT + 87 * - col2 + + col0 FROM tab1
----
-5048
-5825
-8301

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT DISTINCT - COUNT( + ( + col1 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT - COUNT ( + ( + col1 ) ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * + 10 AS col0 FROM tab1
----
510
850
910

query II rowsort
SELECT - col2, col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT + 90 DIV - - col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9720
SELECT + 90 / - - col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + ( - + ( - + col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT + col0 DIV + 17 AS col2 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-9722
SELECT + col0 / + 17 AS col2 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # DIV for integer division: 
query II rowsort label-9723
SELECT ALL col2 - - col0 + 38 DIV col2, + 24 AS col2 FROM tab1 AS cor0
----
144
24
147
24
159
24

skipif mysql # not compatible
query II rowsort label-9723
SELECT ALL col2 - - col0 + 38 / col2, + 24 AS col2 FROM tab1 AS cor0
----
144
24
147
24
159
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9724
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) < + col2 AND NOT 80 * + 74 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9724
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) < + col2 AND NOT 80 * + 74 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9725
SELECT + CAST( NULL AS SIGNED ) - + CAST( + COUNT( ALL col1 ) AS DECIMAL ) * - COUNT( DISTINCT - col0 ) * 93 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT + CAST ( NULL AS INTEGER ) - + CAST ( + COUNT ( ALL col1 ) AS REAL ) * - COUNT ( DISTINCT - col0 ) * 93 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 < NULL
----

query I rowsort
SELECT - col0 - - 20 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - + col1 * - col0 + - 26 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
399
4251
688

query I rowsort
SELECT ALL - ( - + ( + - 23 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-23
-23
-23

query I rowsort
SELECT DISTINCT col2 * - + col2 * + + col2 FROM tab0
----
-1000
-103823
-970299

query I rowsort
SELECT + - 90 FROM tab1 AS cor0 WHERE NOT + col0 - - col0 >= + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - COUNT( * ) + - 39 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-9733
SELECT - COUNT ( * ) + - 39 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT - MIN( DISTINCT + 74 ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT - MIN ( DISTINCT + 74 ) AS col0 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9735
SELECT COUNT( * ) * COUNT( * ) * COUNT( * ), + COUNT( * ) AS col0 FROM tab0
----
27
3

skipif mysql # not compatible
query II rowsort label-9735
SELECT COUNT ( * ) * COUNT ( * ) * COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0
----
27
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 59 * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - + 77 FROM tab0 AS cor0
----
-3619
-7623
-770

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9738
SELECT ALL 63 AS col0, + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-9738
SELECT ALL 63 AS col0, + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
63
NULL
63
NULL
63
NULL

query I rowsort
SELECT DISTINCT + col2 * - col2 + - 14 + - col1 FROM tab2 AS cor0
----
-1691
-3445
-594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 cor0 WHERE NOT + ( col1 ) * col1 - - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 4 * - - col2 FROM tab1 AS cor0
----
-236
-272
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT + MAX( ALL - 5 ) AS col2 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9742
SELECT + MAX ( ALL - 5 ) AS col2 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col1 * - col2 AND - - 13 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT - 58 + + - COUNT( * ) FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9744
SELECT - 58 + + - COUNT ( * ) FROM tab2 cor0
----
-61

query I rowsort
SELECT ALL col2 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT DISTINCT 83 DIV ( + COUNT( * ) ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT 83 / ( + COUNT ( * ) ) AS col1 FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9747
SELECT + CAST( NULL AS DECIMAL ) + 25 + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * + 61 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT + CAST ( NULL AS REAL ) + 25 + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + 61 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL MAX( - 17 ) AS col0 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL MAX ( - 17 ) AS col0 FROM tab2
----
-17

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9750
SELECT ALL * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) <= - 82 * - 82
----

skipif mysql # not compatible
query III rowsort label-9750
SELECT ALL * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) <= - 82 * - 82
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= col2 * + col0
----

query I rowsort
SELECT ALL + 64 + - 45 FROM tab0 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT DISTINCT - col0 + CAST( - + 27 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-114
-124
-42

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT - col0 + CAST ( - + 27 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-114
-124
-42

query I rowsort
SELECT DISTINCT + ( 73 ) + col0 + 46 + 35 AS col2 FROM tab2 AS cor0
----
200
218
229

query I rowsort
SELECT ALL - col0 + ( - + col0 ) * + + col0 FROM tab2 AS cor0
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT ALL - 64 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - 64 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - COUNT( DISTINCT - 14 ) + - + 20 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-9758
SELECT - COUNT ( DISTINCT - 14 ) + - + 20 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT - 59 + MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-9759
SELECT - 59 + MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-134

query I rowsort
SELECT ALL + 94 FROM tab0 AS cor0 WHERE NOT col1 * 75 > + - 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) + 90 col2 FROM tab1 AS cor0
----
-6
22
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT + COUNT( * ) AS col2, - MIN( + - col2 ) FROM tab2 cor0
----
3
58

skipif mysql # not compatible
query II rowsort label-9762
SELECT + COUNT ( * ) AS col2, - MIN ( + - col2 ) FROM tab2 cor0
----
3
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT ALL - - col2 DIV - col1 + col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - - col2 / - col1 + col1 FROM tab0 AS cor0
----
-98
21
81

query I rowsort
SELECT - - ( - 83 ) FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + ( + 49 ) FROM tab1
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, - 57 * - col2 * 2 - col0 FROM tab1
----
-14
10893
-47
7661
-5
6641

query I rowsort
SELECT ALL + 49 AS col1 FROM tab0 WHERE NULL BETWEEN col0 AND + 30
----

query II rowsort
SELECT 7, col1 FROM tab1
----
7
14
7
47
7
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9769
SELECT DISTINCT + MIN( DISTINCT CAST( - + ( + - col2 ) AS SIGNED ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + MIN ( DISTINCT CAST ( - + ( + - col2 ) AS INTEGER ) ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - SUM( - + 83 ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-9770
SELECT - SUM ( - + 83 ) FROM tab2 AS cor0
----
249

query I rowsort
SELECT ALL - - col1 * - - col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ( - col2 ) * + + col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + 7 + + - 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT + 88 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query II rowsort
SELECT + 94 + - col2 AS col0, - 97 FROM tab2
----
36
-97
54
-97
71
-97

query I rowsort
SELECT + + col2 + + ( + ( - + 98 ) ) + + 35 * - + col2 FROM tab0 AS cor0
----
-1696
-3464
-438

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 66 * + ( + - col0 ) IS NULL
----

query I rowsort
SELECT ALL + + col1 + + 45 FROM tab1 AS cor0
----
50
59
92

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 cor0 WHERE 58 IS NULL
----

query I rowsort
SELECT ALL 39 + - 21 FROM tab1 AS cor0
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, col1 * + - 74, + col0 + + col0 + - ( - col2 ) + col1 + col0 * + 81 * - ( col2 ) + - col1 * + + col2 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + - 45 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT ( + - col0 ) AS col2, - col2 * - 16 * + col0 + - ( - col0 ) FROM tab2 cor0
----
-46
16974
-64
41024
-75
69675

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 90, + 40 / 52 )
----

query II rowsort
SELECT ALL 93 * + col0 * + col1 AS col0, + 78 AS col2 FROM tab0
----
112995
78
169911
78
9021
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT - + CAST( NULL AS SIGNED ) + 3 AS col0 FROM tab2 WHERE + + col2 - - - ( + col1 ) - - col2 <> col0 + + - col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT - + CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab2 WHERE + + col2 - - - ( + col1 ) - - col2 <> col0 + + - col1
----
NULL
NULL

query I rowsort
SELECT col0 * ( + - col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - ( - 8 ) FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT + col2, 89 FROM tab0
----
10
89
47
89
99
89

query I rowsort
SELECT col2 * + 92 FROM tab2
----
2116
3680
5336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT DISTINCT + col1 + - - col1 + + + col1 * + CAST( + 72 AS SIGNED ) FROM tab1
----
1036
3478
370

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT + col1 + - - col1 + + + col1 * + CAST ( + 72 AS INTEGER ) FROM tab1
----
1036
3478
370

query I rowsort
SELECT col1 + + col1 - col0 * + 40 * - 77 FROM tab1
----
157108
261810
280374

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT 66 * SUM( ALL - col2 ) FROM tab1
----
-14718

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT 66 * SUM ( ALL - col2 ) FROM tab1
----
-14718

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9794
SELECT - 15 * 48 * - CAST( NULL AS DECIMAL ) + + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT - 15 * 48 * - CAST ( NULL AS REAL ) + + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * - + col0 - - col0 + col1 + col2 FROM tab0 AS cor0
----
-7451
-82
-9212

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9797
SELECT ALL + col2 * + col0 + + CAST( - + ( - 78 ) AS SIGNED ) + + col0 AS col0, - 56 FROM tab0 cor0
----
1035
-56
798
-56
9778
-56

skipif mysql # not compatible
query II rowsort label-9797
SELECT ALL + col2 * + col0 + + CAST ( - + ( - 78 ) AS INTEGER ) + + col0 AS col0, - 56 FROM tab0 cor0
----
1035
-56
798
-56
9778
-56

query II rowsort
SELECT ALL - col1 + + - col0 AS col1, col2 FROM tab2
----
-141
40
-142
58
-97
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT - 21 - - - COUNT( * ) col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9799
SELECT - 21 - - - COUNT ( * ) col0 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT COUNT( * ) FROM tab2 cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT COUNT ( * ) FROM tab2 cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT + - 74 FROM tab1 AS cor0 WHERE NOT - 96 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * ( + - col0 ) FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 WHERE NOT - 58 + - + col1 + + col2 = + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 92 col1, - 45 FROM tab2
----
-92
-45
-92
-45
-92
-45

query II rowsort
SELECT + 99 AS col2, - 94 FROM tab2
----
99
-94
99
-94
99
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT DISTINCT + col1 * + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + col1 * + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT - ( + SUM( ALL + ( col1 ) ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT - ( + SUM ( ALL + ( col1 ) ) ) FROM tab0
----
-103

query II rowsort
SELECT ALL - - col1 * col1 * - - col1 + col0 + + + col2 + - - col0 + col0 * - - col1 * + 22 * + ( + col0 ), - col1 AS col0 FROM tab0 WHERE - + 49 * col1 * col2 IS NULL
----

query II rowsort
SELECT DISTINCT col0, - 99 AS col1 FROM tab2
----
46
-99
64
-99
75
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 62, 20 * - + 18, + ( + + 24 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 4 ) col2 FROM tab0 cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9813
SELECT - COUNT( * ) DIV - - 82 * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT - COUNT ( * ) / - - 82 * COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL SUM( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
199

query II rowsort
SELECT ALL - col0 AS col2, col1 * - + col1 FROM tab0 AS cor0
----
-15
-6561
-87
-441
-97
-1

query I rowsort
SELECT DISTINCT - + col0 + 83 AS col2 FROM tab2 AS cor0
----
19
37
8

query II rowsort
SELECT + col1 + + col2 AS col2, col1 AS col0 FROM tab2 AS cor0
----
117
77
125
67
74
51

query I rowsort
SELECT - 92 + + 68 AS col1 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT 16 + - col0 + + 59 FROM tab0
----
-12
-22
60

query I rowsort
SELECT ALL 90 + - + 9 - + - col2 FROM tab2
----
104
121
139

query I rowsort
SELECT col0 + col0 * - + col2 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - MAX( + col2 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-9822
SELECT - MAX ( + col2 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-99

query II rowsort
SELECT DISTINCT + col0 * col0 AS col2, - col1 FROM tab2
----
2116
-51
4096
-77
5625
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT ALL col0 - - + 38 AS col0 FROM tab0
----
125
135
53

query I rowsort
SELECT - 27 FROM tab0 WHERE + col2 IS NOT NULL
----
-27
-27
-27

query II rowsort
SELECT ALL 64 AS col0, 53 FROM tab0
----
64
53
64
53
64
53

query I rowsort
SELECT 54 * + - col2 FROM tab2 AS cor0
----
-1242
-2160
-3132

query II rowsort
SELECT ALL + col1, + 7 AS col2 FROM tab2 AS cor0
----
51
7
67
7
77
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9831
SELECT ALL + 25 DIV - - ( - 79 ), + col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-9831
SELECT ALL + 25 / - - ( - 79 ), + col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT DISTINCT + SUM( - + 95 ) AS col1 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT + SUM ( - + 95 ) AS col1 FROM tab1 AS cor0
----
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 74 col0, + col1 FROM tab1 AS cor0
----
-74
14
-74
47
-74
5

query I rowsort
SELECT 5 * - 23 AS col1 FROM tab0 AS cor0
----
-115
-115
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + COUNT( DISTINCT - + ( + + 10 ) ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9835
SELECT + COUNT ( DISTINCT - + ( + + 10 ) ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9836
SELECT - SUM( ALL 83 ) * + COUNT( * ) AS col1, COUNT( * ) col1 FROM tab1 AS cor0
----
-747
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9836
SELECT - SUM ( ALL 83 ) * + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0
----
-747
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN NULL AND col1 / col2 / - 34
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - + col0 NOT IN ( 0, 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT MIN( 32 ) AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT MIN ( 32 ) AS col2 FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT - 75 * + - 36 FROM tab1 cor0 WHERE NOT + CAST( col2 AS SIGNED ) IS NULL
----
2700
2700
2700

skipif mysql # not compatible
query I rowsort label-9840
SELECT - 75 * + - 36 FROM tab1 cor0 WHERE NOT + CAST ( col2 AS INTEGER ) IS NULL
----
2700
2700
2700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 43 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col1, + ( + + col2 ), 24, - ( col2 ) * + 4 + + - ( + col0 ) )
----

query I rowsort
SELECT ALL - 7 / 22 * 44 + - + col2 - + 21 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - col2 NOT IN ( col2 * + 88 * col1, + col2 * + 44 )
----

query I rowsort
SELECT 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT col2 * 38 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2242
2584
3648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9847
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL + COUNT( * ) + 24 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + COUNT ( * ) + 24 FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9849
SELECT + MIN( DISTINCT - + CAST( + col2 AS SIGNED ) ) * - 22 - + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9849
SELECT + MIN ( DISTINCT - + CAST ( + col2 AS INTEGER ) ) * - 22 - + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT - + SUM( col2 ) + COUNT( * ) FROM tab1 cor0
----
-220

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT - + SUM ( col2 ) + COUNT ( * ) FROM tab1 cor0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + 20 - COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-9851
SELECT + 20 - COUNT ( * ) FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT MAX( - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT MAX ( - 99 ) FROM tab1
----
-99

query I rowsort
SELECT + col2 * 77 + - col0 FROM tab1
----
4458
5145
7341

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9854
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( - col1 AS SIGNED ) * col1 AND + - col2 * col2
----

skipif mysql # not compatible
query III rowsort label-9854
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( - col1 AS INTEGER ) * col1 AND + - col2 * col2
----

query I rowsort
SELECT DISTINCT + col0 * col0 * - 17 * 16 AS col1 FROM tab2 AS cor0
----
-1114112
-1530000
-575552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * - col1 col2 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + 39 * - 69 AS col2 FROM tab2 AS cor0
----
-2691

onlyif mysql # DIV for integer division: 
query II rowsort label-9858
SELECT DISTINCT - col2 DIV + 81, col2 FROM tab1 AS cor0
----
-1
96
0
59
0
68

skipif mysql # not compatible
query II rowsort label-9858
SELECT DISTINCT - col2 / + 81, col2 FROM tab1 AS cor0
----
-1
96
0
59
0
68

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> + col0 - - + col2 + - ( + 43 )
----

query II rowsort
SELECT - col2 * + - 7 + col1 AS col1, - 98 FROM tab1 AS cor0
----
418
-98
523
-98
686
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT col1 DIV ( - col1 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9862
SELECT col1 / ( - col1 ) FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9863
SELECT 28 AS col2, + COUNT( * ) col0 FROM tab0
----
28
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9863
SELECT 28 AS col2, + COUNT ( * ) col0 FROM tab0
----
28
3

query II rowsort
SELECT - col0, 53 AS col2 FROM tab1
----
-51
53
-85
53
-91
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9865
SELECT + 39 DIV SUM( DISTINCT - CAST( + col0 AS SIGNED ) ) * CAST( COUNT( * ) AS SIGNED ) * + - 39 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT + 39 / SUM ( DISTINCT - CAST ( + col0 AS INTEGER ) ) * CAST ( COUNT ( * ) AS INTEGER ) * + - 39 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9866
SELECT - 80 - + col0 + - 85 - col1 * col0 * 64 * - 49 * + 16 - 30 FROM tab1 cor0 WHERE CAST( NULL AS DECIMAL ) * col2 IS NULL
----
21324520
214602466
35825418

skipif mysql # not compatible
query I rowsort label-9866
SELECT - 80 - + col0 + - 85 - col1 * col0 * 64 * - 49 * + 16 - 30 FROM tab1 cor0 WHERE CAST ( NULL AS REAL ) * col2 IS NULL
----
21324520
214602466
35825418

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT DISTINCT + SUM( 5 ) + - + COUNT( * ) * ( + - 49 ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
162
3

skipif mysql # not compatible
query II rowsort label-9867
SELECT DISTINCT + SUM ( 5 ) + - + COUNT ( * ) * ( + - 49 ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
162
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL 96 * - 53 + - + 58 + + - COUNT( * ) FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
-5149

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL 96 * - 53 + - + 58 + + - COUNT ( * ) FROM tab0 AS cor0 WHERE - 7 IS NOT NULL
----
-5149

query I rowsort
SELECT ALL col1 + - 24 * - col1 AS col2 FROM tab2 AS cor0
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT DISTINCT COUNT( * ) - - SUM( ALL - col0 ) + 51, + 40 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-173
-120

skipif mysql # not compatible
query II rowsort label-9870
SELECT DISTINCT COUNT ( * ) - - SUM ( ALL - col0 ) + 51, + 40 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-173
-120

query I rowsort
SELECT + col2 + 67 AS col1 FROM tab1 AS cor0
----
126
135
163

query I rowsort
SELECT ALL - + 20 + col1 - - - 44 AS col1 FROM tab1 WHERE + + col0 IS NULL
----

query II rowsort
SELECT ALL + col0 - - col2 + + - col1, + col2 FROM tab1
----
112
68
133
96
139
59

query I rowsort
SELECT + 3 * - - col0 * + col0 AS col2 FROM tab1
----
21675
24843
7803

query III rowsort
SELECT * FROM tab0 WHERE ( + - ( - - col2 ) ) * + col1 NOT BETWEEN - col2 AND col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT COUNT( * ) - + + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9876
SELECT COUNT ( * ) - + + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT DISTINCT + 71 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
71

query I rowsort
SELECT DISTINCT + - 70 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + MIN( - + 54 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-9879
SELECT + MIN ( - + 54 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-54

query II rowsort
SELECT col2 AS col0, 42 AS col2 FROM tab1
----
59
42
68
42
96
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9881
SELECT DISTINCT col1 AS col0, + CAST( NULL AS SIGNED ) * 65 + + + 29 + ( 24 ) + + col0 / - 38 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9881
SELECT DISTINCT col1 AS col0, + CAST ( NULL AS INTEGER ) * 65 + + + 29 + ( 24 ) + + col0 / - 38 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL + + COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + + COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT + - MAX( ALL + col2 ) * - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9883
SELECT + - MAX ( ALL + col2 ) * - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 cor0
----
96

query I rowsort
SELECT ( - + col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT + 39 * - col0 AS col2 FROM tab0 AS cor0
----
-3393
-3783
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT ALL ( - 62 ) DIV col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL ( - 62 ) / col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + 44 * - MAX( - col0 ) FROM tab2 AS cor0
----
2024

skipif mysql # not compatible
query I rowsort label-9887
SELECT + 44 * - MAX ( - col0 ) FROM tab2 AS cor0
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL COUNT( * ) * + 36 AS col0 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL COUNT ( * ) * + 36 AS col0 FROM tab2 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - + COUNT( * ) * MIN( ALL - col1 ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9889
SELECT - + COUNT ( * ) * MIN ( ALL - col1 ) FROM tab1 AS cor0
----
141

query I rowsort
SELECT ALL - - col0 * - col2 + - + col0 AS col2 FROM tab1 cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9891
SELECT ALL + COUNT( ALL + 84 ) AS col1, MIN( DISTINCT + CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-9891
SELECT ALL + COUNT ( ALL + 84 ) AS col1, MIN ( DISTINCT + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2
----
3
23

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( + + col1 / + col2 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE - col0 > + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9894
SELECT ALL + + COUNT( 6 ), CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9894
SELECT ALL + + COUNT ( 6 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT + 55 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT 58 + + - col2 FROM tab1
----
-1
-10
-38

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 87 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 47 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9900
SELECT ALL 61 + - - COUNT( + 81 ) + + COUNT( * ) * - COUNT( * ) DIV 98 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL 61 + - - COUNT ( + 81 ) + + COUNT ( * ) * - COUNT ( * ) / 98 FROM tab1
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT - col1 AS col2, col2 AS col1 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + col2 * + - col1 BETWEEN - col0 AND + col2 + + col2 )
----

query I rowsort
SELECT DISTINCT + 97 + - col0 AS col0 FROM tab2 AS cor0
----
22
33
51

query II rowsort
SELECT DISTINCT 40, 28 AS col1 FROM tab0 AS cor0
----
40
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + MAX( - + 21 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9906
SELECT + MAX ( - + 21 ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT - 43 + + ( col0 ) FROM tab2 AS cor0
----
21
3
32

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9909
SELECT DISTINCT + col2 DIV + 34 + col2 * 94 * ( + col1 ) + - col0 + - - col0 * col1 AS col2 FROM tab1 AS cor0
----
127001
28071
304612

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT + col2 / + 34 + col2 * 94 * ( + col1 ) + - col0 + - - col0 * col1 AS col2 FROM tab1 AS cor0
----
127001
28071
304612

query I rowsort
SELECT ALL - 84 - col0 * 91 + - + col1 + + 0 FROM tab0 AS cor0
----
-1530
-8022
-8912

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 45 ) * - - col2 * - + ( 7 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT - 58 * + ( - 68 ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3941

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT - 58 * + ( - 68 ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT ALL col1 * - - ( - col1 ) - - - CAST( + 4 AS SIGNED ) col0 FROM tab2
----
-2605
-4493
-5933

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9913
SELECT ALL col1 * - - ( - col1 ) - - - CAST ( + 4 AS INTEGER ) col0 FROM tab2
----
-2605
-4493
-5933

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT ALL - col2 DIV 65 + - col1 AS col2 FROM tab0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - col2 / 65 + - col1 AS col2 FROM tab0
----
-2
-21
-81

query I rowsort
SELECT ALL 73 - - - col2 + - + col0 AS col1 FROM tab2
----
-31
-60
4

query I rowsort
SELECT ( + 38 ) + - 52 + - - col0 + + - col0 * - col1 AS col2 FROM tab0
----
1216
180
1900

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT DISTINCT - col2 - + + col2 DIV - - col1 AS col0 FROM tab1
----
-102
-69
-70

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT - col2 - + + col2 / - - col1 AS col0 FROM tab1
----
-102
-69
-70

query I rowsort
SELECT col1 * + - col0 * 48 * + col2 * - col0 + + - 36 + - col2 FROM tab1
----
102305905
1270371544
167795580

query I rowsort
SELECT ALL ( + + 3 ) - col0 AS col2 FROM tab0
----
-12
-84
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + + col0 col1 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE - - col0 * + ( - col1 ) + - col2 + - - 74 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + col0 + - ( 27 ) FROM tab2
----
19
37
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT COUNT( * ) - - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9924
SELECT COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col1 BETWEEN - - 74 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col0 FROM tab1
----
-31

query I rowsort
SELECT ALL - 53 * - 43 FROM tab0 cor0
----
2279
2279
2279

onlyif mysql # DIV for integer division: 
query I rowsort label-9929
SELECT ALL + 73 DIV + col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + 73 / + col2 FROM tab2 AS cor0
----
1
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 1 col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 13 * + - col2 FROM tab1 AS cor0
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL + MIN( ALL - + 75 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + MIN ( ALL - + 75 ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT - + 60 * + col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED ) * COUNT( * ) * 42 + - - 49 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * 42 + - - 49 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT + 86 + - COUNT( * ) * - 11 col0 FROM tab1
----
119

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9935
SELECT + 86 + - COUNT ( * ) * - 11 col0 FROM tab1
----
119

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE NOT ( col0 ) > + - 60
----

query I rowsort
SELECT ALL - 34 * col1 FROM tab0
----
-2754
-34
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT ALL - 28 DIV - + ( 45 ) * - 47 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9938
SELECT ALL - 28 / - + ( 45 ) * - 47 + - col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 + 98 * - 36 + + 50 col1 FROM tab2 WHERE col0 / - + col1 + + - col0 IS NULL
----

query I rowsort
SELECT ALL + + 17 + - 49 AS col0 FROM tab0 AS cor0
----
-32
-32
-32

query II rowsort
SELECT - + 39 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-39
46
-39
64
-39
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9943
SELECT DISTINCT 71 * + + CAST( - - COUNT( * ) AS SIGNED ), CAST( + - 81 AS SIGNED ) * 69 AS col1 FROM tab2
----
213
-5589

skipif mysql # not compatible
query II rowsort label-9943
SELECT DISTINCT 71 * + + CAST ( - - COUNT ( * ) AS INTEGER ), CAST ( + - 81 AS INTEGER ) * 69 AS col1 FROM tab2
----
213
-5589

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT 38 * COUNT( - col1 ) AS col0 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT 38 * COUNT ( - col1 ) AS col0 FROM tab1
----
114

query III rowsort
SELECT * FROM tab1 WHERE - + col0 - col1 BETWEEN + 16 AND NULL
----

query I rowsort
SELECT - 18 * col2 + - col1 FROM tab0 AS cor0
----
-1783
-201
-927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 40 + + col0 col1, col0 AS col0 FROM tab2 AS cor0
----
104
64
115
75
86
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + MAX( ALL + ( 62 ) ) + - SUM( ALL - - col2 ) FROM tab1 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-9948
SELECT + MAX ( ALL + ( 62 ) ) + - SUM ( ALL - - col2 ) FROM tab1 AS cor0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - + ( - MAX( - 77 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9949
SELECT - + ( - MAX ( - 77 ) ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + + 89 + 9 FROM tab1 AS cor0
----
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 18 )
----

query I rowsort
SELECT ALL col0 * + ( col1 ) * - 10 + - 92 * - ( - col1 ) AS col1 FROM tab1
----
-47094
-4710
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT + MAX( - 31 ) AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT + MAX ( - 31 ) AS col0 FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT 72 * - - COUNT( * ) col2 FROM tab2
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT 72 * - - COUNT ( * ) col2 FROM tab2
----
216

query II rowsort
SELECT - col0 AS col0, col1 + col1 AS col2 FROM tab0 cor0
----
-15
162
-87
42
-97
2

query I rowsort
SELECT - 50 * - col1 * + + 39 * col0 AS col0 FROM tab2 AS cor0
----
4574700
9609600
9798750

onlyif mysql # aggregate syntax: 
query II rowsort label-9957
SELECT ALL - - COUNT( * ) col1, 78 * 25 FROM tab2 AS cor0
----
3
1950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9957
SELECT ALL - - COUNT ( * ) col1, 78 * 25 FROM tab2 AS cor0
----
3
1950

query I rowsort
SELECT 34 * - col2 AS col1 FROM tab0 AS cor0
----
-1598
-3366
-340

query III rowsort
SELECT * FROM tab1 WHERE NOT - 83 > NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE - 59 BETWEEN ( col2 ) AND + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT MAX( 29 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-9961
SELECT MAX ( 29 ) FROM tab2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT ALL CAST( NULL AS SIGNED ) * 0 - 28 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL CAST ( NULL AS INTEGER ) * 0 - 28 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT DISTINCT + 66 + col0 DIV col2 col0 FROM tab1
----
66
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9963
SELECT DISTINCT + 66 + col0 / col2 col0 FROM tab1
----
66
67

query I rowsort
SELECT col0 - + 71 AS col1 FROM tab2
----
-25
-7
4

query I rowsort
SELECT col1 * + col2 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 56 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE col1 BETWEEN ( NULL ) AND - col2 + + 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab1
----
95
95
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + col2 col1 FROM tab1
----
20
29
57

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 IN ( 68 * col1 )
----

query I rowsort
SELECT ( + 70 ) AS col2 FROM tab2
----
70
70
70

query I rowsort
SELECT + col0 FROM tab2 WHERE ( 89 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT col2 = col0 + + col2
----
10
47
99

query I rowsort
SELECT ALL - 1 + + col2 FROM tab2 WHERE NOT ( NULL ) >= col1
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 24 ) IS NOT NULL
----

query I rowsort
SELECT + 43 * 43 + - col0 FROM tab0
----
1752
1762
1834

query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col1 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL MIN( - 28 ) AS col1 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL MIN ( - 28 ) AS col1 FROM tab1
----
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 * col2 )
----

query I rowsort
SELECT + col1 + 27 AS col0 FROM tab2
----
104
78
94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) <= ( + col0 + + col0 )
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT 11 * - col1 + - ( - col1 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT 11 * - col1 + - ( - col1 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 + col0 FROM tab0 cor0
----
155
165
83

query I rowsort
SELECT ALL 81 + col2 AS col1 FROM tab0 AS cor0
----
128
180
91

query I rowsort
SELECT - col1 * 34 AS col1 FROM tab2
----
-1734
-2278
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT + COUNT( * ) * + 87 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-9990
SELECT + COUNT ( * ) * + 87 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL - + SUM( + col1 ) * - ( 30 + - COUNT( * ) ) col1 FROM tab0 AS cor0
----
2781

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9991
SELECT ALL - + SUM ( + col1 ) * - ( 30 + - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
2781

query I rowsort
SELECT - col0 + + col0 AS col2 FROM tab2 AS cor0 WHERE ( 92 ) IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT - MIN( col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - MIN ( col1 ) FROM tab0 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT DISTINCT + col2 * 12 + + col2 DIV - col1 FROM tab2 AS cor0
----
276
480
696

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + col2 * 12 + + col2 / - col1 FROM tab2 AS cor0
----
276
480
696

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col0 * col0
----

query I rowsort
SELECT 13 * col0 FROM tab2 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT 77 + col2 FROM tab0 cor0
----
124
176
87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN 16 AND NULL
----

query I rowsort
SELECT + - col1 * - 75 - + col0 FROM tab2 AS cor0
----
3779
4950
5711

